Interface AnnotateTextRequestOrBuilder (2.3.0)

public interface AnnotateTextRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDocument()

public abstract Document getDocument()

Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Document

The document.

getDocumentOrBuilder()

public abstract DocumentOrBuilder getDocumentOrBuilder()

Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
DocumentOrBuilder

getEncodingType()

public abstract EncodingType getEncodingType()

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1.EncodingType encoding_type = 3;

Returns
TypeDescription
EncodingType

The encodingType.

getEncodingTypeValue()

public abstract int getEncodingTypeValue()

The encoding type used by the API to calculate offsets.

.google.cloud.language.v1.EncodingType encoding_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for encodingType.

getFeatures()

public abstract AnnotateTextRequest.Features getFeatures()

The enabled features.

.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AnnotateTextRequest.Features

The features.

getFeaturesOrBuilder()

public abstract AnnotateTextRequest.FeaturesOrBuilder getFeaturesOrBuilder()

The enabled features.

.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AnnotateTextRequest.FeaturesOrBuilder

hasDocument()

public abstract boolean hasDocument()

Input document.

.google.cloud.language.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the document field is set.

hasFeatures()

public abstract boolean hasFeatures()

The enabled features.

.google.cloud.language.v1.AnnotateTextRequest.Features features = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the features field is set.