Package com.google.cloud.language.v1
Class PartOfSpeech
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.language.v1.PartOfSpeech
- All Implemented Interfaces:
PartOfSpeechOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class PartOfSpeech
extends com.google.protobuf.GeneratedMessage
implements PartOfSpeechOrBuilder
Represents part of speech information for a token. Parts of speech are as defined in http://www.lrec-conf.org/proceedings/lrec2012/pdf/274_Paper.pdfProtobuf type
google.cloud.language.v1.PartOfSpeech- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe characteristic of a verb that expresses time flow during an event.static final classRepresents part of speech information for a token.static enumThe grammatical function performed by a noun or pronoun in a phrase, clause, or sentence.static enumDepending on the language, Form can be categorizing different forms of verbs, adjectives, adverbs, etc.static enumGender classes of nouns reflected in the behaviour of associated words.static enumThe grammatical feature of verbs, used for showing modality and attitude.static enumCount distinctions.static enumThe distinction between the speaker, second person, third person, etc.static enumThis category shows if the token is part of a proper name.static enumReciprocal features of a pronoun.static enumThe part of speech tags enum.static enumTime reference.static enumThe relationship between the action that a verb expresses and the participants identified by its arguments.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe grammatical aspect.intThe grammatical aspect.getCase()The grammatical case.intThe grammatical case.static PartOfSpeechstatic final com.google.protobuf.Descriptors.DescriptorgetForm()The grammatical form.intThe grammatical form.The grammatical gender.intThe grammatical gender.getMood()The grammatical mood.intThe grammatical mood.The grammatical number.intThe grammatical number.com.google.protobuf.Parser<PartOfSpeech>The grammatical person.intThe grammatical person.The grammatical properness.intThe grammatical properness.The grammatical reciprocity.intThe grammatical reciprocity.intgetTag()The part of speech tag.intThe part of speech tag.getTense()The grammatical tense.intThe grammatical tense.getVoice()The grammatical voice.intThe grammatical voice.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic PartOfSpeech.Builderstatic PartOfSpeech.BuildernewBuilder(PartOfSpeech prototype) protected PartOfSpeech.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static PartOfSpeechparseDelimitedFrom(InputStream input) static PartOfSpeechparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartOfSpeechparseFrom(byte[] data) static PartOfSpeechparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartOfSpeechparseFrom(com.google.protobuf.ByteString data) static PartOfSpeechparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartOfSpeechparseFrom(com.google.protobuf.CodedInputStream input) static PartOfSpeechparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartOfSpeechparseFrom(InputStream input) static PartOfSpeechparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static PartOfSpeechparseFrom(ByteBuffer data) static PartOfSpeechparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<PartOfSpeech>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER- See Also:
-
ASPECT_FIELD_NUMBER
public static final int ASPECT_FIELD_NUMBER- See Also:
-
CASE_FIELD_NUMBER
public static final int CASE_FIELD_NUMBER- See Also:
-
FORM_FIELD_NUMBER
public static final int FORM_FIELD_NUMBER- See Also:
-
GENDER_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER- See Also:
-
MOOD_FIELD_NUMBER
public static final int MOOD_FIELD_NUMBER- See Also:
-
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER- See Also:
-
PERSON_FIELD_NUMBER
public static final int PERSON_FIELD_NUMBER- See Also:
-
PROPER_FIELD_NUMBER
public static final int PROPER_FIELD_NUMBER- See Also:
-
RECIPROCITY_FIELD_NUMBER
public static final int RECIPROCITY_FIELD_NUMBER- See Also:
-
TENSE_FIELD_NUMBER
public static final int TENSE_FIELD_NUMBER- See Also:
-
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTagValue
public int getTagValue()The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;- Specified by:
getTagValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for tag.
-
getTag
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;- Specified by:
getTagin interfacePartOfSpeechOrBuilder- Returns:
- The tag.
-
getAspectValue
public int getAspectValue()The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;- Specified by:
getAspectValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for aspect.
-
getAspect
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;- Specified by:
getAspectin interfacePartOfSpeechOrBuilder- Returns:
- The aspect.
-
getCaseValue
public int getCaseValue()The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;- Specified by:
getCaseValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for case.
-
getCase
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;- Specified by:
getCasein interfacePartOfSpeechOrBuilder- Returns:
- The case.
-
getFormValue
public int getFormValue()The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;- Specified by:
getFormValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for form.
-
getForm
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;- Specified by:
getFormin interfacePartOfSpeechOrBuilder- Returns:
- The form.
-
getGenderValue
public int getGenderValue()The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;- Specified by:
getGenderValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for gender.
-
getGender
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;- Specified by:
getGenderin interfacePartOfSpeechOrBuilder- Returns:
- The gender.
-
getMoodValue
public int getMoodValue()The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;- Specified by:
getMoodValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for mood.
-
getMood
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;- Specified by:
getMoodin interfacePartOfSpeechOrBuilder- Returns:
- The mood.
-
getNumberValue
public int getNumberValue()The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;- Specified by:
getNumberValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for number.
-
getNumber
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;- Specified by:
getNumberin interfacePartOfSpeechOrBuilder- Returns:
- The number.
-
getPersonValue
public int getPersonValue()The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;- Specified by:
getPersonValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for person.
-
getPerson
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;- Specified by:
getPersonin interfacePartOfSpeechOrBuilder- Returns:
- The person.
-
getProperValue
public int getProperValue()The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;- Specified by:
getProperValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for proper.
-
getProper
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;- Specified by:
getProperin interfacePartOfSpeechOrBuilder- Returns:
- The proper.
-
getReciprocityValue
public int getReciprocityValue()The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;- Specified by:
getReciprocityValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for reciprocity.
-
getReciprocity
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;- Specified by:
getReciprocityin interfacePartOfSpeechOrBuilder- Returns:
- The reciprocity.
-
getTenseValue
public int getTenseValue()The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;- Specified by:
getTenseValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for tense.
-
getTense
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;- Specified by:
getTensein interfacePartOfSpeechOrBuilder- Returns:
- The tense.
-
getVoiceValue
public int getVoiceValue()The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;- Specified by:
getVoiceValuein interfacePartOfSpeechOrBuilder- Returns:
- The enum numeric value on the wire for voice.
-
getVoice
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;- Specified by:
getVoicein interfacePartOfSpeechOrBuilder- Returns:
- The voice.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PartOfSpeech parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartOfSpeech parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartOfSpeech parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartOfSpeech parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartOfSpeech parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PartOfSpeech parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PartOfSpeech parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static PartOfSpeech parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static PartOfSpeech parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PartOfSpeech.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-