Package com.google.genai.types
Enum AspectRatio.Known
- All Implemented Interfaces:
Serializable,Comparable<AspectRatio.Known>
- Enclosing class:
- AspectRatio
Enum representing the known values for AspectRatio.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription8:1 aspect ratio.5:4 aspect ratio.4:5 aspect ratio.4:1 aspect ratio.4:3 aspect ratio.9:16 aspect ratio.1:8 aspect ratio.1:4 aspect ratio.1:1 aspect ratio.16:9 aspect ratio.3:4 aspect ratio.3:2 aspect ratio.21:9 aspect ratio.2:3 aspect ratio.Default value. -
Method Summary
Modifier and TypeMethodDescriptionstatic AspectRatio.KnownReturns the enum constant of this type with the specified name.static AspectRatio.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASPECT_RATIO_UNSPECIFIED
Default value. This value is unused. -
ASPECT_RATIO_ONE_BY_ONE
1:1 aspect ratio. -
ASPECT_RATIO_TWO_BY_THREE
2:3 aspect ratio. -
ASPECT_RATIO_THREE_BY_TWO
3:2 aspect ratio. -
ASPECT_RATIO_THREE_BY_FOUR
3:4 aspect ratio. -
ASPECT_RATIO_FOUR_BY_THREE
4:3 aspect ratio. -
ASPECT_RATIO_FOUR_BY_FIVE
4:5 aspect ratio. -
ASPECT_RATIO_FIVE_BY_FOUR
5:4 aspect ratio. -
ASPECT_RATIO_NINE_BY_SIXTEEN
9:16 aspect ratio. -
ASPECT_RATIO_SIXTEEN_BY_NINE
16:9 aspect ratio. -
ASPECT_RATIO_TWENTY_ONE_BY_NINE
21:9 aspect ratio. -
ASPECT_RATIO_ONE_BY_EIGHT
1:8 aspect ratio. -
ASPECT_RATIO_EIGHT_BY_ONE
8:1 aspect ratio. -
ASPECT_RATIO_ONE_BY_FOUR
1:4 aspect ratio. -
ASPECT_RATIO_FOUR_BY_ONE
4:1 aspect ratio.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-