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

    Required. 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: String

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

    Examples:

    * `chat-bison`

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

    Type: String

    Required. The version number of the model.

    This represents the major version

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

    Type: String

    The 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: 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 method names are defined as Pascal case strings, such as `generateMessage` which correspond to API methods.

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

    Type: Float

    Controls 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: Float

    For 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: 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.

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.