Package com.google.genai.types
Class CustomizedAvatar
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CustomizedAvatar
Configures the customized avatar to be used in the session.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CustomizedAvatar. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomizedAvatar.Builderbuilder()Instantiates a builder for CustomizedAvatar.static CustomizedAvatarDeserializes a JSON string to a CustomizedAvatar object.abstract Optional<byte[]>The data of the reference image.The mime type of the reference image, e.g., "image/jpeg".abstract CustomizedAvatar.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
-
CustomizedAvatar
public CustomizedAvatar()
-
-
Method Details
-
imageMimeType
The mime type of the reference image, e.g., "image/jpeg". -
imageData
The data of the reference image. The dimensions of the reference image should be 9:16 (portrait) with a minimum resolution of 704x1280. -
builder
Instantiates a builder for CustomizedAvatar. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CustomizedAvatar object.
-