public static enum PartOfSpeech.Person extends java.lang.Enum<PartOfSpeech.Person> implements ProtocolMessageEnum
The distinction between the speaker, second person, third person, etc.Protobuf enum
google.cloud.language.v1beta2.PartOfSpeech.Person
Enum Constant and Description |
---|
FIRST
First
|
PERSON_UNKNOWN
Person is not applicable in the analyzed language or is not predicted.
|
REFLEXIVE_PERSON
Reflexive
|
SECOND
Second
|
THIRD
Third
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
FIRST_VALUE
First
|
static int |
PERSON_UNKNOWN_VALUE
Person is not applicable in the analyzed language or is not predicted.
|
static int |
REFLEXIVE_PERSON_VALUE
Reflexive
|
static int |
SECOND_VALUE
Second
|
static int |
THIRD_VALUE
Third
|
Modifier and Type | Method and Description |
---|---|
static PartOfSpeech.Person |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<PartOfSpeech.Person> |
internalGetValueMap() |
static PartOfSpeech.Person |
valueOf(Descriptors.EnumValueDescriptor desc) |
static PartOfSpeech.Person |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PartOfSpeech.Person |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech.Person[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartOfSpeech.Person PERSON_UNKNOWN
Person is not applicable in the analyzed language or is not predicted.
PERSON_UNKNOWN = 0;
public static final PartOfSpeech.Person FIRST
First
FIRST = 1;
public static final PartOfSpeech.Person SECOND
Second
SECOND = 2;
public static final PartOfSpeech.Person THIRD
Third
THIRD = 3;
public static final PartOfSpeech.Person REFLEXIVE_PERSON
Reflexive
REFLEXIVE_PERSON = 4;
public static final PartOfSpeech.Person UNRECOGNIZED
public static final int PERSON_UNKNOWN_VALUE
Person is not applicable in the analyzed language or is not predicted.
PERSON_UNKNOWN = 0;
public static final int FIRST_VALUE
First
FIRST = 1;
public static final int SECOND_VALUE
Second
SECOND = 2;
public static final int THIRD_VALUE
Third
THIRD = 3;
public static final int REFLEXIVE_PERSON_VALUE
Reflexive
REFLEXIVE_PERSON = 4;
public static PartOfSpeech.Person[] values()
for (PartOfSpeech.Person c : PartOfSpeech.Person.values()) System.out.println(c);
public static PartOfSpeech.Person 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 PartOfSpeech.Person valueOf(int value)
forNumber(int)
instead.public static PartOfSpeech.Person forNumber(int value)
public static Internal.EnumLiteMap<PartOfSpeech.Person> 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 PartOfSpeech.Person valueOf(Descriptors.EnumValueDescriptor desc)