Class BatchOperationResetActivities.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, BatchOperationResetActivitiesOrBuilder, java.lang.Cloneable
    Enclosing class:
    BatchOperationResetActivities

    public static final class BatchOperationResetActivities.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationResetActivities.Builder>
    implements BatchOperationResetActivitiesOrBuilder
     BatchOperationResetActivities sends activity reset requests in a batch.
     NOTE: keep in sync with temporal.api.workflowservice.v1.ResetActivityRequest
     
    Protobuf type temporal.api.batch.v1.BatchOperationResetActivities
    • 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<BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
      • getDefaultInstanceForType

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

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

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

        public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
      • addRepeatedField

        public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
      • isInitialized

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

        public BatchOperationResetActivities.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<BatchOperationResetActivities.Builder>
        Throws:
        java.io.IOException
      • setIdentity

        public BatchOperationResetActivities.Builder setIdentity​(java.lang.String value)
         The identity of the worker/client.
         
        string identity = 1;
        Parameters:
        value - The identity to set.
        Returns:
        This builder for chaining.
      • setIdentityBytes

        public BatchOperationResetActivities.Builder setIdentityBytes​(com.google.protobuf.ByteString value)
         The identity of the worker/client.
         
        string identity = 1;
        Parameters:
        value - The bytes for identity to set.
        Returns:
        This builder for chaining.
      • setTypeBytes

        public BatchOperationResetActivities.Builder setTypeBytes​(com.google.protobuf.ByteString value)
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setMatchAll

        public BatchOperationResetActivities.Builder setMatchAll​(boolean value)
        bool match_all = 3;
        Parameters:
        value - The matchAll to set.
        Returns:
        This builder for chaining.
      • setResetAttempts

        public BatchOperationResetActivities.Builder setResetAttempts​(boolean value)
         Setting this flag will also reset the number of attempts.
         
        bool reset_attempts = 4;
        Parameters:
        value - The resetAttempts to set.
        Returns:
        This builder for chaining.
      • clearResetAttempts

        public BatchOperationResetActivities.Builder clearResetAttempts()
         Setting this flag will also reset the number of attempts.
         
        bool reset_attempts = 4;
        Returns:
        This builder for chaining.
      • setResetHeartbeat

        public BatchOperationResetActivities.Builder setResetHeartbeat​(boolean value)
         Setting this flag will also reset the heartbeat details.
         
        bool reset_heartbeat = 5;
        Parameters:
        value - The resetHeartbeat to set.
        Returns:
        This builder for chaining.
      • clearResetHeartbeat

        public BatchOperationResetActivities.Builder clearResetHeartbeat()
         Setting this flag will also reset the heartbeat details.
         
        bool reset_heartbeat = 5;
        Returns:
        This builder for chaining.
      • setKeepPaused

        public BatchOperationResetActivities.Builder setKeepPaused​(boolean value)
         If activity is paused, it will remain paused after reset
         
        bool keep_paused = 6;
        Parameters:
        value - The keepPaused to set.
        Returns:
        This builder for chaining.
      • clearKeepPaused

        public BatchOperationResetActivities.Builder clearKeepPaused()
         If activity is paused, it will remain paused after reset
         
        bool keep_paused = 6;
        Returns:
        This builder for chaining.
      • hasJitter

        public boolean hasJitter()
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
        Specified by:
        hasJitter in interface BatchOperationResetActivitiesOrBuilder
        Returns:
        Whether the jitter field is set.
      • getJitter

        public com.google.protobuf.Duration getJitter()
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
        Specified by:
        getJitter in interface BatchOperationResetActivitiesOrBuilder
        Returns:
        The jitter.
      • setJitter

        public BatchOperationResetActivities.Builder setJitter​(com.google.protobuf.Duration value)
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
      • setJitter

        public BatchOperationResetActivities.Builder setJitter​(com.google.protobuf.Duration.Builder builderForValue)
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
      • mergeJitter

        public BatchOperationResetActivities.Builder mergeJitter​(com.google.protobuf.Duration value)
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
      • clearJitter

        public BatchOperationResetActivities.Builder clearJitter()
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
      • getJitterBuilder

        public com.google.protobuf.Duration.Builder getJitterBuilder()
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
      • getJitterOrBuilder

        public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()
         If set, the activity will start at a random time within the specified jitter
         duration, introducing variability to the start time.
         
        .google.protobuf.Duration jitter = 7;
        Specified by:
        getJitterOrBuilder in interface BatchOperationResetActivitiesOrBuilder
      • getRestoreOriginalOptions

        public boolean getRestoreOriginalOptions()
         If set, the activity options will be restored to the defaults.
         Default options are then options activity was created with.
         They are part of the first ActivityTaskScheduled event.
         
        bool restore_original_options = 8;
        Specified by:
        getRestoreOriginalOptions in interface BatchOperationResetActivitiesOrBuilder
        Returns:
        The restoreOriginalOptions.
      • setRestoreOriginalOptions

        public BatchOperationResetActivities.Builder setRestoreOriginalOptions​(boolean value)
         If set, the activity options will be restored to the defaults.
         Default options are then options activity was created with.
         They are part of the first ActivityTaskScheduled event.
         
        bool restore_original_options = 8;
        Parameters:
        value - The restoreOriginalOptions to set.
        Returns:
        This builder for chaining.
      • clearRestoreOriginalOptions

        public BatchOperationResetActivities.Builder clearRestoreOriginalOptions()
         If set, the activity options will be restored to the defaults.
         Default options are then options activity was created with.
         They are part of the first ActivityTaskScheduled event.
         
        bool restore_original_options = 8;
        Returns:
        This builder for chaining.