Class SchedulePolicies.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SchedulePoliciesOrBuilder, java.lang.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SchedulePolicies.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      SchedulePolicies build()  
      SchedulePolicies buildPartial()  
      SchedulePolicies.Builder clear()  
      SchedulePolicies.Builder 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.
      SchedulePolicies.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      SchedulePolicies.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      SchedulePolicies.Builder clearOverlapPolicy()
      Policy for overlaps.
      SchedulePolicies.Builder clearPauseOnFailure()
      If true, and a workflow run fails or times out, turn on "paused".
      SchedulePolicies.Builder clone()  
      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.
      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.
      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.
      SchedulePolicies getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      ScheduleOverlapPolicy getOverlapPolicy()
      Policy for overlaps.
      int getOverlapPolicyValue()
      Policy for overlaps.
      boolean getPauseOnFailure()
      If true, and a workflow run fails or times out, turn on "paused".
      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.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      SchedulePolicies.Builder mergeCatchupWindow​(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.
      SchedulePolicies.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      SchedulePolicies.Builder mergeFrom​(com.google.protobuf.Message other)  
      SchedulePolicies.Builder mergeFrom​(SchedulePolicies other)  
      SchedulePolicies.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      SchedulePolicies.Builder 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.
      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.
      SchedulePolicies.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)  
      SchedulePolicies.Builder setOverlapPolicy​(ScheduleOverlapPolicy value)
      Policy for overlaps.
      SchedulePolicies.Builder setOverlapPolicyValue​(int value)
      Policy for overlaps.
      SchedulePolicies.Builder setPauseOnFailure​(boolean value)
      If true, and a workflow run fails or times out, turn on "paused".
      SchedulePolicies.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)  
      SchedulePolicies.Builder setUnknownFields​(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
      • Methods inherited from class com.google.protobuf.AbstractMessage.Builder

        findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • clear

        public SchedulePolicies.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • getDefaultInstanceForType

        public SchedulePolicies getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SchedulePolicies build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SchedulePolicies buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SchedulePolicies.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • setField

        public SchedulePolicies.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • clearField

        public SchedulePolicies.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • clearOneof

        public SchedulePolicies.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • setRepeatedField

        public SchedulePolicies.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • addRepeatedField

        public SchedulePolicies.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • mergeFrom

        public SchedulePolicies.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SchedulePolicies.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • mergeFrom

        public SchedulePolicies.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SchedulePolicies.Builder>
        Throws:
        java.io.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:
        getOverlapPolicyValue in interface SchedulePoliciesOrBuilder
        Returns:
        The enum numeric value on the wire for overlapPolicy.
      • setOverlapPolicyValue

        public SchedulePolicies.Builder setOverlapPolicyValue​(int value)
         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

        public ScheduleOverlapPolicy 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:
        getOverlapPolicy in interface SchedulePoliciesOrBuilder
        Returns:
        The overlapPolicy.
      • setOverlapPolicy

        public SchedulePolicies.Builder setOverlapPolicy​(ScheduleOverlapPolicy value)
         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

        public SchedulePolicies.Builder 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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
        Specified by:
        hasCatchupWindow in interface SchedulePoliciesOrBuilder
        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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
        Specified by:
        getCatchupWindow in interface SchedulePoliciesOrBuilder
        Returns:
        The catchupWindow.
      • setCatchupWindow

        public SchedulePolicies.Builder 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.
         This value defaults to 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
      • 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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
      • mergeCatchupWindow

        public SchedulePolicies.Builder mergeCatchupWindow​(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.
         This value defaults to 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
      • clearCatchupWindow

        public SchedulePolicies.Builder 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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
      • 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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
      • 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 60 seconds, and can't be less than 10 seconds.
         
        .google.protobuf.Duration catchup_window = 2 [(.gogoproto.stdduration) = true];
        Specified by:
        getCatchupWindowOrBuilder in interface SchedulePoliciesOrBuilder
      • 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:
        getPauseOnFailure in interface SchedulePoliciesOrBuilder
        Returns:
        The pauseOnFailure.
      • setPauseOnFailure

        public SchedulePolicies.Builder setPauseOnFailure​(boolean value)
         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

        public SchedulePolicies.Builder 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.
      • setUnknownFields

        public final SchedulePolicies.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>
      • mergeUnknownFields

        public final SchedulePolicies.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulePolicies.Builder>