From 2e0a8f1df5cd39834aa249feff0f9c03cf76cfff Mon Sep 17 00:00:00 2001 From: hai007 Date: Sat, 3 Jun 2023 22:23:39 -0700 Subject: [PATCH] [Analytics] Log unpared discovery PiperOrigin-RevId: 537629194 --- proto/sharing_enums.proto | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index a6a91d46..cf00e965 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -30,7 +30,7 @@ option objc_class_prefix = "GNSHP"; // in NearbyClearcutLogger (for android, or clearcut_event_logger as the // equivalence for Windows) for all events (may exclude settings), and // session_id for a pair of events (start and end of a session). -// Next id: 60 +// Next id: 61 enum EventType { UNKNOWN_EVENT_TYPE = 0; @@ -223,6 +223,9 @@ enum EventType { // QR code link shown QR_CODE_LINK_SHOWN = 59; + // Sender failed to parse endpoint id. + PARSING_FAILED_ENDPOINT_ID = 60; + // LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode) } @@ -427,6 +430,13 @@ enum ScanType { BACKGROUND_SCAN = 4; } +// The type of parsing endpoint id failed type. +enum ParsingFailedType { + FAILED_UNKNOWN_TYPE = 0; + FAILED_PARSE_ADVERTISEMENT = 1; + FAILED_COVERT_SHARE_TARGET = 2; +} + // The Nearby Sharing advertising mode. enum AdvertisingMode { UNKNOWN_ADVERTISING_MODE = 0;