Package com.google.genai.types
Class LiveClientMessage
-
- All Implemented Interfaces:
public abstract class LiveClientMessage extends JsonSerializable
Messages sent by the client in the API call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveClientMessage.BuilderBuilder for LiveClientMessage.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveClientMessage()
-
Method Summary
Modifier and Type Method Description abstract Optional<LiveClientSetup>setup()Message to be sent by the system when connecting to the API. abstract Optional<LiveClientContent>clientContent()Incremental update of the current conversation delivered from the client. abstract Optional<LiveClientRealtimeInput>realtimeInput()User input that is sent in real time. abstract Optional<LiveSendRealtimeInputParameters>realtimeInputParameters()This is an alias for `realtime_input` field. abstract Optional<LiveClientToolResponse>toolResponse()Response to a `ToolCallMessage` received from the server. static LiveClientMessage.Builderbuilder()Instantiates a builder for LiveClientMessage. abstract LiveClientMessage.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveClientMessagefromJson(String jsonString)Deserializes a JSON string to a LiveClientMessage 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
-
-
Method Detail
-
setup
abstract Optional<LiveClientSetup> setup()
Message to be sent by the system when connecting to the API. SDK users should not send this message.
-
clientContent
abstract Optional<LiveClientContent> clientContent()
Incremental update of the current conversation delivered from the client.
-
realtimeInput
abstract Optional<LiveClientRealtimeInput> realtimeInput()
User input that is sent in real time.
-
realtimeInputParameters
abstract Optional<LiveSendRealtimeInputParameters> 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
abstract Optional<LiveClientToolResponse> toolResponse()
Response to a `ToolCallMessage` received from the server.
-
builder
static LiveClientMessage.Builder builder()
Instantiates a builder for LiveClientMessage.
-
toBuilder
abstract LiveClientMessage.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveClientMessage fromJson(String jsonString)
Deserializes a JSON string to a LiveClientMessage object.
-
-
-
-