- 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.v1.Token
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Token.BuilderImplements
TokenOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Token.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Token.Builder |
build()
public Token build()
Type | Description |
Token |
buildPartial()
public Token buildPartial()
Type | Description |
Token |
clear()
public Token.Builder clear()
Type | Description |
Token.Builder |
clearDependencyEdge()
public Token.Builder clearDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Type | Description |
Token.Builder |
clearField(Descriptors.FieldDescriptor field)
public Token.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Token.Builder |
clearLemma()
public Token.Builder clearLemma()
Lemma of the token.
string lemma = 4;
Type | Description |
Token.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Token.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Token.Builder |
clearPartOfSpeech()
public Token.Builder clearPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Type | Description |
Token.Builder |
clearText()
public Token.Builder clearText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Type | Description |
Token.Builder |
clone()
public Token.Builder clone()
Type | Description |
Token.Builder |
getDefaultInstanceForType()
public Token getDefaultInstanceForType()
Type | Description |
Token |
getDependencyEdge()
public DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Type | Description |
DependencyEdge | The dependencyEdge. |
getDependencyEdgeBuilder()
public DependencyEdge.Builder getDependencyEdgeBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Type | Description |
DependencyEdge.Builder |
getDependencyEdgeOrBuilder()
public DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Type | Description |
DependencyEdgeOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLemma()
public String getLemma()
Lemma of the token.
string lemma = 4;
Type | Description |
String | The lemma. |
getLemmaBytes()
public ByteString getLemmaBytes()
Lemma of the token.
string lemma = 4;
Type | Description |
ByteString | The bytes for lemma. |
getPartOfSpeech()
public PartOfSpeech getPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Type | Description |
PartOfSpeech | The partOfSpeech. |
getPartOfSpeechBuilder()
public PartOfSpeech.Builder getPartOfSpeechBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Type | Description |
PartOfSpeech.Builder |
getPartOfSpeechOrBuilder()
public PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Type | Description |
PartOfSpeechOrBuilder |
getText()
public TextSpan getText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Type | Description |
TextSpan | The text. |
getTextBuilder()
public TextSpan.Builder getTextBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Type | Description |
TextSpan.Builder |
getTextOrBuilder()
public TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Type | Description |
TextSpanOrBuilder |
hasDependencyEdge()
public boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Type | Description |
boolean | Whether the dependencyEdge field is set. |
hasPartOfSpeech()
public boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Type | Description |
boolean | Whether the partOfSpeech field is set. |
hasText()
public boolean hasText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Type | Description |
boolean | Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeDependencyEdge(DependencyEdge value)
public Token.Builder mergeDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Name | Description |
value | DependencyEdge |
Type | Description |
Token.Builder |
mergeFrom(Token other)
public Token.Builder mergeFrom(Token other)
Name | Description |
other | Token |
Type | Description |
Token.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Token.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Token.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Token.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Token.Builder |
mergePartOfSpeech(PartOfSpeech value)
public Token.Builder mergePartOfSpeech(PartOfSpeech value)
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
Name | Description |
value | PartOfSpeech |
Type | Description |
Token.Builder |
mergeText(TextSpan value)
public Token.Builder mergeText(TextSpan value)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Name | Description |
value | TextSpan |
Type | Description |
Token.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Token.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Token.Builder |
setDependencyEdge(DependencyEdge value)
public Token.Builder setDependencyEdge(DependencyEdge value)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Name | Description |
value | DependencyEdge |
Type | Description |
Token.Builder |
setDependencyEdge(DependencyEdge.Builder builderForValue)
public Token.Builder setDependencyEdge(DependencyEdge.Builder builderForValue)
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;
Name | Description |
builderForValue | DependencyEdge.Builder |
Type | Description |
Token.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Token.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Token.Builder |
setLemma(String value)
public Token.Builder setLemma(String value)
Lemma of the token.
string lemma = 4;
Name | Description |
value | String The lemma to set. |
Type | Description |
Token.Builder | This builder for chaining. |
setLemmaBytes(ByteString value)
public Token.Builder setLemmaBytes(ByteString value)
Lemma of the token.
string lemma = 4;
Name | Description |
value | ByteString The bytes for lemma to set. |
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.v1.PartOfSpeech part_of_speech = 2;
Name | Description |
value | PartOfSpeech |
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.v1.PartOfSpeech part_of_speech = 2;
Name | Description |
builderForValue | PartOfSpeech.Builder |
Type | Description |
Token.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Token.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Token.Builder |
setText(TextSpan value)
public Token.Builder setText(TextSpan value)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Name | Description |
value | TextSpan |
Type | Description |
Token.Builder |
setText(TextSpan.Builder builderForValue)
public Token.Builder setText(TextSpan.Builder builderForValue)
The token text.
.google.cloud.language.v1.TextSpan text = 1;
Name | Description |
builderForValue | TextSpan.Builder |
Type | Description |
Token.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Token.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Token.Builder |