public sealed class AnalyzeSentimentResponse : IMessage<AnalyzeSentimentResponse>, IEquatable<AnalyzeSentimentResponse>, IDeepCloneable<AnalyzeSentimentResponse>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Natural Language v1 API class AnalyzeSentimentResponse.
The sentiment analysis response message.
Implements
IMessage<AnalyzeSentimentResponse>, IEquatable<AnalyzeSentimentResponse>, IDeepCloneable<AnalyzeSentimentResponse>, IBufferMessage, IMessageNamespace
Google.Cloud.Language.V1Assembly
Google.Cloud.Language.V1.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 |
Language
public string Language { 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][google.cloud.language.v1.Document.language] field for more details.
Property Value | |
---|---|
Type | Description |
String |
Sentences
public RepeatedField<Sentence> Sentences { get; }
The sentiment for all the sentences in the document.
Property Value | |
---|---|
Type | Description |
RepeatedField<Sentence> |