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.

389 lines
14 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/blockchain/msgs.proto
  3. package blockchain
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. types "github.com/tendermint/tendermint/proto/types"
  9. math "math"
  10. )
  11. // Reference imports to suppress errors if they are not otherwise used.
  12. var _ = proto.Marshal
  13. var _ = fmt.Errorf
  14. var _ = math.Inf
  15. // This is a compile-time assertion to ensure that this generated file
  16. // is compatible with the proto package it is being compiled against.
  17. // A compilation error at this line likely means your copy of the
  18. // proto package needs to be updated.
  19. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  20. // BlockRequest requests a block for a specific height
  21. type BlockRequest struct {
  22. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  23. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  24. XXX_unrecognized []byte `json:"-"`
  25. XXX_sizecache int32 `json:"-"`
  26. }
  27. func (m *BlockRequest) Reset() { *m = BlockRequest{} }
  28. func (m *BlockRequest) String() string { return proto.CompactTextString(m) }
  29. func (*BlockRequest) ProtoMessage() {}
  30. func (*BlockRequest) Descriptor() ([]byte, []int) {
  31. return fileDescriptor_ecf660069f8bb334, []int{0}
  32. }
  33. func (m *BlockRequest) XXX_Unmarshal(b []byte) error {
  34. return xxx_messageInfo_BlockRequest.Unmarshal(m, b)
  35. }
  36. func (m *BlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  37. return xxx_messageInfo_BlockRequest.Marshal(b, m, deterministic)
  38. }
  39. func (m *BlockRequest) XXX_Merge(src proto.Message) {
  40. xxx_messageInfo_BlockRequest.Merge(m, src)
  41. }
  42. func (m *BlockRequest) XXX_Size() int {
  43. return xxx_messageInfo_BlockRequest.Size(m)
  44. }
  45. func (m *BlockRequest) XXX_DiscardUnknown() {
  46. xxx_messageInfo_BlockRequest.DiscardUnknown(m)
  47. }
  48. var xxx_messageInfo_BlockRequest proto.InternalMessageInfo
  49. func (m *BlockRequest) GetHeight() int64 {
  50. if m != nil {
  51. return m.Height
  52. }
  53. return 0
  54. }
  55. // NoBlockResponse informs the node that the peer does not have block at the requested height
  56. type NoBlockResponse struct {
  57. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  58. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  59. XXX_unrecognized []byte `json:"-"`
  60. XXX_sizecache int32 `json:"-"`
  61. }
  62. func (m *NoBlockResponse) Reset() { *m = NoBlockResponse{} }
  63. func (m *NoBlockResponse) String() string { return proto.CompactTextString(m) }
  64. func (*NoBlockResponse) ProtoMessage() {}
  65. func (*NoBlockResponse) Descriptor() ([]byte, []int) {
  66. return fileDescriptor_ecf660069f8bb334, []int{1}
  67. }
  68. func (m *NoBlockResponse) XXX_Unmarshal(b []byte) error {
  69. return xxx_messageInfo_NoBlockResponse.Unmarshal(m, b)
  70. }
  71. func (m *NoBlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  72. return xxx_messageInfo_NoBlockResponse.Marshal(b, m, deterministic)
  73. }
  74. func (m *NoBlockResponse) XXX_Merge(src proto.Message) {
  75. xxx_messageInfo_NoBlockResponse.Merge(m, src)
  76. }
  77. func (m *NoBlockResponse) XXX_Size() int {
  78. return xxx_messageInfo_NoBlockResponse.Size(m)
  79. }
  80. func (m *NoBlockResponse) XXX_DiscardUnknown() {
  81. xxx_messageInfo_NoBlockResponse.DiscardUnknown(m)
  82. }
  83. var xxx_messageInfo_NoBlockResponse proto.InternalMessageInfo
  84. func (m *NoBlockResponse) GetHeight() int64 {
  85. if m != nil {
  86. return m.Height
  87. }
  88. return 0
  89. }
  90. // BlockResponse returns block to the requested
  91. type BlockResponse struct {
  92. Block types.Block `protobuf:"bytes,1,opt,name=block,proto3" json:"block"`
  93. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  94. XXX_unrecognized []byte `json:"-"`
  95. XXX_sizecache int32 `json:"-"`
  96. }
  97. func (m *BlockResponse) Reset() { *m = BlockResponse{} }
  98. func (m *BlockResponse) String() string { return proto.CompactTextString(m) }
  99. func (*BlockResponse) ProtoMessage() {}
  100. func (*BlockResponse) Descriptor() ([]byte, []int) {
  101. return fileDescriptor_ecf660069f8bb334, []int{2}
  102. }
  103. func (m *BlockResponse) XXX_Unmarshal(b []byte) error {
  104. return xxx_messageInfo_BlockResponse.Unmarshal(m, b)
  105. }
  106. func (m *BlockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  107. return xxx_messageInfo_BlockResponse.Marshal(b, m, deterministic)
  108. }
  109. func (m *BlockResponse) XXX_Merge(src proto.Message) {
  110. xxx_messageInfo_BlockResponse.Merge(m, src)
  111. }
  112. func (m *BlockResponse) XXX_Size() int {
  113. return xxx_messageInfo_BlockResponse.Size(m)
  114. }
  115. func (m *BlockResponse) XXX_DiscardUnknown() {
  116. xxx_messageInfo_BlockResponse.DiscardUnknown(m)
  117. }
  118. var xxx_messageInfo_BlockResponse proto.InternalMessageInfo
  119. func (m *BlockResponse) GetBlock() types.Block {
  120. if m != nil {
  121. return m.Block
  122. }
  123. return types.Block{}
  124. }
  125. // StatusRequest requests the status of a node (Height & Base)
  126. type StatusRequest struct {
  127. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  128. Base int64 `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
  129. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  130. XXX_unrecognized []byte `json:"-"`
  131. XXX_sizecache int32 `json:"-"`
  132. }
  133. func (m *StatusRequest) Reset() { *m = StatusRequest{} }
  134. func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
  135. func (*StatusRequest) ProtoMessage() {}
  136. func (*StatusRequest) Descriptor() ([]byte, []int) {
  137. return fileDescriptor_ecf660069f8bb334, []int{3}
  138. }
  139. func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
  140. return xxx_messageInfo_StatusRequest.Unmarshal(m, b)
  141. }
  142. func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  143. return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
  144. }
  145. func (m *StatusRequest) XXX_Merge(src proto.Message) {
  146. xxx_messageInfo_StatusRequest.Merge(m, src)
  147. }
  148. func (m *StatusRequest) XXX_Size() int {
  149. return xxx_messageInfo_StatusRequest.Size(m)
  150. }
  151. func (m *StatusRequest) XXX_DiscardUnknown() {
  152. xxx_messageInfo_StatusRequest.DiscardUnknown(m)
  153. }
  154. var xxx_messageInfo_StatusRequest proto.InternalMessageInfo
  155. func (m *StatusRequest) GetHeight() int64 {
  156. if m != nil {
  157. return m.Height
  158. }
  159. return 0
  160. }
  161. func (m *StatusRequest) GetBase() int64 {
  162. if m != nil {
  163. return m.Base
  164. }
  165. return 0
  166. }
  167. // StatusResponse is a peer response to infrom their status
  168. type StatusResponse struct {
  169. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  170. Base int64 `protobuf:"varint,2,opt,name=base,proto3" json:"base,omitempty"`
  171. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  172. XXX_unrecognized []byte `json:"-"`
  173. XXX_sizecache int32 `json:"-"`
  174. }
  175. func (m *StatusResponse) Reset() { *m = StatusResponse{} }
  176. func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
  177. func (*StatusResponse) ProtoMessage() {}
  178. func (*StatusResponse) Descriptor() ([]byte, []int) {
  179. return fileDescriptor_ecf660069f8bb334, []int{4}
  180. }
  181. func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
  182. return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
  183. }
  184. func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  185. return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
  186. }
  187. func (m *StatusResponse) XXX_Merge(src proto.Message) {
  188. xxx_messageInfo_StatusResponse.Merge(m, src)
  189. }
  190. func (m *StatusResponse) XXX_Size() int {
  191. return xxx_messageInfo_StatusResponse.Size(m)
  192. }
  193. func (m *StatusResponse) XXX_DiscardUnknown() {
  194. xxx_messageInfo_StatusResponse.DiscardUnknown(m)
  195. }
  196. var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
  197. func (m *StatusResponse) GetHeight() int64 {
  198. if m != nil {
  199. return m.Height
  200. }
  201. return 0
  202. }
  203. func (m *StatusResponse) GetBase() int64 {
  204. if m != nil {
  205. return m.Base
  206. }
  207. return 0
  208. }
  209. type Message struct {
  210. // Types that are valid to be assigned to Sum:
  211. // *Message_BlockRequest
  212. // *Message_NoBlockResponse
  213. // *Message_BlockResponse
  214. // *Message_StatusRequest
  215. // *Message_StatusResponse
  216. Sum isMessage_Sum `protobuf_oneof:"sum"`
  217. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  218. XXX_unrecognized []byte `json:"-"`
  219. XXX_sizecache int32 `json:"-"`
  220. }
  221. func (m *Message) Reset() { *m = Message{} }
  222. func (m *Message) String() string { return proto.CompactTextString(m) }
  223. func (*Message) ProtoMessage() {}
  224. func (*Message) Descriptor() ([]byte, []int) {
  225. return fileDescriptor_ecf660069f8bb334, []int{5}
  226. }
  227. func (m *Message) XXX_Unmarshal(b []byte) error {
  228. return xxx_messageInfo_Message.Unmarshal(m, b)
  229. }
  230. func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  231. return xxx_messageInfo_Message.Marshal(b, m, deterministic)
  232. }
  233. func (m *Message) XXX_Merge(src proto.Message) {
  234. xxx_messageInfo_Message.Merge(m, src)
  235. }
  236. func (m *Message) XXX_Size() int {
  237. return xxx_messageInfo_Message.Size(m)
  238. }
  239. func (m *Message) XXX_DiscardUnknown() {
  240. xxx_messageInfo_Message.DiscardUnknown(m)
  241. }
  242. var xxx_messageInfo_Message proto.InternalMessageInfo
  243. type isMessage_Sum interface {
  244. isMessage_Sum()
  245. }
  246. type Message_BlockRequest struct {
  247. BlockRequest *BlockRequest `protobuf:"bytes,1,opt,name=block_request,json=blockRequest,proto3,oneof" json:"block_request,omitempty"`
  248. }
  249. type Message_NoBlockResponse struct {
  250. NoBlockResponse *NoBlockResponse `protobuf:"bytes,2,opt,name=no_block_response,json=noBlockResponse,proto3,oneof" json:"no_block_response,omitempty"`
  251. }
  252. type Message_BlockResponse struct {
  253. BlockResponse *BlockResponse `protobuf:"bytes,3,opt,name=block_response,json=blockResponse,proto3,oneof" json:"block_response,omitempty"`
  254. }
  255. type Message_StatusRequest struct {
  256. StatusRequest *StatusRequest `protobuf:"bytes,4,opt,name=status_request,json=statusRequest,proto3,oneof" json:"status_request,omitempty"`
  257. }
  258. type Message_StatusResponse struct {
  259. StatusResponse *StatusResponse `protobuf:"bytes,5,opt,name=status_response,json=statusResponse,proto3,oneof" json:"status_response,omitempty"`
  260. }
  261. func (*Message_BlockRequest) isMessage_Sum() {}
  262. func (*Message_NoBlockResponse) isMessage_Sum() {}
  263. func (*Message_BlockResponse) isMessage_Sum() {}
  264. func (*Message_StatusRequest) isMessage_Sum() {}
  265. func (*Message_StatusResponse) isMessage_Sum() {}
  266. func (m *Message) GetSum() isMessage_Sum {
  267. if m != nil {
  268. return m.Sum
  269. }
  270. return nil
  271. }
  272. func (m *Message) GetBlockRequest() *BlockRequest {
  273. if x, ok := m.GetSum().(*Message_BlockRequest); ok {
  274. return x.BlockRequest
  275. }
  276. return nil
  277. }
  278. func (m *Message) GetNoBlockResponse() *NoBlockResponse {
  279. if x, ok := m.GetSum().(*Message_NoBlockResponse); ok {
  280. return x.NoBlockResponse
  281. }
  282. return nil
  283. }
  284. func (m *Message) GetBlockResponse() *BlockResponse {
  285. if x, ok := m.GetSum().(*Message_BlockResponse); ok {
  286. return x.BlockResponse
  287. }
  288. return nil
  289. }
  290. func (m *Message) GetStatusRequest() *StatusRequest {
  291. if x, ok := m.GetSum().(*Message_StatusRequest); ok {
  292. return x.StatusRequest
  293. }
  294. return nil
  295. }
  296. func (m *Message) GetStatusResponse() *StatusResponse {
  297. if x, ok := m.GetSum().(*Message_StatusResponse); ok {
  298. return x.StatusResponse
  299. }
  300. return nil
  301. }
  302. // XXX_OneofWrappers is for the internal use of the proto package.
  303. func (*Message) XXX_OneofWrappers() []interface{} {
  304. return []interface{}{
  305. (*Message_BlockRequest)(nil),
  306. (*Message_NoBlockResponse)(nil),
  307. (*Message_BlockResponse)(nil),
  308. (*Message_StatusRequest)(nil),
  309. (*Message_StatusResponse)(nil),
  310. }
  311. }
  312. func init() {
  313. proto.RegisterType((*BlockRequest)(nil), "tendermint.proto.blockchain.BlockRequest")
  314. proto.RegisterType((*NoBlockResponse)(nil), "tendermint.proto.blockchain.NoBlockResponse")
  315. proto.RegisterType((*BlockResponse)(nil), "tendermint.proto.blockchain.BlockResponse")
  316. proto.RegisterType((*StatusRequest)(nil), "tendermint.proto.blockchain.StatusRequest")
  317. proto.RegisterType((*StatusResponse)(nil), "tendermint.proto.blockchain.StatusResponse")
  318. proto.RegisterType((*Message)(nil), "tendermint.proto.blockchain.Message")
  319. }
  320. func init() { proto.RegisterFile("proto/blockchain/msgs.proto", fileDescriptor_ecf660069f8bb334) }
  321. var fileDescriptor_ecf660069f8bb334 = []byte{
  322. // 369 bytes of a gzipped FileDescriptorProto
  323. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0xc1, 0x4e, 0xc2, 0x40,
  324. 0x10, 0x86, 0xc1, 0x02, 0x26, 0x03, 0x85, 0xd8, 0x83, 0x12, 0x88, 0xd1, 0xf4, 0x40, 0x44, 0xcd,
  325. 0x36, 0xc2, 0xc9, 0xe8, 0xa9, 0x27, 0x62, 0xa2, 0x31, 0x25, 0xf1, 0xc0, 0x85, 0xb4, 0xb0, 0x69,
  326. 0x1b, 0x6d, 0xb7, 0x76, 0xb6, 0x07, 0xde, 0xce, 0xa3, 0x4f, 0xe1,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, 0x22, 0xda, 0x2e, 0xd5, 0x9e, 0x41,
  338. 0x15, 0x7e, 0xe6, 0xb1, 0xb4, 0x91, 0xbe, 0x64, 0x48, 0xf6, 0x64, 0x43, 0x76, 0xf7, 0x3a, 0xa9,
  339. 0x58, 0x2d, 0x67, 0x77, 0xcf, 0x33, 0x38, 0x0a, 0xd9, 0x7c, 0x03, 0x95, 0xf6, 0xc4, 0xf8, 0xe6,
  340. 0xe8, 0x7a, 0x2f, 0xb5, 0x90, 0xc2, 0xa4, 0x62, 0x75, 0xc2, 0x42, 0x30, 0x53, 0x68, 0x17, 0xc0,
  341. 0x8a, 0x00, 0x5f, 0x96, 0xb1, 0x9b, 0x61, 0x55, 0xa7, 0x08, 0x45, 0xb1, 0xcc, 0x6c, 0x07, 0xb5,
  342. 0x12, 0xd0, 0x5c, 0x78, 0x6b, 0x28, 0xe6, 0xd2, 0x7c, 0x81, 0x4e, 0x06, 0x4d, 0xad, 0xd6, 0x05,
  343. 0xf5, 0xaa, 0x14, 0x35, 0xf3, 0xda, 0xc6, 0x9c, 0x62, 0xd6, 0x41, 0xc1, 0x24, 0x30, 0xc7, 0xb3,
  344. 0x1b, 0xd7, 0xe7, 0x5e, 0xe2, 0x90, 0x05, 0x0b, 0x8c, 0x2d, 0x71, 0xf7, 0x58, 0xfc, 0xf5, 0x9c,
  345. 0x86, 0x50, 0xc6, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb8, 0xb9, 0x72, 0x28, 0x95, 0x03, 0x00,
  346. 0x00,
  347. }