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 content with a low harm probability or higher.Block content with a medium harm probability or higher.Do not block any content, regardless of its harm probability.Block content with a high harm probability.The harm block threshold is unspecified.Turn off the safety filter entirely. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmBlockThreshold.KnownReturns 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
The harm block threshold is unspecified. -
BLOCK_LOW_AND_ABOVE
Block content with a low harm probability or higher. -
BLOCK_MEDIUM_AND_ABOVE
Block content with a medium harm probability or higher. -
BLOCK_ONLY_HIGH
Block content with a high harm probability. -
BLOCK_NONE
Do not block any content, regardless of its harm probability. -
OFF
Turn off the safety filter entirely.
-
-
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
-