Package com.google.genai.types
Class LiveSendClientContentParameters
-
- All Implemented Interfaces:
public abstract class LiveSendClientContentParameters extends JsonSerializable
Parameters for sending client content to the live API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveSendClientContentParameters.BuilderBuilder for LiveSendClientContentParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveSendClientContentParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<List<Content>>turns()Client content to send to the session. abstract Optional<Boolean>turnComplete()If true, indicates that the server content generation should start with the currently accumulated prompt. static LiveSendClientContentParameters.Builderbuilder()Instantiates a builder for LiveSendClientContentParameters. abstract LiveSendClientContentParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveSendClientContentParametersfromJson(String jsonString)Deserializes a JSON string to a LiveSendClientContentParameters 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
-
turnComplete
abstract Optional<Boolean> turnComplete()
If true, indicates that the server content generation should start with the currently accumulated prompt. Otherwise, the server will await additional messages before starting generation.
-
builder
static LiveSendClientContentParameters.Builder builder()
Instantiates a builder for LiveSendClientContentParameters.
-
toBuilder
abstract LiveSendClientContentParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveSendClientContentParameters fromJson(String jsonString)
Deserializes a JSON string to a LiveSendClientContentParameters object.
-
-
-
-