If set, validate the request and preview the CustomClass, but do not actually create it.
↳ custom_class_id
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
string
Required. The project and location where this CustomClass will be created. The expected format isprojects/{project}/locations/{location}.
If set, validate the request and preview the CustomClass, but do not
actually create it.
Returns
Type
Description
bool
setValidateOnly
If set, validate the request and preview the CustomClass, but do not
actually create it.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getCustomClassId
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
Type
Description
string
setCustomClassId
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]-/.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getParent
Required. The project and location where this CustomClass will be created.
The expected format isprojects/{project}/locations/{location}.
Returns
Type
Description
string
setParent
Required. The project and location where this CustomClass will be created.
The expected format isprojects/{project}/locations/{location}.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameters
Name
Description
parent
string
Required. The project and location where this CustomClass will be created.
The expected format isprojects/{project}/locations/{location}. Please seeSpeechClient::locationName()for help formatting this field.
[[["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 V2 Client - Class CreateCustomClassRequest (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-speech/latest/V2.CreateCustomClassRequest)\n- [2.1.0](/php/docs/reference/cloud-speech/2.1.0/V2.CreateCustomClassRequest)\n- [2.0.1](/php/docs/reference/cloud-speech/2.0.1/V2.CreateCustomClassRequest)\n- [1.20.1](/php/docs/reference/cloud-speech/1.20.1/V2.CreateCustomClassRequest)\n- [1.19.2](/php/docs/reference/cloud-speech/1.19.2/V2.CreateCustomClassRequest)\n- [1.18.3](/php/docs/reference/cloud-speech/1.18.3/V2.CreateCustomClassRequest)\n- [1.16.0](/php/docs/reference/cloud-speech/1.16.0/V2.CreateCustomClassRequest)\n- [1.15.0](/php/docs/reference/cloud-speech/1.15.0/V2.CreateCustomClassRequest)\n- [1.14.3](/php/docs/reference/cloud-speech/1.14.3/V2.CreateCustomClassRequest)\n- [1.13.1](/php/docs/reference/cloud-speech/1.13.1/V2.CreateCustomClassRequest)\n- [1.12.0](/php/docs/reference/cloud-speech/1.12.0/V2.CreateCustomClassRequest)\n- [1.11.2](/php/docs/reference/cloud-speech/1.11.2/V2.CreateCustomClassRequest)\n- [1.10.0](/php/docs/reference/cloud-speech/1.10.0/V2.CreateCustomClassRequest)\n- [1.9.1](/php/docs/reference/cloud-speech/1.9.1/V2.CreateCustomClassRequest)\n- [1.8.0](/php/docs/reference/cloud-speech/1.8.0/V2.CreateCustomClassRequest)\n- [1.7.0](/php/docs/reference/cloud-speech/1.7.0/V2.CreateCustomClassRequest) \nReference documentation and code samples for the Cloud Speech V2 Client class CreateCustomClassRequest.\n\nRequest message for the\n[CreateCustomClass](/php/docs/reference/cloud-speech/latest/V2.Client.SpeechClient#_Google_Cloud_Speech_V2_Client_SpeechClient__createCustomClass__) method.\n\nGenerated from protobuf message `google.cloud.speech.v2.CreateCustomClassRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Speech \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCustomClass\n\nRequired. The CustomClass to create.\n\n### hasCustomClass\n\n### clearCustomClass\n\n### setCustomClass\n\nRequired. The CustomClass to create.\n\n### getValidateOnly\n\nIf set, validate the request and preview the CustomClass, but do not\nactually create it.\n\n### setValidateOnly\n\nIf set, validate the request and preview the CustomClass, but do not\nactually create it.\n\n### getCustomClassId\n\nThe ID to use for the CustomClass, which will become the final component of\nthe CustomClass's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### setCustomClassId\n\nThe ID to use for the CustomClass, which will become the final component of\nthe CustomClass's resource name.\n\nThis value should be 4-63 characters, and valid characters\nare /\\[a-z\\]\\[0-9\\]-/.\n\n### getParent\n\nRequired. The project and location where this CustomClass will be created.\n\nThe expected format is `projects/{project}/locations/{location}`.\n\n### setParent\n\nRequired. The project and location where this CustomClass will be created.\n\nThe expected format is `projects/{project}/locations/{location}`.\n\n### static::build"]]