Optional. Additional local inventory attributes, for example, store name, promotion tags, etc. This field needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is returned: * * At most 30 attributes are allowed. * * The key must be a UTF-8 encoded string with a length limit of 32 characters. * * The key must match the pattern:[a-zA-Z0-9][a-zA-Z0-9_]*. For example, key0LikeThis or KEY_1_LIKE_THIS. * * The attribute values must be of the same type (text or number). * * Only 1 value is allowed for each attribute. * * For text values, the length limit is 256 UTF-8 characters. * * The attribute does not support search. Thesearchablefield should be unset or set to false. * * The max summed total bytes of custom attribute keys and values per product is 5MiB.
↳ fulfillment_types
array
Optional. Supported fulfillment types. Valid fulfillment type values include commonly used types (such as pickup in store and same day delivery), and custom types. Customers have to map custom types to their display names before rendering UI. Supported values: * * "pickup-in-store" * * "ship-to-store" * * "same-day-delivery" * * "next-day-delivery" * * "custom-type-1" * * "custom-type-2" * * "custom-type-3" * * "custom-type-4" * * "custom-type-5" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.
getPlaceId
Optional. The place ID for the current set of inventory information.
Returns
Type
Description
string
setPlaceId
Optional. The place ID for the current set of inventory information.
Optional. Supported fulfillment types. Valid fulfillment type values
include commonly used types (such as pickup in store and same day
delivery), and custom types. Customers have to map custom types to their
display names before rendering UI.
Supported values:
"pickup-in-store"
"ship-to-store"
"same-day-delivery"
"next-day-delivery"
"custom-type-1"
"custom-type-2"
"custom-type-3"
"custom-type-4"
"custom-type-5"
If this field is set to an invalid value other than these, an
INVALID_ARGUMENT error is returned.
All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is
returned.
Optional. Supported fulfillment types. Valid fulfillment type values
include commonly used types (such as pickup in store and same day
delivery), and custom types. Customers have to map custom types to their
display names before rendering UI.
Supported values:
"pickup-in-store"
"ship-to-store"
"same-day-delivery"
"next-day-delivery"
"custom-type-1"
"custom-type-2"
"custom-type-3"
"custom-type-4"
"custom-type-5"
If this field is set to an invalid value other than these, an
INVALID_ARGUMENT error is returned.
All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is
returned.
[[["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-09 UTC."],[],[],null,["# Google Cloud Retail V2 Client - Class LocalInventory (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-retail/latest/V2.LocalInventory)\n- [2.3.0](/php/docs/reference/cloud-retail/2.3.0/V2.LocalInventory)\n- [2.2.1](/php/docs/reference/cloud-retail/2.2.1/V2.LocalInventory)\n- [2.1.3](/php/docs/reference/cloud-retail/2.1.3/V2.LocalInventory)\n- [2.0.0](/php/docs/reference/cloud-retail/2.0.0/V2.LocalInventory)\n- [1.7.0](/php/docs/reference/cloud-retail/1.7.0/V2.LocalInventory)\n- [1.6.4](/php/docs/reference/cloud-retail/1.6.4/V2.LocalInventory)\n- [1.5.0](/php/docs/reference/cloud-retail/1.5.0/V2.LocalInventory)\n- [1.4.2](/php/docs/reference/cloud-retail/1.4.2/V2.LocalInventory)\n- [1.3.1](/php/docs/reference/cloud-retail/1.3.1/V2.LocalInventory)\n- [1.2.1](/php/docs/reference/cloud-retail/1.2.1/V2.LocalInventory)\n- [1.1.1](/php/docs/reference/cloud-retail/1.1.1/V2.LocalInventory)\n- [1.0.1](/php/docs/reference/cloud-retail/1.0.1/V2.LocalInventory) \nReference documentation and code samples for the Google Cloud Retail V2 Client class LocalInventory.\n\nThe inventory information at a place (e.g. a store) identified\nby a place ID.\n\nGenerated from protobuf message `google.cloud.retail.v2.LocalInventory`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Retail \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPlaceId\n\nOptional. The place ID for the current set of inventory information.\n\n### setPlaceId\n\nOptional. The place ID for the current set of inventory information.\n\n### getPriceInfo\n\nOptional. Product price and cost information.\n\nGoogle Merchant Center property\n[price](https://support.google.com/merchants/answer/6324371).\n\n### hasPriceInfo\n\n### clearPriceInfo\n\n### setPriceInfo\n\nOptional. Product price and cost information.\n\nGoogle Merchant Center property\n[price](https://support.google.com/merchants/answer/6324371).\n\n### getAttributes\n\nOptional. Additional local inventory attributes, for example, store name,\npromotion tags, etc.\n\nThis field needs to pass all below criteria, otherwise an INVALID_ARGUMENT\nerror is returned:\n\n- At most 30 attributes are allowed.\n- The key must be a UTF-8 encoded string with a length limit of 32 characters.\n- The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.\n- The attribute values must be of the same type (text or number).\n- Only 1 value is allowed for each attribute.\n- For text values, the length limit is 256 UTF-8 characters.\n- The attribute does not support search. The `searchable` field should be unset or set to false.\n- The max summed total bytes of custom attribute keys and values per product is 5MiB.\n\n### setAttributes\n\nOptional. Additional local inventory attributes, for example, store name,\npromotion tags, etc.\n\nThis field needs to pass all below criteria, otherwise an INVALID_ARGUMENT\nerror is returned:\n\n- At most 30 attributes are allowed.\n- The key must be a UTF-8 encoded string with a length limit of 32 characters.\n- The key must match the pattern: `[a-zA-Z0-9][a-zA-Z0-9_]*`. For example, key0LikeThis or KEY_1_LIKE_THIS.\n- The attribute values must be of the same type (text or number).\n- Only 1 value is allowed for each attribute.\n- For text values, the length limit is 256 UTF-8 characters.\n- The attribute does not support search. The `searchable` field should be unset or set to false.\n- The max summed total bytes of custom attribute keys and values per product is 5MiB.\n\n### getFulfillmentTypes\n\nOptional. Supported fulfillment types. Valid fulfillment type values\ninclude commonly used types (such as pickup in store and same day\ndelivery), and custom types. Customers have to map custom types to their\ndisplay names before rendering UI.\n\nSupported values:\n\n- \"pickup-in-store\"\n- \"ship-to-store\"\n- \"same-day-delivery\"\n- \"next-day-delivery\"\n- \"custom-type-1\"\n- \"custom-type-2\"\n- \"custom-type-3\"\n- \"custom-type-4\"\n- \"custom-type-5\" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned.\n\n### setFulfillmentTypes\n\nOptional. Supported fulfillment types. Valid fulfillment type values\ninclude commonly used types (such as pickup in store and same day\ndelivery), and custom types. Customers have to map custom types to their\ndisplay names before rendering UI.\n\nSupported values:\n\n- \"pickup-in-store\"\n- \"ship-to-store\"\n- \"same-day-delivery\"\n- \"next-day-delivery\"\n- \"custom-type-1\"\n- \"custom-type-2\"\n- \"custom-type-3\"\n- \"custom-type-4\"\n- \"custom-type-5\" If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned. All the elements must be distinct. Otherwise, an INVALID_ARGUMENT error is returned."]]