Reference documentation and code samples for the Google Shopping Merchant Products V1beta Client class ShippingWeight.
The ShippingWeight of the product.
Generated from protobuf message google.shopping.merchant.products.v1beta.ShippingWeight
Namespace
Google \ Shopping \ Merchant \ Products \ V1betaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
float
The weight of the product used to calculate the shipping cost of the item. |
↳ unit |
string
The unit of value. |
getValue
The weight of the product used to calculate the shipping cost of the item.
Returns | |
---|---|
Type | Description |
float |
setValue
The weight of the product used to calculate the shipping cost of the item.
Parameter | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |
getUnit
The unit of value.
Returns | |
---|---|
Type | Description |
string |
setUnit
The unit of value.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |