public static final class CachedContent.UsageMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<CachedContent.UsageMetadata.Builder> implements CachedContent.UsageMetadataOrBuilder
Metadata on the usage of the cached content.Protobuf type
google.cloud.aiplatform.v1.CachedContent.UsageMetadataaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.UsageMetadata.Builder>public CachedContent.UsageMetadata.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.UsageMetadata.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.UsageMetadata.Builder>public CachedContent.UsageMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CachedContent.UsageMetadata build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CachedContent.UsageMetadata buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CachedContent.UsageMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CachedContent.UsageMetadata.Builder>public CachedContent.UsageMetadata.Builder mergeFrom(CachedContent.UsageMetadata other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CachedContent.UsageMetadata.Builder>public CachedContent.UsageMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CachedContent.UsageMetadata.Builder>IOExceptionpublic int getTotalTokenCount()
Total number of tokens that the cached content consumes.
int32 total_token_count = 1;getTotalTokenCount in interface CachedContent.UsageMetadataOrBuilderpublic CachedContent.UsageMetadata.Builder setTotalTokenCount(int value)
Total number of tokens that the cached content consumes.
int32 total_token_count = 1;value - The totalTokenCount to set.public CachedContent.UsageMetadata.Builder clearTotalTokenCount()
Total number of tokens that the cached content consumes.
int32 total_token_count = 1;public int getTextCount()
Number of text characters.
int32 text_count = 2;getTextCount in interface CachedContent.UsageMetadataOrBuilderpublic CachedContent.UsageMetadata.Builder setTextCount(int value)
Number of text characters.
int32 text_count = 2;value - The textCount to set.public CachedContent.UsageMetadata.Builder clearTextCount()
Number of text characters.
int32 text_count = 2;public int getImageCount()
Number of images.
int32 image_count = 3;getImageCount in interface CachedContent.UsageMetadataOrBuilderpublic CachedContent.UsageMetadata.Builder setImageCount(int value)
Number of images.
int32 image_count = 3;value - The imageCount to set.public CachedContent.UsageMetadata.Builder clearImageCount()
Number of images.
int32 image_count = 3;public int getVideoDurationSeconds()
Duration of video in seconds.
int32 video_duration_seconds = 4;getVideoDurationSeconds in interface CachedContent.UsageMetadataOrBuilderpublic CachedContent.UsageMetadata.Builder setVideoDurationSeconds(int value)
Duration of video in seconds.
int32 video_duration_seconds = 4;value - The videoDurationSeconds to set.public CachedContent.UsageMetadata.Builder clearVideoDurationSeconds()
Duration of video in seconds.
int32 video_duration_seconds = 4;public int getAudioDurationSeconds()
Duration of audio in seconds.
int32 audio_duration_seconds = 5;getAudioDurationSeconds in interface CachedContent.UsageMetadataOrBuilderpublic CachedContent.UsageMetadata.Builder setAudioDurationSeconds(int value)
Duration of audio in seconds.
int32 audio_duration_seconds = 5;value - The audioDurationSeconds to set.public CachedContent.UsageMetadata.Builder clearAudioDurationSeconds()
Duration of audio in seconds.
int32 audio_duration_seconds = 5;Copyright © 2026 Google LLC. All rights reserved.