public static enum Intent.TrainingPhrase.Type extends Enum<Intent.TrainingPhrase.Type> implements com.google.protobuf.ProtocolMessageEnum
Represents different types of training phrases.Protobuf enum
google.cloud.dialogflow.v2beta1.Intent.TrainingPhrase.Type| Enum Constant and Description |
|---|
EXAMPLE
Examples do not contain @-prefixed entity type names, but example parts
can be annotated with entity types.
|
TEMPLATE
Deprecated.
|
TYPE_UNSPECIFIED
Not specified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
EXAMPLE_VALUE
Examples do not contain @-prefixed entity type names, but example parts
can be annotated with entity types.
|
static int |
TEMPLATE_VALUE
Deprecated.
|
static int |
TYPE_UNSPECIFIED_VALUE
Not specified.
|
| Modifier and Type | Method and Description |
|---|---|
static Intent.TrainingPhrase.Type |
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<Intent.TrainingPhrase.Type> |
internalGetValueMap() |
static Intent.TrainingPhrase.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Intent.TrainingPhrase.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Intent.TrainingPhrase.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Intent.TrainingPhrase.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Intent.TrainingPhrase.Type TYPE_UNSPECIFIED
Not specified. This value should never be used.
TYPE_UNSPECIFIED = 0;public static final Intent.TrainingPhrase.Type EXAMPLE
Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.
EXAMPLE = 1;@Deprecated public static final Intent.TrainingPhrase.Type TEMPLATE
Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance.
TEMPLATE = 2 [deprecated = true];public static final Intent.TrainingPhrase.Type UNRECOGNIZED
public static final int TYPE_UNSPECIFIED_VALUE
Not specified. This value should never be used.
TYPE_UNSPECIFIED = 0;public static final int EXAMPLE_VALUE
Examples do not contain @-prefixed entity type names, but example parts can be annotated with entity types.
EXAMPLE = 1;@Deprecated public static final int TEMPLATE_VALUE
Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings. Note: Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases in template mode, they will be removed during training and it can cause a drop in agent performance.
TEMPLATE = 2 [deprecated = true];public static Intent.TrainingPhrase.Type[] values()
for (Intent.TrainingPhrase.Type c : Intent.TrainingPhrase.Type.values()) System.out.println(c);
public static Intent.TrainingPhrase.Type 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 Intent.TrainingPhrase.Type valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Intent.TrainingPhrase.Type forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Intent.TrainingPhrase.Type> 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 Intent.TrainingPhrase.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.