public sealed class CreateCustomClassRequest : IMessage<CreateCustomClassRequest>, IEquatable<CreateCustomClassRequest>, IDeepCloneable<CreateCustomClassRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class CreateCustomClassRequest.
Request message for the
[CreateCustomClass][google.cloud.speech.v2.Speech.CreateCustomClass] method.
[[["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-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eCreateCustomClassRequest\u003c/code\u003e class is used to create a request for the Cloud Speech-to-Text v2 API's \u003ccode\u003eCreateCustomClass\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\u003eIt requires specifying the \u003ccode\u003eCustomClass\u003c/code\u003e to be created, the desired \u003ccode\u003eCustomClassId\u003c/code\u003e, and the \u003ccode\u003eParent\u003c/code\u003e project and location.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eCustomClass\u003c/code\u003e, \u003ccode\u003eCustomClassId\u003c/code\u003e, \u003ccode\u003eParent\u003c/code\u003e, \u003ccode\u003eParentAsLocationName\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e for configuring the request.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 1.4.0 while previous versions include 1.3.0, 1.2.0, 1.1.0 and 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class CreateCustomClassRequest (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.CreateCustomClassRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.CreateCustomClassRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.CreateCustomClassRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.CreateCustomClassRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.CreateCustomClassRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.CreateCustomClassRequest) \n\n public sealed class CreateCustomClassRequest : IMessage\u003cCreateCustomClassRequest\u003e, IEquatable\u003cCreateCustomClassRequest\u003e, IDeepCloneable\u003cCreateCustomClassRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class CreateCustomClassRequest.\n\nRequest message for the\n\\[CreateCustomClass\\]\\[google.cloud.speech.v2.Speech.CreateCustomClass\\] method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateCustomClassRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateCustomClassRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateCustomClassRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateCustomClassRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateCustomClassRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateCustomClassRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreateCustomClassRequest), [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### CreateCustomClassRequest()\n\n public CreateCustomClassRequest()\n\n### CreateCustomClassRequest(CreateCustomClassRequest)\n\n public CreateCustomClassRequest(CreateCustomClassRequest other)\n\nProperties\n----------\n\n### CustomClass\n\n public CustomClass CustomClass { get; set; }\n\nRequired. The CustomClass to create.\n\n### CustomClassId\n\n public string CustomClassId { get; set; }\n\nThe ID to use for the CustomClass, which will become the final component of\nthe CustomClass's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location where this CustomClass 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.CreateCustomClassRequest#Google_Cloud_Speech_V2_CreateCustomClassRequest_Parent) resource name property.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nIf set, validate the request and preview the CustomClass, but do not\nactually create it."]]