Class ComposeTrigger.Builder (2.36.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
TypeDescription
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
NameDescription
valueMenuItemExtensionPoint
Returns
TypeDescription
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
NameDescription
builderForValueMenuItemExtensionPoint.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMenuItemExtensionPoint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMenuItemExtensionPoint.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.apps.script.type.MenuItemExtensionPoint>
Returns
TypeDescription
ComposeTrigger.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComposeTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

build()

public ComposeTrigger build()
Returns
TypeDescription
ComposeTrigger

buildPartial()

public ComposeTrigger buildPartial()
Returns
TypeDescription
ComposeTrigger

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ComposeTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ComposeTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

clone()

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

getDefaultInstanceForType()

public ComposeTrigger getDefaultInstanceForType()
Returns
TypeDescription
ComposeTrigger

getDescriptorForType()

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

The enum numeric value on the wire for draftAccess.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ComposeTrigger other)

public ComposeTrigger.Builder mergeFrom(ComposeTrigger other)
Parameter
NameDescription
otherComposeTrigger
Returns
TypeDescription
ComposeTrigger.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ComposeTrigger.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComposeTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueMenuItemExtensionPoint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMenuItemExtensionPoint.Builder
Returns
TypeDescription
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
NameDescription
valueComposeTrigger.DraftAccess

The draftAccess to set.

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

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

Returns
TypeDescription
ComposeTrigger.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ComposeTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

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

public ComposeTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComposeTrigger.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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