Class StartWorkflowExecutionResponse.Builder

    • Method Detail

      • 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>
      • 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

        public StartWorkflowExecutionResponse 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
      • setRepeatedField

        public StartWorkflowExecutionResponse.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                       int index,
                                                                       java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StartWorkflowExecutionResponse.Builder>
      • 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 java.io.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:
        java.io.IOException
      • getRunId

        public java.lang.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

        public StartWorkflowExecutionResponse.Builder setRunId​(java.lang.String value)
         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

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

        public StartWorkflowExecutionResponse.Builder setStatus​(WorkflowExecutionStatus 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 status to set.
        Returns:
        This builder for chaining.
      • clearStatus

        public StartWorkflowExecutionResponse.Builder 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

        public StartWorkflowExecutionResponse.Builder setEagerWorkflowTask​(PollWorkflowTaskQueueResponse value)
         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

        public StartWorkflowExecutionResponse.Builder setEagerWorkflowTask​(PollWorkflowTaskQueueResponse.Builder builderForValue)
         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

        public StartWorkflowExecutionResponse.Builder mergeEagerWorkflowTask​(PollWorkflowTaskQueueResponse value)
         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
      • getLinkBuilder

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