...text exposed to open source public git repo

PiperOrigin-RevId: 811057024
This commit is contained in:
hai007
2025-09-24 15:22:26 -07:00
committed by Copybara-Service
parent d429a8e42d
commit 88a0bf0385
2 changed files with 37 additions and 2 deletions
+4 -1
View File
@@ -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: 76
// Next id: 78
enum EventType {
UNKNOWN_EVENT_TYPE = 0;
@@ -321,6 +321,9 @@ enum EventType {
/*[ device_role = DEVICE_ROLE_INITIATOR ]*/;
CLOUD_REGISTER_RECEIVER = 75
/*[ device_role = DEVICE_ROLE_REMOTE ]*/;
CLOUD_UPLOAD_START = 76
/*[ device_role = DEVICE_ROLE_INITIATOR ]*/;
CLOUD_UPLOAD_END = 77 /*[ device_role = DEVICE_ROLE_INITIATOR ]*/;
// QR code cloud sharing events end.
// LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode)
@@ -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: 85
// Next Tag: 87
// LINT.IfChange
message SharingLog {
/* justification = {
@@ -231,6 +231,10 @@ message SharingLog {
// QR code CLOUD_REGISTER_RECEIVER event for receiver side.
optional CloudRegisterReceiver cloud_register_receiver = 84;
optional CloudUploadStart cloud_upload_start = 85;
optional CloudUploadEnd cloud_upload_end = 86;
// Used only for Nearby Share Windows app now.
message AppInfo {
// e.g. "1.0.408"
@@ -936,6 +940,22 @@ message SharingLog {
optional location.nearby.proto.sharing.AttachmentSourceType source_type = 3;
}
message CloudAttachmentInfo {
optional location.nearby.proto.sharing.AttachmentTransmissionStatus status =
1;
oneof CloudAttachment {
TextAttachment text_attachment = 2;
FileAttachment file_attachment = 3;
WifiCredentialsAttachment wifi_credentials_attachment = 4;
AppAttachment app_attachment = 5;
StreamAttachment stream_attachment = 6;
}
// The total bytes of all attachments transferred.
optional int64 transferred_bytes = 7;
// The duration from transfer start to transfer end.
optional int64 duration_millis = 8;
}
// EventType: APP_CRASH
// Used only for Nearby Share Windows App now
message AppCrash {
@@ -1029,5 +1049,17 @@ message SharingLog {
}
// EventType: CLOUD_REGISTER_RECEIVER used by QR code cloud web receiver
message CloudRegisterReceiver {}
// EventType: CLOUD_UPLOAD_START used by QR code cloud web sender
// The cloud_sharing_id and flow_id are logged in the event metadata.
message CloudUploadStart {
optional AttachmentsInfo attachments_info = 1;
}
// EventType: CLOUD_UPLOAD_END used by QR code cloud web sender
// The cloud_sharing_id and flow_id are logged in the event metadata.
message CloudUploadEnd {
repeated CloudAttachmentInfo upload_infos = 1;
}
}
// LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)