AnalyzeSentimentRequest
class AnalyzeSentimentRequest extends Message
The sentiment analysis request message.
Protobuf type Google\Cloud\Language\V1beta2\AnalyzeSentimentRequest
Methods
No description
Input document.
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
Details
at line 32
__construct()
at line 43
Document
getDocument()
Input document.
Generated from protobuf field .google.cloud.language.v1beta2.Document document = 1;
at line 54
setDocument(Document $var)
Input document.
Generated from protobuf field .google.cloud.language.v1beta2.Document document = 1;
at line 67
int
getEncodingType()
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
Generated from protobuf field .google.cloud.language.v1beta2.EncodingType encoding_type = 2;
at line 79
setEncodingType(int $var)
The encoding type used by the API to calculate sentence offsets for the sentence sentiment.
Generated from protobuf field .google.cloud.language.v1beta2.EncodingType encoding_type = 2;