GoogleCloudRetailV2SearchRequest

Request message for SearchService.Search method.

E-CommerceGoogle CloudMachine LearningPersonalizationRecommendationsRetail

Properties

Name Type Description
languageCode string Optional. The BCP-47 language code, such as "en-US" or "sr-Latn" [list](https://www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [Standardized codes](https://google.aip.dev
userAttributes object Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Dupl
userInfo object User information.
conversationalSearchSpec object Optional. This field specifies all conversational related parameters addition to traditional retail search.
pageSize integer Maximum number of Products to return. If unspecified, defaults to a reasonable value. The maximum allowed value is 120. Values above 120 will be coerced to 120. If this field is negative, an INVALID_A
entity string The entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it shou
query string Raw search query. If this field is empty, the request is considered a category browsing request and returned results are based on filter and page_categories.
queryExpansionSpec object The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query expansion](https://cloud.google.com/retail/docs/result-size#query_e
dynamicFacetSpec object Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. The specification for dynamically generated facets. Notice that only textual
placeId string Optional. An id corresponding to a place, such as a store id or region id. When specified, we use the price from the local inventory with the matching product's LocalInventory.place_id for revenue opt
searchMode string The search mode of the search request. If not specified, a single search request triggers both product search and faceted search.
pageToken string A page token SearchResponse.next_page_token, received from a previous SearchService.Search call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SearchS
personalizationSpec object The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingCo
pageCategories array Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.page_categories; To rep
labels object The labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum len
spellCorrectionSpec object The spell correction specification that specifies the mode under which spell correction will take effect.
offset integer A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Products deemed by the API as relevant) in search results. This field is only considered if page_t
branch string The branch resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use "default_branch" as the branch ID or leave this field empty, to search products under the defau
facetSpecs array Facet specifications for faceted search. If empty, no facets are returned. A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned.
boostSpec object Boost specification to boost certain products. For more information, see [Boost results](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchR
regionCode string Optional. The Unicode country/region code (CLDR) of a location, such as "US" and "419" [list](https://www.unicode.org/cldr/charts/46/supplemental/territory_information.html). For more information, see
canonicalFilter string The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expa
orderBy string The order in which products are returned. Products can be ordered by a field in an Product object. Leave it unset if ordered by relevance. OrderBy expression is case-sensitive. For more information, s
variantRollupKeys array The keys to fetch and rollup the matching variant Products attributes, FulfillmentInfo or LocalInventorys attributes. The attributes from all the matching variant Products or LocalInventorys are merge
tileNavigationSpec object Optional. This field specifies tile navigation related parameters.
visitorId string Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique ide
filter string The filter syntax consists of an expression language for constructing a predicate from one or more fields of the products being filtered. Filter expression is case-sensitive. For more information, see
View JSON Schema on GitHub

JSON Schema

google-cloud-recommendations-ai-google-cloud-retail-v2-search-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-cloud-recommendations-ai/json-schema/google-cloud-recommendations-ai-google-cloud-retail-v2-search-request-schema.json",
  "title": "GoogleCloudRetailV2SearchRequest",
  "description": "Request message for SearchService.Search method.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-cloud-recommendations-ai-retail-projects-api-openapi.yml#/components/schemas/GoogleCloudRetailV2SearchRequest",
  "type": "object",
  "properties": {
    "languageCode": {
      "type": "string",
      "description": "Optional. The BCP-47 language code, such as \"en-US\" or \"sr-Latn\" [list](https://www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [Standardized codes](https://google.aip.dev/143). This field helps to better interpret the query. If a value isn't specified, the query language code is automatically detected, which may not be accurate."
    },
    "userAttributes": {
      "description": "Optional. The user attributes that could be used for personalization of search results. * Populate at most 100 key-value pairs per query. * Only supports string keys and repeated string values. * Duplicate keys are not allowed within a single query. Example: user_attributes: [ { key: \"pets\" value { values: \"dog\" values: \"cat\" } }, { key: \"state\" value { values: \"CA\" } } ]",
      "additionalProperties": {
        "$ref": "#/$defs/GoogleCloudRetailV2StringList"
      },
      "type": "object"
    },
    "userInfo": {
      "$ref": "#/$defs/GoogleCloudRetailV2UserInfo",
      "description": "User information."
    },
    "conversationalSearchSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestConversationalSearchSpec",
      "description": "Optional. This field specifies all conversational related parameters addition to traditional retail search."
    },
    "pageSize": {
      "type": "integer",
      "format": "int32",
      "description": "Maximum number of Products to return. If unspecified, defaults to a reasonable value. The maximum allowed value is 120. Values above 120 will be coerced to 120. If this field is negative, an INVALID_ARGUMENT is returned."
    },
    "entity": {
      "description": "The entity for customers that may run multiple different entities, domains, sites or regions, for example, `Google US`, `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. If this is set, it should be exactly matched with UserEvent.entity to get search results boosted by entity.",
      "type": "string"
    },
    "query": {
      "type": "string",
      "description": "Raw search query. If this field is empty, the request is considered a category browsing request and returned results are based on filter and page_categories."
    },
    "queryExpansionSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestQueryExpansionSpec",
      "description": "The query expansion specification that specifies the conditions under which query expansion occurs. For more information, see [Query expansion](https://cloud.google.com/retail/docs/result-size#query_expansion)."
    },
    "dynamicFacetSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestDynamicFacetSpec",
      "description": "Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic facets. Do not set this field. The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated."
    },
    "placeId": {
      "type": "string",
      "description": "Optional. An id corresponding to a place, such as a store id or region id. When specified, we use the price from the local inventory with the matching product's LocalInventory.place_id for revenue optimization. Note, the currency of the local inventory's price must match the currency of the product's price."
    },
    "searchMode": {
      "description": "The search mode of the search request. If not specified, a single search request triggers both product search and faceted search.",
      "enum": [
        "SEARCH_MODE_UNSPECIFIED",
        "PRODUCT_SEARCH_ONLY",
        "FACETED_SEARCH_ONLY"
      ],
      "type": "string"
    },
    "pageToken": {
      "description": "A page token SearchResponse.next_page_token, received from a previous SearchService.Search call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to SearchService.Search must match the call that provided the page token. Otherwise, an INVALID_ARGUMENT error is returned.",
      "type": "string"
    },
    "personalizationSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestPersonalizationSpec",
      "description": "The specification for personalization. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec."
    },
    "pageCategories": {
      "description": "Optional. The categories associated with a category page. Must be set for category navigation queries to achieve good search quality. The format should be the same as UserEvent.page_categories; To represent the full path of category, use '>' sign, with one space on each side, to separate different hierarchies. If '>' is part of the category name, replace it with other character(s). Category pages include special pages such as sales or promotions. For instance, a special sale page may have the category hierarchy: \"pageCategories\" : [\"Sales > 2017 Black Friday Deals\"].",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "labels": {
      "description": "The labels applied to a resource must meet the following requirements: * Each resource can have multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a minimum length of 1 character and a maximum length of 63 characters and cannot be empty. Values can be empty and have a maximum length of 63 characters. * Keys and values can contain only lowercase letters, numeric characters, underscores, and dashes. All characters must use UTF-8 encoding, and international characters are allowed. * The key portion of a label must be unique. However, you can use the same key with multiple resources. * Keys must start with a lowercase letter or international character. For more information, see [Requirements for labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) in the Resource Manager documentation.",
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "spellCorrectionSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestSpellCorrectionSpec",
      "description": "The spell correction specification that specifies the mode under which spell correction will take effect."
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "A 0-indexed integer that specifies the current offset (that is, starting result location, amongst the Products deemed by the API as relevant) in search results. This field is only considered if page_token is unset. If this field is negative, an INVALID_ARGUMENT is returned."
    },
    "branch": {
      "description": "The branch resource name, such as `projects/*/locations/global/catalogs/default_catalog/branches/0`. Use \"default_branch\" as the branch ID or leave this field empty, to search products under the default branch.",
      "type": "string"
    },
    "facetSpecs": {
      "description": "Facet specifications for faceted search. If empty, no facets are returned. A maximum of 200 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned.",
      "items": {
        "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestFacetSpec"
      },
      "type": "array"
    },
    "boostSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestBoostSpec",
      "description": "Boost specification to boost certain products. For more information, see [Boost results](https://cloud.google.com/retail/docs/boosting). Notice that if both ServingConfig.boost_control_ids and SearchRequest.boost_spec are set, the boost conditions from both places are evaluated. If a search request matches multiple boost conditions, the final boost score is equal to the sum of the boost scores from all matched boost conditions."
    },
    "regionCode": {
      "type": "string",
      "description": "Optional. The Unicode country/region code (CLDR) of a location, such as \"US\" and \"419\" [list](https://www.unicode.org/cldr/charts/46/supplemental/territory_information.html). For more information, see [Standardized codes](https://google.aip.dev/143). If set, then results will be boosted based on the region_code provided."
    },
    "canonicalFilter": {
      "description": "The default filter that is applied when a user performs a search without checking any filters on the search page. The filter applied to every search request when quality improvement such as query expansion is needed. In the case a query does not have a sufficient amount of results this filter will be used to determine whether or not to enable the query expansion flow. The original filter will still be used for the query expanded search. This field is strongly recommended to achieve high search quality. For more information about filter syntax, see SearchRequest.filter.",
      "type": "string"
    },
    "orderBy": {
      "type": "string",
      "description": "The order in which products are returned. Products can be ordered by a field in an Product object. Leave it unset if ordered by relevance. OrderBy expression is case-sensitive. For more information, see [Order](https://cloud.google.com/retail/docs/filter-and-order#order). If this field is unrecognizable, an INVALID_ARGUMENT is returned."
    },
    "variantRollupKeys": {
      "description": "The keys to fetch and rollup the matching variant Products attributes, FulfillmentInfo or LocalInventorys attributes. The attributes from all the matching variant Products or LocalInventorys are merged and de-duplicated. Notice that rollup attributes will lead to extra query latency. Maximum number of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID must be provided in the format of \"fulfillmentType.fulfillmentId\". E.g., in \"pickupInStore.store123\", \"pickupInStore\" is fulfillment type and \"store123\" is the store ID. Supported keys are: * colorFamilies * price * originalPrice * discount * variantId * inventory(place_id,price) * inventory(place_id,original_price) * inventory(place_id,attributes.key), where key is any key in the Product.local_inventories.attributes map. * attributes.key, where key is any key in the Product.attributes map. * pickupInStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"pickup-in-store\". * shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"ship-to-store\". * sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"same-day-delivery\". * nextDayDelivery.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"next-day-delivery\". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"custom-type-1\". * customFulfillment2.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"custom-type-2\". * customFulfillment3.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"custom-type-3\". * customFulfillment4.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"custom-type-4\". * customFulfillment5.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type \"custom-type-5\". If this field is set to an invalid value other than these, an INVALID_ARGUMENT error is returned.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "tileNavigationSpec": {
      "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestTileNavigationSpec",
      "description": "Optional. This field specifies tile navigation related parameters."
    },
    "visitorId": {
      "description": "Required. A unique identifier for tracking visitors. For example, this could be implemented with an HTTP cookie, which should be able to uniquely identify a visitor on a single device. This unique identifier should not change if the visitor logs in or out of the website. This should be the same identifier as UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.",
      "type": "string"
    },
    "filter": {
      "type": "string",
      "description": "The filter syntax consists of an expression language for constructing a predicate from one or more fields of the products being filtered. Filter expression is case-sensitive. For more information, see [Filter](https://cloud.google.com/retail/docs/filter-and-order#filter). If this field is unrecognizable, an INVALID_ARGUMENT is returned."
    }
  },
  "$defs": {
    "GoogleCloudRetailV2Interval": {
      "description": "A floating point interval.",
      "properties": {
        "maximum": {
          "format": "double",
          "description": "Inclusive upper bound.",
          "type": "number"
        },
        "exclusiveMinimum": {
          "description": "Exclusive lower bound.",
          "type": "number",
          "format": "double"
        },
        "exclusiveMaximum": {
          "type": "number",
          "format": "double",
          "description": "Exclusive upper bound."
        },
        "minimum": {
          "format": "double",
          "type": "number",
          "description": "Inclusive lower bound."
        }
      },
      "type": "object"
    },
    "GoogleCloudRetailV2ProductAttributeInterval": {
      "description": "Product attribute name and numeric interval.",
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The attribute name (e.g. \"length\")"
        },
        "interval": {
          "$ref": "#/$defs/GoogleCloudRetailV2Interval",
          "description": "The numeric interval (e.g. [10, 20))"
        }
      }
    },
    "GoogleCloudRetailV2ProductAttributeValue": {
      "description": "Product attribute which structured by an attribute name and value. This structure is used in conversational search filters and answers. For example, if we have `name=color` and `value=red`, this means that the color is `red`.",
      "type": "object",
      "properties": {
        "value": {
          "description": "The attribute value.",
          "type": "string"
        },
        "name": {
          "description": "The attribute name.",
          "type": "string"
        }
      }
    },
    "GoogleCloudRetailV2SearchRequestBoostSpec": {
      "type": "object",
      "description": "Boost specification to boost certain items.",
      "properties": {
        "skipBoostSpecValidation": {
          "type": "boolean",
          "description": "Whether to skip boostspec validation. If this field is set to true, invalid BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.condition_boost_specs will still be applied."
        },
        "conditionBoostSpecs": {
          "items": {
            "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec"
          },
          "type": "array",
          "description": "Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20."
        }
      }
    },
    "GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec": {
      "properties": {
        "boost": {
          "type": "number",
          "description": "Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the item a big promotion. However, it does not necessarily mean that the boosted item will be the top result at all times, nor that other items will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant items. Setting to -1.0 gives the item a big demotion. However, results that are deeply relevant might still be shown. The item will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.",
          "format": "float"
        },
        "condition": {
          "description": "An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Examples: * To boost products with product ID \"product_1\" or \"product_2\", and color \"Red\" or \"Blue\": * (id: ANY(\"product_1\", \"product_2\")) AND (colorFamilies: ANY(\"Red\",\"Blue\"))",
          "type": "string"
        }
      },
      "type": "object",
      "description": "Boost applies to products which match a condition."
    },
    "GoogleCloudRetailV2SearchRequestConversationalSearchSpec": {
      "properties": {
        "conversationId": {
          "description": "This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous SearchResponse.ConversationalSearchResult.conversation_id. For the initial request, this should be empty.",
          "type": "string"
        },
        "userAnswer": {
          "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer",
          "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text."
        },
        "followupConversationRequested": {
          "description": "This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.",
          "type": "boolean"
        }
      },
      "type": "object",
      "description": "This field specifies all conversational related parameters addition to traditional retail search."
    },
    "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswer": {
      "description": "This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.",
      "type": "object",
      "properties": {
        "textAnswer": {
          "type": "string",
          "description": "This field specifies the incremental input text from the user during the conversational search."
        },
        "selectedAnswer": {
          "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer",
          "description": "This field specifies the selected attributes during the conversational search. This should be a subset of SearchResponse.ConversationalSearchResult.suggested_answers."
        }
      }
    },
    "GoogleCloudRetailV2SearchRequestConversationalSearchSpecUserAnswerSelectedAnswer": {
      "properties": {
        "productAttributeValues": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRetailV2ProductAttributeValue"
          },
          "description": "This field is deprecated and should not be set.",
          "deprecated": true
        },
        "productAttributeValue": {
          "$ref": "#/$defs/GoogleCloudRetailV2ProductAttributeValue",
          "description": "This field specifies the selected answer which is a attribute key-value."
        }
      },
      "description": "This field specifies the selected answers during the conversational search.",
      "type": "object"
    },
    "GoogleCloudRetailV2SearchRequestDynamicFacetSpec": {
      "properties": {
        "mode": {
          "description": "Mode of the DynamicFacet feature. Defaults to Mode.DISABLED if it's unset.",
          "type": "string",
          "enum": [
            "MODE_UNSPECIFIED",
            "DISABLED",
            "ENABLED"
          ]
        }
      },
      "type": "object",
      "description": "The specifications of dynamically generated facets."
    },
    "GoogleCloudRetailV2SearchRequestFacetSpec": {
      "description": "A facet specification to perform faceted search.",
      "properties": {
        "facetKey": {
          "$ref": "#/$defs/GoogleCloudRetailV2SearchRequestFacetSpecFacetKey",
          "description": "Required. The facet key specification."
        },
        "enableDynamicPosition": {
          "description": "Enables dynamic position for this facet. If set to true, the position of this facet among all facets in the response is determined by Google Retail Search. It is ordered together with dynamic facets if dynamic facets is enabled. If set to false, the position of this facet in the response is the same as in the request, and it is ranked before the facets with dynamic position enable and all dynamic facets. For example, you may always want to have rating facet returned in the response, but it's not necessarily to always display the rating facet at the top. In that case, you can set enable_dynamic_position to true so that the position of rating facet in response is determined by Google Retail Search. Another example, assuming you have the following facets in the request: * \"rating\", enable_dynamic_position = true * \"price\", enable_dynamic_position = false * \"brands\", enable_dynamic_position = false And also you have a dynamic facets enable, which generates a facet \"gender\". Then, the final order of the facets in the response can be (\"price\", \"brands\", \"rating\", \"gender\") or (\"price\", \"brands\", \"gender\", \"rating\") depends on how Google Retail Search orders \"gender\" and \"rating\" facets. However, notice that \"price\" and \"brands\" are always ranked at first and second position because their enable_dynamic_position values are false.",
          "type": "boolean"
        },
        "excludedFilterKeys": {
          "items": {
            "type": "string"
          },
          "description": "List of keys to exclude when faceting. By default, FacetKey.key is not excluded from the filter unless it is listed in this field. Listing a facet key in this field allows its values to appear as facet results, even when they are filtered out of search results. Using this field does not affect what search results are returned. For example, suppose there are 100 products with the color facet \"Red\" and 200 products with the color facet \"Blue\". A query containing the filter \"colorFamilies:ANY(\"Red\")\" and having \"colorFamilies\" as FacetKey.key would by default return only \"Red\" products in the search results, and also return \"Red\" with count 100 as the only color facet. Although there are also blue products available, \"Blue\" would not be shown as an available facet value. If \"colorFamilies\" is listed in \"excludedFilterKeys\", then the query returns the facet values \"Red\" with count 100 and \"Blue\" with count 200, because the \"colorFamilies\" key is now excluded from the filter. Because this field doesn't affect search results, the search results are still correctly filtered to return only \"Red\" products. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned.",
          "type": "array"
        },
        "limit": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum of facet values that should be returned for this facet. If unspecified, defaults to 50. The maximum allowed value is 300. Values above 300 will be coerced to 300. If this field is negative, an INVALID_ARGUMENT is returned."
        }
      },
      "type": "object"
    },
    "GoogleCloudRetailV2SearchRequestFacetSpecFacetKey": {
      "type": "object",
      "properties": {
        "intervals": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GoogleCloudRetailV2Interval"
          },
          "description": "Set only if values should be bucketized into intervals. Must be set for facets with numerical values. Must not be set for facet with text values. Maximum number of intervals is 40. For all numerical facet keys that appear in the list of products from the catalog, the percentiles 0, 10, 30, 50, 70, 90, and 100 are computed from their distribution weekly. If the model assigns a high score to a numerical facet key and its intervals are not specified in the search request, these percentiles become the bounds for its intervals and are returned in the response. If the facet key intervals are specified in the request, then the specified intervals are returned instead."
        },
        "prefixes": {
          "description": "Only get facet values that start with the given string prefix. For example, suppose \"categories\" has three values \"Women > Shoe\", \"Women > Dress\" and \"Men > Shoe\". If set \"prefixes\" to \"Women\", the \"categories\" facet gives only \"Women > Shoe\" and \"Women > Dress\". Only supported on textual fields. Maximum is 10.",
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "contains": {
          "items": {
            "type": "string"
          },
          "description": "Only get facet values that contains the given strings. For example, suppose \"categories\" has three values \"Women > Shoe\", \"Women > Dress\" and \"Men > Shoe\". If set \"contains\" to \"Shoe\", the \"categories\" facet gives only \"Women > Shoe\" and \"Men > Shoe\". Only supported on textual fields. Maximum is 10.",
          "type": "array"
        },
        "restrictedValues": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "description": "Only get facet for the given restricted values. For example, when using \"pickupInStore\" as key and set restricted values to [\"store123\", \"store456\"], only facets for \"store123\" and \"store456\" are returned. Only supported on predefined textual fields, custom textual attributes and fulfillments. Maximum is 20. Must be set for the fulfillment facet keys: * pickupInStore * shipToStore * sameDayDelivery * nextDayDelivery * customFulfillment1 * customFulfillment2 * customFulfillment3 * customFulfillment4 * customFulfillment5"
        },
        "returnMinMax": {
          "type": "boolean",
          "description": "Returns the min and max value for each numerical facet intervals. Ignored for textual facets."
        },
        "key": {
          "description": "Required. Supported textual and numerical facet keys in Product object, over which the facet values are computed. Facet key is case-sensitive. Allowed facet keys when FacetKey.query is not specified: * textual_field = * \"brands\" * \"categories\" * \"genders\" * \"ageGroups\" * \"availability\" * \"colorFamilies\" * \"colors\" * \"sizes\" * \"materials\" * \"patterns\" * \"conditions\" * \"attributes.key\" * \"pickupInStore\" * \"shipToStore\" * \"sameDayDelivery\" * \"nextDayDelivery\" * \"customFulfillment1\" * \"customFulfillment2\" * \"customFulfillment3\" * \"customFulfillment4\" * \"customFulfillment5\" * \"inventory(place_id,attributes.key)\" * numerical_field = * \"price\" * \"discount\" * \"rating\" * \"ratingCount\" * \"attributes.key\" * \"inventory(place_id,price)\" * \"inventory(place_id,original_price)\" * \"inventory(place_id,attributes.key)\"",
          "type": "string"
        },
        "caseInsensitive": {
          "description": "True to make facet keys case insensitive when getting faceting values with prefixes or contains; false otherwise.",
          "type": "boolean"
        },
        "orderBy": {
          "type": "string",
          "description": "The order in which SearchResponse.Facet.values are returned. Allowed values are: * \"count desc\", which means order by SearchResponse.Facet.values.count descending. * \"value desc\", which means order by SearchResponse.Facet.values.value descending. Only applies to textual facets. If not set, textual values are sorted in [natural order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are sorted in the order given by FacetSpec.FacetKey.intervals; FulfillmentInfo.place_ids are sorted in the order given by FacetSpec.FacetKey.restricted_values."
        },
        "query": {
          "description": "The query that is used to compute facet for the given facet key. When provided, it overrides the default behavior of facet computation. The query syntax is the same as a filter expression. See SearchRequest.filter for detail syntax and limitations. Notice that there is no limitation on FacetKey.key when query is specified. In the response, SearchResponse.Facet.values.value is always \"1\" and SearchResponse.Facet.values.count is the number of results that match the query. For example, you can set a customized facet for \"shipToStore\", where FacetKey.key is \"customizedShipToStore\", and FacetKey.query is \"availability: ANY(\\\"IN_STOCK\\\") AND shipToStore: ANY(\\\"123\\\")\". Then the facet counts the products that are both in stock and ship to store \"123\".",
          "type": "string"
        }
      },
      "description": "Specifies how a facet is computed."
    },
    "GoogleCloudRetailV2SearchRequestPersonalizationSpec": {
      "type": "object",
      "description": "The specification for personalization.",
      "properties": {
        "mode": {
          "description": "Defaults to Mode.AUTO.",
          "enum": [
            "MODE_UNSPECIFIED",
            "AUTO",
            "DISABLED"
          ],
          "type": "string"
        }
      }
    },
    "GoogleCloudRetailV2SearchRequestQueryExpansionSpec": {
      "description": "Specification to determine under which conditions query expansion should occur.",
      "properties": {
        "condition": {
          "enum": [
            "CONDITION_UNSPECIFIED",
            "DISABLED",
            "AUTO"
          ],
          "description": "The condition under which query expansion should occur. Default to Condition.DISABLED.",
          "type": "string"
        },
        "pinUnexpandedResults": {
          "description": "Whether to pin unexpanded results. The default value is false. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.",
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "GoogleCloudRetailV2SearchRequestSpellCorrectionSpec": {
      "type": "object",
      "properties": {
        "mode": {
          "enum": [
            "MODE_UNSPECIFIED",
            "SUGGESTION_ONLY",
            "AUTO"
          ],
          "description": "The mode under which spell correction should take effect to replace the original search query. Default to Mode.AUTO.",
          "type": "string"
        }
      },
      "description": "The specification for query spell correction."
    },
    "GoogleCloudRetailV2SearchRequestTileNavigationSpec": {
      "properties": {
        "tileNavigationRequested": {
          "type": "boolean",
          "description": "This field specifies whether the customer would like to request tile navigation."
        },
        "appliedTiles": {
          "items": {
            "$ref": "#/$defs/GoogleCloudRetailV2Tile"
          },
          "description": "This optional field specifies the tiles which are already clicked in client side. While the feature works without this field set, particularly for an initial query, it is highly recommended to set this field because it can improve the quality of the search response and removes possible duplicate tiles. NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "This field specifies tile navigation related parameters."
    },
    "GoogleCloudRetailV2StringList": {
      "properties": {
        "values"

# --- truncated at 32 KB (35 KB total) ---
# Full source: https://artifacts.apis.io/google-cloud-recommendations-ai/json-schema/google-cloud-recommendations-ai-google-cloud-retail-v2-search-request-schema.json

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-recommendations-ai-google-cloud-retail-v2-search-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.