# Google Cloud Device Streaming V1 Client - Class Fail (0.2.4)

0.2.4 (latest) 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Device Streaming V1 Client class Fail.

Message signifying that the stream failed to open

Generated from protobuf message `google.cloud.devicestreaming.v1.Fail`

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ reason` | `string` A user-displayable failure reason. |

### getReason

A user-displayable failure reason.

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

### setReason

A user-displayable failure reason.

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

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