From 4b4e599ea645c4c22f23a75e7b56efd57845ab9f Mon Sep 17 00:00:00 2001 From: hai007 Date: Wed, 29 Mar 2023 11:47:18 -0700 Subject: [PATCH] Add connection's SafeDisconnectionResult into the established connection so we could analyzing any mis-matched SafeDisconnectionResult with the same connection token. PiperOrigin-RevId: 520398868 --- internal/proto/analytics/connections_log.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/internal/proto/analytics/connections_log.proto b/internal/proto/analytics/connections_log.proto index e0aa6a85..f73c7959 100644 --- a/internal/proto/analytics/connections_log.proto +++ b/internal/proto/analytics/connections_log.proto @@ -290,6 +290,15 @@ message ConnectionsLog { // The type of established connection. optional location.nearby.proto.connections.ConnectionAttemptType type = 8; + + // If this is a safe disconnection. + optional SafeDisconnectionResult safe_disconnection_result = 9; + + enum SafeDisconnectionResult { + UNKNOWN_SAFE_DISCONNECTION_RESULT = 0; + SAFE_DISCONNECTION = 1; + UNSAFE_DISCONNECTION = 2; + } } // A Payload transferred (or attempted to be transferred) between devices.