Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb

Overview

Configures the types of sentiment analysis to perform.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig

Returns a new instance of GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig



4312
4313
4314
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4312

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analyze_query_text_sentimentBoolean 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

Returns:

  • (Boolean)


4309
4310
4311
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4309

def analyze_query_text_sentiment
  @analyze_query_text_sentiment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4317
4318
4319
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 4317

def update!(**args)
  @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
end