Class PredictionServiceGrpc.PredictionServiceFutureStub (0.8.10)

public static final class PredictionServiceGrpc.PredictionServiceFutureStub extends AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>

Service for making recommendation prediction.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractFutureStub > PredictionServiceGrpc.PredictionServiceFutureStub

Methods

build(Channel channel, CallOptions callOptions)

protected PredictionServiceGrpc.PredictionServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
PredictionServiceGrpc.PredictionServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

predict(PredictRequest request)

public ListenableFuture<PredictResponse> predict(PredictRequest request)

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

Parameter
NameDescription
requestPredictRequest
Returns
TypeDescription
com.google.common.util.concurrent.ListenableFuture<PredictResponse>