public static final class ProductDimension.Builder extends GeneratedMessageV3.Builder<ProductDimension.Builder> implements ProductDimensionOrBuilder
The dimension of the product.
Protobuf type google.shopping.merchant.products.v1beta.ProductDimension
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 ProductDimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ProductDimension build()
public ProductDimension buildPartial()
public ProductDimension.Builder clear()
Overrides
public ProductDimension.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public ProductDimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public ProductDimension.Builder clearUnit()
Required. The dimension units.
Acceptable values are:
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
public ProductDimension.Builder clearValue()
Required. The dimension value represented as a number. The value can have a
maximum precision of four decimal places.
double value = 1 [(.google.api.field_behavior) = REQUIRED];
public ProductDimension.Builder clone()
Overrides
public ProductDimension getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
Required. The dimension units.
Acceptable values are:
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
String |
The unit.
|
public ByteString getUnitBytes()
Required. The dimension units.
Acceptable values are:
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
ByteString |
The bytes for unit.
|
Required. The dimension value represented as a number. The value can have a
maximum precision of four decimal places.
double value = 1 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
double |
The value.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public ProductDimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public ProductDimension.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public ProductDimension.Builder mergeFrom(ProductDimension other)
public final ProductDimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ProductDimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public ProductDimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public ProductDimension.Builder setUnit(String value)
Required. The dimension units.
Acceptable values are:
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
String
The unit to set.
|
public ProductDimension.Builder setUnitBytes(ByteString value)
Required. The dimension units.
Acceptable values are:
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
ByteString
The bytes for unit to set.
|
public final ProductDimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ProductDimension.Builder setValue(double value)
Required. The dimension value represented as a number. The value can have a
maximum precision of four decimal places.
double value = 1 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
double
The value to set.
|