Class SessionResumptionConfig

  • All Implemented Interfaces:

    
    public abstract class SessionResumptionConfig
    extends JsonSerializable
                        

    Configuration of session resumption mechanism.

    Included in `LiveConnectConfig.session_resumption`. If included server will send `LiveServerSessionResumptionUpdate` messages.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class SessionResumptionConfig.Builder

      Builder for SessionResumptionConfig.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> handle() Session resumption handle of previous session (session to restore).
      abstract Optional<Boolean> transparent() If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections.
      static SessionResumptionConfig.Builder builder() Instantiates a builder for SessionResumptionConfig.
      abstract SessionResumptionConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static SessionResumptionConfig fromJson(String jsonString) Deserializes a JSON string to a SessionResumptionConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait