# Google Cloud Speech v1p1beta1 API - Class CreateCustomClassRequest (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.CreateCustomClassRequest)
- [3.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/3.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest)
- [2.0.0-beta09](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/2.0.0-beta09/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest)

    public sealed class CreateCustomClassRequest : IMessage<CreateCustomClassRequest>, IEquatable<CreateCustomClassRequest>, IDeepCloneable<CreateCustomClassRequest>, IBufferMessage, IMessage

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

Message sent by the client for the `CreateCustomClass` method.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateCustomClassRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateCustomClassRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateCustomClassRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

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

## Namespace

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

## Assembly

Google.Cloud.Speech.V1P1Beta1.dll

## Constructors

### CreateCustomClassRequest()

    public CreateCustomClassRequest()

### CreateCustomClassRequest(CreateCustomClassRequest)

    public CreateCustomClassRequest(CreateCustomClassRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest` |

## Properties

### CustomClass

    public CustomClass CustomClass { get; set; }

Required. The custom class to create.

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

### CustomClassId

    public string CustomClassId { get; set; }

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.

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

### Parent

    public string Parent { get; set; }

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.

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

### ParentAsLocationName

    public LocationName ParentAsLocationName { get; set; }

[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Parent](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Speech.V1P1Beta1/latest/Google.Cloud.Speech.V1P1Beta1.CreateCustomClassRequest#Google_Cloud_Speech_V1P1Beta1_CreateCustomClassRequest_Parent) resource name property.

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