Class PredictionServiceGrpc.PredictionServiceImplBase (0.12.0)

public abstract static class PredictionServiceGrpc.PredictionServiceImplBase implements BindableService

Service for making recommendation prediction.

Inheritance

java.lang.Object > PredictionServiceGrpc.PredictionServiceImplBase

Implements

io.grpc.BindableService

Constructors

PredictionServiceImplBase()

public PredictionServiceImplBase()

Methods

bindService()

public final ServerServiceDefinition bindService()
Returns
TypeDescription
io.grpc.ServerServiceDefinition

predict(PredictRequest request, StreamObserver<PredictResponse> responseObserver)

public void predict(PredictRequest request, StreamObserver<PredictResponse> responseObserver)

Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the PredictionApiKeyRegistry service. Learn more.

Parameters
NameDescription
requestPredictRequest
responseObserverio.grpc.stub.StreamObserver<PredictResponse>