Required. The name of the CmekConfig of the form
projects/{project}/locations/{location}/cmekConfig or
projects/{project}/locations/{location}/cmekConfigs/{cmek_config}.
[[["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-28 UTC."],[],[],null,["# Discovery Engine v1 API - Class CmekConfig (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.CmekConfig)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.CmekConfig) \n\n public sealed class CmekConfig : IMessage\u003cCmekConfig\u003e, IEquatable\u003cCmekConfig\u003e, IDeepCloneable\u003cCmekConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class CmekConfig.\n\nConfigurations used to enable CMEK data encryption with Cloud KMS keys. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CmekConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CmekConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CmekConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CmekConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### CmekConfig()\n\n public CmekConfig()\n\n### CmekConfig(CmekConfig)\n\n public CmekConfig(CmekConfig other)\n\nProperties\n----------\n\n### CmekConfigName\n\n public CmekConfigName CmekConfigName { get; set; }\n\n[CmekConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig#Google_Cloud_DiscoveryEngine_V1_CmekConfig_Name) resource name property.\n\n### IsDefault\n\n public bool IsDefault { get; set; }\n\nOutput only. The default CmekConfig for the Customer.\n\n### KmsKey\n\n public string KmsKey { get; set; }\n\nKMS key resource name which will be used to encrypt resources\n`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.\n\n### KmsKeyAsCryptoKeysName\n\n public CryptoKeysName KmsKeyAsCryptoKeysName { get; set; }\n\n[CryptoKeysName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CryptoKeysName)-typed view over the [KmsKey](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig#Google_Cloud_DiscoveryEngine_V1_CmekConfig_KmsKey) resource name property.\n\n### KmsKeyVersion\n\n public string KmsKeyVersion { get; set; }\n\nKMS key version resource name which will be used to encrypt resources\n`\u003ckms_key\u003e/cryptoKeyVersions/{keyVersion}`.\n\n### KmsKeyVersionAsCryptoKeyVersionsName\n\n public CryptoKeyVersionsName KmsKeyVersionAsCryptoKeyVersionsName { get; set; }\n\n[CryptoKeyVersionsName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CryptoKeyVersionsName)-typed view over the [KmsKeyVersion](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.CmekConfig#Google_Cloud_DiscoveryEngine_V1_CmekConfig_KmsKeyVersion) resource name property.\n\n### LastRotationTimestampMicros\n\n public long LastRotationTimestampMicros { get; set; }\n\nOutput only. The timestamp of the last key rotation.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the CmekConfig of the form\n`projects/{project}/locations/{location}/cmekConfig` or\n`projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.\n\n### NotebooklmState\n\n public CmekConfig.Types.NotebookLMState NotebooklmState { get; set; }\n\nOutput only. Whether the NotebookLM Corpus is ready to be used.\n\n### SingleRegionKeys\n\n public RepeatedField\u003cSingleRegionKey\u003e SingleRegionKeys { get; }\n\nOptional. Single-regional CMEKs that are required for some VAIS features.\n\n### State\n\n public CmekConfig.Types.State State { get; set; }\n\nOutput only. The states of the CmekConfig."]]