public static final class ShippingDimension.Builder extends GeneratedMessageV3.Builder<ShippingDimension.Builder> implements ShippingDimensionOrBuilder
The ShippingDimension of the product.
Protobuf type google.shopping.merchant.products.v1beta.ShippingDimension
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ShippingDimension.BuilderImplements
ShippingDimensionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ShippingDimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
build()
public ShippingDimension build()
Returns | |
---|---|
Type | Description |
ShippingDimension |
buildPartial()
public ShippingDimension buildPartial()
Returns | |
---|---|
Type | Description |
ShippingDimension |
clear()
public ShippingDimension.Builder clear()
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
clearField(Descriptors.FieldDescriptor field)
public ShippingDimension.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ShippingDimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
clearUnit()
public ShippingDimension.Builder clearUnit()
The unit of value.
string unit = 2;
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
This builder for chaining. |
clearValue()
public ShippingDimension.Builder clearValue()
The dimension of the product used to calculate the shipping cost of the item.
double value = 1;
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
This builder for chaining. |
clone()
public ShippingDimension.Builder clone()
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
getDefaultInstanceForType()
public ShippingDimension getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ShippingDimension |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getUnit()
public String getUnit()
The unit of value.
string unit = 2;
Returns | |
---|---|
Type | Description |
String |
The unit. |
getUnitBytes()
public ByteString getUnitBytes()
The unit of value.
string unit = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for unit. |
getValue()
public double getValue()
The dimension of the product used to calculate the shipping cost of the item.
double value = 1;
Returns | |
---|---|
Type | Description |
double |
The value. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ShippingDimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ShippingDimension.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
mergeFrom(ShippingDimension other)
public ShippingDimension.Builder mergeFrom(ShippingDimension other)
Parameter | |
---|---|
Name | Description |
other |
ShippingDimension |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ShippingDimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ShippingDimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ShippingDimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
setUnit(String value)
public ShippingDimension.Builder setUnit(String value)
The unit of value.
string unit = 2;
Parameter | |
---|---|
Name | Description |
value |
String The unit to set. |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public ShippingDimension.Builder setUnitBytes(ByteString value)
The unit of value.
string unit = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for unit to set. |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ShippingDimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
setValue(double value)
public ShippingDimension.Builder setValue(double value)
The dimension of the product used to calculate the shipping cost of the item.
double value = 1;
Parameter | |
---|---|
Name | Description |
value |
double The value to set. |
Returns | |
---|---|
Type | Description |
ShippingDimension.Builder |
This builder for chaining. |