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