Google Shopping Merchant Products V1 Client - Class EnergyConsumption (1.7.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class EnergyConsumption.

The energy consumption of the vehicle.

Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.EnergyConsumption

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ value float

The energy consumption value.

↳ unit int

The unit of the energy consumption.

getValue

The energy consumption value.

Returns
Type Description
float

hasValue

clearValue

setValue

The energy consumption value.

Parameter
Name Description
var float
Returns
Type Description
$this

getUnit

The unit of the energy consumption.

Returns
Type Description
int Enum of type Unit.

setUnit

The unit of the energy consumption.

Parameter
Name Description
var int

Enum of type Unit.

Returns
Type Description
$this