public static interface ProductAttributes.FuelConsumptionOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getUnit()
public abstract ProductAttributes.FuelConsumption.Unit getUnit()The unit of the fuel consumption.
.google.shopping.merchant.products.v1.ProductAttributes.FuelConsumption.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.FuelConsumption.Unit |
The unit. |
getUnitValue()
public abstract int getUnitValue()The unit of the fuel consumption.
.google.shopping.merchant.products.v1.ProductAttributes.FuelConsumption.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for unit. |
getValue()
public abstract double getValue()The fuel consumption value.
optional double value = 1;
| Returns | |
|---|---|
| Type | Description |
double |
The value. |
hasValue()
public abstract boolean hasValue()The fuel consumption value.
optional double value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |