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
Modifier and Type | Method and Description |
---|---|
Token.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Token |
build() |
Token |
buildPartial() |
Token.Builder |
clear() |
Token.Builder |
clearDependencyEdge()
Dependency tree parse for this token.
|
Token.Builder |
clearField(Descriptors.FieldDescriptor field) |
Token.Builder |
clearLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
Token.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
Token.Builder |
clearPartOfSpeech()
Parts of speech tag for this token.
|
Token.Builder |
clearText()
The token text.
|
Token.Builder |
clone() |
Token |
getDefaultInstanceForType() |
DependencyEdge |
getDependencyEdge()
Dependency tree parse for this token.
|
DependencyEdge.Builder |
getDependencyEdgeBuilder()
Dependency tree parse for this token.
|
DependencyEdgeOrBuilder |
getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
ByteString |
getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
PartOfSpeech |
getPartOfSpeech()
Parts of speech tag for this token.
|
PartOfSpeech.Builder |
getPartOfSpeechBuilder()
Parts of speech tag for this token.
|
PartOfSpeechOrBuilder |
getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
|
TextSpan |
getText()
The token text.
|
TextSpan.Builder |
getTextBuilder()
The token text.
|
TextSpanOrBuilder |
getTextOrBuilder()
The token text.
|
boolean |
hasDependencyEdge()
Dependency tree parse for this token.
|
boolean |
hasPartOfSpeech()
Parts of speech tag for this token.
|
boolean |
hasText()
The token text.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Token.Builder |
mergeDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
|
Token.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
Token.Builder |
mergeFrom(Message other) |
Token.Builder |
mergeFrom(Token other) |
Token.Builder |
mergePartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
|
Token.Builder |
mergeText(TextSpan value)
The token text.
|
Token.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
Token.Builder |
setDependencyEdge(DependencyEdge.Builder builderForValue)
Dependency tree parse for this token.
|
Token.Builder |
setDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
|
Token.Builder |
setField(Descriptors.FieldDescriptor field,
java.lang.Object value) |
Token.Builder |
setLemma(java.lang.String value)
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
Token.Builder |
setLemmaBytes(ByteString value)
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
|
Token.Builder |
setPartOfSpeech(PartOfSpeech.Builder builderForValue)
Parts of speech tag for this token.
|
Token.Builder |
setPartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
|
Token.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Token.Builder |
setText(TextSpan.Builder builderForValue)
The token text.
|
Token.Builder |
setText(TextSpan value)
The token text.
|
Token.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
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, java.lang.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, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<Token.Builder>
public Token.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.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 java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<Token.Builder>
java.io.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 java.lang.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(java.lang.String value)
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
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;
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>