Class PollWorkflowExecutionUpdateResponse.Builder

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

public static final class PollWorkflowExecutionUpdateResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PollWorkflowExecutionUpdateResponse.Builder> implements PollWorkflowExecutionUpdateResponseOrBuilder
Protobuf type temporal.api.workflowservice.v1.PollWorkflowExecutionUpdateResponse
  • 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<PollWorkflowExecutionUpdateResponse.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<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

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

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

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

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

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

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

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

      public PollWorkflowExecutionUpdateResponse.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<PollWorkflowExecutionUpdateResponse.Builder>
      Throws:
      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

       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

       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

       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

       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

       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

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

      public boolean hasUpdateRef()
       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
      Specified by:
      hasUpdateRef in interface PollWorkflowExecutionUpdateResponseOrBuilder
      Returns:
      Whether the updateRef field is set.
    • getUpdateRef

      public UpdateRef getUpdateRef()
       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
      Specified by:
      getUpdateRef in interface PollWorkflowExecutionUpdateResponseOrBuilder
      Returns:
      The updateRef.
    • setUpdateRef

       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
    • setUpdateRef

      public PollWorkflowExecutionUpdateResponse.Builder setUpdateRef(UpdateRef.Builder builderForValue)
       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
    • mergeUpdateRef

       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
    • clearUpdateRef

       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
    • getUpdateRefBuilder

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

      public UpdateRefOrBuilder getUpdateRefOrBuilder()
       Sufficient information to address this Update.
       
      .temporal.api.update.v1.UpdateRef update_ref = 3;
      Specified by:
      getUpdateRefOrBuilder in interface PollWorkflowExecutionUpdateResponseOrBuilder
    • setUnknownFields

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

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