public static final class ProductAttributes.Mileage.Builder extends GeneratedMessage.Builder<ProductAttributes.Mileage.Builder> implements ProductAttributes.MileageOrBuilderThe mileage of the vehicle.
Protobuf type google.shopping.merchant.products.v1.ProductAttributes.Mileage
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ProductAttributes.Mileage.BuilderImplements
ProductAttributes.MileageOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ProductAttributes.Mileage build()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage |
|
buildPartial()
public ProductAttributes.Mileage buildPartial()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage |
|
clear()
public ProductAttributes.Mileage.Builder clear()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
clearUnit()
public ProductAttributes.Mileage.Builder clearUnit()The unit of the mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
This builder for chaining. |
clearValue()
public ProductAttributes.Mileage.Builder clearValue()The distance value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public ProductAttributes.Mileage getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getUnit()
public ProductAttributes.Mileage.Unit getUnit()The unit of the mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Unit |
The unit. |
getUnitValue()
public int getUnitValue()The unit of the mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for unit. |
getValue()
public long getValue()The distance value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The value. |
hasValue()
public boolean hasValue()The distance value.
optional int64 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.Mileage.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ProductAttributes.Mileage.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
mergeFrom(ProductAttributes.Mileage other)
public ProductAttributes.Mileage.Builder mergeFrom(ProductAttributes.Mileage other)| Parameter | |
|---|---|
| Name | Description |
other |
ProductAttributes.Mileage |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
|
setUnit(ProductAttributes.Mileage.Unit value)
public ProductAttributes.Mileage.Builder setUnit(ProductAttributes.Mileage.Unit value)The unit of the mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ProductAttributes.Mileage.UnitThe unit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
This builder for chaining. |
setUnitValue(int value)
public ProductAttributes.Mileage.Builder setUnitValue(int value)The unit of the mileage.
.google.shopping.merchant.products.v1.ProductAttributes.Mileage.Unit unit = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for unit to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
This builder for chaining. |
setValue(long value)
public ProductAttributes.Mileage.Builder setValue(long value)The distance value.
optional int64 value = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe value to set. |
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage.Builder |
This builder for chaining. |