Class ModelServiceGrpc.ModelServiceBlockingV2Stub (3.82.0)
Version 3.82.0keyboard_arrow_down
public static final class ModelServiceGrpc . ModelServiceBlockingV2Stub extends AbstractBlockingStub<ModelServiceGrpc . ModelServiceBlockingV2Stub >
A stub to allow clients to do synchronous rpc calls to service ModelService.
A service for managing Vertex AI's machine learning Models.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
ModelServiceGrpc.ModelServiceBlockingV2Stub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
public BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations ( BatchImportEvaluatedAnnotationsRequest request )
Imports a list of externally generated EvaluatedAnnotations.
Exceptions
Type
Description
io.grpc.StatusException
public BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices ( BatchImportModelEvaluationSlicesRequest request )
Imports a list of externally generated ModelEvaluationSlice.
Exceptions
Type
Description
io.grpc.StatusException
protected ModelServiceGrpc . ModelServiceBlockingV2Stub build ( Channel channel , CallOptions callOptions )
Parameters
Name
Description
channel
io.grpc.Channel
callOptions
io.grpc.CallOptions
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
public Operation copyModel ( CopyModelRequest request )
Copies an already existing Vertex AI Model into the specified Location.
The source Model must exist in the same Project.
When copying custom Models, the users themselves are responsible for
Model.metadata content to be
region-agnostic, as well as making sure that any resources (e.g. files) it
depends on remain accessible.
Exceptions
Type
Description
io.grpc.StatusException
public Operation deleteModel ( DeleteModelRequest request )
Deletes a Model.
A model cannot be deleted if any
Endpoint resource has a
DeployedModel based on the
model in its
deployed_models
field.
Exceptions
Type
Description
io.grpc.StatusException
public Operation deleteModelVersion ( DeleteModelVersionRequest request )
Deletes a Model version.
Model version can only be deleted if there are no
DeployedModels created from it.
Deleting the only version in the Model is not allowed. Use
DeleteModel for
deleting the Model instead.
Exceptions
Type
Description
io.grpc.StatusException
public Operation exportModel ( ExportModelRequest request )
Exports a trained, exportable Model to a location specified by the
user. A Model is considered to be exportable if it has at least one
supported export
format .
Exceptions
Type
Description
io.grpc.StatusException
public Model getModel ( GetModelRequest request )
Returns
Type
Description
Model
Exceptions
Type
Description
io.grpc.StatusException
public ModelEvaluation getModelEvaluation ( GetModelEvaluationRequest request )
Exceptions
Type
Description
io.grpc.StatusException
public ModelEvaluationSlice getModelEvaluationSlice ( GetModelEvaluationSliceRequest request )
Gets a ModelEvaluationSlice.
Exceptions
Type
Description
io.grpc.StatusException
public ModelEvaluation importModelEvaluation ( ImportModelEvaluationRequest request )
Imports an externally generated ModelEvaluation.
Exceptions
Type
Description
io.grpc.StatusException
public ListModelEvaluationSlicesResponse listModelEvaluationSlices ( ListModelEvaluationSlicesRequest request )
Lists ModelEvaluationSlices in a ModelEvaluation.
Exceptions
Type
Description
io.grpc.StatusException
public ListModelEvaluationsResponse listModelEvaluations ( ListModelEvaluationsRequest request )
Lists ModelEvaluations in a Model.
Exceptions
Type
Description
io.grpc.StatusException
public ListModelVersionCheckpointsResponse listModelVersionCheckpoints ( ListModelVersionCheckpointsRequest request )
Lists checkpoints of the specified model version.
Exceptions
Type
Description
io.grpc.StatusException
public ListModelVersionsResponse listModelVersions ( ListModelVersionsRequest request )
Lists versions of the specified model.
Exceptions
Type
Description
io.grpc.StatusException
public ListModelsResponse listModels ( ListModelsRequest request )
Lists Models in a Location.
Exceptions
Type
Description
io.grpc.StatusException
public Model mergeVersionAliases ( MergeVersionAliasesRequest request )
Merges a set of aliases for a Model version.
Returns
Type
Description
Model
Exceptions
Type
Description
io.grpc.StatusException
public Operation updateExplanationDataset ( UpdateExplanationDatasetRequest request )
Incrementally update the dataset used for an examples model.
Exceptions
Type
Description
io.grpc.StatusException
public Model updateModel ( UpdateModelRequest request )
Returns
Type
Description
Model
Exceptions
Type
Description
io.grpc.StatusException
public Operation uploadModel ( UploadModelRequest request )
Uploads a Model artifact into Vertex AI.
Exceptions
Type
Description
io.grpc.StatusException
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-24 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-01-24 UTC."],[],[]]