Generated from protobuf messagegoogle.shopping.merchant.inventories.v1.LocalInventory
Namespace
Google \ Shopping \ Merchant \ Inventories \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ name
string
Output only. The name of theLocalInventoryresource. 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 theLocal product inventory data specificationfor more information.
Output only. The account that owns the product. This field will be ignored
if set by the client.
Returns
Type
Description
int|string
setAccount
Output only. The account that owns the product. This field will be ignored
if set by the client.
Parameter
Name
Description
var
int|string
Returns
Type
Description
$this
getStoreCode
Required. Immutable. Store code (the store ID from your Business Profile)
of the physical store the product is sold in. See theLocal product
inventory data
specificationfor
more information.
Returns
Type
Description
string
setStoreCode
Required. Immutable. Store code (the store ID from your Business Profile)
of the physical store the product is sold in. See theLocal product
inventory data
specificationfor
more information.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Shopping Merchant Inventories V1 Client - Class LocalInventory (1.0.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0 (latest)](/php/docs/reference/shopping-merchant-inventories/latest/V1.LocalInventory)\n- [0.7.0](/php/docs/reference/shopping-merchant-inventories/0.7.0/V1.LocalInventory)\n- [0.6.1](/php/docs/reference/shopping-merchant-inventories/0.6.1/V1.LocalInventory)\n- [0.5.3](/php/docs/reference/shopping-merchant-inventories/0.5.3/V1.LocalInventory)\n- [0.4.5](/php/docs/reference/shopping-merchant-inventories/0.4.5/V1.LocalInventory)\n- [0.3.0](/php/docs/reference/shopping-merchant-inventories/0.3.0/V1.LocalInventory)\n- [0.2.0](/php/docs/reference/shopping-merchant-inventories/0.2.0/V1.LocalInventory)\n- [0.1.1](/php/docs/reference/shopping-merchant-inventories/0.1.1/V1.LocalInventory) \nReference documentation and code samples for the Google Shopping Merchant Inventories V1 Client class LocalInventory.\n\nLocal inventory information for the product. Represents in-store information\nfor a specific product at the store specified by\n[`storeCode`](/php/docs/reference/shopping-merchant-inventories/latest/V1.LocalInventory#_Google_Shopping_Merchant_Inventories_V1_LocalInventory__getStoreCode__).\n\nFor a list of all accepted attribute values, see the [local product inventory\ndata specification](https://support.google.com/merchants/answer/3061342).\n\nGenerated from protobuf message `google.shopping.merchant.inventories.v1.LocalInventory`\n\nNamespace\n---------\n\nGoogle \\\\ Shopping \\\\ Merchant \\\\ Inventories \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The name of the `LocalInventory` resource.\n\nFormat:\n`accounts/{account}/products/{product}/localInventories/{store_code}`\n\n### setName\n\nOutput only. The name of the `LocalInventory` resource.\n\nFormat:\n`accounts/{account}/products/{product}/localInventories/{store_code}`\n\n### getAccount\n\nOutput only. The account that owns the product. This field will be ignored\nif set by the client.\n\n### setAccount\n\nOutput only. The account that owns the product. This field will be ignored\nif set by the client.\n\n### getStoreCode\n\nRequired. Immutable. Store code (the store ID from your Business Profile)\nof the physical store the product is sold in. See the [Local product\ninventory data\nspecification](https://support.google.com/merchants/answer/3061342) for\nmore information.\n\n### setStoreCode\n\nRequired. Immutable. Store code (the store ID from your Business Profile)\nof the physical store the product is sold in. See the [Local product\ninventory data\nspecification](https://support.google.com/merchants/answer/3061342) for\nmore information.\n\n### getLocalInventoryAttributes\n\nOptional. A list of local inventory attributes.\n\n### hasLocalInventoryAttributes\n\n### clearLocalInventoryAttributes\n\n### setLocalInventoryAttributes\n\nOptional. A list of local inventory attributes."]]