Class: Google::Apis::ChatV1::ActionResponse

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

Overview

Parameters that a bot can use to configure how it's response is posted.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ActionResponse

Returns a new instance of ActionResponse.



73
74
75
# File 'lib/google/apis/chat_v1/classes.rb', line 73

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

Instance Attribute Details

#dialog_actionGoogle::Apis::ChatV1::DialogAction

Contains dialog if present as well as the ActionStatus for the request sent from user. Corresponds to the JSON property dialogAction



61
62
63
# File 'lib/google/apis/chat_v1/classes.rb', line 61

def dialog_action
  @dialog_action
end

#typeString

The type of bot response. Corresponds to the JSON property type

Returns:

  • (String)


66
67
68
# File 'lib/google/apis/chat_v1/classes.rb', line 66

def type
  @type
end

#urlString

URL for users to auth or config. (Only for REQUEST_CONFIG response types.) Corresponds to the JSON property url

Returns:

  • (String)


71
72
73
# File 'lib/google/apis/chat_v1/classes.rb', line 71

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



78
79
80
81
82
# File 'lib/google/apis/chat_v1/classes.rb', line 78

def update!(**args)
  @dialog_action = args[:dialog_action] if args.key?(:dialog_action)
  @type = args[:type] if args.key?(:type)
  @url = args[:url] if args.key?(:url)
end