Class PredictionServiceGrpc.PredictionServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
-
- com.google.cloud.recommendationengine.v1beta1.PredictionServiceGrpc.PredictionServiceFutureStub
-
- Enclosing class:
- PredictionServiceGrpc
public static final class PredictionServiceGrpc.PredictionServiceFutureStub extends io.grpc.stub.AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service PredictionService.Service for making recommendation prediction.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PredictionServiceGrpc.PredictionServiceFutureStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
com.google.common.util.concurrent.ListenableFuture<PredictResponse>
predict(PredictRequest request)
Makes a recommendation prediction.
-
-
-
Method Detail
-
build
protected PredictionServiceGrpc.PredictionServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceFutureStub>
-
predict
public com.google.common.util.concurrent.ListenableFuture<PredictResponse> predict(PredictRequest request)
Makes a recommendation prediction. If using API Key based authentication, the API Key must be registered using the [PredictionApiKeyRegistry][google.cloud.recommendationengine.v1beta1.PredictionApiKeyRegistry] service. [Learn more](/recommendations-ai/docs/setting-up#register-key).
-
-