Optional. Immutable. The Cloud KMS Key name to use for encryption. The key
must be located in the same region as the cluster and cannot be changed.
Structured like:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
[[["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."],[[["\u003cp\u003eThe \u003ccode\u003eGcpConfig\u003c/code\u003e class, part of the Google Cloud Managed Kafka API v1, provides configuration settings for Kafka clusters deployed on Google Cloud Platform.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling features like message handling, equality comparison, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGcpConfig\u003c/code\u003e includes properties such as \u003ccode\u003eAccessConfig\u003c/code\u003e, which configures cluster access, and \u003ccode\u003eKmsKey\u003c/code\u003e, which specifies the Cloud KMS key for data encryption within the cluster.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors: a default constructor \u003ccode\u003eGcpConfig()\u003c/code\u003e and a copy constructor \u003ccode\u003eGcpConfig(GcpConfig other)\u003c/code\u003e that creates a new instance based on an existing one.\u003c/p\u003e\n"]]],[],null,["# Managed Service for Apache Kafka API v1 API - Class GcpConfig (1.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GcpConfig)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/1.0.0-beta06/Google.Cloud.ManagedKafka.V1.GcpConfig) \n\n public sealed class GcpConfig : IMessage\u003cGcpConfig\u003e, IEquatable\u003cGcpConfig\u003e, IDeepCloneable\u003cGcpConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Managed Service for Apache Kafka API v1 API class GcpConfig.\n\nConfiguration properties for a Kafka cluster deployed to Google Cloud\nPlatform. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GcpConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GcpConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GcpConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GcpConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GcpConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GcpConfig](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GcpConfig), [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.ManagedKafka.V1](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ManagedKafka.V1.dll\n\nConstructors\n------------\n\n### GcpConfig()\n\n public GcpConfig()\n\n### GcpConfig(GcpConfig)\n\n public GcpConfig(GcpConfig other)\n\nProperties\n----------\n\n### AccessConfig\n\n public AccessConfig AccessConfig { get; set; }\n\nRequired. Access configuration for the Kafka cluster.\n\n### KmsKey\n\n public string KmsKey { get; set; }\n\nOptional. Immutable. The Cloud KMS Key name to use for encryption. The key\nmust be located in the same region as the cluster and cannot be changed.\nStructured like:\nprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.\n\n### KmsKeyAsCryptoKeyName\n\n public CryptoKeyName KmsKeyAsCryptoKeyName { get; set; }\n\n[CryptoKeyName](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.CryptoKeyName)-typed view over the [KmsKey](/dotnet/docs/reference/Google.Cloud.ManagedKafka.V1/latest/Google.Cloud.ManagedKafka.V1.GcpConfig#Google_Cloud_ManagedKafka_V1_GcpConfig_KmsKey) resource name property."]]