Class PartOfSpeech

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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

@Generated public final class PartOfSpeech extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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.
    • getTag

      public PartOfSpeech.Tag getTag()
       The part of speech tag.
       
      .google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
      Specified by:
      getTag in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getAspect

      public PartOfSpeech.Aspect getAspect()
       The grammatical aspect.
       
      .google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
      Specified by:
      getAspect in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getCase

      public PartOfSpeech.Case getCase()
       The grammatical case.
       
      .google.cloud.language.v1.PartOfSpeech.Case case = 3;
      Specified by:
      getCase in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getForm

      public PartOfSpeech.Form getForm()
       The grammatical form.
       
      .google.cloud.language.v1.PartOfSpeech.Form form = 4;
      Specified by:
      getForm in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getGender

      public PartOfSpeech.Gender getGender()
       The grammatical gender.
       
      .google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
      Specified by:
      getGender in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getMood

      public PartOfSpeech.Mood getMood()
       The grammatical mood.
       
      .google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
      Specified by:
      getMood in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getNumber

      public PartOfSpeech.Number getNumber()
       The grammatical number.
       
      .google.cloud.language.v1.PartOfSpeech.Number number = 7;
      Specified by:
      getNumber in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getPerson

      public PartOfSpeech.Person getPerson()
       The grammatical person.
       
      .google.cloud.language.v1.PartOfSpeech.Person person = 8;
      Specified by:
      getPerson in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getProper

      public PartOfSpeech.Proper getProper()
       The grammatical properness.
       
      .google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
      Specified by:
      getProper in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getReciprocity

      public PartOfSpeech.Reciprocity getReciprocity()
       The grammatical reciprocity.
       
      .google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
      Specified by:
      getReciprocity in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getTense

      public PartOfSpeech.Tense getTense()
       The grammatical tense.
       
      .google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
      Specified by:
      getTense in interface PartOfSpeechOrBuilder
      Returns:
      The 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.
    • getVoice

      public PartOfSpeech.Voice getVoice()
       The grammatical voice.
       
      .google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
      Specified by:
      getVoice in interface PartOfSpeechOrBuilder
      Returns:
      The voice.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(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:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static PartOfSpeech.Builder newBuilder()
    • newBuilder

      public static PartOfSpeech.Builder newBuilder(PartOfSpeech prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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