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

A message to an ADB server.

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

## Namespace

Google \\ Cloud \\ DeviceStreaming \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ open` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.Open` Open a new stream. |
| `↳ stream_data` | `https://docs.cloud.google.com/php/docs/reference/cloud-devicestreaming/latest/V1.StreamData` Send data to a stream. |

### getOpen

Open a new stream.

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

### hasOpen

### setOpen

Open a new stream.

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

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

### getStreamData

Send data to a stream.

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

### hasStreamData

### setStreamData

Send data to a 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` |   |