Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: cloud_storage_result, inline_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: inline_result, cloud_storage_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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::BatchRecognizeFileResult (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-BatchRecognizeFileResult)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-BatchRecognizeFileResult) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::BatchRecognizeFileResult.\n\nFinal results for a single file. \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### #cloud_storage_result\n\n def cloud_storage_result() -\u003e ::Google::Cloud::Speech::V2::CloudStorageResult\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::CloudStorageResult](./Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-GcsOutputConfig \"Google::Cloud::Speech::V2::GcsOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\n Note: The following fields are mutually exclusive: `cloud_storage_result`, `inline_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #cloud_storage_result=\n\n def cloud_storage_result=(value) -\u003e ::Google::Cloud::Speech::V2::CloudStorageResult\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::CloudStorageResult](./Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-GcsOutputConfig \"Google::Cloud::Speech::V2::GcsOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\nNote: The following fields are mutually exclusive: `cloud_storage_result`, `inline_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::CloudStorageResult](./Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-GcsOutputConfig \"Google::Cloud::Speech::V2::GcsOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\n Note: The following fields are mutually exclusive: `cloud_storage_result`, `inline_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #error\n\n def error() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error if one was encountered.\n\n### #error=\n\n def error=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error if one was encountered. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error if one was encountered.\n\n### #inline_result\n\n def inline_result() -\u003e ::Google::Cloud::Speech::V2::InlineResult\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::InlineResult](./Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineOutputConfig \"Google::Cloud::Speech::V2::InlineOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\n Note: The following fields are mutually exclusive: `inline_result`, `cloud_storage_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #inline_result=\n\n def inline_result=(value) -\u003e ::Google::Cloud::Speech::V2::InlineResult\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::InlineResult](./Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineOutputConfig \"Google::Cloud::Speech::V2::InlineOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\nNote: The following fields are mutually exclusive: `inline_result`, `cloud_storage_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::InlineResult](./Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineOutputConfig \"Google::Cloud::Speech::V2::InlineOutputConfig (class)\") is set in the \\[RecognitionOutputConfig\\]\\[\\[google.cloud.speech.v2.RecognitionOutputConfig\\].\n\n\n Note: The following fields are mutually exclusive: `inline_result`, `cloud_storage_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #metadata\n\n def metadata() -\u003e ::Google::Cloud::Speech::V2::RecognitionResponseMetadata\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](./Google-Cloud-Speech-V2-RecognitionResponseMetadata))\n\n### #metadata=\n\n def metadata=(value) -\u003e ::Google::Cloud::Speech::V2::RecognitionResponseMetadata\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](./Google-Cloud-Speech-V2-RecognitionResponseMetadata)) \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](./Google-Cloud-Speech-V2-RecognitionResponseMetadata))\n\n### #transcript\n\n def transcript() -\u003e ::Google::Cloud::Speech::V2::BatchRecognizeResults\n\n**Returns**\n\n- ([::Google::Cloud::Speech::V2::BatchRecognizeResults](./Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead.\n\n### #transcript=\n\n def transcript=(value) -\u003e ::Google::Cloud::Speech::V2::BatchRecognizeResults\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Speech::V2::BatchRecognizeResults](./Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead. \n**Returns**\n\n- ([::Google::Cloud::Speech::V2::BatchRecognizeResults](./Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead.\n\n### #uri\n\n def uri() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead.\n\n### #uri=\n\n def uri=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead. \n**Returns**\n\n- (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead."]]