github.com/okex/exchain@v1.8.0/libs/tendermint/proto/p2p/types.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: proto/p2p/types.proto 3 4 package p2p 5 6 import ( 7 fmt "fmt" 8 _ "github.com/gogo/protobuf/gogoproto" 9 proto "github.com/gogo/protobuf/proto" 10 math "math" 11 ) 12 13 // Reference imports to suppress errors if they are not otherwise used. 14 var _ = proto.Marshal 15 var _ = fmt.Errorf 16 var _ = math.Inf 17 18 // This is a compile-time assertion to ensure that this generated file 19 // is compatible with the proto package it is being compiled against. 20 // A compilation error at this line likely means your copy of the 21 // proto package needs to be updated. 22 const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package 23 24 type NetAddress struct { 25 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 26 IP string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"` 27 Port uint32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` 28 Str string `protobuf:"bytes,4,opt,name=str,proto3" json:"str,omitempty"` 29 XXX_NoUnkeyedLiteral struct{} `json:"-"` 30 XXX_unrecognized []byte `json:"-"` 31 XXX_sizecache int32 `json:"-"` 32 } 33 34 func (m *NetAddress) Reset() { *m = NetAddress{} } 35 func (m *NetAddress) String() string { return proto.CompactTextString(m) } 36 func (*NetAddress) ProtoMessage() {} 37 func (*NetAddress) Descriptor() ([]byte, []int) { 38 return fileDescriptor_5c4320c1810ca85c, []int{0} 39 } 40 func (m *NetAddress) XXX_Unmarshal(b []byte) error { 41 return xxx_messageInfo_NetAddress.Unmarshal(m, b) 42 } 43 func (m *NetAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 44 return xxx_messageInfo_NetAddress.Marshal(b, m, deterministic) 45 } 46 func (m *NetAddress) XXX_Merge(src proto.Message) { 47 xxx_messageInfo_NetAddress.Merge(m, src) 48 } 49 func (m *NetAddress) XXX_Size() int { 50 return xxx_messageInfo_NetAddress.Size(m) 51 } 52 func (m *NetAddress) XXX_DiscardUnknown() { 53 xxx_messageInfo_NetAddress.DiscardUnknown(m) 54 } 55 56 var xxx_messageInfo_NetAddress proto.InternalMessageInfo 57 58 func (m *NetAddress) GetID() string { 59 if m != nil { 60 return m.ID 61 } 62 return "" 63 } 64 65 func (m *NetAddress) GetIP() string { 66 if m != nil { 67 return m.IP 68 } 69 return "" 70 } 71 72 func (m *NetAddress) GetPort() uint32 { 73 if m != nil { 74 return m.Port 75 } 76 return 0 77 } 78 79 func (m *NetAddress) GetStr() string { 80 if m != nil { 81 return m.Str 82 } 83 return "" 84 } 85 86 type ProtocolVersion struct { 87 P2P uint64 `protobuf:"varint,1,opt,name=p2p,proto3" json:"p2p,omitempty"` 88 Block uint64 `protobuf:"varint,2,opt,name=block,proto3" json:"block,omitempty"` 89 App uint64 `protobuf:"varint,3,opt,name=app,proto3" json:"app,omitempty"` 90 XXX_NoUnkeyedLiteral struct{} `json:"-"` 91 XXX_unrecognized []byte `json:"-"` 92 XXX_sizecache int32 `json:"-"` 93 } 94 95 func (m *ProtocolVersion) Reset() { *m = ProtocolVersion{} } 96 func (m *ProtocolVersion) String() string { return proto.CompactTextString(m) } 97 func (*ProtocolVersion) ProtoMessage() {} 98 func (*ProtocolVersion) Descriptor() ([]byte, []int) { 99 return fileDescriptor_5c4320c1810ca85c, []int{1} 100 } 101 func (m *ProtocolVersion) XXX_Unmarshal(b []byte) error { 102 return xxx_messageInfo_ProtocolVersion.Unmarshal(m, b) 103 } 104 func (m *ProtocolVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 105 return xxx_messageInfo_ProtocolVersion.Marshal(b, m, deterministic) 106 } 107 func (m *ProtocolVersion) XXX_Merge(src proto.Message) { 108 xxx_messageInfo_ProtocolVersion.Merge(m, src) 109 } 110 func (m *ProtocolVersion) XXX_Size() int { 111 return xxx_messageInfo_ProtocolVersion.Size(m) 112 } 113 func (m *ProtocolVersion) XXX_DiscardUnknown() { 114 xxx_messageInfo_ProtocolVersion.DiscardUnknown(m) 115 } 116 117 var xxx_messageInfo_ProtocolVersion proto.InternalMessageInfo 118 119 func (m *ProtocolVersion) GetP2P() uint64 { 120 if m != nil { 121 return m.P2P 122 } 123 return 0 124 } 125 126 func (m *ProtocolVersion) GetBlock() uint64 { 127 if m != nil { 128 return m.Block 129 } 130 return 0 131 } 132 133 func (m *ProtocolVersion) GetApp() uint64 { 134 if m != nil { 135 return m.App 136 } 137 return 0 138 } 139 140 type DefaultNodeInfo struct { 141 ProtocolVersion ProtocolVersion `protobuf:"bytes,1,opt,name=protocol_version,json=protocolVersion,proto3" json:"protocol_version"` 142 DefaultNodeID string `protobuf:"bytes,2,opt,name=default_node_id,json=defaultNodeId,proto3" json:"default_node_id,omitempty"` 143 ListenAddr string `protobuf:"bytes,3,opt,name=listen_addr,json=listenAddr,proto3" json:"listen_addr,omitempty"` 144 Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"` 145 Version string `protobuf:"bytes,5,opt,name=version,proto3" json:"version,omitempty"` 146 Channels []byte `protobuf:"bytes,6,opt,name=channels,proto3" json:"channels,omitempty"` 147 Moniker string `protobuf:"bytes,7,opt,name=moniker,proto3" json:"moniker,omitempty"` 148 Other DefaultNodeInfoOther `protobuf:"bytes,8,opt,name=other,proto3" json:"other"` 149 XXX_NoUnkeyedLiteral struct{} `json:"-"` 150 XXX_unrecognized []byte `json:"-"` 151 XXX_sizecache int32 `json:"-"` 152 } 153 154 func (m *DefaultNodeInfo) Reset() { *m = DefaultNodeInfo{} } 155 func (m *DefaultNodeInfo) String() string { return proto.CompactTextString(m) } 156 func (*DefaultNodeInfo) ProtoMessage() {} 157 func (*DefaultNodeInfo) Descriptor() ([]byte, []int) { 158 return fileDescriptor_5c4320c1810ca85c, []int{2} 159 } 160 func (m *DefaultNodeInfo) XXX_Unmarshal(b []byte) error { 161 return xxx_messageInfo_DefaultNodeInfo.Unmarshal(m, b) 162 } 163 func (m *DefaultNodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 164 return xxx_messageInfo_DefaultNodeInfo.Marshal(b, m, deterministic) 165 } 166 func (m *DefaultNodeInfo) XXX_Merge(src proto.Message) { 167 xxx_messageInfo_DefaultNodeInfo.Merge(m, src) 168 } 169 func (m *DefaultNodeInfo) XXX_Size() int { 170 return xxx_messageInfo_DefaultNodeInfo.Size(m) 171 } 172 func (m *DefaultNodeInfo) XXX_DiscardUnknown() { 173 xxx_messageInfo_DefaultNodeInfo.DiscardUnknown(m) 174 } 175 176 var xxx_messageInfo_DefaultNodeInfo proto.InternalMessageInfo 177 178 func (m *DefaultNodeInfo) GetProtocolVersion() ProtocolVersion { 179 if m != nil { 180 return m.ProtocolVersion 181 } 182 return ProtocolVersion{} 183 } 184 185 func (m *DefaultNodeInfo) GetDefaultNodeID() string { 186 if m != nil { 187 return m.DefaultNodeID 188 } 189 return "" 190 } 191 192 func (m *DefaultNodeInfo) GetListenAddr() string { 193 if m != nil { 194 return m.ListenAddr 195 } 196 return "" 197 } 198 199 func (m *DefaultNodeInfo) GetNetwork() string { 200 if m != nil { 201 return m.Network 202 } 203 return "" 204 } 205 206 func (m *DefaultNodeInfo) GetVersion() string { 207 if m != nil { 208 return m.Version 209 } 210 return "" 211 } 212 213 func (m *DefaultNodeInfo) GetChannels() []byte { 214 if m != nil { 215 return m.Channels 216 } 217 return nil 218 } 219 220 func (m *DefaultNodeInfo) GetMoniker() string { 221 if m != nil { 222 return m.Moniker 223 } 224 return "" 225 } 226 227 func (m *DefaultNodeInfo) GetOther() DefaultNodeInfoOther { 228 if m != nil { 229 return m.Other 230 } 231 return DefaultNodeInfoOther{} 232 } 233 234 type DefaultNodeInfoOther struct { 235 TxIndex string `protobuf:"bytes,1,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"` 236 RPCAdddress string `protobuf:"bytes,2,opt,name=rpc_address,json=rpcAddress,proto3" json:"rpc_address,omitempty"` 237 XXX_NoUnkeyedLiteral struct{} `json:"-"` 238 XXX_unrecognized []byte `json:"-"` 239 XXX_sizecache int32 `json:"-"` 240 } 241 242 func (m *DefaultNodeInfoOther) Reset() { *m = DefaultNodeInfoOther{} } 243 func (m *DefaultNodeInfoOther) String() string { return proto.CompactTextString(m) } 244 func (*DefaultNodeInfoOther) ProtoMessage() {} 245 func (*DefaultNodeInfoOther) Descriptor() ([]byte, []int) { 246 return fileDescriptor_5c4320c1810ca85c, []int{3} 247 } 248 func (m *DefaultNodeInfoOther) XXX_Unmarshal(b []byte) error { 249 return xxx_messageInfo_DefaultNodeInfoOther.Unmarshal(m, b) 250 } 251 func (m *DefaultNodeInfoOther) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 252 return xxx_messageInfo_DefaultNodeInfoOther.Marshal(b, m, deterministic) 253 } 254 func (m *DefaultNodeInfoOther) XXX_Merge(src proto.Message) { 255 xxx_messageInfo_DefaultNodeInfoOther.Merge(m, src) 256 } 257 func (m *DefaultNodeInfoOther) XXX_Size() int { 258 return xxx_messageInfo_DefaultNodeInfoOther.Size(m) 259 } 260 func (m *DefaultNodeInfoOther) XXX_DiscardUnknown() { 261 xxx_messageInfo_DefaultNodeInfoOther.DiscardUnknown(m) 262 } 263 264 var xxx_messageInfo_DefaultNodeInfoOther proto.InternalMessageInfo 265 266 func (m *DefaultNodeInfoOther) GetTxIndex() string { 267 if m != nil { 268 return m.TxIndex 269 } 270 return "" 271 } 272 273 func (m *DefaultNodeInfoOther) GetRPCAdddress() string { 274 if m != nil { 275 return m.RPCAdddress 276 } 277 return "" 278 } 279 280 func init() { 281 proto.RegisterType((*NetAddress)(nil), "tendermint.proto.p2p.NetAddress") 282 proto.RegisterType((*ProtocolVersion)(nil), "tendermint.proto.p2p.ProtocolVersion") 283 proto.RegisterType((*DefaultNodeInfo)(nil), "tendermint.proto.p2p.DefaultNodeInfo") 284 proto.RegisterType((*DefaultNodeInfoOther)(nil), "tendermint.proto.p2p.DefaultNodeInfoOther") 285 } 286 287 func init() { proto.RegisterFile("proto/p2p/types.proto", fileDescriptor_5c4320c1810ca85c) } 288 289 var fileDescriptor_5c4320c1810ca85c = []byte{ 290 // 471 bytes of a gzipped FileDescriptorProto 291 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x53, 0xcf, 0x8a, 0xdb, 0x3e, 292 0x18, 0xfc, 0xc5, 0x71, 0xfe, 0xec, 0x97, 0x5f, 0xf0, 0x56, 0xa4, 0xc5, 0xbb, 0x17, 0x87, 0x40, 293 0x4b, 0x58, 0x8a, 0x53, 0xdc, 0x53, 0x8f, 0x9b, 0x86, 0x42, 0x2e, 0x5b, 0x23, 0xca, 0x1e, 0x7a, 294 0x31, 0x8e, 0xa5, 0x4d, 0x44, 0x1c, 0x49, 0xc8, 0xda, 0x36, 0xfb, 0x86, 0x7d, 0x0a, 0x1f, 0xf2, 295 0x12, 0xbd, 0x16, 0x49, 0xde, 0xdd, 0x10, 0x72, 0x9b, 0x19, 0x7d, 0xe3, 0xf9, 0x34, 0xc8, 0xf0, 296 0x56, 0x2a, 0xa1, 0xc5, 0x4c, 0x26, 0x72, 0xa6, 0x9f, 0x24, 0xad, 0x62, 0xcb, 0xd1, 0x48, 0x53, 297 0x4e, 0xa8, 0xda, 0x31, 0xae, 0x9d, 0x12, 0xcb, 0x44, 0x5e, 0x7f, 0xd0, 0x1b, 0xa6, 0x48, 0x26, 298 0x73, 0xa5, 0x9f, 0x66, 0xce, 0xb8, 0x16, 0x6b, 0xf1, 0x8a, 0xdc, 0xec, 0x64, 0x05, 0x70, 0x47, 299 0xf5, 0x2d, 0x21, 0x8a, 0x56, 0x15, 0x7a, 0x07, 0x1e, 0x23, 0x61, 0x6b, 0xdc, 0x9a, 0x5e, 0xcc, 300 0xbb, 0x87, 0x3a, 0xf2, 0x96, 0x0b, 0xec, 0x31, 0x62, 0x75, 0x19, 0x7a, 0x47, 0x7a, 0x8a, 0x3d, 301 0x26, 0x11, 0x02, 0x5f, 0x0a, 0xa5, 0xc3, 0xf6, 0xb8, 0x35, 0x1d, 0x62, 0x8b, 0xd1, 0x25, 0xb4, 302 0x2b, 0xad, 0x42, 0xdf, 0x0c, 0x63, 0x03, 0x27, 0x3f, 0x20, 0x48, 0x4d, 0x58, 0x21, 0xca, 0x7b, 303 0xaa, 0x2a, 0x26, 0x38, 0xba, 0x82, 0xb6, 0x4c, 0xa4, 0x4d, 0xf2, 0xe7, 0xbd, 0x43, 0x1d, 0xb5, 304 0xd3, 0x24, 0xc5, 0x46, 0x43, 0x23, 0xe8, 0xac, 0x4a, 0x51, 0x6c, 0x6d, 0x9c, 0x8f, 0x1d, 0x31, 305 0x5f, 0xcd, 0xa5, 0xb4, 0x41, 0x3e, 0x36, 0x70, 0xf2, 0xd7, 0x83, 0x60, 0x41, 0x1f, 0xf2, 0xc7, 306 0x52, 0xdf, 0x09, 0x42, 0x97, 0xfc, 0x41, 0xa0, 0x7b, 0xb8, 0x94, 0x4d, 0x52, 0xf6, 0xcb, 0x45, 307 0xd9, 0x8c, 0x41, 0xf2, 0x3e, 0x3e, 0x57, 0x53, 0x7c, 0xb2, 0xd7, 0xdc, 0xff, 0x53, 0x47, 0xff, 308 0xe1, 0x40, 0x9e, 0xac, 0xfb, 0x05, 0x02, 0xe2, 0xa2, 0x32, 0x2e, 0x08, 0xcd, 0x18, 0x69, 0xca, 309 0x78, 0x73, 0xa8, 0xa3, 0xe1, 0xf1, 0x16, 0x0b, 0x3c, 0x24, 0x47, 0x94, 0xa0, 0x08, 0x06, 0x25, 310 0xab, 0x34, 0xe5, 0x59, 0x4e, 0x88, 0xb2, 0x17, 0xb8, 0xc0, 0xe0, 0x24, 0x53, 0x3b, 0x0a, 0xa1, 311 0xc7, 0xa9, 0xfe, 0x2d, 0xd4, 0xb6, 0xe9, 0xec, 0x99, 0x9a, 0x93, 0xe7, 0x4b, 0x74, 0xdc, 0x49, 312 0x43, 0xd1, 0x35, 0xf4, 0x8b, 0x4d, 0xce, 0x39, 0x2d, 0xab, 0xb0, 0x3b, 0x6e, 0x4d, 0xff, 0xc7, 313 0x2f, 0xdc, 0xb8, 0x76, 0x82, 0xb3, 0x2d, 0x55, 0x61, 0xcf, 0xb9, 0x1a, 0x8a, 0xbe, 0x41, 0x47, 314 0xe8, 0x0d, 0x55, 0x61, 0xdf, 0x56, 0x72, 0x73, 0xbe, 0x92, 0x93, 0x4e, 0xbf, 0x1b, 0x47, 0xd3, 315 0x8b, 0xb3, 0x4f, 0x0a, 0x18, 0x9d, 0x1b, 0x42, 0x57, 0xd0, 0xd7, 0xfb, 0x8c, 0x71, 0x42, 0xf7, 316 0xee, 0x0d, 0xe1, 0x9e, 0xde, 0x2f, 0x0d, 0x45, 0x9f, 0x60, 0xa0, 0x64, 0x61, 0x2b, 0xa0, 0x55, 317 0xd5, 0x94, 0x17, 0x1c, 0xea, 0x68, 0x80, 0xd3, 0xaf, 0xb7, 0xc4, 0xc9, 0x18, 0x94, 0x2c, 0x9a, 318 0xa7, 0x38, 0xff, 0xf8, 0xf3, 0x66, 0xcd, 0xf4, 0xe6, 0x71, 0x15, 0x17, 0x62, 0x37, 0x7b, 0xdd, 319 0xf4, 0x18, 0xbe, 0xfc, 0x10, 0xab, 0xae, 0x85, 0x9f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0xa2, 320 0x36, 0x05, 0x66, 0x24, 0x03, 0x00, 0x00, 321 }