public static final class PredictionServiceGrpc.PredictionServiceBlockingV2Stub extends io.grpc.stub.AbstractBlockingStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>
A service for online predictions and explanations.
| Modifier and Type | Method and Description |
|---|---|
protected PredictionServiceGrpc.PredictionServiceBlockingV2Stub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
DirectPredictResponse |
directPredict(DirectPredictRequest request)
Perform an unary online prediction request to a gRPC model server for
Vertex first-party products and frameworks.
|
DirectRawPredictResponse |
directRawPredict(DirectRawPredictRequest request)
Perform an unary online prediction request to a gRPC model server for
custom containers.
|
EmbedContentResponse |
embedContent(EmbedContentRequest request)
Embed content with multimodal inputs.
|
ExplainResponse |
explain(ExplainRequest request)
Perform an online explanation.
|
GenerateContentResponse |
generateContent(GenerateContentRequest request)
Generate content with multimodal inputs.
|
PredictResponse |
predict(PredictRequest request)
Perform an online prediction.
|
com.google.api.HttpBody |
rawPredict(RawPredictRequest request)
Perform an online prediction with an arbitrary HTTP payload.
|
io.grpc.stub.BlockingClientCall<?,StreamingPredictResponse> |
serverStreamingPredict(StreamingPredictRequest request)
Perform a server-side streaming online prediction request for Vertex
LLM streaming.
|
io.grpc.stub.BlockingClientCall<StreamDirectPredictRequest,StreamDirectPredictResponse> |
streamDirectPredict()
Perform a streaming online prediction request to a gRPC model server for
Vertex first-party products and frameworks.
|
io.grpc.stub.BlockingClientCall<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> |
streamDirectRawPredict()
Perform a streaming online prediction request to a gRPC model server for
custom containers.
|
io.grpc.stub.BlockingClientCall<?,GenerateContentResponse> |
streamGenerateContent(GenerateContentRequest request)
Generate content with multimodal inputs with streaming support.
|
io.grpc.stub.BlockingClientCall<StreamingPredictRequest,StreamingPredictResponse> |
streamingPredict()
Perform a streaming online prediction request for Vertex first-party
products and frameworks.
|
io.grpc.stub.BlockingClientCall<StreamingRawPredictRequest,StreamingRawPredictResponse> |
streamingRawPredict()
Perform a streaming online prediction request through gRPC.
|
io.grpc.stub.BlockingClientCall<?,com.google.api.HttpBody> |
streamRawPredict(StreamRawPredictRequest request)
Perform a streaming online prediction with an arbitrary HTTP payload.
|
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReadyprotected PredictionServiceGrpc.PredictionServiceBlockingV2Stub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<PredictionServiceGrpc.PredictionServiceBlockingV2Stub>public PredictResponse predict(PredictRequest request) throws io.grpc.StatusException
Perform an online prediction.
io.grpc.StatusExceptionpublic com.google.api.HttpBody rawPredict(RawPredictRequest request) throws io.grpc.StatusException
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.
io.grpc.StatusException@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,com.google.api.HttpBody> streamRawPredict(StreamRawPredictRequest request)
Perform a streaming online prediction with an arbitrary HTTP payload.
public DirectPredictResponse directPredict(DirectPredictRequest request) throws io.grpc.StatusException
Perform an unary online prediction request to a gRPC model server for Vertex first-party products and frameworks.
io.grpc.StatusExceptionpublic DirectRawPredictResponse directRawPredict(DirectRawPredictRequest request) throws io.grpc.StatusException
Perform an unary online prediction request to a gRPC model server for custom containers.
io.grpc.StatusException@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamDirectPredictRequest,StreamDirectPredictResponse> streamDirectPredict()
Perform a streaming online prediction request to a gRPC model server for Vertex first-party products and frameworks.
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamDirectRawPredictRequest,StreamDirectRawPredictResponse> streamDirectRawPredict()
Perform a streaming online prediction request to a gRPC model server for custom containers.
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamingPredictRequest,StreamingPredictResponse> streamingPredict()
Perform a streaming online prediction request for Vertex first-party products and frameworks.
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,StreamingPredictResponse> serverStreamingPredict(StreamingPredictRequest request)
Perform a server-side streaming online prediction request for Vertex LLM streaming.
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<StreamingRawPredictRequest,StreamingRawPredictResponse> streamingRawPredict()
Perform a streaming online prediction request through gRPC.
public ExplainResponse explain(ExplainRequest request) throws io.grpc.StatusException
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.
io.grpc.StatusExceptionpublic GenerateContentResponse generateContent(GenerateContentRequest request) throws io.grpc.StatusException
Generate content with multimodal inputs.
io.grpc.StatusException@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/10918") public io.grpc.stub.BlockingClientCall<?,GenerateContentResponse> streamGenerateContent(GenerateContentRequest request)
Generate content with multimodal inputs with streaming support.
public EmbedContentResponse embedContent(EmbedContentRequest request) throws io.grpc.StatusException
Embed content with multimodal inputs.
io.grpc.StatusExceptionCopyright © 2026 Google LLC. All rights reserved.