Class ResetActivityExecutionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ResetActivityExecutionRequest.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder>
io.temporal.api.workflowservice.v1.ResetActivityExecutionRequest.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ResetActivityExecutionRequestOrBuilder, Cloneable
Enclosing class:
ResetActivityExecutionRequest

public static final class ResetActivityExecutionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityExecutionRequest.Builder> implements ResetActivityExecutionRequestOrBuilder
Protobuf type temporal.api.workflowservice.v1.ResetActivityExecutionRequest
  • Method Details

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ResetActivityExecutionRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<ResetActivityExecutionRequest.Builder>
    • setField

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

      public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
    • clearOneof

      public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
    • setRepeatedField

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

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

      public ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public ResetActivityExecutionRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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<ResetActivityExecutionRequest.Builder>
      Throws:
      IOException
    • getNamespace

      public String getNamespace()
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public ResetActivityExecutionRequest.Builder setNamespace(String value)
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Parameters:
      value - The namespace to set.
      Returns:
      This builder for chaining.
    • clearNamespace

      public ResetActivityExecutionRequest.Builder clearNamespace()
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public ResetActivityExecutionRequest.Builder setNamespaceBytes(com.google.protobuf.ByteString value)
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Parameters:
      value - The bytes for namespace to set.
      Returns:
      This builder for chaining.
    • getWorkflowId

      public String getWorkflowId()
       If provided, targets a workflow activity for the given workflow ID.
       If empty, targets a standalone activity.
       
      string workflow_id = 2;
      Specified by:
      getWorkflowId in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The workflowId.
    • getWorkflowIdBytes

      public com.google.protobuf.ByteString getWorkflowIdBytes()
       If provided, targets a workflow activity for the given workflow ID.
       If empty, targets a standalone activity.
       
      string workflow_id = 2;
      Specified by:
      getWorkflowIdBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for workflowId.
    • setWorkflowId

      public ResetActivityExecutionRequest.Builder setWorkflowId(String value)
       If provided, targets a workflow activity for the given workflow ID.
       If empty, targets a standalone activity.
       
      string workflow_id = 2;
      Parameters:
      value - The workflowId to set.
      Returns:
      This builder for chaining.
    • clearWorkflowId

      public ResetActivityExecutionRequest.Builder clearWorkflowId()
       If provided, targets a workflow activity for the given workflow ID.
       If empty, targets a standalone activity.
       
      string workflow_id = 2;
      Returns:
      This builder for chaining.
    • setWorkflowIdBytes

      public ResetActivityExecutionRequest.Builder setWorkflowIdBytes(com.google.protobuf.ByteString value)
       If provided, targets a workflow activity for the given workflow ID.
       If empty, targets a standalone activity.
       
      string workflow_id = 2;
      Parameters:
      value - The bytes for workflowId to set.
      Returns:
      This builder for chaining.
    • getActivityId

      public String getActivityId()
       The ID of the activity to target.
       
      string activity_id = 3;
      Specified by:
      getActivityId in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The activityId.
    • getActivityIdBytes

      public com.google.protobuf.ByteString getActivityIdBytes()
       The ID of the activity to target.
       
      string activity_id = 3;
      Specified by:
      getActivityIdBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for activityId.
    • setActivityId

      public ResetActivityExecutionRequest.Builder setActivityId(String value)
       The ID of the activity to target.
       
      string activity_id = 3;
      Parameters:
      value - The activityId to set.
      Returns:
      This builder for chaining.
    • clearActivityId

      public ResetActivityExecutionRequest.Builder clearActivityId()
       The ID of the activity to target.
       
      string activity_id = 3;
      Returns:
      This builder for chaining.
    • setActivityIdBytes

      public ResetActivityExecutionRequest.Builder setActivityIdBytes(com.google.protobuf.ByteString value)
       The ID of the activity to target.
       
      string activity_id = 3;
      Parameters:
      value - The bytes for activityId to set.
      Returns:
      This builder for chaining.
    • getRunId

      public String getRunId()
       Run ID of the workflow or standalone activity.
       
      string run_id = 4;
      Specified by:
      getRunId in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
       Run ID of the workflow or standalone activity.
       
      string run_id = 4;
      Specified by:
      getRunIdBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for runId.
    • setRunId

       Run ID of the workflow or standalone activity.
       
      string run_id = 4;
      Parameters:
      value - The runId to set.
      Returns:
      This builder for chaining.
    • clearRunId

       Run ID of the workflow or standalone activity.
       
      string run_id = 4;
      Returns:
      This builder for chaining.
    • setRunIdBytes

      public ResetActivityExecutionRequest.Builder setRunIdBytes(com.google.protobuf.ByteString value)
       Run ID of the workflow or standalone activity.
       
      string run_id = 4;
      Parameters:
      value - The bytes for runId to set.
      Returns:
      This builder for chaining.
    • getIdentity

      public String getIdentity()
       The identity of the client who initiated this request.
       
      string identity = 5;
      Specified by:
      getIdentity in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

      public com.google.protobuf.ByteString getIdentityBytes()
       The identity of the client who initiated this request.
       
      string identity = 5;
      Specified by:
      getIdentityBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

      public ResetActivityExecutionRequest.Builder setIdentity(String value)
       The identity of the client who initiated this request.
       
      string identity = 5;
      Parameters:
      value - The identity to set.
      Returns:
      This builder for chaining.
    • clearIdentity

      public ResetActivityExecutionRequest.Builder clearIdentity()
       The identity of the client who initiated this request.
       
      string identity = 5;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public ResetActivityExecutionRequest.Builder setIdentityBytes(com.google.protobuf.ByteString value)
       The identity of the client who initiated this request.
       
      string identity = 5;
      Parameters:
      value - The bytes for identity to set.
      Returns:
      This builder for chaining.
    • getKeepPaused

      public boolean getKeepPaused()
       If activity is paused, it will remain paused after reset
       
      bool keep_paused = 6;
      Specified by:
      getKeepPaused in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The keepPaused.
    • setKeepPaused

      public ResetActivityExecutionRequest.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 ResetActivityExecutionRequest.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, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
      Specified by:
      hasJitter in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      Whether the jitter field is set.
    • getJitter

      public com.google.protobuf.Duration getJitter()
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
      Specified by:
      getJitter in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The jitter.
    • setJitter

      public ResetActivityExecutionRequest.Builder setJitter(com.google.protobuf.Duration value)
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
    • setJitter

      public ResetActivityExecutionRequest.Builder setJitter(com.google.protobuf.Duration.Builder builderForValue)
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
    • mergeJitter

      public ResetActivityExecutionRequest.Builder mergeJitter(com.google.protobuf.Duration value)
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
    • clearJitter

       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
    • getJitterBuilder

      public com.google.protobuf.Duration.Builder getJitterBuilder()
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
    • getJitterOrBuilder

      public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()
       If set, and activity is in backoff, the activity will start at a random time within the specified jitter duration.
       (unless it is paused and keep_paused is set)
       
      .google.protobuf.Duration jitter = 7;
      Specified by:
      getJitterOrBuilder in interface ResetActivityExecutionRequestOrBuilder
    • 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 schedule event.
       
      bool restore_original_options = 8;
      Specified by:
      getRestoreOriginalOptions in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The restoreOriginalOptions.
    • setRestoreOriginalOptions

      public ResetActivityExecutionRequest.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 schedule event.
       
      bool restore_original_options = 8;
      Parameters:
      value - The restoreOriginalOptions to set.
      Returns:
      This builder for chaining.
    • clearRestoreOriginalOptions

      public ResetActivityExecutionRequest.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 schedule event.
       
      bool restore_original_options = 8;
      Returns:
      This builder for chaining.
    • getResourceId

      public String getResourceId()
       Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.
       
      string resource_id = 9;
      Specified by:
      getResourceId in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The resourceId.
    • getResourceIdBytes

      public com.google.protobuf.ByteString getResourceIdBytes()
       Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.
       
      string resource_id = 9;
      Specified by:
      getResourceIdBytes in interface ResetActivityExecutionRequestOrBuilder
      Returns:
      The bytes for resourceId.
    • setResourceId

      public ResetActivityExecutionRequest.Builder setResourceId(String value)
       Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.
       
      string resource_id = 9;
      Parameters:
      value - The resourceId to set.
      Returns:
      This builder for chaining.
    • clearResourceId

      public ResetActivityExecutionRequest.Builder clearResourceId()
       Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.
       
      string resource_id = 9;
      Returns:
      This builder for chaining.
    • setResourceIdBytes

      public ResetActivityExecutionRequest.Builder setResourceIdBytes(com.google.protobuf.ByteString value)
       Resource ID for routing. Contains "workflow:{workflow_id}" for workflow activities or "activity:{activity_id}" for standalone activities.
       
      string resource_id = 9;
      Parameters:
      value - The bytes for resourceId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>
    • mergeUnknownFields

      public final ResetActivityExecutionRequest.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<ResetActivityExecutionRequest.Builder>