Package com.google.cloud.aiplatform.v1
Interface CachedContent.UsageMetadataOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CachedContent.UsageMetadata,CachedContent.UsageMetadata.Builder
- Enclosing class:
- CachedContent
public static interface CachedContent.UsageMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintDuration of audio in seconds.intNumber of images.intNumber of text characters.intTotal number of tokens that the cached content consumes.intDuration of video in seconds.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getTotalTokenCount
int getTotalTokenCount()Total number of tokens that the cached content consumes.
int32 total_token_count = 1;- Returns:
- The totalTokenCount.
-
getTextCount
int getTextCount()Number of text characters.
int32 text_count = 2;- Returns:
- The textCount.
-
getImageCount
int getImageCount()Number of images.
int32 image_count = 3;- Returns:
- The imageCount.
-
getVideoDurationSeconds
int getVideoDurationSeconds()Duration of video in seconds.
int32 video_duration_seconds = 4;- Returns:
- The videoDurationSeconds.
-
getAudioDurationSeconds
int getAudioDurationSeconds()Duration of audio in seconds.
int32 audio_duration_seconds = 5;- Returns:
- The audioDurationSeconds.
-