The Recognizer's name field is used to identify the Recognizer to update.
Format: projects/{project}/locations/{location}/recognizers/{recognizer}.
#update_mask
defupdate_mask()->::Google::Protobuf::FieldMask
Returns
(::Google::Protobuf::FieldMask) — The list of fields to update. If empty, all non-default valued fields are
considered for update. Use * to update the entire Recognizer resource.
value (::Google::Protobuf::FieldMask) — The list of fields to update. If empty, all non-default valued fields are
considered for update. Use * to update the entire Recognizer resource.
Returns
(::Google::Protobuf::FieldMask) — The list of fields to update. If empty, all non-default valued fields are
considered for update. Use * to update the entire Recognizer resource.
#validate_only
defvalidate_only()->::Boolean
Returns
(::Boolean) — If set, validate the request and preview the updated Recognizer, but do not
actually update it.
#validate_only=
defvalidate_only=(value)->::Boolean
Parameter
value (::Boolean) — If set, validate the request and preview the updated Recognizer, but do not
actually update it.
Returns
(::Boolean) — If set, validate the request and preview the updated Recognizer, but do not
actually update 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::UpdateRecognizerRequest (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-UpdateRecognizerRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-UpdateRecognizerRequest) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::UpdateRecognizerRequest.\n\nRequest message for the\n[UpdateRecognizer](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Client#Google__Cloud__Speech__V2__Speech__Client_update_recognizer_instance_ \"Google::Cloud::Speech::V2::Speech::Client#update_recognizer (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### #recognizer\n\n def recognizer() -\u003e ::Google::Cloud::Speech::V2::Recognizer\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::Recognizer](./Google-Cloud-Speech-V2-Recognizer)) --- Required. The Recognizer to update.\n\n\n The Recognizer's `name` field is used to identify the Recognizer to update.\n Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.\n\n### #recognizer=\n\n def recognizer=(value) -\u003e ::Google::Cloud::Speech::V2::Recognizer\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::Recognizer](./Google-Cloud-Speech-V2-Recognizer)) --- Required. The Recognizer to update.\n\n\n The Recognizer's `name` field is used to identify the Recognizer to update.\nFormat: `projects/{project}/locations/{location}/recognizers/{recognizer}`. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::Recognizer](./Google-Cloud-Speech-V2-Recognizer)) --- Required. The Recognizer to update.\n\n\n The Recognizer's `name` field is used to identify the Recognizer to update.\n Format: `projects/{project}/locations/{location}/recognizers/{recognizer}`.\n\n### #update_mask\n\n def update_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire Recognizer resource.\n\n### #update_mask=\n\n def update_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire Recognizer resource. \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- The list of fields to update. If empty, all non-default valued fields are considered for update. Use `*` to update the entire Recognizer resource.\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 updated Recognizer, but do not actually update 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 updated Recognizer, but do not actually update it. \n**Returns**\n\n- (::Boolean) --- If set, validate the request and preview the updated Recognizer, but do not actually update it."]]