Enum ImageSize.Known

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

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

    • IMAGE_SIZE_UNSPECIFIED

      public static final ImageSize.Known IMAGE_SIZE_UNSPECIFIED
      Default value. This value is unused.
    • IMAGE_SIZE_FIVE_TWELVE

      public static final ImageSize.Known IMAGE_SIZE_FIVE_TWELVE
      512px image size.
    • IMAGE_SIZE_ONE_K

      public static final ImageSize.Known IMAGE_SIZE_ONE_K
      1K image size.
    • IMAGE_SIZE_TWO_K

      public static final ImageSize.Known IMAGE_SIZE_TWO_K
      2K image size.
    • IMAGE_SIZE_FOUR_K

      public static final ImageSize.Known IMAGE_SIZE_FOUR_K
      4K image size.
  • Method Details

    • values

      public static ImageSize.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 ImageSize.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