class AnalyzeSyntaxResponse extends Message

The syntax analysis response message.

Protobuf type Google\Cloud\Language\V1beta2\AnalyzeSyntaxResponse

Methods

__construct()

No description

RepeatedField
getSentences()

Sentences in the input document.

setSentences(array|RepeatedField $var)

Sentences in the input document.

RepeatedField
getTokens()

Tokens, along with their syntactic information, in the input document.

setTokens(array|RepeatedField $var)

Tokens, along with their syntactic information, 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 39
__construct()

at line 50
RepeatedField getSentences()

Sentences in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Return Value

RepeatedField

at line 61
setSentences(array|RepeatedField $var)

Sentences in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Sentence sentences = 1;

Parameters

array|RepeatedField $var

at line 73
RepeatedField getTokens()

Tokens, along with their syntactic information, in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Token tokens = 2;

Return Value

RepeatedField

at line 84
setTokens(array|RepeatedField $var)

Tokens, along with their syntactic information, in the input document.

Generated from protobuf field repeated .google.cloud.language.v1beta2.Token tokens = 2;

Parameters

array|RepeatedField $var

at line 98
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 = 3;

Return Value

string

at line 111
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 = 3;

Parameters

string $var