public static enum PartOfSpeech.Voice extends java.lang.Enum<PartOfSpeech.Voice> implements ProtocolMessageEnum
The relationship between the action that a verb expresses and the participants identified by its arguments.Protobuf enum
google.cloud.language.v1.PartOfSpeech.Voice| Enum Constant and Description |
|---|
ACTIVE
Active
|
CAUSATIVE
Causative
|
PASSIVE
Passive
|
UNRECOGNIZED |
VOICE_UNKNOWN
Voice is not applicable in the analyzed language or is not predicted.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_VALUE
Active
|
static int |
CAUSATIVE_VALUE
Causative
|
static int |
PASSIVE_VALUE
Passive
|
static int |
VOICE_UNKNOWN_VALUE
Voice is not applicable in the analyzed language or is not predicted.
|
| Modifier and Type | Method and Description |
|---|---|
static PartOfSpeech.Voice |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<PartOfSpeech.Voice> |
internalGetValueMap() |
static PartOfSpeech.Voice |
valueOf(Descriptors.EnumValueDescriptor desc) |
static PartOfSpeech.Voice |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PartOfSpeech.Voice |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech.Voice[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartOfSpeech.Voice VOICE_UNKNOWN
Voice is not applicable in the analyzed language or is not predicted.
VOICE_UNKNOWN = 0;public static final PartOfSpeech.Voice ACTIVE
Active
ACTIVE = 1;public static final PartOfSpeech.Voice CAUSATIVE
Causative
CAUSATIVE = 2;public static final PartOfSpeech.Voice PASSIVE
Passive
PASSIVE = 3;public static final PartOfSpeech.Voice UNRECOGNIZED
public static final int VOICE_UNKNOWN_VALUE
Voice is not applicable in the analyzed language or is not predicted.
VOICE_UNKNOWN = 0;public static final int ACTIVE_VALUE
Active
ACTIVE = 1;public static final int CAUSATIVE_VALUE
Causative
CAUSATIVE = 2;public static final int PASSIVE_VALUE
Passive
PASSIVE = 3;public static PartOfSpeech.Voice[] values()
for (PartOfSpeech.Voice c : PartOfSpeech.Voice.values()) System.out.println(c);
public static PartOfSpeech.Voice 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.EnumLitegetNumber in interface ProtocolMessageEnum@Deprecated public static PartOfSpeech.Voice valueOf(int value)
forNumber(int) instead.public static PartOfSpeech.Voice forNumber(int value)
public static Internal.EnumLiteMap<PartOfSpeech.Voice> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface ProtocolMessageEnumpublic final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface ProtocolMessageEnumpublic static final Descriptors.EnumDescriptor getDescriptor()
public static PartOfSpeech.Voice valueOf(Descriptors.EnumValueDescriptor desc)