Package com.google.genai.types
Enum HarmBlockThreshold.Known
- All Implemented Interfaces:
Serializable
,Comparable<HarmBlockThreshold.Known>
- Enclosing class:
- HarmBlockThreshold
Enum representing the known values for HarmBlockThreshold.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBlock low threshold and above (i.e.Block medium threshold and above.Block none.Block only high threshold (i.e.Unspecified harm block threshold.Turn off the safety filter. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmBlockThreshold.Known
Returns the enum constant of this type with the specified name.static HarmBlockThreshold.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_BLOCK_THRESHOLD_UNSPECIFIED
Unspecified harm block threshold. -
BLOCK_LOW_AND_ABOVE
Block low threshold and above (i.e. block more). -
BLOCK_MEDIUM_AND_ABOVE
Block medium threshold and above. -
BLOCK_ONLY_HIGH
Block only high threshold (i.e. block less). -
BLOCK_NONE
Block none. -
OFF
Turn off the safety filter.
-
-
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
-