- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.6
- 2.2.1
- 2.1.12
public static final class ContextualTrigger.Builder extends GeneratedMessageV3.Builder<ContextualTrigger.Builder> implements ContextualTriggerOrBuilder
Defines a trigger that fires when the open email meets a specific criteria. When the trigger fires, it executes a specific endpoint, usually in order to create new cards and update the UI.
Protobuf type google.apps.script.type.gmail.ContextualTrigger
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ContextualTrigger.BuilderImplements
ContextualTriggerOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ContextualTrigger.Builder |
build()
public ContextualTrigger build()
Type | Description |
ContextualTrigger |
buildPartial()
public ContextualTrigger buildPartial()
Type | Description |
ContextualTrigger |
clear()
public ContextualTrigger.Builder clear()
Type | Description |
ContextualTrigger.Builder |
clearField(Descriptors.FieldDescriptor field)
public ContextualTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
ContextualTrigger.Builder |
clearOnTriggerFunction()
public ContextualTrigger.Builder clearOnTriggerFunction()
Required. The name of the endpoint to call when a message matches the trigger.
string on_trigger_function = 4;
Type | Description |
ContextualTrigger.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ContextualTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
ContextualTrigger.Builder |
clearTrigger()
public ContextualTrigger.Builder clearTrigger()
Type | Description |
ContextualTrigger.Builder |
clearUnconditional()
public ContextualTrigger.Builder clearUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Type | Description |
ContextualTrigger.Builder |
clone()
public ContextualTrigger.Builder clone()
Type | Description |
ContextualTrigger.Builder |
getDefaultInstanceForType()
public ContextualTrigger getDefaultInstanceForType()
Type | Description |
ContextualTrigger |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getOnTriggerFunction()
public String getOnTriggerFunction()
Required. The name of the endpoint to call when a message matches the trigger.
string on_trigger_function = 4;
Type | Description |
String | The onTriggerFunction. |
getOnTriggerFunctionBytes()
public ByteString getOnTriggerFunctionBytes()
Required. The name of the endpoint to call when a message matches the trigger.
string on_trigger_function = 4;
Type | Description |
ByteString | The bytes for onTriggerFunction. |
getTriggerCase()
public ContextualTrigger.TriggerCase getTriggerCase()
Type | Description |
ContextualTrigger.TriggerCase |
getUnconditional()
public UnconditionalTrigger getUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Type | Description |
UnconditionalTrigger | The unconditional. |
getUnconditionalBuilder()
public UnconditionalTrigger.Builder getUnconditionalBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Type | Description |
UnconditionalTrigger.Builder |
getUnconditionalOrBuilder()
public UnconditionalTriggerOrBuilder getUnconditionalOrBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Type | Description |
UnconditionalTriggerOrBuilder |
hasUnconditional()
public boolean hasUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Type | Description |
boolean | Whether the unconditional field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(ContextualTrigger other)
public ContextualTrigger.Builder mergeFrom(ContextualTrigger other)
Name | Description |
other | ContextualTrigger |
Type | Description |
ContextualTrigger.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContextualTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
ContextualTrigger.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public ContextualTrigger.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
ContextualTrigger.Builder |
mergeUnconditional(UnconditionalTrigger value)
public ContextualTrigger.Builder mergeUnconditional(UnconditionalTrigger value)
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Name | Description |
value | UnconditionalTrigger |
Type | Description |
ContextualTrigger.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ContextualTrigger.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
ContextualTrigger.Builder |
setOnTriggerFunction(String value)
public ContextualTrigger.Builder setOnTriggerFunction(String value)
Required. The name of the endpoint to call when a message matches the trigger.
string on_trigger_function = 4;
Name | Description |
value | String The onTriggerFunction to set. |
Type | Description |
ContextualTrigger.Builder | This builder for chaining. |
setOnTriggerFunctionBytes(ByteString value)
public ContextualTrigger.Builder setOnTriggerFunctionBytes(ByteString value)
Required. The name of the endpoint to call when a message matches the trigger.
string on_trigger_function = 4;
Name | Description |
value | ByteString The bytes for onTriggerFunction to set. |
Type | Description |
ContextualTrigger.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContextualTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
ContextualTrigger.Builder |
setUnconditional(UnconditionalTrigger value)
public ContextualTrigger.Builder setUnconditional(UnconditionalTrigger value)
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Name | Description |
value | UnconditionalTrigger |
Type | Description |
ContextualTrigger.Builder |
setUnconditional(UnconditionalTrigger.Builder builderForValue)
public ContextualTrigger.Builder setUnconditional(UnconditionalTrigger.Builder builderForValue)
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Name | Description |
builderForValue | UnconditionalTrigger.Builder |
Type | Description |
ContextualTrigger.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
ContextualTrigger.Builder |