Package com.google.genai.types
Class CachedContent.Builder
java.lang.Object
com.google.genai.types.CachedContent.Builder
- Enclosing class:
- CachedContent
Builder for CachedContent.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CachedContentbuild()abstract CachedContent.BuildercreateTime(Instant createTime) Setter for createTime.abstract CachedContent.BuilderdisplayName(String displayName) Setter for displayName.abstract CachedContent.BuilderexpireTime(Instant expireTime) Setter for expireTime.abstract CachedContent.BuilderSetter for model.abstract CachedContent.BuilderSetter for name.abstract CachedContent.BuilderupdateTime(Instant updateTime) Setter for updateTime.abstract CachedContent.BuilderusageMetadata(CachedContentUsageMetadata usageMetadata) Setter for usageMetadata.usageMetadata(CachedContentUsageMetadata.Builder usageMetadataBuilder) Setter for usageMetadata builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: The server-generated resource name of the cached content.
-
displayName
Setter for displayName.displayName: The user-generated meaningful display name of the cached content.
-
model
Setter for model.model: The name of the publisher model to use for cached content.
-
createTime
Setter for createTime.createTime: Creation time of the cache entry.
-
updateTime
Setter for updateTime.updateTime: When the cache entry was last updated in UTC time.
-
expireTime
Setter for expireTime.expireTime: Expiration time of the cached content.
-
usageMetadata
Setter for usageMetadata.usageMetadata: Metadata on the usage of the cached content.
-
usageMetadata
Setter for usageMetadata builder.usageMetadata: Metadata on the usage of the cached content.
-
build
-