# Cloud Speech V2 Client - Class BatchRecognizeTranscriptionMetadata (2.5.1)

2.5.1 (latest) 2.5.0 2.4.0 2.3.0 2.2.1 2.1.1 2.0.1 1.20.1 1.19.2 1.18.3 1.16.0 1.15.0 1.14.3 1.13.1 1.12.0 1.11.2 1.10.0 1.9.1 1.8.0 1.7.0 Reference documentation and code samples for the Cloud Speech V2 Client class BatchRecognizeTranscriptionMetadata.

Metadata about transcription for a single file (for example, progress
percent).

Generated from protobuf message `google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata`

## Namespace

Google \\ Cloud \\ Speech \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ progress_percent` | `int` How much of the file has been transcribed so far. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Error if one was encountered. |
| `↳ uri` | `string` The Cloud Storage URI to which recognition results will be written. |

### getProgressPercent

How much of the file has been transcribed so far.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setProgressPercent

How much of the file has been transcribed so far.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getError

Error if one was encountered.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Error if one was encountered.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUri

The Cloud Storage URI to which recognition results will be written.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUri

The Cloud Storage URI to which recognition results will be written.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |