GoogleCloudRetailV2Model

Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.

E-CommerceGoogle CloudMachine LearningPersonalizationRecommendationsRetail

Properties

Name Type Description
tuningOperation string Output only. The tune operation associated with the model. Can be used to determine if there is an ongoing tune for this recommendation. Empty field implies no tune is goig on.
name string Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommend
optimizationObjective string Optional. The optimization objective e.g. `cvr`. Currently supported values: `ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on model type. Default depends on type of reco
servingConfigLists array Output only. The list of valid serving configs associated with the PageOptimizationConfig.
dataState string Output only. The state of data requirements for this model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be trained if the data is in `DATA_ERROR` state. Recommendation model can have `DATA
filteringOption string Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.
modelFeaturesConfig object Optional. Additional model features config.
periodicTuningState string Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`.
updateTime string Output only. Timestamp the Recommendation Model was last updated. E.g. if a Recommendation Model was paused - this would be the time the pause was initiated.
createTime string Output only. Timestamp the Recommendation Model was created at.
type string Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, `similar-items`, `buy-it-agai
displayName string Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 characters.
trainingState string Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train mo
servingState string Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.
lastTuneTime string Output only. The timestamp when the latest successful tune finished.
View JSON Schema on GitHub

JSON Schema

google-cloud-recommendations-ai-google-cloud-retail-v2-model-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-model-schema.json",
  "title": "GoogleCloudRetailV2Model",
  "description": "Metadata that describes the training and serving parameters of a Model. A Model can be associated with a ServingConfig and then queried through the Predict API.",
  "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/GoogleCloudRetailV2Model",
  "type": "object",
  "properties": {
    "tuningOperation": {
      "readOnly": true,
      "description": "Output only. The tune operation associated with the model. Can be used to determine if there is an ongoing tune for this recommendation. Empty field implies no tune is goig on.",
      "type": "string"
    },
    "name": {
      "type": "string",
      "description": "Required. The fully qualified resource name of the model. Format: `projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/models/{model_id}` catalog_id has char limit of 50. recommendation_model_id has char limit of 40."
    },
    "optimizationObjective": {
      "description": "Optional. The optimization objective e.g. `cvr`. Currently supported values: `ctr`, `cvr`, `revenue-per-order`. If not specified, we choose default based on model type. Default depends on type of recommendation: `recommended-for-you` => `ctr` `others-you-may-like` => `ctr` `frequently-bought-together` => `revenue_per_order` This field together with optimization_objective describe model metadata to use to control model training and serving. See https://cloud.google.com/retail/docs/models for more details on what the model metadata control and which combination of parameters are valid. For invalid combinations of parameters (e.g. type = `frequently-bought-together` and optimization_objective = `ctr`), you receive an error 400 if you try to create/update a recommendation with this set of knobs.",
      "type": "string"
    },
    "servingConfigLists": {
      "items": {
        "$ref": "#/$defs/GoogleCloudRetailV2ModelServingConfigList"
      },
      "readOnly": true,
      "description": "Output only. The list of valid serving configs associated with the PageOptimizationConfig.",
      "type": "array"
    },
    "dataState": {
      "readOnly": true,
      "type": "string",
      "enum": [
        "DATA_STATE_UNSPECIFIED",
        "DATA_OK",
        "DATA_ERROR"
      ],
      "description": "Output only. The state of data requirements for this model: `DATA_OK` and `DATA_ERROR`. Recommendation model cannot be trained if the data is in `DATA_ERROR` state. Recommendation model can have `DATA_ERROR` state even if serving state is `ACTIVE`: models were trained successfully before, but cannot be refreshed because model no longer has sufficient data for training."
    },
    "filteringOption": {
      "description": "Optional. If `RECOMMENDATIONS_FILTERING_ENABLED`, recommendation filtering by attributes is enabled for the model.",
      "enum": [
        "RECOMMENDATIONS_FILTERING_OPTION_UNSPECIFIED",
        "RECOMMENDATIONS_FILTERING_DISABLED",
        "RECOMMENDATIONS_FILTERING_ENABLED"
      ],
      "type": "string"
    },
    "modelFeaturesConfig": {
      "$ref": "#/$defs/GoogleCloudRetailV2ModelModelFeaturesConfig",
      "description": "Optional. Additional model features config."
    },
    "periodicTuningState": {
      "type": "string",
      "enum": [
        "PERIODIC_TUNING_STATE_UNSPECIFIED",
        "PERIODIC_TUNING_DISABLED",
        "ALL_TUNING_DISABLED",
        "PERIODIC_TUNING_ENABLED"
      ],
      "description": "Optional. The state of periodic tuning. The period we use is 3 months - to do a one-off tune earlier use the `TuneModel` method. Default value is `PERIODIC_TUNING_ENABLED`."
    },
    "updateTime": {
      "readOnly": true,
      "format": "google-datetime",
      "description": "Output only. Timestamp the Recommendation Model was last updated. E.g. if a Recommendation Model was paused - this would be the time the pause was initiated.",
      "type": "string"
    },
    "createTime": {
      "description": "Output only. Timestamp the Recommendation Model was created at.",
      "format": "google-datetime",
      "readOnly": true,
      "type": "string"
    },
    "type": {
      "type": "string",
      "description": "Required. The type of model e.g. `home-page`. Currently supported values: `recommended-for-you`, `others-you-may-like`, `frequently-bought-together`, `page-optimization`, `similar-items`, `buy-it-again`, `on-sale-items`, and `recently-viewed`(readonly value). This field together with optimization_objective describe model metadata to use to control model training and serving. See https://cloud.google.com/retail/docs/models for more details on what the model metadata control and which combination of parameters are valid. For invalid combinations of parameters (e.g. type = `frequently-bought-together` and optimization_objective = `ctr`), you receive an error 400 if you try to create/update a recommendation with this set of knobs."
    },
    "displayName": {
      "type": "string",
      "description": "Required. The display name of the model. Should be human readable, used to display Recommendation Models in the Retail Cloud Console Dashboard. UTF-8 encoded string with limit of 1024 characters."
    },
    "trainingState": {
      "description": "Optional. The training state that the model is in (e.g. `TRAINING` or `PAUSED`). Since part of the cost of running the service is frequency of training - this can be used to determine when to train model in order to control cost. If not specified: the default value for `CreateModel` method is `TRAINING`. The default value for `UpdateModel` method is to keep the state the same as before.",
      "enum": [
        "TRAINING_STATE_UNSPECIFIED",
        "PAUSED",
        "TRAINING"
      ],
      "type": "string"
    },
    "servingState": {
      "type": "string",
      "enum": [
        "SERVING_STATE_UNSPECIFIED",
        "INACTIVE",
        "ACTIVE",
        "TUNED"
      ],
      "description": "Output only. The serving state of the model: `ACTIVE`, `NOT_ACTIVE`.",
      "readOnly": true
    },
    "lastTuneTime": {
      "description": "Output only. The timestamp when the latest successful tune finished.",
      "readOnly": true,
      "format": "google-datetime",
      "type": "string"
    }
  },
  "$defs": {
    "GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig": {
      "description": "Additional configs for the frequently-bought-together model type.",
      "type": "object",
      "properties": {
        "contextProductsType": {
          "enum": [
            "CONTEXT_PRODUCTS_TYPE_UNSPECIFIED",
            "SINGLE_CONTEXT_PRODUCT",
            "MULTIPLE_CONTEXT_PRODUCTS"
          ],
          "description": "Optional. Specifies the context of the model when it is used in predict requests. Can only be set for the `frequently-bought-together` type. If it isn't specified, it defaults to MULTIPLE_CONTEXT_PRODUCTS.",
          "type": "string"
        }
      }
    },
    "GoogleCloudRetailV2ModelModelFeaturesConfig": {
      "description": "Additional model features config.",
      "type": "object",
      "properties": {
        "frequentlyBoughtTogetherConfig": {
          "$ref": "#/$defs/GoogleCloudRetailV2ModelFrequentlyBoughtTogetherFeaturesConfig",
          "description": "Additional configs for frequently-bought-together models."
        }
      }
    },
    "GoogleCloudRetailV2ModelServingConfigList": {
      "properties": {
        "servingConfigIds": {
          "items": {
            "type": "string"
          },
          "description": "Optional. A set of valid serving configs that may be used for `PAGE_OPTIMIZATION`.",
          "type": "array"
        }
      },
      "type": "object",
      "description": "Represents an ordered combination of valid serving configs, which can be used for `PAGE_OPTIMIZATION` recommendations."
    }
  }
}

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-model"
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.