public static final class CachedContent.UsageMetadata extends com.google.protobuf.GeneratedMessageV3 implements CachedContent.UsageMetadataOrBuilder
Metadata on the usage of the cached content.Protobuf type
google.cloud.vertexai.v1.CachedContent.UsageMetadata| Modifier and Type | Class and Description |
|---|---|
static class |
CachedContent.UsageMetadata.Builder
Metadata on the usage of the cached content.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
AUDIO_DURATION_SECONDS_FIELD_NUMBER |
static int |
IMAGE_COUNT_FIELD_NUMBER |
static int |
TEXT_COUNT_FIELD_NUMBER |
static int |
TOTAL_TOKEN_COUNT_FIELD_NUMBER |
static int |
VIDEO_DURATION_SECONDS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getAudioDurationSeconds()
Duration of audio in seconds.
|
static CachedContent.UsageMetadata |
getDefaultInstance() |
CachedContent.UsageMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getImageCount()
Number of images.
|
com.google.protobuf.Parser<CachedContent.UsageMetadata> |
getParserForType() |
int |
getSerializedSize() |
int |
getTextCount()
Number of text characters.
|
int |
getTotalTokenCount()
Total number of tokens that the cached content consumes.
|
int |
getVideoDurationSeconds()
Duration of video in seconds.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static CachedContent.UsageMetadata.Builder |
newBuilder() |
static CachedContent.UsageMetadata.Builder |
newBuilder(CachedContent.UsageMetadata prototype) |
CachedContent.UsageMetadata.Builder |
newBuilderForType() |
protected CachedContent.UsageMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CachedContent.UsageMetadata |
parseDelimitedFrom(InputStream input) |
static CachedContent.UsageMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CachedContent.UsageMetadata |
parseFrom(byte[] data) |
static CachedContent.UsageMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CachedContent.UsageMetadata |
parseFrom(ByteBuffer data) |
static CachedContent.UsageMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CachedContent.UsageMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static CachedContent.UsageMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CachedContent.UsageMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CachedContent.UsageMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CachedContent.UsageMetadata |
parseFrom(InputStream input) |
static CachedContent.UsageMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CachedContent.UsageMetadata> |
parser() |
CachedContent.UsageMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER
public static final int TEXT_COUNT_FIELD_NUMBER
public static final int IMAGE_COUNT_FIELD_NUMBER
public static final int VIDEO_DURATION_SECONDS_FIELD_NUMBER
public static final int AUDIO_DURATION_SECONDS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getTotalTokenCount()
Total number of tokens that the cached content consumes.
int32 total_token_count = 1;getTotalTokenCount in interface CachedContent.UsageMetadataOrBuilderpublic int getTextCount()
Number of text characters.
int32 text_count = 2;getTextCount in interface CachedContent.UsageMetadataOrBuilderpublic int getImageCount()
Number of images.
int32 image_count = 3;getImageCount in interface CachedContent.UsageMetadataOrBuilderpublic int getVideoDurationSeconds()
Duration of video in seconds.
int32 video_duration_seconds = 4;getVideoDurationSeconds in interface CachedContent.UsageMetadataOrBuilderpublic int getAudioDurationSeconds()
Duration of audio in seconds.
int32 audio_duration_seconds = 5;getAudioDurationSeconds in interface CachedContent.UsageMetadataOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CachedContent.UsageMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CachedContent.UsageMetadata parseFrom(InputStream input) throws IOException
IOExceptionpublic static CachedContent.UsageMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CachedContent.UsageMetadata parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CachedContent.UsageMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CachedContent.UsageMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CachedContent.UsageMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CachedContent.UsageMetadata.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CachedContent.UsageMetadata.Builder newBuilder()
public static CachedContent.UsageMetadata.Builder newBuilder(CachedContent.UsageMetadata prototype)
public CachedContent.UsageMetadata.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CachedContent.UsageMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static CachedContent.UsageMetadata getDefaultInstance()
public static com.google.protobuf.Parser<CachedContent.UsageMetadata> parser()
public com.google.protobuf.Parser<CachedContent.UsageMetadata> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public CachedContent.UsageMetadata getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.