public sealed class CreatePhraseSetRequest : IMessage<CreatePhraseSetRequest>, IEquatable<CreatePhraseSetRequest>, IDeepCloneable<CreatePhraseSetRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class CreatePhraseSetRequest.
Request message for the
[CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] 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\u003eThe latest version of the \u003ccode\u003eCreatePhraseSetRequest\u003c/code\u003e class is 1.4.0, part of the Cloud Speech-to-Text v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class is used to send a request to create a new PhraseSet via the \u003ccode\u003eCreatePhraseSet\u003c/code\u003e method within the Speech API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCreatePhraseSetRequest\u003c/code\u003e inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying a parent project and location, the \u003ccode\u003ePhraseSet\u003c/code\u003e to be created, and a \u003ccode\u003ePhraseSetId\u003c/code\u003e, with an option to validate the request without creation.\u003c/p\u003e\n"],["\u003cp\u003eThere are also multiple previous versions available to be referenced, all the way down to version 1.0.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class CreatePhraseSetRequest (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.CreatePhraseSetRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.CreatePhraseSetRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.CreatePhraseSetRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.CreatePhraseSetRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.CreatePhraseSetRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.CreatePhraseSetRequest) \n\n public sealed class CreatePhraseSetRequest : IMessage\u003cCreatePhraseSetRequest\u003e, IEquatable\u003cCreatePhraseSetRequest\u003e, IDeepCloneable\u003cCreatePhraseSetRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class CreatePhraseSetRequest.\n\nRequest message for the\n\\[CreatePhraseSet\\]\\[google.cloud.speech.v2.Speech.CreatePhraseSet\\] method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreatePhraseSetRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreatePhraseSetRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreatePhraseSetRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreatePhraseSetRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreatePhraseSetRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreatePhraseSetRequest](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.CreatePhraseSetRequest), [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### CreatePhraseSetRequest()\n\n public CreatePhraseSetRequest()\n\n### CreatePhraseSetRequest(CreatePhraseSetRequest)\n\n public CreatePhraseSetRequest(CreatePhraseSetRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The project and location where this PhraseSet 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.CreatePhraseSetRequest#Google_Cloud_Speech_V2_CreatePhraseSetRequest_Parent) resource name property.\n\n### PhraseSet\n\n public PhraseSet PhraseSet { get; set; }\n\nRequired. The PhraseSet to create.\n\n### PhraseSetId\n\n public string PhraseSetId { get; set; }\n\nThe ID to use for the PhraseSet, which will become the final component of\nthe PhraseSet'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 PhraseSet, but do not\nactually create it."]]