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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ComposeTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ComposeTrigger build()
Returns
buildPartial()
public ComposeTrigger buildPartial()
Returns
clear()
public ComposeTrigger.Builder clear()
Returns
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
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
clearField(Descriptors.FieldDescriptor field)
public ComposeTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ComposeTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public ComposeTrigger.Builder clone()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ComposeTrigger other)
public ComposeTrigger.Builder mergeFrom(ComposeTrigger other)
Parameter
Returns
public ComposeTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ComposeTrigger.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ComposeTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public ComposeTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ComposeTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ComposeTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides