# Data Loss Prevention V2 Client - Class JobState (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class JobState.

Possible states of a job. New items may be added.

Protobuf type `google.privacy.dlp.v2.DlpJob.JobState`

## Namespace

Google \\ Cloud \\ Dlp \\ V2 \\ DlpJob

## Methods

### static::name

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

### static::value

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

## Constants

### JOB_STATE_UNSPECIFIED

    Value: 0

Unused.

Generated from protobuf enum `JOB_STATE_UNSPECIFIED = 0;`

### PENDING

    Value: 1

The job has not yet started.

Generated from protobuf enum `PENDING = 1;`

### RUNNING

    Value: 2

The job is currently running. Once a job has finished it will transition
to FAILED or DONE.

Generated from protobuf enum `RUNNING = 2;`

### DONE

    Value: 3

The job is no longer running.

Generated from protobuf enum `DONE = 3;`

### CANCELED

    Value: 4

The job was canceled before it could be completed.

Generated from protobuf enum `CANCELED = 4;`

### FAILED

    Value: 5

The job had an error and did not complete.

Generated from protobuf enum `FAILED = 5;`

### ACTIVE

    Value: 6

The job is currently accepting findings via hybridInspect.

A hybrid job in ACTIVE state may continue to have findings added to it
through the calling of hybridInspect. After the job has finished no more
calls to hybridInspect may be made. ACTIVE jobs can transition to DONE.

Generated from protobuf enum `ACTIVE = 6;`