Class: Google::Apis::CloudsearchV1::BotResponse
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::BotResponse
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Information about a bot response, branched from shared/bot_response.proto without frontend User proto as we never store it.
Instance Attribute Summary collapse
-
#bot_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#required_action ⇒ String
Corresponds to the JSON property
requiredAction
. -
#response_type ⇒ String
Corresponds to the JSON property
responseType
. -
#setup_url ⇒ String
URL for setting up bot.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BotResponse
constructor
A new instance of BotResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BotResponse
Returns a new instance of BotResponse.
5309 5310 5311 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5309 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bot_id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property botId
5292 5293 5294 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5292 def bot_id @bot_id end |
#required_action ⇒ String
Corresponds to the JSON property requiredAction
5297 5298 5299 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5297 def required_action @required_action end |
#response_type ⇒ String
Corresponds to the JSON property responseType
5302 5303 5304 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5302 def response_type @response_type end |
#setup_url ⇒ String
URL for setting up bot.
Corresponds to the JSON property setupUrl
5307 5308 5309 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5307 def setup_url @setup_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5314 5315 5316 5317 5318 5319 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5314 def update!(**args) @bot_id = args[:bot_id] if args.key?(:bot_id) @required_action = args[:required_action] if args.key?(:required_action) @response_type = args[:response_type] if args.key?(:response_type) @setup_url = args[:setup_url] if args.key?(:setup_url) end |