public sealed class SentimentAnalysisResult : IMessage<SentimentAnalysisResult>, IEquatable<SentimentAnalysisResult>, IDeepCloneable<SentimentAnalysisResult>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Dialogflow v2 API class SentimentAnalysisResult.
The result of sentiment analysis. Sentiment analysis inspects user input and identifies the prevailing subjective opinion, especially to determine a user's attitude as positive, negative, or neutral. For [Participants.DetectIntent][], it needs to be configured in [DetectIntentRequest.query_params][google.cloud.dialogflow.v2.DetectIntentRequest.query_params]. For [Participants.StreamingDetectIntent][], it needs to be configured in [StreamingDetectIntentRequest.query_params][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.query_params]. And for [Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent] and [Participants.StreamingAnalyzeContent][google.cloud.dialogflow.v2.Participants.StreamingAnalyzeContent], it needs to be configured in [ConversationProfile.human_agent_assistant_config][google.cloud.dialogflow.v2.ConversationProfile.human_agent_assistant_config]
Implements
IMessageSentimentAnalysisResult, IEquatableSentimentAnalysisResult, IDeepCloneableSentimentAnalysisResult, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
SentimentAnalysisResult()
public SentimentAnalysisResult()
SentimentAnalysisResult(SentimentAnalysisResult)
public SentimentAnalysisResult(SentimentAnalysisResult other)
Parameter | |
---|---|
Name | Description |
other | SentimentAnalysisResult |
Properties
QueryTextSentiment
public Sentiment QueryTextSentiment { get; set; }
The sentiment analysis result for query_text
.
Property Value | |
---|---|
Type | Description |
Sentiment |