class AnalyzeEntitiesResponse extends Message

The entity analysis response message.

Protobuf type Google\Cloud\Language\V1beta2\AnalyzeEntitiesResponse

Methods

__construct()

No description

RepeatedField
getEntities()

The recognized entities in the input document.

setEntities(array|RepeatedField $var)

The recognized entities in the input document.

string
getLanguage()

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.

setLanguage(string $var)

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.

Details

at line 33
__construct()

at line 44
RepeatedField getEntities()

The recognized entities in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Entity entities = 1;

Return Value

RepeatedField

at line 55
setEntities(array|RepeatedField $var)

The recognized entities in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Entity entities = 1;

Parameters

array|RepeatedField $var

at line 69
string getLanguage()

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.

See [Document.language][google.cloud.language.v1beta2.Document.language] field for more details.

Generated from protobuf field string language = 2;

Return Value

string

at line 82
setLanguage(string $var)

The language of the text, which will be the same as the language specified in the request or, if not specified, the automatically-detected language.

See [Document.language][google.cloud.language.v1beta2.Document.language] field for more details.

Generated from protobuf field string language = 2;

Parameters

string $var