Interface CountTokensResponseOrBuilder (3.48.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
Type Description
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
Type Description
int

The totalTokens.