Class ModelServiceGrpc (2.43.0)

public final class ModelServiceGrpc

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

java.lang.Object > ModelServiceGrpc

Static Fields

SERVICE_NAME

public static final String SERVICE_NAME
Field Value
TypeDescription
String

Static Methods

bindService(ModelServiceGrpc.AsyncService service)

public static final ServerServiceDefinition bindService(ModelServiceGrpc.AsyncService service)
Parameter
NameDescription
serviceModelServiceGrpc.AsyncService
Returns
TypeDescription
io.grpc.ServerServiceDefinition

getCreateModelMethod()

public static MethodDescriptor<CreateModelRequest,Operation> getCreateModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<CreateModelRequest,Operation>

getDeleteModelMethod()

public static MethodDescriptor<DeleteModelRequest,Empty> getDeleteModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<DeleteModelRequest,Empty>

getGetModelMethod()

public static MethodDescriptor<GetModelRequest,Model> getGetModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<GetModelRequest,Model>

getListModelsMethod()

public static MethodDescriptor<ListModelsRequest,ListModelsResponse> getListModelsMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ListModelsRequest,ListModelsResponse>

getPauseModelMethod()

public static MethodDescriptor<PauseModelRequest,Model> getPauseModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<PauseModelRequest,Model>

getResumeModelMethod()

public static MethodDescriptor<ResumeModelRequest,Model> getResumeModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<ResumeModelRequest,Model>

getServiceDescriptor()

public static ServiceDescriptor getServiceDescriptor()
Returns
TypeDescription
io.grpc.ServiceDescriptor

getTuneModelMethod()

public static MethodDescriptor<TuneModelRequest,Operation> getTuneModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<TuneModelRequest,Operation>

getUpdateModelMethod()

public static MethodDescriptor<UpdateModelRequest,Model> getUpdateModelMethod()
Returns
TypeDescription
io.grpc.MethodDescriptor<UpdateModelRequest,Model>

newBlockingStub(Channel channel)

public static ModelServiceGrpc.ModelServiceBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
ModelServiceGrpc.ModelServiceBlockingStub

newFutureStub(Channel channel)

public static ModelServiceGrpc.ModelServiceFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
ModelServiceGrpc.ModelServiceFutureStub

newStub(Channel channel)

public static ModelServiceGrpc.ModelServiceStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

Parameter
NameDescription
channelio.grpc.Channel
Returns
TypeDescription
ModelServiceGrpc.ModelServiceStub