Enum AspectRatio.Known

java.lang.Object
java.lang.Enum<AspectRatio.Known>
com.google.genai.types.AspectRatio.Known
All Implemented Interfaces:
Serializable, Comparable<AspectRatio.Known>
Enclosing class:
AspectRatio

public static enum AspectRatio.Known extends Enum<AspectRatio.Known>
Enum representing the known values for AspectRatio.
  • Enum Constant Details

    • ASPECT_RATIO_UNSPECIFIED

      public static final AspectRatio.Known ASPECT_RATIO_UNSPECIFIED
      Default value. This value is unused.
    • ASPECT_RATIO_ONE_BY_ONE

      public static final AspectRatio.Known ASPECT_RATIO_ONE_BY_ONE
      1:1 aspect ratio.
    • ASPECT_RATIO_TWO_BY_THREE

      public static final AspectRatio.Known ASPECT_RATIO_TWO_BY_THREE
      2:3 aspect ratio.
    • ASPECT_RATIO_THREE_BY_TWO

      public static final AspectRatio.Known ASPECT_RATIO_THREE_BY_TWO
      3:2 aspect ratio.
    • ASPECT_RATIO_THREE_BY_FOUR

      public static final AspectRatio.Known ASPECT_RATIO_THREE_BY_FOUR
      3:4 aspect ratio.
    • ASPECT_RATIO_FOUR_BY_THREE

      public static final AspectRatio.Known ASPECT_RATIO_FOUR_BY_THREE
      4:3 aspect ratio.
    • ASPECT_RATIO_FOUR_BY_FIVE

      public static final AspectRatio.Known ASPECT_RATIO_FOUR_BY_FIVE
      4:5 aspect ratio.
    • ASPECT_RATIO_FIVE_BY_FOUR

      public static final AspectRatio.Known ASPECT_RATIO_FIVE_BY_FOUR
      5:4 aspect ratio.
    • ASPECT_RATIO_NINE_BY_SIXTEEN

      public static final AspectRatio.Known ASPECT_RATIO_NINE_BY_SIXTEEN
      9:16 aspect ratio.
    • ASPECT_RATIO_SIXTEEN_BY_NINE

      public static final AspectRatio.Known ASPECT_RATIO_SIXTEEN_BY_NINE
      16:9 aspect ratio.
    • ASPECT_RATIO_TWENTY_ONE_BY_NINE

      public static final AspectRatio.Known ASPECT_RATIO_TWENTY_ONE_BY_NINE
      21:9 aspect ratio.
    • ASPECT_RATIO_ONE_BY_EIGHT

      public static final AspectRatio.Known ASPECT_RATIO_ONE_BY_EIGHT
      1:8 aspect ratio.
    • ASPECT_RATIO_EIGHT_BY_ONE

      public static final AspectRatio.Known ASPECT_RATIO_EIGHT_BY_ONE
      8:1 aspect ratio.
    • ASPECT_RATIO_ONE_BY_FOUR

      public static final AspectRatio.Known ASPECT_RATIO_ONE_BY_FOUR
      1:4 aspect ratio.
    • ASPECT_RATIO_FOUR_BY_ONE

      public static final AspectRatio.Known ASPECT_RATIO_FOUR_BY_ONE
      4:1 aspect ratio.
  • Method Details

    • values

      public static AspectRatio.Known[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AspectRatio.Known valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null