Skip to content

Commit bab597d

Browse files
DeviceInfracopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 710841831
1 parent 84e381b commit bab597d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/devtools/deviceinfra/api/deviceinfo/proto/device_locator.proto

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,37 @@ message DeviceLocator {
2929
// REQUIRED
3030
// The host name of the lab the device connects to.
3131
string host_name = 2;
32+
33+
// A list of services available on the host, including ADB serial number for
34+
// the AndroidDeviceService or forwarded port name for the registered ports.
35+
repeated HostServiceInfo host_service_info = 3;
3236
}
3337

3438
/** The device locator list. */
3539
message DeviceLocators {
3640
repeated DeviceLocator device_locator = 1;
3741
}
42+
43+
// Information about a single host service.
44+
message HostServiceInfo {
45+
oneof service {
46+
AdbServiceInfo adb_service = 1;
47+
PortServiceInfo port_service = 2;
48+
}
49+
}
50+
51+
message AdbServiceInfo {
52+
// Device ID used to connect to the AndroidDeviceService on the host.
53+
// See google3/cloud/test/device/remote/service/adb_service.proto for details.
54+
// Device ID must be specified in the DEVICE_ID metadata key.
55+
// eg. “localhost:6520” or “emulator-123”
56+
string device_id = 1;
57+
}
58+
59+
message PortServiceInfo {
60+
// Port exposed by the host.
61+
// See google3/cloud/test/device/remote/service/port_service.proto for
62+
// details.
63+
// eg. ‘waterfall’ etc
64+
string port_name = 1;
65+
}

0 commit comments

Comments
 (0)