Package io.temporal.api.enums.v1
Enum 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,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.ProtocolMessageEnumExperimental. Defines the versioning behavior to be used by the first task of a new workflow run in a continue-as-new chain.
Protobuf enumtemporal.api.enums.v1.ContinueAsNewVersioningBehavior
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADEStart the new run with AutoUpgrade behavior.CONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIEDCONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCONTINUE_AS_NEW_VERSIONING_BEHAVIOR_AUTO_UPGRADE_VALUEStart the new run with AutoUpgrade behavior.static intCONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED_VALUECONTINUE_AS_NEW_VERSIONING_BEHAVIOR_UNSPECIFIED = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ContinueAsNewVersioningBehaviorforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ContinueAsNewVersioningBehavior>internalGetValueMap()static ContinueAsNewVersioningBehaviorvalueOf(int value)Deprecated.static ContinueAsNewVersioningBehaviorvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static ContinueAsNewVersioningBehaviorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ContinueAsNewVersioningBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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;
-
UNRECOGNIZED
public static final ContinueAsNewVersioningBehavior UNRECOGNIZED
-
-
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 namejava.lang.NullPointerException- 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 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 namejava.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.
-
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 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 namejava.lang.NullPointerException- if the argument is null
-
-