Enum SafetySetting.HarmBlockThreshold

java.lang.Object
java.lang.Enum<SafetySetting.HarmBlockThreshold>
com.google.cloud.aiplatform.v1.SafetySetting.HarmBlockThreshold
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SafetySetting.HarmBlockThreshold>
Enclosing class:
SafetySetting

public static enum SafetySetting.HarmBlockThreshold extends Enum<SafetySetting.HarmBlockThreshold> implements com.google.protobuf.ProtocolMessageEnum
 Probability based thresholds levels for blocking.
 
Protobuf enum google.cloud.aiplatform.v1.SafetySetting.HarmBlockThreshold
  • Enum Constant Details

  • Field Details

    • HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE

      public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE
       Unspecified harm block threshold.
       
      HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;
      See Also:
    • BLOCK_LOW_AND_ABOVE_VALUE

      public static final int BLOCK_LOW_AND_ABOVE_VALUE
       Block low threshold and above (i.e. block more).
       
      BLOCK_LOW_AND_ABOVE = 1;
      See Also:
    • BLOCK_MEDIUM_AND_ABOVE_VALUE

      public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE
       Block medium threshold and above.
       
      BLOCK_MEDIUM_AND_ABOVE = 2;
      See Also:
    • BLOCK_ONLY_HIGH_VALUE

      public static final int BLOCK_ONLY_HIGH_VALUE
       Block only high threshold (i.e. block less).
       
      BLOCK_ONLY_HIGH = 3;
      See Also:
    • BLOCK_NONE_VALUE

      public static final int BLOCK_NONE_VALUE
       Block none.
       
      BLOCK_NONE = 4;
      See Also:
    • OFF_VALUE

      public static final int OFF_VALUE
       Turn off the safety filter.
       
      OFF = 5;
      See Also:
  • Method Details

    • values

      public static SafetySetting.HarmBlockThreshold[] 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 SafetySetting.HarmBlockThreshold 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static SafetySetting.HarmBlockThreshold valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static SafetySetting.HarmBlockThreshold forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<SafetySetting.HarmBlockThreshold> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static SafetySetting.HarmBlockThreshold valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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