Class InheritedAutoUpgradeInfo.Builder

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

public static final class InheritedAutoUpgradeInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InheritedAutoUpgradeInfo.Builder> implements InheritedAutoUpgradeInfoOrBuilder
 Used as part of WorkflowExecutionStartedEventAttributes to pass down the AutoUpgrade behavior and source deployment version
 to a workflow execution whose parent/previous workflow has an AutoUpgrade behavior.
 Also used for Upgrade-on-CaN behaviors AutoUpgrade and UseRampingVersion.
 
Protobuf type temporal.api.deployment.v1.InheritedAutoUpgradeInfo
  • 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<InheritedAutoUpgradeInfo.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<InheritedAutoUpgradeInfo.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<InheritedAutoUpgradeInfo.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

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

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

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

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

      public InheritedAutoUpgradeInfo.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<InheritedAutoUpgradeInfo.Builder>
      Throws:
      IOException
    • hasSourceDeploymentVersion

      public boolean hasSourceDeploymentVersion()
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
      Specified by:
      hasSourceDeploymentVersion in interface InheritedAutoUpgradeInfoOrBuilder
      Returns:
      Whether the sourceDeploymentVersion field is set.
    • getSourceDeploymentVersion

      public WorkerDeploymentVersion getSourceDeploymentVersion()
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
      Specified by:
      getSourceDeploymentVersion in interface InheritedAutoUpgradeInfoOrBuilder
      Returns:
      The sourceDeploymentVersion.
    • setSourceDeploymentVersion

      public InheritedAutoUpgradeInfo.Builder setSourceDeploymentVersion(WorkerDeploymentVersion value)
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
    • setSourceDeploymentVersion

      public InheritedAutoUpgradeInfo.Builder setSourceDeploymentVersion(WorkerDeploymentVersion.Builder builderForValue)
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
    • mergeSourceDeploymentVersion

      public InheritedAutoUpgradeInfo.Builder mergeSourceDeploymentVersion(WorkerDeploymentVersion value)
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
    • clearSourceDeploymentVersion

      public InheritedAutoUpgradeInfo.Builder clearSourceDeploymentVersion()
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
    • getSourceDeploymentVersionBuilder

      public WorkerDeploymentVersion.Builder getSourceDeploymentVersionBuilder()
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
    • getSourceDeploymentVersionOrBuilder

      public WorkerDeploymentVersionOrBuilder getSourceDeploymentVersionOrBuilder()
       The source deployment version of the parent/previous workflow.
       
      .temporal.api.deployment.v1.WorkerDeploymentVersion source_deployment_version = 1;
      Specified by:
      getSourceDeploymentVersionOrBuilder in interface InheritedAutoUpgradeInfoOrBuilder
    • getSourceDeploymentRevisionNumber

      public long getSourceDeploymentRevisionNumber()
       The revision number of the source deployment version of the parent/previous workflow.
       
      int64 source_deployment_revision_number = 2;
      Specified by:
      getSourceDeploymentRevisionNumber in interface InheritedAutoUpgradeInfoOrBuilder
      Returns:
      The sourceDeploymentRevisionNumber.
    • setSourceDeploymentRevisionNumber

      public InheritedAutoUpgradeInfo.Builder setSourceDeploymentRevisionNumber(long value)
       The revision number of the source deployment version of the parent/previous workflow.
       
      int64 source_deployment_revision_number = 2;
      Parameters:
      value - The sourceDeploymentRevisionNumber to set.
      Returns:
      This builder for chaining.
    • clearSourceDeploymentRevisionNumber

      public InheritedAutoUpgradeInfo.Builder clearSourceDeploymentRevisionNumber()
       The revision number of the source deployment version of the parent/previous workflow.
       
      int64 source_deployment_revision_number = 2;
      Returns:
      This builder for chaining.
    • getContinueAsNewInitialVersioningBehaviorValue

      public int getContinueAsNewInitialVersioningBehaviorValue()
       Experimental.
       If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
       specified in that command.
       Only used for the initial task of this run and the initial task of any retries of this run.
       Not passed to children or to future continue-as-new.
      
       Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
       a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
       with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
       value if the InheritedAutoUpgradeInfo is non-empty.
       
      .temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3;
      Specified by:
      getContinueAsNewInitialVersioningBehaviorValue in interface InheritedAutoUpgradeInfoOrBuilder
      Returns:
      The enum numeric value on the wire for continueAsNewInitialVersioningBehavior.
    • setContinueAsNewInitialVersioningBehaviorValue

      public InheritedAutoUpgradeInfo.Builder setContinueAsNewInitialVersioningBehaviorValue(int value)
       Experimental.
       If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
       specified in that command.
       Only used for the initial task of this run and the initial task of any retries of this run.
       Not passed to children or to future continue-as-new.
      
       Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
       a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
       with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
       value if the InheritedAutoUpgradeInfo is non-empty.
       
      .temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3;
      Parameters:
      value - The enum numeric value on the wire for continueAsNewInitialVersioningBehavior to set.
      Returns:
      This builder for chaining.
    • getContinueAsNewInitialVersioningBehavior

      public ContinueAsNewVersioningBehavior getContinueAsNewInitialVersioningBehavior()
       Experimental.
       If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
       specified in that command.
       Only used for the initial task of this run and the initial task of any retries of this run.
       Not passed to children or to future continue-as-new.
      
       Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
       a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
       with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
       value if the InheritedAutoUpgradeInfo is non-empty.
       
      .temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3;
      Specified by:
      getContinueAsNewInitialVersioningBehavior in interface InheritedAutoUpgradeInfoOrBuilder
      Returns:
      The continueAsNewInitialVersioningBehavior.
    • setContinueAsNewInitialVersioningBehavior

      public InheritedAutoUpgradeInfo.Builder setContinueAsNewInitialVersioningBehavior(ContinueAsNewVersioningBehavior value)
       Experimental.
       If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
       specified in that command.
       Only used for the initial task of this run and the initial task of any retries of this run.
       Not passed to children or to future continue-as-new.
      
       Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
       a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
       with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
       value if the InheritedAutoUpgradeInfo is non-empty.
       
      .temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3;
      Parameters:
      value - The continueAsNewInitialVersioningBehavior to set.
      Returns:
      This builder for chaining.
    • clearContinueAsNewInitialVersioningBehavior

      public InheritedAutoUpgradeInfo.Builder clearContinueAsNewInitialVersioningBehavior()
       Experimental.
       If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
       specified in that command.
       Only used for the initial task of this run and the initial task of any retries of this run.
       Not passed to children or to future continue-as-new.
      
       Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
       a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
       with history events generated during that time, know that an UNSPECIFIED value here is equivalent to AutoUpgrade
       value if the InheritedAutoUpgradeInfo is non-empty.
       
      .temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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