public static enum Job.State extends Enum<Job.State> implements com.google.protobuf.ProtocolMessageEnum
State of the job.Protobuf enum
google.cloud.scheduler.v1beta1.Job.State| Enum Constant and Description |
|---|
DISABLED
The job is disabled by the system due to error.
|
ENABLED
The job is executing normally.
|
PAUSED
The job is paused by the user.
|
STATE_UNSPECIFIED
Unspecified state.
|
UNRECOGNIZED |
UPDATE_FAILED
The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]
operation.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
DISABLED_VALUE
The job is disabled by the system due to error.
|
static int |
ENABLED_VALUE
The job is executing normally.
|
static int |
PAUSED_VALUE
The job is paused by the user.
|
static int |
STATE_UNSPECIFIED_VALUE
Unspecified state.
|
static int |
UPDATE_FAILED_VALUE
The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob]
operation.
|
| Modifier and Type | Method and Description |
|---|---|
static Job.State |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Job.State> |
internalGetValueMap() |
static Job.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Job.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Job.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Job.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Job.State STATE_UNSPECIFIED
Unspecified state.
STATE_UNSPECIFIED = 0;public static final Job.State ENABLED
The job is executing normally.
ENABLED = 1;public static final Job.State PAUSED
The job is paused by the user. It will not execute. A user can intentionally pause the job using [PauseJobRequest][google.cloud.scheduler.v1beta1.PauseJobRequest].
PAUSED = 2;public static final Job.State DISABLED
The job is disabled by the system due to error. The user cannot directly set a job to be disabled.
DISABLED = 3;public static final Job.State UPDATE_FAILED
The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] operation. To recover a job from this state, retry [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] until a successful response is received.
UPDATE_FAILED = 4;public static final Job.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Unspecified state.
STATE_UNSPECIFIED = 0;public static final int ENABLED_VALUE
The job is executing normally.
ENABLED = 1;public static final int PAUSED_VALUE
The job is paused by the user. It will not execute. A user can intentionally pause the job using [PauseJobRequest][google.cloud.scheduler.v1beta1.PauseJobRequest].
PAUSED = 2;public static final int DISABLED_VALUE
The job is disabled by the system due to error. The user cannot directly set a job to be disabled.
DISABLED = 3;public static final int UPDATE_FAILED_VALUE
The job state resulting from a failed [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] operation. To recover a job from this state, retry [CloudScheduler.UpdateJob][google.cloud.scheduler.v1beta1.CloudScheduler.UpdateJob] until a successful response is received.
UPDATE_FAILED = 4;public static Job.State[] values()
for (Job.State c : Job.State.values()) System.out.println(c);
public static Job.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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Job.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Job.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Job.State> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Job.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.