#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupMediaFile {
#[prost(enumeration = "backup_media_file::MediaType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub path: ::prost::alloc::string::String,
#[prost(int64, tag = "4")]
pub last_modified: i64,
#[prost(string, tag = "5")]
pub owner_package_name: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub is_favorite: bool,
#[prost(int64, tag = "7")]
pub size: i64,
#[prost(string, tag = "8")]
pub volume: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "9")]
pub chunk_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, tag = "10")]
pub zip_index: i32,
}
pub mod backup_media_file {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum MediaType {
Images = 0,
Video = 1,
Audio = 2,
Downloads = 3,
}
impl MediaType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Images => "IMAGES",
Self::Video => "VIDEO",
Self::Audio => "AUDIO",
Self::Downloads => "DOWNLOADS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"IMAGES" => Some(Self::Images),
"VIDEO" => Some(Self::Video),
"AUDIO" => Some(Self::Audio),
"DOWNLOADS" => Some(Self::Downloads),
_ => None,
}
}
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupDocumentFile {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub path: ::prost::alloc::string::String,
#[prost(int64, tag = "3")]
pub last_modified: i64,
#[prost(int64, tag = "4")]
pub size: i64,
#[prost(string, tag = "5")]
pub volume: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "6")]
pub chunk_ids: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int32, tag = "7")]
pub zip_index: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BackupSnapshot {
#[prost(int32, tag = "1")]
pub version: i32,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub media_files: ::prost::alloc::vec::Vec<BackupMediaFile>,
#[prost(message, repeated, tag = "4")]
pub document_files: ::prost::alloc::vec::Vec<BackupDocumentFile>,
#[prost(int64, tag = "5")]
pub size: i64,
#[prost(int64, tag = "6")]
pub time_start: i64,
#[prost(int64, tag = "7")]
pub time_end: i64,
}