Package com.google.cloud.language.v1
Enum PartOfSpeech.Mood
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PartOfSpeech.Mood>
- Enclosing class:
- PartOfSpeech
public static enum PartOfSpeech.Mood
extends Enum<PartOfSpeech.Mood>
implements com.google.protobuf.ProtocolMessageEnum
The grammatical feature of verbs, used for showing modality and attitude.Protobuf enum
google.cloud.language.v1.PartOfSpeech.Mood-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConditionalImperativeIndicativeInterrogativeJussiveMood is not applicable in the analyzed language or is not predicted.Subjunctive -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConditionalstatic final intImperativestatic final intIndicativestatic final intInterrogativestatic final intJussivestatic final intMood is not applicable in the analyzed language or is not predicted.static final intSubjunctive -
Method Summary
Modifier and TypeMethodDescriptionstatic PartOfSpeech.MoodforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<PartOfSpeech.Mood>static PartOfSpeech.MoodvalueOf(int value) Deprecated.static PartOfSpeech.MoodvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PartOfSpeech.MoodReturns the enum constant of this type with the specified name.static PartOfSpeech.Mood[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MOOD_UNKNOWN
Mood is not applicable in the analyzed language or is not predicted.
MOOD_UNKNOWN = 0; -
CONDITIONAL_MOOD
Conditional
CONDITIONAL_MOOD = 1; -
IMPERATIVE
Imperative
IMPERATIVE = 2; -
INDICATIVE
Indicative
INDICATIVE = 3; -
INTERROGATIVE
Interrogative
INTERROGATIVE = 4; -
JUSSIVE
Jussive
JUSSIVE = 5; -
SUBJUNCTIVE
Subjunctive
SUBJUNCTIVE = 6; -
UNRECOGNIZED
-
-
Field Details
-
MOOD_UNKNOWN_VALUE
public static final int MOOD_UNKNOWN_VALUEMood is not applicable in the analyzed language or is not predicted.
MOOD_UNKNOWN = 0;- See Also:
-
CONDITIONAL_MOOD_VALUE
public static final int CONDITIONAL_MOOD_VALUEConditional
CONDITIONAL_MOOD = 1;- See Also:
-
IMPERATIVE_VALUE
public static final int IMPERATIVE_VALUEImperative
IMPERATIVE = 2;- See Also:
-
INDICATIVE_VALUE
public static final int INDICATIVE_VALUEIndicative
INDICATIVE = 3;- See Also:
-
INTERROGATIVE_VALUE
public static final int INTERROGATIVE_VALUEInterrogative
INTERROGATIVE = 4;- See Also:
-
JUSSIVE_VALUE
public static final int JUSSIVE_VALUEJussive
JUSSIVE = 5;- See Also:
-
SUBJUNCTIVE_VALUE
public static final int SUBJUNCTIVE_VALUESubjunctive
SUBJUNCTIVE = 6;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-