Service Client: Google::Ai::Generativelanguage::V1alpha::ModelService::ModelServiceClient
Client stub representing the remote ModelService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Ai::Generativelanguage::V1alpha::ModelService - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1alpha/model_service.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1alpha::ModelService;
my $msg = Google::Ai::Generativelanguage::V1alpha::ModelService::GetModelRequest->new({
name => $name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1alpha::ModelService::GetModelRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1alpha/model_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Ai::Generativelanguage::V1alpha::ModelService::GetModelRequest
Request for getting information about a specific Model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the model.
This name should match a model name returned by the `ListModels` method.
Format: `models/{model}`
Google::Ai::Generativelanguage::V1alpha::ModelService::ListModelsRequest
Request for listing all Models.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of `Models` to return (per page).
If unspecified, 50 models will be returned per page. This method returns at most 1000 models per page, even if you pass a larger page_size.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListModels` call.
Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page.
When paginating, all other parameters provided to `ListModels` must match the call that provided the page token.
Google::Ai::Generativelanguage::V1alpha::ModelService::ListModelsResponse
Response from `ListModel` containing a paginated list of Models.
Inherits from Protobuf::Message.
Accessors
$msg->models()/$msg->models($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::Model::Model)The returned Models.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no more pages.
Google::Ai::Generativelanguage::V1alpha::ModelService::GetTunedModelRequest
Request for getting information about a specific Model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the model.
Format: `tunedModels/my-model-id`
Google::Ai::Generativelanguage::V1alpha::ModelService::ListTunedModelsRequest
Request for listing TunedModels.
Inherits from Protobuf::Message.
Accessors
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of `TunedModels` to return (per page). The service may return fewer tuned models.
If unspecified, at most 10 tuned models will be returned. This method returns at most 1000 models per page, even if you pass a larger page_size.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListTunedModels` call.
Provide the `page_token` returned by one request as an argument to the next request to retrieve the next page.
When paginating, all other parameters provided to `ListTunedModels` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter is a full text search over the tuned model's description and display name. By default, results will not include tuned models shared with everyone.
Additional operators: - owner:me - writers:me - readers:me - readers:everyone
Examples: "owner:me" returns all tuned models to which caller has owner role "readers:me" returns all tuned models to which caller has reader role "readers:everyone" returns all tuned models that are shared with everyone
Google::Ai::Generativelanguage::V1alpha::ModelService::ListTunedModelsResponse
Response from `ListTunedModels` containing a paginated list of Models.
Inherits from Protobuf::Message.
Accessors
$msg->tuned_models()/$msg->tuned_models($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::TunedModel::TunedModel)The returned Models.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page.
If this field is omitted, there are no more pages.
Google::Ai::Generativelanguage::V1alpha::ModelService::CreateTunedModelRequest
Request to create a TunedModel.
Inherits from Protobuf::Message.
Accessors
$msg->tuned_model_id()/$msg->tuned_model_id($value)Type:
StringOptional. The unique id for the tuned model if specified. This value should be up to 40 characters, the first character must be a letter, the last could be a letter or a number. The id must match the regular expression: `[a-z]([a-z0-9-]{0,38}[a-z0-9])?`.
$msg->tuned_model()/$msg->tuned_model($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::TunedModel::TunedModel)Required. The tuned model to create.
Google::Ai::Generativelanguage::V1alpha::ModelService::CreateTunedModelMetadata
Metadata about the state and progress of creating a tuned model returned from the long-running operation
Inherits from Protobuf::Message.
Accessors
$msg->tuned_model()/$msg->tuned_model($value)Type:
StringName of the tuned model associated with the tuning operation.
$msg->total_steps()/$msg->total_steps($value)Type:
Int32The total number of tuning steps.
$msg->completed_steps()/$msg->completed_steps($value)Type:
Int32The number of steps completed.
$msg->completed_percent()/$msg->completed_percent($value)Type:
FloatThe completed percentage for the tuning operation.
$msg->snapshots()/$msg->snapshots($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::TunedModel::TuningSnapshot)Metrics collected during tuning.
Google::Ai::Generativelanguage::V1alpha::ModelService::UpdateTunedModelRequest
Request to update a TunedModel.
Inherits from Protobuf::Message.
Accessors
$msg->tuned_model()/$msg->tuned_model($value)Type:
Message(Google::Ai::Generativelanguage::V1alpha::TunedModel::TunedModel)Required. The tuned model to update.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to update.
Google::Ai::Generativelanguage::V1alpha::ModelService::DeleteTunedModelRequest
Request to delete a TunedModel.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the model. Format: `tunedModels/my-model-id`
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1alpha::ModelService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.