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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > UnitPricingBaseMeasure.BuilderImplements
UnitPricingBaseMeasureOrBuilderStatic 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 |
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 |
clearField(Descriptors.FieldDescriptor field)
public UnitPricingBaseMeasure.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
UnitPricingBaseMeasure.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public UnitPricingBaseMeasure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
UnitPricingBaseMeasure.Builder |
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 |
getDefaultInstanceForType()
public UnitPricingBaseMeasure getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
UnitPricingBaseMeasure |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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 |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public UnitPricingBaseMeasure.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
UnitPricingBaseMeasure.Builder |
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 |
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 |
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 |
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 |
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. |