Package com.google.genai.types
Class LiveClientMessage
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveClientMessage
Messages sent by the client in the API call.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for LiveClientMessage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LiveClientMessage.Builder
builder()
Instantiates a builder for LiveClientMessage.abstract Optional<LiveClientContent>
Incremental update of the current conversation delivered from the client.static LiveClientMessage
Deserializes a JSON string to a LiveClientMessage object.abstract Optional<LiveClientRealtimeInput>
User input that is sent in real time.abstract Optional<LiveSendRealtimeInputParameters>
This is an alias for `realtime_input` field.abstract Optional<LiveClientSetup>
setup()
Message to be sent by the system when connecting to the API.abstract LiveClientMessage.Builder
Creates a builder with the same values as this instance.abstract Optional<LiveClientToolResponse>
Response to a `ToolCallMessage` received from the server.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LiveClientMessage
public LiveClientMessage()
-
-
Method Details
-
setup
Message to be sent by the system when connecting to the API. SDK users should not send this message. -
clientContent
Incremental update of the current conversation delivered from the client. -
realtimeInput
User input that is sent in real time. -
realtimeInputParameters
This is an alias for `realtime_input` field. Allows the inputs to sendRealtimeInput to be transformed into `realtime_input` before being sent. Note: This will overwrite any `realtime_input` field. -
toolResponse
Response to a `ToolCallMessage` received from the server. -
builder
Instantiates a builder for LiveClientMessage. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveClientMessage object.
-