public MapField<string, string> Annotations { get; }
Output only. Allows users to store small amounts of arbitrary data.
Both the key and the value must be 63 characters or less each.
At most 100 annotations.
This field is not used.
Hint Boost. Positive value will increase the probability that a specific
phrase will be recognized over other similar sounding phrases. The higher
the boost, the higher the chance of false positive recognition as well.
Negative boost values would correspond to anti-biasing. Anti-biasing is not
enabled, so negative boost will simply be ignored. Though boost can
accept a wide range of positive values, most use cases are best served with
values between 0 (exclusive) and 20. We recommend using a binary search
approach to finding the optimal value for your use case as well as adding
phrases both with and without boost to your requests.
Output only. This checksum is computed by the server based on the value of
other fields. This may be sent on update, undelete, and delete requests to
ensure the client has an up-to-date value before proceeding. This field is
not used.
Output only. The KMS key
name with which
the content of the PhraseSet is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}.
Output only. The KMS key version
name
with which content of the PhraseSet is encrypted. The expected format is
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}.
[[["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\u003ePhraseSet\u003c/code\u003e class in the Google Cloud Speech v1p1beta1 API provides hints to the speech recognizer to favor specific words and phrases.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003ePhraseSet\u003c/code\u003e is 3.0.0-beta08, with previous versions such as 3.0.0-beta07 and 2.0.0-beta09 also available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePhraseSet\u003c/code\u003e contains properties such as \u003ccode\u003eBoost\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePhraseSetName\u003c/code\u003e, and \u003ccode\u003ePhrases\u003c/code\u003e to configure the specific phrases to be favored.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBoost\u003c/code\u003e property allows you to adjust the probability of specific phrases being recognized, with higher values increasing the chance of recognition but potentially also false positives.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePhraseSet\u003c/code\u003e class has constructors to create a new \u003ccode\u003ePhraseSet\u003c/code\u003e or copy an existing one.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Speech v1p1beta1 API - Class PhraseSet (3.0.0-beta09)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta09 (latest)](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet)\n- [3.0.0-beta08](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta08/Google.Cloud.Speech.V1P1Beta1.PhraseSet)\n- [2.0.0-beta09](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.PhraseSet) \n\n public sealed class PhraseSet : IMessage\u003cPhraseSet\u003e, IEquatable\u003cPhraseSet\u003e, IDeepCloneable\u003cPhraseSet\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Speech v1p1beta1 API class PhraseSet.\n\nProvides \"hints\" to the speech recognizer to favor specific words and phrases\nin the results. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PhraseSet \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PhraseSet](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet), [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.V1P1Beta1](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Speech.V1P1Beta1.dll\n\nConstructors\n------------\n\n### PhraseSet()\n\n public PhraseSet()\n\n### PhraseSet(PhraseSet)\n\n public PhraseSet(PhraseSet other)\n\nProperties\n----------\n\n### Annotations\n\n public MapField\u003cstring, string\u003e Annotations { get; }\n\nOutput only. Allows users to store small amounts of arbitrary data.\nBoth the key and the value must be 63 characters or less each.\nAt most 100 annotations.\nThis field is not used.\n\n### Boost\n\n public float Boost { get; set; }\n\nHint Boost. Positive value will increase the probability that a specific\nphrase will be recognized over other similar sounding phrases. The higher\nthe boost, the higher the chance of false positive recognition as well.\nNegative boost values would correspond to anti-biasing. Anti-biasing is not\nenabled, so negative boost will simply be ignored. Though `boost` can\naccept a wide range of positive values, most use cases are best served with\nvalues between 0 (exclusive) and 20. We recommend using a binary search\napproach to finding the optimal value for your use case as well as adding\nphrases both with and without boost to your requests.\n\n### DeleteTime\n\n public Timestamp DeleteTime { get; set; }\n\nOutput only. The time at which this resource was requested for deletion.\nThis field is not used.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nOutput only. User-settable, human-readable name for the PhraseSet. Must be\n63 characters or less. This field is not used.\n\n### Etag\n\n public string Etag { get; set; }\n\nOutput only. This checksum is computed by the server based on the value of\nother fields. This may be sent on update, undelete, and delete requests to\nensure the client has an up-to-date value before proceeding. This field is\nnot used.\n\n### ExpireTime\n\n public Timestamp ExpireTime { get; set; }\n\nOutput only. The time at which this resource will be purged.\nThis field is not used.\n\n### KmsKeyName\n\n public string KmsKeyName { get; set; }\n\nOutput only. The [KMS key\nname](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which\nthe content of the PhraseSet is encrypted. 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.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CryptoKeyName)-typed view over the [KmsKeyName](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet#Google_Cloud_Speech_V1P1Beta1_PhraseSet_KmsKeyName) resource name property.\n\n### KmsKeyVersionName\n\n public string KmsKeyVersionName { get; set; }\n\nOutput only. The [KMS key version\nname](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)\nwith which content of the PhraseSet is encrypted. The expected format is\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.\n\n### KmsKeyVersionNameAsCryptoKeyVersionName\n\n public CryptoKeyVersionName KmsKeyVersionNameAsCryptoKeyVersionName { get; set; }\n\n[CryptoKeyVersionName](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CryptoKeyVersionName)-typed view over the [KmsKeyVersionName](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet#Google_Cloud_Speech_V1P1Beta1_PhraseSet_KmsKeyVersionName) resource name\nproperty.\n\n### Name\n\n public string Name { get; set; }\n\nThe resource name of the phrase set.\n\n### PhraseSetName\n\n public PhraseSetName PhraseSetName { get; set; }\n\n[PhraseSetName](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet#Google_Cloud_Speech_V1P1Beta1_PhraseSet_Name) resource name property.\n\n### Phrases\n\n public RepeatedField\u003cPhraseSet.Types.Phrase\u003e Phrases { get; }\n\nA list of word and phrases.\n\n### Reconciling\n\n public bool Reconciling { get; set; }\n\nOutput only. Whether or not this PhraseSet is in the process of being\nupdated. This field is not used.\n\n### State\n\n public PhraseSet.Types.State State { get; set; }\n\nOutput only. The CustomClass lifecycle state.\nThis field is not used.\n\n### Uid\n\n public string Uid { get; set; }\n\nOutput only. System-assigned unique identifier for the PhraseSet.\nThis field is not used."]]