Package io.temporal.api.workflow.v1
Class WorkflowExecutionVersioningInfo.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
- io.temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkflowExecutionVersioningInfoOrBuilder,java.lang.Cloneable
- Enclosing class:
- WorkflowExecutionVersioningInfo
public static final class WorkflowExecutionVersioningInfo.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder> implements WorkflowExecutionVersioningInfoOrBuilder
Holds all the information about versioning for a workflow execution. Experimental. Versioning info is experimental and might change in the future.
Protobuf typetemporal.api.workflow.v1.WorkflowExecutionVersioningInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkflowExecutionVersioningInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkflowExecutionVersioningInfobuild()WorkflowExecutionVersioningInfobuildPartial()WorkflowExecutionVersioningInfo.Builderclear()WorkflowExecutionVersioningInfo.BuilderclearBehavior()Versioning behavior determines how the server should treat this execution when workers are upgraded.WorkflowExecutionVersioningInfo.BuilderclearDeployment()The worker deployment that completed the last workflow task of this workflow execution.WorkflowExecutionVersioningInfo.BuilderclearDeploymentTransition()When present, indicates the workflow is transitioning to a different deployment.WorkflowExecutionVersioningInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)WorkflowExecutionVersioningInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)WorkflowExecutionVersioningInfo.BuilderclearVersioningOverride()Present if user has set an execution-specific versioning override.WorkflowExecutionVersioningInfo.Builderclone()VersioningBehaviorgetBehavior()Versioning behavior determines how the server should treat this execution when workers are upgraded.intgetBehaviorValue()Versioning behavior determines how the server should treat this execution when workers are upgraded.WorkflowExecutionVersioningInfogetDefaultInstanceForType()DeploymentgetDeployment()The worker deployment that completed the last workflow task of this workflow execution.Deployment.BuildergetDeploymentBuilder()The worker deployment that completed the last workflow task of this workflow execution.DeploymentOrBuildergetDeploymentOrBuilder()The worker deployment that completed the last workflow task of this workflow execution.DeploymentTransitiongetDeploymentTransition()When present, indicates the workflow is transitioning to a different deployment.DeploymentTransition.BuildergetDeploymentTransitionBuilder()When present, indicates the workflow is transitioning to a different deployment.DeploymentTransitionOrBuildergetDeploymentTransitionOrBuilder()When present, indicates the workflow is transitioning to a different deployment.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()VersioningOverridegetVersioningOverride()Present if user has set an execution-specific versioning override.VersioningOverride.BuildergetVersioningOverrideBuilder()Present if user has set an execution-specific versioning override.VersioningOverrideOrBuildergetVersioningOverrideOrBuilder()Present if user has set an execution-specific versioning override.booleanhasDeployment()The worker deployment that completed the last workflow task of this workflow execution.booleanhasDeploymentTransition()When present, indicates the workflow is transitioning to a different deployment.booleanhasVersioningOverride()Present if user has set an execution-specific versioning override.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()WorkflowExecutionVersioningInfo.BuildermergeDeployment(Deployment value)The worker deployment that completed the last workflow task of this workflow execution.WorkflowExecutionVersioningInfo.BuildermergeDeploymentTransition(DeploymentTransition value)When present, indicates the workflow is transitioning to a different deployment.WorkflowExecutionVersioningInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)WorkflowExecutionVersioningInfo.BuildermergeFrom(com.google.protobuf.Message other)WorkflowExecutionVersioningInfo.BuildermergeFrom(WorkflowExecutionVersioningInfo other)WorkflowExecutionVersioningInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkflowExecutionVersioningInfo.BuildermergeVersioningOverride(VersioningOverride value)Present if user has set an execution-specific versioning override.WorkflowExecutionVersioningInfo.BuildersetBehavior(VersioningBehavior value)Versioning behavior determines how the server should treat this execution when workers are upgraded.WorkflowExecutionVersioningInfo.BuildersetBehaviorValue(int value)Versioning behavior determines how the server should treat this execution when workers are upgraded.WorkflowExecutionVersioningInfo.BuildersetDeployment(Deployment value)The worker deployment that completed the last workflow task of this workflow execution.WorkflowExecutionVersioningInfo.BuildersetDeployment(Deployment.Builder builderForValue)The worker deployment that completed the last workflow task of this workflow execution.WorkflowExecutionVersioningInfo.BuildersetDeploymentTransition(DeploymentTransition value)When present, indicates the workflow is transitioning to a different deployment.WorkflowExecutionVersioningInfo.BuildersetDeploymentTransition(DeploymentTransition.Builder builderForValue)When present, indicates the workflow is transitioning to a different deployment.WorkflowExecutionVersioningInfo.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)WorkflowExecutionVersioningInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)WorkflowExecutionVersioningInfo.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)WorkflowExecutionVersioningInfo.BuildersetVersioningOverride(VersioningOverride value)Present if user has set an execution-specific versioning override.WorkflowExecutionVersioningInfo.BuildersetVersioningOverride(VersioningOverride.Builder builderForValue)Present if user has set an execution-specific versioning override.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
clear
public WorkflowExecutionVersioningInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
getDefaultInstanceForType
public WorkflowExecutionVersioningInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public WorkflowExecutionVersioningInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public WorkflowExecutionVersioningInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public WorkflowExecutionVersioningInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
setField
public WorkflowExecutionVersioningInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
clearField
public WorkflowExecutionVersioningInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
clearOneof
public WorkflowExecutionVersioningInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
setRepeatedField
public WorkflowExecutionVersioningInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
addRepeatedField
public WorkflowExecutionVersioningInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
mergeFrom
public WorkflowExecutionVersioningInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowExecutionVersioningInfo.Builder>
-
mergeFrom
public WorkflowExecutionVersioningInfo.Builder mergeFrom(WorkflowExecutionVersioningInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
mergeFrom
public WorkflowExecutionVersioningInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WorkflowExecutionVersioningInfo.Builder>- Throws:
java.io.IOException
-
getBehaviorValue
public int getBehaviorValue()
Versioning behavior determines how the server should treat this execution when workers are upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means unversioned. See the comments in `VersioningBehavior` enum for more info about different behaviors. This field is first set after an execution completes its first workflow task on a versioned worker, and set again on completion of every subsequent workflow task. Note that `behavior` is overridden by `versioning_override` if the latter is present.
.temporal.api.enums.v1.VersioningBehavior behavior = 1;- Specified by:
getBehaviorValuein interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- The enum numeric value on the wire for behavior.
-
setBehaviorValue
public WorkflowExecutionVersioningInfo.Builder setBehaviorValue(int value)
Versioning behavior determines how the server should treat this execution when workers are upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means unversioned. See the comments in `VersioningBehavior` enum for more info about different behaviors. This field is first set after an execution completes its first workflow task on a versioned worker, and set again on completion of every subsequent workflow task. Note that `behavior` is overridden by `versioning_override` if the latter is present.
.temporal.api.enums.v1.VersioningBehavior behavior = 1;- Parameters:
value- The enum numeric value on the wire for behavior to set.- Returns:
- This builder for chaining.
-
getBehavior
public VersioningBehavior getBehavior()
Versioning behavior determines how the server should treat this execution when workers are upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means unversioned. See the comments in `VersioningBehavior` enum for more info about different behaviors. This field is first set after an execution completes its first workflow task on a versioned worker, and set again on completion of every subsequent workflow task. Note that `behavior` is overridden by `versioning_override` if the latter is present.
.temporal.api.enums.v1.VersioningBehavior behavior = 1;- Specified by:
getBehaviorin interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- The behavior.
-
setBehavior
public WorkflowExecutionVersioningInfo.Builder setBehavior(VersioningBehavior value)
Versioning behavior determines how the server should treat this execution when workers are upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means unversioned. See the comments in `VersioningBehavior` enum for more info about different behaviors. This field is first set after an execution completes its first workflow task on a versioned worker, and set again on completion of every subsequent workflow task. Note that `behavior` is overridden by `versioning_override` if the latter is present.
.temporal.api.enums.v1.VersioningBehavior behavior = 1;- Parameters:
value- The behavior to set.- Returns:
- This builder for chaining.
-
clearBehavior
public WorkflowExecutionVersioningInfo.Builder clearBehavior()
Versioning behavior determines how the server should treat this execution when workers are upgraded. When present it means this workflow execution is versioned; UNSPECIFIED means unversioned. See the comments in `VersioningBehavior` enum for more info about different behaviors. This field is first set after an execution completes its first workflow task on a versioned worker, and set again on completion of every subsequent workflow task. Note that `behavior` is overridden by `versioning_override` if the latter is present.
.temporal.api.enums.v1.VersioningBehavior behavior = 1;- Returns:
- This builder for chaining.
-
hasDeployment
public boolean hasDeployment()
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;- Specified by:
hasDeploymentin interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- Whether the deployment field is set.
-
getDeployment
public Deployment getDeployment()
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;- Specified by:
getDeploymentin interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- The deployment.
-
setDeployment
public WorkflowExecutionVersioningInfo.Builder setDeployment(Deployment value)
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;
-
setDeployment
public WorkflowExecutionVersioningInfo.Builder setDeployment(Deployment.Builder builderForValue)
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;
-
mergeDeployment
public WorkflowExecutionVersioningInfo.Builder mergeDeployment(Deployment value)
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;
-
clearDeployment
public WorkflowExecutionVersioningInfo.Builder clearDeployment()
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;
-
getDeploymentBuilder
public Deployment.Builder getDeploymentBuilder()
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;
-
getDeploymentOrBuilder
public DeploymentOrBuilder getDeploymentOrBuilder()
The worker deployment that completed the last workflow task of this workflow execution. Must be present if `behavior` is set. Absent value means no workflow task is completed, or the last workflow task was completed by an unversioned worker. Unversioned workers may still send a deployment value which will be stored here, so the right way to check if an execution is versioned if an execution is versioned or not is via the `behavior` field. Note that `deployment` is overridden by `versioning_override` if the latter is present.
.temporal.api.deployment.v1.Deployment deployment = 2;- Specified by:
getDeploymentOrBuilderin interfaceWorkflowExecutionVersioningInfoOrBuilder
-
hasVersioningOverride
public boolean hasVersioningOverride()
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;- Specified by:
hasVersioningOverridein interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- Whether the versioningOverride field is set.
-
getVersioningOverride
public VersioningOverride getVersioningOverride()
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;- Specified by:
getVersioningOverridein interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- The versioningOverride.
-
setVersioningOverride
public WorkflowExecutionVersioningInfo.Builder setVersioningOverride(VersioningOverride value)
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
-
setVersioningOverride
public WorkflowExecutionVersioningInfo.Builder setVersioningOverride(VersioningOverride.Builder builderForValue)
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
-
mergeVersioningOverride
public WorkflowExecutionVersioningInfo.Builder mergeVersioningOverride(VersioningOverride value)
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
-
clearVersioningOverride
public WorkflowExecutionVersioningInfo.Builder clearVersioningOverride()
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
-
getVersioningOverrideBuilder
public VersioningOverride.Builder getVersioningOverrideBuilder()
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
-
getVersioningOverrideOrBuilder
public VersioningOverrideOrBuilder getVersioningOverrideOrBuilder()
Present if user has set an execution-specific versioning override. This override takes precedence over SDK-sent `behavior` (and `deployment` when override is PINNED). An override can be set when starting a new execution, as well as afterwards by calling the `UpdateWorkflowExecutionOptions` API.
.temporal.api.workflow.v1.VersioningOverride versioning_override = 3;- Specified by:
getVersioningOverrideOrBuilderin interfaceWorkflowExecutionVersioningInfoOrBuilder
-
hasDeploymentTransition
public boolean hasDeploymentTransition()
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;- Specified by:
hasDeploymentTransitionin interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- Whether the deploymentTransition field is set.
-
getDeploymentTransition
public DeploymentTransition getDeploymentTransition()
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;- Specified by:
getDeploymentTransitionin interfaceWorkflowExecutionVersioningInfoOrBuilder- Returns:
- The deploymentTransition.
-
setDeploymentTransition
public WorkflowExecutionVersioningInfo.Builder setDeploymentTransition(DeploymentTransition value)
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;
-
setDeploymentTransition
public WorkflowExecutionVersioningInfo.Builder setDeploymentTransition(DeploymentTransition.Builder builderForValue)
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;
-
mergeDeploymentTransition
public WorkflowExecutionVersioningInfo.Builder mergeDeploymentTransition(DeploymentTransition value)
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;
-
clearDeploymentTransition
public WorkflowExecutionVersioningInfo.Builder clearDeploymentTransition()
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;
-
getDeploymentTransitionBuilder
public DeploymentTransition.Builder getDeploymentTransitionBuilder()
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;
-
getDeploymentTransitionOrBuilder
public DeploymentTransitionOrBuilder getDeploymentTransitionOrBuilder()
When present, indicates the workflow is transitioning to a different deployment. Can indicate one of the following transitions: unversioned -> versioned, versioned -> versioned on a different deployment, or versioned -> unversioned. Not applicable to workflows with PINNED behavior. When a workflow with AUTO_UPGRADE behavior creates a new workflow task, it will automatically start a transition to the task queue's current deployment if the task queue's current deployment is different from the workflow's deployment. If the AUTO_UPGRADE workflow is stuck due to backlogged activity or workflow tasks, those tasks will be redirected to the task queue's current deployment. As soon as a poller from that deployment is available to receive the task, the workflow will automatically start a transition to that deployment and continue execution there. A deployment transition can only exist while there is a pending or started workflow task. Once the pending workflow task completes on the transition's target deployment, the transition completes and the workflow's `deployment` and `behavior` fields are updated per the worker's task completion response. Pending activities will not start new attempts during a transition. Once the transition is completed, pending activities will start their next attempt on the new deployment.
.temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4;- Specified by:
getDeploymentTransitionOrBuilderin interfaceWorkflowExecutionVersioningInfoOrBuilder
-
setUnknownFields
public final WorkflowExecutionVersioningInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
mergeUnknownFields
public final WorkflowExecutionVersioningInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<WorkflowExecutionVersioningInfo.Builder>
-
-