public static final class PartOfSpeech.Builder extends GeneratedMessageV3.Builder<PartOfSpeech.Builder> 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.pdfProtobuf type
google.cloud.language.v1.PartOfSpeech
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public PartOfSpeech build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public PartOfSpeech buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public PartOfSpeech.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder mergeFrom(PartOfSpeech other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public PartOfSpeech.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<PartOfSpeech.Builder>
IOException
public int getTagValue()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
getTagValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setTagValue(int value)
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
value
- The enum numeric value on the wire for tag to set.public PartOfSpeech.Tag getTag()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
getTag
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setTag(PartOfSpeech.Tag value)
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
value
- The tag to set.public PartOfSpeech.Builder clearTag()
The part of speech tag.
.google.cloud.language.v1.PartOfSpeech.Tag tag = 1;
public int getAspectValue()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
getAspectValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setAspectValue(int value)
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
value
- The enum numeric value on the wire for aspect to set.public PartOfSpeech.Aspect getAspect()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
getAspect
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setAspect(PartOfSpeech.Aspect value)
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
value
- The aspect to set.public PartOfSpeech.Builder clearAspect()
The grammatical aspect.
.google.cloud.language.v1.PartOfSpeech.Aspect aspect = 2;
public int getCaseValue()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
getCaseValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setCaseValue(int value)
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
value
- The enum numeric value on the wire for case to set.public PartOfSpeech.Case getCase()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
getCase
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setCase(PartOfSpeech.Case value)
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
value
- The case to set.public PartOfSpeech.Builder clearCase()
The grammatical case.
.google.cloud.language.v1.PartOfSpeech.Case case = 3;
public int getFormValue()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
getFormValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setFormValue(int value)
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
value
- The enum numeric value on the wire for form to set.public PartOfSpeech.Form getForm()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
getForm
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setForm(PartOfSpeech.Form value)
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
value
- The form to set.public PartOfSpeech.Builder clearForm()
The grammatical form.
.google.cloud.language.v1.PartOfSpeech.Form form = 4;
public int getGenderValue()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
getGenderValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setGenderValue(int value)
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
value
- The enum numeric value on the wire for gender to set.public PartOfSpeech.Gender getGender()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
getGender
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setGender(PartOfSpeech.Gender value)
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
value
- The gender to set.public PartOfSpeech.Builder clearGender()
The grammatical gender.
.google.cloud.language.v1.PartOfSpeech.Gender gender = 5;
public int getMoodValue()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
getMoodValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setMoodValue(int value)
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
value
- The enum numeric value on the wire for mood to set.public PartOfSpeech.Mood getMood()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
getMood
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setMood(PartOfSpeech.Mood value)
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
value
- The mood to set.public PartOfSpeech.Builder clearMood()
The grammatical mood.
.google.cloud.language.v1.PartOfSpeech.Mood mood = 6;
public int getNumberValue()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
getNumberValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setNumberValue(int value)
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
value
- The enum numeric value on the wire for number to set.public PartOfSpeech.Number getNumber()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
getNumber
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setNumber(PartOfSpeech.Number value)
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
value
- The number to set.public PartOfSpeech.Builder clearNumber()
The grammatical number.
.google.cloud.language.v1.PartOfSpeech.Number number = 7;
public int getPersonValue()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
getPersonValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setPersonValue(int value)
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
value
- The enum numeric value on the wire for person to set.public PartOfSpeech.Person getPerson()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
getPerson
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setPerson(PartOfSpeech.Person value)
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
value
- The person to set.public PartOfSpeech.Builder clearPerson()
The grammatical person.
.google.cloud.language.v1.PartOfSpeech.Person person = 8;
public int getProperValue()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
getProperValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setProperValue(int value)
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
value
- The enum numeric value on the wire for proper to set.public PartOfSpeech.Proper getProper()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
getProper
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setProper(PartOfSpeech.Proper value)
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
value
- The proper to set.public PartOfSpeech.Builder clearProper()
The grammatical properness.
.google.cloud.language.v1.PartOfSpeech.Proper proper = 9;
public int getReciprocityValue()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
getReciprocityValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setReciprocityValue(int value)
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
value
- The enum numeric value on the wire for reciprocity to set.public PartOfSpeech.Reciprocity getReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
getReciprocity
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setReciprocity(PartOfSpeech.Reciprocity value)
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
value
- The reciprocity to set.public PartOfSpeech.Builder clearReciprocity()
The grammatical reciprocity.
.google.cloud.language.v1.PartOfSpeech.Reciprocity reciprocity = 10;
public int getTenseValue()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
getTenseValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setTenseValue(int value)
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
value
- The enum numeric value on the wire for tense to set.public PartOfSpeech.Tense getTense()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
getTense
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setTense(PartOfSpeech.Tense value)
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
value
- The tense to set.public PartOfSpeech.Builder clearTense()
The grammatical tense.
.google.cloud.language.v1.PartOfSpeech.Tense tense = 11;
public int getVoiceValue()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
getVoiceValue
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setVoiceValue(int value)
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
value
- The enum numeric value on the wire for voice to set.public PartOfSpeech.Voice getVoice()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
getVoice
in interface PartOfSpeechOrBuilder
public PartOfSpeech.Builder setVoice(PartOfSpeech.Voice value)
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
value
- The voice to set.public PartOfSpeech.Builder clearVoice()
The grammatical voice.
.google.cloud.language.v1.PartOfSpeech.Voice voice = 12;
public final PartOfSpeech.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
public final PartOfSpeech.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<PartOfSpeech.Builder>
Copyright © 2022 Google LLC. All rights reserved.