Class UnitPricingBaseMeasure.Builder (0.5.0)

public static final class UnitPricingBaseMeasure.Builder extends GeneratedMessageV3.Builder<UnitPricingBaseMeasure.Builder> implements UnitPricingBaseMeasureOrBuilder

The UnitPricingBaseMeasure of the product.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UnitPricingBaseMeasure build()
Returns
Type Description
UnitPricingBaseMeasure

buildPartial()

public UnitPricingBaseMeasure buildPartial()
Returns
Type Description
UnitPricingBaseMeasure

clear()

public UnitPricingBaseMeasure.Builder clear()
Returns
Type Description
UnitPricingBaseMeasure.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnit()

public UnitPricingBaseMeasure.Builder clearUnit()

The unit of the denominator.

string unit = 2;

Returns
Type Description
UnitPricingBaseMeasure.Builder

This builder for chaining.

clearValue()

public UnitPricingBaseMeasure.Builder clearValue()

The denominator of the unit price.

int64 value = 1;

Returns
Type Description
UnitPricingBaseMeasure.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UnitPricingBaseMeasure getDefaultInstanceForType()
Returns
Type Description
UnitPricingBaseMeasure

getDescriptorForType()

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

getUnit()

public String getUnit()

The unit of the denominator.

string unit = 2;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The unit of the denominator.

string unit = 2;

Returns
Type Description
ByteString

The bytes for unit.

getValue()

public long getValue()

The denominator of the unit price.

int64 value = 1;

Returns
Type Description
long

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 UnitPricingBaseMeasure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UnitPricingBaseMeasure.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(UnitPricingBaseMeasure other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnit(String value)

public UnitPricingBaseMeasure.Builder setUnit(String value)

The unit of the denominator.

string unit = 2;

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
UnitPricingBaseMeasure.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public UnitPricingBaseMeasure.Builder setUnitBytes(ByteString value)

The unit of the denominator.

string unit = 2;

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
UnitPricingBaseMeasure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(long value)

public UnitPricingBaseMeasure.Builder setValue(long value)

The denominator of the unit price.

int64 value = 1;

Parameter
Name Description
value long

The value to set.

Returns
Type Description
UnitPricingBaseMeasure.Builder

This builder for chaining.