Class ResetActivityRequest.Builder

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

public static final class ResetActivityRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ResetActivityRequest.Builder> implements ResetActivityRequestOrBuilder
 NOTE: keep in sync with temporal.api.batch.v1.BatchOperationResetActivities
 Deprecated. Use `ResetActivityExecutionRequest`.
 
Protobuf type temporal.api.workflowservice.v1.ResetActivityRequest
  • 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<ResetActivityRequest.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<ResetActivityRequest.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<ResetActivityRequest.Builder>
    • getDefaultInstanceForType

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

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

      public ResetActivityRequest 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<ResetActivityRequest.Builder>
    • setField

      public ResetActivityRequest.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<ResetActivityRequest.Builder>
    • clearField

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

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

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

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

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

      public ResetActivityRequest.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<ResetActivityRequest.Builder>
      Throws:
      IOException
    • getActivityCase

      public ResetActivityRequest.ActivityCase getActivityCase()
      Specified by:
      getActivityCase in interface ResetActivityRequestOrBuilder
    • clearActivity

      public ResetActivityRequest.Builder clearActivity()
    • getNamespace

      public String getNamespace()
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface ResetActivityRequestOrBuilder
      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 ResetActivityRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

      public ResetActivityRequest.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 ResetActivityRequest.Builder clearNamespace()
       Namespace of the workflow which scheduled this activity.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

      public ResetActivityRequest.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.
    • hasExecution

      public boolean hasExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      hasExecution in interface ResetActivityRequestOrBuilder
      Returns:
      Whether the execution field is set.
    • getExecution

      public WorkflowExecution getExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      getExecution in interface ResetActivityRequestOrBuilder
      Returns:
      The execution.
    • setExecution

      public ResetActivityRequest.Builder setExecution(WorkflowExecution value)
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • setExecution

      public ResetActivityRequest.Builder setExecution(WorkflowExecution.Builder builderForValue)
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • mergeExecution

      public ResetActivityRequest.Builder mergeExecution(WorkflowExecution value)
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • clearExecution

      public ResetActivityRequest.Builder clearExecution()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • getExecutionBuilder

      public WorkflowExecution.Builder getExecutionBuilder()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
    • getExecutionOrBuilder

      public WorkflowExecutionOrBuilder getExecutionOrBuilder()
       Execution info of the workflow which scheduled this activity
       
      .temporal.api.common.v1.WorkflowExecution execution = 2;
      Specified by:
      getExecutionOrBuilder in interface ResetActivityRequestOrBuilder
    • getIdentity

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

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

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

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

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

      public boolean hasId()
       Only activity with this ID will be reset.
       
      string id = 4;
      Specified by:
      hasId in interface ResetActivityRequestOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public String getId()
       Only activity with this ID will be reset.
       
      string id = 4;
      Specified by:
      getId in interface ResetActivityRequestOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       Only activity with this ID will be reset.
       
      string id = 4;
      Specified by:
      getIdBytes in interface ResetActivityRequestOrBuilder
      Returns:
      The bytes for id.
    • setId

      public ResetActivityRequest.Builder setId(String value)
       Only activity with this ID will be reset.
       
      string id = 4;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public ResetActivityRequest.Builder clearId()
       Only activity with this ID will be reset.
       
      string id = 4;
      Returns:
      This builder for chaining.
    • setIdBytes

      public ResetActivityRequest.Builder setIdBytes(com.google.protobuf.ByteString value)
       Only activity with this ID will be reset.
       
      string id = 4;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasType

      public boolean hasType()
       Reset all running activities with of this type.
       
      string type = 5;
      Specified by:
      hasType in interface ResetActivityRequestOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Reset all running activities with of this type.
       
      string type = 5;
      Specified by:
      getType in interface ResetActivityRequestOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Reset all running activities with of this type.
       
      string type = 5;
      Specified by:
      getTypeBytes in interface ResetActivityRequestOrBuilder
      Returns:
      The bytes for type.
    • setType

      public ResetActivityRequest.Builder setType(String value)
       Reset all running activities with of this type.
       
      string type = 5;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public ResetActivityRequest.Builder clearType()
       Reset all running activities with of this type.
       
      string type = 5;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public ResetActivityRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Reset all running activities with of this type.
       
      string type = 5;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • hasMatchAll

      public boolean hasMatchAll()
       Reset all running activities.
       
      bool match_all = 10;
      Specified by:
      hasMatchAll in interface ResetActivityRequestOrBuilder
      Returns:
      Whether the matchAll field is set.
    • getMatchAll

      public boolean getMatchAll()
       Reset all running activities.
       
      bool match_all = 10;
      Specified by:
      getMatchAll in interface ResetActivityRequestOrBuilder
      Returns:
      The matchAll.
    • setMatchAll

      public ResetActivityRequest.Builder setMatchAll(boolean value)
       Reset all running activities.
       
      bool match_all = 10;
      Parameters:
      value - The matchAll to set.
      Returns:
      This builder for chaining.
    • clearMatchAll

      public ResetActivityRequest.Builder clearMatchAll()
       Reset all running activities.
       
      bool match_all = 10;
      Returns:
      This builder for chaining.
    • getResetHeartbeat

      public boolean getResetHeartbeat()
       Indicates that activity should reset heartbeat details.
       This flag will be applied only to the new instance of the activity.
       
      bool reset_heartbeat = 6;
      Specified by:
      getResetHeartbeat in interface ResetActivityRequestOrBuilder
      Returns:
      The resetHeartbeat.
    • setResetHeartbeat

      public ResetActivityRequest.Builder setResetHeartbeat(boolean value)
       Indicates that activity should reset heartbeat details.
       This flag will be applied only to the new instance of the activity.
       
      bool reset_heartbeat = 6;
      Parameters:
      value - The resetHeartbeat to set.
      Returns:
      This builder for chaining.
    • clearResetHeartbeat

      public ResetActivityRequest.Builder clearResetHeartbeat()
       Indicates that activity should reset heartbeat details.
       This flag will be applied only to the new instance of the activity.
       
      bool reset_heartbeat = 6;
      Returns:
      This builder for chaining.
    • getKeepPaused

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

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

      public ResetActivityRequest.Builder clearKeepPaused()
       If activity is paused, it will remain paused after reset
       
      bool keep_paused = 7;
      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 = 8;
      Specified by:
      hasJitter in interface ResetActivityRequestOrBuilder
      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 = 8;
      Specified by:
      getJitter in interface ResetActivityRequestOrBuilder
      Returns:
      The jitter.
    • setJitter

      public ResetActivityRequest.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 = 8;
    • setJitter

      public ResetActivityRequest.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 = 8;
    • mergeJitter

      public ResetActivityRequest.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 = 8;
    • clearJitter

      public ResetActivityRequest.Builder 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 = 8;
    • 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 = 8;
    • 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 = 8;
      Specified by:
      getJitterOrBuilder in interface ResetActivityRequestOrBuilder
    • 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 = 9;
      Specified by:
      getRestoreOriginalOptions in interface ResetActivityRequestOrBuilder
      Returns:
      The restoreOriginalOptions.
    • setRestoreOriginalOptions

      public ResetActivityRequest.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 = 9;
      Parameters:
      value - The restoreOriginalOptions to set.
      Returns:
      This builder for chaining.
    • clearRestoreOriginalOptions

      public ResetActivityRequest.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 = 9;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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