Interface ModelServiceGrpc.AsyncService (3.33.0)

public static interface ModelServiceGrpc.AsyncService

A service for managing Vertex AI's machine learning Models.

Methods

batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request, StreamObserver<BatchImportEvaluatedAnnotationsResponse> responseObserver)

public default void batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request, StreamObserver<BatchImportEvaluatedAnnotationsResponse> responseObserver)

Imports a list of externally generated EvaluatedAnnotations.

Parameters
NameDescription
requestBatchImportEvaluatedAnnotationsRequest
responseObserverio.grpc.stub.StreamObserver<BatchImportEvaluatedAnnotationsResponse>

batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request, StreamObserver<BatchImportModelEvaluationSlicesResponse> responseObserver)

public default void batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request, StreamObserver<BatchImportModelEvaluationSlicesResponse> responseObserver)

Imports a list of externally generated ModelEvaluationSlice.

Parameters
NameDescription
requestBatchImportModelEvaluationSlicesRequest
responseObserverio.grpc.stub.StreamObserver<BatchImportModelEvaluationSlicesResponse>

copyModel(CopyModelRequest request, StreamObserver<Operation> responseObserver)

public default void copyModel(CopyModelRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestCopyModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

public default void deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)

Deletes a Model. A model cannot be deleted if any Endpoint resource has a DeployedModel based on the model in its deployed_models field.

Parameters
NameDescription
requestDeleteModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

deleteModelVersion(DeleteModelVersionRequest request, StreamObserver<Operation> responseObserver)

public default void deleteModelVersion(DeleteModelVersionRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestDeleteModelVersionRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

public default void exportModel(ExportModelRequest request, StreamObserver<Operation> responseObserver)

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.

Parameters
NameDescription
requestExportModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

public default void getModel(GetModelRequest request, StreamObserver<Model> responseObserver)

Gets a Model.

Parameters
NameDescription
requestGetModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>

getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

public default void getModelEvaluation(GetModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

Gets a ModelEvaluation.

Parameters
NameDescription
requestGetModelEvaluationRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluation>

getModelEvaluationSlice(GetModelEvaluationSliceRequest request, StreamObserver<ModelEvaluationSlice> responseObserver)

public default void getModelEvaluationSlice(GetModelEvaluationSliceRequest request, StreamObserver<ModelEvaluationSlice> responseObserver)

Gets a ModelEvaluationSlice.

Parameters
NameDescription
requestGetModelEvaluationSliceRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluationSlice>

importModelEvaluation(ImportModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

public default void importModelEvaluation(ImportModelEvaluationRequest request, StreamObserver<ModelEvaluation> responseObserver)

Imports an externally generated ModelEvaluation.

Parameters
NameDescription
requestImportModelEvaluationRequest
responseObserverio.grpc.stub.StreamObserver<ModelEvaluation>

listModelEvaluationSlices(ListModelEvaluationSlicesRequest request, StreamObserver<ListModelEvaluationSlicesResponse> responseObserver)

public default void listModelEvaluationSlices(ListModelEvaluationSlicesRequest request, StreamObserver<ListModelEvaluationSlicesResponse> responseObserver)

Lists ModelEvaluationSlices in a ModelEvaluation.

Parameters
NameDescription
requestListModelEvaluationSlicesRequest
responseObserverio.grpc.stub.StreamObserver<ListModelEvaluationSlicesResponse>

listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

public default void listModelEvaluations(ListModelEvaluationsRequest request, StreamObserver<ListModelEvaluationsResponse> responseObserver)

Lists ModelEvaluations in a Model.

Parameters
NameDescription
requestListModelEvaluationsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelEvaluationsResponse>

listModelVersions(ListModelVersionsRequest request, StreamObserver<ListModelVersionsResponse> responseObserver)

public default void listModelVersions(ListModelVersionsRequest request, StreamObserver<ListModelVersionsResponse> responseObserver)

Lists versions of the specified model.

Parameters
NameDescription
requestListModelVersionsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelVersionsResponse>

listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

public default void listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)

Lists Models in a Location.

Parameters
NameDescription
requestListModelsRequest
responseObserverio.grpc.stub.StreamObserver<ListModelsResponse>

mergeVersionAliases(MergeVersionAliasesRequest request, StreamObserver<Model> responseObserver)

public default void mergeVersionAliases(MergeVersionAliasesRequest request, StreamObserver<Model> responseObserver)

Merges a set of aliases for a Model version.

Parameters
NameDescription
requestMergeVersionAliasesRequest
responseObserverio.grpc.stub.StreamObserver<Model>

updateExplanationDataset(UpdateExplanationDatasetRequest request, StreamObserver<Operation> responseObserver)

public default void updateExplanationDataset(UpdateExplanationDatasetRequest request, StreamObserver<Operation> responseObserver)

Incrementally update the dataset used for an examples model.

Parameters
NameDescription
requestUpdateExplanationDatasetRequest
responseObserverio.grpc.stub.StreamObserver<Operation>

updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

public default void updateModel(UpdateModelRequest request, StreamObserver<Model> responseObserver)

Updates a Model.

Parameters
NameDescription
requestUpdateModelRequest
responseObserverio.grpc.stub.StreamObserver<Model>

uploadModel(UploadModelRequest request, StreamObserver<Operation> responseObserver)

public default void uploadModel(UploadModelRequest request, StreamObserver<Operation> responseObserver)

Uploads a Model artifact into Vertex AI.

Parameters
NameDescription
requestUploadModelRequest
responseObserverio.grpc.stub.StreamObserver<Operation>