Google Shopping Css V1 Client - Class ProductDimension (0.2.8)

Reference documentation and code samples for the Google Shopping Css V1 Client class ProductDimension.

The dimension of the product.

Generated from protobuf message google.shopping.css.v1.ProductDimension

Namespace

Google \ Shopping \ Css \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ value float

Required. The dimension value represented as a number. The value can have a maximum precision of four decimal places.

↳ unit string

Required. The dimension units. Acceptable values are: * "in" * "cm"

getValue

Required. The dimension value represented as a number. The value can have a maximum precision of four decimal places.

Returns
Type Description
float

setValue

Required. The dimension value represented as a number. The value can have a maximum precision of four decimal places.

Parameter
Name Description
var float
Returns
Type Description
$this

getUnit

Required. The dimension units.

Acceptable values are:

  • "in"
  • "cm"
Returns
Type Description
string

setUnit

Required. The dimension units.

Acceptable values are:

  • "in"
  • "cm"
Parameter
Name Description
var string
Returns
Type Description
$this