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
@Generated
public interface TokenOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionDependency tree parse for this token.Dependency tree parse for this token.getLemma()[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.com.google.protobuf.ByteString[Lemma](https://en.wikipedia.org/wiki/Lemma_%28morphology%29) of the token.Parts of speech tag for this token.Parts of speech tag for this token.getText()The token text.The token text.booleanDependency tree parse for this token.booleanParts of speech tag for this token.booleanhasText()The token text.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.
-