Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata (v0.44.0)

Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::GenerateContentResponse::UsageMetadata.

Usage metadata about response(s).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#candidates_token_count

def candidates_token_count() -> ::Integer
Returns
  • (::Integer) — Number of tokens in the response(s).

#candidates_token_count=

def candidates_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of tokens in the response(s).
Returns
  • (::Integer) — Number of tokens in the response(s).

#prompt_token_count

def prompt_token_count() -> ::Integer
Returns
  • (::Integer) — Number of tokens in the request.

#prompt_token_count=

def prompt_token_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Number of tokens in the request.
Returns
  • (::Integer) — Number of tokens in the request.

#total_token_count

def total_token_count() -> ::Integer
Returns
  • (::Integer)

#total_token_count=

def total_token_count=(value) -> ::Integer
Parameter
  • value (::Integer)
Returns
  • (::Integer)