Package com.google.cloud.retail.v2beta
Class ModelServiceGrpc.ModelServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingStub>
-
- com.google.cloud.retail.v2beta.ModelServiceGrpc.ModelServiceBlockingStub
-
- Enclosing class:
- ModelServiceGrpc
public static final class ModelServiceGrpc.ModelServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service 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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ModelServiceGrpc.ModelServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.longrunning.Operation
createModel(CreateModelRequest request)
Creates a new model.com.google.protobuf.Empty
deleteModel(DeleteModelRequest request)
Deletes an existing model.Model
getModel(GetModelRequest request)
Gets a model.ListModelsResponse
listModels(ListModelsRequest request)
Lists all the models linked to this event store.Model
pauseModel(PauseModelRequest request)
Pauses the training of an existing model.Model
resumeModel(ResumeModelRequest request)
Resumes the training of an existing model.com.google.longrunning.Operation
tuneModel(TuneModelRequest request)
Tunes an existing model.Model
updateModel(UpdateModelRequest request)
Update of model metadata.
-
-
-
Method Detail
-
build
protected ModelServiceGrpc.ModelServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<ModelServiceGrpc.ModelServiceBlockingStub>
-
createModel
public com.google.longrunning.Operation createModel(CreateModelRequest request)
Creates a new model.
-
getModel
public Model getModel(GetModelRequest request)
Gets a model.
-
pauseModel
public Model pauseModel(PauseModelRequest request)
Pauses the training of an existing model.
-
resumeModel
public Model resumeModel(ResumeModelRequest request)
Resumes the training of an existing model.
-
deleteModel
public com.google.protobuf.Empty deleteModel(DeleteModelRequest request)
Deletes an existing model.
-
listModels
public ListModelsResponse listModels(ListModelsRequest request)
Lists all the models linked to this event store.
-
updateModel
public Model updateModel(UpdateModelRequest request)
Update of model metadata. Only fields that currently can be updated are: `filtering_option` and `periodic_tuning_state`. If other values are provided, this API method ignores them.
-
tuneModel
public com.google.longrunning.Operation tuneModel(TuneModelRequest request)
Tunes an existing model.
-
-