Google Shopping Merchant Inventories V1beta Client - Class ListLocalInventoriesRequest (0.3.0)

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

Request message for the ListLocalInventories method.

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

Namespace

Google \ Shopping \ Merchant \ Inventories \ V1beta

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The name of the parent product to list local inventories for. Format: accounts/{account}/products/{product}

↳ page_size int

The maximum number of LocalInventory resources for the given product to return. The service returns fewer than this value if the number of inventories for the given product is less that than the pageSize. The default value is 25000. The maximum value is 25000; If a value higher than the maximum is specified, then the pageSize will default to the maximum

↳ page_token string

A page token, received from a previous ListLocalInventories call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to ListLocalInventories must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.

getParent

Required. The name of the parent product to list local inventories for.

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

Returns
TypeDescription
string

setParent

Required. The name of the parent product to list local inventories for.

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

The maximum number of LocalInventory resources for the given product to return. The service returns fewer than this value if the number of inventories for the given product is less that than the pageSize. The default value is 25000. The maximum value is 25000; If a value higher than the maximum is specified, then the pageSize will default to the maximum

Returns
TypeDescription
int

setPageSize

The maximum number of LocalInventory resources for the given product to return. The service returns fewer than this value if the number of inventories for the given product is less that than the pageSize. The default value is 25000. The maximum value is 25000; If a value higher than the maximum is specified, then the pageSize will default to the maximum

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

A page token, received from a previous ListLocalInventories call.

Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to ListLocalInventories must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.

Returns
TypeDescription
string

setPageToken

A page token, received from a previous ListLocalInventories call.

Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to ListLocalInventories must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The name of the parent product to list local inventories for. Format: accounts/{account}/products/{product}

Returns
TypeDescription
Google\Shopping\Merchant\Inventories\V1beta\ListLocalInventoriesRequest