Class PredictionServiceGrpc.PredictionServiceBlockingV2Stub (0.87.0)

public static final class PredictionServiceGrpc.PredictionServiceBlockingV2Stub extends AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>

A stub to allow clients to do synchronous rpc calls to service PredictionService.

Service for making recommendation prediction.

Inheritance

java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractBlockingStub > PredictionServiceGrpc.PredictionServiceBlockingV2Stub

Methods

build(Channel channel, CallOptions callOptions)

protected PredictionServiceGrpc.PredictionServiceBlockingV2Stub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
PredictionServiceGrpc.PredictionServiceBlockingV2Stub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

predict(PredictRequest request)

public 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
Name Description
request PredictRequest
Returns
Type Description
PredictResponse
Exceptions
Type Description
io.grpc.StatusException