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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ProductDimension.BuilderImplements
ProductDimensionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ProductDimension.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
build()
public ProductDimension build()
Returns | |
---|---|
Type | Description |
ProductDimension |
buildPartial()
public ProductDimension buildPartial()
Returns | |
---|---|
Type | Description |
ProductDimension |
clear()
public ProductDimension.Builder clear()
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
clearField(Descriptors.FieldDescriptor field)
public ProductDimension.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public ProductDimension.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
clearUnit()
public ProductDimension.Builder clearUnit()
Required. The dimension units. Acceptable values are:
- "
in
" - "
cm
"
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
This builder for chaining. |
clearValue()
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];
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
This builder for chaining. |
clone()
public ProductDimension.Builder clone()
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
getDefaultInstanceForType()
public ProductDimension getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ProductDimension |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getUnit()
public String getUnit()
Required. The dimension units. Acceptable values are:
- "
in
" - "
cm
"
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
String |
The unit. |
getUnitBytes()
public ByteString getUnitBytes()
Required. The dimension units. Acceptable values are:
- "
in
" - "
cm
"
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for unit. |
getValue()
public double getValue()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductDimension.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ProductDimension.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
mergeFrom(ProductDimension other)
public ProductDimension.Builder mergeFrom(ProductDimension other)
Parameter | |
---|---|
Name | Description |
other |
ProductDimension |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ProductDimension.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ProductDimension.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ProductDimension.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
setUnit(String value)
public ProductDimension.Builder setUnit(String value)
Required. The dimension units. Acceptable values are:
- "
in
" - "
cm
"
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
String The unit to set. |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
This builder for chaining. |
setUnitBytes(ByteString value)
public ProductDimension.Builder setUnitBytes(ByteString value)
Required. The dimension units. Acceptable values are:
- "
in
" - "
cm
"
string unit = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for unit to set. |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ProductDimension.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
setValue(double value)
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. |
Returns | |
---|---|
Type | Description |
ProductDimension.Builder |
This builder for chaining. |