Reference documentation and code samples for the Cloud Natural Language V2 Client class AnnotateTextRequest.
The request message for the text annotation API, which can perform multiple analysis types in one call.
Generated from protobuf message google.cloud.language.v2.AnnotateTextRequest
Namespace
Google \ Cloud \ Language \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ document
↳ features
↳ encoding_type
int
The encoding type used by the API to calculate offsets.
getDocument
Required. Input document.
hasDocument
clearDocument
setDocument
Required. Input document.
$this
getFeatures
Required. The enabled features.
hasFeatures
clearFeatures
setFeatures
Required. The enabled features.
$this
getEncodingType
The encoding type used by the API to calculate offsets.
int
setEncodingType
The encoding type used by the API to calculate offsets.
var
int
$this
static::build
document
features
encodingType
int
The encoding type used by the API to calculate offsets. For allowed values, use constants defined on Google\Cloud\Language\V2\EncodingType
static::buildFromDocumentFeatures
document
features