Class SessionResumptionConfig.Builder

java.lang.Object
com.google.genai.types.SessionResumptionConfig.Builder
Enclosing class:
SessionResumptionConfig

public abstract static class SessionResumptionConfig.Builder extends Object
Builder for SessionResumptionConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • handle

      public abstract SessionResumptionConfig.Builder handle(String handle)
      Setter for handle.

      handle: Session resumption handle of previous session (session to restore).

      If not present new session will be started.

    • transparent

      public abstract SessionResumptionConfig.Builder transparent(boolean transparent)
      Setter for transparent.

      transparent: If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections.

    • build

      public abstract SessionResumptionConfig build()