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 CachedContent
build()
abstract CachedContent.Builder
createTime
(Instant createTime) Setter for createTime.abstract CachedContent.Builder
displayName
(String displayName) Setter for displayName.abstract CachedContent.Builder
expireTime
(Instant expireTime) Setter for expireTime.abstract CachedContent.Builder
Setter for model.abstract CachedContent.Builder
Setter for name.abstract CachedContent.Builder
updateTime
(Instant updateTime) Setter for updateTime.abstract CachedContent.Builder
usageMetadata
(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
-