ModelService class final
Provides methods for getting metadata information about Generative Models.
Constructors
- ModelService({required Client client})
-
Creates a
ModelServiceusingclientfor transport. - ModelService.fromApiKey([String? apiKey])
-
Creates a
ModelServicethat 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
-
cancelOperation(
CancelOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
close(
) → void - Closes the client and cleans up any resources associated with it.
-
createTunedModel(
CreateTunedModelRequest request) → Future< Operation< TunedModel, CreateTunedModelMetadata> > -
Creates a tuned model.
Check intermediate tuning progress (if any) through the
google.longrunning.Operationsservice. -
deleteOperation(
DeleteOperationRequest request) → Future< void> -
Provides the
Operationsservice functionality in this service. -
deleteTunedModel(
DeleteTunedModelRequest request) → Future< void> - Deletes a tuned model.
-
getModel(
GetModelRequest request) → Future< Model> -
Gets information about a specific
Modelsuch as its version number, token limits, parameters and other metadata. Refer to the Gemini models guide for detailed model information. -
getOperation<
T extends ProtoMessage, S extends ProtoMessage> (Operation< T, S> request) → Future<Operation< T, S> > -
Provides the
Operationsservice functionality in this service. -
getTunedModel(
GetTunedModelRequest request) → Future< TunedModel> - Gets information about a specific TunedModel.
-
listModels(
ListModelsRequest request) → Future< ListModelsResponse> -
Lists the
Models available through the Gemini API. -
listOperations(
ListOperationsRequest request) → Future< ListOperationsResponse> -
Provides the
Operationsservice functionality in this service. -
listTunedModels(
ListTunedModelsRequest request) → Future< ListTunedModelsResponse> - Lists created tuned models.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateTunedModel(
UpdateTunedModelRequest request) → Future< TunedModel> - Updates a tuned model.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited