Interface CachedContent.UsageMetadataOrBuilder (3.56.0)

public static interface CachedContent.UsageMetadataOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioDurationSeconds()

public abstract int getAudioDurationSeconds()

Duration of audio in seconds.

int32 audio_duration_seconds = 5;

Returns
Type Description
int

The audioDurationSeconds.

getImageCount()

public abstract int getImageCount()

Number of images.

int32 image_count = 3;

Returns
Type Description
int

The imageCount.

getTextCount()

public abstract int getTextCount()

Number of text characters.

int32 text_count = 2;

Returns
Type Description
int

The textCount.

getTotalTokenCount()

public abstract int getTotalTokenCount()

Total number of tokens that the cached content consumes.

int32 total_token_count = 1;

Returns
Type Description
int

The totalTokenCount.

getVideoDurationSeconds()

public abstract int getVideoDurationSeconds()

Duration of video in seconds.

int32 video_duration_seconds = 4;

Returns
Type Description
int

The videoDurationSeconds.