Class WorkflowRuleSpec.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<WorkflowRuleSpec.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
io.temporal.api.rules.v1.WorkflowRuleSpec.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkflowRuleSpecOrBuilder,Cloneable
- Enclosing class:
WorkflowRuleSpec
public static final class WorkflowRuleSpec.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
implements WorkflowRuleSpecOrBuilder
Protobuf type
temporal.api.rules.v1.WorkflowRuleSpec-
Method Summary
Modifier and TypeMethodDescriptionaddActions(int index, WorkflowRuleAction value) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addActions(int index, WorkflowRuleAction.Builder builderForValue) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addActions(WorkflowRuleAction value) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addActions(WorkflowRuleAction.Builder builderForValue) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addActionsBuilder(int index) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addAllActions(Iterable<? extends WorkflowRuleAction> values) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()WorkflowRuleAction to be taken when the rule is triggered and predicate is matched..temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;Expiration time of the rule.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearId()The id of the new workflow rule.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Restricted Visibility query.clone()getActions(int index) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.getActionsBuilder(int index) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.intWorkflowRuleAction to be taken when the rule is triggered and predicate is matched.WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.getActionsOrBuilder(int index) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.List<? extends WorkflowRuleActionOrBuilder> WorkflowRuleAction to be taken when the rule is triggered and predicate is matched..temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampExpiration time of the rule.com.google.protobuf.Timestamp.BuilderExpiration time of the rule.com.google.protobuf.TimestampOrBuilderExpiration time of the rule.getId()The id of the new workflow rule.com.google.protobuf.ByteStringThe id of the new workflow rule.Restricted Visibility query.com.google.protobuf.ByteStringRestricted Visibility query.boolean.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;booleanExpiration time of the rule.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal boolean.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;mergeExpirationTime(com.google.protobuf.Timestamp value) Expiration time of the rule.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(WorkflowRuleSpec other) final WorkflowRuleSpec.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeActions(int index) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.setActions(int index, WorkflowRuleAction value) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.setActions(int index, WorkflowRuleAction.Builder builderForValue) WorkflowRuleAction to be taken when the rule is triggered and predicate is matched..temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;setActivityStart(WorkflowRuleSpec.ActivityStartingTrigger.Builder builderForValue) .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;setExpirationTime(com.google.protobuf.Timestamp value) Expiration time of the rule.setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) Expiration time of the rule.The id of the new workflow rule.setIdBytes(com.google.protobuf.ByteString value) The id of the new workflow rule.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final WorkflowRuleSpec.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVisibilityQuery(String value) Restricted Visibility query.setVisibilityQueryBytes(com.google.protobuf.ByteString value) Restricted Visibility query.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
setField
public WorkflowRuleSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
setRepeatedField
public WorkflowRuleSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
addRepeatedField
public WorkflowRuleSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowRuleSpec.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
mergeFrom
public WorkflowRuleSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowRuleSpec.Builder>- Throws:
IOException
-
getTriggerCase
- Specified by:
getTriggerCasein interfaceWorkflowRuleSpecOrBuilder
-
clearTrigger
-
getId
The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning.
string id = 1;- Specified by:
getIdin interfaceWorkflowRuleSpecOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning.
string id = 1;- Specified by:
getIdBytesin interfaceWorkflowRuleSpecOrBuilder- Returns:
- The bytes for id.
-
setId
The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
The id of the new workflow rule. Must be unique within the namespace. Can be set by the user, and can have business meaning.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
hasActivityStart
public boolean hasActivityStart().temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;- Specified by:
hasActivityStartin interfaceWorkflowRuleSpecOrBuilder- Returns:
- Whether the activityStart field is set.
-
getActivityStart
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;- Specified by:
getActivityStartin interfaceWorkflowRuleSpecOrBuilder- Returns:
- The activityStart.
-
setActivityStart
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2; -
setActivityStart
public WorkflowRuleSpec.Builder setActivityStart(WorkflowRuleSpec.ActivityStartingTrigger.Builder builderForValue) .temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2; -
mergeActivityStart
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2; -
clearActivityStart
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2; -
getActivityStartBuilder
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2; -
getActivityStartOrBuilder
.temporal.api.rules.v1.WorkflowRuleSpec.ActivityStartingTrigger activity_start = 2;- Specified by:
getActivityStartOrBuilderin interfaceWorkflowRuleSpecOrBuilder
-
getVisibilityQuery
Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. The following workflow attributes are supported: - WorkflowType - WorkflowId - StartTime - ExecutionStatus
string visibility_query = 3;- Specified by:
getVisibilityQueryin interfaceWorkflowRuleSpecOrBuilder- Returns:
- The visibilityQuery.
-
getVisibilityQueryBytes
public com.google.protobuf.ByteString getVisibilityQueryBytes()Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. The following workflow attributes are supported: - WorkflowType - WorkflowId - StartTime - ExecutionStatus
string visibility_query = 3;- Specified by:
getVisibilityQueryBytesin interfaceWorkflowRuleSpecOrBuilder- Returns:
- The bytes for visibilityQuery.
-
setVisibilityQuery
Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. The following workflow attributes are supported: - WorkflowType - WorkflowId - StartTime - ExecutionStatus
string visibility_query = 3;- Parameters:
value- The visibilityQuery to set.- Returns:
- This builder for chaining.
-
clearVisibilityQuery
Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. The following workflow attributes are supported: - WorkflowType - WorkflowId - StartTime - ExecutionStatus
string visibility_query = 3;- Returns:
- This builder for chaining.
-
setVisibilityQueryBytes
Restricted Visibility query. This query is used to filter workflows in this namespace to which this rule should apply. It is applied to any running workflow each time a triggering event occurs, before the trigger predicate is evaluated. The following workflow attributes are supported: - WorkflowType - WorkflowId - StartTime - ExecutionStatus
string visibility_query = 3;- Parameters:
value- The bytes for visibilityQuery to set.- Returns:
- This builder for chaining.
-
getActionsList
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;- Specified by:
getActionsListin interfaceWorkflowRuleSpecOrBuilder
-
getActionsCount
public int getActionsCount()WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;- Specified by:
getActionsCountin interfaceWorkflowRuleSpecOrBuilder
-
getActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;- Specified by:
getActionsin interfaceWorkflowRuleSpecOrBuilder
-
setActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
setActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addAllActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
clearActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
removeActions
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
getActionsBuilder
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
getActionsOrBuilder
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;- Specified by:
getActionsOrBuilderin interfaceWorkflowRuleSpecOrBuilder
-
getActionsOrBuilderList
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4;- Specified by:
getActionsOrBuilderListin interfaceWorkflowRuleSpecOrBuilder
-
addActionsBuilder
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
addActionsBuilder
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
getActionsBuilderList
WorkflowRuleAction to be taken when the rule is triggered and predicate is matched.
repeated .temporal.api.rules.v1.WorkflowRuleAction actions = 4; -
hasExpirationTime
public boolean hasExpirationTime()Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5;- Specified by:
hasExpirationTimein interfaceWorkflowRuleSpecOrBuilder- Returns:
- Whether the expirationTime field is set.
-
getExpirationTime
public com.google.protobuf.Timestamp getExpirationTime()Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5;- Specified by:
getExpirationTimein interfaceWorkflowRuleSpecOrBuilder- Returns:
- The expirationTime.
-
setExpirationTime
Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5; -
setExpirationTime
public WorkflowRuleSpec.Builder setExpirationTime(com.google.protobuf.Timestamp.Builder builderForValue) Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5; -
mergeExpirationTime
Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5; -
clearExpirationTime
Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5; -
getExpirationTimeBuilder
public com.google.protobuf.Timestamp.Builder getExpirationTimeBuilder()Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5; -
getExpirationTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getExpirationTimeOrBuilder()Expiration time of the rule. After this time, the rule will be deleted. Can be empty if the rule should never expire.
.google.protobuf.Timestamp expiration_time = 5;- Specified by:
getExpirationTimeOrBuilderin interfaceWorkflowRuleSpecOrBuilder
-
setUnknownFields
public final WorkflowRuleSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-
mergeUnknownFields
public final WorkflowRuleSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowRuleSpec.Builder>
-