Retail v2 API - Class ModelService (2.6.0)

public static class ModelService

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.
  • Control their tuning schedule.

Inheritance

object > ModelService

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Methods

BindService(ModelServiceBase)

public static ServerServiceDefinition BindService(ModelService.ModelServiceBase serviceImpl)

Creates service definition that can be registered with a server

Parameter
NameDescription
serviceImplModelServiceModelServiceBase

An object implementing the server-side handling logic.

Returns
TypeDescription
ServerServiceDefinition

BindService(ServiceBinderBase, ModelServiceBase)

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.

Parameters
NameDescription
serviceBinderServiceBinderBase

Service methods will be bound by calling AddMethod on this object.

serviceImplModelServiceModelServiceBase

An object implementing the server-side handling logic.