public static enum SafetyRating.HarmSeverity extends Enum<SafetyRating.HarmSeverity> implements com.google.protobuf.ProtocolMessageEnum
Harm severity levels.Protobuf enum
google.cloud.vertexai.v1.SafetyRating.HarmSeverity| Enum Constant and Description |
|---|
HARM_SEVERITY_HIGH
High level of harm severity.
|
HARM_SEVERITY_LOW
Low level of harm severity.
|
HARM_SEVERITY_MEDIUM
Medium level of harm severity.
|
HARM_SEVERITY_NEGLIGIBLE
Negligible level of harm severity.
|
HARM_SEVERITY_UNSPECIFIED
Harm severity unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
HARM_SEVERITY_HIGH_VALUE
High level of harm severity.
|
static int |
HARM_SEVERITY_LOW_VALUE
Low level of harm severity.
|
static int |
HARM_SEVERITY_MEDIUM_VALUE
Medium level of harm severity.
|
static int |
HARM_SEVERITY_NEGLIGIBLE_VALUE
Negligible level of harm severity.
|
static int |
HARM_SEVERITY_UNSPECIFIED_VALUE
Harm severity unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static SafetyRating.HarmSeverity |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<SafetyRating.HarmSeverity> |
internalGetValueMap() |
static SafetyRating.HarmSeverity |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SafetyRating.HarmSeverity |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SafetyRating.HarmSeverity |
valueOf(String name)
Returns 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.
|
public static final SafetyRating.HarmSeverity HARM_SEVERITY_UNSPECIFIED
Harm severity unspecified.
HARM_SEVERITY_UNSPECIFIED = 0;public static final SafetyRating.HarmSeverity HARM_SEVERITY_NEGLIGIBLE
Negligible level of harm severity.
HARM_SEVERITY_NEGLIGIBLE = 1;public static final SafetyRating.HarmSeverity HARM_SEVERITY_LOW
Low level of harm severity.
HARM_SEVERITY_LOW = 2;public static final SafetyRating.HarmSeverity HARM_SEVERITY_MEDIUM
Medium level of harm severity.
HARM_SEVERITY_MEDIUM = 3;public static final SafetyRating.HarmSeverity HARM_SEVERITY_HIGH
High level of harm severity.
HARM_SEVERITY_HIGH = 4;public static final SafetyRating.HarmSeverity UNRECOGNIZED
public static final int HARM_SEVERITY_UNSPECIFIED_VALUE
Harm severity unspecified.
HARM_SEVERITY_UNSPECIFIED = 0;public static final int HARM_SEVERITY_NEGLIGIBLE_VALUE
Negligible level of harm severity.
HARM_SEVERITY_NEGLIGIBLE = 1;public static final int HARM_SEVERITY_LOW_VALUE
Low level of harm severity.
HARM_SEVERITY_LOW = 2;public static final int HARM_SEVERITY_MEDIUM_VALUE
Medium level of harm severity.
HARM_SEVERITY_MEDIUM = 3;public static final int HARM_SEVERITY_HIGH_VALUE
High level of harm severity.
HARM_SEVERITY_HIGH = 4;public static SafetyRating.HarmSeverity[] values()
for (SafetyRating.HarmSeverity c : SafetyRating.HarmSeverity.values()) System.out.println(c);
public static SafetyRating.HarmSeverity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static SafetyRating.HarmSeverity valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SafetyRating.HarmSeverity forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SafetyRating.HarmSeverity> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static SafetyRating.HarmSeverity valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.