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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/// DTN service RPC message container
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dtn {
    /// message type
    #[prost(oneof="dtn::Message", tags="1, 2, 3, 4, 5, 6, 7, 8, 9, 10")]
    pub message: ::core::option::Option<dtn::Message>,
}
/// Nested message and enum types in `DTN`.
pub mod dtn {
    /// message type
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Message {
        /// dtn state request
        #[prost(message, tag="1")]
        DtnStateRequest(super::DtnStateRequest),
        /// dtn state response
        #[prost(message, tag="2")]
        DtnStateResponse(super::DtnStateResponse),
        /// dtn config request
        #[prost(message, tag="3")]
        DtnConfigRequest(super::DtnConfigRequest),
        /// dtn config response
        #[prost(message, tag="4")]
        DtnConfigResponse(super::DtnConfigResponse),
        /// dtn add user request
        #[prost(message, tag="5")]
        DtnAddUserRequest(super::DtnAddUserRequest),
        /// dtn add user response
        #[prost(message, tag="6")]
        DtnAddUserResponse(super::DtnAddUserResponse),
        /// dtn remove user request
        #[prost(message, tag="7")]
        DtnRemoveUserRequest(super::DtnRemoveUserRequest),
        /// dtn remove user response
        #[prost(message, tag="8")]
        DtnRemoveUserResponse(super::DtnRemoveUserResponse),
        /// dtn set total size request
        #[prost(message, tag="9")]
        DtnSetTotalSizeRequest(super::DtnSetTotalSizeRequest),
        /// dtn set total size response
        #[prost(message, tag="10")]
        DtnSetTotalSizeResponse(super::DtnSetTotalSizeResponse),
    }
}
/// Dtn State Request
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnStateRequest {
}
/// Dtn State Response
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnStateResponse {
    /// used size
    #[prost(uint64, tag="1")]
    pub used_size: u64,
    /// dtn message count
    #[prost(uint32, tag="2")]
    pub dtn_message_count: u32,
    /// unconfirmed count
    #[prost(uint32, tag="3")]
    pub unconfirmed_count: u32,
}
/// Dtn Config Request
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnConfigRequest {
}
/// Dtn Config Response
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnConfigResponse {
    /// total_size
    #[prost(uint32, tag="1")]
    pub total_size: u32,
    /// users
    #[prost(bytes="vec", repeated, tag="2")]
    pub users: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
/// Dtn Add User Request
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnAddUserRequest {
    /// user id
    #[prost(bytes="vec", tag="1")]
    pub user_id: ::prost::alloc::vec::Vec<u8>,
}
/// Dtn Add User Response
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnAddUserResponse {
    /// total_size
    #[prost(bool, tag="1")]
    pub status: bool,
    /// users
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
}
/// Dtn Remove User Request
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnRemoveUserRequest {
    /// user id
    #[prost(bytes="vec", tag="1")]
    pub user_id: ::prost::alloc::vec::Vec<u8>,
}
/// Dtn Remove User Response
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnRemoveUserResponse {
    /// total_size
    #[prost(bool, tag="1")]
    pub status: bool,
    /// users
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
}
/// Dtn SetTotalSize Request
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnSetTotalSizeRequest {
    /// total_size
    #[prost(uint32, tag="1")]
    pub total_size: u32,
}
/// Dtn Remove User Response
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DtnSetTotalSizeResponse {
    /// total_size
    #[prost(bool, tag="1")]
    pub status: bool,
    /// users
    #[prost(string, tag="2")]
    pub message: ::prost::alloc::string::String,
}