Class App.Builder

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

public static class App.Builder extends Object
Builder for App.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • name

      @CanIgnoreReturnValue public App.Builder name(String name)
    • rootAgent

      @CanIgnoreReturnValue public App.Builder rootAgent(@Nullable BaseAgent rootAgent)
      Sets the root agent, or clears it when null.
    • rootNode

      @CanIgnoreReturnValue @Experimental public App.Builder rootNode(@Nullable Node rootNode)
      Sets the workflow node the app runs in place of a root agent, or clears it when null. If the given node is an agent, it becomes the root agent.
    • plugins

      @CanIgnoreReturnValue public App.Builder plugins(List<? extends Plugin> plugins)
    • plugins

      @CanIgnoreReturnValue public App.Builder plugins(Plugin... plugins)
    • eventsCompactionConfig

      @CanIgnoreReturnValue public App.Builder eventsCompactionConfig(@Nullable EventsCompactionConfig eventsCompactionConfig)
    • contextCacheConfig

      @CanIgnoreReturnValue public App.Builder contextCacheConfig(@Nullable ContextCacheConfig contextCacheConfig)
    • resumabilityConfig

      @CanIgnoreReturnValue @Experimental public App.Builder resumabilityConfig(@Nullable ResumabilityConfig resumabilityConfig)
    • build

      public App build()