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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Data Loss Prevention V2 Client - Class JobState (2.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.6.1 (latest)](/php/docs/reference/cloud-dlp/latest/V2.DlpJob.JobState)\n- [2.6.0](/php/docs/reference/cloud-dlp/2.6.0/V2.DlpJob.JobState)\n- [2.4.1](/php/docs/reference/cloud-dlp/2.4.1/V2.DlpJob.JobState)\n- [2.3.0](/php/docs/reference/cloud-dlp/2.3.0/V2.DlpJob.JobState)\n- [2.2.3](/php/docs/reference/cloud-dlp/2.2.3/V2.DlpJob.JobState)\n- [2.1.0](/php/docs/reference/cloud-dlp/2.1.0/V2.DlpJob.JobState)\n- [2.0.0](/php/docs/reference/cloud-dlp/2.0.0/V2.DlpJob.JobState)\n- [1.19.0](/php/docs/reference/cloud-dlp/1.19.0/V2.DlpJob.JobState)\n- [1.18.0](/php/docs/reference/cloud-dlp/1.18.0/V2.DlpJob.JobState)\n- [1.17.0](/php/docs/reference/cloud-dlp/1.17.0/V2.DlpJob.JobState)\n- [1.16.0](/php/docs/reference/cloud-dlp/1.16.0/V2.DlpJob.JobState)\n- [1.15.1](/php/docs/reference/cloud-dlp/1.15.1/V2.DlpJob.JobState)\n- [1.14.0](/php/docs/reference/cloud-dlp/1.14.0/V2.DlpJob.JobState)\n- [1.13.2](/php/docs/reference/cloud-dlp/1.13.2/V2.DlpJob.JobState)\n- [1.12.0](/php/docs/reference/cloud-dlp/1.12.0/V2.DlpJob.JobState)\n- [1.11.0](/php/docs/reference/cloud-dlp/1.11.0/V2.DlpJob.JobState)\n- [1.10.2](/php/docs/reference/cloud-dlp/1.10.2/V2.DlpJob.JobState)\n- [1.9.0](/php/docs/reference/cloud-dlp/1.9.0/V2.DlpJob.JobState)\n- [1.8.6](/php/docs/reference/cloud-dlp/1.8.6/V2.DlpJob.JobState) \nReference documentation and code samples for the Data Loss Prevention V2 Client class JobState.\n\nPossible states of a job. New items may be added.\n\nProtobuf type `google.privacy.dlp.v2.DlpJob.JobState`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dlp \\\\ V2 \\\\ DlpJob\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### JOB_STATE_UNSPECIFIED\n\n Value: 0\n\nUnused.\n\nGenerated from protobuf enum `JOB_STATE_UNSPECIFIED = 0;`\n\n### PENDING\n\n Value: 1\n\nThe job has not yet started.\n\nGenerated from protobuf enum `PENDING = 1;`\n\n### RUNNING\n\n Value: 2\n\nThe job is currently running. Once a job has finished it will transition\nto FAILED or DONE.\n\nGenerated from protobuf enum `RUNNING = 2;`\n\n### DONE\n\n Value: 3\n\nThe job is no longer running.\n\nGenerated from protobuf enum `DONE = 3;`\n\n### CANCELED\n\n Value: 4\n\nThe job was canceled before it could be completed.\n\nGenerated from protobuf enum `CANCELED = 4;`\n\n### FAILED\n\n Value: 5\n\nThe job had an error and did not complete.\n\nGenerated from protobuf enum `FAILED = 5;`\n\n### ACTIVE\n\n Value: 6\n\nThe job is currently accepting findings via hybridInspect.\n\nA hybrid job in ACTIVE state may continue to have findings added to it\nthrough the calling of hybridInspect. After the job has finished no more\ncalls to hybridInspect may be made. ACTIVE jobs can transition to DONE.\n\nGenerated from protobuf enum `ACTIVE = 6;`"]]