Add CloudActionType for CloudDownloadStart and CloudDownloadEnd

PiperOrigin-RevId: 832663739
This commit is contained in:
hai007
2025-11-15 04:13:52 -08:00
committed by Copybara-Service
parent 1e78c386f9
commit 1baab3cb2c
2 changed files with 7 additions and 4 deletions
+5 -4
View File
@@ -1041,12 +1041,13 @@ enum CloudRegisterReceiverResult {
// //depot/google3/javascript/net/grpc/web/statuscode.ts
// )
// The action type of uploading files to the cloud. Used by CLOUD_UPLOAD_START
// and CLOUD_UPLOAD_END.
// The action type of uploading/downloading files to/from the cloud. Used by
// CLOUD_UPLOAD_START , CLOUD_UPLOAD_END, CLOUD_DOWNLOAD_START and
// CLOUD_DOWNLOAD_END.
enum CloudActionType {
CLOUD_ACTION_TYPE_UNKNOWN = 0;
// The upload is a normal upload.
// The action is a normal upload/download.
CLOUD_ACTION_TYPE_NORMAL = 1;
// The upload is a retry of a previous failed upload.
// The action is a retry of a previous failed upload/download.
CLOUD_ACTION_TYPE_RETRY = 2;
}
@@ -1084,6 +1084,7 @@ message SharingLog {
// event_metadata into the anonymous logs.
message CloudDownloadStart {
optional AttachmentsInfo attachments_info = 1;
optional location.nearby.proto.sharing.CloudActionType action_type = 2;
}
// EventType: CLOUD_DOWNLOAD_END used by QR code cloud web receiver
@@ -1091,6 +1092,7 @@ message SharingLog {
// event_metadata into the anonymous logs.
message CloudDownloadEnd {
repeated CloudAttachmentInfo download_infos = 1;
optional location.nearby.proto.sharing.CloudActionType action_type = 2;
}
// EventType: CLOUD_SHARING_RPC_RESULT