Reference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::CreatePhraseSetRequest.
Message sent by the client for the CreatePhraseSet method.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#parent
defparent()->::String
Returns
(::String) — Required. The parent resource where this phrase set will be created.
Format:
projects/{project}/locations/{location}
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
with matching us or eu location value.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The parent resource where this phrase set will be created.
Format:
projects/{project}/locations/{location}
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
with matching us or eu location value.
Returns
(::String) — Required. The parent resource where this phrase set will be created.
Format:
projects/{project}/locations/{location}
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
with matching us or eu location value.
[[["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-08-28 UTC."],[],[],null,["# Cloud Speech-to-Text V1p1beta1 API - Class Google::Cloud::Speech::V1p1beta1::CreatePhraseSetRequest (v0.25.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.25.0 (latest)](/ruby/docs/reference/google-cloud-speech-v1p1beta1/latest/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.24.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.24.1/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.23.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.22.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.21.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.21.1/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.20.2](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.20.2/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.19.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.18.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.18.1/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.17.1/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.16.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.15.3](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.15.3/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.14.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.13.0/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest)\n- [0.12.4](/ruby/docs/reference/google-cloud-speech-v1p1beta1/0.12.4/Google-Cloud-Speech-V1p1beta1-CreatePhraseSetRequest) \nReference documentation and code samples for the Cloud Speech-to-Text V1p1beta1 API class Google::Cloud::Speech::V1p1beta1::CreatePhraseSetRequest.\n\nMessage sent by the client for the `CreatePhraseSet` 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### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent resource where this phrase set will be created. Format:\n\n `projects/{project}/locations/{location}`\n\n Speech-to-Text supports three locations: `global`, `us` (US North America),\n and `eu` (Europe). If you are calling the `speech.googleapis.com`\n endpoint, use the `global` location. To specify a region, use a\n [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)\n with matching `us` or `eu` location value.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent resource where this phrase set will be created. Format:\n\n\n `projects/{project}/locations/{location}`\n\n Speech-to-Text supports three locations: `global`, `us` (US North America),\n and `eu` (Europe). If you are calling the `speech.googleapis.com`\n endpoint, use the `global` location. To specify a region, use a\n [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)\nwith matching `us` or `eu` location value. \n**Returns**\n\n- (::String) --- Required. The parent resource where this phrase set will be created. Format:\n\n `projects/{project}/locations/{location}`\n\n Speech-to-Text supports three locations: `global`, `us` (US North America),\n and `eu` (Europe). If you are calling the `speech.googleapis.com`\n endpoint, use the `global` location. To specify a region, use a\n [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)\n with matching `us` or `eu` location value.\n\n### #phrase_set\n\n def phrase_set() -\u003e ::Google::Cloud::Speech::V1p1beta1::PhraseSet\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V1p1beta1::PhraseSet](./Google-Cloud-Speech-V1p1beta1-PhraseSet)) --- Required. The phrase set to create.\n\n### #phrase_set=\n\n def phrase_set=(value) -\u003e ::Google::Cloud::Speech::V1p1beta1::PhraseSet\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V1p1beta1::PhraseSet](./Google-Cloud-Speech-V1p1beta1-PhraseSet)) --- Required. The phrase set to create. \n**Returns**\n\n- ([::Google::Cloud::Speech::V1p1beta1::PhraseSet](./Google-Cloud-Speech-V1p1beta1-PhraseSet)) --- Required. The phrase set to create.\n\n### #phrase_set_id\n\n def phrase_set_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name.\n\n This value should restrict to letters, numbers, and hyphens, with the first\n character a letter, the last a letter or a number, and be 4-63 characters.\n\n### #phrase_set_id=\n\n def phrase_set_id=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name.\n\n\n This value should restrict to letters, numbers, and hyphens, with the first\ncharacter a letter, the last a letter or a number, and be 4-63 characters. \n**Returns**\n\n- (::String) --- Required. The ID to use for the phrase set, which will become the final component of the phrase set's resource name.\n\n This value should restrict to letters, numbers, and hyphens, with the first\n character a letter, the last a letter or a number, and be 4-63 characters."]]