AnnotateTextRequest
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
No description
Input document.
The enabled features.
The encoding type used by the API to calculate offsets.
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;
at line 60
setDocument(Document $var)
Input document.
Generated from protobuf field .google.cloud.language.v1beta2.Document document = 1;
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;
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;