public static enum EntityMention.Type extends Enum<EntityMention.Type> implements com.google.protobuf.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 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<EntityMention.Type> |
internalGetValueMap() |
static EntityMention.Type |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static EntityMention.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static EntityMention.Type |
valueOf(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(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 EntityMention.Type valueOf(int value)
forNumber(int) instead.public static EntityMention.Type forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<EntityMention.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 EntityMention.Type valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018 Google LLC. All rights reserved.