Package com.google.cloud.language.v1
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 DependencyEdgegetDependencyEdge()Dependency tree parse for this token.DependencyEdgeOrBuildergetDependencyEdgeOrBuilder()Dependency tree parse for this token.StringgetLemma()[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.com.google.protobuf.ByteStringgetLemmaBytes()[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.PartOfSpeechgetPartOfSpeech()Parts of speech tag for this token.PartOfSpeechOrBuildergetPartOfSpeechOrBuilder()Parts of speech tag for this token.TextSpangetText()The token text.TextSpanOrBuildergetTextOrBuilder()The token text.booleanhasDependencyEdge()Dependency tree parse for this token.booleanhasPartOfSpeech()Parts of speech tag for this token.booleanhasText()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.v1.TextSpan text = 1;- Returns:
- Whether the text field is set.
-
getText
TextSpan getText()
The token text.
.google.cloud.language.v1.TextSpan text = 1;- Returns:
- The text.
-
getTextOrBuilder
TextSpanOrBuilder getTextOrBuilder()
The token text.
.google.cloud.language.v1.TextSpan text = 1;
-
hasPartOfSpeech
boolean hasPartOfSpeech()
Parts of speech tag for this token.
.google.cloud.language.v1.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.v1.PartOfSpeech part_of_speech = 2;- Returns:
- The partOfSpeech.
-
getPartOfSpeechOrBuilder
PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()
Parts of speech tag for this token.
.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;
-
hasDependencyEdge
boolean hasDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;- Returns:
- Whether the dependencyEdge field is set.
-
getDependencyEdge
DependencyEdge getDependencyEdge()
Dependency tree parse for this token.
.google.cloud.language.v1.DependencyEdge dependency_edge = 3;- Returns:
- The dependencyEdge.
-
getDependencyEdgeOrBuilder
DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()
Dependency tree parse for this token.
.google.cloud.language.v1.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.
-
-