Class StartWorkflowExecutionResponse.Builder

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

public static final class StartWorkflowExecutionResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder> implements StartWorkflowExecutionResponseOrBuilder
Protobuf type temporal.api.workflowservice.v1.StartWorkflowExecutionResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • setField

      public StartWorkflowExecutionResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • clearField

      public StartWorkflowExecutionResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • clearOneof

      public StartWorkflowExecutionResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • setRepeatedField

      public StartWorkflowExecutionResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • addRepeatedField

      public StartWorkflowExecutionResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • mergeFrom

      public StartWorkflowExecutionResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartWorkflowExecutionResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • mergeFrom

      public StartWorkflowExecutionResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<StartWorkflowExecutionResponse.Builder>
      Throws:
      IOException
    • getRunId

      public String getRunId()
       The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
       
      string run_id = 1;
      Specified by:
      getRunId in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
       The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
       
      string run_id = 1;
      Specified by:
      getRunIdBytes in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The bytes for runId.
    • setRunId

       The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
       
      string run_id = 1;
      Parameters:
      value - The runId to set.
      Returns:
      This builder for chaining.
    • clearRunId

       The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
       
      string run_id = 1;
      Returns:
      This builder for chaining.
    • setRunIdBytes

      public StartWorkflowExecutionResponse.Builder setRunIdBytes(com.google.protobuf.ByteString value)
       The run id of the workflow that was started - or used (via WorkflowIdConflictPolicy USE_EXISTING).
       
      string run_id = 1;
      Parameters:
      value - The bytes for runId to set.
      Returns:
      This builder for chaining.
    • getFirstExecutionRunId

      public String getFirstExecutionRunId()
       If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
       
      string first_execution_run_id = 6;
      Specified by:
      getFirstExecutionRunId in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The firstExecutionRunId.
    • getFirstExecutionRunIdBytes

      public com.google.protobuf.ByteString getFirstExecutionRunIdBytes()
       If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
       
      string first_execution_run_id = 6;
      Specified by:
      getFirstExecutionRunIdBytes in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The bytes for firstExecutionRunId.
    • setFirstExecutionRunId

      public StartWorkflowExecutionResponse.Builder setFirstExecutionRunId(String value)
       If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
       
      string first_execution_run_id = 6;
      Parameters:
      value - The firstExecutionRunId to set.
      Returns:
      This builder for chaining.
    • clearFirstExecutionRunId

      public StartWorkflowExecutionResponse.Builder clearFirstExecutionRunId()
       If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
       
      string first_execution_run_id = 6;
      Returns:
      This builder for chaining.
    • setFirstExecutionRunIdBytes

      public StartWorkflowExecutionResponse.Builder setFirstExecutionRunIdBytes(com.google.protobuf.ByteString value)
       If the workflow was started as a result of a de-dupe, this field will contain the run id of the first execution in the chain.
       
      string first_execution_run_id = 6;
      Parameters:
      value - The bytes for firstExecutionRunId to set.
      Returns:
      This builder for chaining.
    • getStarted

      public boolean getStarted()
       If true, a new workflow was started.
       
      bool started = 3;
      Specified by:
      getStarted in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The started.
    • setStarted

      public StartWorkflowExecutionResponse.Builder setStarted(boolean value)
       If true, a new workflow was started.
       
      bool started = 3;
      Parameters:
      value - The started to set.
      Returns:
      This builder for chaining.
    • clearStarted

       If true, a new workflow was started.
       
      bool started = 3;
      Returns:
      This builder for chaining.
    • getStatusValue

      public int getStatusValue()
       Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
       unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
       
      .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
      Specified by:
      getStatusValue in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The enum numeric value on the wire for status.
    • setStatusValue

      public StartWorkflowExecutionResponse.Builder setStatusValue(int value)
       Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
       unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
       
      .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
      Parameters:
      value - The enum numeric value on the wire for status to set.
      Returns:
      This builder for chaining.
    • getStatus

      public WorkflowExecutionStatus getStatus()
       Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
       unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
       
      .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
      Specified by:
      getStatus in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The status.
    • setStatus

       Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
       unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
       
      .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

       Current execution status of the workflow. Typically remains WORKFLOW_EXECUTION_STATUS_RUNNING
       unless a de-dupe occurs or in specific scenarios handled within the ExecuteMultiOperation (refer to its docs).
       
      .temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
      Returns:
      This builder for chaining.
    • hasEagerWorkflowTask

      public boolean hasEagerWorkflowTask()
       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
      Specified by:
      hasEagerWorkflowTask in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      Whether the eagerWorkflowTask field is set.
    • getEagerWorkflowTask

      public PollWorkflowTaskQueueResponse getEagerWorkflowTask()
       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
      Specified by:
      getEagerWorkflowTask in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The eagerWorkflowTask.
    • setEagerWorkflowTask

       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
    • setEagerWorkflowTask

       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
    • mergeEagerWorkflowTask

       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
    • clearEagerWorkflowTask

      public StartWorkflowExecutionResponse.Builder clearEagerWorkflowTask()
       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
    • getEagerWorkflowTaskBuilder

      public PollWorkflowTaskQueueResponse.Builder getEagerWorkflowTaskBuilder()
       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
    • getEagerWorkflowTaskOrBuilder

      public PollWorkflowTaskQueueResponseOrBuilder getEagerWorkflowTaskOrBuilder()
       When `request_eager_execution` is set on the `StartWorkflowExecutionRequest`, the server - if supported - will
       return the first workflow task to be eagerly executed.
       The caller is expected to have a worker available to process the task.
       
      .temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse eager_workflow_task = 2;
      Specified by:
      getEagerWorkflowTaskOrBuilder in interface StartWorkflowExecutionResponseOrBuilder
    • hasLink

      public boolean hasLink()
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
      Specified by:
      hasLink in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      Whether the link field is set.
    • getLink

      public Link getLink()
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
      Specified by:
      getLink in interface StartWorkflowExecutionResponseOrBuilder
      Returns:
      The link.
    • setLink

       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
    • setLink

      public StartWorkflowExecutionResponse.Builder setLink(Link.Builder builderForValue)
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
    • mergeLink

      public StartWorkflowExecutionResponse.Builder mergeLink(Link value)
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
    • clearLink

       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
    • getLinkBuilder

      public Link.Builder getLinkBuilder()
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
    • getLinkOrBuilder

      public LinkOrBuilder getLinkOrBuilder()
       Link to the workflow event.
       
      .temporal.api.common.v1.Link link = 4;
      Specified by:
      getLinkOrBuilder in interface StartWorkflowExecutionResponseOrBuilder
    • setUnknownFields

      public final StartWorkflowExecutionResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
    • mergeUnknownFields

      public final StartWorkflowExecutionResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>