NAME
Google::Ai::Generativelanguage::V1beta3::Model - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta3/model.proto
SYNOPSIS
use Google::Ai::Generativelanguage::V1beta3::Model;
my $msg = Google::Ai::Generativelanguage::V1beta3::Model::Model->new({
name => $name,
base_model_id => $base_model_id,
version => $version,
display_name => $display_name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Ai::Generativelanguage::V1beta3::Model::Model->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta3/model.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::V1beta3::Model::Model
Information about a Generative Language Model.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the `Model`.
Format: `models/{model}` with a `{model}` naming convention of:
* "{base_model_id}-{version}"
Examples:
* `models/chat-bison-001`
$msg->base_model_id()/$msg->base_model_id($value)Type:
StringRequired. The name of the base model, pass this to the generation request.
Examples:
* `chat-bison`
$msg->version()/$msg->version($value)Type:
StringRequired. The version number of the model.
This represents the major version
$msg->display_name()/$msg->display_name($value)Type:
StringThe human-readable name of the model. E.g. "Chat Bison".
The name can be up to 128 characters long and can consist of any UTF-8 characters.
$msg->description()/$msg->description($value)Type:
StringA short description of the model.
$msg->input_token_limit()/$msg->input_token_limit($value)Type:
Int32Maximum number of input tokens allowed for this model.
$msg->output_token_limit()/$msg->output_token_limit($value)Type:
Int32Maximum number of output tokens available for this model.
$msg->supported_generation_methods()/$msg->supported_generation_methods($value)Type:
StringThe model's supported generation methods.
The method names are defined as Pascal case strings, such as `generateMessage` which correspond to API methods.
$msg->temperature()/$msg->temperature($value)Type:
FloatControls the randomness of the output.
Values can range over `[0.0,1.0]`, inclusive. A value closer to `1.0` will produce responses that are more varied, while a value closer to `0.0` will typically result in less surprising responses from the model. This value specifies default to be used by the backend while making the call to the model.
$msg->top_p()/$msg->top_p($value)Type:
FloatFor Nucleus sampling.
Nucleus sampling considers the smallest set of tokens whose probability sum is at least `top_p`. This value specifies default to be used by the backend while making the call to the model.
$msg->top_k()/$msg->top_k($value)Type:
Int32For Top-k sampling.
Top-k sampling considers the set of `top_k` most probable tokens. This value specifies default to be used by the backend while making the call to the model.
SEE ALSO
Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta3::Model::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.