AnnotateTextResponse
class AnnotateTextResponse extends Message
The text annotations response message.
Protobuf type Google\Cloud\Language\V1beta2\AnnotateTextResponse
Methods
No description
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Tokens, along with their syntactic information, in the input document.
Tokens, along with their syntactic information, in the input document.
Entities, along with their semantic information, in the input document.
Entities, along with their semantic information, in the input document.
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
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.
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 57
__construct()
at line 69
RepeatedField
getSentences()
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
at line 81
setSentences(array|RepeatedField $var)
Sentences in the input document. Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Sentence sentences = 1;
at line 95
RepeatedField
getTokens()
Tokens, along with their syntactic information, in the input document.
Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Token tokens = 2;
at line 108
setTokens(array|RepeatedField $var)
Tokens, along with their syntactic information, in the input document.
Populated if the user enables [AnnotateTextRequest.Features.extract_syntax][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_syntax].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Token tokens = 2;
at line 122
RepeatedField
getEntities()
Entities, along with their semantic information, in the input document.
Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Entity entities = 3;
at line 135
setEntities(array|RepeatedField $var)
Entities, along with their semantic information, in the input document.
Populated if the user enables [AnnotateTextRequest.Features.extract_entities][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_entities].
Generated from protobuf field repeated .google.cloud.language.v1beta2.Entity entities = 3;
at line 148
Sentiment
getDocumentSentiment()
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
Generated from protobuf field .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
at line 160
setDocumentSentiment(Sentiment $var)
The overall sentiment for the document. Populated if the user enables [AnnotateTextRequest.Features.extract_document_sentiment][google.cloud.language.v1beta2.AnnotateTextRequest.Features.extract_document_sentiment].
Generated from protobuf field .google.cloud.language.v1beta2.Sentiment document_sentiment = 4;
at line 174
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 = 5;
at line 187
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 = 5;