NAME

Google::Cloud::Geminidataanalytics::V1beta::Usage - Compiled Protocol Buffers messages for google/cloud/geminidataanalytics/v1beta/usage.proto

SYNOPSIS

use Google::Cloud::Geminidataanalytics::V1beta::Usage;

my $msg = Google::Cloud::Geminidataanalytics::V1beta::Usage::TokenUsage->new({
    input_token_count => $input_token_count,
    output_token_count => $output_token_count,
});

# Read or update a field
my $val = $msg->input_token_count();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Geminidataanalytics::V1beta::Usage::TokenUsage->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/geminidataanalytics/v1beta/usage.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Geminidataanalytics::V1beta::Usage::TokenUsage

Overall token usage tracking for the response.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int32

    The total number of input tokens used in this request.

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

    Type: Int32

    The total number of output tokens used in this request.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Geminidataanalytics::V1beta::Usage::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.