Class ShippingWeight.Builder (0.4.0)

public static final class ShippingWeight.Builder extends GeneratedMessageV3.Builder<ShippingWeight.Builder> implements ShippingWeightOrBuilder

The ShippingWeight of the product.

Protobuf type google.shopping.merchant.products.v1beta.ShippingWeight

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ShippingWeight.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ShippingWeight.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public ShippingWeight.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ShippingWeight.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ShippingWeight.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ShippingWeight.Builder
Overrides

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.

clone()

public ShippingWeight.Builder clone()
Returns
Type Description
ShippingWeight.Builder
Overrides

getDefaultInstanceForType()

public ShippingWeight getDefaultInstanceForType()
Returns
Type Description
ShippingWeight

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ShippingWeight.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ShippingWeight.Builder
Overrides

mergeFrom(ShippingWeight other)

public ShippingWeight.Builder mergeFrom(ShippingWeight other)
Parameter
Name Description
other ShippingWeight
Returns
Type Description
ShippingWeight.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ShippingWeight.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ShippingWeight.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ShippingWeight.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ShippingWeight.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ShippingWeight.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ShippingWeight.Builder
Overrides

setUnit(String value)

public ShippingWeight.Builder setUnit(String value)

The unit of value.

string unit = 2;

Parameter
Name Description
value String

The 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 ByteString

The bytes for unit to set.

Returns
Type Description
ShippingWeight.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ShippingWeight.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ShippingWeight.Builder
Overrides

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 double

The value to set.

Returns
Type Description
ShippingWeight.Builder

This builder for chaining.