Class ModelServiceGrpc.ModelServiceFutureStub (3.46.0)

public static final class ModelServiceGrpc.ModelServiceFutureStub extends AbstractFutureStub<ModelServiceGrpc.ModelServiceFutureStub>

A stub to allow clients to do ListenableFuture-style 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.AbstractFutureStub > ModelServiceGrpc.ModelServiceFutureStub

Methods

batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request)

public ListenableFuture<BatchImportEvaluatedAnnotationsResponse> batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request)

Imports a list of externally generated EvaluatedAnnotations.

Parameter
Name Description
request BatchImportEvaluatedAnnotationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<BatchImportEvaluatedAnnotationsResponse>

batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request)

public ListenableFuture<BatchImportModelEvaluationSlicesResponse> batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request)

Imports a list of externally generated ModelEvaluationSlice.

Parameter
Name Description
request BatchImportModelEvaluationSlicesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<BatchImportModelEvaluationSlicesResponse>

build(Channel channel, CallOptions callOptions)

protected ModelServiceGrpc.ModelServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters
Name Description
channel io.grpc.Channel
callOptions io.grpc.CallOptions
Returns
Type Description
ModelServiceGrpc.ModelServiceFutureStub
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)

copyModel(CopyModelRequest request)

public ListenableFuture<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
Name Description
request CopyModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteModel(DeleteModelRequest request)

public ListenableFuture<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
Name Description
request DeleteModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

deleteModelVersion(DeleteModelVersionRequest request)

public ListenableFuture<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
Name Description
request DeleteModelVersionRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

exportModel(ExportModelRequest request)

public ListenableFuture<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
Name Description
request ExportModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

getModel(GetModelRequest request)

public ListenableFuture<Model> getModel(GetModelRequest request)

Gets a Model.

Parameter
Name Description
request GetModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Model>

getModelEvaluation(GetModelEvaluationRequest request)

public ListenableFuture<ModelEvaluation> getModelEvaluation(GetModelEvaluationRequest request)

Gets a ModelEvaluation.

Parameter
Name Description
request GetModelEvaluationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ModelEvaluation>

getModelEvaluationSlice(GetModelEvaluationSliceRequest request)

public ListenableFuture<ModelEvaluationSlice> getModelEvaluationSlice(GetModelEvaluationSliceRequest request)

Gets a ModelEvaluationSlice.

Parameter
Name Description
request GetModelEvaluationSliceRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ModelEvaluationSlice>

importModelEvaluation(ImportModelEvaluationRequest request)

public ListenableFuture<ModelEvaluation> importModelEvaluation(ImportModelEvaluationRequest request)

Imports an externally generated ModelEvaluation.

Parameter
Name Description
request ImportModelEvaluationRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ModelEvaluation>

listModelEvaluationSlices(ListModelEvaluationSlicesRequest request)

public ListenableFuture<ListModelEvaluationSlicesResponse> listModelEvaluationSlices(ListModelEvaluationSlicesRequest request)

Lists ModelEvaluationSlices in a ModelEvaluation.

Parameter
Name Description
request ListModelEvaluationSlicesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListModelEvaluationSlicesResponse>

listModelEvaluations(ListModelEvaluationsRequest request)

public ListenableFuture<ListModelEvaluationsResponse> listModelEvaluations(ListModelEvaluationsRequest request)

Lists ModelEvaluations in a Model.

Parameter
Name Description
request ListModelEvaluationsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListModelEvaluationsResponse>

listModelVersions(ListModelVersionsRequest request)

public ListenableFuture<ListModelVersionsResponse> listModelVersions(ListModelVersionsRequest request)

Lists versions of the specified model.

Parameter
Name Description
request ListModelVersionsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListModelVersionsResponse>

listModels(ListModelsRequest request)

public ListenableFuture<ListModelsResponse> listModels(ListModelsRequest request)

Lists Models in a Location.

Parameter
Name Description
request ListModelsRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<ListModelsResponse>

mergeVersionAliases(MergeVersionAliasesRequest request)

public ListenableFuture<Model> mergeVersionAliases(MergeVersionAliasesRequest request)

Merges a set of aliases for a Model version.

Parameter
Name Description
request MergeVersionAliasesRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Model>

updateExplanationDataset(UpdateExplanationDatasetRequest request)

public ListenableFuture<Operation> updateExplanationDataset(UpdateExplanationDatasetRequest request)

Incrementally update the dataset used for an examples model.

Parameter
Name Description
request UpdateExplanationDatasetRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>

updateModel(UpdateModelRequest request)

public ListenableFuture<Model> updateModel(UpdateModelRequest request)

Updates a Model.

Parameter
Name Description
request UpdateModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Model>

uploadModel(UploadModelRequest request)

public ListenableFuture<Operation> uploadModel(UploadModelRequest request)

Uploads a Model artifact into Vertex AI.

Parameter
Name Description
request UploadModelRequest
Returns
Type Description
com.google.common.util.concurrent.ListenableFuture<Operation>