Interface TokenOrBuilder (2.43.0)

public interface TokenOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDependencyEdge()

public abstract DependencyEdge getDependencyEdge()

Dependency tree parse for this token.

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

Returns
Type Description
DependencyEdge

The dependencyEdge.

getDependencyEdgeOrBuilder()

public abstract DependencyEdgeOrBuilder getDependencyEdgeOrBuilder()

Dependency tree parse for this token.

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

Returns
Type Description
DependencyEdgeOrBuilder

getLemma()

public abstract String getLemma()

Lemma of the token.

string lemma = 4;

Returns
Type Description
String

The lemma.

getLemmaBytes()

public abstract ByteString getLemmaBytes()

Lemma of the token.

string lemma = 4;

Returns
Type Description
ByteString

The bytes for lemma.

getPartOfSpeech()

public abstract PartOfSpeech getPartOfSpeech()

Parts of speech tag for this token.

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

Returns
Type Description
PartOfSpeech

The partOfSpeech.

getPartOfSpeechOrBuilder()

public abstract PartOfSpeechOrBuilder getPartOfSpeechOrBuilder()

Parts of speech tag for this token.

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

Returns
Type Description
PartOfSpeechOrBuilder

getText()

public abstract TextSpan getText()

The token text.

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

Returns
Type Description
TextSpan

The text.

getTextOrBuilder()

public abstract TextSpanOrBuilder getTextOrBuilder()

The token text.

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

Returns
Type Description
TextSpanOrBuilder

hasDependencyEdge()

public abstract boolean hasDependencyEdge()

Dependency tree parse for this token.

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

Returns
Type Description
boolean

Whether the dependencyEdge field is set.

hasPartOfSpeech()

public abstract boolean hasPartOfSpeech()

Parts of speech tag for this token.

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

Returns
Type Description
boolean

Whether the partOfSpeech field is set.

hasText()

public abstract boolean hasText()

The token text.

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

Returns
Type Description
boolean

Whether the text field is set.