The fully qualified customer provided Cloud KMS key name to use for
customer data encryption, in the following form:
projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
The fully qualified customer provided Cloud KMS key name to use for
customer data encryption, in the following form:
projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface EncryptionConfigOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.metastore.v1.EncryptionConfigOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.metastore.v1.EncryptionConfigOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.metastore.v1.EncryptionConfigOrBuilder) \n\n public interface EncryptionConfigOrBuilder 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### getKmsKey()\n\n public abstract String getKmsKey()\n\nThe fully qualified customer provided Cloud KMS key name to use for\ncustomer data encryption, in the following form:\n`projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`.\n\n`string kms_key = 1;`\n\n### getKmsKeyBytes()\n\n public abstract ByteString getKmsKeyBytes()\n\nThe fully qualified customer provided Cloud KMS key name to use for\ncustomer data encryption, in the following form:\n`projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`.\n\n`string kms_key = 1;`"]]