Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ConversationTurn

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

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) ⇒ GoogleCloudDialogflowCxV3beta1ConversationTurn

Returns a new instance of GoogleCloudDialogflowCxV3beta1ConversationTurn.



4218
4219
4220
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4218

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

Instance Attribute Details

#user_inputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput

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



4211
4212
4213
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4211

def user_input
  @user_input
end

#virtual_agent_outputGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput

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



4216
4217
4218
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4216

def virtual_agent_output
  @virtual_agent_output
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4223
4224
4225
4226
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 4223

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