Class UnitPricingMeasure.Builder (0.5.0)

public static final class UnitPricingMeasure.Builder extends GeneratedMessageV3.Builder<UnitPricingMeasure.Builder> implements UnitPricingMeasureOrBuilder

The UnitPricingMeasure of the product.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public UnitPricingMeasure build()
Returns
Type Description
UnitPricingMeasure

buildPartial()

public UnitPricingMeasure buildPartial()
Returns
Type Description
UnitPricingMeasure

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnit()

public UnitPricingMeasure.Builder clearUnit()

The unit of the measure.

string unit = 2;

Returns
Type Description
UnitPricingMeasure.Builder

This builder for chaining.

clearValue()

public UnitPricingMeasure.Builder clearValue()

The measure of an item.

double value = 1;

Returns
Type Description
UnitPricingMeasure.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public UnitPricingMeasure getDefaultInstanceForType()
Returns
Type Description
UnitPricingMeasure

getDescriptorForType()

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

getUnit()

public String getUnit()

The unit of the measure.

string unit = 2;

Returns
Type Description
String

The unit.

getUnitBytes()

public ByteString getUnitBytes()

The unit of the measure.

string unit = 2;

Returns
Type Description
ByteString

The bytes for unit.

getValue()

public double getValue()

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

mergeFrom(Message other)

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

mergeFrom(UnitPricingMeasure other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnit(String value)

public UnitPricingMeasure.Builder setUnit(String value)

The unit of the measure.

string unit = 2;

Parameter
Name Description
value String

The unit to set.

Returns
Type Description
UnitPricingMeasure.Builder

This builder for chaining.

setUnitBytes(ByteString value)

public UnitPricingMeasure.Builder setUnitBytes(ByteString value)

The unit of the measure.

string unit = 2;

Parameter
Name Description
value ByteString

The bytes for unit to set.

Returns
Type Description
UnitPricingMeasure.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(double value)

public UnitPricingMeasure.Builder setValue(double value)

The measure of an item.

double value = 1;

Parameter
Name Description
value double

The value to set.

Returns
Type Description
UnitPricingMeasure.Builder

This builder for chaining.