Class InheritedAutoUpgradeInfo

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.temporal.api.deployment.v1.InheritedAutoUpgradeInfo
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, InheritedAutoUpgradeInfoOrBuilder, Serializable

@Generated(value="protoc", comments="annotations:InheritedAutoUpgradeInfo.java.pb.meta") public final class InheritedAutoUpgradeInfo extends com.google.protobuf.GeneratedMessageV3 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
See Also:
  • Field Details

    • SOURCE_DEPLOYMENT_VERSION_FIELD_NUMBER

      public static final int SOURCE_DEPLOYMENT_VERSION_FIELD_NUMBER
      See Also:
    • SOURCE_DEPLOYMENT_REVISION_NUMBER_FIELD_NUMBER

      public static final int SOURCE_DEPLOYMENT_REVISION_NUMBER_FIELD_NUMBER
      See Also:
    • CONTINUE_AS_NEW_INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER

      public static final int CONTINUE_AS_NEW_INITIAL_VERSIONING_BEHAVIOR_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InheritedAutoUpgradeInfo parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InheritedAutoUpgradeInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InheritedAutoUpgradeInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static InheritedAutoUpgradeInfo.Builder newBuilder()
    • newBuilder

      public static InheritedAutoUpgradeInfo.Builder newBuilder(InheritedAutoUpgradeInfo prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InheritedAutoUpgradeInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static InheritedAutoUpgradeInfo getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InheritedAutoUpgradeInfo> parser()
    • getParserForType

      public com.google.protobuf.Parser<InheritedAutoUpgradeInfo> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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