Enum Class NexusOperationIdReusePolicy
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<NexusOperationIdReusePolicy>,Constable
@Generated(value="protoc",
comments="annotations:NexusOperationIdReusePolicy.java.pb.meta")
public enum NexusOperationIdReusePolicy
extends Enum<NexusOperationIdReusePolicy>
implements com.google.protobuf.ProtocolMessageEnum
Defines whether to allow re-using an operation ID from a previously *closed* Nexus operation. If the request is denied, the server returns a `NexusOperationAlreadyStarted` error. See `NexusOperationIdConflictPolicy` for handling ID duplication with a *running* operation.Protobuf enum
temporal.api.enums.v1.NexusOperationIdReusePolicy-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways allow starting an operation using the same operation ID.Allow starting an operation using the same ID only when the last operation's final state is one of {failed, canceled, terminated, timed out}.Do not permit re-use of the ID for this operation.NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED = 0; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAllow starting an operation using the same ID only when the last operation's final state is one of {failed, canceled, terminated, timed out}.static final intAlways allow starting an operation using the same operation ID.static final intDo not permit re-use of the ID for this operation.static final intNEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED = 0; -
Method Summary
Modifier and TypeMethodDescriptionstatic NexusOperationIdReusePolicyforNumber(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<NexusOperationIdReusePolicy> static NexusOperationIdReusePolicyvalueOf(int value) Deprecated.static NexusOperationIdReusePolicyvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static NexusOperationIdReusePolicyReturns the enum constant of this class with the specified name.static NexusOperationIdReusePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED
NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED = 0; -
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE
Always allow starting an operation using the same operation ID.
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1; -
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY
public static final NexusOperationIdReusePolicy NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLYAllow starting an operation using the same ID only when the last operation's final state is one of {failed, canceled, terminated, timed out}.NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2; -
NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE
Do not permit re-use of the ID for this operation. Future start requests could potentially change the policy, allowing re-use of the ID.
NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE = 3; -
UNRECOGNIZED
-
-
Field Details
-
NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED_VALUE
public static final int NEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED_VALUENEXUS_OPERATION_ID_REUSE_POLICY_UNSPECIFIED = 0;- See Also:
-
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_VALUE
public static final int NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_VALUEAlways allow starting an operation using the same operation ID.
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE = 1;- See Also:
-
NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY_VALUE
public static final int NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY_VALUEAllow starting an operation using the same ID only when the last operation's final state is one of {failed, canceled, terminated, timed out}.NEXUS_OPERATION_ID_REUSE_POLICY_ALLOW_DUPLICATE_FAILED_ONLY = 2;- See Also:
-
NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE_VALUE
public static final int NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE_VALUEDo not permit re-use of the ID for this operation. Future start requests could potentially change the policy, allowing re-use of the ID.
NEXUS_OPERATION_ID_REUSE_POLICY_REJECT_DUPLICATE = 3;- 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<NexusOperationIdReusePolicy> 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 NexusOperationIdReusePolicy 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
-