All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest Maven / Gradle / Ivy

There is a newer version: 1.24.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/workflowservice/v1/request_response.proto

package io.temporal.api.workflowservice.v1;

/**
 * Protobuf type {@code temporal.api.workflowservice.v1.StartWorkflowExecutionRequest}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:StartWorkflowExecutionRequest.java.pb.meta")
public  final class StartWorkflowExecutionRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)
    StartWorkflowExecutionRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use StartWorkflowExecutionRequest.newBuilder() to construct.
  private StartWorkflowExecutionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private StartWorkflowExecutionRequest() {
    namespace_ = "";
    workflowId_ = "";
    identity_ = "";
    requestId_ = "";
    workflowIdReusePolicy_ = 0;
    cronSchedule_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new StartWorkflowExecutionRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private StartWorkflowExecutionRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            namespace_ = s;
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

            workflowId_ = s;
            break;
          }
          case 26: {
            io.temporal.api.common.v1.WorkflowType.Builder subBuilder = null;
            if (workflowType_ != null) {
              subBuilder = workflowType_.toBuilder();
            }
            workflowType_ = input.readMessage(io.temporal.api.common.v1.WorkflowType.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowType_);
              workflowType_ = subBuilder.buildPartial();
            }

            break;
          }
          case 34: {
            io.temporal.api.taskqueue.v1.TaskQueue.Builder subBuilder = null;
            if (taskQueue_ != null) {
              subBuilder = taskQueue_.toBuilder();
            }
            taskQueue_ = input.readMessage(io.temporal.api.taskqueue.v1.TaskQueue.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(taskQueue_);
              taskQueue_ = subBuilder.buildPartial();
            }

            break;
          }
          case 42: {
            io.temporal.api.common.v1.Payloads.Builder subBuilder = null;
            if (input_ != null) {
              subBuilder = input_.toBuilder();
            }
            input_ = input.readMessage(io.temporal.api.common.v1.Payloads.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(input_);
              input_ = subBuilder.buildPartial();
            }

            break;
          }
          case 50: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (workflowExecutionTimeout_ != null) {
              subBuilder = workflowExecutionTimeout_.toBuilder();
            }
            workflowExecutionTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowExecutionTimeout_);
              workflowExecutionTimeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 58: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (workflowRunTimeout_ != null) {
              subBuilder = workflowRunTimeout_.toBuilder();
            }
            workflowRunTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowRunTimeout_);
              workflowRunTimeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 66: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (workflowTaskTimeout_ != null) {
              subBuilder = workflowTaskTimeout_.toBuilder();
            }
            workflowTaskTimeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowTaskTimeout_);
              workflowTaskTimeout_ = subBuilder.buildPartial();
            }

            break;
          }
          case 74: {
            java.lang.String s = input.readStringRequireUtf8();

            identity_ = s;
            break;
          }
          case 82: {
            java.lang.String s = input.readStringRequireUtf8();

            requestId_ = s;
            break;
          }
          case 88: {
            int rawValue = input.readEnum();

            workflowIdReusePolicy_ = rawValue;
            break;
          }
          case 98: {
            io.temporal.api.common.v1.RetryPolicy.Builder subBuilder = null;
            if (retryPolicy_ != null) {
              subBuilder = retryPolicy_.toBuilder();
            }
            retryPolicy_ = input.readMessage(io.temporal.api.common.v1.RetryPolicy.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(retryPolicy_);
              retryPolicy_ = subBuilder.buildPartial();
            }

            break;
          }
          case 106: {
            java.lang.String s = input.readStringRequireUtf8();

            cronSchedule_ = s;
            break;
          }
          case 114: {
            io.temporal.api.common.v1.Memo.Builder subBuilder = null;
            if (memo_ != null) {
              subBuilder = memo_.toBuilder();
            }
            memo_ = input.readMessage(io.temporal.api.common.v1.Memo.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(memo_);
              memo_ = subBuilder.buildPartial();
            }

            break;
          }
          case 122: {
            io.temporal.api.common.v1.SearchAttributes.Builder subBuilder = null;
            if (searchAttributes_ != null) {
              subBuilder = searchAttributes_.toBuilder();
            }
            searchAttributes_ = input.readMessage(io.temporal.api.common.v1.SearchAttributes.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(searchAttributes_);
              searchAttributes_ = subBuilder.buildPartial();
            }

            break;
          }
          case 130: {
            io.temporal.api.common.v1.Header.Builder subBuilder = null;
            if (header_ != null) {
              subBuilder = header_.toBuilder();
            }
            header_ = input.readMessage(io.temporal.api.common.v1.Header.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(header_);
              header_ = subBuilder.buildPartial();
            }

            break;
          }
          case 136: {

            requestEagerExecution_ = input.readBool();
            break;
          }
          case 146: {
            io.temporal.api.failure.v1.Failure.Builder subBuilder = null;
            if (continuedFailure_ != null) {
              subBuilder = continuedFailure_.toBuilder();
            }
            continuedFailure_ = input.readMessage(io.temporal.api.failure.v1.Failure.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(continuedFailure_);
              continuedFailure_ = subBuilder.buildPartial();
            }

            break;
          }
          case 154: {
            io.temporal.api.common.v1.Payloads.Builder subBuilder = null;
            if (lastCompletionResult_ != null) {
              subBuilder = lastCompletionResult_.toBuilder();
            }
            lastCompletionResult_ = input.readMessage(io.temporal.api.common.v1.Payloads.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(lastCompletionResult_);
              lastCompletionResult_ = subBuilder.buildPartial();
            }

            break;
          }
          case 162: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (workflowStartDelay_ != null) {
              subBuilder = workflowStartDelay_.toBuilder();
            }
            workflowStartDelay_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(workflowStartDelay_);
              workflowStartDelay_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.class, io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.Builder.class);
  }

  public static final int NAMESPACE_FIELD_NUMBER = 1;
  private volatile java.lang.Object namespace_;
  /**
   * string namespace = 1;
   * @return The namespace.
   */
  public java.lang.String getNamespace() {
    java.lang.Object ref = namespace_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      namespace_ = s;
      return s;
    }
  }
  /**
   * string namespace = 1;
   * @return The bytes for namespace.
   */
  public com.google.protobuf.ByteString
      getNamespaceBytes() {
    java.lang.Object ref = namespace_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      namespace_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WORKFLOW_ID_FIELD_NUMBER = 2;
  private volatile java.lang.Object workflowId_;
  /**
   * string workflow_id = 2;
   * @return The workflowId.
   */
  public java.lang.String getWorkflowId() {
    java.lang.Object ref = workflowId_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      workflowId_ = s;
      return s;
    }
  }
  /**
   * string workflow_id = 2;
   * @return The bytes for workflowId.
   */
  public com.google.protobuf.ByteString
      getWorkflowIdBytes() {
    java.lang.Object ref = workflowId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      workflowId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int WORKFLOW_TYPE_FIELD_NUMBER = 3;
  private io.temporal.api.common.v1.WorkflowType workflowType_;
  /**
   * .temporal.api.common.v1.WorkflowType workflow_type = 3;
   * @return Whether the workflowType field is set.
   */
  public boolean hasWorkflowType() {
    return workflowType_ != null;
  }
  /**
   * .temporal.api.common.v1.WorkflowType workflow_type = 3;
   * @return The workflowType.
   */
  public io.temporal.api.common.v1.WorkflowType getWorkflowType() {
    return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_;
  }
  /**
   * .temporal.api.common.v1.WorkflowType workflow_type = 3;
   */
  public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() {
    return getWorkflowType();
  }

  public static final int TASK_QUEUE_FIELD_NUMBER = 4;
  private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_;
  /**
   * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
   * @return Whether the taskQueue field is set.
   */
  public boolean hasTaskQueue() {
    return taskQueue_ != null;
  }
  /**
   * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
   * @return The taskQueue.
   */
  public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() {
    return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_;
  }
  /**
   * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4;
   */
  public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() {
    return getTaskQueue();
  }

  public static final int INPUT_FIELD_NUMBER = 5;
  private io.temporal.api.common.v1.Payloads input_;
  /**
   * 
   * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
   * 
* * .temporal.api.common.v1.Payloads input = 5; * @return Whether the input field is set. */ public boolean hasInput() { return input_ != null; } /** *
   * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
   * 
* * .temporal.api.common.v1.Payloads input = 5; * @return The input. */ public io.temporal.api.common.v1.Payloads getInput() { return input_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_; } /** *
   * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
   * 
* * .temporal.api.common.v1.Payloads input = 5; */ public io.temporal.api.common.v1.PayloadsOrBuilder getInputOrBuilder() { return getInput(); } public static final int WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration workflowExecutionTimeout_; /** *
   * Total workflow execution timeout including retries and continue as new.
   * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; * @return Whether the workflowExecutionTimeout field is set. */ public boolean hasWorkflowExecutionTimeout() { return workflowExecutionTimeout_ != null; } /** *
   * Total workflow execution timeout including retries and continue as new.
   * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; * @return The workflowExecutionTimeout. */ public com.google.protobuf.Duration getWorkflowExecutionTimeout() { return workflowExecutionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionTimeout_; } /** *
   * Total workflow execution timeout including retries and continue as new.
   * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowExecutionTimeoutOrBuilder() { return getWorkflowExecutionTimeout(); } public static final int WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER = 7; private com.google.protobuf.Duration workflowRunTimeout_; /** *
   * Timeout of a single workflow run.
   * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; * @return Whether the workflowRunTimeout field is set. */ public boolean hasWorkflowRunTimeout() { return workflowRunTimeout_ != null; } /** *
   * Timeout of a single workflow run.
   * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; * @return The workflowRunTimeout. */ public com.google.protobuf.Duration getWorkflowRunTimeout() { return workflowRunTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowRunTimeout_; } /** *
   * Timeout of a single workflow run.
   * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowRunTimeoutOrBuilder() { return getWorkflowRunTimeout(); } public static final int WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER = 8; private com.google.protobuf.Duration workflowTaskTimeout_; /** *
   * Timeout of a single workflow task.
   * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; * @return Whether the workflowTaskTimeout field is set. */ public boolean hasWorkflowTaskTimeout() { return workflowTaskTimeout_ != null; } /** *
   * Timeout of a single workflow task.
   * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; * @return The workflowTaskTimeout. */ public com.google.protobuf.Duration getWorkflowTaskTimeout() { return workflowTaskTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowTaskTimeout_; } /** *
   * Timeout of a single workflow task.
   * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowTaskTimeoutOrBuilder() { return getWorkflowTaskTimeout(); } public static final int IDENTITY_FIELD_NUMBER = 9; private volatile java.lang.Object identity_; /** *
   * The identity of the client who initiated this request
   * 
* * string identity = 9; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } } /** *
   * The identity of the client who initiated this request
   * 
* * string identity = 9; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REQUEST_ID_FIELD_NUMBER = 10; private volatile java.lang.Object requestId_; /** *
   * A unique identifier for this start request. Typically UUIDv4.
   * 
* * string request_id = 10; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } } /** *
   * A unique identifier for this start request. Typically UUIDv4.
   * 
* * string request_id = 10; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER = 11; private int workflowIdReusePolicy_; /** *
   * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
   * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @return The enum numeric value on the wire for workflowIdReusePolicy. */ public int getWorkflowIdReusePolicyValue() { return workflowIdReusePolicy_; } /** *
   * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
   * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @return The workflowIdReusePolicy. */ public io.temporal.api.enums.v1.WorkflowIdReusePolicy getWorkflowIdReusePolicy() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.WorkflowIdReusePolicy result = io.temporal.api.enums.v1.WorkflowIdReusePolicy.valueOf(workflowIdReusePolicy_); return result == null ? io.temporal.api.enums.v1.WorkflowIdReusePolicy.UNRECOGNIZED : result; } public static final int RETRY_POLICY_FIELD_NUMBER = 12; private io.temporal.api.common.v1.RetryPolicy retryPolicy_; /** *
   * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
   * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** *
   * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
   * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; * @return The retryPolicy. */ public io.temporal.api.common.v1.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } /** *
   * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
   * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public io.temporal.api.common.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { return getRetryPolicy(); } public static final int CRON_SCHEDULE_FIELD_NUMBER = 13; private volatile java.lang.Object cronSchedule_; /** *
   * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
   * 
* * string cron_schedule = 13; * @return The cronSchedule. */ public java.lang.String getCronSchedule() { java.lang.Object ref = cronSchedule_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; } } /** *
   * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
   * 
* * string cron_schedule = 13; * @return The bytes for cronSchedule. */ public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cronSchedule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MEMO_FIELD_NUMBER = 14; private io.temporal.api.common.v1.Memo memo_; /** * .temporal.api.common.v1.Memo memo = 14; * @return Whether the memo field is set. */ public boolean hasMemo() { return memo_ != null; } /** * .temporal.api.common.v1.Memo memo = 14; * @return The memo. */ public io.temporal.api.common.v1.Memo getMemo() { return memo_ == null ? io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_; } /** * .temporal.api.common.v1.Memo memo = 14; */ public io.temporal.api.common.v1.MemoOrBuilder getMemoOrBuilder() { return getMemo(); } public static final int SEARCH_ATTRIBUTES_FIELD_NUMBER = 15; private io.temporal.api.common.v1.SearchAttributes searchAttributes_; /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; * @return Whether the searchAttributes field is set. */ public boolean hasSearchAttributes() { return searchAttributes_ != null; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; * @return The searchAttributes. */ public io.temporal.api.common.v1.SearchAttributes getSearchAttributes() { return searchAttributes_ == null ? io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public io.temporal.api.common.v1.SearchAttributesOrBuilder getSearchAttributesOrBuilder() { return getSearchAttributes(); } public static final int HEADER_FIELD_NUMBER = 16; private io.temporal.api.common.v1.Header header_; /** * .temporal.api.common.v1.Header header = 16; * @return Whether the header field is set. */ public boolean hasHeader() { return header_ != null; } /** * .temporal.api.common.v1.Header header = 16; * @return The header. */ public io.temporal.api.common.v1.Header getHeader() { return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_; } /** * .temporal.api.common.v1.Header header = 16; */ public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() { return getHeader(); } public static final int REQUEST_EAGER_EXECUTION_FIELD_NUMBER = 17; private boolean requestEagerExecution_; /** *
   * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
   * If set to `true` the caller is expected to have a worker available and capable of processing the task.
   * The returned task will be marked as started and is expected to be completed by the specified
   * `workflow_task_timeout`.
   * 
* * bool request_eager_execution = 17; * @return The requestEagerExecution. */ public boolean getRequestEagerExecution() { return requestEagerExecution_; } public static final int CONTINUED_FAILURE_FIELD_NUMBER = 18; private io.temporal.api.failure.v1.Failure continuedFailure_; /** *
   * These values will be available as ContinuedFailure and LastCompletionResult in the
   * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
   * server itself (for the schedules feature) and are not intended to be exposed in
   * StartWorkflowExecution.
   * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; * @return Whether the continuedFailure field is set. */ public boolean hasContinuedFailure() { return continuedFailure_ != null; } /** *
   * These values will be available as ContinuedFailure and LastCompletionResult in the
   * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
   * server itself (for the schedules feature) and are not intended to be exposed in
   * StartWorkflowExecution.
   * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; * @return The continuedFailure. */ public io.temporal.api.failure.v1.Failure getContinuedFailure() { return continuedFailure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : continuedFailure_; } /** *
   * These values will be available as ContinuedFailure and LastCompletionResult in the
   * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
   * server itself (for the schedules feature) and are not intended to be exposed in
   * StartWorkflowExecution.
   * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public io.temporal.api.failure.v1.FailureOrBuilder getContinuedFailureOrBuilder() { return getContinuedFailure(); } public static final int LAST_COMPLETION_RESULT_FIELD_NUMBER = 19; private io.temporal.api.common.v1.Payloads lastCompletionResult_; /** * .temporal.api.common.v1.Payloads last_completion_result = 19; * @return Whether the lastCompletionResult field is set. */ public boolean hasLastCompletionResult() { return lastCompletionResult_ != null; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; * @return The lastCompletionResult. */ public io.temporal.api.common.v1.Payloads getLastCompletionResult() { return lastCompletionResult_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : lastCompletionResult_; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public io.temporal.api.common.v1.PayloadsOrBuilder getLastCompletionResultOrBuilder() { return getLastCompletionResult(); } public static final int WORKFLOW_START_DELAY_FIELD_NUMBER = 20; private com.google.protobuf.Duration workflowStartDelay_; /** *
   * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
   * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
   * of the delay will be ignored.
   * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; * @return Whether the workflowStartDelay field is set. */ public boolean hasWorkflowStartDelay() { return workflowStartDelay_ != null; } /** *
   * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
   * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
   * of the delay will be ignored.
   * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; * @return The workflowStartDelay. */ public com.google.protobuf.Duration getWorkflowStartDelay() { return workflowStartDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowStartDelay_; } /** *
   * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
   * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
   * of the delay will be ignored.
   * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowStartDelayOrBuilder() { return getWorkflowStartDelay(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNamespaceBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); } if (!getWorkflowIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workflowId_); } if (workflowType_ != null) { output.writeMessage(3, getWorkflowType()); } if (taskQueue_ != null) { output.writeMessage(4, getTaskQueue()); } if (input_ != null) { output.writeMessage(5, getInput()); } if (workflowExecutionTimeout_ != null) { output.writeMessage(6, getWorkflowExecutionTimeout()); } if (workflowRunTimeout_ != null) { output.writeMessage(7, getWorkflowRunTimeout()); } if (workflowTaskTimeout_ != null) { output.writeMessage(8, getWorkflowTaskTimeout()); } if (!getIdentityBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, identity_); } if (!getRequestIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, requestId_); } if (workflowIdReusePolicy_ != io.temporal.api.enums.v1.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED.getNumber()) { output.writeEnum(11, workflowIdReusePolicy_); } if (retryPolicy_ != null) { output.writeMessage(12, getRetryPolicy()); } if (!getCronScheduleBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, cronSchedule_); } if (memo_ != null) { output.writeMessage(14, getMemo()); } if (searchAttributes_ != null) { output.writeMessage(15, getSearchAttributes()); } if (header_ != null) { output.writeMessage(16, getHeader()); } if (requestEagerExecution_ != false) { output.writeBool(17, requestEagerExecution_); } if (continuedFailure_ != null) { output.writeMessage(18, getContinuedFailure()); } if (lastCompletionResult_ != null) { output.writeMessage(19, getLastCompletionResult()); } if (workflowStartDelay_ != null) { output.writeMessage(20, getWorkflowStartDelay()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNamespaceBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); } if (!getWorkflowIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workflowId_); } if (workflowType_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getWorkflowType()); } if (taskQueue_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTaskQueue()); } if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getInput()); } if (workflowExecutionTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getWorkflowExecutionTimeout()); } if (workflowRunTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getWorkflowRunTimeout()); } if (workflowTaskTimeout_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getWorkflowTaskTimeout()); } if (!getIdentityBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, identity_); } if (!getRequestIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, requestId_); } if (workflowIdReusePolicy_ != io.temporal.api.enums.v1.WorkflowIdReusePolicy.WORKFLOW_ID_REUSE_POLICY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, workflowIdReusePolicy_); } if (retryPolicy_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getRetryPolicy()); } if (!getCronScheduleBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, cronSchedule_); } if (memo_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, getMemo()); } if (searchAttributes_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getSearchAttributes()); } if (header_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getHeader()); } if (requestEagerExecution_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(17, requestEagerExecution_); } if (continuedFailure_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getContinuedFailure()); } if (lastCompletionResult_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, getLastCompletionResult()); } if (workflowStartDelay_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getWorkflowStartDelay()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)) { return super.equals(obj); } io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest other = (io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) obj; if (!getNamespace() .equals(other.getNamespace())) return false; if (!getWorkflowId() .equals(other.getWorkflowId())) return false; if (hasWorkflowType() != other.hasWorkflowType()) return false; if (hasWorkflowType()) { if (!getWorkflowType() .equals(other.getWorkflowType())) return false; } if (hasTaskQueue() != other.hasTaskQueue()) return false; if (hasTaskQueue()) { if (!getTaskQueue() .equals(other.getTaskQueue())) return false; } if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (hasWorkflowExecutionTimeout() != other.hasWorkflowExecutionTimeout()) return false; if (hasWorkflowExecutionTimeout()) { if (!getWorkflowExecutionTimeout() .equals(other.getWorkflowExecutionTimeout())) return false; } if (hasWorkflowRunTimeout() != other.hasWorkflowRunTimeout()) return false; if (hasWorkflowRunTimeout()) { if (!getWorkflowRunTimeout() .equals(other.getWorkflowRunTimeout())) return false; } if (hasWorkflowTaskTimeout() != other.hasWorkflowTaskTimeout()) return false; if (hasWorkflowTaskTimeout()) { if (!getWorkflowTaskTimeout() .equals(other.getWorkflowTaskTimeout())) return false; } if (!getIdentity() .equals(other.getIdentity())) return false; if (!getRequestId() .equals(other.getRequestId())) return false; if (workflowIdReusePolicy_ != other.workflowIdReusePolicy_) return false; if (hasRetryPolicy() != other.hasRetryPolicy()) return false; if (hasRetryPolicy()) { if (!getRetryPolicy() .equals(other.getRetryPolicy())) return false; } if (!getCronSchedule() .equals(other.getCronSchedule())) return false; if (hasMemo() != other.hasMemo()) return false; if (hasMemo()) { if (!getMemo() .equals(other.getMemo())) return false; } if (hasSearchAttributes() != other.hasSearchAttributes()) return false; if (hasSearchAttributes()) { if (!getSearchAttributes() .equals(other.getSearchAttributes())) return false; } if (hasHeader() != other.hasHeader()) return false; if (hasHeader()) { if (!getHeader() .equals(other.getHeader())) return false; } if (getRequestEagerExecution() != other.getRequestEagerExecution()) return false; if (hasContinuedFailure() != other.hasContinuedFailure()) return false; if (hasContinuedFailure()) { if (!getContinuedFailure() .equals(other.getContinuedFailure())) return false; } if (hasLastCompletionResult() != other.hasLastCompletionResult()) return false; if (hasLastCompletionResult()) { if (!getLastCompletionResult() .equals(other.getLastCompletionResult())) return false; } if (hasWorkflowStartDelay() != other.hasWorkflowStartDelay()) return false; if (hasWorkflowStartDelay()) { if (!getWorkflowStartDelay() .equals(other.getWorkflowStartDelay())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; hash = (53 * hash) + getNamespace().hashCode(); hash = (37 * hash) + WORKFLOW_ID_FIELD_NUMBER; hash = (53 * hash) + getWorkflowId().hashCode(); if (hasWorkflowType()) { hash = (37 * hash) + WORKFLOW_TYPE_FIELD_NUMBER; hash = (53 * hash) + getWorkflowType().hashCode(); } if (hasTaskQueue()) { hash = (37 * hash) + TASK_QUEUE_FIELD_NUMBER; hash = (53 * hash) + getTaskQueue().hashCode(); } if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } if (hasWorkflowExecutionTimeout()) { hash = (37 * hash) + WORKFLOW_EXECUTION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getWorkflowExecutionTimeout().hashCode(); } if (hasWorkflowRunTimeout()) { hash = (37 * hash) + WORKFLOW_RUN_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getWorkflowRunTimeout().hashCode(); } if (hasWorkflowTaskTimeout()) { hash = (37 * hash) + WORKFLOW_TASK_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getWorkflowTaskTimeout().hashCode(); } hash = (37 * hash) + IDENTITY_FIELD_NUMBER; hash = (53 * hash) + getIdentity().hashCode(); hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; hash = (53 * hash) + getRequestId().hashCode(); hash = (37 * hash) + WORKFLOW_ID_REUSE_POLICY_FIELD_NUMBER; hash = (53 * hash) + workflowIdReusePolicy_; if (hasRetryPolicy()) { hash = (37 * hash) + RETRY_POLICY_FIELD_NUMBER; hash = (53 * hash) + getRetryPolicy().hashCode(); } hash = (37 * hash) + CRON_SCHEDULE_FIELD_NUMBER; hash = (53 * hash) + getCronSchedule().hashCode(); if (hasMemo()) { hash = (37 * hash) + MEMO_FIELD_NUMBER; hash = (53 * hash) + getMemo().hashCode(); } if (hasSearchAttributes()) { hash = (37 * hash) + SEARCH_ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + getSearchAttributes().hashCode(); } if (hasHeader()) { hash = (37 * hash) + HEADER_FIELD_NUMBER; hash = (53 * hash) + getHeader().hashCode(); } hash = (37 * hash) + REQUEST_EAGER_EXECUTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequestEagerExecution()); if (hasContinuedFailure()) { hash = (37 * hash) + CONTINUED_FAILURE_FIELD_NUMBER; hash = (53 * hash) + getContinuedFailure().hashCode(); } if (hasLastCompletionResult()) { hash = (37 * hash) + LAST_COMPLETION_RESULT_FIELD_NUMBER; hash = (53 * hash) + getLastCompletionResult().hashCode(); } if (hasWorkflowStartDelay()) { hash = (37 * hash) + WORKFLOW_START_DELAY_FIELD_NUMBER; hash = (53 * hash) + getWorkflowStartDelay().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code temporal.api.workflowservice.v1.StartWorkflowExecutionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.class, io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.Builder.class); } // Construct using io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); namespace_ = ""; workflowId_ = ""; if (workflowTypeBuilder_ == null) { workflowType_ = null; } else { workflowType_ = null; workflowTypeBuilder_ = null; } if (taskQueueBuilder_ == null) { taskQueue_ = null; } else { taskQueue_ = null; taskQueueBuilder_ = null; } if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } if (workflowExecutionTimeoutBuilder_ == null) { workflowExecutionTimeout_ = null; } else { workflowExecutionTimeout_ = null; workflowExecutionTimeoutBuilder_ = null; } if (workflowRunTimeoutBuilder_ == null) { workflowRunTimeout_ = null; } else { workflowRunTimeout_ = null; workflowRunTimeoutBuilder_ = null; } if (workflowTaskTimeoutBuilder_ == null) { workflowTaskTimeout_ = null; } else { workflowTaskTimeout_ = null; workflowTaskTimeoutBuilder_ = null; } identity_ = ""; requestId_ = ""; workflowIdReusePolicy_ = 0; if (retryPolicyBuilder_ == null) { retryPolicy_ = null; } else { retryPolicy_ = null; retryPolicyBuilder_ = null; } cronSchedule_ = ""; if (memoBuilder_ == null) { memo_ = null; } else { memo_ = null; memoBuilder_ = null; } if (searchAttributesBuilder_ == null) { searchAttributes_ = null; } else { searchAttributes_ = null; searchAttributesBuilder_ = null; } if (headerBuilder_ == null) { header_ = null; } else { header_ = null; headerBuilder_ = null; } requestEagerExecution_ = false; if (continuedFailureBuilder_ == null) { continuedFailure_ = null; } else { continuedFailure_ = null; continuedFailureBuilder_ = null; } if (lastCompletionResultBuilder_ == null) { lastCompletionResult_ = null; } else { lastCompletionResult_ = null; lastCompletionResultBuilder_ = null; } if (workflowStartDelayBuilder_ == null) { workflowStartDelay_ = null; } else { workflowStartDelay_ = null; workflowStartDelayBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.temporal.api.workflowservice.v1.RequestResponseProto.internal_static_temporal_api_workflowservice_v1_StartWorkflowExecutionRequest_descriptor; } @java.lang.Override public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstanceForType() { return io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.getDefaultInstance(); } @java.lang.Override public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest build() { io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest buildPartial() { io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest result = new io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest(this); result.namespace_ = namespace_; result.workflowId_ = workflowId_; if (workflowTypeBuilder_ == null) { result.workflowType_ = workflowType_; } else { result.workflowType_ = workflowTypeBuilder_.build(); } if (taskQueueBuilder_ == null) { result.taskQueue_ = taskQueue_; } else { result.taskQueue_ = taskQueueBuilder_.build(); } if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (workflowExecutionTimeoutBuilder_ == null) { result.workflowExecutionTimeout_ = workflowExecutionTimeout_; } else { result.workflowExecutionTimeout_ = workflowExecutionTimeoutBuilder_.build(); } if (workflowRunTimeoutBuilder_ == null) { result.workflowRunTimeout_ = workflowRunTimeout_; } else { result.workflowRunTimeout_ = workflowRunTimeoutBuilder_.build(); } if (workflowTaskTimeoutBuilder_ == null) { result.workflowTaskTimeout_ = workflowTaskTimeout_; } else { result.workflowTaskTimeout_ = workflowTaskTimeoutBuilder_.build(); } result.identity_ = identity_; result.requestId_ = requestId_; result.workflowIdReusePolicy_ = workflowIdReusePolicy_; if (retryPolicyBuilder_ == null) { result.retryPolicy_ = retryPolicy_; } else { result.retryPolicy_ = retryPolicyBuilder_.build(); } result.cronSchedule_ = cronSchedule_; if (memoBuilder_ == null) { result.memo_ = memo_; } else { result.memo_ = memoBuilder_.build(); } if (searchAttributesBuilder_ == null) { result.searchAttributes_ = searchAttributes_; } else { result.searchAttributes_ = searchAttributesBuilder_.build(); } if (headerBuilder_ == null) { result.header_ = header_; } else { result.header_ = headerBuilder_.build(); } result.requestEagerExecution_ = requestEagerExecution_; if (continuedFailureBuilder_ == null) { result.continuedFailure_ = continuedFailure_; } else { result.continuedFailure_ = continuedFailureBuilder_.build(); } if (lastCompletionResultBuilder_ == null) { result.lastCompletionResult_ = lastCompletionResult_; } else { result.lastCompletionResult_ = lastCompletionResultBuilder_.build(); } if (workflowStartDelayBuilder_ == null) { result.workflowStartDelay_ = workflowStartDelay_; } else { result.workflowStartDelay_ = workflowStartDelayBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) { return mergeFrom((io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest other) { if (other == io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest.getDefaultInstance()) return this; if (!other.getNamespace().isEmpty()) { namespace_ = other.namespace_; onChanged(); } if (!other.getWorkflowId().isEmpty()) { workflowId_ = other.workflowId_; onChanged(); } if (other.hasWorkflowType()) { mergeWorkflowType(other.getWorkflowType()); } if (other.hasTaskQueue()) { mergeTaskQueue(other.getTaskQueue()); } if (other.hasInput()) { mergeInput(other.getInput()); } if (other.hasWorkflowExecutionTimeout()) { mergeWorkflowExecutionTimeout(other.getWorkflowExecutionTimeout()); } if (other.hasWorkflowRunTimeout()) { mergeWorkflowRunTimeout(other.getWorkflowRunTimeout()); } if (other.hasWorkflowTaskTimeout()) { mergeWorkflowTaskTimeout(other.getWorkflowTaskTimeout()); } if (!other.getIdentity().isEmpty()) { identity_ = other.identity_; onChanged(); } if (!other.getRequestId().isEmpty()) { requestId_ = other.requestId_; onChanged(); } if (other.workflowIdReusePolicy_ != 0) { setWorkflowIdReusePolicyValue(other.getWorkflowIdReusePolicyValue()); } if (other.hasRetryPolicy()) { mergeRetryPolicy(other.getRetryPolicy()); } if (!other.getCronSchedule().isEmpty()) { cronSchedule_ = other.cronSchedule_; onChanged(); } if (other.hasMemo()) { mergeMemo(other.getMemo()); } if (other.hasSearchAttributes()) { mergeSearchAttributes(other.getSearchAttributes()); } if (other.hasHeader()) { mergeHeader(other.getHeader()); } if (other.getRequestEagerExecution() != false) { setRequestEagerExecution(other.getRequestEagerExecution()); } if (other.hasContinuedFailure()) { mergeContinuedFailure(other.getContinuedFailure()); } if (other.hasLastCompletionResult()) { mergeLastCompletionResult(other.getLastCompletionResult()); } if (other.hasWorkflowStartDelay()) { mergeWorkflowStartDelay(other.getWorkflowStartDelay()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object namespace_ = ""; /** * string namespace = 1; * @return The namespace. */ public java.lang.String getNamespace() { java.lang.Object ref = namespace_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); namespace_ = s; return s; } else { return (java.lang.String) ref; } } /** * string namespace = 1; * @return The bytes for namespace. */ public com.google.protobuf.ByteString getNamespaceBytes() { java.lang.Object ref = namespace_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); namespace_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string namespace = 1; * @param value The namespace to set. * @return This builder for chaining. */ public Builder setNamespace( java.lang.String value) { if (value == null) { throw new NullPointerException(); } namespace_ = value; onChanged(); return this; } /** * string namespace = 1; * @return This builder for chaining. */ public Builder clearNamespace() { namespace_ = getDefaultInstance().getNamespace(); onChanged(); return this; } /** * string namespace = 1; * @param value The bytes for namespace to set. * @return This builder for chaining. */ public Builder setNamespaceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); namespace_ = value; onChanged(); return this; } private java.lang.Object workflowId_ = ""; /** * string workflow_id = 2; * @return The workflowId. */ public java.lang.String getWorkflowId() { java.lang.Object ref = workflowId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); workflowId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string workflow_id = 2; * @return The bytes for workflowId. */ public com.google.protobuf.ByteString getWorkflowIdBytes() { java.lang.Object ref = workflowId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); workflowId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string workflow_id = 2; * @param value The workflowId to set. * @return This builder for chaining. */ public Builder setWorkflowId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } workflowId_ = value; onChanged(); return this; } /** * string workflow_id = 2; * @return This builder for chaining. */ public Builder clearWorkflowId() { workflowId_ = getDefaultInstance().getWorkflowId(); onChanged(); return this; } /** * string workflow_id = 2; * @param value The bytes for workflowId to set. * @return This builder for chaining. */ public Builder setWorkflowIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); workflowId_ = value; onChanged(); return this; } private io.temporal.api.common.v1.WorkflowType workflowType_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> workflowTypeBuilder_; /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return Whether the workflowType field is set. */ public boolean hasWorkflowType() { return workflowTypeBuilder_ != null || workflowType_ != null; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; * @return The workflowType. */ public io.temporal.api.common.v1.WorkflowType getWorkflowType() { if (workflowTypeBuilder_ == null) { return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_; } else { return workflowTypeBuilder_.getMessage(); } } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder setWorkflowType(io.temporal.api.common.v1.WorkflowType value) { if (workflowTypeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowType_ = value; onChanged(); } else { workflowTypeBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder setWorkflowType( io.temporal.api.common.v1.WorkflowType.Builder builderForValue) { if (workflowTypeBuilder_ == null) { workflowType_ = builderForValue.build(); onChanged(); } else { workflowTypeBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder mergeWorkflowType(io.temporal.api.common.v1.WorkflowType value) { if (workflowTypeBuilder_ == null) { if (workflowType_ != null) { workflowType_ = io.temporal.api.common.v1.WorkflowType.newBuilder(workflowType_).mergeFrom(value).buildPartial(); } else { workflowType_ = value; } onChanged(); } else { workflowTypeBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public Builder clearWorkflowType() { if (workflowTypeBuilder_ == null) { workflowType_ = null; onChanged(); } else { workflowType_ = null; workflowTypeBuilder_ = null; } return this; } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowType.Builder getWorkflowTypeBuilder() { onChanged(); return getWorkflowTypeFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ public io.temporal.api.common.v1.WorkflowTypeOrBuilder getWorkflowTypeOrBuilder() { if (workflowTypeBuilder_ != null) { return workflowTypeBuilder_.getMessageOrBuilder(); } else { return workflowType_ == null ? io.temporal.api.common.v1.WorkflowType.getDefaultInstance() : workflowType_; } } /** * .temporal.api.common.v1.WorkflowType workflow_type = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder> getWorkflowTypeFieldBuilder() { if (workflowTypeBuilder_ == null) { workflowTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.WorkflowType, io.temporal.api.common.v1.WorkflowType.Builder, io.temporal.api.common.v1.WorkflowTypeOrBuilder>( getWorkflowType(), getParentForChildren(), isClean()); workflowType_ = null; } return workflowTypeBuilder_; } private io.temporal.api.taskqueue.v1.TaskQueue taskQueue_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> taskQueueBuilder_; /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; * @return Whether the taskQueue field is set. */ public boolean hasTaskQueue() { return taskQueueBuilder_ != null || taskQueue_ != null; } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; * @return The taskQueue. */ public io.temporal.api.taskqueue.v1.TaskQueue getTaskQueue() { if (taskQueueBuilder_ == null) { return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_; } else { return taskQueueBuilder_.getMessage(); } } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public Builder setTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (taskQueueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } taskQueue_ = value; onChanged(); } else { taskQueueBuilder_.setMessage(value); } return this; } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public Builder setTaskQueue( io.temporal.api.taskqueue.v1.TaskQueue.Builder builderForValue) { if (taskQueueBuilder_ == null) { taskQueue_ = builderForValue.build(); onChanged(); } else { taskQueueBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public Builder mergeTaskQueue(io.temporal.api.taskqueue.v1.TaskQueue value) { if (taskQueueBuilder_ == null) { if (taskQueue_ != null) { taskQueue_ = io.temporal.api.taskqueue.v1.TaskQueue.newBuilder(taskQueue_).mergeFrom(value).buildPartial(); } else { taskQueue_ = value; } onChanged(); } else { taskQueueBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public Builder clearTaskQueue() { if (taskQueueBuilder_ == null) { taskQueue_ = null; onChanged(); } else { taskQueue_ = null; taskQueueBuilder_ = null; } return this; } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public io.temporal.api.taskqueue.v1.TaskQueue.Builder getTaskQueueBuilder() { onChanged(); return getTaskQueueFieldBuilder().getBuilder(); } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ public io.temporal.api.taskqueue.v1.TaskQueueOrBuilder getTaskQueueOrBuilder() { if (taskQueueBuilder_ != null) { return taskQueueBuilder_.getMessageOrBuilder(); } else { return taskQueue_ == null ? io.temporal.api.taskqueue.v1.TaskQueue.getDefaultInstance() : taskQueue_; } } /** * .temporal.api.taskqueue.v1.TaskQueue task_queue = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder> getTaskQueueFieldBuilder() { if (taskQueueBuilder_ == null) { taskQueueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.taskqueue.v1.TaskQueue, io.temporal.api.taskqueue.v1.TaskQueue.Builder, io.temporal.api.taskqueue.v1.TaskQueueOrBuilder>( getTaskQueue(), getParentForChildren(), isClean()); taskQueue_ = null; } return taskQueueBuilder_; } private io.temporal.api.common.v1.Payloads input_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> inputBuilder_; /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; * @return The input. */ public io.temporal.api.common.v1.Payloads getInput() { if (inputBuilder_ == null) { return input_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public Builder setInput(io.temporal.api.common.v1.Payloads value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public Builder setInput( io.temporal.api.common.v1.Payloads.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public Builder mergeInput(io.temporal.api.common.v1.Payloads value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = io.temporal.api.common.v1.Payloads.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public io.temporal.api.common.v1.Payloads.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ public io.temporal.api.common.v1.PayloadsOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : input_; } } /** *
     * Serialized arguments to the workflow. These are passed as arguments to the workflow function.
     * 
* * .temporal.api.common.v1.Payloads input = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private com.google.protobuf.Duration workflowExecutionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowExecutionTimeoutBuilder_; /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; * @return Whether the workflowExecutionTimeout field is set. */ public boolean hasWorkflowExecutionTimeout() { return workflowExecutionTimeoutBuilder_ != null || workflowExecutionTimeout_ != null; } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; * @return The workflowExecutionTimeout. */ public com.google.protobuf.Duration getWorkflowExecutionTimeout() { if (workflowExecutionTimeoutBuilder_ == null) { return workflowExecutionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionTimeout_; } else { return workflowExecutionTimeoutBuilder_.getMessage(); } } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowExecutionTimeout(com.google.protobuf.Duration value) { if (workflowExecutionTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowExecutionTimeout_ = value; onChanged(); } else { workflowExecutionTimeoutBuilder_.setMessage(value); } return this; } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowExecutionTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (workflowExecutionTimeoutBuilder_ == null) { workflowExecutionTimeout_ = builderForValue.build(); onChanged(); } else { workflowExecutionTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public Builder mergeWorkflowExecutionTimeout(com.google.protobuf.Duration value) { if (workflowExecutionTimeoutBuilder_ == null) { if (workflowExecutionTimeout_ != null) { workflowExecutionTimeout_ = com.google.protobuf.Duration.newBuilder(workflowExecutionTimeout_).mergeFrom(value).buildPartial(); } else { workflowExecutionTimeout_ = value; } onChanged(); } else { workflowExecutionTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public Builder clearWorkflowExecutionTimeout() { if (workflowExecutionTimeoutBuilder_ == null) { workflowExecutionTimeout_ = null; onChanged(); } else { workflowExecutionTimeout_ = null; workflowExecutionTimeoutBuilder_ = null; } return this; } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getWorkflowExecutionTimeoutBuilder() { onChanged(); return getWorkflowExecutionTimeoutFieldBuilder().getBuilder(); } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowExecutionTimeoutOrBuilder() { if (workflowExecutionTimeoutBuilder_ != null) { return workflowExecutionTimeoutBuilder_.getMessageOrBuilder(); } else { return workflowExecutionTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowExecutionTimeout_; } } /** *
     * Total workflow execution timeout including retries and continue as new.
     * 
* * .google.protobuf.Duration workflow_execution_timeout = 6 [(.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWorkflowExecutionTimeoutFieldBuilder() { if (workflowExecutionTimeoutBuilder_ == null) { workflowExecutionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWorkflowExecutionTimeout(), getParentForChildren(), isClean()); workflowExecutionTimeout_ = null; } return workflowExecutionTimeoutBuilder_; } private com.google.protobuf.Duration workflowRunTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowRunTimeoutBuilder_; /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; * @return Whether the workflowRunTimeout field is set. */ public boolean hasWorkflowRunTimeout() { return workflowRunTimeoutBuilder_ != null || workflowRunTimeout_ != null; } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; * @return The workflowRunTimeout. */ public com.google.protobuf.Duration getWorkflowRunTimeout() { if (workflowRunTimeoutBuilder_ == null) { return workflowRunTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowRunTimeout_; } else { return workflowRunTimeoutBuilder_.getMessage(); } } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowRunTimeout(com.google.protobuf.Duration value) { if (workflowRunTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowRunTimeout_ = value; onChanged(); } else { workflowRunTimeoutBuilder_.setMessage(value); } return this; } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowRunTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (workflowRunTimeoutBuilder_ == null) { workflowRunTimeout_ = builderForValue.build(); onChanged(); } else { workflowRunTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public Builder mergeWorkflowRunTimeout(com.google.protobuf.Duration value) { if (workflowRunTimeoutBuilder_ == null) { if (workflowRunTimeout_ != null) { workflowRunTimeout_ = com.google.protobuf.Duration.newBuilder(workflowRunTimeout_).mergeFrom(value).buildPartial(); } else { workflowRunTimeout_ = value; } onChanged(); } else { workflowRunTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public Builder clearWorkflowRunTimeout() { if (workflowRunTimeoutBuilder_ == null) { workflowRunTimeout_ = null; onChanged(); } else { workflowRunTimeout_ = null; workflowRunTimeoutBuilder_ = null; } return this; } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getWorkflowRunTimeoutBuilder() { onChanged(); return getWorkflowRunTimeoutFieldBuilder().getBuilder(); } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowRunTimeoutOrBuilder() { if (workflowRunTimeoutBuilder_ != null) { return workflowRunTimeoutBuilder_.getMessageOrBuilder(); } else { return workflowRunTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowRunTimeout_; } } /** *
     * Timeout of a single workflow run.
     * 
* * .google.protobuf.Duration workflow_run_timeout = 7 [(.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWorkflowRunTimeoutFieldBuilder() { if (workflowRunTimeoutBuilder_ == null) { workflowRunTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWorkflowRunTimeout(), getParentForChildren(), isClean()); workflowRunTimeout_ = null; } return workflowRunTimeoutBuilder_; } private com.google.protobuf.Duration workflowTaskTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowTaskTimeoutBuilder_; /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; * @return Whether the workflowTaskTimeout field is set. */ public boolean hasWorkflowTaskTimeout() { return workflowTaskTimeoutBuilder_ != null || workflowTaskTimeout_ != null; } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; * @return The workflowTaskTimeout. */ public com.google.protobuf.Duration getWorkflowTaskTimeout() { if (workflowTaskTimeoutBuilder_ == null) { return workflowTaskTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowTaskTimeout_; } else { return workflowTaskTimeoutBuilder_.getMessage(); } } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowTaskTimeout(com.google.protobuf.Duration value) { if (workflowTaskTimeoutBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowTaskTimeout_ = value; onChanged(); } else { workflowTaskTimeoutBuilder_.setMessage(value); } return this; } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowTaskTimeout( com.google.protobuf.Duration.Builder builderForValue) { if (workflowTaskTimeoutBuilder_ == null) { workflowTaskTimeout_ = builderForValue.build(); onChanged(); } else { workflowTaskTimeoutBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public Builder mergeWorkflowTaskTimeout(com.google.protobuf.Duration value) { if (workflowTaskTimeoutBuilder_ == null) { if (workflowTaskTimeout_ != null) { workflowTaskTimeout_ = com.google.protobuf.Duration.newBuilder(workflowTaskTimeout_).mergeFrom(value).buildPartial(); } else { workflowTaskTimeout_ = value; } onChanged(); } else { workflowTaskTimeoutBuilder_.mergeFrom(value); } return this; } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public Builder clearWorkflowTaskTimeout() { if (workflowTaskTimeoutBuilder_ == null) { workflowTaskTimeout_ = null; onChanged(); } else { workflowTaskTimeout_ = null; workflowTaskTimeoutBuilder_ = null; } return this; } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getWorkflowTaskTimeoutBuilder() { onChanged(); return getWorkflowTaskTimeoutFieldBuilder().getBuilder(); } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowTaskTimeoutOrBuilder() { if (workflowTaskTimeoutBuilder_ != null) { return workflowTaskTimeoutBuilder_.getMessageOrBuilder(); } else { return workflowTaskTimeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowTaskTimeout_; } } /** *
     * Timeout of a single workflow task.
     * 
* * .google.protobuf.Duration workflow_task_timeout = 8 [(.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWorkflowTaskTimeoutFieldBuilder() { if (workflowTaskTimeoutBuilder_ == null) { workflowTaskTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWorkflowTaskTimeout(), getParentForChildren(), isClean()); workflowTaskTimeout_ = null; } return workflowTaskTimeoutBuilder_; } private java.lang.Object identity_ = ""; /** *
     * The identity of the client who initiated this request
     * 
* * string identity = 9; * @return The identity. */ public java.lang.String getIdentity() { java.lang.Object ref = identity_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); identity_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * The identity of the client who initiated this request
     * 
* * string identity = 9; * @return The bytes for identity. */ public com.google.protobuf.ByteString getIdentityBytes() { java.lang.Object ref = identity_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); identity_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * The identity of the client who initiated this request
     * 
* * string identity = 9; * @param value The identity to set. * @return This builder for chaining. */ public Builder setIdentity( java.lang.String value) { if (value == null) { throw new NullPointerException(); } identity_ = value; onChanged(); return this; } /** *
     * The identity of the client who initiated this request
     * 
* * string identity = 9; * @return This builder for chaining. */ public Builder clearIdentity() { identity_ = getDefaultInstance().getIdentity(); onChanged(); return this; } /** *
     * The identity of the client who initiated this request
     * 
* * string identity = 9; * @param value The bytes for identity to set. * @return This builder for chaining. */ public Builder setIdentityBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); identity_ = value; onChanged(); return this; } private java.lang.Object requestId_ = ""; /** *
     * A unique identifier for this start request. Typically UUIDv4.
     * 
* * string request_id = 10; * @return The requestId. */ public java.lang.String getRequestId() { java.lang.Object ref = requestId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); requestId_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * A unique identifier for this start request. Typically UUIDv4.
     * 
* * string request_id = 10; * @return The bytes for requestId. */ public com.google.protobuf.ByteString getRequestIdBytes() { java.lang.Object ref = requestId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * A unique identifier for this start request. Typically UUIDv4.
     * 
* * string request_id = 10; * @param value The requestId to set. * @return This builder for chaining. */ public Builder setRequestId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } requestId_ = value; onChanged(); return this; } /** *
     * A unique identifier for this start request. Typically UUIDv4.
     * 
* * string request_id = 10; * @return This builder for chaining. */ public Builder clearRequestId() { requestId_ = getDefaultInstance().getRequestId(); onChanged(); return this; } /** *
     * A unique identifier for this start request. Typically UUIDv4.
     * 
* * string request_id = 10; * @param value The bytes for requestId to set. * @return This builder for chaining. */ public Builder setRequestIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); requestId_ = value; onChanged(); return this; } private int workflowIdReusePolicy_ = 0; /** *
     * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
     * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @return The enum numeric value on the wire for workflowIdReusePolicy. */ public int getWorkflowIdReusePolicyValue() { return workflowIdReusePolicy_; } /** *
     * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
     * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @param value The enum numeric value on the wire for workflowIdReusePolicy to set. * @return This builder for chaining. */ public Builder setWorkflowIdReusePolicyValue(int value) { workflowIdReusePolicy_ = value; onChanged(); return this; } /** *
     * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
     * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @return The workflowIdReusePolicy. */ public io.temporal.api.enums.v1.WorkflowIdReusePolicy getWorkflowIdReusePolicy() { @SuppressWarnings("deprecation") io.temporal.api.enums.v1.WorkflowIdReusePolicy result = io.temporal.api.enums.v1.WorkflowIdReusePolicy.valueOf(workflowIdReusePolicy_); return result == null ? io.temporal.api.enums.v1.WorkflowIdReusePolicy.UNRECOGNIZED : result; } /** *
     * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
     * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @param value The workflowIdReusePolicy to set. * @return This builder for chaining. */ public Builder setWorkflowIdReusePolicy(io.temporal.api.enums.v1.WorkflowIdReusePolicy value) { if (value == null) { throw new NullPointerException(); } workflowIdReusePolicy_ = value.getNumber(); onChanged(); return this; } /** *
     * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
     * 
* * .temporal.api.enums.v1.WorkflowIdReusePolicy workflow_id_reuse_policy = 11; * @return This builder for chaining. */ public Builder clearWorkflowIdReusePolicy() { workflowIdReusePolicy_ = 0; onChanged(); return this; } private io.temporal.api.common.v1.RetryPolicy retryPolicy_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder> retryPolicyBuilder_; /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; * @return The retryPolicy. */ public io.temporal.api.common.v1.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } else { return retryPolicyBuilder_.getMessage(); } } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public Builder setRetryPolicy(io.temporal.api.common.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } retryPolicy_ = value; onChanged(); } else { retryPolicyBuilder_.setMessage(value); } return this; } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public Builder setRetryPolicy( io.temporal.api.common.v1.RetryPolicy.Builder builderForValue) { if (retryPolicyBuilder_ == null) { retryPolicy_ = builderForValue.build(); onChanged(); } else { retryPolicyBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public Builder mergeRetryPolicy(io.temporal.api.common.v1.RetryPolicy value) { if (retryPolicyBuilder_ == null) { if (retryPolicy_ != null) { retryPolicy_ = io.temporal.api.common.v1.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial(); } else { retryPolicy_ = value; } onChanged(); } else { retryPolicyBuilder_.mergeFrom(value); } return this; } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public Builder clearRetryPolicy() { if (retryPolicyBuilder_ == null) { retryPolicy_ = null; onChanged(); } else { retryPolicy_ = null; retryPolicyBuilder_ = null; } return this; } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public io.temporal.api.common.v1.RetryPolicy.Builder getRetryPolicyBuilder() { onChanged(); return getRetryPolicyFieldBuilder().getBuilder(); } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ public io.temporal.api.common.v1.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { if (retryPolicyBuilder_ != null) { return retryPolicyBuilder_.getMessageOrBuilder(); } else { return retryPolicy_ == null ? io.temporal.api.common.v1.RetryPolicy.getDefaultInstance() : retryPolicy_; } } /** *
     * The retry policy for the workflow. Will never exceed `workflow_execution_timeout`.
     * 
* * .temporal.api.common.v1.RetryPolicy retry_policy = 12; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder> getRetryPolicyFieldBuilder() { if (retryPolicyBuilder_ == null) { retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.RetryPolicy, io.temporal.api.common.v1.RetryPolicy.Builder, io.temporal.api.common.v1.RetryPolicyOrBuilder>( getRetryPolicy(), getParentForChildren(), isClean()); retryPolicy_ = null; } return retryPolicyBuilder_; } private java.lang.Object cronSchedule_ = ""; /** *
     * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
     * 
* * string cron_schedule = 13; * @return The cronSchedule. */ public java.lang.String getCronSchedule() { java.lang.Object ref = cronSchedule_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); cronSchedule_ = s; return s; } else { return (java.lang.String) ref; } } /** *
     * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
     * 
* * string cron_schedule = 13; * @return The bytes for cronSchedule. */ public com.google.protobuf.ByteString getCronScheduleBytes() { java.lang.Object ref = cronSchedule_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); cronSchedule_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
     * 
* * string cron_schedule = 13; * @param value The cronSchedule to set. * @return This builder for chaining. */ public Builder setCronSchedule( java.lang.String value) { if (value == null) { throw new NullPointerException(); } cronSchedule_ = value; onChanged(); return this; } /** *
     * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
     * 
* * string cron_schedule = 13; * @return This builder for chaining. */ public Builder clearCronSchedule() { cronSchedule_ = getDefaultInstance().getCronSchedule(); onChanged(); return this; } /** *
     * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
     * 
* * string cron_schedule = 13; * @param value The bytes for cronSchedule to set. * @return This builder for chaining. */ public Builder setCronScheduleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); cronSchedule_ = value; onChanged(); return this; } private io.temporal.api.common.v1.Memo memo_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder> memoBuilder_; /** * .temporal.api.common.v1.Memo memo = 14; * @return Whether the memo field is set. */ public boolean hasMemo() { return memoBuilder_ != null || memo_ != null; } /** * .temporal.api.common.v1.Memo memo = 14; * @return The memo. */ public io.temporal.api.common.v1.Memo getMemo() { if (memoBuilder_ == null) { return memo_ == null ? io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_; } else { return memoBuilder_.getMessage(); } } /** * .temporal.api.common.v1.Memo memo = 14; */ public Builder setMemo(io.temporal.api.common.v1.Memo value) { if (memoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } memo_ = value; onChanged(); } else { memoBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.Memo memo = 14; */ public Builder setMemo( io.temporal.api.common.v1.Memo.Builder builderForValue) { if (memoBuilder_ == null) { memo_ = builderForValue.build(); onChanged(); } else { memoBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.Memo memo = 14; */ public Builder mergeMemo(io.temporal.api.common.v1.Memo value) { if (memoBuilder_ == null) { if (memo_ != null) { memo_ = io.temporal.api.common.v1.Memo.newBuilder(memo_).mergeFrom(value).buildPartial(); } else { memo_ = value; } onChanged(); } else { memoBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.Memo memo = 14; */ public Builder clearMemo() { if (memoBuilder_ == null) { memo_ = null; onChanged(); } else { memo_ = null; memoBuilder_ = null; } return this; } /** * .temporal.api.common.v1.Memo memo = 14; */ public io.temporal.api.common.v1.Memo.Builder getMemoBuilder() { onChanged(); return getMemoFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.Memo memo = 14; */ public io.temporal.api.common.v1.MemoOrBuilder getMemoOrBuilder() { if (memoBuilder_ != null) { return memoBuilder_.getMessageOrBuilder(); } else { return memo_ == null ? io.temporal.api.common.v1.Memo.getDefaultInstance() : memo_; } } /** * .temporal.api.common.v1.Memo memo = 14; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder> getMemoFieldBuilder() { if (memoBuilder_ == null) { memoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Memo, io.temporal.api.common.v1.Memo.Builder, io.temporal.api.common.v1.MemoOrBuilder>( getMemo(), getParentForChildren(), isClean()); memo_ = null; } return memoBuilder_; } private io.temporal.api.common.v1.SearchAttributes searchAttributes_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder> searchAttributesBuilder_; /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; * @return Whether the searchAttributes field is set. */ public boolean hasSearchAttributes() { return searchAttributesBuilder_ != null || searchAttributes_ != null; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; * @return The searchAttributes. */ public io.temporal.api.common.v1.SearchAttributes getSearchAttributes() { if (searchAttributesBuilder_ == null) { return searchAttributes_ == null ? io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_; } else { return searchAttributesBuilder_.getMessage(); } } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public Builder setSearchAttributes(io.temporal.api.common.v1.SearchAttributes value) { if (searchAttributesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } searchAttributes_ = value; onChanged(); } else { searchAttributesBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public Builder setSearchAttributes( io.temporal.api.common.v1.SearchAttributes.Builder builderForValue) { if (searchAttributesBuilder_ == null) { searchAttributes_ = builderForValue.build(); onChanged(); } else { searchAttributesBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public Builder mergeSearchAttributes(io.temporal.api.common.v1.SearchAttributes value) { if (searchAttributesBuilder_ == null) { if (searchAttributes_ != null) { searchAttributes_ = io.temporal.api.common.v1.SearchAttributes.newBuilder(searchAttributes_).mergeFrom(value).buildPartial(); } else { searchAttributes_ = value; } onChanged(); } else { searchAttributesBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public Builder clearSearchAttributes() { if (searchAttributesBuilder_ == null) { searchAttributes_ = null; onChanged(); } else { searchAttributes_ = null; searchAttributesBuilder_ = null; } return this; } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public io.temporal.api.common.v1.SearchAttributes.Builder getSearchAttributesBuilder() { onChanged(); return getSearchAttributesFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ public io.temporal.api.common.v1.SearchAttributesOrBuilder getSearchAttributesOrBuilder() { if (searchAttributesBuilder_ != null) { return searchAttributesBuilder_.getMessageOrBuilder(); } else { return searchAttributes_ == null ? io.temporal.api.common.v1.SearchAttributes.getDefaultInstance() : searchAttributes_; } } /** * .temporal.api.common.v1.SearchAttributes search_attributes = 15; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder> getSearchAttributesFieldBuilder() { if (searchAttributesBuilder_ == null) { searchAttributesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.SearchAttributes, io.temporal.api.common.v1.SearchAttributes.Builder, io.temporal.api.common.v1.SearchAttributesOrBuilder>( getSearchAttributes(), getParentForChildren(), isClean()); searchAttributes_ = null; } return searchAttributesBuilder_; } private io.temporal.api.common.v1.Header header_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> headerBuilder_; /** * .temporal.api.common.v1.Header header = 16; * @return Whether the header field is set. */ public boolean hasHeader() { return headerBuilder_ != null || header_ != null; } /** * .temporal.api.common.v1.Header header = 16; * @return The header. */ public io.temporal.api.common.v1.Header getHeader() { if (headerBuilder_ == null) { return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_; } else { return headerBuilder_.getMessage(); } } /** * .temporal.api.common.v1.Header header = 16; */ public Builder setHeader(io.temporal.api.common.v1.Header value) { if (headerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } header_ = value; onChanged(); } else { headerBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.Header header = 16; */ public Builder setHeader( io.temporal.api.common.v1.Header.Builder builderForValue) { if (headerBuilder_ == null) { header_ = builderForValue.build(); onChanged(); } else { headerBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.Header header = 16; */ public Builder mergeHeader(io.temporal.api.common.v1.Header value) { if (headerBuilder_ == null) { if (header_ != null) { header_ = io.temporal.api.common.v1.Header.newBuilder(header_).mergeFrom(value).buildPartial(); } else { header_ = value; } onChanged(); } else { headerBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.Header header = 16; */ public Builder clearHeader() { if (headerBuilder_ == null) { header_ = null; onChanged(); } else { header_ = null; headerBuilder_ = null; } return this; } /** * .temporal.api.common.v1.Header header = 16; */ public io.temporal.api.common.v1.Header.Builder getHeaderBuilder() { onChanged(); return getHeaderFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.Header header = 16; */ public io.temporal.api.common.v1.HeaderOrBuilder getHeaderOrBuilder() { if (headerBuilder_ != null) { return headerBuilder_.getMessageOrBuilder(); } else { return header_ == null ? io.temporal.api.common.v1.Header.getDefaultInstance() : header_; } } /** * .temporal.api.common.v1.Header header = 16; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder> getHeaderFieldBuilder() { if (headerBuilder_ == null) { headerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Header, io.temporal.api.common.v1.Header.Builder, io.temporal.api.common.v1.HeaderOrBuilder>( getHeader(), getParentForChildren(), isClean()); header_ = null; } return headerBuilder_; } private boolean requestEagerExecution_ ; /** *
     * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
     * If set to `true` the caller is expected to have a worker available and capable of processing the task.
     * The returned task will be marked as started and is expected to be completed by the specified
     * `workflow_task_timeout`.
     * 
* * bool request_eager_execution = 17; * @return The requestEagerExecution. */ public boolean getRequestEagerExecution() { return requestEagerExecution_; } /** *
     * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
     * If set to `true` the caller is expected to have a worker available and capable of processing the task.
     * The returned task will be marked as started and is expected to be completed by the specified
     * `workflow_task_timeout`.
     * 
* * bool request_eager_execution = 17; * @param value The requestEagerExecution to set. * @return This builder for chaining. */ public Builder setRequestEagerExecution(boolean value) { requestEagerExecution_ = value; onChanged(); return this; } /** *
     * Request to get the first workflow task inline in the response bypassing matching service and worker polling.
     * If set to `true` the caller is expected to have a worker available and capable of processing the task.
     * The returned task will be marked as started and is expected to be completed by the specified
     * `workflow_task_timeout`.
     * 
* * bool request_eager_execution = 17; * @return This builder for chaining. */ public Builder clearRequestEagerExecution() { requestEagerExecution_ = false; onChanged(); return this; } private io.temporal.api.failure.v1.Failure continuedFailure_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> continuedFailureBuilder_; /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; * @return Whether the continuedFailure field is set. */ public boolean hasContinuedFailure() { return continuedFailureBuilder_ != null || continuedFailure_ != null; } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; * @return The continuedFailure. */ public io.temporal.api.failure.v1.Failure getContinuedFailure() { if (continuedFailureBuilder_ == null) { return continuedFailure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : continuedFailure_; } else { return continuedFailureBuilder_.getMessage(); } } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public Builder setContinuedFailure(io.temporal.api.failure.v1.Failure value) { if (continuedFailureBuilder_ == null) { if (value == null) { throw new NullPointerException(); } continuedFailure_ = value; onChanged(); } else { continuedFailureBuilder_.setMessage(value); } return this; } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public Builder setContinuedFailure( io.temporal.api.failure.v1.Failure.Builder builderForValue) { if (continuedFailureBuilder_ == null) { continuedFailure_ = builderForValue.build(); onChanged(); } else { continuedFailureBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public Builder mergeContinuedFailure(io.temporal.api.failure.v1.Failure value) { if (continuedFailureBuilder_ == null) { if (continuedFailure_ != null) { continuedFailure_ = io.temporal.api.failure.v1.Failure.newBuilder(continuedFailure_).mergeFrom(value).buildPartial(); } else { continuedFailure_ = value; } onChanged(); } else { continuedFailureBuilder_.mergeFrom(value); } return this; } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public Builder clearContinuedFailure() { if (continuedFailureBuilder_ == null) { continuedFailure_ = null; onChanged(); } else { continuedFailure_ = null; continuedFailureBuilder_ = null; } return this; } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public io.temporal.api.failure.v1.Failure.Builder getContinuedFailureBuilder() { onChanged(); return getContinuedFailureFieldBuilder().getBuilder(); } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ public io.temporal.api.failure.v1.FailureOrBuilder getContinuedFailureOrBuilder() { if (continuedFailureBuilder_ != null) { return continuedFailureBuilder_.getMessageOrBuilder(); } else { return continuedFailure_ == null ? io.temporal.api.failure.v1.Failure.getDefaultInstance() : continuedFailure_; } } /** *
     * These values will be available as ContinuedFailure and LastCompletionResult in the
     * WorkflowExecutionStarted event and through SDKs. The are currently only used by the
     * server itself (for the schedules feature) and are not intended to be exposed in
     * StartWorkflowExecution.
     * 
* * .temporal.api.failure.v1.Failure continued_failure = 18; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder> getContinuedFailureFieldBuilder() { if (continuedFailureBuilder_ == null) { continuedFailureBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.failure.v1.Failure, io.temporal.api.failure.v1.Failure.Builder, io.temporal.api.failure.v1.FailureOrBuilder>( getContinuedFailure(), getParentForChildren(), isClean()); continuedFailure_ = null; } return continuedFailureBuilder_; } private io.temporal.api.common.v1.Payloads lastCompletionResult_; private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> lastCompletionResultBuilder_; /** * .temporal.api.common.v1.Payloads last_completion_result = 19; * @return Whether the lastCompletionResult field is set. */ public boolean hasLastCompletionResult() { return lastCompletionResultBuilder_ != null || lastCompletionResult_ != null; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; * @return The lastCompletionResult. */ public io.temporal.api.common.v1.Payloads getLastCompletionResult() { if (lastCompletionResultBuilder_ == null) { return lastCompletionResult_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : lastCompletionResult_; } else { return lastCompletionResultBuilder_.getMessage(); } } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public Builder setLastCompletionResult(io.temporal.api.common.v1.Payloads value) { if (lastCompletionResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } lastCompletionResult_ = value; onChanged(); } else { lastCompletionResultBuilder_.setMessage(value); } return this; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public Builder setLastCompletionResult( io.temporal.api.common.v1.Payloads.Builder builderForValue) { if (lastCompletionResultBuilder_ == null) { lastCompletionResult_ = builderForValue.build(); onChanged(); } else { lastCompletionResultBuilder_.setMessage(builderForValue.build()); } return this; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public Builder mergeLastCompletionResult(io.temporal.api.common.v1.Payloads value) { if (lastCompletionResultBuilder_ == null) { if (lastCompletionResult_ != null) { lastCompletionResult_ = io.temporal.api.common.v1.Payloads.newBuilder(lastCompletionResult_).mergeFrom(value).buildPartial(); } else { lastCompletionResult_ = value; } onChanged(); } else { lastCompletionResultBuilder_.mergeFrom(value); } return this; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public Builder clearLastCompletionResult() { if (lastCompletionResultBuilder_ == null) { lastCompletionResult_ = null; onChanged(); } else { lastCompletionResult_ = null; lastCompletionResultBuilder_ = null; } return this; } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public io.temporal.api.common.v1.Payloads.Builder getLastCompletionResultBuilder() { onChanged(); return getLastCompletionResultFieldBuilder().getBuilder(); } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ public io.temporal.api.common.v1.PayloadsOrBuilder getLastCompletionResultOrBuilder() { if (lastCompletionResultBuilder_ != null) { return lastCompletionResultBuilder_.getMessageOrBuilder(); } else { return lastCompletionResult_ == null ? io.temporal.api.common.v1.Payloads.getDefaultInstance() : lastCompletionResult_; } } /** * .temporal.api.common.v1.Payloads last_completion_result = 19; */ private com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder> getLastCompletionResultFieldBuilder() { if (lastCompletionResultBuilder_ == null) { lastCompletionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.temporal.api.common.v1.Payloads, io.temporal.api.common.v1.Payloads.Builder, io.temporal.api.common.v1.PayloadsOrBuilder>( getLastCompletionResult(), getParentForChildren(), isClean()); lastCompletionResult_ = null; } return lastCompletionResultBuilder_; } private com.google.protobuf.Duration workflowStartDelay_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> workflowStartDelayBuilder_; /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; * @return Whether the workflowStartDelay field is set. */ public boolean hasWorkflowStartDelay() { return workflowStartDelayBuilder_ != null || workflowStartDelay_ != null; } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; * @return The workflowStartDelay. */ public com.google.protobuf.Duration getWorkflowStartDelay() { if (workflowStartDelayBuilder_ == null) { return workflowStartDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowStartDelay_; } else { return workflowStartDelayBuilder_.getMessage(); } } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowStartDelay(com.google.protobuf.Duration value) { if (workflowStartDelayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } workflowStartDelay_ = value; onChanged(); } else { workflowStartDelayBuilder_.setMessage(value); } return this; } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public Builder setWorkflowStartDelay( com.google.protobuf.Duration.Builder builderForValue) { if (workflowStartDelayBuilder_ == null) { workflowStartDelay_ = builderForValue.build(); onChanged(); } else { workflowStartDelayBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public Builder mergeWorkflowStartDelay(com.google.protobuf.Duration value) { if (workflowStartDelayBuilder_ == null) { if (workflowStartDelay_ != null) { workflowStartDelay_ = com.google.protobuf.Duration.newBuilder(workflowStartDelay_).mergeFrom(value).buildPartial(); } else { workflowStartDelay_ = value; } onChanged(); } else { workflowStartDelayBuilder_.mergeFrom(value); } return this; } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public Builder clearWorkflowStartDelay() { if (workflowStartDelayBuilder_ == null) { workflowStartDelay_ = null; onChanged(); } else { workflowStartDelay_ = null; workflowStartDelayBuilder_ = null; } return this; } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.Duration.Builder getWorkflowStartDelayBuilder() { onChanged(); return getWorkflowStartDelayFieldBuilder().getBuilder(); } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ public com.google.protobuf.DurationOrBuilder getWorkflowStartDelayOrBuilder() { if (workflowStartDelayBuilder_ != null) { return workflowStartDelayBuilder_.getMessageOrBuilder(); } else { return workflowStartDelay_ == null ? com.google.protobuf.Duration.getDefaultInstance() : workflowStartDelay_; } } /** *
     * Time to wait before dispatching the first workflow task. Cannot be used with `cron_schedule`.
     * If the workflow gets a signal before the delay, a workflow task will be dispatched and the rest
     * of the delay will be ignored.
     * 
* * .google.protobuf.Duration workflow_start_delay = 20 [(.gogoproto.stdduration) = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getWorkflowStartDelayFieldBuilder() { if (workflowStartDelayBuilder_ == null) { workflowStartDelayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getWorkflowStartDelay(), getParentForChildren(), isClean()); workflowStartDelay_ = null; } return workflowStartDelayBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) } // @@protoc_insertion_point(class_scope:temporal.api.workflowservice.v1.StartWorkflowExecutionRequest) private static final io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest(); } public static io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartWorkflowExecutionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StartWorkflowExecutionRequest(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.temporal.api.workflowservice.v1.StartWorkflowExecutionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy