public static enum SafetySettings.PhraseMatchStrategy extends Enum<SafetySettings.PhraseMatchStrategy> implements com.google.protobuf.ProtocolMessageEnum
Strategy for matching phrases.Protobuf enum
google.cloud.dialogflow.cx.v3beta1.SafetySettings.PhraseMatchStrategy| Enum Constant and Description |
|---|
PARTIAL_MATCH
Text that contains the phrase as a substring will be matched, e.g.
|
PHRASE_MATCH_STRATEGY_UNSPECIFIED
Unspecified, defaults to PARTIAL_MATCH.
|
UNRECOGNIZED |
WORD_MATCH
Text that contains the tokenized words of the phrase will be matched,
e.g.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
PARTIAL_MATCH_VALUE
Text that contains the phrase as a substring will be matched, e.g.
|
static int |
PHRASE_MATCH_STRATEGY_UNSPECIFIED_VALUE
Unspecified, defaults to PARTIAL_MATCH.
|
static int |
WORD_MATCH_VALUE
Text that contains the tokenized words of the phrase will be matched,
e.g.
|
| Modifier and Type | Method and Description |
|---|---|
static SafetySettings.PhraseMatchStrategy |
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<SafetySettings.PhraseMatchStrategy> |
internalGetValueMap() |
static SafetySettings.PhraseMatchStrategy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SafetySettings.PhraseMatchStrategy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SafetySettings.PhraseMatchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SafetySettings.PhraseMatchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SafetySettings.PhraseMatchStrategy PHRASE_MATCH_STRATEGY_UNSPECIFIED
Unspecified, defaults to PARTIAL_MATCH.
PHRASE_MATCH_STRATEGY_UNSPECIFIED = 0;public static final SafetySettings.PhraseMatchStrategy PARTIAL_MATCH
Text that contains the phrase as a substring will be matched, e.g. "foo" will match "afoobar".
PARTIAL_MATCH = 1;public static final SafetySettings.PhraseMatchStrategy WORD_MATCH
Text that contains the tokenized words of the phrase will be matched, e.g. "foo" will match "a foo bar" and "foo bar", but not "foobar".
WORD_MATCH = 2;public static final SafetySettings.PhraseMatchStrategy UNRECOGNIZED
public static final int PHRASE_MATCH_STRATEGY_UNSPECIFIED_VALUE
Unspecified, defaults to PARTIAL_MATCH.
PHRASE_MATCH_STRATEGY_UNSPECIFIED = 0;public static final int PARTIAL_MATCH_VALUE
Text that contains the phrase as a substring will be matched, e.g. "foo" will match "afoobar".
PARTIAL_MATCH = 1;public static final int WORD_MATCH_VALUE
Text that contains the tokenized words of the phrase will be matched, e.g. "foo" will match "a foo bar" and "foo bar", but not "foobar".
WORD_MATCH = 2;public static SafetySettings.PhraseMatchStrategy[] values()
for (SafetySettings.PhraseMatchStrategy c : SafetySettings.PhraseMatchStrategy.values()) System.out.println(c);
public static SafetySettings.PhraseMatchStrategy 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 SafetySettings.PhraseMatchStrategy valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SafetySettings.PhraseMatchStrategy forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SafetySettings.PhraseMatchStrategy> 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 SafetySettings.PhraseMatchStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025 Google LLC. All rights reserved.