Enum Class ContinueAsNewVersioningBehavior
java.lang.Object
java.lang.Enum<ContinueAsNewVersioningBehavior>
io.temporal.api.enums.v1.ContinueAsNewVersioningBehavior
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ContinueAsNewVersioningBehavior>,Constable
@Generated(value="protoc",
comments="annotations:ContinueAsNewVersioningBehavior.java.pb.meta")
public enum ContinueAsNewVersioningBehavior
extends 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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExperimental.CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;Experimental. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intExperimental.static final intCONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;static final intExperimental. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ContinueAsNewVersioningBehavior> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static ContinueAsNewVersioningBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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_UPGRADEExperimental. 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 workflow being continued has a Pinned override, that override will be inherited by the new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new command. Versioning Override always takes precedence until it's removed manually via UpdateWorkflowExecutionOptions.
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE = 1; -
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION
public static final ContinueAsNewVersioningBehavior CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSIONExperimental. Use the Ramping Version of the workflow's task queue at start time, regardless of the workflow's Target Version (according to f(workflow_id, ramp_percentage)). After the first workflow task completes, the workflow will use whatever Versioning Behavior it is annotated with. If there is no Ramping Version by the time that the first workflow task is dispatched, it will be sent to the Current Version. It is highly discouraged to use this if the workflow is annotated with AutoUpgrade behavior, because this setting ONLY applies to the first task of the workflow. If, after the first task, the workflow is AutoUpgrade, it will behave like a normal AutoUpgrade workflow and go to the Target Version, which may be the Current Version instead of the Ramping Version. Note that if the workflow being continued has a Pinned override, that override will be inherited by the new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new command. Versioning Override always takes precedence until it's removed manually via UpdateWorkflowExecutionOptions.
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION = 2; -
UNRECOGNIZED
-
-
Field Details
-
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED_VALUE
public static final int CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED_VALUECONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;- See Also:
-
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE_VALUE
public static final int CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE_VALUEExperimental. 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 workflow being continued has a Pinned override, that override will be inherited by the new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new command. Versioning Override always takes precedence until it's removed manually via UpdateWorkflowExecutionOptions.
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE = 1;- See Also:
-
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION_VALUE
public static final int CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION_VALUEExperimental. Use the Ramping Version of the workflow's task queue at start time, regardless of the workflow's Target Version (according to f(workflow_id, ramp_percentage)). After the first workflow task completes, the workflow will use whatever Versioning Behavior it is annotated with. If there is no Ramping Version by the time that the first workflow task is dispatched, it will be sent to the Current Version. It is highly discouraged to use this if the workflow is annotated with AutoUpgrade behavior, because this setting ONLY applies to the first task of the workflow. If, after the first task, the workflow is AutoUpgrade, it will behave like a normal AutoUpgrade workflow and go to the Target Version, which may be the Current Version instead of the Ramping Version. Note that if the workflow being continued has a Pinned override, that override will be inherited by the new workflow run regardless of the ContinueAsNewVersioningBehavior specified in the continue-as-new command. Versioning Override always takes precedence until it's removed manually via UpdateWorkflowExecutionOptions.
CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_USE_RAMPING_VERSION = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<ContinueAsNewVersioningBehavior> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-