# Cloud Scheduler V1 Client - Class State (2.2.0)

2.2.0 (latest) 2.1.2 2.0.5 1.10.5 1.9.4 1.8.3 1.7.1 1.6.8 Reference documentation and code samples for the Cloud Scheduler V1 Client class State.

State of the job.

Protobuf type `google.cloud.scheduler.v1.Job.State`

## Namespace

Google \\ Cloud \\ Scheduler \\ V1 \\ Job

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### STATE_UNSPECIFIED

    Value: 0

Unspecified state.

Generated from protobuf enum `STATE_UNSPECIFIED = 0;`

### ENABLED

    Value: 1

The job is executing normally.

Generated from protobuf enum `ENABLED = 1;`

### PAUSED

    Value: 2

The job is paused by the user. It will not execute. A user can
intentionally pause the job using
[PauseJobRequest](https://docs.cloud.google.com/php/docs/reference/cloud-scheduler/latest/V1.PauseJobRequest).

Generated from protobuf enum `PAUSED = 2;`

### DISABLED

    Value: 3

The job is disabled by the system due to error. The user
cannot directly set a job to be disabled.

Generated from protobuf enum `DISABLED = 3;`

### UPDATE_FAILED

    Value: 4

The job state resulting from a failed
[CloudScheduler.UpdateJob](https://docs.cloud.google.com/php/docs/reference/cloud-scheduler/latest/V1.Client.CloudSchedulerClient#_Google_Cloud_Scheduler_V1_Client_CloudSchedulerClient__updateJob__)
operation. To recover a job from this state, retry
[CloudScheduler.UpdateJob](https://docs.cloud.google.com/php/docs/reference/cloud-scheduler/latest/V1.Client.CloudSchedulerClient#_Google_Cloud_Scheduler_V1_Client_CloudSchedulerClient__updateJob__)
until a successful response is received.

Generated from protobuf enum `UPDATE_FAILED = 4;`