public final class PartOfSpeech extends GeneratedMessageV3 implements PartOfSpeechOrBuilder
Represents part of speech information for a token.Protobuf type
google.cloud.language.v1beta2.PartOfSpeech| Modifier and Type | Class and Description | 
|---|---|
| static class  | PartOfSpeech.Aspect
 The characteristic of a verb that expresses time flow during an event. | 
| static class  | PartOfSpeech.Builder
 Represents part of speech information for a token. | 
| static class  | PartOfSpeech.Case
 The grammatical function performed by a noun or pronoun in a phrase,
 clause, or sentence. | 
| static class  | PartOfSpeech.Form
 Depending on the language, Form can be categorizing different forms of
 verbs, adjectives, adverbs, etc. | 
| static class  | PartOfSpeech.Gender
 Gender classes of nouns reflected in the behaviour of associated words. | 
| static class  | PartOfSpeech.Mood
 The grammatical feature of verbs, used for showing modality and attitude. | 
| static class  | PartOfSpeech.Number
 Count distinctions. | 
| static class  | PartOfSpeech.Person
 The distinction between the speaker, second person, third person, etc. | 
| static class  | PartOfSpeech.Proper
 This category shows if the token is part of a proper name. | 
| static class  | PartOfSpeech.Reciprocity
 Reciprocal features of a pronoun. | 
| static class  | PartOfSpeech.Tag
 The part of speech tags enum. | 
| static class  | PartOfSpeech.Tense
 Time reference. | 
| static class  | PartOfSpeech.Voice
 The relationship between the action that a verb expresses and the
 participants identified by its arguments. | 
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description | 
|---|---|
| static int | ASPECT_FIELD_NUMBER | 
| static int | CASE_FIELD_NUMBER | 
| static int | FORM_FIELD_NUMBER | 
| static int | GENDER_FIELD_NUMBER | 
| static int | MOOD_FIELD_NUMBER | 
| static int | NUMBER_FIELD_NUMBER | 
| static int | PERSON_FIELD_NUMBER | 
| static int | PROPER_FIELD_NUMBER | 
| static int | RECIPROCITY_FIELD_NUMBER | 
| static int | TAG_FIELD_NUMBER | 
| static int | TENSE_FIELD_NUMBER | 
| static int | VOICE_FIELD_NUMBER | 
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCodecanUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TAG_FIELD_NUMBER
public static final int ASPECT_FIELD_NUMBER
public static final int CASE_FIELD_NUMBER
public static final int FORM_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER
public static final int MOOD_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
public static final int PERSON_FIELD_NUMBER
public static final int PROPER_FIELD_NUMBER
public static final int RECIPROCITY_FIELD_NUMBER
public static final int TENSE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public int getTagValue()
The part of speech tag.
.google.cloud.language.v1beta2.PartOfSpeech.Tag tag = 1;getTagValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Tag getTag()
The part of speech tag.
.google.cloud.language.v1beta2.PartOfSpeech.Tag tag = 1;getTag in interface PartOfSpeechOrBuilderpublic int getAspectValue()
The grammatical aspect.
.google.cloud.language.v1beta2.PartOfSpeech.Aspect aspect = 2;getAspectValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Aspect getAspect()
The grammatical aspect.
.google.cloud.language.v1beta2.PartOfSpeech.Aspect aspect = 2;getAspect in interface PartOfSpeechOrBuilderpublic int getCaseValue()
The grammatical case.
.google.cloud.language.v1beta2.PartOfSpeech.Case case = 3;getCaseValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Case getCase()
The grammatical case.
.google.cloud.language.v1beta2.PartOfSpeech.Case case = 3;getCase in interface PartOfSpeechOrBuilderpublic int getFormValue()
The grammatical form.
.google.cloud.language.v1beta2.PartOfSpeech.Form form = 4;getFormValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Form getForm()
The grammatical form.
.google.cloud.language.v1beta2.PartOfSpeech.Form form = 4;getForm in interface PartOfSpeechOrBuilderpublic int getGenderValue()
The grammatical gender.
.google.cloud.language.v1beta2.PartOfSpeech.Gender gender = 5;getGenderValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Gender getGender()
The grammatical gender.
.google.cloud.language.v1beta2.PartOfSpeech.Gender gender = 5;getGender in interface PartOfSpeechOrBuilderpublic int getMoodValue()
The grammatical mood.
.google.cloud.language.v1beta2.PartOfSpeech.Mood mood = 6;getMoodValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Mood getMood()
The grammatical mood.
.google.cloud.language.v1beta2.PartOfSpeech.Mood mood = 6;getMood in interface PartOfSpeechOrBuilderpublic int getNumberValue()
The grammatical number.
.google.cloud.language.v1beta2.PartOfSpeech.Number number = 7;getNumberValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Number getNumber()
The grammatical number.
.google.cloud.language.v1beta2.PartOfSpeech.Number number = 7;getNumber in interface PartOfSpeechOrBuilderpublic int getPersonValue()
The grammatical person.
.google.cloud.language.v1beta2.PartOfSpeech.Person person = 8;getPersonValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Person getPerson()
The grammatical person.
.google.cloud.language.v1beta2.PartOfSpeech.Person person = 8;getPerson in interface PartOfSpeechOrBuilderpublic int getProperValue()
The grammatical properness.
.google.cloud.language.v1beta2.PartOfSpeech.Proper proper = 9;getProperValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Proper getProper()
The grammatical properness.
.google.cloud.language.v1beta2.PartOfSpeech.Proper proper = 9;getProper in interface PartOfSpeechOrBuilderpublic int getReciprocityValue()
The grammatical reciprocity.
.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity reciprocity = 10;getReciprocityValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Reciprocity getReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity reciprocity = 10;getReciprocity in interface PartOfSpeechOrBuilderpublic int getTenseValue()
The grammatical tense.
.google.cloud.language.v1beta2.PartOfSpeech.Tense tense = 11;getTenseValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Tense getTense()
The grammatical tense.
.google.cloud.language.v1beta2.PartOfSpeech.Tense tense = 11;getTense in interface PartOfSpeechOrBuilderpublic int getVoiceValue()
The grammatical voice.
.google.cloud.language.v1beta2.PartOfSpeech.Voice voice = 12;getVoiceValue in interface PartOfSpeechOrBuilderpublic PartOfSpeech.Voice getVoice()
The grammatical voice.
.google.cloud.language.v1beta2.PartOfSpeech.Voice voice = 12;getVoice in interface PartOfSpeechOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static PartOfSpeech parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PartOfSpeech parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PartOfSpeech parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PartOfSpeech.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PartOfSpeech.Builder newBuilder()
public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
public PartOfSpeech.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected PartOfSpeech.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static PartOfSpeech getDefaultInstance()
public static Parser<PartOfSpeech> parser()
public Parser<PartOfSpeech> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public PartOfSpeech getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder