Package com.google.cloud.aiplatform.v1
Enum SafetyRating.HarmProbability
java.lang.Object
java.lang.Enum<SafetyRating.HarmProbability>
com.google.cloud.aiplatform.v1.SafetyRating.HarmProbability
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<SafetyRating.HarmProbability>
- Enclosing class:
- SafetyRating
public static enum SafetyRating.HarmProbability
extends Enum<SafetyRating.HarmProbability>
implements com.google.protobuf.ProtocolMessageEnum
Harm probability levels in the content.Protobuf enum
google.cloud.aiplatform.v1.SafetyRating.HarmProbability-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHarm probability unspecified.High level of harm.Low level of harm.Medium level of harm.Negligible level of harm. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHarm probability unspecified.static final intHigh level of harm.static final intLow level of harm.static final intMedium level of harm.static final intNegligible level of harm. -
Method Summary
Modifier and TypeMethodDescriptionstatic SafetyRating.HarmProbabilityforNumber(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.HarmProbability>static SafetyRating.HarmProbabilityvalueOf(int value) Deprecated.static SafetyRating.HarmProbabilityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SafetyRating.HarmProbabilityReturns the enum constant of this type with the specified name.static SafetyRating.HarmProbability[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_PROBABILITY_UNSPECIFIED
Harm probability unspecified.
HARM_PROBABILITY_UNSPECIFIED = 0; -
NEGLIGIBLE
Negligible level of harm.
NEGLIGIBLE = 1; -
LOW
Low level of harm.
LOW = 2; -
MEDIUM
Medium level of harm.
MEDIUM = 3; -
HIGH
High level of harm.
HIGH = 4; -
UNRECOGNIZED
-
-
Field Details
-
HARM_PROBABILITY_UNSPECIFIED_VALUE
public static final int HARM_PROBABILITY_UNSPECIFIED_VALUEHarm probability unspecified.
HARM_PROBABILITY_UNSPECIFIED = 0;- See Also:
-
NEGLIGIBLE_VALUE
public static final int NEGLIGIBLE_VALUENegligible level of harm.
NEGLIGIBLE = 1;- See Also:
-
LOW_VALUE
public static final int LOW_VALUELow level of harm.
LOW = 2;- See Also:
-
MEDIUM_VALUE
public static final int MEDIUM_VALUEMedium level of harm.
MEDIUM = 3;- See Also:
-
HIGH_VALUE
public static final int HIGH_VALUEHigh level of harm.
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.HarmProbability> 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.HarmProbability 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
-