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

add ConnectionResponseFrame.mediums #2917

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
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
22 changes: 22 additions & 0 deletions connections/implementation/proto/offline_wire_formats.proto
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,25 @@ message ConnectionRequestFrame {
}

message ConnectionResponseFrame {
// Should always match cs/symbol:location.nearby.proto.connections.Medium
// LINT.IfChange
enum Medium {
UNKNOWN_MEDIUM = 0;
MDNS = 1 [deprecated = true];
BLUETOOTH = 2;
WIFI_HOTSPOT = 3;
BLE = 4;
WIFI_LAN = 5;
WIFI_AWARE = 6;
NFC = 7;
WIFI_DIRECT = 8;
WEB_RTC = 9;
BLE_L2CAP = 10;
USB = 11;
WEB_RTC_NON_CELLULAR = 12;
}
// LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto)

// This doesn't need to send back endpoint_id and endpoint_name (like
// the ConnectionRequestFrame does) because those have already been
// transmitted out-of-band, at the time this endpoint was discovered.
Expand Down Expand Up @@ -153,6 +172,9 @@ message ConnectionResponseFrame {
optional int32 multiplex_socket_bitmask = 5;
optional int32 nearby_connections_version = 6 [deprecated = true];
optional int32 safe_to_disconnect_version = 7;
// The mediums that this device supports for upgrades, used as a backup if no
// mediums are specified in the ConnectionRequestFrame.
repeated Medium mediums = 8 [packed = true];
}

message PayloadTransferFrame {
Expand Down
Loading