Package com.google.genai.types
Class LiveConnectConstraints
-
- All Implemented Interfaces:
public abstract class LiveConnectConstraints extends JsonSerializable
Config for LiveConnectConstraints for Auth Token creation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classLiveConnectConstraints.BuilderBuilder for LiveConnectConstraints.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description LiveConnectConstraints()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()ID of the model to configure in the ephemeral token for Live API. abstract Optional<LiveConnectConfig>config()Configuration specific to Live API connections created using this token. static LiveConnectConstraints.Builderbuilder()Instantiates a builder for LiveConnectConstraints. abstract LiveConnectConstraints.BuildertoBuilder()Creates a builder with the same values as this instance. static LiveConnectConstraintsfromJson(String jsonString)Deserializes a JSON string to a LiveConnectConstraints 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
-
model
abstract Optional<String> model()
ID of the model to configure in the ephemeral token for Live API. For a list of models, see `Gemini models `.
-
config
abstract Optional<LiveConnectConfig> config()
Configuration specific to Live API connections created using this token.
-
builder
static LiveConnectConstraints.Builder builder()
Instantiates a builder for LiveConnectConstraints.
-
toBuilder
abstract LiveConnectConstraints.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static LiveConnectConstraints fromJson(String jsonString)
Deserializes a JSON string to a LiveConnectConstraints object.
-
-
-
-