public sealed class AnalyzeSentimentResponse : IMessage<AnalyzeSentimentResponse>, IEquatable<AnalyzeSentimentResponse>, IDeepCloneable<AnalyzeSentimentResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Natural Language v2 API class AnalyzeSentimentResponse.
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][] field for more details.
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAnalyzeSentimentResponse\u003c/code\u003e class is part of the Google Cloud Natural Language v2 API, and it provides the sentiment analysis results for a given text.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentSentiment\u003c/code\u003e property provides the overall sentiment of the analyzed document, represented by the \u003ccode\u003eSentiment\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes the \u003ccode\u003eLanguageCode\u003c/code\u003e property, indicating the language of the analyzed text, and a \u003ccode\u003eLanguageSupported\u003c/code\u003e boolean value indicating if the language is officially supported by the api.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSentences\u003c/code\u003e property, a \u003ccode\u003eRepeatedField<Sentence>\u003c/code\u003e, provides sentiment analysis for each individual sentence within the document.\u003c/p\u003e\n"]]],[],null,[]]