Reference documentation and code samples for the Google Shopping Merchant Inventories V1 Client class LocalInventory.
Local inventory information for the product. Represents in-store information
for a specific product at the store specified by storeCode
.
For a list of all accepted attribute values, see the local product inventory data specification .
Generated from protobuf message google.shopping.merchant.inventories.v1.LocalInventory
Namespace
Google \ Shopping \ Merchant \ Inventories \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The name of the LocalInventory
resource. Format: accounts/{account}/products/{product}/localInventories/{store_code}
↳ account
int|string
Output only. The account that owns the product. This field will be ignored if set by the client.
↳ store_code
string
Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory data specification for more information.
↳ local_inventory_attributes
getName
Output only. The name of the LocalInventory
resource.
Format: accounts/{account}/products/{product}/localInventories/{store_code}
string
setName
Output only. The name of the LocalInventory
resource.
Format: accounts/{account}/products/{product}/localInventories/{store_code}
var
string
$this
getAccount
Output only. The account that owns the product. This field will be ignored if set by the client.
int|string
setAccount
Output only. The account that owns the product. This field will be ignored if set by the client.
var
int|string
$this
getStoreCode
Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory data specification for more information.
string
setStoreCode
Required. Immutable. Store code (the store ID from your Business Profile) of the physical store the product is sold in. See the Local product inventory data specification for more information.
var
string
$this
getLocalInventoryAttributes
Optional. A list of local inventory attributes.
hasLocalInventoryAttributes
clearLocalInventoryAttributes
setLocalInventoryAttributes
Optional. A list of local inventory attributes.
$this