Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v2/classes.rb,
generated/google/apis/dialogflow_v2/representations.rb,
generated/google/apis/dialogflow_v2/representations.rb
Overview
Configures the types of sentiment analysis to perform.
Instance Attribute Summary collapse
-
#analyze_query_text_sentiment ⇒ Boolean
(also: #analyze_query_text_sentiment?)
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
constructor
A new instance of GoogleCloudDialogflowV2SentimentAnalysisRequestConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
Returns a new instance of GoogleCloudDialogflowV2SentimentAnalysisRequestConfig.
3167 3168 3169 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#analyze_query_text_sentiment ⇒ Boolean Also known as: analyze_query_text_sentiment?
Optional. Instructs the service to perform sentiment analysis on
query_text
. If not provided, sentiment analysis is not performed on
query_text
.
Corresponds to the JSON property analyzeQueryTextSentiment
3164 3165 3166 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3164 def analyze_query_text_sentiment @analyze_query_text_sentiment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3172 3173 3174 |
# File 'generated/google/apis/dialogflow_v2/classes.rb', line 3172 def update!(**args) @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) end |