public static enum Agent.MatchMode extends java.lang.Enum<Agent.MatchMode> implements ProtocolMessageEnum
Match mode determines how intents are detected from user queries.Protobuf enum
google.cloud.dialogflow.v2.Agent.MatchMode
Enum Constant and Description |
---|
MATCH_MODE_HYBRID
Best for agents with a small number of examples in intents and/or wide
use of templates syntax and composite entities.
|
MATCH_MODE_ML_ONLY
Can be used for agents with a large number of examples in intents,
especially the ones using @sys.any or very large developer entities.
|
MATCH_MODE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
MATCH_MODE_HYBRID_VALUE
Best for agents with a small number of examples in intents and/or wide
use of templates syntax and composite entities.
|
static int |
MATCH_MODE_ML_ONLY_VALUE
Can be used for agents with a large number of examples in intents,
especially the ones using @sys.any or very large developer entities.
|
static int |
MATCH_MODE_UNSPECIFIED_VALUE
Not specified.
|
Modifier and Type | Method and Description |
---|---|
static Agent.MatchMode |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Agent.MatchMode> |
internalGetValueMap() |
static Agent.MatchMode |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Agent.MatchMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Agent.MatchMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Agent.MatchMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Agent.MatchMode MATCH_MODE_UNSPECIFIED
Not specified.
MATCH_MODE_UNSPECIFIED = 0;
public static final Agent.MatchMode MATCH_MODE_HYBRID
Best for agents with a small number of examples in intents and/or wide use of templates syntax and composite entities.
MATCH_MODE_HYBRID = 1;
public static final Agent.MatchMode MATCH_MODE_ML_ONLY
Can be used for agents with a large number of examples in intents, especially the ones using @sys.any or very large developer entities.
MATCH_MODE_ML_ONLY = 2;
public static final Agent.MatchMode UNRECOGNIZED
public static final int MATCH_MODE_UNSPECIFIED_VALUE
Not specified.
MATCH_MODE_UNSPECIFIED = 0;
public static final int MATCH_MODE_HYBRID_VALUE
Best for agents with a small number of examples in intents and/or wide use of templates syntax and composite entities.
MATCH_MODE_HYBRID = 1;
public static final int MATCH_MODE_ML_ONLY_VALUE
Can be used for agents with a large number of examples in intents, especially the ones using @sys.any or very large developer entities.
MATCH_MODE_ML_ONLY = 2;
public static Agent.MatchMode[] values()
for (Agent.MatchMode c : Agent.MatchMode.values()) System.out.println(c);
public static Agent.MatchMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Agent.MatchMode valueOf(int value)
forNumber(int)
instead.public static Agent.MatchMode forNumber(int value)
public static Internal.EnumLiteMap<Agent.MatchMode> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Agent.MatchMode valueOf(Descriptors.EnumValueDescriptor desc)