Google Shopping Css V1 Client - Class ProductDimension (0.1.0)

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
NameDescription
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
TypeDescription
float

setValue

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

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getUnit

Required. The dimension units.

Acceptable values are:

  • "in"
  • "cm"
Returns
TypeDescription
string

setUnit

Required. The dimension units.

Acceptable values are:

  • "in"
  • "cm"
Parameter
NameDescription
var string
Returns
TypeDescription
$this