public sealed class SpeechAdaptation.Types.AdaptationPhraseSet : IMessage<SpeechAdaptation.Types.AdaptationPhraseSet>, IEquatable<SpeechAdaptation.Types.AdaptationPhraseSet>, IDeepCloneable<SpeechAdaptation.Types.AdaptationPhraseSet>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechAdaptation.Types.AdaptationPhraseSet.
A biasing PhraseSet, which can be either a string referencing the name of
an existing PhraseSets resource, or an inline definition of a PhraseSet.
[[["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 documentation covers the \u003ccode\u003eSpeechAdaptation.Types.AdaptationPhraseSet\u003c/code\u003e class within the Google Cloud Speech-to-Text v2 API, which is used for biasing speech recognition.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdaptationPhraseSet\u003c/code\u003e class can be used to reference an existing \u003ccode\u003ePhraseSet\u003c/code\u003e resource by name or to define a \u003ccode\u003ePhraseSet\u003c/code\u003e inline.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base \u003ccode\u003eobject\u003c/code\u003e class and 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.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple available versions of the documentation including versions 1.4.0, 1.3.0, 1.2.0, 1.1.0, and 1.0.0, the latest version being 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAdaptationPhraseSet\u003c/code\u003e class provides properties like \u003ccode\u003eHasPhraseSet\u003c/code\u003e, \u003ccode\u003eInlinePhraseSet\u003c/code\u003e, \u003ccode\u003ePhraseSet\u003c/code\u003e, \u003ccode\u003ePhraseSetAsPhraseSetName\u003c/code\u003e, and \u003ccode\u003eValueCase\u003c/code\u003e to manage and understand the phrase set configuration.\u003c/p\u003e\n"]]],[],null,["# Cloud Speech-to-Text v2 API - Class SpeechAdaptation.Types.AdaptationPhraseSet (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.SpeechAdaptation.Types.AdaptationPhraseSet)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet) \n\n public sealed class SpeechAdaptation.Types.AdaptationPhraseSet : IMessage\u003cSpeechAdaptation.Types.AdaptationPhraseSet\u003e, IEquatable\u003cSpeechAdaptation.Types.AdaptationPhraseSet\u003e, IDeepCloneable\u003cSpeechAdaptation.Types.AdaptationPhraseSet\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Speech-to-Text v2 API class SpeechAdaptation.Types.AdaptationPhraseSet.\n\nA biasing PhraseSet, which can be either a string referencing the name of\nan existing PhraseSets resource, or an inline definition of a PhraseSet. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SpeechAdaptation.Types.AdaptationPhraseSet \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SpeechAdaptation](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet), [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### AdaptationPhraseSet()\n\n public AdaptationPhraseSet()\n\n### AdaptationPhraseSet(AdaptationPhraseSet)\n\n public AdaptationPhraseSet(SpeechAdaptation.Types.AdaptationPhraseSet other)\n\nProperties\n----------\n\n### HasPhraseSet\n\n public bool HasPhraseSet { get; }\n\nGets whether the \"phrase_set\" field is set\n\n### InlinePhraseSet\n\n public PhraseSet InlinePhraseSet { get; set; }\n\nAn inline defined PhraseSet.\n\n### PhraseSet\n\n public string PhraseSet { get; set; }\n\nThe name of an existing PhraseSet resource. The user must have read\naccess to the resource and it must not be deleted.\n\n### PhraseSetAsPhraseSetName\n\n public PhraseSetName PhraseSetAsPhraseSetName { get; set; }\n\n[PhraseSetName](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.PhraseSetName)-typed view over the [PhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet#Google_Cloud_Speech_V2_SpeechAdaptation_Types_AdaptationPhraseSet_PhraseSet) resource name property.\n\n### ValueCase\n\n public SpeechAdaptation.Types.AdaptationPhraseSet.ValueOneofCase ValueCase { get; }"]]