diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index 52443062..3c537234 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -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; } diff --git a/sharing/proto/analytics/nearby_sharing_log.proto b/sharing/proto/analytics/nearby_sharing_log.proto index 28407970..faecaadb 100644 --- a/sharing/proto/analytics/nearby_sharing_log.proto +++ b/sharing/proto/analytics/nearby_sharing_log.proto @@ -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