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

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

The fuel consumption of the vehicle.

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

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 fuel consumption value.

↳ unit int

The unit of the fuel consumption.

getValue

The fuel consumption value.

Returns
Type Description
float

hasValue

clearValue

setValue

The fuel consumption value.

Parameter
Name Description
var float
Returns
Type Description
$this

getUnit

The unit of the fuel consumption.

Returns
Type Description
int Enum of type Unit.

setUnit

The unit of the fuel consumption.

Parameter
Name Description
var int

Enum of type Unit.

Returns
Type Description
$this