Google Workspace Add-ons V1 API - Class Google::Apps::Script::Type::Gmail::UniversalAction (v0.5.2)

Reference documentation and code samples for the Google Workspace Add-ons V1 API class Google::Apps::Script::Type::Gmail::UniversalAction.

An action that is always available in the add-on toolbar menu regardless of message context.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

def open_link() -> ::String
Returns
  • (::String) — A link that is opened by Gmail when the user triggers the action.
def open_link=(value) -> ::String
Parameter
  • value (::String) — A link that is opened by Gmail when the user triggers the action.
Returns
  • (::String) — A link that is opened by Gmail when the user triggers the action.

#run_function

def run_function() -> ::String
Returns
  • (::String) — An endpoint that is called when the user triggers the action. See the universal actions guide for details.

#run_function=

def run_function=(value) -> ::String
Parameter
  • value (::String) — An endpoint that is called when the user triggers the action. See the universal actions guide for details.
Returns
  • (::String) — An endpoint that is called when the user triggers the action. See the universal actions guide for details.

#text

def text() -> ::String
Returns
  • (::String) — Required. User-visible text describing the action, for example, "Add a new contact."

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Required. User-visible text describing the action, for example, "Add a new contact."
Returns
  • (::String) — Required. User-visible text describing the action, for example, "Add a new contact."