add connection mode

PiperOrigin-RevId: 633706665
This commit is contained in:
hai007
2024-05-14 14:28:03 -07:00
committed by Copybara-Service
parent a6ec53dc1d
commit 00e8286021
2 changed files with 18 additions and 0 deletions
@@ -85,6 +85,13 @@ message ConnectionRequestFrame {
}
// LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto)
// LINT.IfChange
enum ConnectionMode {
LEGACY = 0;
INSTANT = 1;
}
// LINT.ThenChange(//depot/google3/third_party/nearby/proto/connections_enums.proto)
optional string endpoint_id = 1;
optional string endpoint_name = 2;
optional bytes handshake_data = 3;
@@ -109,6 +116,7 @@ message ConnectionRequestFrame {
ConnectionsDevice connections_device = 12;
PresenceDevice presence_device = 13;
}
optional ConnectionMode connection_mode = 14;
}
message ConnectionResponseFrame {
+10
View File
@@ -125,6 +125,16 @@ enum ConnectionBand {
CONNECTION_BAND_CELLULAR_BAND_5G = 7;
}
// LINT.IfChange
enum ConnectionMode {
LEGACY = 0;
INSTANT = 1;
}
// LINT.ThenChange(
// //depot/google3/java/com/google/android/gmscore/integ/client/nearby/src/com/google/android/gms/nearby/connection/ConnectionMode.java,
// //depot/google3/third_party/nearby/connections/implementation/proto/offline_wire_formats.proto
// )
// The result of a ConnectionRequest.
enum ConnectionRequestResponse {
UNKNOWN_CONNECTION_REQUEST_RESPONSE = 0;