public static enum GenerateContentResponse.PromptFeedback.BlockedReason extends Enum<GenerateContentResponse.PromptFeedback.BlockedReason> implements com.google.protobuf.ProtocolMessageEnum
Blocked reason enumeration.Protobuf enum
google.cloud.vertexai.v1.GenerateContentResponse.PromptFeedback.BlockedReason| Enum Constant and Description |
|---|
BLOCKED_REASON_UNSPECIFIED
Unspecified blocked reason.
|
BLOCKLIST
Candidates blocked due to the terms which are included from the
terminology blocklist.
|
OTHER
Candidates blocked due to other reason.
|
PROHIBITED_CONTENT
Candidates blocked due to prohibited content.
|
SAFETY
Candidates blocked due to safety.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
BLOCKED_REASON_UNSPECIFIED_VALUE
Unspecified blocked reason.
|
static int |
BLOCKLIST_VALUE
Candidates blocked due to the terms which are included from the
terminology blocklist.
|
static int |
OTHER_VALUE
Candidates blocked due to other reason.
|
static int |
PROHIBITED_CONTENT_VALUE
Candidates blocked due to prohibited content.
|
static int |
SAFETY_VALUE
Candidates blocked due to safety.
|
| Modifier and Type | Method and Description |
|---|---|
static GenerateContentResponse.PromptFeedback.BlockedReason |
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<GenerateContentResponse.PromptFeedback.BlockedReason> |
internalGetValueMap() |
static GenerateContentResponse.PromptFeedback.BlockedReason |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GenerateContentResponse.PromptFeedback.BlockedReason |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GenerateContentResponse.PromptFeedback.BlockedReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GenerateContentResponse.PromptFeedback.BlockedReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GenerateContentResponse.PromptFeedback.BlockedReason BLOCKED_REASON_UNSPECIFIED
Unspecified blocked reason.
BLOCKED_REASON_UNSPECIFIED = 0;public static final GenerateContentResponse.PromptFeedback.BlockedReason SAFETY
Candidates blocked due to safety.
SAFETY = 1;public static final GenerateContentResponse.PromptFeedback.BlockedReason OTHER
Candidates blocked due to other reason.
OTHER = 2;public static final GenerateContentResponse.PromptFeedback.BlockedReason BLOCKLIST
Candidates blocked due to the terms which are included from the terminology blocklist.
BLOCKLIST = 3;public static final GenerateContentResponse.PromptFeedback.BlockedReason PROHIBITED_CONTENT
Candidates blocked due to prohibited content.
PROHIBITED_CONTENT = 4;public static final GenerateContentResponse.PromptFeedback.BlockedReason UNRECOGNIZED
public static final int BLOCKED_REASON_UNSPECIFIED_VALUE
Unspecified blocked reason.
BLOCKED_REASON_UNSPECIFIED = 0;public static final int SAFETY_VALUE
Candidates blocked due to safety.
SAFETY = 1;public static final int OTHER_VALUE
Candidates blocked due to other reason.
OTHER = 2;public static final int BLOCKLIST_VALUE
Candidates blocked due to the terms which are included from the terminology blocklist.
BLOCKLIST = 3;public static final int PROHIBITED_CONTENT_VALUE
Candidates blocked due to prohibited content.
PROHIBITED_CONTENT = 4;public static GenerateContentResponse.PromptFeedback.BlockedReason[] values()
for (GenerateContentResponse.PromptFeedback.BlockedReason c : GenerateContentResponse.PromptFeedback.BlockedReason.values()) System.out.println(c);
public static GenerateContentResponse.PromptFeedback.BlockedReason 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 GenerateContentResponse.PromptFeedback.BlockedReason valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static GenerateContentResponse.PromptFeedback.BlockedReason forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<GenerateContentResponse.PromptFeedback.BlockedReason> 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 GenerateContentResponse.PromptFeedback.BlockedReason valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.