Enum HarmBlockThreshold.Known

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

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

    • HARM_BLOCK_THRESHOLD_UNSPECIFIED

      public static final HarmBlockThreshold.Known HARM_BLOCK_THRESHOLD_UNSPECIFIED
      The harm block threshold is unspecified.
    • BLOCK_LOW_AND_ABOVE

      public static final HarmBlockThreshold.Known BLOCK_LOW_AND_ABOVE
      Block content with a low harm probability or higher.
    • BLOCK_MEDIUM_AND_ABOVE

      public static final HarmBlockThreshold.Known BLOCK_MEDIUM_AND_ABOVE
      Block content with a medium harm probability or higher.
    • BLOCK_ONLY_HIGH

      public static final HarmBlockThreshold.Known BLOCK_ONLY_HIGH
      Block content with a high harm probability.
    • BLOCK_NONE

      public static final HarmBlockThreshold.Known BLOCK_NONE
      Do not block any content, regardless of its harm probability.
    • OFF

      public static final HarmBlockThreshold.Known OFF
      Turn off the safety filter entirely.
  • Method Details

    • values

      public static HarmBlockThreshold.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 HarmBlockThreshold.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