# Cloud KMS V1 Client - Class ImportJobState (2.9.0)

2.9.0 (latest) 2.8.0 2.7.0 2.6.0 2.5.2 2.4.0 2.3.1 2.2.0 2.1.6 2.0.0 1.23.0 1.22.1 1.21.4 1.20.3 1.19.0 1.18.1 1.17.0 1.16.4 1.15.3 Reference documentation and code samples for the Cloud KMS V1 Client class ImportJobState.

The state of the [ImportJob](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.ImportJob), indicating if
it can be used.

Protobuf type `google.cloud.kms.v1.ImportJob.ImportJobState`

## Namespace

Google \\ Cloud \\ Kms \\ V1 \\ ImportJob

## Methods

### static::name

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

### static::value

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

## Constants

### IMPORT_JOB_STATE_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `IMPORT_JOB_STATE_UNSPECIFIED = 0;`

### PENDING_GENERATION

    Value: 1

The wrapping key for this job is still being generated. It may not be
used. Cloud KMS will automatically mark this job as
[ACTIVE](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.ImportJob.ImportJobState#_Google_Cloud_Kms_V1_ImportJob_ImportJobState__ACTIVE) as soon as
the wrapping key is generated.

Generated from protobuf enum `PENDING_GENERATION = 1;`

### ACTIVE

    Value: 2

This job may be used in
[CreateCryptoKey](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__createCryptoKey__)
and
[CreateCryptoKeyVersion](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__createCryptoKeyVersion__)
requests.

Generated from protobuf enum `ACTIVE = 2;`

### EXPIRED

    Value: 3

This job can no longer be used and may not leave this state once entered.

Generated from protobuf enum `EXPIRED = 3;`