Enum HarmSeverity.Known

java.lang.Object
java.lang.Enum<HarmSeverity.Known>
com.google.genai.types.HarmSeverity.Known
All Implemented Interfaces:
Serializable, Comparable<HarmSeverity.Known>
Enclosing class:
HarmSeverity

public static enum HarmSeverity.Known extends Enum<HarmSeverity.Known>
Enum representing the known values for HarmSeverity.
  • Enum Constant Details

    • HARM_SEVERITY_UNSPECIFIED

      public static final HarmSeverity.Known HARM_SEVERITY_UNSPECIFIED
      Harm severity unspecified.
    • HARM_SEVERITY_NEGLIGIBLE

      public static final HarmSeverity.Known HARM_SEVERITY_NEGLIGIBLE
      Negligible level of harm severity.
    • HARM_SEVERITY_LOW

      public static final HarmSeverity.Known HARM_SEVERITY_LOW
      Low level of harm severity.
    • HARM_SEVERITY_MEDIUM

      public static final HarmSeverity.Known HARM_SEVERITY_MEDIUM
      Medium level of harm severity.
    • HARM_SEVERITY_HIGH

      public static final HarmSeverity.Known HARM_SEVERITY_HIGH
      High level of harm severity.
  • Method Details

    • values

      public static HarmSeverity.Known[] 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

      public static HarmSeverity.Known valueOf(String name)
      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 name
      NullPointerException - if the argument is null