Class CustomizedAvatar

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

public abstract class CustomizedAvatar extends JsonSerializable
Configures the customized avatar to be used in the session.
  • Constructor Details

    • CustomizedAvatar

      public CustomizedAvatar()
  • Method Details

    • imageMimeType

      public abstract Optional<String> imageMimeType()
      The mime type of the reference image, e.g., "image/jpeg".
    • imageData

      public abstract Optional<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

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

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

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