Optional. An optional KMS key
name that if
present, will be used to encrypt Speech-to-Text resources at-rest. Updating
this key will not encrypt existing resources using this key; only new
resources will be encrypted using this key. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Output only. Identifier. The name of the config resource. There is exactly
one config resource per project per location. The expected format is
projects/{project}/locations/{location}/config.
[[["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\u003eThe \u003ccode\u003eConfig\u003c/code\u003e class is a key component of the Cloud Speech-to-Text v2 API, serving as a message for configuring the API's settings.\u003c/p\u003e\n"],["\u003cp\u003eThis \u003ccode\u003eConfig\u003c/code\u003e class supports optional KMS key encryption for Speech-to-Text resources, allowing users to encrypt data at rest.\u003c/p\u003e\n"],["\u003cp\u003eThe resource has an identifier \u003ccode\u003eName\u003c/code\u003e which is unique and is in the expected format of \u003ccode\u003eprojects/{project}/locations/{location}/config\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConfig\u003c/code\u003e class has several properties such as \u003ccode\u003eConfigName\u003c/code\u003e, \u003ccode\u003eKmsKeyName\u003c/code\u003e, \u003ccode\u003eKmsKeyNameAsCryptoKeyName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eUpdateTime\u003c/code\u003e for managing the configuration and its details.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation provides different version of the API with the latest being \u003ccode\u003e1.4.0\u003c/code\u003e, and it can be accessed in the links provided.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class Config (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.Config)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.Config)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.Config)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.Config)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.Config) \n\n public sealed class Config : IMessage\u003cConfig\u003e, IEquatable\u003cConfig\u003e, IDeepCloneable\u003cConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class Config.\n\nMessage representing the config for the Speech-to-Text API. This includes an\noptional [KMS key](https://cloud.google.com/kms/docs/resource-hierarchy#keys)\nwith which incoming data will be encrypted. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Config \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Config](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Config](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Config](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config), [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.Speech.V2](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V2.dll\n\nConstructors\n------------\n\n### Config()\n\n public Config()\n\n### Config(Config)\n\n public Config(Config other)\n\nProperties\n----------\n\n### ConfigName\n\n public ConfigName ConfigName { get; set; }\n\n[ConfigName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.ConfigName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config#Google_Cloud_Speech_V2_Config_Name) resource name property.\n\n### KmsKeyName\n\n public string KmsKeyName { get; set; }\n\nOptional. An optional [KMS key\nname](https://cloud.google.com/kms/docs/resource-hierarchy#keys) that if\npresent, will be used to encrypt Speech-to-Text resources at-rest. Updating\nthis key will not encrypt existing resources using this key; only new\nresources will be encrypted using this key. The expected format is\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.\n\n### KmsKeyNameAsCryptoKeyName\n\n public CryptoKeyName KmsKeyNameAsCryptoKeyName { get; set; }\n\n[CryptoKeyName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CryptoKeyName)-typed view over the [KmsKeyName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.Config#Google_Cloud_Speech_V2_Config_KmsKeyName) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. Identifier. The name of the config resource. There is exactly\none config resource per project per location. The expected format is\n`projects/{project}/locations/{location}/config`.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The most recent time this resource was modified."]]