Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal change #2929

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions src/devtools/deviceinfra/api/deviceinfo/proto/device_locator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,37 @@ message DeviceLocator {
// REQUIRED
// The host name of the lab the device connects to.
string host_name = 2;

// A list of services available on the host, including ADB serial number for
// the AndroidDeviceService or forwarded port name for the registered ports.
repeated HostServiceInfo host_service_info = 3;
}

/** The device locator list. */
message DeviceLocators {
repeated DeviceLocator device_locator = 1;
}

// Information about a single host service.
message HostServiceInfo {
oneof service {
AdbServiceInfo adb_service = 1;
PortServiceInfo port_service = 2;
}
}

message AdbServiceInfo {
// Device ID used to connect to the AndroidDeviceService on the host.
// See google3/cloud/test/device/remote/service/adb_service.proto for details.
// Device ID must be specified in the DEVICE_ID metadata key.
// eg. “localhost:6520” or “emulator-123”
string device_id = 1;
}

message PortServiceInfo {
// Port exposed by the host.
// See google3/cloud/test/device/remote/service/port_service.proto for
// details.
// eg. ‘waterfall’ etc
string port_name = 1;
}
Loading