[Quick Share QR Code] Record whether a transfer was assisted by QR code in Nearby Share logs

PiperOrigin-RevId: 682206114
This commit is contained in:
hai007
2024-10-04 00:40:43 -07:00
committed by Copybara-Service
parent 25d4aca219
commit 37859c434e
@@ -288,7 +288,8 @@ message SharingLog {
optional int64 duration_millis = 5;
optional ShareTargetInfo share_target_info = 6;
optional string referrer_name = 7;
optional bool qr_code_flow = 8;
// Deprecated. Use share_target_info.has_matching_qr_code instead.
optional bool qr_code_flow = 8 [deprecated = true];
// True if the connection established from receiver
optional bool is_incoming_connection = 9;
}
@@ -509,7 +510,9 @@ message SharingLog {
// 1-based number for transfer position.
optional int32 transfer_position = 3;
optional int32 concurrent_connections = 4;
optional bool qr_code_flow = 5;
// Deprecated. Use share_target_info.has_matching_qr_code instead.
optional bool qr_code_flow = 5 [deprecated = true];
optional ShareTargetInfo share_target_info = 6;
}
// EventType: SEND_ATTACHMENTS_END
@@ -783,6 +786,14 @@ message SharingLog {
optional location.nearby.proto.sharing.OSType os_type = 2;
optional location.nearby.proto.sharing.DeviceRelationship
device_relationship = 3;
// Represents whether the share target has the same QR code as the local
// device.
// In sender side events, this returns whether the receiver represented by
// this ShareTargetInfo has scanned the QR code generated by this sender.
// In receiver side events, this returns whether the sender represented by
// this ShareTargetInfo is the one that generated the QR code scanned by
// this receiver.
optional bool has_matching_qr_code = 4;
}
// The metadata of attachments to be shared.