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

    public interface EncryptionInfoOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getEncryptionType()

    public abstract EncryptionInfo.Type getEncryptionType()

Output only. Type of encryption.

`.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.alloydb.v1.EncryptionInfo.Type` | The encryptionType. |

### getEncryptionTypeValue()

    public abstract int getEncryptionTypeValue()

Output only. Type of encryption.

`.google.events.cloud.alloydb.v1.EncryptionInfo.Type encryption_type = 1;`

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

### getKmsKeyVersions(int index)

    public abstract String getKmsKeyVersions(int index)

Output only. Cloud KMS key versions that are being used to protect the
database or the backup.

`repeated string kms_key_versions = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the element to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The kmsKeyVersions at the given index. |

### getKmsKeyVersionsBytes(int index)

    public abstract ByteString getKmsKeyVersionsBytes(int index)

Output only. Cloud KMS key versions that are being used to protect the
database or the backup.

`repeated string kms_key_versions = 2;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` The index of the value to return. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes of the kmsKeyVersions at the given index. |

### getKmsKeyVersionsCount()

    public abstract int getKmsKeyVersionsCount()

Output only. Cloud KMS key versions that are being used to protect the
database or the backup.

`repeated string kms_key_versions = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The count of kmsKeyVersions. |

### getKmsKeyVersionsList()

    public abstract List<String> getKmsKeyVersionsList()

Output only. Cloud KMS key versions that are being used to protect the
database or the backup.

`repeated string kms_key_versions = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` | A list containing the kmsKeyVersions. |