Class PauseWorkflowExecutionRequest.Builder

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

public static final class PauseWorkflowExecutionRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PauseWorkflowExecutionRequest.Builder> implements PauseWorkflowExecutionRequestOrBuilder
 Request to pause a workflow execution.
 
Protobuf type temporal.api.workflowservice.v1.PauseWorkflowExecutionRequest
  • 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<PauseWorkflowExecutionRequest.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<PauseWorkflowExecutionRequest.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<PauseWorkflowExecutionRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

      public String getNamespace()
       Namespace of the workflow to pause.
       
      string namespace = 1;
      Specified by:
      getNamespace in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The namespace.
    • getNamespaceBytes

      public com.google.protobuf.ByteString getNamespaceBytes()
       Namespace of the workflow to pause.
       
      string namespace = 1;
      Specified by:
      getNamespaceBytes in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The bytes for namespace.
    • setNamespace

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

      public PauseWorkflowExecutionRequest.Builder clearNamespace()
       Namespace of the workflow to pause.
       
      string namespace = 1;
      Returns:
      This builder for chaining.
    • setNamespaceBytes

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

      public String getWorkflowId()
       ID of the workflow execution to be paused. Required.
       
      string workflow_id = 2;
      Specified by:
      getWorkflowId in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The workflowId.
    • getWorkflowIdBytes

      public com.google.protobuf.ByteString getWorkflowIdBytes()
       ID of the workflow execution to be paused. Required.
       
      string workflow_id = 2;
      Specified by:
      getWorkflowIdBytes in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The bytes for workflowId.
    • setWorkflowId

      public PauseWorkflowExecutionRequest.Builder setWorkflowId(String value)
       ID of the workflow execution to be paused. Required.
       
      string workflow_id = 2;
      Parameters:
      value - The workflowId to set.
      Returns:
      This builder for chaining.
    • clearWorkflowId

      public PauseWorkflowExecutionRequest.Builder clearWorkflowId()
       ID of the workflow execution to be paused. Required.
       
      string workflow_id = 2;
      Returns:
      This builder for chaining.
    • setWorkflowIdBytes

      public PauseWorkflowExecutionRequest.Builder setWorkflowIdBytes(com.google.protobuf.ByteString value)
       ID of the workflow execution to be paused. Required.
       
      string workflow_id = 2;
      Parameters:
      value - The bytes for workflowId to set.
      Returns:
      This builder for chaining.
    • getRunId

      public String getRunId()
       Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
       
      string run_id = 3;
      Specified by:
      getRunId in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
       Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
       
      string run_id = 3;
      Specified by:
      getRunIdBytes in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The bytes for runId.
    • setRunId

       Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
       
      string run_id = 3;
      Parameters:
      value - The runId to set.
      Returns:
      This builder for chaining.
    • clearRunId

       Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
       
      string run_id = 3;
      Returns:
      This builder for chaining.
    • setRunIdBytes

      public PauseWorkflowExecutionRequest.Builder setRunIdBytes(com.google.protobuf.ByteString value)
       Run ID of the workflow execution to be paused. Optional. If not provided, the current run of the workflow will be paused.
       
      string run_id = 3;
      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 = 4;
      Specified by:
      getIdentity in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The identity.
    • getIdentityBytes

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

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

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

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

      public String getReason()
       Reason to pause the workflow execution.
       
      string reason = 5;
      Specified by:
      getReason in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The reason.
    • getReasonBytes

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

       Reason to pause the workflow execution.
       
      string reason = 5;
      Parameters:
      value - The reason to set.
      Returns:
      This builder for chaining.
    • clearReason

       Reason to pause the workflow execution.
       
      string reason = 5;
      Returns:
      This builder for chaining.
    • setReasonBytes

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

      public String getRequestId()
       A unique identifier for this pause request for idempotence. Typically UUIDv4.
       
      string request_id = 6;
      Specified by:
      getRequestId in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       A unique identifier for this pause request for idempotence. Typically UUIDv4.
       
      string request_id = 6;
      Specified by:
      getRequestIdBytes in interface PauseWorkflowExecutionRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public PauseWorkflowExecutionRequest.Builder setRequestId(String value)
       A unique identifier for this pause request for idempotence. Typically UUIDv4.
       
      string request_id = 6;
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public PauseWorkflowExecutionRequest.Builder clearRequestId()
       A unique identifier for this pause request for idempotence. Typically UUIDv4.
       
      string request_id = 6;
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public PauseWorkflowExecutionRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       A unique identifier for this pause request for idempotence. Typically UUIDv4.
       
      string request_id = 6;
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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