io.temporal.api.enums.v1.RetryState Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/enums/v1/workflow.proto
package io.temporal.api.enums.v1;
/**
* Protobuf enum {@code temporal.api.enums.v1.RetryState}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:RetryState.java.pb.meta")
public enum RetryState
implements com.google.protobuf.ProtocolMessageEnum {
/**
* RETRY_STATE_UNSPECIFIED = 0;
*/
RETRY_STATE_UNSPECIFIED(0),
/**
* RETRY_STATE_IN_PROGRESS = 1;
*/
RETRY_STATE_IN_PROGRESS(1),
/**
* RETRY_STATE_NON_RETRYABLE_FAILURE = 2;
*/
RETRY_STATE_NON_RETRYABLE_FAILURE(2),
/**
* RETRY_STATE_TIMEOUT = 3;
*/
RETRY_STATE_TIMEOUT(3),
/**
* RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4;
*/
RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED(4),
/**
* RETRY_STATE_RETRY_POLICY_NOT_SET = 5;
*/
RETRY_STATE_RETRY_POLICY_NOT_SET(5),
/**
* RETRY_STATE_INTERNAL_SERVER_ERROR = 6;
*/
RETRY_STATE_INTERNAL_SERVER_ERROR(6),
/**
* RETRY_STATE_CANCEL_REQUESTED = 7;
*/
RETRY_STATE_CANCEL_REQUESTED(7),
UNRECOGNIZED(-1),
;
/**
* RETRY_STATE_UNSPECIFIED = 0;
*/
public static final int RETRY_STATE_UNSPECIFIED_VALUE = 0;
/**
* RETRY_STATE_IN_PROGRESS = 1;
*/
public static final int RETRY_STATE_IN_PROGRESS_VALUE = 1;
/**
* RETRY_STATE_NON_RETRYABLE_FAILURE = 2;
*/
public static final int RETRY_STATE_NON_RETRYABLE_FAILURE_VALUE = 2;
/**
* RETRY_STATE_TIMEOUT = 3;
*/
public static final int RETRY_STATE_TIMEOUT_VALUE = 3;
/**
* RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED = 4;
*/
public static final int RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED_VALUE = 4;
/**
* RETRY_STATE_RETRY_POLICY_NOT_SET = 5;
*/
public static final int RETRY_STATE_RETRY_POLICY_NOT_SET_VALUE = 5;
/**
* RETRY_STATE_INTERNAL_SERVER_ERROR = 6;
*/
public static final int RETRY_STATE_INTERNAL_SERVER_ERROR_VALUE = 6;
/**
* RETRY_STATE_CANCEL_REQUESTED = 7;
*/
public static final int RETRY_STATE_CANCEL_REQUESTED_VALUE = 7;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static RetryState valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static RetryState forNumber(int value) {
switch (value) {
case 0: return RETRY_STATE_UNSPECIFIED;
case 1: return RETRY_STATE_IN_PROGRESS;
case 2: return RETRY_STATE_NON_RETRYABLE_FAILURE;
case 3: return RETRY_STATE_TIMEOUT;
case 4: return RETRY_STATE_MAXIMUM_ATTEMPTS_REACHED;
case 5: return RETRY_STATE_RETRY_POLICY_NOT_SET;
case 6: return RETRY_STATE_INTERNAL_SERVER_ERROR;
case 7: return RETRY_STATE_CANCEL_REQUESTED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
RetryState> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public RetryState findValueByNumber(int number) {
return RetryState.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.temporal.api.enums.v1.WorkflowProto.getDescriptor().getEnumTypes().get(7);
}
private static final RetryState[] VALUES = values();
public static RetryState valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private RetryState(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:temporal.api.enums.v1.RetryState)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy