# Interface StorageObjectData.CustomerEncryptionOrBuilder (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.storage.v1.StorageObjectData.CustomerEncryptionOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryptionOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.storage.v1.StorageObjectData.CustomerEncryptionOrBuilder)

    public static interface StorageObjectData.CustomerEncryptionOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEncryptionAlgorithm()

    public abstract String getEncryptionAlgorithm()

The encryption algorithm.

`string encryption_algorithm = 1;`

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

### getEncryptionAlgorithmBytes()

    public abstract ByteString getEncryptionAlgorithmBytes()

The encryption algorithm.

`string encryption_algorithm = 1;`

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

### getKeySha256()

    public abstract String getKeySha256()

SHA256 hash value of the encryption key.

`string key_sha256 = 2;`

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

### getKeySha256Bytes()

    public abstract ByteString getKeySha256Bytes()

SHA256 hash value of the encryption key.

`string key_sha256 = 2;`

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