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
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Message {
#[prost(oneof="message::Sum", tags="1, 2, 3, 4")]
pub sum: ::core::option::Option<message::Sum>,
}
pub mod message {
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Sum {
#[prost(message, tag="1")]
SnapshotsRequest(super::SnapshotsRequest),
#[prost(message, tag="2")]
SnapshotsResponse(super::SnapshotsResponse),
#[prost(message, tag="3")]
ChunkRequest(super::ChunkRequest),
#[prost(message, tag="4")]
ChunkResponse(super::ChunkResponse),
}
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotsRequest {
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SnapshotsResponse {
#[prost(uint64, tag="1")]
pub height: u64,
#[prost(uint32, tag="2")]
pub format: u32,
#[prost(uint32, tag="3")]
pub chunks: u32,
#[prost(bytes="vec", tag="4")]
pub hash: ::prost::alloc::vec::Vec<u8>,
#[prost(bytes="vec", tag="5")]
pub metadata: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChunkRequest {
#[prost(uint64, tag="1")]
pub height: u64,
#[prost(uint32, tag="2")]
pub format: u32,
#[prost(uint32, tag="3")]
pub index: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChunkResponse {
#[prost(uint64, tag="1")]
pub height: u64,
#[prost(uint32, tag="2")]
pub format: u32,
#[prost(uint32, tag="3")]
pub index: u32,
#[prost(bytes="vec", tag="4")]
pub chunk: ::prost::alloc::vec::Vec<u8>,
#[prost(bool, tag="5")]
pub missing: bool,
}