Package com.google.cloud.aiplatform.v1
Class PredictionServiceGrpc.PredictionServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingStub>
-
- com.google.cloud.aiplatform.v1.PredictionServiceGrpc.PredictionServiceBlockingStub
-
- Enclosing class:
- PredictionServiceGrpc
public static final class PredictionServiceGrpc.PredictionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingStub>
A stub to allow clients to do synchronous 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.PredictionServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
ExplainResponse
explain(ExplainRequest request)
Perform an online explanation.PredictResponse
predict(PredictRequest request)
Perform an online prediction.com.google.api.HttpBody
rawPredict(RawPredictRequest request)
Perform an online prediction with an arbitrary HTTP payload.Iterator<StreamingPredictResponse>
serverStreamingPredict(StreamingPredictRequest request)
Perform a server-side streaming online prediction request for Vertex LLM streaming.
-
-
-
Method Detail
-
build
protected PredictionServiceGrpc.PredictionServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceBlockingStub>
-
predict
public PredictResponse predict(PredictRequest request)
Perform an online prediction.
-
rawPredict
public 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.v1.Endpoint] that served this prediction. * `X-Vertex-AI-Deployed-Model-Id`: ID of the Endpoint's [DeployedModel][google.cloud.aiplatform.v1.DeployedModel] that served this prediction.
-
serverStreamingPredict
public Iterator<StreamingPredictResponse> serverStreamingPredict(StreamingPredictRequest request)
Perform a server-side streaming online prediction request for Vertex LLM streaming.
-
explain
public ExplainResponse explain(ExplainRequest request)
Perform an online explanation. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is specified, the corresponding DeployModel must have [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated. If [deployed_model_id][google.cloud.aiplatform.v1.ExplainRequest.deployed_model_id] is not specified, all DeployedModels must have [explanation_spec][google.cloud.aiplatform.v1.DeployedModel.explanation_spec] populated.
-
-