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
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()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ContextualTrigger build()
buildPartial()
public ContextualTrigger buildPartial()
clear()
public ContextualTrigger.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ContextualTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOnTriggerFunction()
public ContextualTrigger.Builder clearOnTriggerFunction()
Required. The name of the endpoint to call when a message matches the
trigger.
string on_trigger_function = 4;
clearOneof(Descriptors.OneofDescriptor oneof)
public ContextualTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTrigger()
public ContextualTrigger.Builder clearTrigger()
clearUnconditional()
public ContextualTrigger.Builder clearUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
clone()
public ContextualTrigger.Builder clone()
Overrides
getDefaultInstanceForType()
public ContextualTrigger getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getOnTriggerFunction()
public String getOnTriggerFunction()
Required. The name of the endpoint to call when a message matches the
trigger.
string on_trigger_function = 4;
Returns |
---|
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;
Returns |
---|
Type | Description |
ByteString | The bytes for onTriggerFunction.
|
getTriggerCase()
public ContextualTrigger.TriggerCase getTriggerCase()
getUnconditional()
public UnconditionalTrigger getUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
getUnconditionalBuilder()
public UnconditionalTrigger.Builder getUnconditionalBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
getUnconditionalOrBuilder()
public UnconditionalTriggerOrBuilder getUnconditionalOrBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
hasUnconditional()
public boolean hasUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Returns |
---|
Type | Description |
boolean | Whether the unconditional field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ContextualTrigger other)
public ContextualTrigger.Builder mergeFrom(ContextualTrigger other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContextualTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ContextualTrigger.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
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;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
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;
Parameter |
---|
Name | Description |
value | String
The onTriggerFunction to set.
|
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;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for onTriggerFunction to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContextualTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
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;
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;
setUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides