Google Cloud Natural Language v1 API - Class AnalyzeSentimentResponse (3.3.0)

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.

Inheritance

object > AnalyzeSentimentResponse

Namespace

Google.Cloud.Language.V1

Assembly

Google.Cloud.Language.V1.dll

Constructors

AnalyzeSentimentResponse()

public AnalyzeSentimentResponse()

AnalyzeSentimentResponse(AnalyzeSentimentResponse)

public AnalyzeSentimentResponse(AnalyzeSentimentResponse other)
Parameter
NameDescription
otherAnalyzeSentimentResponse

Properties

DocumentSentiment

public Sentiment DocumentSentiment { get; set; }

The overall sentiment of the input document.

Property Value
TypeDescription
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
TypeDescription
string

Sentences

public RepeatedField<Sentence> Sentences { get; }

The sentiment for all the sentences in the document.

Property Value
TypeDescription
RepeatedFieldSentence