Package com.google.cloud.language.v1
Enum PartOfSpeech.Form
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<PartOfSpeech.Form>
- Enclosing class:
- PartOfSpeech
public static enum PartOfSpeech.Form
extends Enum<PartOfSpeech.Form>
implements com.google.protobuf.ProtocolMessageEnum
Depending on the language, Form can be categorizing different forms of verbs, adjectives, adverbs, etc. For example, categorizing inflected endings of verbs and adjectives or distinguishing between short and long forms of adjectives and participlesProtobuf enum
google.cloud.language.v1.PartOfSpeech.Form-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdnomialAuxiliaryComplementizerFinal endingForm is not applicable in the analyzed language or is not predicted.GerundIrrealisLong formOrder formRealisShort formSpecific form -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdnomialstatic final intAuxiliarystatic final intComplementizerstatic final intFinal endingstatic final intForm is not applicable in the analyzed language or is not predicted.static final intGerundstatic final intIrrealisstatic final intLong formstatic final intOrder formstatic final intRealisstatic final intShort formstatic final intSpecific form -
Method Summary
Modifier and TypeMethodDescriptionstatic PartOfSpeech.FormforNumber(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.Form>static PartOfSpeech.FormvalueOf(int value) Deprecated.static PartOfSpeech.FormvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static PartOfSpeech.FormReturns the enum constant of this type with the specified name.static PartOfSpeech.Form[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FORM_UNKNOWN
Form is not applicable in the analyzed language or is not predicted.
FORM_UNKNOWN = 0; -
ADNOMIAL
Adnomial
ADNOMIAL = 1; -
AUXILIARY
Auxiliary
AUXILIARY = 2; -
COMPLEMENTIZER
Complementizer
COMPLEMENTIZER = 3; -
FINAL_ENDING
Final ending
FINAL_ENDING = 4; -
GERUND
Gerund
GERUND = 5; -
REALIS
Realis
REALIS = 6; -
IRREALIS
Irrealis
IRREALIS = 7; -
SHORT
Short form
SHORT = 8; -
LONG
Long form
LONG = 9; -
ORDER
Order form
ORDER = 10; -
SPECIFIC
Specific form
SPECIFIC = 11; -
UNRECOGNIZED
-
-
Field Details
-
FORM_UNKNOWN_VALUE
public static final int FORM_UNKNOWN_VALUEForm is not applicable in the analyzed language or is not predicted.
FORM_UNKNOWN = 0;- See Also:
-
ADNOMIAL_VALUE
public static final int ADNOMIAL_VALUEAdnomial
ADNOMIAL = 1;- See Also:
-
AUXILIARY_VALUE
public static final int AUXILIARY_VALUEAuxiliary
AUXILIARY = 2;- See Also:
-
COMPLEMENTIZER_VALUE
public static final int COMPLEMENTIZER_VALUEComplementizer
COMPLEMENTIZER = 3;- See Also:
-
FINAL_ENDING_VALUE
public static final int FINAL_ENDING_VALUEFinal ending
FINAL_ENDING = 4;- See Also:
-
GERUND_VALUE
public static final int GERUND_VALUEGerund
GERUND = 5;- See Also:
-
REALIS_VALUE
public static final int REALIS_VALUERealis
REALIS = 6;- See Also:
-
IRREALIS_VALUE
public static final int IRREALIS_VALUEIrrealis
IRREALIS = 7;- See Also:
-
SHORT_VALUE
public static final int SHORT_VALUEShort form
SHORT = 8;- See Also:
-
LONG_VALUE
public static final int LONG_VALUELong form
LONG = 9;- See Also:
-
ORDER_VALUE
public static final int ORDER_VALUEOrder form
ORDER = 10;- See Also:
-
SPECIFIC_VALUE
public static final int SPECIFIC_VALUESpecific form
SPECIFIC = 11;- 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
-