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

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
NameDescription
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
TypeDescription
string

setParent

Required. The account and product where this inventory will be inserted.

Format: accounts/{account}/products/{product}

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Shopping\Merchant\Inventories\V1beta\LocalInventory
Returns
TypeDescription
$this