Class ImageConfig

java.lang.Object
com.google.genai.gaos.models.interactions.ImageConfig

@Deprecated public class ImageConfig extends Object
Deprecated.
class: This will be removed in a future release, please migrate away from it as soon as possible.
ImageConfig

The configuration for image interaction.

  • Constructor Details

  • Method Details

    • aspectRatio

      public Optional<ImageConfigAspectRatio> aspectRatio()
      Deprecated.
      The aspect ratio of the image to generate. Supported aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.

      If not specified, the model will choose a default aspect ratio based on any reference images provided.

    • imageSize

      public Optional<ImageConfigImageSize> imageSize()
      Deprecated.
      Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    • builder

      public static ImageConfig.Builder builder()
      Deprecated.
    • withAspectRatio

      public ImageConfig withAspectRatio(@Nullable ImageConfigAspectRatio aspectRatio)
      Deprecated.
      The aspect ratio of the image to generate. Supported aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.

      If not specified, the model will choose a default aspect ratio based on any reference images provided.

    • withImageSize

      public ImageConfig withImageSize(@Nullable ImageConfigImageSize imageSize)
      Deprecated.
      Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    • equals

      public boolean equals(Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class Object