Class CachedContent.UsageMetadata (1.35.0)

publicstaticfinalclass CachedContent.UsageMetadataextendsGeneratedMessageV3implementsCachedContent.UsageMetadataOrBuilder

Metadata on the usage of the cached content.

Protobuf type google.cloud.vertexai.v1.CachedContent.UsageMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

AUDIO_DURATION_SECONDS_FIELD_NUMBER

publicstaticfinalintAUDIO_DURATION_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_COUNT_FIELD_NUMBER

publicstaticfinalintIMAGE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TEXT_COUNT_FIELD_NUMBER

publicstaticfinalintTEXT_COUNT_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_TOKEN_COUNT_FIELD_NUMBER

publicstaticfinalintTOTAL_TOKEN_COUNT_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_DURATION_SECONDS_FIELD_NUMBER

publicstaticfinalintVIDEO_DURATION_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticCachedContent.UsageMetadatagetDefaultInstance()
Returns
Type Description
CachedContent.UsageMetadata

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticCachedContent.UsageMetadata.BuildernewBuilder()
Returns
Type Description
CachedContent.UsageMetadata.Builder

newBuilder(CachedContent.UsageMetadata prototype)

publicstaticCachedContent.UsageMetadata.BuildernewBuilder(CachedContent.UsageMetadataprototype)
Parameter
Name Description
prototype CachedContent.UsageMetadata
Returns
Type Description
CachedContent.UsageMetadata.Builder

parseDelimitedFrom(InputStream input)

publicstaticCachedContent.UsageMetadataparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticCachedContent.UsageMetadataparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticCachedContent.UsageMetadataparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticCachedContent.UsageMetadataparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticCachedContent.UsageMetadataparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticCachedContent.UsageMetadataparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticCachedContent.UsageMetadataparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CachedContent.UsageMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<CachedContent.UsageMetadata>parser()
Returns
Type Description
Parser<UsageMetadata>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAudioDurationSeconds()

publicintgetAudioDurationSeconds()

Duration of audio in seconds.

int32 audio_duration_seconds = 5;

Returns
Type Description
int

The audioDurationSeconds.

getDefaultInstanceForType()

publicCachedContent.UsageMetadatagetDefaultInstanceForType()
Returns
Type Description
CachedContent.UsageMetadata

getImageCount()

publicintgetImageCount()

Number of images.

int32 image_count = 3;

Returns
Type Description
int

The imageCount.

getParserForType()

publicParser<CachedContent.UsageMetadata>getParserForType()
Returns
Type Description
Parser<UsageMetadata>
Overrides

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getTextCount()

publicintgetTextCount()

Number of text characters.

int32 text_count = 2;

Returns
Type Description
int

The textCount.

getTotalTokenCount()

publicintgetTotalTokenCount()

Total number of tokens that the cached content consumes.

int32 total_token_count = 1;

Returns
Type Description
int

The totalTokenCount.

getVideoDurationSeconds()

publicintgetVideoDurationSeconds()

Duration of video in seconds.

int32 video_duration_seconds = 4;

Returns
Type Description
int

The videoDurationSeconds.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicCachedContent.UsageMetadata.BuildernewBuilderForType()
Returns
Type Description
CachedContent.UsageMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedCachedContent.UsageMetadata.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CachedContent.UsageMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicCachedContent.UsageMetadata.BuildertoBuilder()
Returns
Type Description
CachedContent.UsageMetadata.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.