public static enum PartOfSpeech.Number extends Enum<PartOfSpeech.Number> implements ProtocolMessageEnum
Count distinctions.Protobuf enum
google.cloud.language.v1beta2.PartOfSpeech.Number
Enum Constant and Description |
---|
DUAL
Dual
|
NUMBER_UNKNOWN
Number is not applicable in the analyzed language or is not predicted.
|
PLURAL
Plural
|
SINGULAR
Singular
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DUAL_VALUE
Dual
|
static int |
NUMBER_UNKNOWN_VALUE
Number is not applicable in the analyzed language or is not predicted.
|
static int |
PLURAL_VALUE
Plural
|
static int |
SINGULAR_VALUE
Singular
|
Modifier and Type | Method and Description |
---|---|
static PartOfSpeech.Number |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<PartOfSpeech.Number> |
internalGetValueMap() |
static PartOfSpeech.Number |
valueOf(Descriptors.EnumValueDescriptor desc) |
static PartOfSpeech.Number |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static PartOfSpeech.Number |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PartOfSpeech.Number[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PartOfSpeech.Number NUMBER_UNKNOWN
Number is not applicable in the analyzed language or is not predicted.
NUMBER_UNKNOWN = 0;
public static final PartOfSpeech.Number SINGULAR
Singular
SINGULAR = 1;
public static final PartOfSpeech.Number PLURAL
Plural
PLURAL = 2;
public static final PartOfSpeech.Number DUAL
Dual
DUAL = 3;
public static final PartOfSpeech.Number UNRECOGNIZED
public static final int NUMBER_UNKNOWN_VALUE
Number is not applicable in the analyzed language or is not predicted.
NUMBER_UNKNOWN = 0;
public static final int SINGULAR_VALUE
Singular
SINGULAR = 1;
public static final int PLURAL_VALUE
Plural
PLURAL = 2;
public static final int DUAL_VALUE
Dual
DUAL = 3;
public static PartOfSpeech.Number[] values()
for (PartOfSpeech.Number c : PartOfSpeech.Number.values()) System.out.println(c);
public static PartOfSpeech.Number 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static PartOfSpeech.Number valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static PartOfSpeech.Number forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<PartOfSpeech.Number> 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.Number valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.