Send feedback
Class PartOfSpeech (2.3.4)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.3.4 keyboard_arrow_down
public final class PartOfSpeech extends GeneratedMessageV3 implements PartOfSpeechOrBuilder
Static Fields
ASPECT_FIELD_NUMBER
public static final int ASPECT_FIELD_NUMBER
Field Value
CASE_FIELD_NUMBER
public static final int CASE_FIELD_NUMBER
Field Value
public static final int FORM_FIELD_NUMBER
Field Value
GENDER_FIELD_NUMBER
public static final int GENDER_FIELD_NUMBER
Field Value
MOOD_FIELD_NUMBER
public static final int MOOD_FIELD_NUMBER
Field Value
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
Field Value
PERSON_FIELD_NUMBER
public static final int PERSON_FIELD_NUMBER
Field Value
PROPER_FIELD_NUMBER
public static final int PROPER_FIELD_NUMBER
Field Value
RECIPROCITY_FIELD_NUMBER
public static final int RECIPROCITY_FIELD_NUMBER
Field Value
TAG_FIELD_NUMBER
public static final int TAG_FIELD_NUMBER
Field Value
TENSE_FIELD_NUMBER
public static final int TENSE_FIELD_NUMBER
Field Value
VOICE_FIELD_NUMBER
public static final int VOICE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static PartOfSpeech getDefaultInstance ()
Returns
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Returns
newBuilder()
public static PartOfSpeech . Builder newBuilder ()
Returns
newBuilder(PartOfSpeech prototype)
public static PartOfSpeech . Builder newBuilder ( PartOfSpeech prototype )
Parameter
Returns
public static PartOfSpeech parseDelimitedFrom ( InputStream input )
Parameter
Returns
Exceptions
public static PartOfSpeech parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static PartOfSpeech parseFrom ( byte [] data )
Parameter
Name Description data byte []
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PartOfSpeech parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static PartOfSpeech parseFrom ( ByteString data )
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PartOfSpeech parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PartOfSpeech parseFrom ( CodedInputStream input )
Parameter
Returns
Exceptions
public static PartOfSpeech parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
public static PartOfSpeech parseFrom ( InputStream input )
Parameter
Returns
Exceptions
public static PartOfSpeech parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static PartOfSpeech parseFrom ( ByteBuffer data )
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PartOfSpeech parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
Parameters
Returns
Exceptions
parser()
public static Parser<PartOfSpeech> parser ()
Returns
Methods
equals(Object obj)
public boolean equals ( Object obj )
Parameter
Returns
Overrides
getAspect()
public PartOfSpeech . Aspect getAspect ()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
Returns
getAspectValue()
public int getAspectValue ()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
Returns
Type Description int The enum numeric value on the wire for aspect.
getCase()
public PartOfSpeech . Case getCase ()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
Returns
getCaseValue()
public int getCaseValue ()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
Returns
Type Description int The enum numeric value on the wire for case.
getDefaultInstanceForType()
public PartOfSpeech getDefaultInstanceForType ()
Returns
public PartOfSpeech . Form getForm ()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
Returns
public int getFormValue ()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
Returns
Type Description int The enum numeric value on the wire for form.
getGender()
public PartOfSpeech . Gender getGender ()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
Returns
getGenderValue()
public int getGenderValue ()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
Returns
Type Description int The enum numeric value on the wire for gender.
getMood()
public PartOfSpeech . Mood getMood ()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
Returns
getMoodValue()
public int getMoodValue ()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
Returns
Type Description int The enum numeric value on the wire for mood.
getNumber()
public PartOfSpeech . Number getNumber ()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
Returns
getNumberValue()
public int getNumberValue ()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
Returns
Type Description int The enum numeric value on the wire for number.
getParserForType()
public Parser<PartOfSpeech> getParserForType ()
Returns
Overrides
getPerson()
public PartOfSpeech . Person getPerson ()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
Returns
getPersonValue()
public int getPersonValue ()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
Returns
Type Description int The enum numeric value on the wire for person.
getProper()
public PartOfSpeech . Proper getProper ()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
Returns
getProperValue()
public int getProperValue ()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
Returns
Type Description int The enum numeric value on the wire for proper.
getReciprocity()
public PartOfSpeech . Reciprocity getReciprocity ()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
Returns
getReciprocityValue()
public int getReciprocityValue ()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
Returns
Type Description int The enum numeric value on the wire for reciprocity.
getSerializedSize()
public int getSerializedSize ()
Returns
Overrides
getTag()
public PartOfSpeech . Tag getTag ()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
Returns
getTagValue()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
Returns
Type Description int The enum numeric value on the wire for tag.
getTense()
public PartOfSpeech . Tense getTense ()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
Returns
getTenseValue()
public int getTenseValue ()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
Returns
Type Description int The enum numeric value on the wire for tense.
getUnknownFields()
public final UnknownFieldSet getUnknownFields ()
Returns
Overrides
getVoice()
public PartOfSpeech . Voice getVoice ()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
Returns
getVoiceValue()
public int getVoiceValue ()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
Returns
Type Description int The enum numeric value on the wire for voice.
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Returns
Overrides
isInitialized()
public final boolean isInitialized ()
Returns
Overrides
newBuilderForType()
public PartOfSpeech . Builder newBuilderForType ()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PartOfSpeech . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Parameter
Returns
Overrides
toBuilder()
public PartOfSpeech . Builder toBuilder ()
Returns
writeTo(CodedOutputStream output)
public void writeTo ( CodedOutputStream output )
Parameter
Overrides
Exceptions
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]