diff --git a/proto/sharing_enums.proto b/proto/sharing_enums.proto index f7975123..c0244293 100644 --- a/proto/sharing_enums.proto +++ b/proto/sharing_enums.proto @@ -1004,3 +1004,13 @@ enum CloudCreateSharingResult { // LINT.ThenChange( // //depot/google3/java/com/google/android/gmscore/integ/modules/nearby/src/com/google/android/gms/nearby/sharing/cloud/data/CreateSharingRequestResultStatus.kt // ) + +// The action type of uploading files to the cloud. Used by CLOUD_UPLOAD_START +// and CLOUD_UPLOAD_END. +enum CloudActionType { + CLOUD_ACTION_TYPE_UNKNOWN = 0; + // The upload is a normal upload. + CLOUD_ACTION_TYPE_NORMAL = 1; + // The upload is a retry of a previous failed upload. + CLOUD_ACTION_TYPE_RETRY = 2; +} diff --git a/sharing/proto/analytics/nearby_sharing_log.proto b/sharing/proto/analytics/nearby_sharing_log.proto index 7b89bb61..fe6e16da 100644 --- a/sharing/proto/analytics/nearby_sharing_log.proto +++ b/sharing/proto/analytics/nearby_sharing_log.proto @@ -1060,12 +1060,14 @@ message SharingLog { // The cloud_sharing_id and flow_id are logged in the event metadata. message CloudUploadStart { optional AttachmentsInfo attachments_info = 1; + optional location.nearby.proto.sharing.CloudActionType action_type = 2; } // 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; + optional location.nearby.proto.sharing.CloudActionType action_type = 2; } // EventType: CLOUD_DOWNLOAD_START used by QR code cloud web receiver