Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ConversationTurn

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

Overview

One interaction between a human and virtual agent. The human provides some input and the virtual agent provides a response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3ConversationTurn

Returns a new instance of GoogleCloudDialogflowCxV3ConversationTurn.



279
280
281
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 279

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

Instance Attribute Details

#user_inputGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ConversationTurnUserInput

The input from the human user. Corresponds to the JSON property userInput



272
273
274
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 272

def user_input
  @user_input
end

#virtual_agent_outputGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput

The output from the virtual agent. Corresponds to the JSON property virtualAgentOutput



277
278
279
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 277

def virtual_agent_output
  @virtual_agent_output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



284
285
286
287
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 284

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