Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1Action

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

Overview

Action performed by end user or Dialogflow agent in the conversation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Action

Returns a new instance of GoogleCloudDialogflowCxV3beta1Action.



3784
3785
3786
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3784

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

Instance Attribute Details

#agent_utteranceGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentUtterance

AgentUtterance represents one message sent by the agent. Corresponds to the JSON property agentUtterance



3762
3763
3764
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3762

def agent_utterance
  @agent_utterance
end

#flow_invocationGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FlowInvocation

Stores metadata of the invocation of a CX flow. Corresponds to the JSON property flowInvocation



3767
3768
3769
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3767

def flow_invocation
  @flow_invocation
end

#playbook_invocationGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInvocation

Stores metadata of the invocation of a child playbook. Corresponds to the JSON property playbookInvocation



3772
3773
3774
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3772

def playbook_invocation
  @playbook_invocation
end

#tool_useGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ToolUse

Stores metadata of the invocation of an action supported by a tool. Corresponds to the JSON property toolUse



3777
3778
3779
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3777

def tool_use
  @tool_use
end

#user_utteranceGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1UserUtterance

UserUtterance represents one message sent by the customer. Corresponds to the JSON property userUtterance



3782
3783
3784
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3782

def user_utterance
  @user_utterance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3789
3790
3791
3792
3793
3794
3795
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3789

def update!(**args)
  @agent_utterance = args[:agent_utterance] if args.key?(:agent_utterance)
  @flow_invocation = args[:flow_invocation] if args.key?(:flow_invocation)
  @playbook_invocation = args[:playbook_invocation] if args.key?(:playbook_invocation)
  @tool_use = args[:tool_use] if args.key?(:tool_use)
  @user_utterance = args[:user_utterance] if args.key?(:user_utterance)
end