Interface TokenOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Token
,Token.Builder
public interface TokenOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DependencyEdge
getDependencyEdge()
Dependency tree parse for this token.DependencyEdgeOrBuilder
getDependencyEdgeOrBuilder()
Dependency tree parse for this token.String
getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.com.google.protobuf.ByteString
getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.PartOfSpeech
getPartOfSpeech()
Parts of speech tag for this token.PartOfSpeechOrBuilder
getPartOfSpeechOrBuilder()
Parts of speech tag for this token.TextSpan
getText()
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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasText
boolean hasText()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
- Returns:
- Whether the text field is set.
-
getText
TextSpan getText()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
- Returns:
- The text.
-
getTextOrBuilder
TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1beta2.TextSpan text = 1;
-
hasPartOfSpeech
boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
- Returns:
- Whether the partOfSpeech field is set.
-
getPartOfSpeech
PartOfSpeech getPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
- Returns:
- The partOfSpeech.
-
getPartOfSpeechOrBuilder
PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1beta2.PartOfSpeech part_of_speech = 2;
-
hasDependencyEdge
boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
- Returns:
- Whether the dependencyEdge field is set.
-
getDependencyEdge
DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
- Returns:
- The dependencyEdge.
-
getDependencyEdgeOrBuilder
DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1beta2.DependencyEdge dependency_edge = 3;
-
getLemma
String getLemma()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
- Returns:
- The lemma.
-
getLemmaBytes
com.google.protobuf.ByteString getLemmaBytes()
[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.
string lemma = 4;
- Returns:
- The bytes for lemma.
-
-