public static final class ShippingDimension.Builder extends GeneratedMessage.Builder<ShippingDimension.Builder> implements ShippingDimensionOrBuilderThe ShippingDimension of the product.
Protobuf type google.shopping.merchant.products.v1beta.ShippingDimension
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ShippingDimension.BuilderImplements
ShippingDimensionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
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 |
|
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. |
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 GeneratedMessage.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 |
|
setUnit(String value)
public ShippingDimension.Builder setUnit(String value)The unit of value.
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe 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 |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
ShippingDimension.Builder |
This builder for chaining. |
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 |
doubleThe value to set. |
| Returns | |
|---|---|
| Type | Description |
ShippingDimension.Builder |
This builder for chaining. |