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()Clears the value of createTime field.Clears the value of displayName field.Clears the value of expireTime field.Clears the value of model field.Clears the value of name field.Clears the value of updateTime field.Clears the value of usageMetadata field.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.
-
clearName
Clears the value of name field. -
displayName
Setter for displayName.displayName: The user-generated meaningful display name of the cached content.
-
clearDisplayName
Clears the value of displayName field. -
model
Setter for model.model: The name of the publisher model to use for cached content.
-
clearModel
Clears the value of model field. -
createTime
Setter for createTime.createTime: Creation time of the cache entry.
-
clearCreateTime
Clears the value of createTime field. -
updateTime
Setter for updateTime.updateTime: When the cache entry was last updated in UTC time.
-
clearUpdateTime
Clears the value of updateTime field. -
expireTime
Setter for expireTime.expireTime: Expiration time of the cached content.
-
clearExpireTime
Clears the value of expireTime field. -
usageMetadata
Setter for usageMetadata.usageMetadata: Metadata on the usage of the cached content.
-
usageMetadata
@CanIgnoreReturnValue public CachedContent.Builder usageMetadata(CachedContentUsageMetadata.Builder usageMetadataBuilder) Setter for usageMetadata builder.usageMetadata: Metadata on the usage of the cached content.
-
clearUsageMetadata
Clears the value of usageMetadata field. -
build
-