public static enum SuggestionDenyListEntry.MatchOperator extends Enum<SuggestionDenyListEntry.MatchOperator> implements com.google.protobuf.ProtocolMessageEnum
Operator for matching with the generated suggestions.Protobuf enum
google.cloud.discoveryengine.v1alpha.SuggestionDenyListEntry.MatchOperator| Enum Constant and Description |
|---|
CONTAINS
If the suggestion contains the block_phrase, then block it.
|
EXACT_MATCH
If the suggestion is an exact match to the block_phrase, then block it.
|
MATCH_OPERATOR_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTAINS_VALUE
If the suggestion contains the block_phrase, then block it.
|
static int |
EXACT_MATCH_VALUE
If the suggestion is an exact match to the block_phrase, then block it.
|
static int |
MATCH_OPERATOR_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SuggestionDenyListEntry.MatchOperator |
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<SuggestionDenyListEntry.MatchOperator> |
internalGetValueMap() |
static SuggestionDenyListEntry.MatchOperator |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SuggestionDenyListEntry.MatchOperator |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SuggestionDenyListEntry.MatchOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SuggestionDenyListEntry.MatchOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SuggestionDenyListEntry.MatchOperator MATCH_OPERATOR_UNSPECIFIED
Default value. Should not be used
MATCH_OPERATOR_UNSPECIFIED = 0;public static final SuggestionDenyListEntry.MatchOperator EXACT_MATCH
If the suggestion is an exact match to the block_phrase, then block it.
EXACT_MATCH = 1;public static final SuggestionDenyListEntry.MatchOperator CONTAINS
If the suggestion contains the block_phrase, then block it.
CONTAINS = 2;public static final SuggestionDenyListEntry.MatchOperator UNRECOGNIZED
public static final int MATCH_OPERATOR_UNSPECIFIED_VALUE
Default value. Should not be used
MATCH_OPERATOR_UNSPECIFIED = 0;public static final int EXACT_MATCH_VALUE
If the suggestion is an exact match to the block_phrase, then block it.
EXACT_MATCH = 1;public static final int CONTAINS_VALUE
If the suggestion contains the block_phrase, then block it.
CONTAINS = 2;public static SuggestionDenyListEntry.MatchOperator[] values()
for (SuggestionDenyListEntry.MatchOperator c : SuggestionDenyListEntry.MatchOperator.values()) System.out.println(c);
public static SuggestionDenyListEntry.MatchOperator 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 SuggestionDenyListEntry.MatchOperator valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SuggestionDenyListEntry.MatchOperator forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SuggestionDenyListEntry.MatchOperator> 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 SuggestionDenyListEntry.MatchOperator valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.