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 sentiment analysis response message.
Implements
IMessageAnalyzeSentimentResponse, IEquatableAnalyzeSentimentResponse, IDeepCloneableAnalyzeSentimentResponse, IBufferMessage, IMessageNamespace
Google.Cloud.Language.V2Assembly
Google.Cloud.Language.V2.dll
Constructors
AnalyzeSentimentResponse()
public AnalyzeSentimentResponse()
AnalyzeSentimentResponse(AnalyzeSentimentResponse)
public AnalyzeSentimentResponse(AnalyzeSentimentResponse other)
Parameter | |
---|---|
Name | Description |
other | AnalyzeSentimentResponse |
Properties
DocumentSentiment
public Sentiment DocumentSentiment { get; set; }
The overall sentiment of the input document.
Property Value | |
---|---|
Type | Description |
Sentiment |
LanguageCode
public string LanguageCode { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
LanguageSupported
public bool LanguageSupported { get; set; }
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.
Property Value | |
---|---|
Type | Description |
bool |
Sentences
public RepeatedField<Sentence> Sentences { get; }
The sentiment for all the sentences in the document.
Property Value | |
---|---|
Type | Description |
RepeatedFieldSentence |