public static enum EntityMention.Type extends java.lang.Enum<EntityMention.Type> implements ProtocolMessageEnum
The supported types of mentions.Protobuf enum
google.cloud.language.v1.EntityMention.Type
Enum Constant and Description |
---|
COMMON
Common noun (or noun compound)
|
PROPER
Proper name
|
TYPE_UNKNOWN
Unknown
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
COMMON_VALUE
Common noun (or noun compound)
|
static int |
PROPER_VALUE
Proper name
|
static int |
TYPE_UNKNOWN_VALUE
Unknown
|
Modifier and Type | Method and Description |
---|---|
static EntityMention.Type |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<EntityMention.Type> |
internalGetValueMap() |
static EntityMention.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static EntityMention.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EntityMention.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityMention.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityMention.Type TYPE_UNKNOWN
Unknown
TYPE_UNKNOWN = 0;
public static final EntityMention.Type PROPER
Proper name
PROPER = 1;
public static final EntityMention.Type COMMON
Common noun (or noun compound)
COMMON = 2;
public static final EntityMention.Type UNRECOGNIZED
public static final int TYPE_UNKNOWN_VALUE
Unknown
TYPE_UNKNOWN = 0;
public static final int PROPER_VALUE
Proper name
PROPER = 1;
public static final int COMMON_VALUE
Common noun (or noun compound)
COMMON = 2;
public static EntityMention.Type[] values()
for (EntityMention.Type c : EntityMention.Type.values()) System.out.println(c);
public static EntityMention.Type 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 EntityMention.Type valueOf(int value)
forNumber(int)
instead.public static EntityMention.Type forNumber(int value)
public static Internal.EnumLiteMap<EntityMention.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 EntityMention.Type valueOf(Descriptors.EnumValueDescriptor desc)