1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/// A single chunk of a file along with the metadata necessary to handle the chunk
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FileChunk {
    #[prost(uint64, tag="1")]
    pub sequence_no: u64,
    #[prost(string, tag="2")]
    pub container: std::string::String,
    #[prost(string, tag="3")]
    pub id: std::string::String,
    #[prost(uint64, tag="4")]
    pub total_bytes: u64,
    #[prost(uint64, tag="5")]
    pub chunk_size: u64,
    #[prost(bytes, tag="6")]
    pub chunk_bytes: std::vec::Vec<u8>,
}
/// Represents a container of blobs
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Container {
    #[prost(string, tag="1")]
    pub id: std::string::String,
}
/// A list of containers
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ContainerList {
    #[prost(message, repeated, tag="1")]
    pub containers: ::std::vec::Vec<Container>,
}
/// Represents a single binary object in storage
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Blob {
    #[prost(string, tag="1")]
    pub id: std::string::String,
    #[prost(string, tag="2")]
    pub container: std::string::String,
    #[prost(uint64, tag="3")]
    pub byte_size: u64,
}
/// A list of blobs
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BlobList {
    #[prost(message, repeated, tag="1")]
    pub blobs: ::std::vec::Vec<Blob>,
}
/// A request to transfer a file
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamRequest {
    #[prost(string, tag="1")]
    pub id: std::string::String,
    #[prost(string, tag="2")]
    pub container: std::string::String,
    #[prost(uint64, tag="3")]
    pub chunk_size: u64,
}
/// Represents a transfer
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Transfer {
    #[prost(string, tag="1")]
    pub blob_id: std::string::String,
    #[prost(string, tag="2")]
    pub container: std::string::String,
    #[prost(uint64, tag="3")]
    pub chunk_size: u64,
    #[prost(uint64, tag="4")]
    pub total_size: u64,
    #[prost(uint64, tag="5")]
    pub total_chunks: u64,
}