Package com.google.genai.types
Class AvatarConfig
-
- All Implemented Interfaces:
public abstract class AvatarConfig extends JsonSerializable
Configures the avatar to be used in the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classAvatarConfig.BuilderBuilder for AvatarConfig.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description AvatarConfig()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>avatarName()Pre-built avatar id. abstract Optional<CustomizedAvatar>customizedAvatar()Customized avatar appearance with a reference image. abstract Optional<Integer>audioBitrateBps()The bitrate of compressed audio. abstract Optional<Integer>videoBitrateBps()The bitrate of compressed video output. static AvatarConfig.Builderbuilder()Instantiates a builder for AvatarConfig. abstract AvatarConfig.BuildertoBuilder()Creates a builder with the same values as this instance. static AvatarConfigfromJson(String jsonString)Deserializes a JSON string to a AvatarConfig 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
-
avatarName
abstract Optional<String> avatarName()
Pre-built avatar id.
-
customizedAvatar
abstract Optional<CustomizedAvatar> customizedAvatar()
Customized avatar appearance with a reference image.
-
audioBitrateBps
abstract Optional<Integer> audioBitrateBps()
The bitrate of compressed audio.
-
videoBitrateBps
abstract Optional<Integer> videoBitrateBps()
The bitrate of compressed video output.
-
builder
static AvatarConfig.Builder builder()
Instantiates a builder for AvatarConfig.
-
toBuilder
abstract AvatarConfig.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static AvatarConfig fromJson(String jsonString)
Deserializes a JSON string to a AvatarConfig object.
-
-
-
-