DeviceMessage

A message returned from a device.

JSON representation
{

  // Union field contents can be only one of the following:
  "statusUpdate": {
    object (StatusUpdate)
  },
  "streamStatus": {
    object (StreamStatus)
  },
  "streamData": {
    object (StreamData)
  }
  // End of list of possible types for union field contents.
}
Fields

Union field contents.

contents can be only one of the following:

statusUpdate

object (StatusUpdate)

Information about the device's state.

streamStatus

object (StreamStatus)

The result of a device stream from ADB.

streamData

object (StreamData)

Data from an open stream.

StatusUpdate

A StatusUpdate message given over the ADB protocol for the device state.

JSON representation
{
  "state": enum (DeviceState),
  "properties": {
    string: string,
    ...
  },
  "features": string
}
Fields
state

enum (DeviceState)

The device's state

properties

map (key: string, value: string)

A map of properties with information about this device.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

features

string

A comma-separated list of "features" that this device supports.

StreamStatus

The result of a stream.

JSON representation
{
  "streamId": integer,

  // Union field status can be only one of the following:
  "okay": {
    object (Okay)
  },
  "fail": {
    object (Fail)
  }
  // End of list of possible types for union field status.
}
Fields
streamId

integer

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

Union field status. The result of the stream. Either "Okay" for success or "Fail" for failure. status can be only one of the following:
okay

object (Okay)

Okay for success.

fail

object (Fail)

Fail for failure.

Okay

This type has no fields.

Message signifying that the stream is open

Fail

Message signifying that the stream failed to open

JSON representation
{
  "reason": string
}
Fields
reason

string

A user-displayable failure reason.