# Cloud Speech-to-Text v2 API - Class SpeechAdaptation.Types.AdaptationPhraseSet (1.8.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.8.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.7.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.6.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.5.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.4.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.3.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.2.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.1.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/1.0.0/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet)

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> SpeechAdaptation.Types.AdaptationPhraseSet

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SpeechAdaptation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](https://docs.cloud.google.com/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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](https://docs.cloud.google.com/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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types)[AdaptationPhraseSet](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Speech.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2)

## Assembly

Google.Cloud.Speech.V2.dll

## Constructors

### AdaptationPhraseSet()

    public AdaptationPhraseSet()

### AdaptationPhraseSet(AdaptationPhraseSet)

    public AdaptationPhraseSet(SpeechAdaptation.Types.AdaptationPhraseSet other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet` |

## Properties

### HasPhraseSet

    public bool HasPhraseSet { get; }

Gets whether the "phrase_set" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### InlinePhraseSet

    public PhraseSet InlinePhraseSet { get; set; }

An inline defined PhraseSet.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.PhraseSet` |   |

### PhraseSet

    public string PhraseSet { get; set; }

The name of an existing PhraseSet resource. The user must have read
access to the resource and it must not be deleted.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PhraseSetAsPhraseSetName

    public PhraseSetName PhraseSetAsPhraseSetName { get; set; }

[PhraseSetName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.PhraseSetName)-typed view over the [PhraseSet](https://docs.cloud.google.com/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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.PhraseSetName` |   |

### ValueCase

    public SpeechAdaptation.Types.AdaptationPhraseSet.ValueOneofCase ValueCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSethttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V2/latest/Google.Cloud.Speech.V2.SpeechAdaptation.Types.AdaptationPhraseSet.ValueOneofCase` |   |