Package com.google.cloud.aiplatform.v1
Enum 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 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. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHigh level of harm severity.static final intLow level of harm severity.static final intMedium level of harm severity.static final intNegligible level of harm severity.static final intHarm severity unspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic SafetyRating.HarmSeverityforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SafetyRating.HarmSeverity>static SafetyRating.HarmSeverityvalueOf(int value) Deprecated.static SafetyRating.HarmSeverityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SafetyRating.HarmSeverityReturns the enum constant of this type with the specified name.static SafetyRating.HarmSeverity[]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_UNSPECIFIED = 0; -
HARM_SEVERITY_NEGLIGIBLE
Negligible level of harm severity.
HARM_SEVERITY_NEGLIGIBLE = 1; -
HARM_SEVERITY_LOW
Low level of harm severity.
HARM_SEVERITY_LOW = 2; -
HARM_SEVERITY_MEDIUM
Medium level of harm severity.
HARM_SEVERITY_MEDIUM = 3; -
HARM_SEVERITY_HIGH
High level of harm severity.
HARM_SEVERITY_HIGH = 4; -
UNRECOGNIZED
-
-
Field Details
-
HARM_SEVERITY_UNSPECIFIED_VALUE
public static final int HARM_SEVERITY_UNSPECIFIED_VALUEHarm severity unspecified.
HARM_SEVERITY_UNSPECIFIED = 0;- See Also:
-
HARM_SEVERITY_NEGLIGIBLE_VALUE
public static final int HARM_SEVERITY_NEGLIGIBLE_VALUENegligible level of harm severity.
HARM_SEVERITY_NEGLIGIBLE = 1;- See Also:
-
HARM_SEVERITY_LOW_VALUE
public static final int HARM_SEVERITY_LOW_VALUELow level of harm severity.
HARM_SEVERITY_LOW = 2;- See Also:
-
HARM_SEVERITY_MEDIUM_VALUE
public static final int HARM_SEVERITY_MEDIUM_VALUEMedium level of harm severity.
HARM_SEVERITY_MEDIUM = 3;- See Also:
-
HARM_SEVERITY_HIGH_VALUE
public static final int HARM_SEVERITY_HIGH_VALUEHigh level of harm severity.
HARM_SEVERITY_HIGH = 4;- See Also:
-
-
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
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-