public static final class ShippingWeight.Builder extends GeneratedMessage.Builder<ShippingWeight.Builder> implements ShippingWeightOrBuilderThe ShippingWeight of the product.
Protobuf type google.shopping.merchant.products.v1.ShippingWeight
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ShippingWeight.BuilderImplements
ShippingWeightOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ShippingWeight build()| Returns | |
|---|---|
| Type | Description |
ShippingWeight |
|
buildPartial()
public ShippingWeight buildPartial()| Returns | |
|---|---|
| Type | Description |
ShippingWeight |
|
clear()
public ShippingWeight.Builder clear()| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
|
clearUnit()
public ShippingWeight.Builder clearUnit()The unit of value.
string unit = 2;
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
This builder for chaining. |
clearValue()
public ShippingWeight.Builder clearValue()The weight of the product used to calculate the shipping cost of the item.
double value = 1;
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ShippingWeight getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ShippingWeight |
|
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 weight 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 ShippingWeight.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ShippingWeight.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
|
mergeFrom(ShippingWeight other)
public ShippingWeight.Builder mergeFrom(ShippingWeight other)| Parameter | |
|---|---|
| Name | Description |
other |
ShippingWeight |
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
|
setUnit(String value)
public ShippingWeight.Builder setUnit(String value)The unit of value.
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public ShippingWeight.Builder setUnitBytes(ByteString value)The unit of value.
string unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for unit to set. |
| Returns | |
|---|---|
| Type | Description |
ShippingWeight.Builder |
This builder for chaining. |
setValue(double value)
public ShippingWeight.Builder setValue(double value)The weight 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 |
ShippingWeight.Builder |
This builder for chaining. |