Class PredictionServiceGrpc.PredictionServiceBlockingV2Stub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>
com.google.cloud.recommendationengine.v1beta1.PredictionServiceGrpc.PredictionServiceBlockingV2Stub
- Enclosing class:
- PredictionServiceGrpc
public static final class PredictionServiceGrpc.PredictionServiceBlockingV2Stub
extends io.grpc.stub.AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>
A stub to allow clients to do synchronous rpc calls to service PredictionService.
Service for making recommendation prediction.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions) predict(PredictRequest request) Makes a recommendation prediction.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected PredictionServiceGrpc.PredictionServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>
-
predict
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).
- Throws:
io.grpc.StatusException
-