Package com.google.genai.types
Class SessionResumptionConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SessionResumptionConfig
Configuration of session resumption mechanism.
Included in `LiveConnectConfig.session_resumption`. If included server will send `LiveServerSessionResumptionUpdate` messages.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SessionResumptionConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for SessionResumptionConfig.static SessionResumptionConfig
Deserializes a JSON string to a SessionResumptionConfig object.handle()
Session resumption handle of previous session (session to restore).abstract SessionResumptionConfig.Builder
Creates a builder with the same values as this instance.If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
SessionResumptionConfig
public SessionResumptionConfig()
-
-
Method Details
-
handle
Session resumption handle of previous session (session to restore).If not present new session will be started.
-
transparent
If set the server will send `last_consumed_client_message_index` in the `session_resumption_update` messages to allow for transparent reconnections. -
builder
Instantiates a builder for SessionResumptionConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SessionResumptionConfig object.
-