Enum PersonGeneration.Known

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

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

    • DONT_ALLOW

      public static final PersonGeneration.Known DONT_ALLOW
      Block generation of images of people.
    • ALLOW_ADULT

      public static final PersonGeneration.Known ALLOW_ADULT
      Generate images of adults, but not children.
    • ALLOW_ALL

      public static final PersonGeneration.Known ALLOW_ALL
      Generate images that include adults and children.
    • PERSON_GENERATION_UNSPECIFIED

      public static final PersonGeneration.Known PERSON_GENERATION_UNSPECIFIED
  • Method Details

    • values

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