Enum ContinueAsNewVersioningBehavior

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, java.io.Serializable, java.lang.Comparable<ContinueAsNewVersioningBehavior>

    @Generated(value="protoc",
               comments="annotations:ContinueAsNewVersioningBehavior.java.pb.meta")
    public enum ContinueAsNewVersioningBehavior
    extends java.lang.Enum<ContinueAsNewVersioningBehavior>
    implements com.google.protobuf.ProtocolMessageEnum
     Experimental. Defines the versioning behavior to be used by the first task of a new workflow run in a continue-as-new chain.
     
    Protobuf enum temporal.api.enums.v1.ContinueAsNewVersioningBehavior
    • Enum Constant Detail

      • CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED

        public static final ContinueAsNewVersioningBehavior CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED
        CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;
      • CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE

        public static final ContinueAsNewVersioningBehavior CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE
         Start the new run with AutoUpgrade behavior. Use the Target Version of the workflow's task queue at
         start-time, as AutoUpgrade workflows do. After the first workflow task completes, use whatever
         Versioning Behavior the workflow is annotated with in the workflow code.
        
         Note that if the previous workflow had a Pinned override, that override will be inherited by the
         new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new
         command. If a Pinned override is inherited by the new run, and the new run starts with AutoUpgrade
         behavior, the base version of the new run will be the Target Version as described above, but the
         effective version will be whatever is specified by the Versioning Override until the override is removed.
         
        CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE = 1;
    • Field Detail

      • CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED_VALUE

        public static final int CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED_VALUE
        CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE_VALUE

        public static final int CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE_VALUE
         Start the new run with AutoUpgrade behavior. Use the Target Version of the workflow's task queue at
         start-time, as AutoUpgrade workflows do. After the first workflow task completes, use whatever
         Versioning Behavior the workflow is annotated with in the workflow code.
        
         Note that if the previous workflow had a Pinned override, that override will be inherited by the
         new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new
         command. If a Pinned override is inherited by the new run, and the new run starts with AutoUpgrade
         behavior, the base version of the new run will be the Target Version as described above, but the
         effective version will be whatever is specified by the Versioning Override until the override is removed.
         
        CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE = 1;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static ContinueAsNewVersioningBehavior[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ContinueAsNewVersioningBehavior c : ContinueAsNewVersioningBehavior.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ContinueAsNewVersioningBehavior valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static ContinueAsNewVersioningBehavior valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • forNumber

        public static ContinueAsNewVersioningBehavior forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static ContinueAsNewVersioningBehavior valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null