class AnnotateTextRequest extends Message

The request message for the text annotation API, which can perform multiple analysis types (sentiment, entities, and syntax) in one call.

Protobuf type Google\Cloud\Language\V1beta2\AnnotateTextRequest

Methods

__construct()

No description

getDocument()

Input document.

setDocument(Document $var)

Input document.

getFeatures()

The enabled features.

setFeatures(AnnotateTextRequest_Features $var)

The enabled features.

int
getEncodingType()

The encoding type used by the API to calculate offsets.

setEncodingType(int $var)

The encoding type used by the API to calculate offsets.

Details

at line 38
__construct()

at line 49
Document getDocument()

Input document.

Generated from protobuf field .google.cloud.language.v1beta2.Document document = 1;

Return Value

Document

at line 60
setDocument(Document $var)

Input document.

Generated from protobuf field .google.cloud.language.v1beta2.Document document = 1;

Parameters

Document $var

at line 72
AnnotateTextRequest_Features getFeatures()

The enabled features.

Generated from protobuf field .google.cloud.language.v1beta2.AnnotateTextRequest.Features features = 2;

at line 83
setFeatures(AnnotateTextRequest_Features $var)

The enabled features.

Generated from protobuf field .google.cloud.language.v1beta2.AnnotateTextRequest.Features features = 2;

at line 95
int getEncodingType()

The encoding type used by the API to calculate offsets.

Generated from protobuf field .google.cloud.language.v1beta2.EncodingType encoding_type = 3;

Return Value

int

at line 106
setEncodingType(int $var)

The encoding type used by the API to calculate offsets.

Generated from protobuf field .google.cloud.language.v1beta2.EncodingType encoding_type = 3;

Parameters

int $var