summaryrefslogtreecommitdiff
path: root/proto/log_enums.proto
diff options
context:
space:
mode:
Diffstat (limited to 'proto/log_enums.proto')
-rw-r--r--proto/log_enums.proto127
1 files changed, 125 insertions, 2 deletions
diff --git a/proto/log_enums.proto b/proto/log_enums.proto
index a6d4d63..a86c611 100644
--- a/proto/log_enums.proto
+++ b/proto/log_enums.proto
@@ -1,3 +1,16 @@
+// Copyright 2022 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
syntax = "proto3";
package mobiledatadownload.logs;
@@ -30,7 +43,13 @@ message MddClientEvent {
// Logged with DataDownloadFileGroupStats, MddFileGroupStatus.
DATA_DOWNLOAD_FILE_GROUP_STATUS = 1044;
- reserved 1000 to 1043, 1045 to 1113;
+ // Log MddStorageStats in daily maintenance.
+ DATA_DOWNLOAD_STORAGE_STATS = 1055;
+
+ // MDD download result log.
+ DATA_DOWNLOAD_RESULT_LOG = 1068;
+
+ reserved 1000 to 1043, 1045 to 1054, 1056 to 1067, 1069 to 1113;
reserved 2000 to 2999, 3000 to 3999, 4000 to 4099, 4100 to 4199,
5000 to 5999, 6000 to 6999, 7000 to 7999, 8000 to 8999, 9000 to 9999,
@@ -47,4 +66,108 @@ message MddFileGroupDownloadStatus {
PENDING = 2;
FAILED = 3;
}
-} \ No newline at end of file
+}
+
+// Result of MDD download api call.
+message MddDownloadResult {
+ enum Code {
+ UNSPECIFIED = 0; // unset value
+
+ // File downloaded successfully.
+ SUCCESS = 1;
+
+ // The error we don't know.
+ UNKNOWN_ERROR = 2;
+
+ // The errors from the android downloader v1 outside MDD, which comes from:
+ // <internal>
+ // The block 100-199 (included) is reserved for android downloader v1.
+ // Next tag: 112
+ ANDROID_DOWNLOADER_UNKNOWN = 100;
+ ANDROID_DOWNLOADER_CANCELED = 101;
+ ANDROID_DOWNLOADER_INVALID_REQUEST = 102;
+ ANDROID_DOWNLOADER_HTTP_ERROR = 103;
+ ANDROID_DOWNLOADER_REQUEST_ERROR = 104;
+ ANDROID_DOWNLOADER_RESPONSE_OPEN_ERROR = 105;
+ ANDROID_DOWNLOADER_RESPONSE_CLOSE_ERROR = 106;
+ ANDROID_DOWNLOADER_NETWORK_IO_ERROR = 107;
+ ANDROID_DOWNLOADER_DISK_IO_ERROR = 108;
+ ANDROID_DOWNLOADER_FILE_SYSTEM_ERROR = 109;
+ ANDROID_DOWNLOADER_UNKNOWN_IO_ERROR = 110;
+ ANDROID_DOWNLOADER_OAUTH_ERROR = 111;
+
+ // The errors from the android downloader v2 outside MDD, which comes from:
+ // <internal>
+ // The block 200-299 (included) is reserved for android downloader v2.
+ // Next tag: 201
+ ANDROID_DOWNLOADER2_ERROR = 200;
+
+ // The data file group has not been added to MDD by the time the caller
+ // makes download API call.
+ GROUP_NOT_FOUND_ERROR = 300;
+
+ // The DownloadListener is present but the DownloadMonitor is not provided.
+ DOWNLOAD_MONITOR_NOT_PROVIDED_ERROR = 301;
+
+ // Errors from unsatisfied download preconditions.
+ INSECURE_URL_ERROR = 302;
+ LOW_DISK_ERROR = 303;
+
+ // Errors from download preparation.
+ UNABLE_TO_CREATE_FILE_URI_ERROR = 304;
+ SHARED_FILE_NOT_FOUND_ERROR = 305;
+ MALFORMED_FILE_URI_ERROR = 306;
+ UNABLE_TO_CREATE_MOBSTORE_RESPONSE_WRITER_ERROR = 307;
+
+ // Errors from file validation.
+ UNABLE_TO_VALIDATE_DOWNLOAD_FILE_ERROR = 308;
+ DOWNLOADED_FILE_NOT_FOUND_ERROR = 309;
+ DOWNLOADED_FILE_CHECKSUM_MISMATCH_ERROR = 310;
+ CUSTOM_FILEGROUP_VALIDATION_FAILED = 330;
+
+ // Errors from download transforms.
+ UNABLE_TO_SERIALIZE_DOWNLOAD_TRANSFORM_ERROR = 311;
+ DOWNLOAD_TRANSFORM_IO_ERROR = 312;
+ FINAL_FILE_CHECKSUM_MISMATCH_ERROR = 313;
+
+ // Errors from delta download.
+ DELTA_DOWNLOAD_BASE_FILE_NOT_FOUND_ERROR = 314;
+ DELTA_DOWNLOAD_DECODE_IO_ERROR = 315;
+
+ // The error occurs after the file is ready.
+ UNABLE_TO_UPDATE_FILE_STATE_ERROR = 316;
+
+ // Fail to update the file group metadata.
+ UNABLE_TO_UPDATE_GROUP_METADATA_ERROR = 317;
+
+ // Errors from sharing files with the blob storage.
+ // Failed to update the metadata max_expiration_date.
+ UNABLE_TO_UPDATE_FILE_MAX_EXPIRATION_DATE = 318;
+ UNABLE_SHARE_FILE_BEFORE_DOWNLOAD_ERROR = 319;
+ UNABLE_SHARE_FILE_AFTER_DOWNLOAD_ERROR = 320;
+
+ // Download errors related to isolated file structure
+ UNABLE_TO_REMOVE_SYMLINK_STRUCTURE = 321;
+ UNABLE_TO_CREATE_SYMLINK_STRUCTURE = 322;
+
+ // Download errors related to importing inline files
+ UNABLE_TO_RESERVE_FILE_ENTRY = 323;
+ INVALID_INLINE_FILE_URL_SCHEME = 324;
+ INLINE_FILE_IO_ERROR = 327;
+ MISSING_INLINE_DOWNLOAD_PARAMS = 328;
+ MISSING_INLINE_FILE_SOURCE = 329;
+
+ // Download errors related to URL parsing
+ MALFORMED_DOWNLOAD_URL = 325;
+ UNSUPPORTED_DOWNLOAD_URL_SCHEME = 326;
+
+ // Download errors for manifest file group populator.
+ MANIFEST_FILE_GROUP_POPULATOR_INVALID_FLAG_ERROR = 400;
+ MANIFEST_FILE_GROUP_POPULATOR_CONTENT_CHANGED_DURING_DOWNLOAD_ERROR = 401;
+ MANIFEST_FILE_GROUP_POPULATOR_PARSE_MANIFEST_FILE_ERROR = 402;
+ MANIFEST_FILE_GROUP_POPULATOR_DELETE_MANIFEST_FILE_ERROR = 403;
+ MANIFEST_FILE_GROUP_POPULATOR_METADATA_IO_ERROR = 404;
+
+ reserved 1000 to 3000;
+ }
+}