Optional. The service account being used for the encryption request for the
given KMS key. If absent, the Compute Engine default service account is
used.
Optional. The service account being used for the encryption request for the
given KMS key. If absent, the Compute Engine default service account is
used.
Optional. The service account being used for the encryption request for the
given KMS key. If absent, the Compute Engine default service account is
used.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,["# Interface CustomerEncryptionKeyOrBuilder (0.31.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.31.0 (latest)](/java/docs/reference/google-cloud-backupdr/latest/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.29.0](/java/docs/reference/google-cloud-backupdr/0.29.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.27.0](/java/docs/reference/google-cloud-backupdr/0.27.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.26.0](/java/docs/reference/google-cloud-backupdr/0.26.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.23.0](/java/docs/reference/google-cloud-backupdr/0.23.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.22.0](/java/docs/reference/google-cloud-backupdr/0.22.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.21.0](/java/docs/reference/google-cloud-backupdr/0.21.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.19.0](/java/docs/reference/google-cloud-backupdr/0.19.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.18.0](/java/docs/reference/google-cloud-backupdr/0.18.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.17.0](/java/docs/reference/google-cloud-backupdr/0.17.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.16.0](/java/docs/reference/google-cloud-backupdr/0.16.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloud-backupdr/0.15.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.14.0](/java/docs/reference/google-cloud-backupdr/0.14.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.13.0](/java/docs/reference/google-cloud-backupdr/0.13.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.12.0](/java/docs/reference/google-cloud-backupdr/0.12.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.11.0](/java/docs/reference/google-cloud-backupdr/0.11.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.10.0](/java/docs/reference/google-cloud-backupdr/0.10.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.8.0](/java/docs/reference/google-cloud-backupdr/0.8.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.7.0](/java/docs/reference/google-cloud-backupdr/0.7.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.6.0](/java/docs/reference/google-cloud-backupdr/0.6.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.5.0](/java/docs/reference/google-cloud-backupdr/0.5.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.4.0](/java/docs/reference/google-cloud-backupdr/0.4.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.3.0](/java/docs/reference/google-cloud-backupdr/0.3.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.2.0](/java/docs/reference/google-cloud-backupdr/0.2.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder)\n- [0.1.0](/java/docs/reference/google-cloud-backupdr/0.1.0/com.google.cloud.backupdr.v1.CustomerEncryptionKeyOrBuilder) \n\n public interface CustomerEncryptionKeyOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getKeyCase()\n\n public abstract CustomerEncryptionKey.KeyCase getKeyCase()\n\n### getKmsKeyName()\n\n public abstract String getKmsKeyName()\n\nOptional. The name of the encryption key that is stored in Google Cloud\nKMS.\n\n`string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getKmsKeyNameBytes()\n\n public abstract ByteString getKmsKeyNameBytes()\n\nOptional. The name of the encryption key that is stored in Google Cloud\nKMS.\n\n`string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getKmsKeyServiceAccount()\n\n public abstract String getKmsKeyServiceAccount()\n\nOptional. The service account being used for the encryption request for the\ngiven KMS key. If absent, the Compute Engine default service account is\nused.\n\n`optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getKmsKeyServiceAccountBytes()\n\n public abstract ByteString getKmsKeyServiceAccountBytes()\n\nOptional. The service account being used for the encryption request for the\ngiven KMS key. If absent, the Compute Engine default service account is\nused.\n\n`optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### getRawKey()\n\n public abstract String getRawKey()\n\nOptional. Specifies a 256-bit customer-supplied\nencryption key.\n\n`string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getRawKeyBytes()\n\n public abstract ByteString getRawKeyBytes()\n\nOptional. Specifies a 256-bit customer-supplied\nencryption key.\n\n`string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getRsaEncryptedKey()\n\n public abstract String getRsaEncryptedKey()\n\nOptional. RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource.\n\n`string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### getRsaEncryptedKeyBytes()\n\n public abstract ByteString getRsaEncryptedKeyBytes()\n\nOptional. RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource.\n\n`string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasKmsKeyName()\n\n public abstract boolean hasKmsKeyName()\n\nOptional. The name of the encryption key that is stored in Google Cloud\nKMS.\n\n`string kms_key_name = 3 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasKmsKeyServiceAccount()\n\n public abstract boolean hasKmsKeyServiceAccount()\n\nOptional. The service account being used for the encryption request for the\ngiven KMS key. If absent, the Compute Engine default service account is\nused.\n\n`optional string kms_key_service_account = 4 [(.google.api.field_behavior) = OPTIONAL];\n`\n\n### hasRawKey()\n\n public abstract boolean hasRawKey()\n\nOptional. Specifies a 256-bit customer-supplied\nencryption key.\n\n`string raw_key = 1 [(.google.api.field_behavior) = OPTIONAL];`\n\n### hasRsaEncryptedKey()\n\n public abstract boolean hasRsaEncryptedKey()\n\nOptional. RSA-wrapped 2048-bit\ncustomer-supplied encryption key to either encrypt or decrypt this\nresource.\n\n`string rsa_encrypted_key = 2 [(.google.api.field_behavior) = OPTIONAL];`"]]