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

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

Defines a trigger that fires when the open email meets a specific criteria. When the trigger fires, it executes a specific endpoint, usually in order to create new cards and update the UI.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#on_trigger_function

def on_trigger_function() -> ::String
Returns
  • (::String) — Required. The name of the endpoint to call when a message matches the trigger.

#on_trigger_function=

def on_trigger_function=(value) -> ::String
Parameter
  • value (::String) — Required. The name of the endpoint to call when a message matches the trigger.
Returns
  • (::String) — Required. The name of the endpoint to call when a message matches the trigger.

#unconditional

def unconditional() -> ::Google::Apps::Script::Type::Gmail::UnconditionalTrigger
Returns

#unconditional=

def unconditional=(value) -> ::Google::Apps::Script::Type::Gmail::UnconditionalTrigger
Parameter
Returns