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

Data for a stream.

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

| Fields ||
|---|---|
| `streamId` | `integer` Required. The unique ID of this stream, assigned by the client. |
| The data of the stream, either bytes or "Close", indicating that the stream is done. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: ||
| `data` | `string (https://developers.google.com/discovery/v1/type-format format)` Data in the stream. A base64-encoded string. |
| `close` | ``object (`https://docs.cloud.google.com/developer-device-platform/reference/device-streaming/rest/v1/StreamData#Close`)`` The stream is closing. EOF. |
| End of mutually exclusive fields. ||

## Close

This type has no fields.
Message signifying that the stream closed.