public static interface ProductAttributes.MileageOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getUnit()
public abstract 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 abstract 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 abstract long getValue()The distance value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The value. |
hasValue()
public abstract boolean hasValue()The distance value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |