Class: Google::Apis::CloudsearchV1::SlashCommandMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SlashCommandMetadata
- 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
Annotation metadata for slash commands (/).
Instance Attribute Summary collapse
-
#arguments_hint ⇒ String
Hint string for the arguments expected by the slash command.
-
#command_id ⇒ Fixnum
Unique id for the slash command.
-
#command_name ⇒ String
Name of the slash command.
-
#id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
-
#triggers_dialog ⇒ Boolean
(also: #triggers_dialog?)
Whether or not this slash command should trigger a dialog.
-
#type ⇒ String
Corresponds to the JSON property
type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SlashCommandMetadata
constructor
A new instance of SlashCommandMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SlashCommandMetadata
Returns a new instance of SlashCommandMetadata.
16389 16390 16391 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16389 def initialize(**args) update!(**args) end |
Instance Attribute Details
#arguments_hint ⇒ String
Hint string for the arguments expected by the slash command.
Corresponds to the JSON property argumentsHint
16361 16362 16363 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16361 def arguments_hint @arguments_hint end |
#command_id ⇒ Fixnum
Unique id for the slash command.
Corresponds to the JSON property commandId
16366 16367 16368 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16366 def command_id @command_id end |
#command_name ⇒ String
Name of the slash command.
Corresponds to the JSON property commandName
16371 16372 16373 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16371 def command_name @command_name end |
#id ⇒ Google::Apis::CloudsearchV1::UserId
Primary key for User resource.
Corresponds to the JSON property id
16376 16377 16378 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16376 def id @id end |
#triggers_dialog ⇒ Boolean Also known as: triggers_dialog?
Whether or not this slash command should trigger a dialog.
Corresponds to the JSON property triggersDialog
16381 16382 16383 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16381 def triggers_dialog @triggers_dialog end |
#type ⇒ String
Corresponds to the JSON property type
16387 16388 16389 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16387 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16394 16395 16396 16397 16398 16399 16400 16401 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16394 def update!(**args) @arguments_hint = args[:arguments_hint] if args.key?(:arguments_hint) @command_id = args[:command_id] if args.key?(:command_id) @command_name = args[:command_name] if args.key?(:command_name) @id = args[:id] if args.key?(:id) @triggers_dialog = args[:triggers_dialog] if args.key?(:triggers_dialog) @type = args[:type] if args.key?(:type) end |