# Google Ads Data Manager V1 Client - Class GcpWrappedKeyInfo (0.5.0)

0.5.0 (latest) 0.4.0 0.3.1 0.2.0 0.1.2 Reference documentation and code samples for the Google Ads Data Manager V1 Client class GcpWrappedKeyInfo.

Information about the Google Cloud Platform wrapped
key.

Generated from protobuf message `google.ads.datamanager.v1.GcpWrappedKeyInfo`

## Namespace

Google \\ Ads \\ DataManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ key_type` | `int` Required. The type of algorithm used to encrypt the data. |
| `↳ wip_provider` | `string` Required. The [Workload Identity](https://cloud.google.com/iam/docs/workload-identity-federation) pool provider required to use KEK. |
| `↳ kek_uri` | `string` Required. Google Cloud Platform [Cloud Key Management Service resource ID](https://cloud.google.com/kms/docs/getting-resource-ids). Should be in the format of `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` or `gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}` |
| `↳ encrypted_dek` | `string` Required. The base64 encoded encrypted data encryption key. |

### getKeyType

Required. The type of algorithm used to encrypt the data.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [KeyType](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.GcpWrappedKeyInfo.KeyType). |

### setKeyType

Required. The type of algorithm used to encrypt the data.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [KeyType](https://docs.cloud.google.com/php/docs/reference/data-manager/latest/V1.GcpWrappedKeyInfo.KeyType). |

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

### getWipProvider

Required. The [Workload
Identity](https://cloud.google.com/iam/docs/workload-identity-federation) pool
provider required to use KEK.

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

### setWipProvider

Required. The [Workload
Identity](https://cloud.google.com/iam/docs/workload-identity-federation) pool
provider required to use KEK.

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

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

### getKekUri

Required. Google Cloud Platform [Cloud Key Management Service resource
ID](https://cloud.google.com/kms/docs/getting-resource-ids). Should be in the
format of
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
or
`gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`

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

### setKekUri

Required. Google Cloud Platform [Cloud Key Management Service resource
ID](https://cloud.google.com/kms/docs/getting-resource-ids). Should be in the
format of
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`
or
`gcp-kms://projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{key}`

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

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

### getEncryptedDek

Required. The base64 encoded encrypted data encryption key.

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

### setEncryptedDek

Required. The base64 encoded encrypted data encryption key.

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

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