Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class ProductDimension.
The dimension of the product.
Generated from protobuf message google.shopping.merchant.products.v1beta.ProductDimension
Namespace
Google \ Shopping \ Merchant \ Products \ V1betaMethods
__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: * * " |
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 |