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

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

The unit area of the property.

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

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 area value.

↳ unit int

The unit of area.

getValue

The area value.

Returns
Type Description
float

hasValue

clearValue

setValue

The area value.

Parameter
Name Description
var float
Returns
Type Description
$this

getUnit

The unit of area.

Returns
Type Description
int Enum of type Unit.

setUnit

The unit of area.

Parameter
Name Description
var int

Enum of type Unit.

Returns
Type Description
$this