Data Analytics API with Gemini V1BETA API - Class Google::Cloud::GeminiDataAnalytics::V1beta::TokenUsage (v1.2.0)

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA API class Google::Cloud::GeminiDataAnalytics::V1beta::TokenUsage.

Overall token usage tracking for the response.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#input_token_count

def input_token_count() -> ::Integer
Returns
  • (::Integer) — The total number of input tokens used in this request.

#input_token_count=

def input_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of input tokens used in this request.
Returns
  • (::Integer) — The total number of input tokens used in this request.

#output_token_count

def output_token_count() -> ::Integer
Returns
  • (::Integer) — The total number of output tokens used in this request.

#output_token_count=

def output_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — The total number of output tokens used in this request.
Returns
  • (::Integer) — The total number of output tokens used in this request.