public abstract static class ModelServiceGrpc.ModelServiceImplBase extends Object implements io.grpc.BindableService
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.
| Constructor and Description |
|---|
ModelServiceImplBase() |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
createModel(CreateModelRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new model.
|
void |
deleteModel(DeleteModelRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing model.
|
void |
listModels(ListModelsRequest request,
io.grpc.stub.StreamObserver<ListModelsResponse> responseObserver)
Lists all the models linked to this event store.
|
void |
pauseModel(PauseModelRequest request,
io.grpc.stub.StreamObserver<Model> responseObserver)
Pauses the training of an existing model.
|
void |
resumeModel(ResumeModelRequest request,
io.grpc.stub.StreamObserver<Model> responseObserver)
Resumes the training of an existing model.
|
void |
tuneModel(TuneModelRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Tunes an existing model.
|
void |
updateModel(UpdateModelRequest request,
io.grpc.stub.StreamObserver<Model> responseObserver)
Update of model metadata.
|
public void createModel(CreateModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Creates a new model.
public void pauseModel(PauseModelRequest request, io.grpc.stub.StreamObserver<Model> responseObserver)
Pauses the training of an existing model.
public void resumeModel(ResumeModelRequest request, io.grpc.stub.StreamObserver<Model> responseObserver)
Resumes the training of an existing model.
public void deleteModel(DeleteModelRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes an existing model.
public void listModels(ListModelsRequest request, io.grpc.stub.StreamObserver<ListModelsResponse> responseObserver)
Lists all the models linked to this event store.
public void updateModel(UpdateModelRequest request, io.grpc.stub.StreamObserver<Model> responseObserver)
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.
public void tuneModel(TuneModelRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Tunes an existing model.
public final io.grpc.ServerServiceDefinition bindService()
bindService in interface io.grpc.BindableServiceCopyright © 2022 Google LLC. All rights reserved.