Package com.google.cloud.language.v1
Class PartOfSpeech
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class PartOfSpeech extends com.google.protobuf.GeneratedMessageV3 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.pdf
Protobuf typegoogle.cloud.language.v1.PartOfSpeech- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPartOfSpeech.AspectThe characteristic of a verb that expresses time flow during an event.static classPartOfSpeech.BuilderRepresents part of speech information for a token.static classPartOfSpeech.CaseThe grammatical function performed by a noun or pronoun in a phrase, clause, or sentence.static classPartOfSpeech.FormDepending on the language, Form can be categorizing different forms of verbs, adjectives, adverbs, etc.static classPartOfSpeech.GenderGender classes of nouns reflected in the behaviour of associated words.static classPartOfSpeech.MoodThe grammatical feature of verbs, used for showing modality and attitude.static classPartOfSpeech.NumberCount distinctions.static classPartOfSpeech.PersonThe distinction between the speaker, second person, third person, etc.static classPartOfSpeech.ProperThis category shows if the token is part of a proper name.static classPartOfSpeech.ReciprocityReciprocal features of a pronoun.static classPartOfSpeech.TagThe part of speech tags enum.static classPartOfSpeech.TenseTime reference.static classPartOfSpeech.VoiceThe relationship between the action that a verb expresses and the participants identified by its arguments.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intASPECT_FIELD_NUMBERstatic intCASE_FIELD_NUMBERstatic intFORM_FIELD_NUMBERstatic intGENDER_FIELD_NUMBERstatic intMOOD_FIELD_NUMBERstatic intNUMBER_FIELD_NUMBERstatic intPERSON_FIELD_NUMBERstatic intPROPER_FIELD_NUMBERstatic intRECIPROCITY_FIELD_NUMBERstatic intTAG_FIELD_NUMBERstatic intTENSE_FIELD_NUMBERstatic intVOICE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)PartOfSpeech.AspectgetAspect()The grammatical aspect.intgetAspectValue()The grammatical aspect.PartOfSpeech.CasegetCase()The grammatical case.intgetCaseValue()The grammatical case.static PartOfSpeechgetDefaultInstance()PartOfSpeechgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()PartOfSpeech.FormgetForm()The grammatical form.intgetFormValue()The grammatical form.PartOfSpeech.GendergetGender()The grammatical gender.intgetGenderValue()The grammatical gender.PartOfSpeech.MoodgetMood()The grammatical mood.intgetMoodValue()The grammatical mood.PartOfSpeech.NumbergetNumber()The grammatical number.intgetNumberValue()The grammatical number.com.google.protobuf.Parser<PartOfSpeech>getParserForType()PartOfSpeech.PersongetPerson()The grammatical person.intgetPersonValue()The grammatical person.PartOfSpeech.PropergetProper()The grammatical properness.intgetProperValue()The grammatical properness.PartOfSpeech.ReciprocitygetReciprocity()The grammatical reciprocity.intgetReciprocityValue()The grammatical reciprocity.intgetSerializedSize()PartOfSpeech.TaggetTag()The part of speech tag.intgetTagValue()The part of speech tag.PartOfSpeech.TensegetTense()The grammatical tense.intgetTenseValue()The grammatical tense.PartOfSpeech.VoicegetVoice()The grammatical voice.intgetVoiceValue()The grammatical voice.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PartOfSpeech.BuildernewBuilder()static PartOfSpeech.BuildernewBuilder(PartOfSpeech prototype)PartOfSpeech.BuildernewBuilderForType()protected PartOfSpeech.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()PartOfSpeech.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ASPECT_FIELD_NUMBER
public static final int ASPECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CASE_FIELD_NUMBER
public static final int CASE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FORM_FIELD_NUMBER
public static final int FORM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GENDER_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MOOD_FIELD_NUMBER
public static final int MOOD_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERSON_FIELD_NUMBER
public static final int PERSON_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPER_FIELD_NUMBER
public static final int PROPER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECIPROCITY_FIELD_NUMBER
public static final int RECIPROCITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSE_FIELD_NUMBER
public static final int TENSE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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
public PartOfSpeech.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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static PartOfSpeech parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PartOfSpeech parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PartOfSpeech parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PartOfSpeech parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PartOfSpeech parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PartOfSpeech parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PartOfSpeech.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PartOfSpeech.Builder newBuilder()
-
newBuilder
public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
-
toBuilder
public PartOfSpeech.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PartOfSpeech.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PartOfSpeech getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PartOfSpeech> parser()
-
getParserForType
public com.google.protobuf.Parser<PartOfSpeech> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PartOfSpeech getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-