Class GmailAddOnManifest.Builder (2.55.0)

public static final class GmailAddOnManifest.Builder extends GeneratedMessageV3.Builder<GmailAddOnManifest.Builder> implements GmailAddOnManifestOrBuilder

Properties customizing the appearance and execution of a Gmail add-on.

Protobuf type google.apps.script.type.gmail.GmailAddOnManifest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllContextualTriggers(Iterable<? extends ContextualTrigger> values)

public GmailAddOnManifest.Builder addAllContextualTriggers(Iterable<? extends ContextualTrigger> values)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
values Iterable<? extends com.google.apps.script.type.gmail.ContextualTrigger>
Returns
Type Description
GmailAddOnManifest.Builder

addAllUniversalActions(Iterable<? extends UniversalAction> values)

public GmailAddOnManifest.Builder addAllUniversalActions(Iterable<? extends UniversalAction> values)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
values Iterable<? extends com.google.apps.script.type.gmail.UniversalAction>
Returns
Type Description
GmailAddOnManifest.Builder

addContextualTriggers(ContextualTrigger value)

public GmailAddOnManifest.Builder addContextualTriggers(ContextualTrigger value)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
value ContextualTrigger
Returns
Type Description
GmailAddOnManifest.Builder

addContextualTriggers(ContextualTrigger.Builder builderForValue)

public GmailAddOnManifest.Builder addContextualTriggers(ContextualTrigger.Builder builderForValue)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
builderForValue ContextualTrigger.Builder
Returns
Type Description
GmailAddOnManifest.Builder

addContextualTriggers(int index, ContextualTrigger value)

public GmailAddOnManifest.Builder addContextualTriggers(int index, ContextualTrigger value)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameters
Name Description
index int
value ContextualTrigger
Returns
Type Description
GmailAddOnManifest.Builder

addContextualTriggers(int index, ContextualTrigger.Builder builderForValue)

public GmailAddOnManifest.Builder addContextualTriggers(int index, ContextualTrigger.Builder builderForValue)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameters
Name Description
index int
builderForValue ContextualTrigger.Builder
Returns
Type Description
GmailAddOnManifest.Builder

addContextualTriggersBuilder()

public ContextualTrigger.Builder addContextualTriggersBuilder()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
ContextualTrigger.Builder

addContextualTriggersBuilder(int index)

public ContextualTrigger.Builder addContextualTriggersBuilder(int index)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualTrigger.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GmailAddOnManifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

addUniversalActions(UniversalAction value)

public GmailAddOnManifest.Builder addUniversalActions(UniversalAction value)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
value UniversalAction
Returns
Type Description
GmailAddOnManifest.Builder

addUniversalActions(UniversalAction.Builder builderForValue)

public GmailAddOnManifest.Builder addUniversalActions(UniversalAction.Builder builderForValue)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
builderForValue UniversalAction.Builder
Returns
Type Description
GmailAddOnManifest.Builder

addUniversalActions(int index, UniversalAction value)

public GmailAddOnManifest.Builder addUniversalActions(int index, UniversalAction value)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameters
Name Description
index int
value UniversalAction
Returns
Type Description
GmailAddOnManifest.Builder

addUniversalActions(int index, UniversalAction.Builder builderForValue)

public GmailAddOnManifest.Builder addUniversalActions(int index, UniversalAction.Builder builderForValue)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameters
Name Description
index int
builderForValue UniversalAction.Builder
Returns
Type Description
GmailAddOnManifest.Builder

addUniversalActionsBuilder()

public UniversalAction.Builder addUniversalActionsBuilder()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
UniversalAction.Builder

addUniversalActionsBuilder(int index)

public UniversalAction.Builder addUniversalActionsBuilder(int index)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
index int
Returns
Type Description
UniversalAction.Builder

build()

public GmailAddOnManifest build()
Returns
Type Description
GmailAddOnManifest

buildPartial()

public GmailAddOnManifest buildPartial()
Returns
Type Description
GmailAddOnManifest

clear()

public GmailAddOnManifest.Builder clear()
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

clearAuthorizationCheckFunction()

public GmailAddOnManifest.Builder clearAuthorizationCheckFunction()

The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.

string authorization_check_function = 7;

Returns
Type Description
GmailAddOnManifest.Builder

This builder for chaining.

clearComposeTrigger()

public GmailAddOnManifest.Builder clearComposeTrigger()

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Returns
Type Description
GmailAddOnManifest.Builder

clearContextualTriggers()

public GmailAddOnManifest.Builder clearContextualTriggers()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
GmailAddOnManifest.Builder

clearField(Descriptors.FieldDescriptor field)

public GmailAddOnManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

clearHomepageTrigger()

public GmailAddOnManifest.Builder clearHomepageTrigger()

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Returns
Type Description
GmailAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GmailAddOnManifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

clearUniversalActions()

public GmailAddOnManifest.Builder clearUniversalActions()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
GmailAddOnManifest.Builder

clone()

public GmailAddOnManifest.Builder clone()
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

getAuthorizationCheckFunction()

public String getAuthorizationCheckFunction()

The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.

string authorization_check_function = 7;

Returns
Type Description
String

The authorizationCheckFunction.

getAuthorizationCheckFunctionBytes()

public ByteString getAuthorizationCheckFunctionBytes()

The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.

string authorization_check_function = 7;

Returns
Type Description
ByteString

The bytes for authorizationCheckFunction.

getComposeTrigger()

public ComposeTrigger getComposeTrigger()

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Returns
Type Description
ComposeTrigger

The composeTrigger.

getComposeTriggerBuilder()

public ComposeTrigger.Builder getComposeTriggerBuilder()

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Returns
Type Description
ComposeTrigger.Builder

getComposeTriggerOrBuilder()

public ComposeTriggerOrBuilder getComposeTriggerOrBuilder()

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Returns
Type Description
ComposeTriggerOrBuilder

getContextualTriggers(int index)

public ContextualTrigger getContextualTriggers(int index)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualTrigger

getContextualTriggersBuilder(int index)

public ContextualTrigger.Builder getContextualTriggersBuilder(int index)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualTrigger.Builder

getContextualTriggersBuilderList()

public List<ContextualTrigger.Builder> getContextualTriggersBuilderList()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
List<Builder>

getContextualTriggersCount()

public int getContextualTriggersCount()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
int

getContextualTriggersList()

public List<ContextualTrigger> getContextualTriggersList()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
List<ContextualTrigger>

getContextualTriggersOrBuilder(int index)

public ContextualTriggerOrBuilder getContextualTriggersOrBuilder(int index)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
index int
Returns
Type Description
ContextualTriggerOrBuilder

getContextualTriggersOrBuilderList()

public List<? extends ContextualTriggerOrBuilder> getContextualTriggersOrBuilderList()

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Returns
Type Description
List<? extends com.google.apps.script.type.gmail.ContextualTriggerOrBuilder>

getDefaultInstanceForType()

public GmailAddOnManifest getDefaultInstanceForType()
Returns
Type Description
GmailAddOnManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHomepageTrigger()

public HomepageExtensionPoint getHomepageTrigger()

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Returns
Type Description
HomepageExtensionPoint

The homepageTrigger.

getHomepageTriggerBuilder()

public HomepageExtensionPoint.Builder getHomepageTriggerBuilder()

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Returns
Type Description
HomepageExtensionPoint.Builder

getHomepageTriggerOrBuilder()

public HomepageExtensionPointOrBuilder getHomepageTriggerOrBuilder()

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Returns
Type Description
HomepageExtensionPointOrBuilder

getUniversalActions(int index)

public UniversalAction getUniversalActions(int index)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
index int
Returns
Type Description
UniversalAction

getUniversalActionsBuilder(int index)

public UniversalAction.Builder getUniversalActionsBuilder(int index)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
index int
Returns
Type Description
UniversalAction.Builder

getUniversalActionsBuilderList()

public List<UniversalAction.Builder> getUniversalActionsBuilderList()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
List<Builder>

getUniversalActionsCount()

public int getUniversalActionsCount()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
int

getUniversalActionsList()

public List<UniversalAction> getUniversalActionsList()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
List<UniversalAction>

getUniversalActionsOrBuilder(int index)

public UniversalActionOrBuilder getUniversalActionsOrBuilder(int index)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
index int
Returns
Type Description
UniversalActionOrBuilder

getUniversalActionsOrBuilderList()

public List<? extends UniversalActionOrBuilder> getUniversalActionsOrBuilderList()

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Returns
Type Description
List<? extends com.google.apps.script.type.gmail.UniversalActionOrBuilder>

hasComposeTrigger()

public boolean hasComposeTrigger()

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Returns
Type Description
boolean

Whether the composeTrigger field is set.

hasHomepageTrigger()

public boolean hasHomepageTrigger()

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Returns
Type Description
boolean

Whether the homepageTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeComposeTrigger(ComposeTrigger value)

public GmailAddOnManifest.Builder mergeComposeTrigger(ComposeTrigger value)

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Parameter
Name Description
value ComposeTrigger
Returns
Type Description
GmailAddOnManifest.Builder

mergeFrom(GmailAddOnManifest other)

public GmailAddOnManifest.Builder mergeFrom(GmailAddOnManifest other)
Parameter
Name Description
other GmailAddOnManifest
Returns
Type Description
GmailAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GmailAddOnManifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GmailAddOnManifest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GmailAddOnManifest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

mergeHomepageTrigger(HomepageExtensionPoint value)

public GmailAddOnManifest.Builder mergeHomepageTrigger(HomepageExtensionPoint value)

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Parameter
Name Description
value HomepageExtensionPoint
Returns
Type Description
GmailAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GmailAddOnManifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

removeContextualTriggers(int index)

public GmailAddOnManifest.Builder removeContextualTriggers(int index)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameter
Name Description
index int
Returns
Type Description
GmailAddOnManifest.Builder

removeUniversalActions(int index)

public GmailAddOnManifest.Builder removeUniversalActions(int index)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameter
Name Description
index int
Returns
Type Description
GmailAddOnManifest.Builder

setAuthorizationCheckFunction(String value)

public GmailAddOnManifest.Builder setAuthorizationCheckFunction(String value)

The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.

string authorization_check_function = 7;

Parameter
Name Description
value String

The authorizationCheckFunction to set.

Returns
Type Description
GmailAddOnManifest.Builder

This builder for chaining.

setAuthorizationCheckFunctionBytes(ByteString value)

public GmailAddOnManifest.Builder setAuthorizationCheckFunctionBytes(ByteString value)

The name of an endpoint that verifies that the add-on has all the required third-party authorizations, by probing the third-party APIs. If the probe fails, the function should throw an exception to initiate the authorization flow. This function is called before each invocation of the add-on, in order to ensure a smooth user experience.

string authorization_check_function = 7;

Parameter
Name Description
value ByteString

The bytes for authorizationCheckFunction to set.

Returns
Type Description
GmailAddOnManifest.Builder

This builder for chaining.

setComposeTrigger(ComposeTrigger value)

public GmailAddOnManifest.Builder setComposeTrigger(ComposeTrigger value)

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Parameter
Name Description
value ComposeTrigger
Returns
Type Description
GmailAddOnManifest.Builder

setComposeTrigger(ComposeTrigger.Builder builderForValue)

public GmailAddOnManifest.Builder setComposeTrigger(ComposeTrigger.Builder builderForValue)

Defines the compose time trigger for a compose time add-on. This is the trigger that causes an add-on to take action when the user is composing an email. All compose time addons are required to have the gmail.addons.current.action.compose scope even though it might not edit the draft.

.google.apps.script.type.gmail.ComposeTrigger compose_trigger = 12;

Parameter
Name Description
builderForValue ComposeTrigger.Builder
Returns
Type Description
GmailAddOnManifest.Builder

setContextualTriggers(int index, ContextualTrigger value)

public GmailAddOnManifest.Builder setContextualTriggers(int index, ContextualTrigger value)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameters
Name Description
index int
value ContextualTrigger
Returns
Type Description
GmailAddOnManifest.Builder

setContextualTriggers(int index, ContextualTrigger.Builder builderForValue)

public GmailAddOnManifest.Builder setContextualTriggers(int index, ContextualTrigger.Builder builderForValue)

Defines the set of conditions that trigger the add-on.

repeated .google.apps.script.type.gmail.ContextualTrigger contextual_triggers = 3;

Parameters
Name Description
index int
builderForValue ContextualTrigger.Builder
Returns
Type Description
GmailAddOnManifest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GmailAddOnManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

setHomepageTrigger(HomepageExtensionPoint value)

public GmailAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint value)

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Parameter
Name Description
value HomepageExtensionPoint
Returns
Type Description
GmailAddOnManifest.Builder

setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

public GmailAddOnManifest.Builder setHomepageTrigger(HomepageExtensionPoint.Builder builderForValue)

Defines an endpoint that will be executed in contexts that don't match a declared contextual trigger. Any cards generated by this function will always be available to the user, but may be eclipsed by contextual content when this add-on declares more targeted triggers.

If present, this overrides the configuration from addOns.common.homepageTrigger.

.google.apps.script.type.HomepageExtensionPoint homepage_trigger = 14;

Parameter
Name Description
builderForValue HomepageExtensionPoint.Builder
Returns
Type Description
GmailAddOnManifest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GmailAddOnManifest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GmailAddOnManifest.Builder
Overrides

setUniversalActions(int index, UniversalAction value)

public GmailAddOnManifest.Builder setUniversalActions(int index, UniversalAction value)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameters
Name Description
index int
value UniversalAction
Returns
Type Description
GmailAddOnManifest.Builder

setUniversalActions(int index, UniversalAction.Builder builderForValue)

public GmailAddOnManifest.Builder setUniversalActions(int index, UniversalAction.Builder builderForValue)

Defines set of universal actions for the add-on. The user triggers universal actions from the add-on toolbar menu.

repeated .google.apps.script.type.gmail.UniversalAction universal_actions = 4;

Parameters
Name Description
index int
builderForValue UniversalAction.Builder
Returns
Type Description
GmailAddOnManifest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GmailAddOnManifest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GmailAddOnManifest.Builder
Overrides