Interface ProductAttributes.EnergyConsumptionOrBuilder (1.23.0)

public static interface ProductAttributes.EnergyConsumptionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getUnit()

public abstract ProductAttributes.EnergyConsumption.Unit getUnit()

The unit of the energy consumption.

.google.shopping.merchant.products.v1.ProductAttributes.EnergyConsumption.Unit unit = 2;

Returns
Type Description
ProductAttributes.EnergyConsumption.Unit

The unit.

getUnitValue()

public abstract int getUnitValue()

The unit of the energy consumption.

.google.shopping.merchant.products.v1.ProductAttributes.EnergyConsumption.Unit unit = 2;

Returns
Type Description
int

The enum numeric value on the wire for unit.

getValue()

public abstract double getValue()

The energy consumption value.

optional double value = 1;

Returns
Type Description
double

The value.

hasValue()

public abstract boolean hasValue()

The energy consumption value.

optional double value = 1;

Returns
Type Description
boolean

Whether the value field is set.