# Google Cloud Speech v1p1beta1 API - Class AdaptationClient (3.0.0-beta10)

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

- [3.0.0-beta10 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient)
- [3.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.AdaptationClient)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.AdaptationClient)

    public abstract class AdaptationClient

Reference documentation and code samples for the Google Cloud Speech v1p1beta1 API class AdaptationClient.

Adaptation client wrapper, for convenient use.

## Inheritance

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

## 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.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Derived Types

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

## Namespace

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

## Assembly

Google.Cloud.Speech.V1P1Beta1.dll

## Remarks

Service that implements Google Cloud Speech Adaptation API.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the Adaptation service, which is a host of "speech.googleapis.com" and a port of
443.

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

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default Adaptation scopes.

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

**Remarks** The default Adaptation scopes are:

- <https://www.googleapis.com/auth/cloud-platform>

<br />

### GrpcClient

    public virtual Adaptation.AdaptationClient GrpcClient { get; }

The underlying gRPC Adaptation client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Adaptationhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.Adaptation.AdaptationClient` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### Create()

    public static AdaptationClient Create()

Synchronously creates a [AdaptationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient) using the default credentials, endpoint and settings.
To specify custom credentials or other settings, use [AdaptationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient` | The created [AdaptationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient). |

### CreateAsync(CancellationToken)

    public static Task<AdaptationClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [AdaptationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [AdaptationClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient` | The task representing the created [AdaptationClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient). |

### CreateCustomClass(LocationName, CustomClass, string, CallSettings)

    public virtual CustomClass CreateCustomClass(LocationName parent, CustomClass customClass, string customClassId, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = adaptationClient.CreateCustomClass(parent, customClass, customClassId);

### CreateCustomClass(CreateCustomClassRequest, CallSettings)

    public virtual CustomClass CreateCustomClass(CreateCustomClassRequest request, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    CreateCustomClassRequest request = new CreateCustomClassRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CustomClassId = "",
        CustomClass = new CustomClass(),
    };
    // Make the request
    CustomClass response = adaptationClient.CreateCustomClass(request);

### CreateCustomClass(string, CustomClass, string, CallSettings)

    public virtual CustomClass CreateCustomClass(string parent, CustomClass customClass, string customClassId, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = adaptationClient.CreateCustomClass(parent, customClass, customClassId);

### CreateCustomClassAsync(LocationName, CustomClass, string, CallSettings)

    public virtual Task<CustomClass> CreateCustomClassAsync(LocationName parent, CustomClass customClass, string customClassId, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(parent, customClass, customClassId);

### CreateCustomClassAsync(LocationName, CustomClass, string, CancellationToken)

    public virtual Task<CustomClass> CreateCustomClassAsync(LocationName parent, CustomClass customClass, string customClassId, CancellationToken cancellationToken)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(parent, customClass, customClassId);

### CreateCustomClassAsync(CreateCustomClassRequest, CallSettings)

    public virtual Task<CustomClass> CreateCustomClassAsync(CreateCustomClassRequest request, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CreateCustomClassRequest request = new CreateCustomClassRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CustomClassId = "",
        CustomClass = new CustomClass(),
    };
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(request);

### CreateCustomClassAsync(CreateCustomClassRequest, CancellationToken)

    public virtual Task<CustomClass> CreateCustomClassAsync(CreateCustomClassRequest request, CancellationToken cancellationToken)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CreateCustomClassRequest request = new CreateCustomClassRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        CustomClassId = "",
        CustomClass = new CustomClass(),
    };
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(request);

### CreateCustomClassAsync(string, CustomClass, string, CallSettings)

    public virtual Task<CustomClass> CreateCustomClassAsync(string parent, CustomClass customClass, string customClassId, CallSettings callSettings = null)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(parent, customClass, customClassId);

### CreateCustomClassAsync(string, CustomClass, string, CancellationToken)

    public virtual Task<CustomClass> CreateCustomClassAsync(string parent, CustomClass customClass, string customClassId, CancellationToken cancellationToken)

Create a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this custom class will be created. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to create. |
| `customClassId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the custom class, which will become the final component of the custom class' resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    CustomClass customClass = new CustomClass();
    string customClassId = "";
    // Make the request
    CustomClass response = await adaptationClient.CreateCustomClassAsync(parent, customClass, customClassId);

### CreatePhraseSet(LocationName, PhraseSet, string, CallSettings)

    public virtual PhraseSet CreatePhraseSet(LocationName parent, PhraseSet phraseSet, string phraseSetId, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = adaptationClient.CreatePhraseSet(parent, phraseSet, phraseSetId);

### CreatePhraseSet(CreatePhraseSetRequest, CallSettings)

    public virtual PhraseSet CreatePhraseSet(CreatePhraseSetRequest request, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    CreatePhraseSetRequest request = new CreatePhraseSetRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PhraseSetId = "",
        PhraseSet = new PhraseSet(),
    };
    // Make the request
    PhraseSet response = adaptationClient.CreatePhraseSet(request);

### CreatePhraseSet(string, PhraseSet, string, CallSettings)

    public virtual PhraseSet CreatePhraseSet(string parent, PhraseSet phraseSet, string phraseSetId, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = adaptationClient.CreatePhraseSet(parent, phraseSet, phraseSetId);

### CreatePhraseSetAsync(LocationName, PhraseSet, string, CallSettings)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(LocationName parent, PhraseSet phraseSet, string phraseSetId, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(parent, phraseSet, phraseSetId);

### CreatePhraseSetAsync(LocationName, PhraseSet, string, CancellationToken)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(LocationName parent, PhraseSet phraseSet, string phraseSetId, CancellationToken cancellationToken)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(parent, phraseSet, phraseSetId);

### CreatePhraseSetAsync(CreatePhraseSetRequest, CallSettings)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(CreatePhraseSetRequest request, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CreatePhraseSetRequest request = new CreatePhraseSetRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PhraseSetId = "",
        PhraseSet = new PhraseSet(),
    };
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(request);

### CreatePhraseSetAsync(CreatePhraseSetRequest, CancellationToken)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(CreatePhraseSetRequest request, CancellationToken cancellationToken)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CreatePhraseSetRequest request = new CreatePhraseSetRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        PhraseSetId = "",
        PhraseSet = new PhraseSet(),
    };
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(request);

### CreatePhraseSetAsync(string, PhraseSet, string, CallSettings)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(string parent, PhraseSet phraseSet, string phraseSetId, CallSettings callSettings = null)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(parent, phraseSet, phraseSetId);

### CreatePhraseSetAsync(string, PhraseSet, string, CancellationToken)

    public virtual Task<PhraseSet> CreatePhraseSetAsync(string parent, PhraseSet phraseSet, string phraseSetId, CancellationToken cancellationToken)

Create a set of phrase hints. Each item in the set can be a single word or
a multi-word phrase. The items in the PhraseSet are favored by the
recognition model when you send a call that includes the PhraseSet.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent resource where this phrase set will be created. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to create. |
| `phraseSetId` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name. This value should restrict to letters, numbers, and hyphens, with the first character a letter, the last a letter or a number, and be 4-63 characters. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    PhraseSet phraseSet = new PhraseSet();
    string phraseSetId = "";
    // Make the request
    PhraseSet response = await adaptationClient.CreatePhraseSetAsync(parent, phraseSet, phraseSetId);

### DeleteCustomClass(CustomClassName, CallSettings)

    public virtual void DeleteCustomClass(CustomClassName name, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    adaptationClient.DeleteCustomClass(name);

### DeleteCustomClass(DeleteCustomClassRequest, CallSettings)

    public virtual void DeleteCustomClass(DeleteCustomClassRequest request, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeleteCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    DeleteCustomClassRequest request = new DeleteCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    adaptationClient.DeleteCustomClass(request);

### DeleteCustomClass(string, CallSettings)

    public virtual void DeleteCustomClass(string name, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    adaptationClient.DeleteCustomClass(name);

### DeleteCustomClassAsync(CustomClassName, CallSettings)

    public virtual Task DeleteCustomClassAsync(CustomClassName name, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(name);

### DeleteCustomClassAsync(CustomClassName, CancellationToken)

    public virtual Task DeleteCustomClassAsync(CustomClassName name, CancellationToken cancellationToken)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(name);

### DeleteCustomClassAsync(DeleteCustomClassRequest, CallSettings)

    public virtual Task DeleteCustomClassAsync(DeleteCustomClassRequest request, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeleteCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    DeleteCustomClassRequest request = new DeleteCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(request);

### DeleteCustomClassAsync(DeleteCustomClassRequest, CancellationToken)

    public virtual Task DeleteCustomClassAsync(DeleteCustomClassRequest request, CancellationToken cancellationToken)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeleteCustomClassRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    DeleteCustomClassRequest request = new DeleteCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(request);

### DeleteCustomClassAsync(string, CallSettings)

    public virtual Task DeleteCustomClassAsync(string name, CallSettings callSettings = null)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(name);

### DeleteCustomClassAsync(string, CancellationToken)

    public virtual Task DeleteCustomClassAsync(string name, CancellationToken cancellationToken)

Delete a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to delete. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    await adaptationClient.DeleteCustomClassAsync(name);

### DeletePhraseSet(DeletePhraseSetRequest, CallSettings)

    public virtual void DeletePhraseSet(DeletePhraseSetRequest request, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeletePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    DeletePhraseSetRequest request = new DeletePhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    adaptationClient.DeletePhraseSet(request);

### DeletePhraseSet(PhraseSetName, CallSettings)

    public virtual void DeletePhraseSet(PhraseSetName name, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    adaptationClient.DeletePhraseSet(name);

### DeletePhraseSet(string, CallSettings)

    public virtual void DeletePhraseSet(string name, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    adaptationClient.DeletePhraseSet(name);

### DeletePhraseSetAsync(DeletePhraseSetRequest, CallSettings)

    public virtual Task DeletePhraseSetAsync(DeletePhraseSetRequest request, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeletePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    DeletePhraseSetRequest request = new DeletePhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(request);

### DeletePhraseSetAsync(DeletePhraseSetRequest, CancellationToken)

    public virtual Task DeletePhraseSetAsync(DeletePhraseSetRequest request, CancellationToken cancellationToken)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.DeletePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    DeletePhraseSetRequest request = new DeletePhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(request);

### DeletePhraseSetAsync(PhraseSetName, CallSettings)

    public virtual Task DeletePhraseSetAsync(PhraseSetName name, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(name);

### DeletePhraseSetAsync(PhraseSetName, CancellationToken)

    public virtual Task DeletePhraseSetAsync(PhraseSetName name, CancellationToken cancellationToken)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(name);

### DeletePhraseSetAsync(string, CallSettings)

    public virtual Task DeletePhraseSetAsync(string name, CallSettings callSettings = null)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(name);

### DeletePhraseSetAsync(string, CancellationToken)

    public virtual Task DeletePhraseSetAsync(string name, CancellationToken cancellationToken)

Delete a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to delete. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    await adaptationClient.DeletePhraseSetAsync(name);

### GetCustomClass(CustomClassName, CallSettings)

    public virtual CustomClass GetCustomClass(CustomClassName name, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    CustomClass response = adaptationClient.GetCustomClass(name);

### GetCustomClass(GetCustomClassRequest, CallSettings)

    public virtual CustomClass GetCustomClass(GetCustomClassRequest request, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    GetCustomClassRequest request = new GetCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    CustomClass response = adaptationClient.GetCustomClass(request);

### GetCustomClass(string, CallSettings)

    public virtual CustomClass GetCustomClass(string name, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    CustomClass response = adaptationClient.GetCustomClass(name);

### GetCustomClassAsync(CustomClassName, CallSettings)

    public virtual Task<CustomClass> GetCustomClassAsync(CustomClassName name, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(name);

### GetCustomClassAsync(CustomClassName, CancellationToken)

    public virtual Task<CustomClass> GetCustomClassAsync(CustomClassName name, CancellationToken cancellationToken)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClassName` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClassName name = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]");
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(name);

### GetCustomClassAsync(GetCustomClassRequest, CallSettings)

    public virtual Task<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    GetCustomClassRequest request = new GetCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(request);

### GetCustomClassAsync(GetCustomClassRequest, CancellationToken)

    public virtual Task<CustomClass> GetCustomClassAsync(GetCustomClassRequest request, CancellationToken cancellationToken)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetCustomClassRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    GetCustomClassRequest request = new GetCustomClassRequest
    {
        CustomClassName = CustomClassName.FromProjectLocationCustomClass("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"),
    };
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(request);

### GetCustomClassAsync(string, CallSettings)

    public virtual Task<CustomClass> GetCustomClassAsync(string name, CallSettings callSettings = null)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(name);

### GetCustomClassAsync(string, CancellationToken)

    public virtual Task<CustomClass> GetCustomClassAsync(string name, CancellationToken cancellationToken)

Get a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the custom class to retrieve. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/customClasses/[CUSTOM_CLASS]";
    // Make the request
    CustomClass response = await adaptationClient.GetCustomClassAsync(name);

### GetPhraseSet(GetPhraseSetRequest, CallSettings)

    public virtual PhraseSet GetPhraseSet(GetPhraseSetRequest request, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetPhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    GetPhraseSetRequest request = new GetPhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    PhraseSet response = adaptationClient.GetPhraseSet(request);

### GetPhraseSet(PhraseSetName, CallSettings)

    public virtual PhraseSet GetPhraseSet(PhraseSetName name, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    PhraseSet response = adaptationClient.GetPhraseSet(name);

### GetPhraseSet(string, CallSettings)

    public virtual PhraseSet GetPhraseSet(string name, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    PhraseSet response = adaptationClient.GetPhraseSet(name);

### GetPhraseSetAsync(GetPhraseSetRequest, CallSettings)

    public virtual Task<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetPhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    GetPhraseSetRequest request = new GetPhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(request);

### GetPhraseSetAsync(GetPhraseSetRequest, CancellationToken)

    public virtual Task<PhraseSet> GetPhraseSetAsync(GetPhraseSetRequest request, CancellationToken cancellationToken)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.GetPhraseSetRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    GetPhraseSetRequest request = new GetPhraseSetRequest
    {
        PhraseSetName = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"),
    };
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(request);

### GetPhraseSetAsync(PhraseSetName, CallSettings)

    public virtual Task<PhraseSet> GetPhraseSetAsync(PhraseSetName name, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(name);

### GetPhraseSetAsync(PhraseSetName, CancellationToken)

    public virtual Task<PhraseSet> GetPhraseSetAsync(PhraseSetName name, CancellationToken cancellationToken)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSetName` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSetName name = PhraseSetName.FromProjectLocationPhraseSet("[PROJECT]", "[LOCATION]", "[PHRASE_SET]");
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(name);

### GetPhraseSetAsync(string, CallSettings)

    public virtual Task<PhraseSet> GetPhraseSetAsync(string name, CallSettings callSettings = null)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(name);

### GetPhraseSetAsync(string, CancellationToken)

    public virtual Task<PhraseSet> GetPhraseSetAsync(string name, CancellationToken cancellationToken)

Get a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the phrase set to retrieve. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/phraseSets/[PHRASE_SET]";
    // Make the request
    PhraseSet response = await adaptationClient.GetPhraseSetAsync(name);

### ListCustomClasses(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClasses(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClasses(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (CustomClass item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCustomClassesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCustomClasses(ListCustomClassesRequest, CallSettings)

    public virtual PagedEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClasses(ListCustomClassesRequest request, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    ListCustomClassesRequest request = new ListCustomClassesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    PagedEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClasses(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (CustomClass item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCustomClassesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCustomClasses(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClasses(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClasses(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (CustomClass item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListCustomClassesResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCustomClassesAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClassesAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable asynchronous sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClassesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((CustomClass item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCustomClassesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCustomClassesAsync(ListCustomClassesRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClassesAsync(ListCustomClassesRequest request, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable asynchronous sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    ListCustomClassesRequest request = new ListCustomClassesRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClassesAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((CustomClass item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCustomClassesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListCustomClassesAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> ListCustomClassesAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List custom classes.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent, which owns this collection of custom classes. Format: `projects/{project}/locations/{location}/customClasses` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListCustomClassesResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A pageable asynchronous sequence of [CustomClass](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListCustomClassesResponse, CustomClass> response = adaptationClient.ListCustomClassesAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((CustomClass item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListCustomClassesResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (CustomClass item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<CustomClass> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (CustomClass item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSet(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSet(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent, which owns this collection of phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSet(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PhraseSet item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPhraseSetResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSet(ListPhraseSetRequest, CallSettings)

    public virtual PagedEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSet(ListPhraseSetRequest request, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    ListPhraseSetRequest request = new ListPhraseSetRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    PagedEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSet(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PhraseSet item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPhraseSetResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSet(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSet(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent, which owns this collection of phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSet(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (PhraseSet item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (ListPhraseSetResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSetAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSetAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The parent, which owns this collection of phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable asynchronous sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSetAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PhraseSet item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPhraseSetResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSetAsync(ListPhraseSetRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSetAsync(ListPhraseSetRequest request, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable asynchronous sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    ListPhraseSetRequest request = new ListPhraseSetRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
    };
    // Make the request
    PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSetAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PhraseSet item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPhraseSetResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListPhraseSetAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> ListPhraseSetAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

List phrase sets.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The parent, which owns this collection of phrase set. Format: `projects/{project}/locations/{location}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.ListPhraseSetResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A pageable asynchronous sequence of [PhraseSet](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet) resources. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListPhraseSetResponse, PhraseSet> response = adaptationClient.ListPhraseSetAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await response.ForEachAsync((PhraseSet item) =>
    {
        // Do something with each item
        Console.WriteLine(item);
    });

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await response.AsRawResponses().ForEachAsync((ListPhraseSetResponse page) =>
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (PhraseSet item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    });

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<PhraseSet> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (PhraseSet item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient#Google_Cloud_Speech_V1P1Beta1_AdaptationClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient#Google_Cloud_Speech_V1P1Beta1_AdaptationClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient#Google_Cloud_Speech_V1P1Beta1_AdaptationClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.AdaptationClient#Google_Cloud_Speech_V1P1Beta1_AdaptationClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateCustomClass(CustomClass, FieldMask, CallSettings)

    public virtual CustomClass UpdateCustomClass(CustomClass customClass, FieldMask updateMask, CallSettings callSettings = null)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to update. The custom class's `name` field is used to identify the custom class to be updated. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    CustomClass customClass = new CustomClass();
    FieldMask updateMask = new FieldMask();
    // Make the request
    CustomClass response = adaptationClient.UpdateCustomClass(customClass, updateMask);

### UpdateCustomClass(UpdateCustomClassRequest, CallSettings)

    public virtual CustomClass UpdateCustomClass(UpdateCustomClassRequest request, CallSettings callSettings = null)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    UpdateCustomClassRequest request = new UpdateCustomClassRequest
    {
        CustomClass = new CustomClass(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    CustomClass response = adaptationClient.UpdateCustomClass(request);

### UpdateCustomClassAsync(CustomClass, FieldMask, CallSettings)

    public virtual Task<CustomClass> UpdateCustomClassAsync(CustomClass customClass, FieldMask updateMask, CallSettings callSettings = null)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to update. The custom class's `name` field is used to identify the custom class to be updated. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClass customClass = new CustomClass();
    FieldMask updateMask = new FieldMask();
    // Make the request
    CustomClass response = await adaptationClient.UpdateCustomClassAsync(customClass, updateMask);

### UpdateCustomClassAsync(CustomClass, FieldMask, CancellationToken)

    public virtual Task<CustomClass> UpdateCustomClassAsync(CustomClass customClass, FieldMask updateMask, CancellationToken cancellationToken)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `customClass` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` Required. The custom class to update. The custom class's `name` field is used to identify the custom class to be updated. Format: `projects/{project}/locations/{location}/customClasses/{custom_class}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    CustomClass customClass = new CustomClass();
    FieldMask updateMask = new FieldMask();
    // Make the request
    CustomClass response = await adaptationClient.UpdateCustomClassAsync(customClass, updateMask);

### UpdateCustomClassAsync(UpdateCustomClassRequest, CallSettings)

    public virtual Task<CustomClass> UpdateCustomClassAsync(UpdateCustomClassRequest request, CallSettings callSettings = null)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    UpdateCustomClassRequest request = new UpdateCustomClassRequest
    {
        CustomClass = new CustomClass(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    CustomClass response = await adaptationClient.UpdateCustomClassAsync(request);

### UpdateCustomClassAsync(UpdateCustomClassRequest, CancellationToken)

    public virtual Task<CustomClass> UpdateCustomClassAsync(UpdateCustomClassRequest request, CancellationToken cancellationToken)

Update a custom class.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdateCustomClassRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CustomClass` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    UpdateCustomClassRequest request = new UpdateCustomClassRequest
    {
        CustomClass = new CustomClass(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    CustomClass response = await adaptationClient.UpdateCustomClassAsync(request);

### UpdatePhraseSet(PhraseSet, FieldMask, CallSettings)

    public virtual PhraseSet UpdatePhraseSet(PhraseSet phraseSet, FieldMask updateMask, CallSettings callSettings = null)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to update. The phrase set's `name` field is used to identify the set to be updated. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    PhraseSet phraseSet = new PhraseSet();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PhraseSet response = adaptationClient.UpdatePhraseSet(phraseSet, updateMask);

### UpdatePhraseSet(UpdatePhraseSetRequest, CallSettings)

    public virtual PhraseSet UpdatePhraseSet(UpdatePhraseSetRequest request, CallSettings callSettings = null)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | The RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = AdaptationClient.Create();
    // Initialize request argument(s)
    UpdatePhraseSetRequest request = new UpdatePhraseSetRequest
    {
        PhraseSet = new PhraseSet(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PhraseSet response = adaptationClient.UpdatePhraseSet(request);

### UpdatePhraseSetAsync(PhraseSet, FieldMask, CallSettings)

    public virtual Task<PhraseSet> UpdatePhraseSetAsync(PhraseSet phraseSet, FieldMask updateMask, CallSettings callSettings = null)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to update. The phrase set's `name` field is used to identify the set to be updated. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSet phraseSet = new PhraseSet();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PhraseSet response = await adaptationClient.UpdatePhraseSetAsync(phraseSet, updateMask);

### UpdatePhraseSetAsync(PhraseSet, FieldMask, CancellationToken)

    public virtual Task<PhraseSet> UpdatePhraseSetAsync(PhraseSet phraseSet, FieldMask updateMask, CancellationToken cancellationToken)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `phraseSet` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` Required. The phrase set to update. The phrase set's `name` field is used to identify the set to be updated. Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}` Speech-to-Text supports three locations: `global`, `us` (US North America), and `eu` (Europe). If you are calling the `speech.googleapis.com` endpoint, use the `global` location. To specify a region, use a [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints) with matching `us` or `eu` location value. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` The list of fields to be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    PhraseSet phraseSet = new PhraseSet();
    FieldMask updateMask = new FieldMask();
    // Make the request
    PhraseSet response = await adaptationClient.UpdatePhraseSetAsync(phraseSet, updateMask);

### UpdatePhraseSetAsync(UpdatePhraseSetRequest, CallSettings)

    public virtual Task<PhraseSet> UpdatePhraseSetAsync(UpdatePhraseSetRequest request, CallSettings callSettings = null)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    UpdatePhraseSetRequest request = new UpdatePhraseSetRequest
    {
        PhraseSet = new PhraseSet(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PhraseSet response = await adaptationClient.UpdatePhraseSetAsync(request);

### UpdatePhraseSetAsync(UpdatePhraseSetRequest, CancellationToken)

    public virtual Task<PhraseSet> UpdatePhraseSetAsync(UpdatePhraseSetRequest request, CancellationToken cancellationToken)

Update a phrase set.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.UpdatePhraseSetRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.PhraseSet` | A Task containing the RPC response. |

**Example**

    // Create client
    AdaptationClient adaptationClient = await AdaptationClient.CreateAsync();
    // Initialize request argument(s)
    UpdatePhraseSetRequest request = new UpdatePhraseSetRequest
    {
        PhraseSet = new PhraseSet(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    PhraseSet response = await adaptationClient.UpdatePhraseSetAsync(request);