Class: Google::Apis::CloudsearchV1::SlashCommandMetadata

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

Annotation metadata for slash commands (/).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SlashCommandMetadata

Returns a new instance of SlashCommandMetadata.



15723
15724
15725
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15723

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

Instance Attribute Details

#arguments_hintString

Hint string for the arguments expected by the slash command. Corresponds to the JSON property argumentsHint

Returns:

  • (String)


15695
15696
15697
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15695

def arguments_hint
  @arguments_hint
end

#command_idFixnum

Unique id for the slash command. Corresponds to the JSON property commandId

Returns:

  • (Fixnum)


15700
15701
15702
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15700

def command_id
  @command_id
end

#command_nameString

Name of the slash command. Corresponds to the JSON property commandName

Returns:

  • (String)


15705
15706
15707
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15705

def command_name
  @command_name
end

#idGoogle::Apis::CloudsearchV1::UserId

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



15710
15711
15712
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15710

def id
  @id
end

#triggers_dialogBoolean Also known as: triggers_dialog?

Whether or not this slash command should trigger a dialog. Corresponds to the JSON property triggersDialog

Returns:

  • (Boolean)


15715
15716
15717
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15715

def triggers_dialog
  @triggers_dialog
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


15721
15722
15723
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15721

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15728
15729
15730
15731
15732
15733
15734
15735
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 15728

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