Class ResetWorkflowExecutionRequest.Builder

    • 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<ResetWorkflowExecutionRequest.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<ResetWorkflowExecutionRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

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

        public ResetWorkflowExecutionRequest.Builder setNamespace​(java.lang.String value)
        string namespace = 1;
        Parameters:
        value - The namespace to set.
        Returns:
        This builder for chaining.
      • setNamespaceBytes

        public ResetWorkflowExecutionRequest.Builder setNamespaceBytes​(com.google.protobuf.ByteString value)
        string namespace = 1;
        Parameters:
        value - The bytes for namespace to set.
        Returns:
        This builder for chaining.
      • hasWorkflowExecution

        public boolean hasWorkflowExecution()
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
        Specified by:
        hasWorkflowExecution in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        Whether the workflowExecution field is set.
      • getWorkflowExecution

        public WorkflowExecution getWorkflowExecution()
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
        Specified by:
        getWorkflowExecution in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        The workflowExecution.
      • setWorkflowExecution

        public ResetWorkflowExecutionRequest.Builder setWorkflowExecution​(WorkflowExecution value)
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • setWorkflowExecution

        public ResetWorkflowExecutionRequest.Builder setWorkflowExecution​(WorkflowExecution.Builder builderForValue)
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • mergeWorkflowExecution

        public ResetWorkflowExecutionRequest.Builder mergeWorkflowExecution​(WorkflowExecution value)
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • clearWorkflowExecution

        public ResetWorkflowExecutionRequest.Builder clearWorkflowExecution()
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • getWorkflowExecutionBuilder

        public WorkflowExecution.Builder getWorkflowExecutionBuilder()
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
      • getWorkflowExecutionOrBuilder

        public WorkflowExecutionOrBuilder getWorkflowExecutionOrBuilder()
         The workflow to reset. If this contains a run ID then the workflow will be reset back to the
         provided event ID in that run. Otherwise it will be reset to the provided event ID in the
         current run. In all cases the current run will be terminated and a new run started.
         
        .temporal.api.common.v1.WorkflowExecution workflow_execution = 2;
        Specified by:
        getWorkflowExecutionOrBuilder in interface ResetWorkflowExecutionRequestOrBuilder
      • setReason

        public ResetWorkflowExecutionRequest.Builder setReason​(java.lang.String value)
        string reason = 3;
        Parameters:
        value - The reason to set.
        Returns:
        This builder for chaining.
      • setReasonBytes

        public ResetWorkflowExecutionRequest.Builder setReasonBytes​(com.google.protobuf.ByteString value)
        string reason = 3;
        Parameters:
        value - The bytes for reason to set.
        Returns:
        This builder for chaining.
      • getWorkflowTaskFinishEventId

        public long getWorkflowTaskFinishEventId()
         The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
         `WORKFLOW_TASK_STARTED` event to reset to.
         
        int64 workflow_task_finish_event_id = 4;
        Specified by:
        getWorkflowTaskFinishEventId in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        The workflowTaskFinishEventId.
      • setWorkflowTaskFinishEventId

        public ResetWorkflowExecutionRequest.Builder setWorkflowTaskFinishEventId​(long value)
         The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
         `WORKFLOW_TASK_STARTED` event to reset to.
         
        int64 workflow_task_finish_event_id = 4;
        Parameters:
        value - The workflowTaskFinishEventId to set.
        Returns:
        This builder for chaining.
      • clearWorkflowTaskFinishEventId

        public ResetWorkflowExecutionRequest.Builder clearWorkflowTaskFinishEventId()
         The id of a `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
         `WORKFLOW_TASK_STARTED` event to reset to.
         
        int64 workflow_task_finish_event_id = 4;
        Returns:
        This builder for chaining.
      • setRequestId

        public ResetWorkflowExecutionRequest.Builder setRequestId​(java.lang.String value)
         Used to de-dupe reset requests
         
        string request_id = 5;
        Parameters:
        value - The requestId to set.
        Returns:
        This builder for chaining.
      • setRequestIdBytes

        public ResetWorkflowExecutionRequest.Builder setRequestIdBytes​(com.google.protobuf.ByteString value)
         Used to de-dupe reset requests
         
        string request_id = 5;
        Parameters:
        value - The bytes for requestId to set.
        Returns:
        This builder for chaining.
      • getResetReapplyTypeValue

        public int getResetReapplyTypeValue()
         Event types to be reapplied (deprecated)
         Default: RESET_REAPPLY_TYPE_SIGNAL
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
        Specified by:
        getResetReapplyTypeValue in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        The enum numeric value on the wire for resetReapplyType.
      • setResetReapplyTypeValue

        public ResetWorkflowExecutionRequest.Builder setResetReapplyTypeValue​(int value)
         Event types to be reapplied (deprecated)
         Default: RESET_REAPPLY_TYPE_SIGNAL
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
        Parameters:
        value - The enum numeric value on the wire for resetReapplyType to set.
        Returns:
        This builder for chaining.
      • setResetReapplyType

        public ResetWorkflowExecutionRequest.Builder setResetReapplyType​(ResetReapplyType value)
         Event types to be reapplied (deprecated)
         Default: RESET_REAPPLY_TYPE_SIGNAL
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
        Parameters:
        value - The resetReapplyType to set.
        Returns:
        This builder for chaining.
      • clearResetReapplyType

        public ResetWorkflowExecutionRequest.Builder clearResetReapplyType()
         Event types to be reapplied (deprecated)
         Default: RESET_REAPPLY_TYPE_SIGNAL
         
        .temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 6;
        Returns:
        This builder for chaining.
      • getResetReapplyExcludeTypesCount

        public int getResetReapplyExcludeTypesCount()
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Specified by:
        getResetReapplyExcludeTypesCount in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        The count of resetReapplyExcludeTypes.
      • setResetReapplyExcludeTypes

        public ResetWorkflowExecutionRequest.Builder setResetReapplyExcludeTypes​(int index,
                                                                                 ResetReapplyExcludeType value)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        index - The index to set the value at.
        value - The resetReapplyExcludeTypes to set.
        Returns:
        This builder for chaining.
      • addResetReapplyExcludeTypes

        public ResetWorkflowExecutionRequest.Builder addResetReapplyExcludeTypes​(ResetReapplyExcludeType value)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        value - The resetReapplyExcludeTypes to add.
        Returns:
        This builder for chaining.
      • addAllResetReapplyExcludeTypes

        public ResetWorkflowExecutionRequest.Builder addAllResetReapplyExcludeTypes​(java.lang.Iterable<? extends ResetReapplyExcludeType> values)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        values - The resetReapplyExcludeTypes to add.
        Returns:
        This builder for chaining.
      • clearResetReapplyExcludeTypes

        public ResetWorkflowExecutionRequest.Builder clearResetReapplyExcludeTypes()
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Returns:
        This builder for chaining.
      • getResetReapplyExcludeTypesValueList

        public java.util.List<java.lang.Integer> getResetReapplyExcludeTypesValueList()
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Specified by:
        getResetReapplyExcludeTypesValueList in interface ResetWorkflowExecutionRequestOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for resetReapplyExcludeTypes.
      • getResetReapplyExcludeTypesValue

        public int getResetReapplyExcludeTypesValue​(int index)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Specified by:
        getResetReapplyExcludeTypesValue in interface ResetWorkflowExecutionRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of resetReapplyExcludeTypes at the given index.
      • setResetReapplyExcludeTypesValue

        public ResetWorkflowExecutionRequest.Builder setResetReapplyExcludeTypesValue​(int index,
                                                                                      int value)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for resetReapplyExcludeTypes to set.
        Returns:
        This builder for chaining.
      • addResetReapplyExcludeTypesValue

        public ResetWorkflowExecutionRequest.Builder addResetReapplyExcludeTypesValue​(int value)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        value - The enum numeric value on the wire for resetReapplyExcludeTypes to add.
        Returns:
        This builder for chaining.
      • addAllResetReapplyExcludeTypesValue

        public ResetWorkflowExecutionRequest.Builder addAllResetReapplyExcludeTypesValue​(java.lang.Iterable<java.lang.Integer> values)
         Event types not to be reapplied
         
        repeated .temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 7;
        Parameters:
        values - The enum numeric values on the wire for resetReapplyExcludeTypes to add.
        Returns:
        This builder for chaining.