Class ProductAttributes.UnitArea.Builder (1.23.0)

public static final class ProductAttributes.UnitArea.Builder extends GeneratedMessage.Builder<ProductAttributes.UnitArea.Builder> implements ProductAttributes.UnitAreaOrBuilder

The unit area of the property.

Protobuf type google.shopping.merchant.products.v1.ProductAttributes.UnitArea

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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.Unit

The 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 int

The 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 double

The value to set.

Returns
Type Description
ProductAttributes.UnitArea.Builder

This builder for chaining.