Class: Google::Apis::CloudsearchV1::BotResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BotResponse

Returns a new instance of BotResponse.



5245
5246
5247
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5245

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

Instance Attribute Details

#bot_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property botId



5228
5229
5230
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5228

def bot_id
  @bot_id
end

#required_actionString

Corresponds to the JSON property requiredAction

Returns:

  • (String)


5233
5234
5235
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5233

def required_action
  @required_action
end

#response_typeString

Corresponds to the JSON property responseType

Returns:

  • (String)


5238
5239
5240
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5238

def response_type
  @response_type
end

#setup_urlString

URL for setting up bot. Corresponds to the JSON property setupUrl

Returns:

  • (String)


5243
5244
5245
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5243

def setup_url
  @setup_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5250
5251
5252
5253
5254
5255
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5250

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