From 482d7f773dd81cd2a2ac307121bfa7f0aa8c73b5 Mon Sep 17 00:00:00 2001 From: hai007 Date: Thu, 25 Sep 2025 17:02:52 -0700 Subject: [PATCH] ...text exposed to open source public git repo PiperOrigin-RevId: 811556503 --- proto/sharing_enums.proto | 5 ++++- .../proto/analytics/nearby_sharing_log.proto | 20 ++++++++++++++++++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index bfc8458c..04f894f9 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -32,7 +32,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: 78 +// Next id: 80 enum EventType { UNKNOWN_EVENT_TYPE = 0; @@ -324,6 +324,9 @@ enum EventType { CLOUD_UPLOAD_START = 76 /*[ device_role = DEVICE_ROLE_INITIATOR ]*/; CLOUD_UPLOAD_END = 77 /*[ device_role = DEVICE_ROLE_INITIATOR ]*/; + CLOUD_DOWNLOAD_START = 78 + /*[ device_role = DEVICE_ROLE_REMOTE ]*/; + CLOUD_DOWNLOAD_END = 79 /*[ device_role = DEVICE_ROLE_REMOTE ]*/; // QR code cloud sharing events end. // LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode) diff --git a/sharing/proto/analytics/nearby_sharing_log.proto b/sharing/proto/analytics/nearby_sharing_log.proto index ca99b657..9c1f0d09 100644 --- a/sharing/proto/analytics/nearby_sharing_log.proto +++ b/sharing/proto/analytics/nearby_sharing_log.proto @@ -30,7 +30,7 @@ option objc_class_prefix = "GNCP"; // Top-level log proto for all NearbySharing logging. // Each log contains a key (event_type), value (a verb-noun event) pair. -// Next Tag: 87 +// Next Tag: 89 // LINT.IfChange message SharingLog { /* justification = { @@ -235,6 +235,10 @@ message SharingLog { optional CloudUploadEnd cloud_upload_end = 86; + optional CloudDownloadStart cloud_download_start = 87; + + optional CloudDownloadEnd cloud_download_end = 88; + // Used only for Nearby Share Windows app now. message AppInfo { // e.g. "1.0.408" @@ -1061,5 +1065,19 @@ message SharingLog { message CloudUploadEnd { repeated CloudAttachmentInfo upload_infos = 1; } + + // EventType: CLOUD_DOWNLOAD_START used by QR code cloud web receiver + // The cloud_sharing_id and cloud_receiver_session_id are logged in the + // event_metadata into the anonymous logs. + message CloudDownloadStart { + optional AttachmentsInfo attachments_info = 1; + } + + // EventType: CLOUD_DOWNLOAD_END used by QR code cloud web receiver + // The cloud_sharing_id and cloud_receiver_session_id are logged in the + // event_metadata into the anonymous logs. + message CloudDownloadEnd { + repeated CloudAttachmentInfo download_infos = 1; + } } // LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)