Package com.google.genai.types
Enum ProminentPeople.Known
- All Implemented Interfaces:
Serializable,Comparable<ProminentPeople.Known>
- Enclosing class:
- ProminentPeople
Enum representing the known values for ProminentPeople.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAllows the model to generate images of prominent people.Prevents the model from generating images of prominent people.Unspecified value. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProminentPeople.KnownReturns the enum constant of this type with the specified name.static ProminentPeople.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PROMINENT_PEOPLE_UNSPECIFIED
Unspecified value. The model will proceed with the default behavior, which is to allow generation of prominent people. -
ALLOW_PROMINENT_PEOPLE
Allows the model to generate images of prominent people. -
BLOCK_PROMINENT_PEOPLE
Prevents the model from generating images of prominent people.
-
-
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
-