syntax = "proto3";
package celp.protobuf.cm;
import "celp_header.proto";
import "celp_system_event_app_info.proto";
option optimize_for = SPEED;
message RUResult {
// Enum specifying stage/reason for failure of the update
enum UpdateFailureStatus {
UNKNOWN_ERROR = 0;
DOWNLOAD_FAILED = 1;
DOWNLOAD_VERIFICATION_FAILED = 2;
INSUFFICIENT_SPACE = 3;
PRE_INSTALL_HOOK_FAILED = 4;
INSTALL_HOOK_FAILED = 5;
POST_INSTALL_HOOK_FAILED = 6;
VERSION_MISMATCH = 7;
}
// Base header from CELP
celp.protobuf.Header header = 1;
// Version of the bundle
celp.protobuf.se.AppInfo.SemVer bundle_version = 3;
// Update failure details
message Failure {
// Error code for the failure
UpdateFailureStatus failure_status = 1;
// String containing the error message
string error_message = 3;
}
// Result of the Remote Update Attempt
oneof result {
bool success = 4;
Failure failure = 5;
}
}