Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class Co2Emissions.
The co2 emission of the vehicle.
Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.Co2Emissions
Namespace
Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributesMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
int|string
The co2 emission value. |
↳ unit |
int
The unit of the co2 emission. |
getValue
The co2 emission value.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasValue
clearValue
setValue
The co2 emission value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUnit
The unit of the co2 emission.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Unit. |
setUnit
The unit of the co2 emission.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Unit. |
| Returns | |
|---|---|
| Type | Description |
$this |
|