Required. The Customer Managed Encryption Key (CMEK) used for data
encryption. The CMEK name should follow the format of
projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+),
where the location must match InstanceConfig.location.
Required. The Customer Managed Encryption Key (CMEK) used for data
encryption. The CMEK name should follow the format of
projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+),
where the location must match InstanceConfig.location.
[[["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 Instance.ConfigOrBuilder (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.apigeeregistry.v1.Instance.ConfigOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.apigeeregistry.v1.Instance.ConfigOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.apigeeregistry.v1.Instance.ConfigOrBuilder) \n\n public static interface Instance.ConfigOrBuilder 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### getCmekKeyName()\n\n public abstract String getCmekKeyName()\n\nRequired. The Customer Managed Encryption Key (CMEK) used for data\nencryption. The CMEK name should follow the format of\n`projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,\nwhere the `location` must match InstanceConfig.location.\n\n`string cmek_key_name = 2;`\n\n### getCmekKeyNameBytes()\n\n public abstract ByteString getCmekKeyNameBytes()\n\nRequired. The Customer Managed Encryption Key (CMEK) used for data\nencryption. The CMEK name should follow the format of\n`projects/([^/]+)/locations/([^/]+)/keyRings/([^/]+)/cryptoKeys/([^/]+)`,\nwhere the `location` must match InstanceConfig.location.\n\n`string cmek_key_name = 2;`\n\n### getLocation()\n\n public abstract String getLocation()\n\nOutput only. The GCP location where the Instance resides.\n\n`string location = 1;`\n\n### getLocationBytes()\n\n public abstract ByteString getLocationBytes()\n\nOutput only. The GCP location where the Instance resides.\n\n`string location = 1;`"]]