Package com.google.genai.types
Class SessionResumptionConfig.Builder
-
- All Implemented Interfaces:
public abstract class SessionResumptionConfig.BuilderBuilder for SessionResumptionConfig.
-
-
Constructor Summary
Constructors Constructor Description SessionResumptionConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract SessionResumptionConfig.Builderhandle(String handle)Setter for handle. SessionResumptionConfig.BuilderclearHandle()Clears the value of handle field. abstract SessionResumptionConfig.Buildertransparent(boolean transparent)Setter for transparent. SessionResumptionConfig.BuilderclearTransparent()Clears the value of transparent field. abstract SessionResumptionConfigbuild()-
-
Method Detail
-
handle
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.
-
clearHandle
@CanIgnoreReturnValue() SessionResumptionConfig.Builder clearHandle()
Clears the value of handle field.
-
transparent
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.
-
clearTransparent
@CanIgnoreReturnValue() SessionResumptionConfig.Builder clearTransparent()
Clears the value of transparent field.
-
build
abstract SessionResumptionConfig build()
-
-
-
-