Class PredictionServiceGrpc.PredictionServiceFutureStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractFutureStub<PredictionServiceGrpc.PredictionServiceFutureStub>
-
- com.google.cloud.aiplatform.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.A service for online predictions and explanations.
-
-
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<CountTokensResponse>
countTokens(CountTokensRequest request)
Perform a token counting.com.google.common.util.concurrent.ListenableFuture<ExplainResponse>
explain(ExplainRequest request)
Perform an online explanation.com.google.common.util.concurrent.ListenableFuture<PredictResponse>
predict(PredictRequest request)
Perform an online prediction.com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody>
rawPredict(RawPredictRequest request)
Perform an online prediction with an arbitrary HTTP payload.
-
-
-
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)
Perform an online prediction.
-
rawPredict
public com.google.common.util.concurrent.ListenableFuture<com.google.api.HttpBody> rawPredict(RawPredictRequest request)
Perform an online prediction with an arbitrary HTTP payload. The response includes the following HTTP headers: * `X-Vertex-AI-Endpoint-Id`: ID of the [Endpoint][google.cloud.aiplatform.v1beta1.Endpoint] that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1beta1.DeployedModel] that served this prediction.
-
explain
public com.google.common.util.concurrent.ListenableFuture<ExplainResponse> explain(ExplainRequest request)
Perform an online explanation. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is specified, the corresponding DeployModel must have [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] populated. If [deployed_model_id][google.cloud.aiplatform.v1beta1.ExplainRequest.deployed_model_id] is not specified, all DeployedModels must have [explanation_spec][google.cloud.aiplatform.v1beta1.DeployedModel.explanation_spec] populated.
-
countTokens
public com.google.common.util.concurrent.ListenableFuture<CountTokensResponse> countTokens(CountTokensRequest request)
Perform a token counting.
-
-