# Cloud KMS V1 Client - Class ProtectionLevel (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 ProtectionLevel.

[ProtectionLevel](https://docs.cloud.google.com/php/docs/reference/cloud-kms/latest/V1.ProtectionLevel) specifies how
cryptographic operations are performed. For more information, see [Protection
levels](https://cloud.google.com/kms/docs/algorithms#protection_levels).

Protobuf type `google.cloud.kms.v1.ProtectionLevel`

## Namespace

Google \\ Cloud \\ Kms \\ V1

## Methods

### static::name

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

### static::value

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

## Constants

### PROTECTION_LEVEL_UNSPECIFIED

    Value: 0

Not specified.

Generated from protobuf enum `PROTECTION_LEVEL_UNSPECIFIED = 0;`

### SOFTWARE

    Value: 1

Crypto operations are performed in software.

Generated from protobuf enum `SOFTWARE = 1;`

### HSM

    Value: 2

Crypto operations are performed in a Hardware Security Module.

Generated from protobuf enum `HSM = 2;`

### EXTERNAL

    Value: 3

Crypto operations are performed by an external key manager.

Generated from protobuf enum `EXTERNAL = 3;`

### EXTERNAL_VPC

    Value: 4

Crypto operations are performed in an EKM-over-VPC backend.

Generated from protobuf enum `EXTERNAL_VPC = 4;`

### HSM_SINGLE_TENANT

    Value: 5

Crypto operations are performed in a single-tenant HSM.

Generated from protobuf enum `HSM_SINGLE_TENANT = 5;`