Class 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 type google.cloud.language.v1.PartOfSpeech
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getTagValue

        public int getTagValue()
         The part of speech tag.
         
        .google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
        Specified by:
        getTagValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for tag.
      • getAspectValue

        public int getAspectValue()
         The grammatical aspect.
         
        .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
        Specified by:
        getAspectValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for aspect.
      • getCaseValue

        public int getCaseValue()
         The grammatical case.
         
        .google.cloud.language.v1.PartOfSpeech.Case case = 3;
        Specified by:
        getCaseValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for case.
      • getFormValue

        public int getFormValue()
         The grammatical form.
         
        .google.cloud.language.v1.PartOfSpeech.Form form = 4;
        Specified by:
        getFormValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for form.
      • getGenderValue

        public int getGenderValue()
         The grammatical gender.
         
        .google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
        Specified by:
        getGenderValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for gender.
      • getMoodValue

        public int getMoodValue()
         The grammatical mood.
         
        .google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
        Specified by:
        getMoodValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for mood.
      • getNumberValue

        public int getNumberValue()
         The grammatical number.
         
        .google.cloud.language.v1.PartOfSpeech.Number number = 7;
        Specified by:
        getNumberValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for number.
      • getPersonValue

        public int getPersonValue()
         The grammatical person.
         
        .google.cloud.language.v1.PartOfSpeech.Person person = 8;
        Specified by:
        getPersonValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for person.
      • getProperValue

        public int getProperValue()
         The grammatical properness.
         
        .google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
        Specified by:
        getProperValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for proper.
      • getReciprocityValue

        public int getReciprocityValue()
         The grammatical reciprocity.
         
        .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
        Specified by:
        getReciprocityValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for reciprocity.
      • getTenseValue

        public int getTenseValue()
         The grammatical tense.
         
        .google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
        Specified by:
        getTenseValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for tense.
      • getVoiceValue

        public int getVoiceValue()
         The grammatical voice.
         
        .google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
        Specified by:
        getVoiceValue in interface PartOfSpeechOrBuilder
        Returns:
        The enum numeric value on the wire for voice.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Throws:
        IOException
      • newBuilderForType

        public PartOfSpeech.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PartOfSpeech.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PartOfSpeech.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PartOfSpeech getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder