`Class CacheMetadata.Builder`
java.lang.Object
com.google.adk.models.CacheMetadata.Builder
- Enclosing class:
CacheMetadata
“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。
CacheMetadata这些以小写字母(snake_case)命名的别名用于读取由 ADK Python 生成的元数据。-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionbuild()用于生成元数据。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)
-
构造函数详细信息
-
Builder
public Builder()
-
-
方法详细信息(Method Details)
-
fingerprint
-
contentsCount
-
cacheName
-
expireTime
-
invocationsUsed
-
createdAt
-
build
用于生成元数据。- Throws:
IllegalStateException- if a count is negative, or if only some ofcacheName,expireTimeandinvocationsUsedare set
-