Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}
[[["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-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eEncryptionSpec\u003c/code\u003e class within the Google Cloud Contact Center Insights v1 API for .NET.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for \u003ccode\u003eEncryptionSpec\u003c/code\u003e is 2.19.0, with a comprehensive list of previous versions dating back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionSpec\u003c/code\u003e class allows users to define customer-managed encryption key specifications for securing resources like \u003ccode\u003eConversation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eKmsKey\u003c/code\u003e for specifying the encryption key and \u003ccode\u003eName\u003c/code\u003e for the resource name of the encryption key specification.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eEncryptionSpec\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, among others.\u003c/p\u003e\n"]]],[],null,["# Contact Center AI Insights v1 API - Class EncryptionSpec (2.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.18.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.17.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.16.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.15.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.14.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.13.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.12.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.11.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.10.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.9.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.8.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.7.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.6.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.5.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.4.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.3.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.2.1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.2.1/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.1.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.0.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.3.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.2.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.1.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.0.0/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec) \n\n public sealed class EncryptionSpec : IMessage\u003cEncryptionSpec\u003e, IEquatable\u003cEncryptionSpec\u003e, IDeepCloneable\u003cEncryptionSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Contact Center AI Insights v1 API class EncryptionSpec.\n\nA customer-managed encryption key specification that can be applied to all\ncreated resources (e.g. `Conversation`). \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e EncryptionSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[EncryptionSpec](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[EncryptionSpec](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[EncryptionSpec](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec), [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.ContactCenterInsights.V1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ContactCenterInsights.V1.dll\n\nConstructors\n------------\n\n### EncryptionSpec()\n\n public EncryptionSpec()\n\n### EncryptionSpec(EncryptionSpec)\n\n public EncryptionSpec(EncryptionSpec other)\n\nProperties\n----------\n\n### EncryptionSpecName\n\n public EncryptionSpecName EncryptionSpecName { get; set; }\n\n[EncryptionSpecName](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpecName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.EncryptionSpec#Google_Cloud_ContactCenterInsights_V1_EncryptionSpec_Name) resource name property.\n\n### KmsKey\n\n public string KmsKey { get; set; }\n\nRequired. The name of customer-managed encryption key that is used to\nsecure a resource and its sub-resources. If empty, the resource is secured\nby our default encryption key. Only the key in the same location as this\nresource is allowed to be used for encryption. Format:\n`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`\n\n### Name\n\n public string Name { get; set; }\n\nImmutable. The resource name of the encryption key specification resource.\nFormat:\nprojects/{project}/locations/{location}/encryptionSpec"]]