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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#[derive(Clone, PartialEq, Message)]
pub struct Path {
    #[prost(string, tag="1")]
    pub ipaddr: String,
    #[prost(enumeration="path::Category", tag="2")]
    pub category: i32,
}
pub mod path {
    #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, Enumeration)]
    pub enum Category {
        Invalid = 0,
        Local = 1,
        Internet = 2,
        BrokerOrigin = 3,
    }
}
#[derive(Clone, PartialEq, Message)]
pub struct Filter {
    #[prost(oneof="filter::M", tags="1, 2")]
    pub m: ::std::option::Option<filter::M>,
}
pub mod filter {
    #[derive(Clone, Oneof, PartialEq)]
    pub enum M {
        #[prost(bool, tag="1")]
        Immediate(bool),
        #[prost(bytes, tag="2")]
        Identity(Vec<u8>),
    }
}
#[derive(Clone, PartialEq, Message)]
pub struct SubscribeRequest {
    #[prost(bytes, tag="1")]
    pub shadow: Vec<u8>,
    #[prost(message, repeated, tag="2")]
    pub filter: ::std::vec::Vec<Filter>,
}
#[derive(Clone, PartialEq, Message)]
pub struct Publish {
    #[prost(bytes, tag="1")]
    pub identity: Vec<u8>,
    #[prost(bytes, tag="2")]
    pub xaddr: Vec<u8>,
}
#[derive(Clone, PartialEq, Message)]
pub struct Unpublish {
    #[prost(bytes, tag="1")]
    pub identity: Vec<u8>,
}
#[derive(Clone, PartialEq, Message)]
pub struct Supersede {
}
#[derive(Clone, PartialEq, Message)]
pub struct SubscribeChange {
    #[prost(oneof="subscribe_change::M", tags="1, 2, 3")]
    pub m: ::std::option::Option<subscribe_change::M>,
}
pub mod subscribe_change {
    #[derive(Clone, Oneof, PartialEq)]
    pub enum M {
        #[prost(message, tag="1")]
        Publish(super::Publish),
        #[prost(message, tag="2")]
        Unpublish(super::Unpublish),
        #[prost(message, tag="3")]
        Supersede(super::Supersede),
    }
}
#[derive(Clone, PartialEq, Message)]
pub struct PublishRequest {
    #[prost(bytes, tag="1")]
    pub xaddr: Vec<u8>,
    #[prost(bytes, tag="2")]
    pub shadow: Vec<u8>,
}
#[derive(Clone, PartialEq, Message)]
pub struct PublishChange {
    #[prost(oneof="publish_change::M", tags="1")]
    pub m: ::std::option::Option<publish_change::M>,
}
pub mod publish_change {
    #[derive(Clone, Oneof, PartialEq)]
    pub enum M {
        #[prost(message, tag="1")]
        Supersede(super::Supersede),
    }
}
#[derive(Clone, PartialEq, Message)]
pub struct ConnectRequest {
    #[prost(bytes, tag="1")]
    pub target: Vec<u8>,
    #[prost(uint64, tag="2")]
    pub timestamp: u64,
    #[prost(bytes, tag="3")]
    pub handshake: Vec<u8>,
    #[prost(message, repeated, tag="4")]
    pub paths: ::std::vec::Vec<Path>,
    #[prost(bytes, tag="5")]
    pub identity: Vec<u8>,
}
#[derive(Clone, PartialEq, Message)]
pub struct ConnectResponse {
    #[prost(bool, tag="1")]
    pub ok: bool,
    #[prost(bytes, tag="2")]
    pub handshake: Vec<u8>,
    #[prost(uint64, tag="3")]
    pub route: u64,
    #[prost(message, repeated, tag="4")]
    pub paths: ::std::vec::Vec<Path>,
}
#[derive(Clone, PartialEq, Message)]
pub struct PeerConnectRequest {
    #[prost(bytes, tag="1")]
    pub identity: Vec<u8>,
    #[prost(uint64, tag="2")]
    pub timestamp: u64,
    #[prost(bytes, tag="3")]
    pub handshake: Vec<u8>,
    #[prost(uint64, tag="4")]
    pub route: u64,
    #[prost(message, repeated, tag="5")]
    pub paths: ::std::vec::Vec<Path>,
}
#[derive(Clone, PartialEq, Message)]
pub struct PeerConnectResponse {
    #[prost(bool, tag="1")]
    pub ok: bool,
    #[prost(bytes, tag="2")]
    pub handshake: Vec<u8>,
    #[prost(message, repeated, tag="3")]
    pub paths: ::std::vec::Vec<Path>,
}
#[derive(Clone, PartialEq, Message)]
pub struct ProtoHeader {
    #[prost(uint64, tag="1")]
    pub len: u64,
}
#[derive(Clone, PartialEq, Message)]
pub struct Empty {
}