Class PollWorkflowExecutionUpdateResponse.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<PollWorkflowExecutionUpdateResponse.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<PollWorkflowExecutionUpdateResponse.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public PollWorkflowExecutionUpdateResponse.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<PollWorkflowExecutionUpdateResponse.Builder>
        Throws:
        java.io.IOException
      • hasOutcome

        public boolean hasOutcome()
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
        Specified by:
        hasOutcome in interface PollWorkflowExecutionUpdateResponseOrBuilder
        Returns:
        Whether the outcome field is set.
      • getOutcome

        public Outcome getOutcome()
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
        Specified by:
        getOutcome in interface PollWorkflowExecutionUpdateResponseOrBuilder
        Returns:
        The outcome.
      • setOutcome

        public PollWorkflowExecutionUpdateResponse.Builder setOutcome​(Outcome value)
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
      • setOutcome

        public PollWorkflowExecutionUpdateResponse.Builder setOutcome​(Outcome.Builder builderForValue)
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
      • mergeOutcome

        public PollWorkflowExecutionUpdateResponse.Builder mergeOutcome​(Outcome value)
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
      • clearOutcome

        public PollWorkflowExecutionUpdateResponse.Builder clearOutcome()
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
      • getOutcomeBuilder

        public Outcome.Builder getOutcomeBuilder()
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
      • getOutcomeOrBuilder

        public OutcomeOrBuilder getOutcomeOrBuilder()
         The outcome of the update if and only if the update has completed. If
         this response is being returned before the update has completed (e.g. due
         to the specification of a wait policy that only waits on
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED) then this field will
         not be set.
         
        .temporal.api.update.v1.Outcome outcome = 1;
        Specified by:
        getOutcomeOrBuilder in interface PollWorkflowExecutionUpdateResponseOrBuilder
      • getStageValue

        public int getStageValue()
         The most advanced lifecycle stage that the Update is known to have
         reached, where lifecycle stages are ordered
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.
         UNSPECIFIED will be returned if and only if the server's maximum wait
         time was reached before the Update reached the stage specified in the
         request WaitPolicy, and before the context deadline expired; clients may
         may then retry the call as needed.
         
        .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
        Specified by:
        getStageValue in interface PollWorkflowExecutionUpdateResponseOrBuilder
        Returns:
        The enum numeric value on the wire for stage.
      • setStageValue

        public PollWorkflowExecutionUpdateResponse.Builder setStageValue​(int value)
         The most advanced lifecycle stage that the Update is known to have
         reached, where lifecycle stages are ordered
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.
         UNSPECIFIED will be returned if and only if the server's maximum wait
         time was reached before the Update reached the stage specified in the
         request WaitPolicy, and before the context deadline expired; clients may
         may then retry the call as needed.
         
        .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
        Parameters:
        value - The enum numeric value on the wire for stage to set.
        Returns:
        This builder for chaining.
      • getStage

        public UpdateWorkflowExecutionLifecycleStage getStage()
         The most advanced lifecycle stage that the Update is known to have
         reached, where lifecycle stages are ordered
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.
         UNSPECIFIED will be returned if and only if the server's maximum wait
         time was reached before the Update reached the stage specified in the
         request WaitPolicy, and before the context deadline expired; clients may
         may then retry the call as needed.
         
        .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
        Specified by:
        getStage in interface PollWorkflowExecutionUpdateResponseOrBuilder
        Returns:
        The stage.
      • setStage

        public PollWorkflowExecutionUpdateResponse.Builder setStage​(UpdateWorkflowExecutionLifecycleStage value)
         The most advanced lifecycle stage that the Update is known to have
         reached, where lifecycle stages are ordered
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.
         UNSPECIFIED will be returned if and only if the server's maximum wait
         time was reached before the Update reached the stage specified in the
         request WaitPolicy, and before the context deadline expired; clients may
         may then retry the call as needed.
         
        .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
        Parameters:
        value - The stage to set.
        Returns:
        This builder for chaining.
      • clearStage

        public PollWorkflowExecutionUpdateResponse.Builder clearStage()
         The most advanced lifecycle stage that the Update is known to have
         reached, where lifecycle stages are ordered
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_UNSPECIFIED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ADMITTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_ACCEPTED <
         UPDATE_WORKFLOW_EXECUTION_LIFECYCLE_STAGE_COMPLETED.
         UNSPECIFIED will be returned if and only if the server's maximum wait
         time was reached before the Update reached the stage specified in the
         request WaitPolicy, and before the context deadline expired; clients may
         may then retry the call as needed.
         
        .temporal.api.enums.v1.UpdateWorkflowExecutionLifecycleStage stage = 2;
        Returns:
        This builder for chaining.
      • getUpdateRefBuilder

        public UpdateRef.Builder getUpdateRefBuilder()
         Sufficient information to address this Update.
         
        .temporal.api.update.v1.UpdateRef update_ref = 3;