# Common Protos for Google Cloud APIs Client - Class EncryptionInfo (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class EncryptionInfo.

Encryption properties for a table or a job

Generated from protobuf message `google.cloud.audit.BigQueryAuditMetadata.EncryptionInfo`

## Namespace

Google \\ Cloud \\ Audit \\ BigQueryAuditMetadata

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ kms_key_name` | `string` Cloud kms key identifier. Format: `projects/<project_id>/locations/<location>/keyRings/<key_ring_name>/cryptoKeys/<key_name>` |

### getKmsKeyName

Cloud kms key identifier.

Format:
`projects/<project_id>/locations/<location>/keyRings/<key_ring_name>/cryptoKeys/<key_name>`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setKmsKeyName

Cloud kms key identifier.

Format:
`projects/<project_id>/locations/<location>/keyRings/<key_ring_name>/cryptoKeys/<key_name>`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |