Package com.google.genai.types
Class LiveConnectConstraints
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveConnectConstraints
Config for LiveConnectConstraints for Auth Token creation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for LiveConnectConstraints. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for LiveConnectConstraints.abstract Optional<LiveConnectConfig>config()Configuration specific to Live API connections created using this token.static LiveConnectConstraintsDeserializes a JSON string to a LiveConnectConstraints object.model()ID of the model to configure in the ephemeral token for Live API.abstract LiveConnectConstraints.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
LiveConnectConstraints
public LiveConnectConstraints()
-
-
Method Details
-
model
ID of the model to configure in the ephemeral token for Live API. For a list of models, see `Gemini models <https://ai.google.dev/gemini-api/docs/models>`. -
config
Configuration specific to Live API connections created using this token. -
builder
Instantiates a builder for LiveConnectConstraints. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LiveConnectConstraints object.
-