# Google Cloud Device Streaming V1 Client - Class StreamStatus (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 StreamStatus.

The result of a stream.

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

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ stream_id` | `int` The unique ID of this stream, assigned by the client. |
| `↳ okay` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Okay` Okay for success. |
| `↳ fail` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Fail` Fail for failure. |

### getStreamId

The unique ID of this stream, assigned by the client.

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

### setStreamId

The unique ID of this stream, assigned by the client.

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

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

### getOkay

Okay for success.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Okay|null` |   |

### hasOkay

### setOkay

Okay for success.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Okay` |

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

### getFail

Fail for failure.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Fail|null` |   |

### hasFail

### setFail

Fail for failure.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Fail` |

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

### getStatus

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