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

Data for a stream.

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

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ stream_id` | `int` Required. The unique ID of this stream, assigned by the client. |
| `↳ data` | `string` Data in the stream. |
| `↳ close` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Close` The stream is closing. EOF. |

### getStreamId

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

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

### setStreamId

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

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

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

### getData

Data in the stream.

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

### hasData

### setData

Data in the stream.

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

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

### getClose

The stream is closing. EOF.

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

### hasClose

### setClose

The stream is closing. EOF.

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

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

### getContents

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