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.



3905
3906
3907
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3905

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



3883
3884
3885
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3883

def agent_utterance
  @agent_utterance
end

#flow_invocationGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FlowInvocation

Stores metadata of the invocation of a CX flow. Next Id: 7 Corresponds to the JSON property flowInvocation



3888
3889
3890
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3888

def flow_invocation
  @flow_invocation
end

#playbook_invocationGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PlaybookInvocation

Stores metadata of the invocation of a child playbook. Next Id: 5 Corresponds to the JSON property playbookInvocation



3893
3894
3895
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3893

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



3898
3899
3900
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3898

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



3903
3904
3905
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3903

def user_utterance
  @user_utterance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3910
3911
3912
3913
3914
3915
3916
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 3910

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