(::String) — The ID to use for the CustomClass, which will become the final component of
the CustomClass's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
#custom_class_id=
defcustom_class_id=(value)->::String
Parameter
value (::String) — The ID to use for the CustomClass, which will become the final component of
the CustomClass's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
Returns
(::String) — The ID to use for the CustomClass, which will become the final component of
the CustomClass's resource name.
This value should be 4-63 characters, and valid characters
are /[a-z][0-9]-/.
#parent
defparent()->::String
Returns
(::String) — Required. The project and location where this CustomClass will be created.
The expected format is projects/{project}/locations/{location}.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The project and location where this CustomClass will be created.
The expected format is projects/{project}/locations/{location}.
Returns
(::String) — Required. The project and location where this CustomClass will be created.
The expected format is projects/{project}/locations/{location}.
#validate_only
defvalidate_only()->::Boolean
Returns
(::Boolean) — If set, validate the request and preview the CustomClass, but do not
actually create it.
#validate_only=
defvalidate_only=(value)->::Boolean
Parameter
value (::Boolean) — If set, validate the request and preview the CustomClass, but do not
actually create it.
Returns
(::Boolean) — If set, validate the request and preview the CustomClass, but do not
actually create it.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::CreateCustomClassRequest (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-CreateCustomClassRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-CreateCustomClassRequest) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::CreateCustomClassRequest.\n\nRequest message for the\n[CreateCustomClass](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Client#Google__Cloud__Speech__V2__Speech__Client_create_custom_class_instance_ \"Google::Cloud::Speech::V2::Speech::Client#create_custom_class (method)\") method. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #custom_class\n\n def custom_class() -\u003e ::Google::Cloud::Speech::V2::CustomClass\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::CustomClass](./Google-Cloud-Speech-V2-CustomClass)) --- Required. The CustomClass to create.\n\n### #custom_class=\n\n def custom_class=(value) -\u003e ::Google::Cloud::Speech::V2::CustomClass\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::CustomClass](./Google-Cloud-Speech-V2-CustomClass)) --- Required. The CustomClass to create. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::CustomClass](./Google-Cloud-Speech-V2-CustomClass)) --- Required. The CustomClass to create.\n\n### #custom_class_id\n\n def custom_class_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /\\[a-z\\]\\[0-9\\]-/.\n\n### #custom_class_id=\n\n def custom_class_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name.\n\n\n This value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/. \n**Returns**\n\n- (::String) --- The ID to use for the CustomClass, which will become the final component of the CustomClass's resource name.\n\n This value should be 4-63 characters, and valid characters\n are /\\[a-z\\]\\[0-9\\]-/.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`. \n**Returns**\n\n- (::String) --- Required. The project and location where this CustomClass will be created. The expected format is `projects/{project}/locations/{location}`.\n\n### #validate_only\n\n def validate_only() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- If set, validate the request and preview the CustomClass, but do not actually create it.\n\n### #validate_only=\n\n def validate_only=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- If set, validate the request and preview the CustomClass, but do not actually create it. \n**Returns**\n\n- (::Boolean) --- If set, validate the request and preview the CustomClass, but do not actually create it."]]