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

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

Request message for the InsertRegionalInventory method.

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

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}

↳ regional_inventory Google\Shopping\Merchant\Inventories\V1beta\RegionalInventory

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory 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

getRegionalInventory

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory resource is performed.

Returns
TypeDescription
Google\Shopping\Merchant\Inventories\V1beta\RegionalInventory|null

hasRegionalInventory

clearRegionalInventory

setRegionalInventory

Required. Regional inventory information to add to the product. If the product already has a RegionalInventory resource for the same region, full replacement of the RegionalInventory resource is performed.

Parameter
NameDescription
var Google\Shopping\Merchant\Inventories\V1beta\RegionalInventory
Returns
TypeDescription
$this