Package com.google.cloud.aiplatform.v1
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 Summary
Enum ConstantsEnum ConstantDescriptionBlock low threshold and above (i.e. block more).Block medium threshold and above.Block none.Block only high threshold (i.e. block less).Unspecified harm block threshold.Turn off the safety filter. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBlock low threshold and above (i.e. block more).static final intBlock medium threshold and above.static final intBlock none.static final intBlock only high threshold (i.e. block less).static final intUnspecified harm block threshold.static final intTurn off the safety filter. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SafetySetting.HarmBlockThreshold>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.static SafetySetting.HarmBlockThreshold[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HARM_BLOCK_THRESHOLD_UNSPECIFIED
Unspecified harm block threshold.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; -
BLOCK_LOW_AND_ABOVE
Block low threshold and above (i.e. block more).
BLOCK_LOW_AND_ABOVE = 1; -
BLOCK_MEDIUM_AND_ABOVE
Block medium threshold and above.
BLOCK_MEDIUM_AND_ABOVE = 2; -
BLOCK_ONLY_HIGH
Block only high threshold (i.e. block less).
BLOCK_ONLY_HIGH = 3; -
BLOCK_NONE
Block none.
BLOCK_NONE = 4; -
OFF
Turn off the safety filter.
OFF = 5; -
UNRECOGNIZED
-
-
Field Details
-
HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE
public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUEUnspecified harm block threshold.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;- See Also:
-
BLOCK_LOW_AND_ABOVE_VALUE
public static final int BLOCK_LOW_AND_ABOVE_VALUEBlock 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_VALUEBlock medium threshold and above.
BLOCK_MEDIUM_AND_ABOVE = 2;- See Also:
-
BLOCK_ONLY_HIGH_VALUE
public static final int BLOCK_ONLY_HIGH_VALUEBlock only high threshold (i.e. block less).
BLOCK_ONLY_HIGH = 3;- See Also:
-
BLOCK_NONE_VALUE
public static final int BLOCK_NONE_VALUEBlock none.
BLOCK_NONE = 4;- See Also:
-
OFF_VALUE
public static final int OFF_VALUETurn off the safety filter.
OFF = 5;- 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<SafetySetting.HarmBlockThreshold> 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 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 nameNullPointerException- if the argument is null
-