- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
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.v1beta2.Token
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Token.BuilderImplements
TokenOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
build()
public Token build()
Returns | |
---|---|
Type | Description |
Token |
buildPartial()
public Token buildPartial()
Returns | |
---|---|
Type | Description |
Token |
clear()
public Token.Builder clear()
Returns | |
---|---|
Type | Description |
Token.Builder |
clearDependencyEdge()
public Token.Builder clearDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Returns | |
---|---|
Type | Description |
Token.Builder |
clearLemma()
public Token.Builder clearLemma()
Lemma of the token.
string lemma = 4;
Returns | |
---|---|
Type | Description |
Token.Builder | This builder for chaining. |
clearPartOfSpeech()
public Token.Builder clearPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Returns | |
---|---|
Type | Description |
Token.Builder |
clearText()
public Token.Builder clearText()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Returns | |
---|---|
Type | Description |
Token.Builder |
getDefaultInstanceForType()
public Token getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Token |
getDependencyEdge()
public DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Returns | |
---|---|
Type | Description |
DependencyEdge | The dependencyEdge. |
getDependencyEdgeBuilder()
public DependencyEdge.Builder getDependencyEdgeBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Returns | |
---|---|
Type | Description |
DependencyEdge.Builder |
getDependencyEdgeOrBuilder()
public DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Returns | |
---|---|
Type | Description |
DependencyEdgeOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLemma()
public String getLemma()
Lemma of the token.
string lemma = 4;
Returns | |
---|---|
Type | Description |
String | The lemma. |
getLemmaBytes()
public ByteString getLemmaBytes()
Lemma of the token.
string lemma = 4;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for lemma. |
getPartOfSpeech()
public PartOfSpeech getPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Returns | |
---|---|
Type | Description |
PartOfSpeech | The partOfSpeech. |
getPartOfSpeechBuilder()
public PartOfSpeech.Builder getPartOfSpeechBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Returns | |
---|---|
Type | Description |
PartOfSpeech.Builder |
getPartOfSpeechOrBuilder()
public PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Returns | |
---|---|
Type | Description |
PartOfSpeechOrBuilder |
getText()
public TextSpan getText()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Returns | |
---|---|
Type | Description |
TextSpan | The text. |
getTextBuilder()
public TextSpan.Builder getTextBuilder()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Returns | |
---|---|
Type | Description |
TextSpan.Builder |
getTextOrBuilder()
public TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Returns | |
---|---|
Type | Description |
TextSpanOrBuilder |
hasDependencyEdge()
public boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Returns | |
---|---|
Type | Description |
boolean | Whether the dependencyEdge field is set. |
hasPartOfSpeech()
public boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Returns | |
---|---|
Type | Description |
boolean | Whether the partOfSpeech field is set. |
hasText()
public boolean hasText()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Returns | |
---|---|
Type | Description |
boolean | Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeDependencyEdge(DependencyEdge value)
public Token.Builder mergeDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Parameter | |
---|---|
Name | Description |
value | DependencyEdge |
Returns | |
---|---|
Type | Description |
Token.Builder |
mergeFrom(Token other)
public Token.Builder mergeFrom(Token other)
Parameter | |
---|---|
Name | Description |
other | Token |
Returns | |
---|---|
Type | Description |
Token.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Token.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Token.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Token.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
Token.Builder |
mergePartOfSpeech(PartOfSpeech value)
public Token.Builder mergePartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Parameter | |
---|---|
Name | Description |
value | PartOfSpeech |
Returns | |
---|---|
Type | Description |
Token.Builder |
mergeText(TextSpan value)
public Token.Builder mergeText(TextSpan value)
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Parameter | |
---|---|
Name | Description |
value | TextSpan |
Returns | |
---|---|
Type | Description |
Token.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Token.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Token.Builder |
setDependencyEdge(DependencyEdge value)
public Token.Builder setDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Parameter | |
---|---|
Name | Description |
value | DependencyEdge |
Returns | |
---|---|
Type | Description |
Token.Builder |
setDependencyEdge(DependencyEdge.Builder builderForValue)
public Token.Builder setDependencyEdge(DependencyEdge.Builder builderForValue)
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
Parameter | |
---|---|
Name | Description |
builderForValue | DependencyEdge.Builder |
Returns | |
---|---|
Type | Description |
Token.Builder |
setLemma(String value)
public Token.Builder setLemma(String value)
Lemma of the token.
string lemma = 4;
Parameter | |
---|---|
Name | Description |
value | String The lemma to set. |
Returns | |
---|---|
Type | Description |
Token.Builder | This builder for chaining. |
setLemmaBytes(ByteString value)
public Token.Builder setLemmaBytes(ByteString value)
Lemma of the token.
string lemma = 4;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for lemma to set. |
Returns | |
---|---|
Type | Description |
Token.Builder | This builder for chaining. |
setPartOfSpeech(PartOfSpeech value)
public Token.Builder setPartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Parameter | |
---|---|
Name | Description |
value | PartOfSpeech |
Returns | |
---|---|
Type | Description |
Token.Builder |
setPartOfSpeech(PartOfSpeech.Builder builderForValue)
public Token.Builder setPartOfSpeech(PartOfSpeech.Builder builderForValue)
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
Parameter | |
---|---|
Name | Description |
builderForValue | PartOfSpeech.Builder |
Returns | |
---|---|
Type | Description |
Token.Builder |
setText(TextSpan value)
public Token.Builder setText(TextSpan value)
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Parameter | |
---|---|
Name | Description |
value | TextSpan |
Returns | |
---|---|
Type | Description |
Token.Builder |
setText(TextSpan.Builder builderForValue)
public Token.Builder setText(TextSpan.Builder builderForValue)
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
Parameter | |
---|---|
Name | Description |
builderForValue | TextSpan.Builder |
Returns | |
---|---|
Type | Description |
Token.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Token.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Token.Builder |