Package com.google.genai.types
Enum HarmSeverity.Known
- All Implemented Interfaces:
Serializable,Comparable<HarmSeverity.Known>
- Enclosing class:
- HarmSeverity
Enum representing the known values for HarmSeverity.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe harm severity is high.The harm severity is low.The harm severity is medium.The harm severity is negligible.The harm severity is unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmSeverity.KnownReturns the enum constant of this type with the specified name.static HarmSeverity.Known[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_SEVERITY_UNSPECIFIED
The harm severity is unspecified. -
HARM_SEVERITY_NEGLIGIBLE
The harm severity is negligible. -
HARM_SEVERITY_LOW
The harm severity is low. -
HARM_SEVERITY_MEDIUM
The harm severity is medium. -
HARM_SEVERITY_HIGH
The harm severity is high.
-
-
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
-