Google Shopping Merchant Inventories V1beta Client - Class InsertLocalInventoryRequest (0.5.1)

Reference documentation and code samples for the Google Shopping Merchant Inventories V1beta Client class InsertLocalInventoryRequest.

Request message for the InsertLocalInventory method.

Generated from protobuf message google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest

Namespace

Google \ Shopping \ Merchant \ Inventories \ V1beta

Methods

__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: accounts/{account}/products/{product}

↳ local_inventory Google\Shopping\Merchant\Inventories\V1beta\LocalInventory

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.

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
Google\Shopping\Merchant\Inventories\V1beta\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 Google\Shopping\Merchant\Inventories\V1beta\LocalInventory
Returns
Type Description
$this