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
Templates are not annotated with entity types, but they can contain
@-prefixed entity type names as substrings.
|
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
Templates are not annotated with entity types, but they can contain
@-prefixed entity type names as substrings.
|
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;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 = 2;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;public static final int TEMPLATE_VALUE
Templates are not annotated with entity types, but they can contain @-prefixed entity type names as substrings.
TEMPLATE = 2;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.public static Intent.TrainingPhrase.Type forNumber(int value)
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 © 2019 Google LLC. All rights reserved.