Reference documentation and code samples for the Retail v2 API class ModelService.
Service for performing CRUD operations on models.
Recommendation models contain all the metadata necessary to generate a set of
models for the Predict() API. A model is queried
indirectly via a ServingConfig, which associates a model with a
given Placement (e.g. Frequently Bought Together on Home Page).
This service allows you to do the following:
Initiate training of a model.
Pause training of an existing model.
List all the available models along with their metadata.
public static void BindService(ServiceBinderBase serviceBinder, ModelService.ModelServiceBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["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-07 UTC."],[[["\u003cp\u003eThis documentation covers the \u003ccode\u003eModelService\u003c/code\u003e class within the Google Cloud Retail v2 API, which is essential for managing recommendation models.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModelService\u003c/code\u003e enables users to manage models, including initiating and pausing training, listing available models, and controlling their tuning schedule.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is version 2.12.0, with multiple other versions, from 1.0.0 to 2.11.0, available for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModelService\u003c/code\u003e class provides two methods for binding the service: \u003ccode\u003eBindService(ModelServiceBase)\u003c/code\u003e and \u003ccode\u003eBindService(ServiceBinderBase, ModelServiceBase)\u003c/code\u003e, which allows you to create a server service definition and customize the service binding logic, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eModelService\u003c/code\u003e class inherits members from the object class, such as \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, \u003ccode\u003eMemberwiseClone()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]