Class PauseActivityRequest.Builder

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

public static final class PauseActivityRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PauseActivityRequest.Builder> implements PauseActivityRequestOrBuilder
 Deprecated. Use `PauseActivityExecutionRequest`.
 
Protobuf type temporal.api.workflowservice.v1.PauseActivityRequest
  • 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<PauseActivityRequest.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<PauseActivityRequest.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<PauseActivityRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

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

      public PauseActivityRequest.ActivityCase getActivityCase()
      Specified by:
      getActivityCase in interface PauseActivityRequestOrBuilder
    • clearActivity

      public PauseActivityRequest.Builder clearActivity()
    • getNamespace

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

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

      public PauseActivityRequest.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 PauseActivityRequestOrBuilder
      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 PauseActivityRequestOrBuilder
      Returns:
      The execution.
    • setExecution

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

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

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

      public PauseActivityRequest.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 PauseActivityRequestOrBuilder
    • getIdentity

      public String getIdentity()
       The identity of the client who initiated this request.
       
      string identity = 3;
      Specified by:
      getIdentity in interface PauseActivityRequestOrBuilder
      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 PauseActivityRequestOrBuilder
      Returns:
      The bytes for identity.
    • setIdentity

      public PauseActivityRequest.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 PauseActivityRequest.Builder clearIdentity()
       The identity of the client who initiated this request.
       
      string identity = 3;
      Returns:
      This builder for chaining.
    • setIdentityBytes

      public PauseActivityRequest.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 the activity with this ID will be paused.
       
      string id = 4;
      Specified by:
      hasId in interface PauseActivityRequestOrBuilder
      Returns:
      Whether the id field is set.
    • getId

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

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

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

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

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

      public boolean hasType()
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Specified by:
      hasType in interface PauseActivityRequestOrBuilder
      Returns:
      Whether the type field is set.
    • getType

      public String getType()
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Specified by:
      getType in interface PauseActivityRequestOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Specified by:
      getTypeBytes in interface PauseActivityRequestOrBuilder
      Returns:
      The bytes for type.
    • setType

      public PauseActivityRequest.Builder setType(String value)
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public PauseActivityRequest.Builder clearType()
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Returns:
      This builder for chaining.
    • setTypeBytes

      public PauseActivityRequest.Builder setTypeBytes(com.google.protobuf.ByteString value)
       Pause all running activities of this type.
       Note: Experimental - the behavior of pause by activity type might change in a future release.
       
      string type = 5;
      Parameters:
      value - The bytes for type to set.
      Returns:
      This builder for chaining.
    • getReason

      public String getReason()
       Reason to pause the activity.
       
      string reason = 6;
      Specified by:
      getReason in interface PauseActivityRequestOrBuilder
      Returns:
      The reason.
    • getReasonBytes

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

      public PauseActivityRequest.Builder setReason(String value)
       Reason to pause the activity.
       
      string reason = 6;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

      public PauseActivityRequest.Builder clearReason()
       Reason to pause the activity.
       
      string reason = 6;
      Returns:
      This builder for chaining.
    • setReasonBytes

      public PauseActivityRequest.Builder setReasonBytes(com.google.protobuf.ByteString value)
       Reason to pause the activity.
       
      string reason = 6;
      Parameters:
      value - The bytes for reason to set.
      Returns:
      This builder for chaining.
    • getRequestId

      public String getRequestId()
       Used to de-dupe pause requests.
       
      string request_id = 7;
      Specified by:
      getRequestId in interface PauseActivityRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Used to de-dupe pause requests.
       
      string request_id = 7;
      Specified by:
      getRequestIdBytes in interface PauseActivityRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public PauseActivityRequest.Builder setRequestId(String value)
       Used to de-dupe pause requests.
       
      string request_id = 7;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public PauseActivityRequest.Builder clearRequestId()
       Used to de-dupe pause requests.
       
      string request_id = 7;
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public PauseActivityRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Used to de-dupe pause requests.
       
      string request_id = 7;
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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