public static enum SafetySetting.HarmBlockThreshold extends Enum<SafetySetting.HarmBlockThreshold> implements com.google.protobuf.ProtocolMessageEnum
Probability based thresholds levels for blocking.Protobuf enum
google.cloud.vertexai.v1.SafetySetting.HarmBlockThreshold| Enum Constant and Description |
|---|
BLOCK_LOW_AND_ABOVE
Block low threshold and above (i.e. block more).
|
BLOCK_MEDIUM_AND_ABOVE
Block medium threshold and above.
|
BLOCK_NONE
Block none.
|
BLOCK_ONLY_HIGH
Block only high threshold (i.e. block less).
|
HARM_BLOCK_THRESHOLD_UNSPECIFIED
Unspecified harm block threshold.
|
OFF
Turn off the safety filter.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCK_LOW_AND_ABOVE_VALUE
Block low threshold and above (i.e. block more).
|
static int |
BLOCK_MEDIUM_AND_ABOVE_VALUE
Block medium threshold and above.
|
static int |
BLOCK_NONE_VALUE
Block none.
|
static int |
BLOCK_ONLY_HIGH_VALUE
Block only high threshold (i.e. block less).
|
static int |
HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE
Unspecified harm block threshold.
|
static int |
OFF_VALUE
Turn off the safety filter.
|
| Modifier and Type | Method and Description |
|---|---|
static SafetySetting.HarmBlockThreshold |
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<SafetySetting.HarmBlockThreshold> |
internalGetValueMap() |
static SafetySetting.HarmBlockThreshold |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SafetySetting.HarmBlockThreshold |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SafetySetting.HarmBlockThreshold |
valueOf(String 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.
|
public static final SafetySetting.HarmBlockThreshold HARM_BLOCK_THRESHOLD_UNSPECIFIED
Unspecified harm block threshold.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;public static final SafetySetting.HarmBlockThreshold BLOCK_LOW_AND_ABOVE
Block low threshold and above (i.e. block more).
BLOCK_LOW_AND_ABOVE = 1;public static final SafetySetting.HarmBlockThreshold BLOCK_MEDIUM_AND_ABOVE
Block medium threshold and above.
BLOCK_MEDIUM_AND_ABOVE = 2;public static final SafetySetting.HarmBlockThreshold BLOCK_ONLY_HIGH
Block only high threshold (i.e. block less).
BLOCK_ONLY_HIGH = 3;public static final SafetySetting.HarmBlockThreshold BLOCK_NONE
Block none.
BLOCK_NONE = 4;public static final SafetySetting.HarmBlockThreshold OFF
Turn off the safety filter.
OFF = 5;public static final SafetySetting.HarmBlockThreshold UNRECOGNIZED
public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE
Unspecified harm block threshold.
HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0;public static final int BLOCK_LOW_AND_ABOVE_VALUE
Block low threshold and above (i.e. block more).
BLOCK_LOW_AND_ABOVE = 1;public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE
Block medium threshold and above.
BLOCK_MEDIUM_AND_ABOVE = 2;public static final int BLOCK_ONLY_HIGH_VALUE
Block only high threshold (i.e. block less).
BLOCK_ONLY_HIGH = 3;public static final int BLOCK_NONE_VALUE
Block none.
BLOCK_NONE = 4;public static final int OFF_VALUE
Turn off the safety filter.
OFF = 5;public static SafetySetting.HarmBlockThreshold[] values()
for (SafetySetting.HarmBlockThreshold c : SafetySetting.HarmBlockThreshold.values()) System.out.println(c);
public static SafetySetting.HarmBlockThreshold 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 SafetySetting.HarmBlockThreshold valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SafetySetting.HarmBlockThreshold forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SafetySetting.HarmBlockThreshold> 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 SafetySetting.HarmBlockThreshold valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.