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

A message returned from a device.

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

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ status_update` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.StatusUpdate` Information about the device's state. |
| `↳ stream_status` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.StreamStatus` The result of a device stream from ADB. |
| `↳ stream_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.StreamData` Data from an open stream. |

### getStatusUpdate

Information about the device's state.

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

### hasStatusUpdate

### setStatusUpdate

Information about the device's state.

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

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

### getStreamStatus

The result of a device stream from ADB.

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

### hasStreamStatus

### setStreamStatus

The result of a device stream from ADB.

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

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

### getStreamData

Data from an open stream.

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

### hasStreamData

### setStreamData

Data from an open stream.

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

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

### getContents

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