Package com.google.genai.types
Class LiveSendRealtimeInputParameters
-
- All Implemented Interfaces:
public abstract class LiveSendRealtimeInputParameters extends JsonSerializable
Parameters for sending realtime input to the live API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveSendRealtimeInputParameters.BuilderBuilder for LiveSendRealtimeInputParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveSendRealtimeInputParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<Blob>media()Realtime input to send to the session. abstract Optional<Blob>audio()The realtime audio input stream. abstract Optional<Boolean>audioStreamEnd()Indicates that the audio stream has ended, e.g. abstract Optional<Blob>video()The realtime video input stream. abstract Optional<String>text()The realtime text input stream. abstract Optional<ActivityStart>activityStart()Marks the start of user activity. abstract Optional<ActivityEnd>activityEnd()Marks the end of user activity. static LiveSendRealtimeInputParameters.Builderbuilder()Instantiates a builder for LiveSendRealtimeInputParameters. abstract LiveSendRealtimeInputParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveSendRealtimeInputParametersfromJson(String jsonString)Deserializes a JSON string to a LiveSendRealtimeInputParameters 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
-
audioStreamEnd
abstract Optional<Boolean> audioStreamEnd()
Indicates that the audio stream has ended, e.g. because the microphone was turned off.
This should only be sent when automatic activity detection is enabled (which is the default).
The client can reopen the stream by sending an audio message.
-
activityStart
abstract Optional<ActivityStart> activityStart()
Marks the start of user activity.
-
activityEnd
abstract Optional<ActivityEnd> activityEnd()
Marks the end of user activity.
-
builder
static LiveSendRealtimeInputParameters.Builder builder()
Instantiates a builder for LiveSendRealtimeInputParameters.
-
toBuilder
abstract LiveSendRealtimeInputParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveSendRealtimeInputParameters fromJson(String jsonString)
Deserializes a JSON string to a LiveSendRealtimeInputParameters object.
-
-
-
-