Class GmailAddOnManifest.Builder (2.19.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.script.type.gmail.ContextualTrigger>
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.script.type.gmail.UniversalAction>
Returns
TypeDescription
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
NameDescription
valueContextualTrigger
Returns
TypeDescription
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
NameDescription
builderForValueContextualTrigger.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContextualTrigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualTrigger.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ContextualTrigger.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GmailAddOnManifest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueUniversalAction
Returns
TypeDescription
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
NameDescription
builderForValueUniversalAction.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUniversalAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUniversalAction.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UniversalAction.Builder

build()

public GmailAddOnManifest build()
Returns
TypeDescription
GmailAddOnManifest

buildPartial()

public GmailAddOnManifest buildPartial()
Returns
TypeDescription
GmailAddOnManifest

clear()

public GmailAddOnManifest.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
GmailAddOnManifest.Builder

clearField(Descriptors.FieldDescriptor field)

public GmailAddOnManifest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
GmailAddOnManifest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GmailAddOnManifest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
GmailAddOnManifest.Builder

clone()

public GmailAddOnManifest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.apps.script.type.gmail.ContextualTriggerOrBuilder>

getDefaultInstanceForType()

public GmailAddOnManifest getDefaultInstanceForType()
Returns
TypeDescription
GmailAddOnManifest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the homepageTrigger field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueComposeTrigger
Returns
TypeDescription
GmailAddOnManifest.Builder

mergeFrom(GmailAddOnManifest other)

public GmailAddOnManifest.Builder mergeFrom(GmailAddOnManifest other)
Parameter
NameDescription
otherGmailAddOnManifest
Returns
TypeDescription
GmailAddOnManifest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GmailAddOnManifest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GmailAddOnManifest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GmailAddOnManifest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
GmailAddOnManifest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GmailAddOnManifest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The authorizationCheckFunction to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for authorizationCheckFunction to set.

Returns
TypeDescription
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
NameDescription
valueComposeTrigger
Returns
TypeDescription
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
NameDescription
builderForValueComposeTrigger.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContextualTrigger
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContextualTrigger.Builder
Returns
TypeDescription
GmailAddOnManifest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GmailAddOnManifest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueHomepageExtensionPoint
Returns
TypeDescription
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
NameDescription
builderForValueHomepageExtensionPoint.Builder
Returns
TypeDescription
GmailAddOnManifest.Builder

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

public GmailAddOnManifest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueUniversalAction
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUniversalAction.Builder
Returns
TypeDescription
GmailAddOnManifest.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final GmailAddOnManifest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GmailAddOnManifest.Builder
Overrides