Class: Google::Apps::Chat::V1::SlashCommandMetadata

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/chat/v1/annotation.rb

Overview

Annotation metadata for slash commands (/).

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#bot::Google::Apps::Chat::V1::User

Returns The Chat app whose command was invoked.

Returns:



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'proto_docs/google/chat/v1/annotation.rb', line 115

class SlashCommandMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  module Type
    # Default value for the enum. Don't use.
    TYPE_UNSPECIFIED = 0

    # Add Chat app to space.
    ADD = 1

    # Invoke slash command in space.
    INVOKE = 2
  end
end

#command_id::Integer

Returns The command ID of the invoked slash command.

Returns:

  • (::Integer)

    The command ID of the invoked slash command.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'proto_docs/google/chat/v1/annotation.rb', line 115

class SlashCommandMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  module Type
    # Default value for the enum. Don't use.
    TYPE_UNSPECIFIED = 0

    # Add Chat app to space.
    ADD = 1

    # Invoke slash command in space.
    INVOKE = 2
  end
end

#command_name::String

Returns The name of the invoked slash command.

Returns:

  • (::String)

    The name of the invoked slash command.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'proto_docs/google/chat/v1/annotation.rb', line 115

class SlashCommandMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  module Type
    # Default value for the enum. Don't use.
    TYPE_UNSPECIFIED = 0

    # Add Chat app to space.
    ADD = 1

    # Invoke slash command in space.
    INVOKE = 2
  end
end

#triggers_dialog::Boolean

Returns Indicates whether the slash command is for a dialog.

Returns:

  • (::Boolean)

    Indicates whether the slash command is for a dialog.



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'proto_docs/google/chat/v1/annotation.rb', line 115

class SlashCommandMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  module Type
    # Default value for the enum. Don't use.
    TYPE_UNSPECIFIED = 0

    # Add Chat app to space.
    ADD = 1

    # Invoke slash command in space.
    INVOKE = 2
  end
end

#type::Google::Apps::Chat::V1::SlashCommandMetadata::Type

Returns The type of slash command.

Returns:



115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'proto_docs/google/chat/v1/annotation.rb', line 115

class SlashCommandMetadata
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  module Type
    # Default value for the enum. Don't use.
    TYPE_UNSPECIFIED = 0

    # Add Chat app to space.
    ADD = 1

    # Invoke slash command in space.
    INVOKE = 2
  end
end