google.cloud.retail_v2alpha.types.LocalInventory.Availability
Optional. The availability of the
Product at this
place_id. Default to
Availability.IN_STOCK.
For primary products with variants set the availability of
the primary as
Availability.OUT_OF_STOCK
and set the true availability at the variant level. This way
the primary product will be considered "in stock" as long as
it has at least one variant in stock.
For primary products with no variants set the true
availability at the primary level.
Corresponding properties: Google Merchant Center property
availability __.
Schema.org property
Offer.availability __.
This field is currently only used by the Recommendations
API. For Search, please make use of
fulfillment_types
or custom attributes for similar behaviour. See
here __
for more details.
attributes
MutableMapping[str, google.cloud.retail_v2alpha.types.CustomAttribute]
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. The searchable
field should be unset or set to false.
- The max summed total bytes of custom attribute keys and
values per product is 5MiB.
fulfillment_types
MutableSequence[str]
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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class LocalInventory (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/python/docs/reference/retail/latest/google.cloud.retail_v2alpha.types.LocalInventory)\n- [2.4.0](/python/docs/reference/retail/2.4.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [2.3.0](/python/docs/reference/retail/2.3.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [2.2.0](/python/docs/reference/retail/2.2.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [2.1.0](/python/docs/reference/retail/2.1.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [2.0.0](/python/docs/reference/retail/2.0.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.25.0](/python/docs/reference/retail/1.25.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.24.0](/python/docs/reference/retail/1.24.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.23.1](/python/docs/reference/retail/1.23.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.22.0](/python/docs/reference/retail/1.22.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.21.2](/python/docs/reference/retail/1.21.2/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.20.1](/python/docs/reference/retail/1.20.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.19.1](/python/docs/reference/retail/1.19.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.18.0](/python/docs/reference/retail/1.18.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.17.0](/python/docs/reference/retail/1.17.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.16.3](/python/docs/reference/retail/1.16.3/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.15.1](/python/docs/reference/retail/1.15.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.14.1](/python/docs/reference/retail/1.14.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.13.0](/python/docs/reference/retail/1.13.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.12.0](/python/docs/reference/retail/1.12.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.11.0](/python/docs/reference/retail/1.11.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.10.2](/python/docs/reference/retail/1.10.2/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.9.0](/python/docs/reference/retail/1.9.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.8.1](/python/docs/reference/retail/1.8.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.7.0](/python/docs/reference/retail/1.7.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.6.1](/python/docs/reference/retail/1.6.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.5.0](/python/docs/reference/retail/1.5.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.4.1](/python/docs/reference/retail/1.4.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.3.0](/python/docs/reference/retail/1.3.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.2.1](/python/docs/reference/retail/1.2.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.1.0](/python/docs/reference/retail/1.1.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [1.0.2](/python/docs/reference/retail/1.0.2/google.cloud.retail_v2alpha.types.LocalInventory)\n- [0.4.2](/python/docs/reference/retail/0.4.2/google.cloud.retail_v2alpha.types.LocalInventory)\n- [0.3.1](/python/docs/reference/retail/0.3.1/google.cloud.retail_v2alpha.types.LocalInventory)\n- [0.2.0](/python/docs/reference/retail/0.2.0/google.cloud.retail_v2alpha.types.LocalInventory)\n- [0.1.0](/python/docs/reference/retail/0.1.0/google.cloud.retail_v2alpha.types.LocalInventory) \n\n LocalInventory(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe inventory information at a place (e.g. a store)\nidentified by a place ID.\n\nClasses\n-------\n\n### AttributesEntry\n\n AttributesEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message.\n\n### Availability\n\n Availability(value)\n\nProduct availability. If this field is unspecified, the\nproduct is assumed to be in stock."]]