# Cloud Speech-to-Text V1 API - Class Google::Cloud::Speech::V1::CreateCustomClassRequest (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.17.0 0.16.2 0.15.0 0.14.0 0.13.1 0.12.1 0.11.0 0.10.2 0.9.0 0.8.0 0.7.3 Reference documentation and code samples for the Cloud Speech-to-Text V1 API class Google::Cloud::Speech::V1::CreateCustomClassRequest.

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

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #custom_class

    def custom_class() -> ::Google::Cloud::Speech::V1::CustomClass

**Returns**

- ([::Google::Cloud::Speech::V1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-CustomClass)) --- Required. The custom class to create.

### #custom_class=

    def custom_class=(value) -> ::Google::Cloud::Speech::V1::CustomClass

**Parameter**

- **value** ([::Google::Cloud::Speech::V1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-CustomClass)) --- Required. The custom class to create.
**Returns**

- ([::Google::Cloud::Speech::V1::CustomClass](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v1/latest/Google-Cloud-Speech-V1-CustomClass)) --- Required. The custom class to create.

### #custom_class_id

    def custom_class_id() -> ::String

**Returns**

- (::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.

### #custom_class_id=

    def custom_class_id=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.

### #parent

    def parent() -> ::String

**Returns**

- (::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.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::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.
**Returns**

- (::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.