Package com.google.genai.types
Enum ImageResizeMode.Known
-
- All Implemented Interfaces:
public enum ImageResizeMode.KnownEnum representing the known values for ImageResizeMode.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CROPCrop the image to fit the correct aspect ratio (so we lose parts of the image in the process).
PADPad the image to fit the correct aspect ratio (so we don't lose any parts of the image in the process).
IMAGE_RESIZE_MODE_UNSPECIFIED
-
Method Summary
Modifier and Type Method Description static Array<ImageResizeMode.Known>values()Returns an array containing the constants of this enum type, in the order they're declared. static ImageResizeMode.KnownvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
values
static Array<ImageResizeMode.Known> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static ImageResizeMode.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.)
- Returns:
the enum constant with the specified name
-
-
-
-