Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class UnitPricingMeasure.
The UnitPricingMeasure of the product.
Generated from protobuf message google.shopping.merchant.products.v1.UnitPricingMeasure
Namespace
Google \ Shopping \ Merchant \ Products \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ value | floatThe measure of an item. | 
| ↳ unit | stringThe unit of the measure. | 
getValue
The measure of an item.
| Returns | |
|---|---|
| Type | Description | 
| float | |
setValue
The measure of an item.
| Parameter | |
|---|---|
| Name | Description | 
| var | float | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getUnit
The unit of the measure.
| Returns | |
|---|---|
| Type | Description | 
| string | |
setUnit
The unit of the measure.
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |