Interface CountTokensResponseOrBuilder (3.37.0)

public interface CountTokensResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getTotalBillableCharacters()

public abstract int getTotalBillableCharacters()

The total number of billable characters counted across all instances from the request.

int32 total_billable_characters = 2;

Returns
TypeDescription
int

The totalBillableCharacters.

getTotalTokens()

public abstract int getTotalTokens()

The total number of tokens counted across all instances from the request.

int32 total_tokens = 1;

Returns
TypeDescription
int

The totalTokens.