publicfinalclass PartOfSpeechextendsGeneratedMessageV3implementsPartOfSpeechOrBuilder
Represents part of speech information for a token.
Protobuf type google.cloud.language.v1beta2.PartOfSpeech
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ASPECT_FIELD_NUMBER
publicstaticfinalintASPECT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
CASE_FIELD_NUMBER
publicstaticfinalintCASE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
publicstaticfinalintFORM_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
GENDER_FIELD_NUMBER
publicstaticfinalintGENDER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
MOOD_FIELD_NUMBER
publicstaticfinalintMOOD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
NUMBER_FIELD_NUMBER
publicstaticfinalintNUMBER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PERSON_FIELD_NUMBER
publicstaticfinalintPERSON_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
PROPER_FIELD_NUMBER
publicstaticfinalintPROPER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
RECIPROCITY_FIELD_NUMBER
publicstaticfinalintRECIPROCITY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TAG_FIELD_NUMBER
publicstaticfinalintTAG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
TENSE_FIELD_NUMBER
publicstaticfinalintTENSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
VOICE_FIELD_NUMBER
publicstaticfinalintVOICE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticPartOfSpeechgetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticPartOfSpeech.BuildernewBuilder()
newBuilder(PartOfSpeech prototype)
publicstaticPartOfSpeech.BuildernewBuilder(PartOfSpeechprototype)
publicstaticPartOfSpeechparseDelimitedFrom(InputStreaminput)
publicstaticPartOfSpeechparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticPartOfSpeechparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticPartOfSpeechparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticPartOfSpeechparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticPartOfSpeechparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticPartOfSpeechparseFrom(CodedInputStreaminput)
publicstaticPartOfSpeechparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticPartOfSpeechparseFrom(InputStreaminput)
publicstaticPartOfSpeechparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticPartOfSpeechparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticPartOfSpeechparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<PartOfSpeech>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAspect()
publicPartOfSpeech.AspectgetAspect()
The grammatical aspect.
.google.cloud.language.v1beta2.PartOfSpeech.Aspect aspect = 2;
getAspectValue()
publicintgetAspectValue()
The grammatical aspect.
.google.cloud.language.v1beta2.PartOfSpeech.Aspect aspect = 2;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for aspect.
|
getCase()
publicPartOfSpeech.CasegetCase()
The grammatical case.
.google.cloud.language.v1beta2.PartOfSpeech.Case case = 3;
getCaseValue()
The grammatical case.
.google.cloud.language.v1beta2.PartOfSpeech.Case case = 3;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for case.
|
getDefaultInstanceForType()
publicPartOfSpeechgetDefaultInstanceForType()
publicPartOfSpeech.FormgetForm()
The grammatical form.
.google.cloud.language.v1beta2.PartOfSpeech.Form form = 4;
The grammatical form.
.google.cloud.language.v1beta2.PartOfSpeech.Form form = 4;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for form.
|
getGender()
publicPartOfSpeech.GendergetGender()
The grammatical gender.
.google.cloud.language.v1beta2.PartOfSpeech.Gender gender = 5;
getGenderValue()
publicintgetGenderValue()
The grammatical gender.
.google.cloud.language.v1beta2.PartOfSpeech.Gender gender = 5;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for gender.
|
getMood()
publicPartOfSpeech.MoodgetMood()
The grammatical mood.
.google.cloud.language.v1beta2.PartOfSpeech.Mood mood = 6;
getMoodValue()
The grammatical mood.
.google.cloud.language.v1beta2.PartOfSpeech.Mood mood = 6;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for mood.
|
getNumber()
publicPartOfSpeech.NumbergetNumber()
The grammatical number.
.google.cloud.language.v1beta2.PartOfSpeech.Number number = 7;
getNumberValue()
publicintgetNumberValue()
The grammatical number.
.google.cloud.language.v1beta2.PartOfSpeech.Number number = 7;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for number.
|
getParserForType()
publicParser<PartOfSpeech>getParserForType()
Overrides
getPerson()
publicPartOfSpeech.PersongetPerson()
The grammatical person.
.google.cloud.language.v1beta2.PartOfSpeech.Person person = 8;
getPersonValue()
publicintgetPersonValue()
The grammatical person.
.google.cloud.language.v1beta2.PartOfSpeech.Person person = 8;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for person.
|
getProper()
publicPartOfSpeech.PropergetProper()
The grammatical properness.
.google.cloud.language.v1beta2.PartOfSpeech.Proper proper = 9;
getProperValue()
publicintgetProperValue()
The grammatical properness.
.google.cloud.language.v1beta2.PartOfSpeech.Proper proper = 9;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for proper.
|
getReciprocity()
publicPartOfSpeech.ReciprocitygetReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity reciprocity = 10;
getReciprocityValue()
publicintgetReciprocityValue()
The grammatical reciprocity.
.google.cloud.language.v1beta2.PartOfSpeech.Reciprocity reciprocity = 10;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for reciprocity.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getTag()
publicPartOfSpeech.TaggetTag()
The part of speech tag.
.google.cloud.language.v1beta2.PartOfSpeech.Tag tag = 1;
getTagValue()
The part of speech tag.
.google.cloud.language.v1beta2.PartOfSpeech.Tag tag = 1;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for tag.
|
getTense()
publicPartOfSpeech.TensegetTense()
The grammatical tense.
.google.cloud.language.v1beta2.PartOfSpeech.Tense tense = 11;
getTenseValue()
The grammatical tense.
.google.cloud.language.v1beta2.PartOfSpeech.Tense tense = 11;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for tense.
|
getVoice()
publicPartOfSpeech.VoicegetVoice()
The grammatical voice.
.google.cloud.language.v1beta2.PartOfSpeech.Voice voice = 12;
getVoiceValue()
The grammatical voice.
.google.cloud.language.v1beta2.PartOfSpeech.Voice voice = 12;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for voice.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicPartOfSpeech.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedPartOfSpeech.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicPartOfSpeech.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides