public static final class Token.Builder extends GeneratedMessageV3.Builder<Token.Builder> implements TokenOrBuilder
Represents the smallest syntactic building block of the text.Protobuf type
google.cloud.language.v1.Token
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<Token.Builder>
public Token.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<Token.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<Token.Builder>
public Token getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public Token build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public Token buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public Token.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<Token.Builder>
public Token.Builder mergeFrom(Token other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Token.Builder>
IOException
public boolean hasText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
hasText
in interface TokenOrBuilder
public TextSpan getText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
getText
in interface TokenOrBuilder
public Token.Builder setText(TextSpan value)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
public Token.Builder setText(TextSpan.Builder builderForValue)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
public Token.Builder mergeText(TextSpan value)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
public Token.Builder clearText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
public TextSpan.Builder getTextBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
public TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
getTextOrBuilder
in interface TokenOrBuilder
public boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
hasPartOfSpeech
in interface TokenOrBuilder
public PartOfSpeech getPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
getPartOfSpeech
in interface TokenOrBuilder
public Token.Builder setPartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
public Token.Builder setPartOfSpeech(PartOfSpeech.Builder builderForValue)
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
public Token.Builder mergePartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
public Token.Builder clearPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
public PartOfSpeech.Builder getPartOfSpeechBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
public PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
getPartOfSpeechOrBuilder
in interface TokenOrBuilder
public boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
hasDependencyEdge
in interface TokenOrBuilder
public DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
getDependencyEdge
in interface TokenOrBuilder
public Token.Builder setDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
public Token.Builder setDependencyEdge(DependencyEdge.Builder builderForValue)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
public Token.Builder mergeDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
public Token.Builder clearDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
public DependencyEdge.Builder getDependencyEdgeBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
public DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
getDependencyEdgeOrBuilder
in interface TokenOrBuilder
public String getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
getLemma
in interface TokenOrBuilder
public ByteString getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
getLemmaBytes
in interface TokenOrBuilder
public Token.Builder setLemma(String value)
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
value
- The lemma to set.public Token.Builder clearLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
public Token.Builder setLemmaBytes(ByteString value)
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
value
- The bytes for lemma to set.public final Token.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<Token.Builder>
public final Token.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<Token.Builder>
Copyright © 2022 Google LLC. All rights reserved.