Package io.temporal.api.workflow.v1
Class WorkflowExecutionVersioningInfo
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- io.temporal.api.workflow.v1.WorkflowExecutionVersioningInfo
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,WorkflowExecutionVersioningInfoOrBuilder,java.io.Serializable
@Generated(value="protoc", comments="annotations:WorkflowExecutionVersioningInfo.java.pb.meta") public final class WorkflowExecutionVersioningInfo extends com.google.protobuf.GeneratedMessageV3 implements WorkflowExecutionVersioningInfoOrBuilderHolds 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- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWorkflowExecutionVersioningInfo.BuilderHolds all the information about versioning for a workflow execution.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBEHAVIOR_FIELD_NUMBERstatic intDEPLOYMENT_FIELD_NUMBERstatic intDEPLOYMENT_TRANSITION_FIELD_NUMBERstatic intVERSIONING_OVERRIDE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.static WorkflowExecutionVersioningInfogetDefaultInstance()WorkflowExecutionVersioningInfogetDefaultInstanceForType()DeploymentgetDeployment()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.DeploymentTransitionOrBuildergetDeploymentTransitionOrBuilder()When present, indicates the workflow is transitioning to a different deployment.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<WorkflowExecutionVersioningInfo>getParserForType()intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()VersioningOverridegetVersioningOverride()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.inthashCode()booleanhasVersioningOverride()Present if user has set an execution-specific versioning override.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static WorkflowExecutionVersioningInfo.BuildernewBuilder()static WorkflowExecutionVersioningInfo.BuildernewBuilder(WorkflowExecutionVersioningInfo prototype)WorkflowExecutionVersioningInfo.BuildernewBuilderForType()protected WorkflowExecutionVersioningInfo.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static WorkflowExecutionVersioningInfoparseDelimitedFrom(java.io.InputStream input)static WorkflowExecutionVersioningInfoparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkflowExecutionVersioningInfoparseFrom(byte[] data)static WorkflowExecutionVersioningInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkflowExecutionVersioningInfoparseFrom(com.google.protobuf.ByteString data)static WorkflowExecutionVersioningInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkflowExecutionVersioningInfoparseFrom(com.google.protobuf.CodedInputStream input)static WorkflowExecutionVersioningInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkflowExecutionVersioningInfoparseFrom(java.io.InputStream input)static WorkflowExecutionVersioningInfoparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static WorkflowExecutionVersioningInfoparseFrom(java.nio.ByteBuffer data)static WorkflowExecutionVersioningInfoparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<WorkflowExecutionVersioningInfo>parser()WorkflowExecutionVersioningInfo.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
BEHAVIOR_FIELD_NUMBER
public static final int BEHAVIOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_FIELD_NUMBER
public static final int DEPLOYMENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VERSIONING_OVERRIDE_FIELD_NUMBER
public static final int VERSIONING_OVERRIDE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DEPLOYMENT_TRANSITION_FIELD_NUMBER
public static final int DEPLOYMENT_TRANSITION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
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
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static WorkflowExecutionVersioningInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static WorkflowExecutionVersioningInfo parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static WorkflowExecutionVersioningInfo parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public WorkflowExecutionVersioningInfo.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static WorkflowExecutionVersioningInfo.Builder newBuilder()
-
newBuilder
public static WorkflowExecutionVersioningInfo.Builder newBuilder(WorkflowExecutionVersioningInfo prototype)
-
toBuilder
public WorkflowExecutionVersioningInfo.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected WorkflowExecutionVersioningInfo.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static WorkflowExecutionVersioningInfo getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<WorkflowExecutionVersioningInfo> parser()
-
getParserForType
public com.google.protobuf.Parser<WorkflowExecutionVersioningInfo> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public WorkflowExecutionVersioningInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-