Interface TokenOrBuilder (2.23.0)

publicinterface TokenOrBuilderextendsMessageOrBuilder

Implements

MessageOrBuilder

Methods

getDependencyEdge()

publicabstractDependencyEdgegetDependencyEdge()

Dependency tree parse for this token.

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

Returns
Type Description
DependencyEdge

The dependencyEdge.

getDependencyEdgeOrBuilder()

publicabstractDependencyEdgeOrBuildergetDependencyEdgeOrBuilder()

Dependency tree parse for this token.

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

Returns
Type Description
DependencyEdgeOrBuilder

getLemma()

publicabstractStringgetLemma()

Lemma of the token.

string lemma = 4;

Returns
Type Description
String

The lemma.

getLemmaBytes()

publicabstractByteStringgetLemmaBytes()

Lemma of the token.

string lemma = 4;

Returns
Type Description
ByteString

The bytes for lemma.

getPartOfSpeech()

publicabstractPartOfSpeechgetPartOfSpeech()

Parts of speech tag for this token.

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

Returns
Type Description
PartOfSpeech

The partOfSpeech.

getPartOfSpeechOrBuilder()

publicabstractPartOfSpeechOrBuildergetPartOfSpeechOrBuilder()

Parts of speech tag for this token.

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

Returns
Type Description
PartOfSpeechOrBuilder

getText()

publicabstractTextSpangetText()

The token text.

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

Returns
Type Description
TextSpan

The text.

getTextOrBuilder()

publicabstractTextSpanOrBuildergetTextOrBuilder()

The token text.

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

Returns
Type Description
TextSpanOrBuilder

hasDependencyEdge()

publicabstractbooleanhasDependencyEdge()

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()

publicabstractbooleanhasPartOfSpeech()

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()

publicabstractbooleanhasText()

The token text.

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

Returns
Type Description
boolean

Whether the text field is set.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.