Google Workspace Add-ons V1 API - Class Google::Cloud::GSuiteAddOns::V1::AppCommand (v1.10.0)

Reference documentation and code samples for the Google Workspace Add-ons V1 API class Google::Cloud::GSuiteAddOns::V1::AppCommand.

Configuration for an app command.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#command

def command() -> ::String
Returns
  • (::String) — Optional. The name of the command. Required for SLASH_COMMAND, do not set for other command types. Must start with a "/", e.g., "/command".

#command=

def command=(value) -> ::String
Parameter
  • value (::String) — Optional. The name of the command. Required for SLASH_COMMAND, do not set for other command types. Must start with a "/", e.g., "/command".
Returns
  • (::String) — Optional. The name of the command. Required for SLASH_COMMAND, do not set for other command types. Must start with a "/", e.g., "/command".

#command_id

def command_id() -> ::Integer
Returns
  • (::Integer) — Required. The ID of the command (1-1000). Must be unique within the app.

#command_id=

def command_id=(value) -> ::Integer
Parameter
  • value (::Integer) — Required. The ID of the command (1-1000). Must be unique within the app.
Returns
  • (::Integer) — Required. The ID of the command (1-1000). Must be unique within the app.

#command_type

def command_type() -> ::Google::Cloud::GSuiteAddOns::V1::AppCommand::CommandType
Returns

#command_type=

def command_type=(value) -> ::Google::Cloud::GSuiteAddOns::V1::AppCommand::CommandType
Parameter
Returns

#description

def description() -> ::String
Returns
  • (::String) — Required. A short description of the command.

#description=

def description=(value) -> ::String
Parameter
  • value (::String) — Required. A short description of the command.
Returns
  • (::String) — Required. A short description of the command.

#dialog_enabled

def dialog_enabled() -> ::Boolean
Returns
  • (::Boolean) — Optional. Whether this command should trigger a dialog. Defaults to false, if not specified.

#dialog_enabled=

def dialog_enabled=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Optional. Whether this command should trigger a dialog. Defaults to false, if not specified.
Returns
  • (::Boolean) — Optional. Whether this command should trigger a dialog. Defaults to false, if not specified.

#display_name

def display_name() -> ::String
Returns
  • (::String) — Optional. The user-friendly display name of the command. Required for MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — Optional. The user-friendly display name of the command. Required for MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.
Returns
  • (::String) — Optional. The user-friendly display name of the command. Required for MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND.

#loading_notification_message

def loading_notification_message() -> ::String
Returns
  • (::String) — Optional. A notification to be sent to the user when they trigger the message action. Only supported for MESSAGE_ACTION commands.

#loading_notification_message=

def loading_notification_message=(value) -> ::String
Parameter
  • value (::String) — Optional. A notification to be sent to the user when they trigger the message action. Only supported for MESSAGE_ACTION commands.
Returns
  • (::String) — Optional. A notification to be sent to the user when they trigger the message action. Only supported for MESSAGE_ACTION commands.