Class CacheMetadata.Builder
java.lang.Object
com.google.adk.models.CacheMetadata.Builder
- Enclosing class:
CacheMetadata
Builder for
CacheMetadata. The snake_case aliases read metadata that ADK Python wrote.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the metadata.abstract CacheMetadata.Builderabstract CacheMetadata.BuildercontentsCount(int contentsCount) abstract CacheMetadata.Builderabstract CacheMetadata.BuilderexpireTime(@Nullable Instant expireTime) abstract CacheMetadata.Builderfingerprint(String fingerprint) abstract CacheMetadata.BuilderinvocationsUsed(@Nullable Integer invocationsUsed)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fingerprint
-
contentsCount
-
cacheName
-
expireTime
-
invocationsUsed
-
createdAt
-
build
Builds the metadata.- Throws:
IllegalStateException- if a count is negative, or if only some ofcacheName,expireTimeandinvocationsUsedare set
-