# Cloud Speech-to-Text V2 API - Class Google::Cloud::Speech::V2::BatchRecognizeFileResult (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.16.0 0.15.0 0.14.0 0.13.1 0.12.0 0.11.0 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Speech-to-Text V2 API class Google::Cloud::Speech::V2::BatchRecognizeFileResult.

Final results for a single file.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cloud_storage_result

    def cloud_storage_result() -> ::Google::Cloud::Speech::V2::CloudStorageResult

**Returns**

- ([::Google::Cloud::Speech::V2::CloudStorageResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](https://docs.cloud.google.com/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\].


  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.

### #cloud_storage_result=

    def cloud_storage_result=(value) -> ::Google::Cloud::Speech::V2::CloudStorageResult

**Parameter**

- **value** ([::Google::Cloud::Speech::V2::CloudStorageResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](https://docs.cloud.google.com/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\].


  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.
**Returns**

- ([::Google::Cloud::Speech::V2::CloudStorageResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-CloudStorageResult)) --- Recognition results written to Cloud Storage. This is populated only when [GcsOutputConfig](https://docs.cloud.google.com/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\].


  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.

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Rpc-Status)) --- Error if one was encountered.

### #error=

    def error=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Rpc-Status)) --- Error if one was encountered.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Rpc-Status)) --- Error if one was encountered.

### #inline_result

    def inline_result() -> ::Google::Cloud::Speech::V2::InlineResult

**Returns**

- ([::Google::Cloud::Speech::V2::InlineResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](https://docs.cloud.google.com/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\].


  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.

### #inline_result=

    def inline_result=(value) -> ::Google::Cloud::Speech::V2::InlineResult

**Parameter**

- **value** ([::Google::Cloud::Speech::V2::InlineResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](https://docs.cloud.google.com/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\].


  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.
**Returns**

- ([::Google::Cloud::Speech::V2::InlineResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-InlineResult)) --- Recognition results. This is populated only when [InlineOutputConfig](https://docs.cloud.google.com/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\].


  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.

### #metadata

    def metadata() -> ::Google::Cloud::Speech::V2::RecognitionResponseMetadata

**Returns**

- ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-RecognitionResponseMetadata))

### #metadata=

    def metadata=(value) -> ::Google::Cloud::Speech::V2::RecognitionResponseMetadata

**Parameter**

- **value** ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-RecognitionResponseMetadata))
**Returns**

- ([::Google::Cloud::Speech::V2::RecognitionResponseMetadata](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-RecognitionResponseMetadata))

### #transcript

    def transcript() -> ::Google::Cloud::Speech::V2::BatchRecognizeResults

**Returns**

- ([::Google::Cloud::Speech::V2::BatchRecognizeResults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead.

### #transcript=

    def transcript=(value) -> ::Google::Cloud::Speech::V2::BatchRecognizeResults

**Parameter**

- **value** ([::Google::Cloud::Speech::V2::BatchRecognizeResults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead.
**Returns**

- ([::Google::Cloud::Speech::V2::BatchRecognizeResults](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-BatchRecognizeResults)) --- Deprecated. Use `inline_result.transcript` instead.

### #uri

    def uri() -> ::String

**Returns**

- (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead.

### #uri=

    def uri=(value) -> ::String

**Parameter**

- **value** (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead.
**Returns**

- (::String) --- Deprecated. Use `cloud_storage_result.native_format_uri` instead.