diff --git a/connections/implementation/proto/offline_wire_formats.proto b/connections/implementation/proto/offline_wire_formats.proto index 42508670..721dfd23 100644 --- a/connections/implementation/proto/offline_wire_formats.proto +++ b/connections/implementation/proto/offline_wire_formats.proto @@ -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 { diff --git a/proto/connections_enums.proto b/proto/connections_enums.proto index aa7221ae..61c79837 100644 --- a/proto/connections_enums.proto +++ b/proto/connections_enums.proto @@ -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;