Class ModelServiceGrpc.ModelServiceBlockingStub (3.30.0)

public static final class ModelServiceGrpc.ModelServiceBlockingStub extends AbstractBlockingStub<ModelServiceGrpc.ModelServiceBlockingStub>

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.ModelServiceBlockingStub

Methods

batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request)

public BatchImportEvaluatedAnnotationsResponse batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request)

Imports a list of externally generated EvaluatedAnnotations.

Parameter
NameDescription
requestBatchImportEvaluatedAnnotationsRequest
Returns
TypeDescription
BatchImportEvaluatedAnnotationsResponse

batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request)

public BatchImportModelEvaluationSlicesResponse batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request)

Imports a list of externally generated ModelEvaluationSlice.

Parameter
NameDescription
requestBatchImportModelEvaluationSlicesRequest
Returns
TypeDescription
BatchImportModelEvaluationSlicesResponse

build(Channel channel, CallOptions callOptions)

protected ModelServiceGrpc.ModelServiceBlockingStub build(Channel channel, CallOptions callOptions)
Parameters
NameDescription
channelio.grpc.Channel
callOptionsio.grpc.CallOptions
Returns
TypeDescription
ModelServiceGrpc.ModelServiceBlockingStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

copyModel(CopyModelRequest request)

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.

Parameter
NameDescription
requestCopyModelRequest
Returns
TypeDescription
Operation

deleteModel(DeleteModelRequest request)

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.

Parameter
NameDescription
requestDeleteModelRequest
Returns
TypeDescription
Operation

deleteModelVersion(DeleteModelVersionRequest request)

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.

Parameter
NameDescription
requestDeleteModelVersionRequest
Returns
TypeDescription
Operation

exportModel(ExportModelRequest request)

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.

Parameter
NameDescription
requestExportModelRequest
Returns
TypeDescription
Operation

getModel(GetModelRequest request)

public Model getModel(GetModelRequest request)

Gets a Model.

Parameter
NameDescription
requestGetModelRequest
Returns
TypeDescription
Model

getModelEvaluation(GetModelEvaluationRequest request)

public ModelEvaluation getModelEvaluation(GetModelEvaluationRequest request)

Gets a ModelEvaluation.

Parameter
NameDescription
requestGetModelEvaluationRequest
Returns
TypeDescription
ModelEvaluation

getModelEvaluationSlice(GetModelEvaluationSliceRequest request)

public ModelEvaluationSlice getModelEvaluationSlice(GetModelEvaluationSliceRequest request)

Gets a ModelEvaluationSlice.

Parameter
NameDescription
requestGetModelEvaluationSliceRequest
Returns
TypeDescription
ModelEvaluationSlice

importModelEvaluation(ImportModelEvaluationRequest request)

public ModelEvaluation importModelEvaluation(ImportModelEvaluationRequest request)

Imports an externally generated ModelEvaluation.

Parameter
NameDescription
requestImportModelEvaluationRequest
Returns
TypeDescription
ModelEvaluation

listModelEvaluationSlices(ListModelEvaluationSlicesRequest request)

public ListModelEvaluationSlicesResponse listModelEvaluationSlices(ListModelEvaluationSlicesRequest request)

Lists ModelEvaluationSlices in a ModelEvaluation.

Parameter
NameDescription
requestListModelEvaluationSlicesRequest
Returns
TypeDescription
ListModelEvaluationSlicesResponse

listModelEvaluations(ListModelEvaluationsRequest request)

public ListModelEvaluationsResponse listModelEvaluations(ListModelEvaluationsRequest request)

Lists ModelEvaluations in a Model.

Parameter
NameDescription
requestListModelEvaluationsRequest
Returns
TypeDescription
ListModelEvaluationsResponse

listModelVersions(ListModelVersionsRequest request)

public ListModelVersionsResponse listModelVersions(ListModelVersionsRequest request)

Lists versions of the specified model.

Parameter
NameDescription
requestListModelVersionsRequest
Returns
TypeDescription
ListModelVersionsResponse

listModels(ListModelsRequest request)

public ListModelsResponse listModels(ListModelsRequest request)

Lists Models in a Location.

Parameter
NameDescription
requestListModelsRequest
Returns
TypeDescription
ListModelsResponse

mergeVersionAliases(MergeVersionAliasesRequest request)

public Model mergeVersionAliases(MergeVersionAliasesRequest request)

Merges a set of aliases for a Model version.

Parameter
NameDescription
requestMergeVersionAliasesRequest
Returns
TypeDescription
Model

updateExplanationDataset(UpdateExplanationDatasetRequest request)

public Operation updateExplanationDataset(UpdateExplanationDatasetRequest request)

Incrementally update the dataset used for an examples model.

Parameter
NameDescription
requestUpdateExplanationDatasetRequest
Returns
TypeDescription
Operation

updateModel(UpdateModelRequest request)

public Model updateModel(UpdateModelRequest request)

Updates a Model.

Parameter
NameDescription
requestUpdateModelRequest
Returns
TypeDescription
Model

uploadModel(UploadModelRequest request)

public Operation uploadModel(UploadModelRequest request)

Uploads a Model artifact into Vertex AI.

Parameter
NameDescription
requestUploadModelRequest
Returns
TypeDescription
Operation