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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public UnitPricingBaseMeasure.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UnitPricingBaseMeasure build()
public UnitPricingBaseMeasure buildPartial()
public UnitPricingBaseMeasure.Builder clear()
Overrides
public UnitPricingBaseMeasure.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public UnitPricingBaseMeasure.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public UnitPricingBaseMeasure.Builder clearUnit()
The unit of the denominator.
string unit = 2;
public UnitPricingBaseMeasure.Builder clearValue()
The denominator of the unit price.
int64 value = 1;
public UnitPricingBaseMeasure.Builder clone()
Overrides
public UnitPricingBaseMeasure getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
The unit of the denominator.
string unit = 2;
Returns |
Type |
Description |
String |
The unit.
|
public ByteString getUnitBytes()
The unit of the denominator.
string unit = 2;
Returns |
Type |
Description |
ByteString |
The bytes for unit.
|
The denominator of the unit price.
int64 value = 1;
Returns |
Type |
Description |
long |
The value.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public UnitPricingBaseMeasure.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public UnitPricingBaseMeasure.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public UnitPricingBaseMeasure.Builder mergeFrom(UnitPricingBaseMeasure other)
public final UnitPricingBaseMeasure.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UnitPricingBaseMeasure.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public UnitPricingBaseMeasure.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public UnitPricingBaseMeasure.Builder setUnit(String value)
The unit of the denominator.
string unit = 2;
Parameter |
Name |
Description |
value |
String
The unit to set.
|
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.
|
public final UnitPricingBaseMeasure.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public UnitPricingBaseMeasure.Builder setValue(long value)
The denominator of the unit price.
int64 value = 1;
Parameter |
Name |
Description |
value |
long
The value to set.
|