Package com.google.genai.types
Class CachedContentUsageMetadata.Builder
java.lang.Object
com.google.genai.types.CachedContentUsageMetadata.Builder
- Enclosing class:
- CachedContentUsageMetadata
Builder for CachedContentUsageMetadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CachedContentUsageMetadata.BuilderaudioDurationSeconds(Integer audioDurationSeconds) Setter for audioDurationSeconds.abstract CachedContentUsageMetadatabuild()Clears the value of audioDurationSeconds field.Clears the value of imageCount field.Clears the value of textCount field.Clears the value of totalTokenCount field.Clears the value of videoDurationSeconds field.abstract CachedContentUsageMetadata.BuilderimageCount(Integer imageCount) Setter for imageCount.abstract CachedContentUsageMetadata.BuilderSetter for textCount.abstract CachedContentUsageMetadata.BuildertotalTokenCount(Integer totalTokenCount) Setter for totalTokenCount.abstract CachedContentUsageMetadata.BuildervideoDurationSeconds(Integer videoDurationSeconds) Setter for videoDurationSeconds.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
audioDurationSeconds
public abstract CachedContentUsageMetadata.Builder audioDurationSeconds(Integer audioDurationSeconds) Setter for audioDurationSeconds.audioDurationSeconds: Duration of audio in seconds. This field is not supported in Gemini API.
-
clearAudioDurationSeconds
Clears the value of audioDurationSeconds field. -
imageCount
Setter for imageCount.imageCount: Number of images. This field is not supported in Gemini API.
-
clearImageCount
Clears the value of imageCount field. -
textCount
Setter for textCount.textCount: Number of text characters. This field is not supported in Gemini API.
-
clearTextCount
Clears the value of textCount field. -
totalTokenCount
Setter for totalTokenCount.totalTokenCount: Total number of tokens that the cached content consumes.
-
clearTotalTokenCount
Clears the value of totalTokenCount field. -
videoDurationSeconds
public abstract CachedContentUsageMetadata.Builder videoDurationSeconds(Integer videoDurationSeconds) Setter for videoDurationSeconds.videoDurationSeconds: Duration of video in seconds. This field is not supported in Gemini API.
-
clearVideoDurationSeconds
Clears the value of videoDurationSeconds field. -
build
-