Enum SafetyRating.HarmSeverity

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

public static enum SafetyRating.HarmSeverity extends Enum<SafetyRating.HarmSeverity> implements com.google.protobuf.ProtocolMessageEnum
 Harm severity levels.
 
Protobuf enum google.cloud.aiplatform.v1.SafetyRating.HarmSeverity
  • Enum Constant Details

    • HARM_SEVERITY_UNSPECIFIED

      public static final SafetyRating.HarmSeverity HARM_SEVERITY_UNSPECIFIED
       Harm severity unspecified.
       
      HARM_SEVERITY_UNSPECIFIED = 0;
    • HARM_SEVERITY_NEGLIGIBLE

      public static final SafetyRating.HarmSeverity HARM_SEVERITY_NEGLIGIBLE
       Negligible level of harm severity.
       
      HARM_SEVERITY_NEGLIGIBLE = 1;
    • HARM_SEVERITY_LOW

      public static final SafetyRating.HarmSeverity HARM_SEVERITY_LOW
       Low level of harm severity.
       
      HARM_SEVERITY_LOW = 2;
    • HARM_SEVERITY_MEDIUM

      public static final SafetyRating.HarmSeverity HARM_SEVERITY_MEDIUM
       Medium level of harm severity.
       
      HARM_SEVERITY_MEDIUM = 3;
    • HARM_SEVERITY_HIGH

      public static final SafetyRating.HarmSeverity HARM_SEVERITY_HIGH
       High level of harm severity.
       
      HARM_SEVERITY_HIGH = 4;
    • UNRECOGNIZED

      public static final SafetyRating.HarmSeverity UNRECOGNIZED
  • Field Details

    • HARM_SEVERITY_UNSPECIFIED_VALUE

      public static final int HARM_SEVERITY_UNSPECIFIED_VALUE
       Harm severity unspecified.
       
      HARM_SEVERITY_UNSPECIFIED = 0;
      See Also:
    • HARM_SEVERITY_NEGLIGIBLE_VALUE

      public static final int HARM_SEVERITY_NEGLIGIBLE_VALUE
       Negligible level of harm severity.
       
      HARM_SEVERITY_NEGLIGIBLE = 1;
      See Also:
    • HARM_SEVERITY_LOW_VALUE

      public static final int HARM_SEVERITY_LOW_VALUE
       Low level of harm severity.
       
      HARM_SEVERITY_LOW = 2;
      See Also:
    • HARM_SEVERITY_MEDIUM_VALUE

      public static final int HARM_SEVERITY_MEDIUM_VALUE
       Medium level of harm severity.
       
      HARM_SEVERITY_MEDIUM = 3;
      See Also:
    • HARM_SEVERITY_HIGH_VALUE

      public static final int HARM_SEVERITY_HIGH_VALUE
       High level of harm severity.
       
      HARM_SEVERITY_HIGH = 4;
      See Also:
  • Method Details

    • values

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