public static final class ProductAttributes.UnitArea.Builder extends GeneratedMessage.Builder<ProductAttributes.UnitArea.Builder> implements ProductAttributes.UnitAreaOrBuilderThe unit area of the property.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.UnitArea
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.UnitArea.BuilderImplements
ProductAttributes.UnitAreaOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductAttributes.UnitArea build()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea |
|
buildPartial()
public ProductAttributes.UnitArea buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea |
|
clear()
public ProductAttributes.UnitArea.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
|
clearUnit()
public ProductAttributes.UnitArea.Builder clearUnit()The unit of area.
.google.shopping.merchant.products.v1.ProductAttributes.UnitArea.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
This builder for chaining. |
clearValue()
public ProductAttributes.UnitArea.Builder clearValue()The area value.
optional double value = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ProductAttributes.UnitArea getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUnit()
public ProductAttributes.UnitArea.Unit getUnit()The unit of area.
.google.shopping.merchant.products.v1.ProductAttributes.UnitArea.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Unit |
The unit. |
getUnitValue()
public int getUnitValue()The unit of area.
.google.shopping.merchant.products.v1.ProductAttributes.UnitArea.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for unit. |
getValue()
public double getValue()The area value.
optional double value = 1;
| Returns | |
|---|---|
| Type | Description |
double |
The value. |
hasValue()
public boolean hasValue()The area value.
optional double value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ProductAttributes.UnitArea.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductAttributes.UnitArea.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
|
mergeFrom(ProductAttributes.UnitArea other)
public ProductAttributes.UnitArea.Builder mergeFrom(ProductAttributes.UnitArea other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductAttributes.UnitArea |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
|
setUnit(ProductAttributes.UnitArea.Unit value)
public ProductAttributes.UnitArea.Builder setUnit(ProductAttributes.UnitArea.Unit value)The unit of area.
.google.shopping.merchant.products.v1.ProductAttributes.UnitArea.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributes.UnitArea.UnitThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
This builder for chaining. |
setUnitValue(int value)
public ProductAttributes.UnitArea.Builder setUnitValue(int value)The unit of area.
.google.shopping.merchant.products.v1.ProductAttributes.UnitArea.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for unit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
This builder for chaining. |
setValue(double value)
public ProductAttributes.UnitArea.Builder setValue(double value)The area value.
optional double value = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe value to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.UnitArea.Builder |
This builder for chaining. |