The resource configuration that is used to define Google Workspace add-on content and behavior within Gmail. Google Workspace add-on manifests must have all the components marked as Required if they extend Gmail.
Gmail
The Google Workspace add-on manifest configuration for Gmail extensions. See Extending Gmail with Google Workspace add-ons for more information.
JSON representation |
---|
{ "authorizationCheckFunction": string, "composeTrigger": { object (ComposeTrigger) }, "contextualTriggers": [ { object (ContextualTrigger) } ], "homepageTrigger": { object (HomepageTrigger) } } |
Fields | |
---|---|
authorizationCheckFunction |
Deprecated. The name of an Apps Script function that performs third-party authorization requirement checks. This function is called before each invocation of the Google Workspace add-on. This function was deprecated to avoid unnecessary execution latency. Instead, the add-on should throw an exception from the main invocation, as shown in this example. |
composeTrigger |
See Extending the compose UI with compose actions for details. |
contextualTriggers[] |
|
homepageTrigger |
The trigger function specification for creating the add-on
homepage in the
Gmail host. This overrides
|
ComposeTrigger
The configuration for a compose action. See Extending the Compose UI for more information.
JSON representation |
---|
{ "draftAccess": string, "selectActions": [ { object (SelectAction) } ] } |
Fields | |
---|---|
draftAccess |
Defines the level of data access available to a compose trigger function. Valid options are the following:
|
selectActions[] |
A list of compose actions that create compose UIs; however, this
list is limited to a single action per add-on. The compose
action has a corresponding icon presented in the Gmail compose window.
The icon is specified by |
ContextualTrigger
The configuration for a trigger that fires when the user opens a Gmail message and that message satisfies certain criteria. See Extending the message UI for more information.
JSON representation |
---|
{ "onTriggerFunction": string, "unconditional": {}, } |
Fields | |
---|---|
onTriggerFunction |
See Contextual trigger function for details on how to define this function. |
unconditional |
|
SelectAction
The compose action configuration that defines which function to run when the user selects the compose action.
JSON representation |
---|
{ "runFunction": string, "text": string } |
Fields | |
---|---|
runFunction |
See Compose trigger function for details. |
text |
|