Google Cloud Gemini Data Analytics V1beta Client - Class TokenUsage (0.14.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class TokenUsage.

Overall token usage tracking for the response.

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.TokenUsage

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ input_token_count int

The total number of input tokens used in this request.

↳ output_token_count int

The total number of output tokens used in this request.

getInputTokenCount

The total number of input tokens used in this request.

Returns
Type Description
int

setInputTokenCount

The total number of input tokens used in this request.

Parameter
Name Description
var int
Returns
Type Description
$this

getOutputTokenCount

The total number of output tokens used in this request.

Returns
Type Description
int

setOutputTokenCount

The total number of output tokens used in this request.

Parameter
Name Description
var int
Returns
Type Description
$this