Class UnpauseActivityExecutionRequest.Builder

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

public static final class UnpauseActivityExecutionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<UnpauseActivityExecutionRequest.Builder> implements UnpauseActivityExecutionRequestOrBuilder
Protobuf type temporal.api.workflowservice.v1.UnpauseActivityExecutionRequest
  • 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<UnpauseActivityExecutionRequest.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<UnpauseActivityExecutionRequest.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<UnpauseActivityExecutionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

      public UnpauseActivityExecutionRequest.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<UnpauseActivityExecutionRequest.Builder>
      Throws:
      IOException
    • getNamespace

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

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

      public UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequestOrBuilder
      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 UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The bytes for workflowId.
    • setWorkflowId

      public UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequestOrBuilder
      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 UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The bytes for activityId.
    • setActivityId

      public UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequest.Builder clearActivityId()
       The ID of the activity to target.
       
      string activity_id = 3;
      Returns:
      This builder for chaining.
    • setActivityIdBytes

      public UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequestOrBuilder
      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 UnpauseActivityExecutionRequestOrBuilder
      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 UnpauseActivityExecutionRequest.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 UnpauseActivityExecutionRequestOrBuilder
      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 UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

      public UnpauseActivityExecutionRequest.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

       The identity of the client who initiated this request.
       
      string identity = 5;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public UnpauseActivityExecutionRequest.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.
    • getResetAttempts

      public boolean getResetAttempts()
       Providing this flag will also reset the number of attempts.
       
      bool reset_attempts = 6;
      Specified by:
      getResetAttempts in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The resetAttempts.
    • setResetAttempts

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

      public UnpauseActivityExecutionRequest.Builder clearResetAttempts()
       Providing this flag will also reset the number of attempts.
       
      bool reset_attempts = 6;
      Returns:
      This builder for chaining.
    • getResetHeartbeat

      public boolean getResetHeartbeat()
       Providing this flag will also reset the heartbeat details.
       
      bool reset_heartbeat = 7;
      Specified by:
      getResetHeartbeat in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The resetHeartbeat.
    • setResetHeartbeat

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

      public UnpauseActivityExecutionRequest.Builder clearResetHeartbeat()
       Providing this flag will also reset the heartbeat details.
       
      bool reset_heartbeat = 7;
      Returns:
      This builder for chaining.
    • getReason

      public String getReason()
       Reason to unpause the activity.
       
      string reason = 8;
      Specified by:
      getReason in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The reason.
    • getReasonBytes

      public com.google.protobuf.ByteString getReasonBytes()
       Reason to unpause the activity.
       
      string reason = 8;
      Specified by:
      getReasonBytes in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The bytes for reason.
    • setReason

       Reason to unpause the activity.
       
      string reason = 8;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

       Reason to unpause the activity.
       
      string reason = 8;
      Returns:
      This builder for chaining.
    • setReasonBytes

      public UnpauseActivityExecutionRequest.Builder setReasonBytes(com.google.protobuf.ByteString value)
       Reason to unpause the activity.
       
      string reason = 8;
      Parameters:
      value - The bytes for reason to set.
      Returns:
      This builder for chaining.
    • hasJitter

      public boolean hasJitter()
       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
      Specified by:
      hasJitter in interface UnpauseActivityExecutionRequestOrBuilder
      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.
       
      .google.protobuf.Duration jitter = 9;
      Specified by:
      getJitter in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The jitter.
    • setJitter

      public UnpauseActivityExecutionRequest.Builder setJitter(com.google.protobuf.Duration value)
       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
    • setJitter

      public UnpauseActivityExecutionRequest.Builder setJitter(com.google.protobuf.Duration.Builder builderForValue)
       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
    • mergeJitter

      public UnpauseActivityExecutionRequest.Builder mergeJitter(com.google.protobuf.Duration value)
       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
    • clearJitter

       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
    • getJitterBuilder

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

      public com.google.protobuf.DurationOrBuilder getJitterOrBuilder()
       If set, the activity will start at a random time within the specified jitter duration.
       
      .google.protobuf.Duration jitter = 9;
      Specified by:
      getJitterOrBuilder in interface UnpauseActivityExecutionRequestOrBuilder
    • 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 = 10;
      Specified by:
      getResourceId in interface UnpauseActivityExecutionRequestOrBuilder
      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 = 10;
      Specified by:
      getResourceIdBytes in interface UnpauseActivityExecutionRequestOrBuilder
      Returns:
      The bytes for resourceId.
    • setResourceId

      public UnpauseActivityExecutionRequest.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 = 10;
      Parameters:
      value - The resourceId to set.
      Returns:
      This builder for chaining.
    • clearResourceId

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

      public UnpauseActivityExecutionRequest.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 = 10;
      Parameters:
      value - The bytes for resourceId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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