ModelService class final

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

Constructors

ModelService({required Client client})
Creates a ModelService using client for transport.
ModelService.fromApiKey([String? apiKey])
Creates a ModelService that does authentication through an API key.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

batchImportEvaluatedAnnotations(BatchImportEvaluatedAnnotationsRequest request) Future<BatchImportEvaluatedAnnotationsResponse>
Imports a list of externally generated EvaluatedAnnotations.
batchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest request) Future<BatchImportModelEvaluationSlicesResponse>
Imports a list of externally generated ModelEvaluationSlice.
cancelOperation(CancelOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
close() → void
Closes the client and cleans up any resources associated with it.
copyModel(CopyModelRequest request) Future<Operation<CopyModelResponse, CopyModelOperationMetadata>>
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.
deleteModel(DeleteModelRequest request) Future<Operation<Empty, DeleteOperationMetadata>>
Deletes a Model.
deleteModelVersion(DeleteModelVersionRequest request) Future<Operation<Empty, DeleteOperationMetadata>>
Deletes a Model version.
deleteOperation(DeleteOperationRequest request) Future<void>
Provides the Operations service functionality in this service.
exportModel(ExportModelRequest request) Future<Operation<ExportModelResponse, ExportModelOperationMetadata>>
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 google.cloud.aiplatform.v1beta1.Model.supported_export_formats.
getIamPolicy(GetIamPolicyRequest request) Future<Policy>
Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.
getLocation(GetLocationRequest request) Future<Location>
Gets information about a location.
getModel(GetModelRequest request) Future<Model>
Gets a Model.
getModelEvaluation(GetModelEvaluationRequest request) Future<ModelEvaluation>
Gets a ModelEvaluation.
getModelEvaluationSlice(GetModelEvaluationSliceRequest request) Future<ModelEvaluationSlice>
Gets a ModelEvaluationSlice.
getOperation<T extends ProtoMessage, S extends ProtoMessage>(Operation<T, S> request) Future<Operation<T, S>>
Provides the Operations service functionality in this service.
importModelEvaluation(ImportModelEvaluationRequest request) Future<ModelEvaluation>
Imports an externally generated ModelEvaluation.
listLocations(ListLocationsRequest request) Future<ListLocationsResponse>
Lists information about the supported locations for this service.
listModelEvaluations(ListModelEvaluationsRequest request) Future<ListModelEvaluationsResponse>
Lists ModelEvaluations in a Model.
listModelEvaluationSlices(ListModelEvaluationSlicesRequest request) Future<ListModelEvaluationSlicesResponse>
Lists ModelEvaluationSlices in a ModelEvaluation.
listModels(ListModelsRequest request) Future<ListModelsResponse>
Lists Models in a Location.
listModelVersionCheckpoints(ListModelVersionCheckpointsRequest request) Future<ListModelVersionCheckpointsResponse>
Lists checkpoints of the specified model version.
listModelVersions(ListModelVersionsRequest request) Future<ListModelVersionsResponse>
Lists versions of the specified model.
listOperations(ListOperationsRequest request) Future<ListOperationsResponse>
Provides the Operations service functionality in this service.
mergeVersionAliases(MergeVersionAliasesRequest request) Future<Model>
Merges a set of aliases for a Model version.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recommendSpec(RecommendSpecRequest request) Future<RecommendSpecResponse>
Gets a Model's spec recommendations.
setIamPolicy(SetIamPolicyRequest request) Future<Policy>
Sets the access control policy on the specified resource. Replaces any existing policy.
testIamPermissions(TestIamPermissionsRequest request) Future<TestIamPermissionsResponse>
Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error.
toString() String
A string representation of this object.
inherited
updateExplanationDataset(UpdateExplanationDatasetRequest request) Future<Operation<UpdateExplanationDatasetResponse, UpdateExplanationDatasetOperationMetadata>>
Incrementally update the dataset used for an examples model.
updateModel(UpdateModelRequest request) Future<Model>
Updates a Model.
uploadModel(UploadModelRequest request) Future<Operation<UploadModelResponse, UploadModelOperationMetadata>>
Uploads a Model artifact into Vertex AI.
waitOperation(WaitOperationRequest request) Future<Operation<ProtoMessage, ProtoMessage>>
Provides the Operations service functionality in this service.

Operators

operator ==(Object other) bool
The equality operator.
inherited