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 ConstantDescriptionHigh level of harm severity.Low level of harm severity.Medium level of harm severity.Negligible level of harm severity.Harm severity unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic HarmSeverity.Known
Returns 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
Harm severity unspecified. -
HARM_SEVERITY_NEGLIGIBLE
Negligible level of harm severity. -
HARM_SEVERITY_LOW
Low level of harm severity. -
HARM_SEVERITY_MEDIUM
Medium level of harm severity. -
HARM_SEVERITY_HIGH
High level of harm severity.
-
-
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
-