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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ContextualTrigger build()
Returns
buildPartial()
public ContextualTrigger buildPartial()
Returns
clear()
public ContextualTrigger.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ContextualTrigger.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ContextualTrigger.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearTrigger()
public ContextualTrigger.Builder clearTrigger()
Returns
clearUnconditional()
public ContextualTrigger.Builder clearUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Returns
clone()
public ContextualTrigger.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ContextualTrigger getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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()
Returns
getUnconditional()
public UnconditionalTrigger getUnconditional()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Returns
getUnconditionalBuilder()
public UnconditionalTrigger.Builder getUnconditionalBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Returns
getUnconditionalOrBuilder()
public UnconditionalTriggerOrBuilder getUnconditionalOrBuilder()
UnconditionalTriggers are executed when any mail message is opened.
.google.apps.script.type.gmail.UnconditionalTrigger unconditional = 1;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ContextualTrigger other)
public ContextualTrigger.Builder mergeFrom(ContextualTrigger other)
Parameter
Returns
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ContextualTrigger.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ContextualTrigger.Builder mergeFrom(Message other)
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ContextualTrigger.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContextualTrigger.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ContextualTrigger.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides