Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ConversationTurnUserInput

Inherits:
Object
  • Object
show all
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

The input from the human user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ConversationTurnUserInput

Returns a new instance of GoogleCloudDialogflowCxV3ConversationTurnUserInput.



212
213
214
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 212

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

Instance Attribute Details

#enable_sentiment_analysisBoolean Also known as: enable_sentiment_analysis?

Whether sentiment analysis is enabled. Corresponds to the JSON property enableSentimentAnalysis

Returns:

  • (Boolean)


188
189
190
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 188

def enable_sentiment_analysis
  @enable_sentiment_analysis
end

#injected_parametersHash<String,Object>

Parameters that need to be injected into the conversation during intent detection. Corresponds to the JSON property injectedParameters

Returns:

  • (Hash<String,Object>)


195
196
197
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 195

def injected_parameters
  @injected_parameters
end

#inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3QueryInput

Represents the query input. It can contain one of: 1. A conversational query in the form of text. 2. An intent query that specifies which intent to trigger.

  1. Natural language speech audio to be processed. 4. An event to be triggered.
  2. DTMF digits to invoke an intent and fill in parameter value. Corresponds to the JSON property input


203
204
205
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 203

def input
  @input
end

#is_webhook_enabledBoolean Also known as: is_webhook_enabled?

If webhooks should be allowed to trigger in response to the user utterance. Often if parameters are injected, webhooks should not be enabled. Corresponds to the JSON property isWebhookEnabled

Returns:

  • (Boolean)


209
210
211
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 209

def is_webhook_enabled
  @is_webhook_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



217
218
219
220
221
222
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 217

def update!(**args)
  @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
  @injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
  @input = args[:input] if args.key?(:input)
  @is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
end