DeviceMessage

A message returned from a device.

JSON representation
{

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "statusUpdate": {
    object (StatusUpdate)
  },
  "streamStatus": {
    object (StreamStatus)
  },
  "streamData": {
    object (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:
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.

End of mutually exclusive fields.

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,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "okay": {
    object (Okay)
  },
  "fail": {
    object (Fail)
  }
  // End of mutually exclusive fields.
}
Fields
streamId

integer

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

The result of the stream. Either "Okay" for success or "Fail" for failure. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response:
okay

object (Okay)

Okay for success.

fail

object (Fail)

Fail for failure.

End of mutually exclusive fields.

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.