Interface TokenOrBuilder (2.3.4)

public interface TokenOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDependencyEdge()

public abstract DependencyEdge getDependencyEdge()

Dependency tree parse for this token.

.google.cloud.language.v1.DependencyEdge dependency_edge = 3;

Returns
TypeDescription
DependencyEdge

The dependencyEdge.

getDependencyEdgeOrBuilder()

public abstract DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()

Dependency tree parse for this token.

.google.cloud.language.v1.DependencyEdge dependency_edge = 3;

Returns
TypeDescription
DependencyEdgeOrBuilder

getLemma()

public abstract String getLemma()

Lemma of the token.

string lemma = 4;

Returns
TypeDescription
String

The lemma.

getLemmaBytes()

public abstract ByteString getLemmaBytes()

Lemma of the token.

string lemma = 4;

Returns
TypeDescription
ByteString

The bytes for lemma.

getPartOfSpeech()

public abstract PartOfSpeech getPartOfSpeech()

Parts of speech tag for this token.

.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;

Returns
TypeDescription
PartOfSpeech

The partOfSpeech.

getPartOfSpeechOrBuilder()

public abstract PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()

Parts of speech tag for this token.

.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;

Returns
TypeDescription
PartOfSpeechOrBuilder

getText()

public abstract TextSpan getText()

The token text.

.google.cloud.language.v1.TextSpan text = 1;

Returns
TypeDescription
TextSpan

The text.

getTextOrBuilder()

public abstract TextSpanOrBuilder getTextOrBuilder()

The token text.

.google.cloud.language.v1.TextSpan text = 1;

Returns
TypeDescription
TextSpanOrBuilder

hasDependencyEdge()

public abstract boolean hasDependencyEdge()

Dependency tree parse for this token.

.google.cloud.language.v1.DependencyEdge dependency_edge = 3;

Returns
TypeDescription
boolean

Whether the dependencyEdge field is set.

hasPartOfSpeech()

public abstract boolean hasPartOfSpeech()

Parts of speech tag for this token.

.google.cloud.language.v1.PartOfSpeech part_of_speech = 2;

Returns
TypeDescription
boolean

Whether the partOfSpeech field is set.

hasText()

public abstract boolean hasText()

The token text.

.google.cloud.language.v1.TextSpan text = 1;

Returns
TypeDescription
boolean

Whether the text field is set.