NAME

Google::Ai::Generativelanguage::V1beta::Model - Compiled Protocol Buffers messages for google/ai/generativelanguage/v1beta/model.proto

SYNOPSIS

use Google::Ai::Generativelanguage::V1beta::Model;

my $msg = Google::Ai::Generativelanguage::V1beta::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::V1beta::Model::Model->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/ai/generativelanguage/v1beta/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::V1beta::Model::Model

Information about a Generative Language Model.

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the `Model`. Refer to [Model variants](https://ai.google.dev/gemini-api/docs/models/gemini#model-variations) for all allowed values.

    Format: `models/{model}` with a `{model}` naming convention of:

    * "{base_model_id}-{version}"

    Examples:

    * `models/gemini-1.5-flash-001`

  • $msg->base_model_id() / $msg->base_model_id($value)

    Type: String

    Required. The name of the base model, pass this to the generation request.

    Examples:

    * `gemini-1.5-flash`

  • $msg->version() / $msg->version($value)

    Type: String

    Required. The version number of the model.

    This represents the major version (`1.0` or `1.5`)

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    The human-readable name of the model. E.g. "Gemini 1.5 Flash".

    The name can be up to 128 characters long and can consist of any UTF-8 characters.

  • $msg->description() / $msg->description($value)

    Type: String

    A short description of the model.

  • $msg->input_token_limit() / $msg->input_token_limit($value)

    Type: Int32

    Maximum number of input tokens allowed for this model.

  • $msg->output_token_limit() / $msg->output_token_limit($value)

    Type: Int32

    Maximum number of output tokens available for this model.

  • $msg->supported_generation_methods() / $msg->supported_generation_methods($value)

    Type: String

    The model's supported generation methods.

    The corresponding API method names are defined as Pascal case strings, such as `generateMessage` and `generateContent`.

  • $msg->temperature() / $msg->temperature($value)

    Type: Float

    Controls the randomness of the output.

    Values can range over `[0.0,max_temperature]`, inclusive. A higher value 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->max_temperature() / $msg->max_temperature($value)

    Type: Float

    The maximum temperature this model can use.

  • $msg->top_p() / $msg->top_p($value)

    Type: Float

    For [Nucleus sampling](https://ai.google.dev/gemini-api/docs/prompting-strategies#top-p).

    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: Int32

    For 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. If empty, indicates the model doesn't use top-k sampling, and `top_k` isn't allowed as a generation parameter.

  • $msg->thinking() / $msg->thinking($value)

    Type: Bool

    Whether the model supports thinking.

SEE ALSO

Protobuf, Protobuf::Message, Google::Ai::Generativelanguage::V1beta::Model::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.