public static enum Intent.TrainingPhrase.Type extends Enum<Intent.TrainingPhrase.Type> implements 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 Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Intent.TrainingPhrase.Type> |
internalGetValueMap() |
static Intent.TrainingPhrase.Type |
valueOf(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. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work.
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. Template mode has been deprecated. Example mode is the only supported way to create new training phrases. If you have existing training phrases that you've created in template mode, those will continue to work.
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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<Intent.TrainingPhrase.Type> 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 Intent.TrainingPhrase.Type valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.