// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/enums/v1/task_queue.proto
package io.temporal.api.enums.v1;
/**
*
* Specifies which category of tasks may reach a worker on a versioned task queue.
* Used both in a reachability query and its response.
*
*
* Protobuf enum {@code temporal.api.enums.v1.TaskReachability}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:TaskReachability.java.pb.meta")
public enum TaskReachability
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TASK_REACHABILITY_UNSPECIFIED = 0;
*/
TASK_REACHABILITY_UNSPECIFIED(0),
/**
*
* There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
*
*
* TASK_REACHABILITY_NEW_WORKFLOWS = 1;
*/
TASK_REACHABILITY_NEW_WORKFLOWS(1),
/**
*
* There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers
* should *not* be retired.
* This enum value does not distinguish between open and closed workflows.
*
*
* TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
*/
TASK_REACHABILITY_EXISTING_WORKFLOWS(2),
/**
*
* There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers
* should *not* be retired.
*
*
* TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
*/
TASK_REACHABILITY_OPEN_WORKFLOWS(3),
/**
*
* There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be
* retired dependending on application requirements. For example, if there's no need to query closed workflows.
*
*
* TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
*/
TASK_REACHABILITY_CLOSED_WORKFLOWS(4),
UNRECOGNIZED(-1),
;
/**
* TASK_REACHABILITY_UNSPECIFIED = 0;
*/
public static final int TASK_REACHABILITY_UNSPECIFIED_VALUE = 0;
/**
*
* There's a possiblity for a worker to receive new workflow tasks. Workers should *not* be retired.
*
*
* TASK_REACHABILITY_NEW_WORKFLOWS = 1;
*/
public static final int TASK_REACHABILITY_NEW_WORKFLOWS_VALUE = 1;
/**
*
* There's a possiblity for a worker to receive existing workflow and activity tasks from existing workflows. Workers
* should *not* be retired.
* This enum value does not distinguish between open and closed workflows.
*
*
* TASK_REACHABILITY_EXISTING_WORKFLOWS = 2;
*/
public static final int TASK_REACHABILITY_EXISTING_WORKFLOWS_VALUE = 2;
/**
*
* There's a possiblity for a worker to receive existing workflow and activity tasks from open workflows. Workers
* should *not* be retired.
*
*
* TASK_REACHABILITY_OPEN_WORKFLOWS = 3;
*/
public static final int TASK_REACHABILITY_OPEN_WORKFLOWS_VALUE = 3;
/**
*
* There's a possiblity for a worker to receive existing workflow tasks from closed workflows. Workers may be
* retired dependending on application requirements. For example, if there's no need to query closed workflows.
*
*
* TASK_REACHABILITY_CLOSED_WORKFLOWS = 4;
*/
public static final int TASK_REACHABILITY_CLOSED_WORKFLOWS_VALUE = 4;
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 TaskReachability 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 TaskReachability forNumber(int value) {
switch (value) {
case 0: return TASK_REACHABILITY_UNSPECIFIED;
case 1: return TASK_REACHABILITY_NEW_WORKFLOWS;
case 2: return TASK_REACHABILITY_EXISTING_WORKFLOWS;
case 3: return TASK_REACHABILITY_OPEN_WORKFLOWS;
case 4: return TASK_REACHABILITY_CLOSED_WORKFLOWS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TaskReachability> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TaskReachability findValueByNumber(int number) {
return TaskReachability.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.TaskQueueProto.getDescriptor().getEnumTypes().get(2);
}
private static final TaskReachability[] VALUES = values();
public static TaskReachability 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 TaskReachability(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:temporal.api.enums.v1.TaskReachability)
}