Reference documentation and code samples for the Google Shopping Merchant Inventories V1 Client class InsertLocalInventoryRequest.
Request message for the InsertLocalInventory method.
Generated from protobuf message google.shopping.merchant.inventories.v1.InsertLocalInventoryRequest
Namespace
Google \ Shopping \ Merchant \ Inventories \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. The account and product where this inventory will be inserted. Format: |
↳ local_inventory |
LocalInventory
Required. Local inventory information of the product. If the product already has a |
getParent
Required. The account and product where this inventory will be inserted.
Format: accounts/{account}/products/{product}
| Returns | |
|---|---|
| Type | Description |
string |
|
setParent
Required. The account and product where this inventory will be inserted.
Format: accounts/{account}/products/{product}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLocalInventory
Required. Local inventory information of the product. If the product
already has a LocalInventory resource for the same storeCode, full
replacement of the LocalInventory resource is performed.
| Returns | |
|---|---|
| Type | Description |
LocalInventory|null |
|
hasLocalInventory
clearLocalInventory
setLocalInventory
Required. Local inventory information of the product. If the product
already has a LocalInventory resource for the same storeCode, full
replacement of the LocalInventory resource is performed.
| Parameter | |
|---|---|
| Name | Description |
var |
LocalInventory
|
| Returns | |
|---|---|
| Type | Description |
$this |
|