Enum Class VersioningBehavior
- All Implemented Interfaces:
Serializable,Comparable<VersioningBehavior>,Constable
Specifies when a workflow might move from a worker of one Build Id to another.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe workflow will automatically move to the latest version (default Build ID of the task queue) when the next task is dispatched.The workflow will be pinned to the current Build ID unless manually moved.An unspecified versioning behavior. -
Method Summary
Modifier and TypeMethodDescriptionstatic VersioningBehaviorReturns the enum constant of this class with the specified name.static VersioningBehavior[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
An unspecified versioning behavior. By default, workers opting into worker versioning will be required to specify a behavior. SeeWorkerOptions.Builder.setDeploymentOptions(WorkerDeploymentOptions). -
PINNED
The workflow will be pinned to the current Build ID unless manually moved. -
AUTO_UPGRADE
The workflow will automatically move to the latest version (default Build ID of the task queue) when the next task is dispatched.
-
-
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
-