Class PredictionServiceGrpc.PredictionServiceStub

  • Enclosing class:
    PredictionServiceGrpc

    public static final class PredictionServiceGrpc.PredictionServiceStub
    extends io.grpc.stub.AbstractAsyncStub<PredictionServiceGrpc.PredictionServiceStub>
    A stub to allow clients to do asynchronous 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 Detail

      • predict

        public void predict​(PredictRequest request,
                            io.grpc.stub.StreamObserver<PredictResponse> responseObserver)
         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).