Class SchedulePolicies.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<SchedulePolicies.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
io.temporal.api.schedule.v1.SchedulePolicies.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SchedulePoliciesOrBuilder,Cloneable
- Enclosing class:
SchedulePolicies
public static final class SchedulePolicies.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
implements SchedulePoliciesOrBuilder
Protobuf type
temporal.api.schedule.v1.SchedulePolicies-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Policy for overlaps.If true, and a workflow run fails or times out, turn on "paused".clone()com.google.protobuf.DurationPolicy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.com.google.protobuf.Duration.BuilderPolicy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.com.google.protobuf.DurationOrBuilderPolicy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanIf true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.Policy for overlaps.intPolicy for overlaps.booleanIf true, and a workflow run fails or times out, turn on "paused".booleanPolicy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeCatchupWindow(com.google.protobuf.Duration value) Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SchedulePolicies other) final SchedulePolicies.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setCatchupWindow(com.google.protobuf.Duration value) Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.setCatchupWindow(com.google.protobuf.Duration.Builder builderForValue) Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time.setKeepOriginalWorkflowId(boolean value) If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.Policy for overlaps.setOverlapPolicyValue(int value) Policy for overlaps.setPauseOnFailure(boolean value) If true, and a workflow run fails or times out, turn on "paused".setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final SchedulePolicies.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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<SchedulePolicies.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<SchedulePolicies.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<SchedulePolicies.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<SchedulePolicies.Builder>
-
setField
public SchedulePolicies.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<SchedulePolicies.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
-
setRepeatedField
public SchedulePolicies.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<SchedulePolicies.Builder>
-
addRepeatedField
public SchedulePolicies.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<SchedulePolicies.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SchedulePolicies.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
-
mergeFrom
public SchedulePolicies.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<SchedulePolicies.Builder>- Throws:
IOException
-
getOverlapPolicyValue
public int getOverlapPolicyValue()Policy for overlaps. Note that this can be changed after a schedule has taken some actions, and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy.
.temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;- Specified by:
getOverlapPolicyValuein interfaceSchedulePoliciesOrBuilder- Returns:
- The enum numeric value on the wire for overlapPolicy.
-
setOverlapPolicyValue
Policy for overlaps. Note that this can be changed after a schedule has taken some actions, and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy.
.temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;- Parameters:
value- The enum numeric value on the wire for overlapPolicy to set.- Returns:
- This builder for chaining.
-
getOverlapPolicy
Policy for overlaps. Note that this can be changed after a schedule has taken some actions, and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy.
.temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;- Specified by:
getOverlapPolicyin interfaceSchedulePoliciesOrBuilder- Returns:
- The overlapPolicy.
-
setOverlapPolicy
Policy for overlaps. Note that this can be changed after a schedule has taken some actions, and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy.
.temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;- Parameters:
value- The overlapPolicy to set.- Returns:
- This builder for chaining.
-
clearOverlapPolicy
Policy for overlaps. Note that this can be changed after a schedule has taken some actions, and some changes might produce unintuitive results. In general, the later policy overrides the earlier policy.
.temporal.api.enums.v1.ScheduleOverlapPolicy overlap_policy = 1;- Returns:
- This builder for chaining.
-
hasCatchupWindow
public boolean hasCatchupWindow()Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2;- Specified by:
hasCatchupWindowin interfaceSchedulePoliciesOrBuilder- Returns:
- Whether the catchupWindow field is set.
-
getCatchupWindow
public com.google.protobuf.Duration getCatchupWindow()Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2;- Specified by:
getCatchupWindowin interfaceSchedulePoliciesOrBuilder- Returns:
- The catchupWindow.
-
setCatchupWindow
Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2; -
setCatchupWindow
public SchedulePolicies.Builder setCatchupWindow(com.google.protobuf.Duration.Builder builderForValue) Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2; -
mergeCatchupWindow
Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2; -
clearCatchupWindow
Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2; -
getCatchupWindowBuilder
public com.google.protobuf.Duration.Builder getCatchupWindowBuilder()Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2; -
getCatchupWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getCatchupWindowOrBuilder()Policy for catchups: If the Temporal server misses an action due to one or more components being down, and comes back up, the action will be run if the scheduled time is within this window from the current time. This value defaults to one year, and can't be less than 10 seconds.
.google.protobuf.Duration catchup_window = 2;- Specified by:
getCatchupWindowOrBuilderin interfaceSchedulePoliciesOrBuilder
-
getPauseOnFailure
public boolean getPauseOnFailure()If true, and a workflow run fails or times out, turn on "paused". This applies after retry policies: the full chain of retries must fail to trigger a pause here.
bool pause_on_failure = 3;- Specified by:
getPauseOnFailurein interfaceSchedulePoliciesOrBuilder- Returns:
- The pauseOnFailure.
-
setPauseOnFailure
If true, and a workflow run fails or times out, turn on "paused". This applies after retry policies: the full chain of retries must fail to trigger a pause here.
bool pause_on_failure = 3;- Parameters:
value- The pauseOnFailure to set.- Returns:
- This builder for chaining.
-
clearPauseOnFailure
If true, and a workflow run fails or times out, turn on "paused". This applies after retry policies: the full chain of retries must fail to trigger a pause here.
bool pause_on_failure = 3;- Returns:
- This builder for chaining.
-
getKeepOriginalWorkflowId
public boolean getKeepOriginalWorkflowId()If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.
bool keep_original_workflow_id = 4;- Specified by:
getKeepOriginalWorkflowIdin interfaceSchedulePoliciesOrBuilder- Returns:
- The keepOriginalWorkflowId.
-
setKeepOriginalWorkflowId
If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.
bool keep_original_workflow_id = 4;- Parameters:
value- The keepOriginalWorkflowId to set.- Returns:
- This builder for chaining.
-
clearKeepOriginalWorkflowId
If true, and the action would start a workflow, a timestamp will not be appended to the scheduled workflow id.
bool keep_original_workflow_id = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final SchedulePolicies.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
-
mergeUnknownFields
public final SchedulePolicies.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
-