Class LiveConnectConstraints

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveConnectConstraints

public abstract class LiveConnectConstraints extends JsonSerializable
Config for LiveConnectConstraints for Auth Token creation.
  • Constructor Details

    • LiveConnectConstraints

      public LiveConnectConstraints()
  • Method Details

    • model

      public 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 <https://ai.google.dev/gemini-api/docs/models>`.
    • config

      public abstract Optional<LiveConnectConfig> config()
      Configuration specific to Live API connections created using this token.
    • builder

      public static LiveConnectConstraints.Builder builder()
      Instantiates a builder for LiveConnectConstraints.
    • toBuilder

      public abstract LiveConnectConstraints.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LiveConnectConstraints fromJson(String jsonString)
      Deserializes a JSON string to a LiveConnectConstraints object.