class AnalyzeEntitySentimentRequest extends Message

The entity-level sentiment analysis request message.

Protobuf type Google\Cloud\Language\V1beta2\AnalyzeEntitySentimentRequest

Methods

__construct()

No description

getDocument()

Input document.

setDocument(Document $var)

Input document.

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 31
__construct()

at line 42
Document getDocument()

Input document.

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

Return Value

Document

at line 53
setDocument(Document $var)

Input document.

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

Parameters

Document $var

at line 65
int getEncodingType()

The encoding type used by the API to calculate offsets.

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

Return Value

int

at line 76
setEncodingType(int $var)

The encoding type used by the API to calculate offsets.

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

Parameters

int $var