You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

321 lines
12 KiB

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