Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/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?)
Instructs the service to perform sentiment analysis on
query_text
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
constructor
A new instance of GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
Returns a new instance of GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig.
17387 17388 17389 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17387 def initialize(**args) update!(**args) end |
Instance Attribute Details
#analyze_query_text_sentiment ⇒ Boolean Also known as: analyze_query_text_sentiment?
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
17384 17385 17386 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17384 def analyze_query_text_sentiment @analyze_query_text_sentiment end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17392 17393 17394 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17392 def update!(**args) @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment) end |