Class ResumabilityConfig.Builder
java.lang.Object
com.google.adk.apps.ResumabilityConfig.Builder
- Enclosing class:
ResumabilityConfig
“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。
ResumabilityConfig.-
构造函数概述
Constructors -
方法概述
Modifier and TypeMethodDescriptionbuild()生成配置文件时,会拒绝那些没有明确处理方式的参数组合(即那些未被程序正确解释或处理的参数组合)。abstract ResumabilityConfig.BuilderplainTextContinuationAutoResume(boolean value) 已弃用(Deprecated)。abstract ResumabilityConfig.Builderresumable(boolean isResumable)
-
构造函数详细信息
-
Builder
public Builder()
-
-
方法详细信息(Method Details)
-
resumable
-
plainTextContinuationAutoResume
@Deprecated @CanIgnoreReturnValue public abstract ResumabilityConfig.Builder plainTextContinuationAutoResume(boolean value) Deprecated.Back-compat shim only; migrate toRunner.runAsync(...)with an invocation id (or send a function response to the paused call). SeeResumabilityConfig.isPlainTextContinuationAutoResume(). -
build
生成配置文件时,会拒绝那些没有明确处理方式的参数组合(即那些未被程序正确解释或处理的参数组合)。- Throws:
IllegalArgumentException- if both resumability and the legacy shim are enabled; they select different resumption flows, so exactly one may be set.
-
Runner.runAsync(...)通过一次调用,可以重新激活被暂停的请求(或向该请求发送函数响应)。