Package com.google.genai.types
Class CustomizedAvatar
-
- All Implemented Interfaces:
public abstract class CustomizedAvatar extends JsonSerializable
Configures the customized avatar to be used in the session.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCustomizedAvatar.BuilderBuilder for CustomizedAvatar.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description CustomizedAvatar()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>imageMimeType()The mime type of the reference image, e.g., "image/jpeg". abstract Optional<Array<byte>>imageData()The data of the reference image. static CustomizedAvatar.Builderbuilder()Instantiates a builder for CustomizedAvatar. abstract CustomizedAvatar.BuildertoBuilder()Creates a builder with the same values as this instance. static CustomizedAvatarfromJson(String jsonString)Deserializes a JSON string to a CustomizedAvatar 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
-
imageMimeType
abstract Optional<String> imageMimeType()
The mime type of the reference image, e.g., "image/jpeg".
-
imageData
abstract Optional<Array<byte>> 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
static CustomizedAvatar.Builder builder()
Instantiates a builder for CustomizedAvatar.
-
toBuilder
abstract CustomizedAvatar.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static CustomizedAvatar fromJson(String jsonString)
Deserializes a JSON string to a CustomizedAvatar object.
-
-
-
-