Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class Mileage.
The mileage of the vehicle.
Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.Mileage
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 distance value. |
↳ unit |
int
The unit of the mileage. |
getValue
The distance value.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasValue
clearValue
setValue
The distance value.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getUnit
The unit of the mileage.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type Unit. |
setUnit
The unit of the mileage.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type Unit. |
| Returns | |
|---|---|
| Type | Description |
$this |
|