Class ComposeTrigger.Builder (2.43.0)

public static final class ComposeTrigger.Builder extends GeneratedMessageV3.Builder<ComposeTrigger.Builder> implements ComposeTriggerOrBuilder

A trigger that activates when user is composing an email.

Protobuf type google.apps.script.type.gmail.ComposeTrigger

Static Methods

getDescriptor()

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

Methods

addActions(MenuItemExtensionPoint value)

public ComposeTrigger.Builder addActions(MenuItemExtensionPoint value)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
value MenuItemExtensionPoint
Returns
Type Description
ComposeTrigger.Builder

addActions(MenuItemExtensionPoint.Builder builderForValue)

public ComposeTrigger.Builder addActions(MenuItemExtensionPoint.Builder builderForValue)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

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

addActions(int index, MenuItemExtensionPoint value)

public ComposeTrigger.Builder addActions(int index, MenuItemExtensionPoint value)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameters
Name Description
index int
value MenuItemExtensionPoint
Returns
Type Description
ComposeTrigger.Builder

addActions(int index, MenuItemExtensionPoint.Builder builderForValue)

public ComposeTrigger.Builder addActions(int index, MenuItemExtensionPoint.Builder builderForValue)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameters
Name Description
index int
builderForValue MenuItemExtensionPoint.Builder
Returns
Type Description
ComposeTrigger.Builder

addActionsBuilder()

public MenuItemExtensionPoint.Builder addActionsBuilder()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Returns
Type Description
MenuItemExtensionPoint.Builder

addActionsBuilder(int index)

public MenuItemExtensionPoint.Builder addActionsBuilder(int index)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
index int
Returns
Type Description
MenuItemExtensionPoint.Builder

addAllActions(Iterable<? extends MenuItemExtensionPoint> values)

public ComposeTrigger.Builder addAllActions(Iterable<? extends MenuItemExtensionPoint> values)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
values Iterable<? extends com.google.apps.script.type.MenuItemExtensionPoint>
Returns
Type Description
ComposeTrigger.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComposeTrigger build()
Returns
Type Description
ComposeTrigger

buildPartial()

public ComposeTrigger buildPartial()
Returns
Type Description
ComposeTrigger

clear()

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

clearActions()

public ComposeTrigger.Builder clearActions()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Returns
Type Description
ComposeTrigger.Builder

clearDraftAccess()

public ComposeTrigger.Builder clearDraftAccess()

Define the level of data access when a compose time addon is triggered.

.google.apps.script.type.gmail.ComposeTrigger.DraftAccess draft_access = 4;

Returns
Type Description
ComposeTrigger.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getActions(int index)

public MenuItemExtensionPoint getActions(int index)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
index int
Returns
Type Description
MenuItemExtensionPoint

getActionsBuilder(int index)

public MenuItemExtensionPoint.Builder getActionsBuilder(int index)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
index int
Returns
Type Description
MenuItemExtensionPoint.Builder

getActionsBuilderList()

public List<MenuItemExtensionPoint.Builder> getActionsBuilderList()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Returns
Type Description
List<Builder>

getActionsCount()

public int getActionsCount()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Returns
Type Description
int

getActionsList()

public List<MenuItemExtensionPoint> getActionsList()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Returns
Type Description
List<MenuItemExtensionPoint>

getActionsOrBuilder(int index)

public MenuItemExtensionPointOrBuilder getActionsOrBuilder(int index)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
index int
Returns
Type Description
MenuItemExtensionPointOrBuilder

getActionsOrBuilderList()

public List<? extends MenuItemExtensionPointOrBuilder> getActionsOrBuilderList()

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

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

getDefaultInstanceForType()

public ComposeTrigger getDefaultInstanceForType()
Returns
Type Description
ComposeTrigger

getDescriptorForType()

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

getDraftAccess()

public ComposeTrigger.DraftAccess getDraftAccess()

Define the level of data access when a compose time addon is triggered.

.google.apps.script.type.gmail.ComposeTrigger.DraftAccess draft_access = 4;

Returns
Type Description
ComposeTrigger.DraftAccess

The draftAccess.

getDraftAccessValue()

public int getDraftAccessValue()

Define the level of data access when a compose time addon is triggered.

.google.apps.script.type.gmail.ComposeTrigger.DraftAccess draft_access = 4;

Returns
Type Description
int

The enum numeric value on the wire for draftAccess.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ComposeTrigger other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeActions(int index)

public ComposeTrigger.Builder removeActions(int index)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameter
Name Description
index int
Returns
Type Description
ComposeTrigger.Builder

setActions(int index, MenuItemExtensionPoint value)

public ComposeTrigger.Builder setActions(int index, MenuItemExtensionPoint value)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameters
Name Description
index int
value MenuItemExtensionPoint
Returns
Type Description
ComposeTrigger.Builder

setActions(int index, MenuItemExtensionPoint.Builder builderForValue)

public ComposeTrigger.Builder setActions(int index, MenuItemExtensionPoint.Builder builderForValue)

Defines the set of actions for compose time add-on. These are actions that user can trigger on a compose time addon.

repeated .google.apps.script.type.MenuItemExtensionPoint actions = 5;

Parameters
Name Description
index int
builderForValue MenuItemExtensionPoint.Builder
Returns
Type Description
ComposeTrigger.Builder

setDraftAccess(ComposeTrigger.DraftAccess value)

public ComposeTrigger.Builder setDraftAccess(ComposeTrigger.DraftAccess value)

Define the level of data access when a compose time addon is triggered.

.google.apps.script.type.gmail.ComposeTrigger.DraftAccess draft_access = 4;

Parameter
Name Description
value ComposeTrigger.DraftAccess

The draftAccess to set.

Returns
Type Description
ComposeTrigger.Builder

This builder for chaining.

setDraftAccessValue(int value)

public ComposeTrigger.Builder setDraftAccessValue(int value)

Define the level of data access when a compose time addon is triggered.

.google.apps.script.type.gmail.ComposeTrigger.DraftAccess draft_access = 4;

Parameter
Name Description
value int

The enum numeric value on the wire for draftAccess to set.

Returns
Type Description
ComposeTrigger.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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