GoogleCloudRetailV2ServingConfig
Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).
Properties
| Name | Type | Description |
|---|---|---|
| priceRerankingLevel | string | How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This sett |
| filterControlIds | array | Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of |
| doNotAssociateControlIds | array | Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of |
| diversityLevel | string | How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diver |
| boostControlIds | array | 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 |
| modelId | string | The id of the model in the same Catalog to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed |
| ignoreControlIds | array | Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can onl |
| enableCategoryFilterLevel | string | Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original resul |
| twowaySynonymsControlIds | array | Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specif |
| facetControlIds | array | Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same C |
| replacementControlIds | array | Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if s |
| onewaySynonymsControlIds | array | Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. M |
| displayName | string | Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is re |
| redirectControlIds | array | Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if solution_types is SOLUTION_ |
| diversityType | string | What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY. |
| personalizationSpec | object | The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are |
| dynamicFacetSpec | object | The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. |
| ignoreRecsDenylist | boolean | When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results. |
| name | string | Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*` |
| solutionTypes | array | Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution. |
JSON Schema
{
"$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-serving-config-schema.json",
"title": "GoogleCloudRetailV2ServingConfig",
"description": "Configures metadata that is used to generate serving time results (e.g. search results or recommendation predictions).",
"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/GoogleCloudRetailV2ServingConfig",
"type": "object",
"properties": {
"priceRerankingLevel": {
"description": "How much price ranking we want in serving results. Price reranking causes product items with a similar recommendation probability to be ordered by price, with the highest-priced items first. This setting could result in a decrease in click-through and conversion rates. Allowed values are: * `no-price-reranking` * `low-price-reranking` * `medium-price-reranking` * `high-price-reranking` If not specified, we choose default based on model type. Default value: `no-price-reranking`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.",
"type": "string"
},
"filterControlIds": {
"description": "Condition filter specifications. If a product matches multiple conditions in the specifications, filters from these specifications are all applied and combined via the AND operator. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.",
"type": "array",
"items": {
"type": "string"
}
},
"doNotAssociateControlIds": {
"description": "Condition do not associate specifications. If multiple do not associate conditions match, all matching do not associate controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.",
"items": {
"type": "string"
},
"type": "array"
},
"diversityLevel": {
"description": "How much diversity to use in recommendation model results e.g. `medium-diversity` or `high-diversity`. Currently supported values: * `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` * `auto-diversity` If not specified, we choose default based on recommendation model type. Default value: `no-diversity`. Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION.",
"type": "string"
},
"boostControlIds": {
"items": {
"type": "string"
},
"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 100. 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. Can only be set if solution_types is SOLUTION_TYPE_SEARCH."
},
"modelId": {
"description": "The id of the model in the same Catalog to use at serving time. Currently only RecommendationModels are supported: https://cloud.google.com/retail/recommendations-ai/docs/create-models Can be changed but only to a compatible model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required when solution_types is SOLUTION_TYPE_RECOMMENDATION.",
"type": "string"
},
"ignoreControlIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Condition ignore specifications. If multiple ignore conditions match, all matching ignore controls in the list will execute. - Order does not matter. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH."
},
"enableCategoryFilterLevel": {
"type": "string",
"description": "Whether to add additional category filters on the `similar-items` model. If not specified, we enable it by default. Allowed values are: * `no-category-match`: No additional filtering of original results from the model and the customer's filters. * `relaxed-category-match`: Only keep results with categories that match at least one item categories in the PredictRequests's context item. * If customer also sends filters in the PredictRequest, then the results will satisfy both conditions (user given and category match). Can only be set if solution_types is SOLUTION_TYPE_RECOMMENDATION."
},
"twowaySynonymsControlIds": {
"items": {
"type": "string"
},
"type": "array",
"description": "Condition synonyms specifications. If multiple syonyms conditions match, all matching synonyms control in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH."
},
"facetControlIds": {
"type": "array",
"description": "Facet specifications for faceted search. If empty, no facets are returned. The ids refer to the ids of Control resources with only the Facet control set. These controls are assumed to be in the same Catalog as the ServingConfig. A maximum of 100 values are allowed. Otherwise, an INVALID_ARGUMENT error is returned. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.",
"items": {
"type": "string"
}
},
"replacementControlIds": {
"type": "array",
"description": "Condition replacement specifications. - Applied according to the order in the list. - A previously replaced term can not be re-replaced. - Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.",
"items": {
"type": "string"
}
},
"onewaySynonymsControlIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Condition oneway synonyms specifications. If multiple oneway synonyms conditions match, all matching oneway synonyms controls in the list will execute. Order of controls in the list will not matter. Maximum number of specifications is 100. Can only be set if solution_types is SOLUTION_TYPE_SEARCH."
},
"displayName": {
"description": "Required. The human readable serving config display name. Used in Retail UI. This field must be a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.",
"type": "string"
},
"redirectControlIds": {
"description": "Condition redirect specifications. Only the first triggered redirect action is applied, even if multiple apply. Maximum number of specifications is 1000. Can only be set if solution_types is SOLUTION_TYPE_SEARCH.",
"type": "array",
"items": {
"type": "string"
}
},
"diversityType": {
"enum": [
"DIVERSITY_TYPE_UNSPECIFIED",
"RULE_BASED_DIVERSITY",
"DATA_DRIVEN_DIVERSITY"
],
"description": "What kind of diversity to use - data driven or rule based. If unset, the server behavior defaults to RULE_BASED_DIVERSITY.",
"type": "string"
},
"personalizationSpec": {
"$ref": "#/$defs/GoogleCloudRetailV2SearchRequestPersonalizationSpec",
"description": "The specification for personalization spec. Can only be set if solution_types is SOLUTION_TYPE_SEARCH. Notice that if both ServingConfig.personalization_spec and SearchRequest.personalization_spec are set. SearchRequest.personalization_spec will override ServingConfig.personalization_spec."
},
"dynamicFacetSpec": {
"$ref": "#/$defs/GoogleCloudRetailV2SearchRequestDynamicFacetSpec",
"description": "The specification for dynamically generated facets. Notice that only textual facets can be dynamically generated. Can only be set if solution_types is SOLUTION_TYPE_SEARCH."
},
"ignoreRecsDenylist": {
"type": "boolean",
"description": "When the flag is enabled, the products in the denylist will not be filtered out in the recommendation filtering results."
},
"name": {
"type": "string",
"description": "Immutable. Fully qualified name `projects/*/locations/global/catalogs/*/servingConfig/*`"
},
"solutionTypes": {
"description": "Required. Immutable. Specifies the solution types that a serving config can be associated with. Currently we support setting only one type of solution.",
"items": {
"type": "string",
"enum": [
"SOLUTION_TYPE_UNSPECIFIED",
"SOLUTION_TYPE_RECOMMENDATION",
"SOLUTION_TYPE_SEARCH"
]
},
"type": "array"
}
},
"$defs": {
"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."
},
"GoogleCloudRetailV2SearchRequestPersonalizationSpec": {
"type": "object",
"description": "The specification for personalization.",
"properties": {
"mode": {
"description": "Defaults to Mode.AUTO.",
"enum": [
"MODE_UNSPECIFIED",
"AUTO",
"DISABLED"
],
"type": "string"
}
}
}
}
}
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.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-cloud-recommendations-ai-google-cloud-retail-v2-serving-config"
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.