public static enum Queue.State extends Enum<Queue.State> implements ProtocolMessageEnum
State of the queue.Protobuf enum
google.cloud.tasks.v2beta2.Queue.State
Enum Constant and Description |
---|
DISABLED
The queue is disabled.
|
PAUSED
Tasks are paused by the user.
|
RUNNING
The queue is running.
|
STATE_UNSPECIFIED
Unspecified state.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DISABLED_VALUE
The queue is disabled.
|
static int |
PAUSED_VALUE
Tasks are paused by the user.
|
static int |
RUNNING_VALUE
The queue is running.
|
static int |
STATE_UNSPECIFIED_VALUE
Unspecified state.
|
Modifier and Type | Method and Description |
---|---|
static Queue.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<Queue.State> |
internalGetValueMap() |
static Queue.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static Queue.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Queue.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Queue.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Queue.State STATE_UNSPECIFIED
Unspecified state.
STATE_UNSPECIFIED = 0;
public static final Queue.State RUNNING
The queue is running. Tasks can be dispatched. If the queue was created using Cloud Tasks and the queue has had no activity (method calls or task dispatches) for 30 days, the queue may take a few minutes to re-activate. Some method calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and tasks may not be dispatched for a few minutes until the queue has been re-activated.
RUNNING = 1;
public static final Queue.State PAUSED
Tasks are paused by the user. If the queue is paused then Cloud Tasks will stop delivering tasks from it, but more tasks can still be added to it by the user. When a pull queue is paused, all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
PAUSED = 2;
public static final Queue.State DISABLED
The queue is disabled. A queue becomes `DISABLED` when [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) or [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) is uploaded which does not contain the queue. You cannot directly disable a queue. When a queue is disabled, tasks can still be added to a queue but the tasks are not dispatched and [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a `FAILED_PRECONDITION` error. To permanently delete this queue and all of its tasks, call [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
DISABLED = 3;
public static final Queue.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Unspecified state.
STATE_UNSPECIFIED = 0;
public static final int RUNNING_VALUE
The queue is running. Tasks can be dispatched. If the queue was created using Cloud Tasks and the queue has had no activity (method calls or task dispatches) for 30 days, the queue may take a few minutes to re-activate. Some method calls may return [NOT_FOUND][google.rpc.Code.NOT_FOUND] and tasks may not be dispatched for a few minutes until the queue has been re-activated.
RUNNING = 1;
public static final int PAUSED_VALUE
Tasks are paused by the user. If the queue is paused then Cloud Tasks will stop delivering tasks from it, but more tasks can still be added to it by the user. When a pull queue is paused, all [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls will return a [FAILED_PRECONDITION][google.rpc.Code.FAILED_PRECONDITION].
PAUSED = 2;
public static final int DISABLED_VALUE
The queue is disabled. A queue becomes `DISABLED` when [queue.yaml](https://cloud.google.com/appengine/docs/python/config/queueref) or [queue.xml](https://cloud.google.com/appengine/docs/standard/java/config/queueref) is uploaded which does not contain the queue. You cannot directly disable a queue. When a queue is disabled, tasks can still be added to a queue but the tasks are not dispatched and [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] calls return a `FAILED_PRECONDITION` error. To permanently delete this queue and all of its tasks, call [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].
DISABLED = 3;
public static Queue.State[] values()
for (Queue.State c : Queue.State.values()) System.out.println(c);
public static Queue.State valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static Queue.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static Queue.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<Queue.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static Queue.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.