public sealed class CreateRecognizerRequest : IMessage<CreateRecognizerRequest>, IEquatable<CreateRecognizerRequest>, IDeepCloneable<CreateRecognizerRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class CreateRecognizerRequest.
Request message for the
[CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
[[["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 page provides reference documentation for the \u003ccode\u003eCreateRecognizerRequest\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCreateRecognizerRequest\u003c/code\u003e class is used to send a request to create a new recognizer via the \u003ccode\u003eCreateRecognizer\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class 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, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eCreateRecognizerRequest\u003c/code\u003e class include \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsLocationName\u003c/code\u003e, \u003ccode\u003eRecognizer\u003c/code\u003e, \u003ccode\u003eRecognizerId\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e, each serving a specific purpose in the recognizer creation process.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes details for several versions of the API, with version 1.4.0 being the latest, and the assembly is Google.Cloud.Speech.V2.dll.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class CreateRecognizerRequest (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.CreateRecognizerRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.CreateRecognizerRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.CreateRecognizerRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.CreateRecognizerRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.CreateRecognizerRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.CreateRecognizerRequest) \n\n public sealed class CreateRecognizerRequest : IMessage\u003cCreateRecognizerRequest\u003e, IEquatable\u003cCreateRecognizerRequest\u003e, IDeepCloneable\u003cCreateRecognizerRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class CreateRecognizerRequest.\n\nRequest message for the\n\\[CreateRecognizer\\]\\[google.cloud.speech.v2.Speech.CreateRecognizer\\] method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateRecognizerRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateRecognizerRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateRecognizerRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateRecognizerRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateRecognizerRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateRecognizerRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateRecognizerRequest), [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### CreateRecognizerRequest()\n\n public CreateRecognizerRequest()\n\n### CreateRecognizerRequest(CreateRecognizerRequest)\n\n public CreateRecognizerRequest(CreateRecognizerRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location where this Recognizer will be created.\nThe expected format is `projects/{project}/locations/{location}`.\n\n### ParentAsLocationName\n\n public LocationName ParentAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateRecognizerRequest#Google_Cloud_Speech_V2_CreateRecognizerRequest_Parent) resource name property.\n\n### Recognizer\n\n public Recognizer Recognizer { get; set; }\n\nRequired. The Recognizer to create.\n\n### RecognizerId\n\n public string RecognizerId { get; set; }\n\nThe ID to use for the Recognizer, which will become the final component of\nthe Recognizer's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nIf set, validate the request and preview the Recognizer, but do not\nactually create it."]]