- [JSON representation](https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/AdbMessage#SCHEMA_REPRESENTATION)
- [Open](https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/AdbMessage#Open)
  - [JSON representation](https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/AdbMessage#Open.SCHEMA_REPRESENTATION)

A message to an ADB server.

| JSON representation |
|---|
| ``` { // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "open": { object (`https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/AdbMessage#Open`) }, "streamData": { object (`https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/StreamData`) } // End of mutually exclusive fields. } ``` |

| Fields ||
|---|---|
| The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `open` | ``object (`https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/AdbMessage#Open`)`` Open a new stream. |
| `streamData` | ``object (`https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/StreamData`)`` Send data to a stream. |
| End of mutually exclusive fields. ||

## Open

Message for opening a new stream.

| JSON representation |
|---|
| ``` { "streamId": integer, "service": string } ``` |

| Fields ||
|---|---|
| `streamId` | `integer` Required. The unique ID that will be used to talk to this stream. This should probably just be a number that increments for each new Open request. |
| `service` | `string` Optional. An ADB service to use in the new stream. |