Class ResumabilityConfig.Builder

java.lang.Object
com.google.adk.apps.ResumabilityConfig.Builder
Enclosing class:
ResumabilityConfig

public abstract static class ResumabilityConfig.Builder extends Object
“Builder for”是一个用于描述某种构建工具或框架的术语。它通常表示该工具/框架用于帮助开发者或系统管理员快速、高效地创建或构建特定类型的应用程序、系统或组件。例如:“Builder for Web Applications”(用于构建Web应用程序的工具)或“Builder for Cloud Services”(用于构建云服务的工具)。 ResumabilityConfig.
  • 构造函数详细信息

    • Builder

      public Builder()
  • 方法详细信息(Method Details)

    • resumable

      @CanIgnoreReturnValue public abstract ResumabilityConfig.Builder resumable(boolean isResumable)
    • plainTextContinuationAutoResume

      @Deprecated @CanIgnoreReturnValue public abstract ResumabilityConfig.Builder plainTextContinuationAutoResume(boolean value)
      Deprecated.
      Back-compat shim only; migrate to Runner.runAsync(...) with an invocation id (or send a function response to the paused call). See ResumabilityConfig.isPlainTextContinuationAutoResume().
    • build

      public ResumabilityConfig build()
      生成配置文件时,会拒绝那些没有明确处理方式的参数组合(即那些未被程序正确解释或处理的参数组合)。
      Throws:
      IllegalArgumentException - if both resumability and the legacy shim are enabled; they select different resumption flows, so exactly one may be set.