DeviceMessage

ข้อความที่ส่งคืนจากอุปกรณ์

การแสดง JSON
{

  // 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.
}
ช่อง

ช่องการรวม contents

contents ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้

statusUpdate

object (StatusUpdate)

ข้อมูลเกี่ยวกับสถานะของอุปกรณ์

streamStatus

object (StreamStatus)

ผลลัพธ์ของสตรีมอุปกรณ์จาก ADB

streamData

object (StreamData)

ข้อมูลจากสตรีมแบบเปิด

อัปเดตสถานะ

ข้อความ StatusUpdate ที่กำหนดให้ผ่านโปรโตคอล ADB สำหรับสถานะของอุปกรณ์

การแสดง JSON
{
  "state": enum (DeviceState),
  "properties": {
    string: string,
    ...
  },
  "features": string
}
ช่อง
state

enum (DeviceState)

สถานะของอุปกรณ์

properties

map (key: string, value: string)

แผนที่ของที่พักที่มีข้อมูลเกี่ยวกับอุปกรณ์นี้

ออบเจ็กต์ที่มีรายการคู่ "key": value ตัวอย่างเช่น { "name": "wrench", "mass": "1.3kg", "count": "3" }

features

string

รายการ "ฟีเจอร์" ที่คั่นด้วยคอมมา ที่อุปกรณ์นี้รองรับ

สถานะสตรีม

ผลลัพธ์ของสตรีม

การแสดง JSON
{
  "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.
}
ช่อง
streamId

integer

รหัสที่ไม่ซ้ำกันของสตรีมนี้ ซึ่งลูกค้าเป็นผู้กำหนด

ช่องการรวม status ผลลัพธ์ของสตรีม "ตกลง" หรือ "ตกลง" เพื่อความสำเร็จหรือ "ล้มเหลว" ไม่สำเร็จ status ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
okay

object (Okay)

เอาล่ะ เพื่อความสำเร็จ

fail

object (Fail)

ล้มเหลวหากล้มเหลว

ตกลง

ประเภทนี้ไม่มีช่อง

ข้อความที่บ่งบอกว่าสตรีมเปิดอยู่

ไม่ผ่าน

ข้อความที่แสดงว่าไม่สามารถเปิดสตรีมได้

การแสดง JSON
{
  "reason": string
}
ช่อง
reason

string

เหตุผลความล้มเหลวที่ผู้ใช้แสดงได้