public static enum Entity.Type extends java.lang.Enum<Entity.Type> implements ProtocolMessageEnum
The type of the entity.Protobuf enum
google.cloud.language.v1.Entity.Type
Enum Constant and Description |
---|
CONSUMER_GOOD
Consumer goods
|
EVENT
Event
|
LOCATION
Location
|
ORGANIZATION
Organization
|
OTHER
Other types
|
PERSON
Person
|
UNKNOWN
Unknown
|
UNRECOGNIZED |
WORK_OF_ART
Work of art
|
Modifier and Type | Field and Description |
---|---|
static int |
CONSUMER_GOOD_VALUE
Consumer goods
|
static int |
EVENT_VALUE
Event
|
static int |
LOCATION_VALUE
Location
|
static int |
ORGANIZATION_VALUE
Organization
|
static int |
OTHER_VALUE
Other types
|
static int |
PERSON_VALUE
Person
|
static int |
UNKNOWN_VALUE
Unknown
|
static int |
WORK_OF_ART_VALUE
Work of art
|
Modifier and Type | Method and Description |
---|---|
static Entity.Type |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Entity.Type> |
internalGetValueMap() |
static Entity.Type |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Entity.Type |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Entity.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Entity.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Entity.Type UNKNOWN
Unknown
UNKNOWN = 0;
public static final Entity.Type PERSON
Person
PERSON = 1;
public static final Entity.Type LOCATION
Location
LOCATION = 2;
public static final Entity.Type ORGANIZATION
Organization
ORGANIZATION = 3;
public static final Entity.Type EVENT
Event
EVENT = 4;
public static final Entity.Type WORK_OF_ART
Work of art
WORK_OF_ART = 5;
public static final Entity.Type CONSUMER_GOOD
Consumer goods
CONSUMER_GOOD = 6;
public static final Entity.Type OTHER
Other types
OTHER = 7;
public static final Entity.Type UNRECOGNIZED
public static final int UNKNOWN_VALUE
Unknown
UNKNOWN = 0;
public static final int PERSON_VALUE
Person
PERSON = 1;
public static final int LOCATION_VALUE
Location
LOCATION = 2;
public static final int ORGANIZATION_VALUE
Organization
ORGANIZATION = 3;
public static final int EVENT_VALUE
Event
EVENT = 4;
public static final int WORK_OF_ART_VALUE
Work of art
WORK_OF_ART = 5;
public static final int CONSUMER_GOOD_VALUE
Consumer goods
CONSUMER_GOOD = 6;
public static final int OTHER_VALUE
Other types
OTHER = 7;
public static Entity.Type[] values()
for (Entity.Type c : Entity.Type.values()) System.out.println(c);
public static Entity.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 Entity.Type valueOf(int value)
forNumber(int)
instead.public static Entity.Type forNumber(int value)
public static Internal.EnumLiteMap<Entity.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 Entity.Type valueOf(Descriptors.EnumValueDescriptor desc)