# Interface GcpWrappedKeyInfoOrBuilder (0.14.0)

0.14.0 (latest) 0.12.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface GcpWrappedKeyInfoOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getEncryptedDek()

    public abstract String getEncryptedDek()

Required. The base64 encoded encrypted data encryption key.

`string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The encryptedDek. |

### getEncryptedDekBytes()

    public abstract ByteString getEncryptedDekBytes()

Required. The base64 encoded encrypted data encryption key.

`string encrypted_dek = 4 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for encryptedDek. |

### getKekUri()

    public abstract String 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}`

`string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kekUri. |

### getKekUriBytes()

    public abstract ByteString getKekUriBytes()

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}`

`string kek_uri = 3 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for kekUri. |

### getKeyType()

    public abstract GcpWrappedKeyInfo.KeyType getKeyType()

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

`
.google.ads.datamanager.v1.GcpWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/data-manager/latest/com.google.ads.datamanager.v1.GcpWrappedKeyInfo.KeyType` | The keyType. |

### getKeyTypeValue()

    public abstract int getKeyTypeValue()

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

`
.google.ads.datamanager.v1.GcpWrappedKeyInfo.KeyType key_type = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for keyType. |

### getWipProvider()

    public abstract String getWipProvider()

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

`string wip_provider = 2 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The wipProvider. |

### getWipProviderBytes()

    public abstract ByteString getWipProviderBytes()

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

`string wip_provider = 2 [(.google.api.field_behavior) = REQUIRED];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for wipProvider. |