Package com.google.genai.types
Class CachedContentUsageMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CachedContentUsageMetadata
Metadata on the usage of the cached content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CachedContentUsageMetadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDuration of audio in seconds.builder()
Instantiates a builder for CachedContentUsageMetadata.static CachedContentUsageMetadata
Deserializes a JSON string to a CachedContentUsageMetadata object.Number of images.Number of text characters.abstract CachedContentUsageMetadata.Builder
Creates a builder with the same values as this instance.Total number of tokens that the cached content consumes.Duration of video in seconds.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CachedContentUsageMetadata
public CachedContentUsageMetadata()
-
-
Method Details
-
audioDurationSeconds
Duration of audio in seconds. -
imageCount
Number of images. -
textCount
Number of text characters. -
totalTokenCount
Total number of tokens that the cached content consumes. -
videoDurationSeconds
Duration of video in seconds. -
builder
Instantiates a builder for CachedContentUsageMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CachedContentUsageMetadata object.
-