Package com.google.genai.types
Enum ImageSize.Known
- All Implemented Interfaces:
Serializable,Comparable<ImageSize.Known>
- Enclosing class:
- ImageSize
Enum representing the known values for ImageSize.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription512px image size.4K image size.1K image size.2K image size.Default value. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageSize.KnownReturns the enum constant of this type with the specified name.static ImageSize.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
IMAGE_SIZE_UNSPECIFIED
Default value. This value is unused. -
IMAGE_SIZE_FIVE_TWELVE
512px image size. -
IMAGE_SIZE_ONE_K
1K image size. -
IMAGE_SIZE_TWO_K
2K image size. -
IMAGE_SIZE_FOUR_K
4K image size.
-
-
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
-