# Google Cloud Video Stitcher V1 Client - Class ResponseMetadata (1.2.0)

1.2.0 (latest) 1.1.2 1.0.4 0.9.1 0.8.4 0.7.3 0.6.2 0.5.1 0.3.4 Reference documentation and code samples for the Google Cloud Video Stitcher V1 Client class ResponseMetadata.

Metadata for the response of an ad request.

Generated from protobuf message `google.cloud.video.stitcher.v1.ResponseMetadata`

## Namespace

Google \\ Cloud \\ Video \\ Stitcher \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error` | `string` Error message received when making the ad request. |
| `↳ headers` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Headers from the response. |
| `↳ status_code` | `string` Status code for the response. |
| `↳ size_bytes` | `int` Size in bytes of the response. |
| `↳ duration` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Total time elapsed for the response. |
| `↳ body` | `string` The body of the response. |

### getError

Error message received when making the ad request.

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

### setError

Error message received when making the ad request.

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

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

### getHeaders

Headers from the response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasHeaders

### clearHeaders

### setHeaders

Headers from the response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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

### getStatusCode

Status code for the response.

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

### setStatusCode

Status code for the response.

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

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

### getSizeBytes

Size in bytes of the response.

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

### setSizeBytes

Size in bytes of the response.

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

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

### getDuration

Total time elapsed for the response.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasDuration

### clearDuration

### setDuration

Total time elapsed for the response.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

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

### getBody

The body of the response.

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

### setBody

The body of the response.

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

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