# Interface EncryptionKeyOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.gkebackup.v1.EncryptionKeyOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.gkebackup.v1.EncryptionKeyOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.gkebackup.v1.EncryptionKeyOrBuilder)

    public interface EncryptionKeyOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getGcpKmsEncryptionKey()

    public abstract String getGcpKmsEncryptionKey()

Google Cloud KMS encryption key. Format:
`projects/*/locations/*/keyRings/*/cryptoKeys/*`

`string gcp_kms_encryption_key = 1;`

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

### getGcpKmsEncryptionKeyBytes()

    public abstract ByteString getGcpKmsEncryptionKeyBytes()

Google Cloud KMS encryption key. Format:
`projects/*/locations/*/keyRings/*/cryptoKeys/*`

`string gcp_kms_encryption_key = 1;`

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