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.

1816 lines
63 KiB

  1. // Code generated by protoc-gen-go.
  2. // source: types.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package types is a generated protocol buffer package.
  6. It is generated from these files:
  7. types.proto
  8. It has these top-level messages:
  9. Request
  10. RequestEcho
  11. RequestFlush
  12. RequestInfo
  13. RequestSetOption
  14. RequestAppendTx
  15. RequestCheckTx
  16. RequestQuery
  17. RequestCommit
  18. RequestInitChain
  19. RequestBeginBlock
  20. RequestEndBlock
  21. Response
  22. ResponseException
  23. ResponseEcho
  24. ResponseFlush
  25. ResponseInfo
  26. ResponseSetOption
  27. ResponseAppendTx
  28. ResponseCheckTx
  29. ResponseQuery
  30. ResponseCommit
  31. ResponseInitChain
  32. ResponseBeginBlock
  33. ResponseEndBlock
  34. Validator
  35. */
  36. package types
  37. import proto "github.com/golang/protobuf/proto"
  38. import fmt "fmt"
  39. import math "math"
  40. import (
  41. context "golang.org/x/net/context"
  42. grpc "google.golang.org/grpc"
  43. )
  44. // Reference imports to suppress errors if they are not otherwise used.
  45. var _ = proto.Marshal
  46. var _ = fmt.Errorf
  47. var _ = math.Inf
  48. // This is a compile-time assertion to ensure that this generated file
  49. // is compatible with the proto package it is being compiled against.
  50. // A compilation error at this line likely means your copy of the
  51. // proto package needs to be updated.
  52. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  53. // Not being used
  54. // Could be added to request/response
  55. // so we don't have to type switch
  56. // (would be twice as fast, but we're talking about 15ns)
  57. type MessageType int32
  58. const (
  59. MessageType_NullMessage MessageType = 0
  60. MessageType_Echo MessageType = 1
  61. MessageType_Flush MessageType = 2
  62. MessageType_Info MessageType = 3
  63. MessageType_SetOption MessageType = 4
  64. MessageType_Exception MessageType = 5
  65. MessageType_AppendTx MessageType = 17
  66. MessageType_CheckTx MessageType = 18
  67. MessageType_Commit MessageType = 19
  68. MessageType_Query MessageType = 20
  69. MessageType_InitChain MessageType = 21
  70. MessageType_BeginBlock MessageType = 22
  71. MessageType_EndBlock MessageType = 23
  72. )
  73. var MessageType_name = map[int32]string{
  74. 0: "NullMessage",
  75. 1: "Echo",
  76. 2: "Flush",
  77. 3: "Info",
  78. 4: "SetOption",
  79. 5: "Exception",
  80. 17: "AppendTx",
  81. 18: "CheckTx",
  82. 19: "Commit",
  83. 20: "Query",
  84. 21: "InitChain",
  85. 22: "BeginBlock",
  86. 23: "EndBlock",
  87. }
  88. var MessageType_value = map[string]int32{
  89. "NullMessage": 0,
  90. "Echo": 1,
  91. "Flush": 2,
  92. "Info": 3,
  93. "SetOption": 4,
  94. "Exception": 5,
  95. "AppendTx": 17,
  96. "CheckTx": 18,
  97. "Commit": 19,
  98. "Query": 20,
  99. "InitChain": 21,
  100. "BeginBlock": 22,
  101. "EndBlock": 23,
  102. }
  103. func (x MessageType) String() string {
  104. return proto.EnumName(MessageType_name, int32(x))
  105. }
  106. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  107. type CodeType int32
  108. const (
  109. CodeType_OK CodeType = 0
  110. // General response codes, 0 ~ 99
  111. CodeType_InternalError CodeType = 1
  112. CodeType_EncodingError CodeType = 2
  113. CodeType_BadNonce CodeType = 3
  114. CodeType_Unauthorized CodeType = 4
  115. CodeType_InsufficientFunds CodeType = 5
  116. CodeType_UnknownRequest CodeType = 6
  117. // Reserved for basecoin, 100 ~ 199
  118. CodeType_BaseDuplicateAddress CodeType = 101
  119. CodeType_BaseEncodingError CodeType = 102
  120. CodeType_BaseInsufficientFees CodeType = 103
  121. CodeType_BaseInsufficientFunds CodeType = 104
  122. CodeType_BaseInsufficientGasPrice CodeType = 105
  123. CodeType_BaseInvalidInput CodeType = 106
  124. CodeType_BaseInvalidOutput CodeType = 107
  125. CodeType_BaseInvalidPubKey CodeType = 108
  126. CodeType_BaseInvalidSequence CodeType = 109
  127. CodeType_BaseInvalidSignature CodeType = 110
  128. CodeType_BaseUnknownAddress CodeType = 111
  129. CodeType_BaseUnknownPubKey CodeType = 112
  130. CodeType_BaseUnknownPlugin CodeType = 113
  131. // Reserved for governance, 200 ~ 299
  132. CodeType_GovUnknownEntity CodeType = 201
  133. CodeType_GovUnknownGroup CodeType = 202
  134. CodeType_GovUnknownProposal CodeType = 203
  135. CodeType_GovDuplicateGroup CodeType = 204
  136. CodeType_GovDuplicateMember CodeType = 205
  137. CodeType_GovDuplicateProposal CodeType = 206
  138. CodeType_GovDuplicateVote CodeType = 207
  139. CodeType_GovInvalidMember CodeType = 208
  140. CodeType_GovInvalidVote CodeType = 209
  141. CodeType_GovInvalidVotingPower CodeType = 210
  142. )
  143. var CodeType_name = map[int32]string{
  144. 0: "OK",
  145. 1: "InternalError",
  146. 2: "EncodingError",
  147. 3: "BadNonce",
  148. 4: "Unauthorized",
  149. 5: "InsufficientFunds",
  150. 6: "UnknownRequest",
  151. 101: "BaseDuplicateAddress",
  152. 102: "BaseEncodingError",
  153. 103: "BaseInsufficientFees",
  154. 104: "BaseInsufficientFunds",
  155. 105: "BaseInsufficientGasPrice",
  156. 106: "BaseInvalidInput",
  157. 107: "BaseInvalidOutput",
  158. 108: "BaseInvalidPubKey",
  159. 109: "BaseInvalidSequence",
  160. 110: "BaseInvalidSignature",
  161. 111: "BaseUnknownAddress",
  162. 112: "BaseUnknownPubKey",
  163. 113: "BaseUnknownPlugin",
  164. 201: "GovUnknownEntity",
  165. 202: "GovUnknownGroup",
  166. 203: "GovUnknownProposal",
  167. 204: "GovDuplicateGroup",
  168. 205: "GovDuplicateMember",
  169. 206: "GovDuplicateProposal",
  170. 207: "GovDuplicateVote",
  171. 208: "GovInvalidMember",
  172. 209: "GovInvalidVote",
  173. 210: "GovInvalidVotingPower",
  174. }
  175. var CodeType_value = map[string]int32{
  176. "OK": 0,
  177. "InternalError": 1,
  178. "EncodingError": 2,
  179. "BadNonce": 3,
  180. "Unauthorized": 4,
  181. "InsufficientFunds": 5,
  182. "UnknownRequest": 6,
  183. "BaseDuplicateAddress": 101,
  184. "BaseEncodingError": 102,
  185. "BaseInsufficientFees": 103,
  186. "BaseInsufficientFunds": 104,
  187. "BaseInsufficientGasPrice": 105,
  188. "BaseInvalidInput": 106,
  189. "BaseInvalidOutput": 107,
  190. "BaseInvalidPubKey": 108,
  191. "BaseInvalidSequence": 109,
  192. "BaseInvalidSignature": 110,
  193. "BaseUnknownAddress": 111,
  194. "BaseUnknownPubKey": 112,
  195. "BaseUnknownPlugin": 113,
  196. "GovUnknownEntity": 201,
  197. "GovUnknownGroup": 202,
  198. "GovUnknownProposal": 203,
  199. "GovDuplicateGroup": 204,
  200. "GovDuplicateMember": 205,
  201. "GovDuplicateProposal": 206,
  202. "GovDuplicateVote": 207,
  203. "GovInvalidMember": 208,
  204. "GovInvalidVote": 209,
  205. "GovInvalidVotingPower": 210,
  206. }
  207. func (x CodeType) String() string {
  208. return proto.EnumName(CodeType_name, int32(x))
  209. }
  210. func (CodeType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  211. type Request struct {
  212. // Types that are valid to be assigned to Value:
  213. // *Request_Echo
  214. // *Request_Flush
  215. // *Request_Info
  216. // *Request_SetOption
  217. // *Request_AppendTx
  218. // *Request_CheckTx
  219. // *Request_Commit
  220. // *Request_Query
  221. // *Request_InitChain
  222. // *Request_BeginBlock
  223. // *Request_EndBlock
  224. Value isRequest_Value `protobuf_oneof:"value"`
  225. }
  226. func (m *Request) Reset() { *m = Request{} }
  227. func (m *Request) String() string { return proto.CompactTextString(m) }
  228. func (*Request) ProtoMessage() {}
  229. func (*Request) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  230. type isRequest_Value interface {
  231. isRequest_Value()
  232. }
  233. type Request_Echo struct {
  234. Echo *RequestEcho `protobuf:"bytes,1,opt,name=echo,oneof"`
  235. }
  236. type Request_Flush struct {
  237. Flush *RequestFlush `protobuf:"bytes,2,opt,name=flush,oneof"`
  238. }
  239. type Request_Info struct {
  240. Info *RequestInfo `protobuf:"bytes,3,opt,name=info,oneof"`
  241. }
  242. type Request_SetOption struct {
  243. SetOption *RequestSetOption `protobuf:"bytes,4,opt,name=set_option,json=setOption,oneof"`
  244. }
  245. type Request_AppendTx struct {
  246. AppendTx *RequestAppendTx `protobuf:"bytes,5,opt,name=append_tx,json=appendTx,oneof"`
  247. }
  248. type Request_CheckTx struct {
  249. CheckTx *RequestCheckTx `protobuf:"bytes,6,opt,name=check_tx,json=checkTx,oneof"`
  250. }
  251. type Request_Commit struct {
  252. Commit *RequestCommit `protobuf:"bytes,7,opt,name=commit,oneof"`
  253. }
  254. type Request_Query struct {
  255. Query *RequestQuery `protobuf:"bytes,8,opt,name=query,oneof"`
  256. }
  257. type Request_InitChain struct {
  258. InitChain *RequestInitChain `protobuf:"bytes,9,opt,name=init_chain,json=initChain,oneof"`
  259. }
  260. type Request_BeginBlock struct {
  261. BeginBlock *RequestBeginBlock `protobuf:"bytes,10,opt,name=begin_block,json=beginBlock,oneof"`
  262. }
  263. type Request_EndBlock struct {
  264. EndBlock *RequestEndBlock `protobuf:"bytes,11,opt,name=end_block,json=endBlock,oneof"`
  265. }
  266. func (*Request_Echo) isRequest_Value() {}
  267. func (*Request_Flush) isRequest_Value() {}
  268. func (*Request_Info) isRequest_Value() {}
  269. func (*Request_SetOption) isRequest_Value() {}
  270. func (*Request_AppendTx) isRequest_Value() {}
  271. func (*Request_CheckTx) isRequest_Value() {}
  272. func (*Request_Commit) isRequest_Value() {}
  273. func (*Request_Query) isRequest_Value() {}
  274. func (*Request_InitChain) isRequest_Value() {}
  275. func (*Request_BeginBlock) isRequest_Value() {}
  276. func (*Request_EndBlock) isRequest_Value() {}
  277. func (m *Request) GetValue() isRequest_Value {
  278. if m != nil {
  279. return m.Value
  280. }
  281. return nil
  282. }
  283. func (m *Request) GetEcho() *RequestEcho {
  284. if x, ok := m.GetValue().(*Request_Echo); ok {
  285. return x.Echo
  286. }
  287. return nil
  288. }
  289. func (m *Request) GetFlush() *RequestFlush {
  290. if x, ok := m.GetValue().(*Request_Flush); ok {
  291. return x.Flush
  292. }
  293. return nil
  294. }
  295. func (m *Request) GetInfo() *RequestInfo {
  296. if x, ok := m.GetValue().(*Request_Info); ok {
  297. return x.Info
  298. }
  299. return nil
  300. }
  301. func (m *Request) GetSetOption() *RequestSetOption {
  302. if x, ok := m.GetValue().(*Request_SetOption); ok {
  303. return x.SetOption
  304. }
  305. return nil
  306. }
  307. func (m *Request) GetAppendTx() *RequestAppendTx {
  308. if x, ok := m.GetValue().(*Request_AppendTx); ok {
  309. return x.AppendTx
  310. }
  311. return nil
  312. }
  313. func (m *Request) GetCheckTx() *RequestCheckTx {
  314. if x, ok := m.GetValue().(*Request_CheckTx); ok {
  315. return x.CheckTx
  316. }
  317. return nil
  318. }
  319. func (m *Request) GetCommit() *RequestCommit {
  320. if x, ok := m.GetValue().(*Request_Commit); ok {
  321. return x.Commit
  322. }
  323. return nil
  324. }
  325. func (m *Request) GetQuery() *RequestQuery {
  326. if x, ok := m.GetValue().(*Request_Query); ok {
  327. return x.Query
  328. }
  329. return nil
  330. }
  331. func (m *Request) GetInitChain() *RequestInitChain {
  332. if x, ok := m.GetValue().(*Request_InitChain); ok {
  333. return x.InitChain
  334. }
  335. return nil
  336. }
  337. func (m *Request) GetBeginBlock() *RequestBeginBlock {
  338. if x, ok := m.GetValue().(*Request_BeginBlock); ok {
  339. return x.BeginBlock
  340. }
  341. return nil
  342. }
  343. func (m *Request) GetEndBlock() *RequestEndBlock {
  344. if x, ok := m.GetValue().(*Request_EndBlock); ok {
  345. return x.EndBlock
  346. }
  347. return nil
  348. }
  349. // XXX_OneofFuncs is for the internal use of the proto package.
  350. func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  351. return _Request_OneofMarshaler, _Request_OneofUnmarshaler, _Request_OneofSizer, []interface{}{
  352. (*Request_Echo)(nil),
  353. (*Request_Flush)(nil),
  354. (*Request_Info)(nil),
  355. (*Request_SetOption)(nil),
  356. (*Request_AppendTx)(nil),
  357. (*Request_CheckTx)(nil),
  358. (*Request_Commit)(nil),
  359. (*Request_Query)(nil),
  360. (*Request_InitChain)(nil),
  361. (*Request_BeginBlock)(nil),
  362. (*Request_EndBlock)(nil),
  363. }
  364. }
  365. func _Request_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  366. m := msg.(*Request)
  367. // value
  368. switch x := m.Value.(type) {
  369. case *Request_Echo:
  370. b.EncodeVarint(1<<3 | proto.WireBytes)
  371. if err := b.EncodeMessage(x.Echo); err != nil {
  372. return err
  373. }
  374. case *Request_Flush:
  375. b.EncodeVarint(2<<3 | proto.WireBytes)
  376. if err := b.EncodeMessage(x.Flush); err != nil {
  377. return err
  378. }
  379. case *Request_Info:
  380. b.EncodeVarint(3<<3 | proto.WireBytes)
  381. if err := b.EncodeMessage(x.Info); err != nil {
  382. return err
  383. }
  384. case *Request_SetOption:
  385. b.EncodeVarint(4<<3 | proto.WireBytes)
  386. if err := b.EncodeMessage(x.SetOption); err != nil {
  387. return err
  388. }
  389. case *Request_AppendTx:
  390. b.EncodeVarint(5<<3 | proto.WireBytes)
  391. if err := b.EncodeMessage(x.AppendTx); err != nil {
  392. return err
  393. }
  394. case *Request_CheckTx:
  395. b.EncodeVarint(6<<3 | proto.WireBytes)
  396. if err := b.EncodeMessage(x.CheckTx); err != nil {
  397. return err
  398. }
  399. case *Request_Commit:
  400. b.EncodeVarint(7<<3 | proto.WireBytes)
  401. if err := b.EncodeMessage(x.Commit); err != nil {
  402. return err
  403. }
  404. case *Request_Query:
  405. b.EncodeVarint(8<<3 | proto.WireBytes)
  406. if err := b.EncodeMessage(x.Query); err != nil {
  407. return err
  408. }
  409. case *Request_InitChain:
  410. b.EncodeVarint(9<<3 | proto.WireBytes)
  411. if err := b.EncodeMessage(x.InitChain); err != nil {
  412. return err
  413. }
  414. case *Request_BeginBlock:
  415. b.EncodeVarint(10<<3 | proto.WireBytes)
  416. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  417. return err
  418. }
  419. case *Request_EndBlock:
  420. b.EncodeVarint(11<<3 | proto.WireBytes)
  421. if err := b.EncodeMessage(x.EndBlock); err != nil {
  422. return err
  423. }
  424. case nil:
  425. default:
  426. return fmt.Errorf("Request.Value has unexpected type %T", x)
  427. }
  428. return nil
  429. }
  430. func _Request_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  431. m := msg.(*Request)
  432. switch tag {
  433. case 1: // value.echo
  434. if wire != proto.WireBytes {
  435. return true, proto.ErrInternalBadWireType
  436. }
  437. msg := new(RequestEcho)
  438. err := b.DecodeMessage(msg)
  439. m.Value = &Request_Echo{msg}
  440. return true, err
  441. case 2: // value.flush
  442. if wire != proto.WireBytes {
  443. return true, proto.ErrInternalBadWireType
  444. }
  445. msg := new(RequestFlush)
  446. err := b.DecodeMessage(msg)
  447. m.Value = &Request_Flush{msg}
  448. return true, err
  449. case 3: // value.info
  450. if wire != proto.WireBytes {
  451. return true, proto.ErrInternalBadWireType
  452. }
  453. msg := new(RequestInfo)
  454. err := b.DecodeMessage(msg)
  455. m.Value = &Request_Info{msg}
  456. return true, err
  457. case 4: // value.set_option
  458. if wire != proto.WireBytes {
  459. return true, proto.ErrInternalBadWireType
  460. }
  461. msg := new(RequestSetOption)
  462. err := b.DecodeMessage(msg)
  463. m.Value = &Request_SetOption{msg}
  464. return true, err
  465. case 5: // value.append_tx
  466. if wire != proto.WireBytes {
  467. return true, proto.ErrInternalBadWireType
  468. }
  469. msg := new(RequestAppendTx)
  470. err := b.DecodeMessage(msg)
  471. m.Value = &Request_AppendTx{msg}
  472. return true, err
  473. case 6: // value.check_tx
  474. if wire != proto.WireBytes {
  475. return true, proto.ErrInternalBadWireType
  476. }
  477. msg := new(RequestCheckTx)
  478. err := b.DecodeMessage(msg)
  479. m.Value = &Request_CheckTx{msg}
  480. return true, err
  481. case 7: // value.commit
  482. if wire != proto.WireBytes {
  483. return true, proto.ErrInternalBadWireType
  484. }
  485. msg := new(RequestCommit)
  486. err := b.DecodeMessage(msg)
  487. m.Value = &Request_Commit{msg}
  488. return true, err
  489. case 8: // value.query
  490. if wire != proto.WireBytes {
  491. return true, proto.ErrInternalBadWireType
  492. }
  493. msg := new(RequestQuery)
  494. err := b.DecodeMessage(msg)
  495. m.Value = &Request_Query{msg}
  496. return true, err
  497. case 9: // value.init_chain
  498. if wire != proto.WireBytes {
  499. return true, proto.ErrInternalBadWireType
  500. }
  501. msg := new(RequestInitChain)
  502. err := b.DecodeMessage(msg)
  503. m.Value = &Request_InitChain{msg}
  504. return true, err
  505. case 10: // value.begin_block
  506. if wire != proto.WireBytes {
  507. return true, proto.ErrInternalBadWireType
  508. }
  509. msg := new(RequestBeginBlock)
  510. err := b.DecodeMessage(msg)
  511. m.Value = &Request_BeginBlock{msg}
  512. return true, err
  513. case 11: // value.end_block
  514. if wire != proto.WireBytes {
  515. return true, proto.ErrInternalBadWireType
  516. }
  517. msg := new(RequestEndBlock)
  518. err := b.DecodeMessage(msg)
  519. m.Value = &Request_EndBlock{msg}
  520. return true, err
  521. default:
  522. return false, nil
  523. }
  524. }
  525. func _Request_OneofSizer(msg proto.Message) (n int) {
  526. m := msg.(*Request)
  527. // value
  528. switch x := m.Value.(type) {
  529. case *Request_Echo:
  530. s := proto.Size(x.Echo)
  531. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  532. n += proto.SizeVarint(uint64(s))
  533. n += s
  534. case *Request_Flush:
  535. s := proto.Size(x.Flush)
  536. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  537. n += proto.SizeVarint(uint64(s))
  538. n += s
  539. case *Request_Info:
  540. s := proto.Size(x.Info)
  541. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  542. n += proto.SizeVarint(uint64(s))
  543. n += s
  544. case *Request_SetOption:
  545. s := proto.Size(x.SetOption)
  546. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  547. n += proto.SizeVarint(uint64(s))
  548. n += s
  549. case *Request_AppendTx:
  550. s := proto.Size(x.AppendTx)
  551. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  552. n += proto.SizeVarint(uint64(s))
  553. n += s
  554. case *Request_CheckTx:
  555. s := proto.Size(x.CheckTx)
  556. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  557. n += proto.SizeVarint(uint64(s))
  558. n += s
  559. case *Request_Commit:
  560. s := proto.Size(x.Commit)
  561. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  562. n += proto.SizeVarint(uint64(s))
  563. n += s
  564. case *Request_Query:
  565. s := proto.Size(x.Query)
  566. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  567. n += proto.SizeVarint(uint64(s))
  568. n += s
  569. case *Request_InitChain:
  570. s := proto.Size(x.InitChain)
  571. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  572. n += proto.SizeVarint(uint64(s))
  573. n += s
  574. case *Request_BeginBlock:
  575. s := proto.Size(x.BeginBlock)
  576. n += proto.SizeVarint(10<<3 | proto.WireBytes)
  577. n += proto.SizeVarint(uint64(s))
  578. n += s
  579. case *Request_EndBlock:
  580. s := proto.Size(x.EndBlock)
  581. n += proto.SizeVarint(11<<3 | proto.WireBytes)
  582. n += proto.SizeVarint(uint64(s))
  583. n += s
  584. case nil:
  585. default:
  586. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  587. }
  588. return n
  589. }
  590. type RequestEcho struct {
  591. Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
  592. }
  593. func (m *RequestEcho) Reset() { *m = RequestEcho{} }
  594. func (m *RequestEcho) String() string { return proto.CompactTextString(m) }
  595. func (*RequestEcho) ProtoMessage() {}
  596. func (*RequestEcho) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  597. type RequestFlush struct {
  598. }
  599. func (m *RequestFlush) Reset() { *m = RequestFlush{} }
  600. func (m *RequestFlush) String() string { return proto.CompactTextString(m) }
  601. func (*RequestFlush) ProtoMessage() {}
  602. func (*RequestFlush) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  603. type RequestInfo struct {
  604. }
  605. func (m *RequestInfo) Reset() { *m = RequestInfo{} }
  606. func (m *RequestInfo) String() string { return proto.CompactTextString(m) }
  607. func (*RequestInfo) ProtoMessage() {}
  608. func (*RequestInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  609. type RequestSetOption struct {
  610. Key string `protobuf:"bytes,1,opt,name=key" json:"key,omitempty"`
  611. Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
  612. }
  613. func (m *RequestSetOption) Reset() { *m = RequestSetOption{} }
  614. func (m *RequestSetOption) String() string { return proto.CompactTextString(m) }
  615. func (*RequestSetOption) ProtoMessage() {}
  616. func (*RequestSetOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
  617. type RequestAppendTx struct {
  618. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  619. }
  620. func (m *RequestAppendTx) Reset() { *m = RequestAppendTx{} }
  621. func (m *RequestAppendTx) String() string { return proto.CompactTextString(m) }
  622. func (*RequestAppendTx) ProtoMessage() {}
  623. func (*RequestAppendTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
  624. type RequestCheckTx struct {
  625. Tx []byte `protobuf:"bytes,1,opt,name=tx,proto3" json:"tx,omitempty"`
  626. }
  627. func (m *RequestCheckTx) Reset() { *m = RequestCheckTx{} }
  628. func (m *RequestCheckTx) String() string { return proto.CompactTextString(m) }
  629. func (*RequestCheckTx) ProtoMessage() {}
  630. func (*RequestCheckTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
  631. type RequestQuery struct {
  632. Query []byte `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
  633. }
  634. func (m *RequestQuery) Reset() { *m = RequestQuery{} }
  635. func (m *RequestQuery) String() string { return proto.CompactTextString(m) }
  636. func (*RequestQuery) ProtoMessage() {}
  637. func (*RequestQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
  638. type RequestCommit struct {
  639. }
  640. func (m *RequestCommit) Reset() { *m = RequestCommit{} }
  641. func (m *RequestCommit) String() string { return proto.CompactTextString(m) }
  642. func (*RequestCommit) ProtoMessage() {}
  643. func (*RequestCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} }
  644. type RequestInitChain struct {
  645. Validators []*Validator `protobuf:"bytes,1,rep,name=validators" json:"validators,omitempty"`
  646. }
  647. func (m *RequestInitChain) Reset() { *m = RequestInitChain{} }
  648. func (m *RequestInitChain) String() string { return proto.CompactTextString(m) }
  649. func (*RequestInitChain) ProtoMessage() {}
  650. func (*RequestInitChain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} }
  651. func (m *RequestInitChain) GetValidators() []*Validator {
  652. if m != nil {
  653. return m.Validators
  654. }
  655. return nil
  656. }
  657. type RequestBeginBlock struct {
  658. Height uint64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
  659. }
  660. func (m *RequestBeginBlock) Reset() { *m = RequestBeginBlock{} }
  661. func (m *RequestBeginBlock) String() string { return proto.CompactTextString(m) }
  662. func (*RequestBeginBlock) ProtoMessage() {}
  663. func (*RequestBeginBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} }
  664. type RequestEndBlock struct {
  665. Height uint64 `protobuf:"varint,1,opt,name=height" json:"height,omitempty"`
  666. }
  667. func (m *RequestEndBlock) Reset() { *m = RequestEndBlock{} }
  668. func (m *RequestEndBlock) String() string { return proto.CompactTextString(m) }
  669. func (*RequestEndBlock) ProtoMessage() {}
  670. func (*RequestEndBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} }
  671. type Response struct {
  672. // Types that are valid to be assigned to Value:
  673. // *Response_Exception
  674. // *Response_Echo
  675. // *Response_Flush
  676. // *Response_Info
  677. // *Response_SetOption
  678. // *Response_AppendTx
  679. // *Response_CheckTx
  680. // *Response_Commit
  681. // *Response_Query
  682. // *Response_InitChain
  683. // *Response_BeginBlock
  684. // *Response_EndBlock
  685. Value isResponse_Value `protobuf_oneof:"value"`
  686. }
  687. func (m *Response) Reset() { *m = Response{} }
  688. func (m *Response) String() string { return proto.CompactTextString(m) }
  689. func (*Response) ProtoMessage() {}
  690. func (*Response) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} }
  691. type isResponse_Value interface {
  692. isResponse_Value()
  693. }
  694. type Response_Exception struct {
  695. Exception *ResponseException `protobuf:"bytes,1,opt,name=exception,oneof"`
  696. }
  697. type Response_Echo struct {
  698. Echo *ResponseEcho `protobuf:"bytes,2,opt,name=echo,oneof"`
  699. }
  700. type Response_Flush struct {
  701. Flush *ResponseFlush `protobuf:"bytes,3,opt,name=flush,oneof"`
  702. }
  703. type Response_Info struct {
  704. Info *ResponseInfo `protobuf:"bytes,4,opt,name=info,oneof"`
  705. }
  706. type Response_SetOption struct {
  707. SetOption *ResponseSetOption `protobuf:"bytes,5,opt,name=set_option,json=setOption,oneof"`
  708. }
  709. type Response_AppendTx struct {
  710. AppendTx *ResponseAppendTx `protobuf:"bytes,6,opt,name=append_tx,json=appendTx,oneof"`
  711. }
  712. type Response_CheckTx struct {
  713. CheckTx *ResponseCheckTx `protobuf:"bytes,7,opt,name=check_tx,json=checkTx,oneof"`
  714. }
  715. type Response_Commit struct {
  716. Commit *ResponseCommit `protobuf:"bytes,8,opt,name=commit,oneof"`
  717. }
  718. type Response_Query struct {
  719. Query *ResponseQuery `protobuf:"bytes,9,opt,name=query,oneof"`
  720. }
  721. type Response_InitChain struct {
  722. InitChain *ResponseInitChain `protobuf:"bytes,10,opt,name=init_chain,json=initChain,oneof"`
  723. }
  724. type Response_BeginBlock struct {
  725. BeginBlock *ResponseBeginBlock `protobuf:"bytes,11,opt,name=begin_block,json=beginBlock,oneof"`
  726. }
  727. type Response_EndBlock struct {
  728. EndBlock *ResponseEndBlock `protobuf:"bytes,12,opt,name=end_block,json=endBlock,oneof"`
  729. }
  730. func (*Response_Exception) isResponse_Value() {}
  731. func (*Response_Echo) isResponse_Value() {}
  732. func (*Response_Flush) isResponse_Value() {}
  733. func (*Response_Info) isResponse_Value() {}
  734. func (*Response_SetOption) isResponse_Value() {}
  735. func (*Response_AppendTx) isResponse_Value() {}
  736. func (*Response_CheckTx) isResponse_Value() {}
  737. func (*Response_Commit) isResponse_Value() {}
  738. func (*Response_Query) isResponse_Value() {}
  739. func (*Response_InitChain) isResponse_Value() {}
  740. func (*Response_BeginBlock) isResponse_Value() {}
  741. func (*Response_EndBlock) isResponse_Value() {}
  742. func (m *Response) GetValue() isResponse_Value {
  743. if m != nil {
  744. return m.Value
  745. }
  746. return nil
  747. }
  748. func (m *Response) GetException() *ResponseException {
  749. if x, ok := m.GetValue().(*Response_Exception); ok {
  750. return x.Exception
  751. }
  752. return nil
  753. }
  754. func (m *Response) GetEcho() *ResponseEcho {
  755. if x, ok := m.GetValue().(*Response_Echo); ok {
  756. return x.Echo
  757. }
  758. return nil
  759. }
  760. func (m *Response) GetFlush() *ResponseFlush {
  761. if x, ok := m.GetValue().(*Response_Flush); ok {
  762. return x.Flush
  763. }
  764. return nil
  765. }
  766. func (m *Response) GetInfo() *ResponseInfo {
  767. if x, ok := m.GetValue().(*Response_Info); ok {
  768. return x.Info
  769. }
  770. return nil
  771. }
  772. func (m *Response) GetSetOption() *ResponseSetOption {
  773. if x, ok := m.GetValue().(*Response_SetOption); ok {
  774. return x.SetOption
  775. }
  776. return nil
  777. }
  778. func (m *Response) GetAppendTx() *ResponseAppendTx {
  779. if x, ok := m.GetValue().(*Response_AppendTx); ok {
  780. return x.AppendTx
  781. }
  782. return nil
  783. }
  784. func (m *Response) GetCheckTx() *ResponseCheckTx {
  785. if x, ok := m.GetValue().(*Response_CheckTx); ok {
  786. return x.CheckTx
  787. }
  788. return nil
  789. }
  790. func (m *Response) GetCommit() *ResponseCommit {
  791. if x, ok := m.GetValue().(*Response_Commit); ok {
  792. return x.Commit
  793. }
  794. return nil
  795. }
  796. func (m *Response) GetQuery() *ResponseQuery {
  797. if x, ok := m.GetValue().(*Response_Query); ok {
  798. return x.Query
  799. }
  800. return nil
  801. }
  802. func (m *Response) GetInitChain() *ResponseInitChain {
  803. if x, ok := m.GetValue().(*Response_InitChain); ok {
  804. return x.InitChain
  805. }
  806. return nil
  807. }
  808. func (m *Response) GetBeginBlock() *ResponseBeginBlock {
  809. if x, ok := m.GetValue().(*Response_BeginBlock); ok {
  810. return x.BeginBlock
  811. }
  812. return nil
  813. }
  814. func (m *Response) GetEndBlock() *ResponseEndBlock {
  815. if x, ok := m.GetValue().(*Response_EndBlock); ok {
  816. return x.EndBlock
  817. }
  818. return nil
  819. }
  820. // XXX_OneofFuncs is for the internal use of the proto package.
  821. func (*Response) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
  822. return _Response_OneofMarshaler, _Response_OneofUnmarshaler, _Response_OneofSizer, []interface{}{
  823. (*Response_Exception)(nil),
  824. (*Response_Echo)(nil),
  825. (*Response_Flush)(nil),
  826. (*Response_Info)(nil),
  827. (*Response_SetOption)(nil),
  828. (*Response_AppendTx)(nil),
  829. (*Response_CheckTx)(nil),
  830. (*Response_Commit)(nil),
  831. (*Response_Query)(nil),
  832. (*Response_InitChain)(nil),
  833. (*Response_BeginBlock)(nil),
  834. (*Response_EndBlock)(nil),
  835. }
  836. }
  837. func _Response_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
  838. m := msg.(*Response)
  839. // value
  840. switch x := m.Value.(type) {
  841. case *Response_Exception:
  842. b.EncodeVarint(1<<3 | proto.WireBytes)
  843. if err := b.EncodeMessage(x.Exception); err != nil {
  844. return err
  845. }
  846. case *Response_Echo:
  847. b.EncodeVarint(2<<3 | proto.WireBytes)
  848. if err := b.EncodeMessage(x.Echo); err != nil {
  849. return err
  850. }
  851. case *Response_Flush:
  852. b.EncodeVarint(3<<3 | proto.WireBytes)
  853. if err := b.EncodeMessage(x.Flush); err != nil {
  854. return err
  855. }
  856. case *Response_Info:
  857. b.EncodeVarint(4<<3 | proto.WireBytes)
  858. if err := b.EncodeMessage(x.Info); err != nil {
  859. return err
  860. }
  861. case *Response_SetOption:
  862. b.EncodeVarint(5<<3 | proto.WireBytes)
  863. if err := b.EncodeMessage(x.SetOption); err != nil {
  864. return err
  865. }
  866. case *Response_AppendTx:
  867. b.EncodeVarint(6<<3 | proto.WireBytes)
  868. if err := b.EncodeMessage(x.AppendTx); err != nil {
  869. return err
  870. }
  871. case *Response_CheckTx:
  872. b.EncodeVarint(7<<3 | proto.WireBytes)
  873. if err := b.EncodeMessage(x.CheckTx); err != nil {
  874. return err
  875. }
  876. case *Response_Commit:
  877. b.EncodeVarint(8<<3 | proto.WireBytes)
  878. if err := b.EncodeMessage(x.Commit); err != nil {
  879. return err
  880. }
  881. case *Response_Query:
  882. b.EncodeVarint(9<<3 | proto.WireBytes)
  883. if err := b.EncodeMessage(x.Query); err != nil {
  884. return err
  885. }
  886. case *Response_InitChain:
  887. b.EncodeVarint(10<<3 | proto.WireBytes)
  888. if err := b.EncodeMessage(x.InitChain); err != nil {
  889. return err
  890. }
  891. case *Response_BeginBlock:
  892. b.EncodeVarint(11<<3 | proto.WireBytes)
  893. if err := b.EncodeMessage(x.BeginBlock); err != nil {
  894. return err
  895. }
  896. case *Response_EndBlock:
  897. b.EncodeVarint(12<<3 | proto.WireBytes)
  898. if err := b.EncodeMessage(x.EndBlock); err != nil {
  899. return err
  900. }
  901. case nil:
  902. default:
  903. return fmt.Errorf("Response.Value has unexpected type %T", x)
  904. }
  905. return nil
  906. }
  907. func _Response_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
  908. m := msg.(*Response)
  909. switch tag {
  910. case 1: // value.exception
  911. if wire != proto.WireBytes {
  912. return true, proto.ErrInternalBadWireType
  913. }
  914. msg := new(ResponseException)
  915. err := b.DecodeMessage(msg)
  916. m.Value = &Response_Exception{msg}
  917. return true, err
  918. case 2: // value.echo
  919. if wire != proto.WireBytes {
  920. return true, proto.ErrInternalBadWireType
  921. }
  922. msg := new(ResponseEcho)
  923. err := b.DecodeMessage(msg)
  924. m.Value = &Response_Echo{msg}
  925. return true, err
  926. case 3: // value.flush
  927. if wire != proto.WireBytes {
  928. return true, proto.ErrInternalBadWireType
  929. }
  930. msg := new(ResponseFlush)
  931. err := b.DecodeMessage(msg)
  932. m.Value = &Response_Flush{msg}
  933. return true, err
  934. case 4: // value.info
  935. if wire != proto.WireBytes {
  936. return true, proto.ErrInternalBadWireType
  937. }
  938. msg := new(ResponseInfo)
  939. err := b.DecodeMessage(msg)
  940. m.Value = &Response_Info{msg}
  941. return true, err
  942. case 5: // value.set_option
  943. if wire != proto.WireBytes {
  944. return true, proto.ErrInternalBadWireType
  945. }
  946. msg := new(ResponseSetOption)
  947. err := b.DecodeMessage(msg)
  948. m.Value = &Response_SetOption{msg}
  949. return true, err
  950. case 6: // value.append_tx
  951. if wire != proto.WireBytes {
  952. return true, proto.ErrInternalBadWireType
  953. }
  954. msg := new(ResponseAppendTx)
  955. err := b.DecodeMessage(msg)
  956. m.Value = &Response_AppendTx{msg}
  957. return true, err
  958. case 7: // value.check_tx
  959. if wire != proto.WireBytes {
  960. return true, proto.ErrInternalBadWireType
  961. }
  962. msg := new(ResponseCheckTx)
  963. err := b.DecodeMessage(msg)
  964. m.Value = &Response_CheckTx{msg}
  965. return true, err
  966. case 8: // value.commit
  967. if wire != proto.WireBytes {
  968. return true, proto.ErrInternalBadWireType
  969. }
  970. msg := new(ResponseCommit)
  971. err := b.DecodeMessage(msg)
  972. m.Value = &Response_Commit{msg}
  973. return true, err
  974. case 9: // value.query
  975. if wire != proto.WireBytes {
  976. return true, proto.ErrInternalBadWireType
  977. }
  978. msg := new(ResponseQuery)
  979. err := b.DecodeMessage(msg)
  980. m.Value = &Response_Query{msg}
  981. return true, err
  982. case 10: // value.init_chain
  983. if wire != proto.WireBytes {
  984. return true, proto.ErrInternalBadWireType
  985. }
  986. msg := new(ResponseInitChain)
  987. err := b.DecodeMessage(msg)
  988. m.Value = &Response_InitChain{msg}
  989. return true, err
  990. case 11: // value.begin_block
  991. if wire != proto.WireBytes {
  992. return true, proto.ErrInternalBadWireType
  993. }
  994. msg := new(ResponseBeginBlock)
  995. err := b.DecodeMessage(msg)
  996. m.Value = &Response_BeginBlock{msg}
  997. return true, err
  998. case 12: // value.end_block
  999. if wire != proto.WireBytes {
  1000. return true, proto.ErrInternalBadWireType
  1001. }
  1002. msg := new(ResponseEndBlock)
  1003. err := b.DecodeMessage(msg)
  1004. m.Value = &Response_EndBlock{msg}
  1005. return true, err
  1006. default:
  1007. return false, nil
  1008. }
  1009. }
  1010. func _Response_OneofSizer(msg proto.Message) (n int) {
  1011. m := msg.(*Response)
  1012. // value
  1013. switch x := m.Value.(type) {
  1014. case *Response_Exception:
  1015. s := proto.Size(x.Exception)
  1016. n += proto.SizeVarint(1<<3 | proto.WireBytes)
  1017. n += proto.SizeVarint(uint64(s))
  1018. n += s
  1019. case *Response_Echo:
  1020. s := proto.Size(x.Echo)
  1021. n += proto.SizeVarint(2<<3 | proto.WireBytes)
  1022. n += proto.SizeVarint(uint64(s))
  1023. n += s
  1024. case *Response_Flush:
  1025. s := proto.Size(x.Flush)
  1026. n += proto.SizeVarint(3<<3 | proto.WireBytes)
  1027. n += proto.SizeVarint(uint64(s))
  1028. n += s
  1029. case *Response_Info:
  1030. s := proto.Size(x.Info)
  1031. n += proto.SizeVarint(4<<3 | proto.WireBytes)
  1032. n += proto.SizeVarint(uint64(s))
  1033. n += s
  1034. case *Response_SetOption:
  1035. s := proto.Size(x.SetOption)
  1036. n += proto.SizeVarint(5<<3 | proto.WireBytes)
  1037. n += proto.SizeVarint(uint64(s))
  1038. n += s
  1039. case *Response_AppendTx:
  1040. s := proto.Size(x.AppendTx)
  1041. n += proto.SizeVarint(6<<3 | proto.WireBytes)
  1042. n += proto.SizeVarint(uint64(s))
  1043. n += s
  1044. case *Response_CheckTx:
  1045. s := proto.Size(x.CheckTx)
  1046. n += proto.SizeVarint(7<<3 | proto.WireBytes)
  1047. n += proto.SizeVarint(uint64(s))
  1048. n += s
  1049. case *Response_Commit:
  1050. s := proto.Size(x.Commit)
  1051. n += proto.SizeVarint(8<<3 | proto.WireBytes)
  1052. n += proto.SizeVarint(uint64(s))
  1053. n += s
  1054. case *Response_Query:
  1055. s := proto.Size(x.Query)
  1056. n += proto.SizeVarint(9<<3 | proto.WireBytes)
  1057. n += proto.SizeVarint(uint64(s))
  1058. n += s
  1059. case *Response_InitChain:
  1060. s := proto.Size(x.InitChain)
  1061. n += proto.SizeVarint(10<<3 | proto.WireBytes)
  1062. n += proto.SizeVarint(uint64(s))
  1063. n += s
  1064. case *Response_BeginBlock:
  1065. s := proto.Size(x.BeginBlock)
  1066. n += proto.SizeVarint(11<<3 | proto.WireBytes)
  1067. n += proto.SizeVarint(uint64(s))
  1068. n += s
  1069. case *Response_EndBlock:
  1070. s := proto.Size(x.EndBlock)
  1071. n += proto.SizeVarint(12<<3 | proto.WireBytes)
  1072. n += proto.SizeVarint(uint64(s))
  1073. n += s
  1074. case nil:
  1075. default:
  1076. panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
  1077. }
  1078. return n
  1079. }
  1080. type ResponseException struct {
  1081. Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  1082. }
  1083. func (m *ResponseException) Reset() { *m = ResponseException{} }
  1084. func (m *ResponseException) String() string { return proto.CompactTextString(m) }
  1085. func (*ResponseException) ProtoMessage() {}
  1086. func (*ResponseException) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} }
  1087. type ResponseEcho struct {
  1088. Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
  1089. }
  1090. func (m *ResponseEcho) Reset() { *m = ResponseEcho{} }
  1091. func (m *ResponseEcho) String() string { return proto.CompactTextString(m) }
  1092. func (*ResponseEcho) ProtoMessage() {}
  1093. func (*ResponseEcho) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} }
  1094. type ResponseFlush struct {
  1095. }
  1096. func (m *ResponseFlush) Reset() { *m = ResponseFlush{} }
  1097. func (m *ResponseFlush) String() string { return proto.CompactTextString(m) }
  1098. func (*ResponseFlush) ProtoMessage() {}
  1099. func (*ResponseFlush) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} }
  1100. type ResponseInfo struct {
  1101. Info string `protobuf:"bytes,1,opt,name=info" json:"info,omitempty"`
  1102. }
  1103. func (m *ResponseInfo) Reset() { *m = ResponseInfo{} }
  1104. func (m *ResponseInfo) String() string { return proto.CompactTextString(m) }
  1105. func (*ResponseInfo) ProtoMessage() {}
  1106. func (*ResponseInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} }
  1107. type ResponseSetOption struct {
  1108. Log string `protobuf:"bytes,1,opt,name=log" json:"log,omitempty"`
  1109. }
  1110. func (m *ResponseSetOption) Reset() { *m = ResponseSetOption{} }
  1111. func (m *ResponseSetOption) String() string { return proto.CompactTextString(m) }
  1112. func (*ResponseSetOption) ProtoMessage() {}
  1113. func (*ResponseSetOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} }
  1114. type ResponseAppendTx struct {
  1115. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1116. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1117. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1118. }
  1119. func (m *ResponseAppendTx) Reset() { *m = ResponseAppendTx{} }
  1120. func (m *ResponseAppendTx) String() string { return proto.CompactTextString(m) }
  1121. func (*ResponseAppendTx) ProtoMessage() {}
  1122. func (*ResponseAppendTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} }
  1123. type ResponseCheckTx struct {
  1124. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1125. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1126. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1127. }
  1128. func (m *ResponseCheckTx) Reset() { *m = ResponseCheckTx{} }
  1129. func (m *ResponseCheckTx) String() string { return proto.CompactTextString(m) }
  1130. func (*ResponseCheckTx) ProtoMessage() {}
  1131. func (*ResponseCheckTx) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} }
  1132. type ResponseQuery struct {
  1133. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1134. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1135. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1136. }
  1137. func (m *ResponseQuery) Reset() { *m = ResponseQuery{} }
  1138. func (m *ResponseQuery) String() string { return proto.CompactTextString(m) }
  1139. func (*ResponseQuery) ProtoMessage() {}
  1140. func (*ResponseQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} }
  1141. type ResponseCommit struct {
  1142. Code CodeType `protobuf:"varint,1,opt,name=code,enum=types.CodeType" json:"code,omitempty"`
  1143. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  1144. Log string `protobuf:"bytes,3,opt,name=log" json:"log,omitempty"`
  1145. }
  1146. func (m *ResponseCommit) Reset() { *m = ResponseCommit{} }
  1147. func (m *ResponseCommit) String() string { return proto.CompactTextString(m) }
  1148. func (*ResponseCommit) ProtoMessage() {}
  1149. func (*ResponseCommit) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} }
  1150. type ResponseInitChain struct {
  1151. }
  1152. func (m *ResponseInitChain) Reset() { *m = ResponseInitChain{} }
  1153. func (m *ResponseInitChain) String() string { return proto.CompactTextString(m) }
  1154. func (*ResponseInitChain) ProtoMessage() {}
  1155. func (*ResponseInitChain) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} }
  1156. type ResponseBeginBlock struct {
  1157. }
  1158. func (m *ResponseBeginBlock) Reset() { *m = ResponseBeginBlock{} }
  1159. func (m *ResponseBeginBlock) String() string { return proto.CompactTextString(m) }
  1160. func (*ResponseBeginBlock) ProtoMessage() {}
  1161. func (*ResponseBeginBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} }
  1162. type ResponseEndBlock struct {
  1163. Diffs []*Validator `protobuf:"bytes,4,rep,name=diffs" json:"diffs,omitempty"`
  1164. }
  1165. func (m *ResponseEndBlock) Reset() { *m = ResponseEndBlock{} }
  1166. func (m *ResponseEndBlock) String() string { return proto.CompactTextString(m) }
  1167. func (*ResponseEndBlock) ProtoMessage() {}
  1168. func (*ResponseEndBlock) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{24} }
  1169. func (m *ResponseEndBlock) GetDiffs() []*Validator {
  1170. if m != nil {
  1171. return m.Diffs
  1172. }
  1173. return nil
  1174. }
  1175. type Validator struct {
  1176. PubKey []byte `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty"`
  1177. Power uint64 `protobuf:"varint,2,opt,name=power" json:"power,omitempty"`
  1178. }
  1179. func (m *Validator) Reset() { *m = Validator{} }
  1180. func (m *Validator) String() string { return proto.CompactTextString(m) }
  1181. func (*Validator) ProtoMessage() {}
  1182. func (*Validator) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{25} }
  1183. func init() {
  1184. proto.RegisterType((*Request)(nil), "types.Request")
  1185. proto.RegisterType((*RequestEcho)(nil), "types.RequestEcho")
  1186. proto.RegisterType((*RequestFlush)(nil), "types.RequestFlush")
  1187. proto.RegisterType((*RequestInfo)(nil), "types.RequestInfo")
  1188. proto.RegisterType((*RequestSetOption)(nil), "types.RequestSetOption")
  1189. proto.RegisterType((*RequestAppendTx)(nil), "types.RequestAppendTx")
  1190. proto.RegisterType((*RequestCheckTx)(nil), "types.RequestCheckTx")
  1191. proto.RegisterType((*RequestQuery)(nil), "types.RequestQuery")
  1192. proto.RegisterType((*RequestCommit)(nil), "types.RequestCommit")
  1193. proto.RegisterType((*RequestInitChain)(nil), "types.RequestInitChain")
  1194. proto.RegisterType((*RequestBeginBlock)(nil), "types.RequestBeginBlock")
  1195. proto.RegisterType((*RequestEndBlock)(nil), "types.RequestEndBlock")
  1196. proto.RegisterType((*Response)(nil), "types.Response")
  1197. proto.RegisterType((*ResponseException)(nil), "types.ResponseException")
  1198. proto.RegisterType((*ResponseEcho)(nil), "types.ResponseEcho")
  1199. proto.RegisterType((*ResponseFlush)(nil), "types.ResponseFlush")
  1200. proto.RegisterType((*ResponseInfo)(nil), "types.ResponseInfo")
  1201. proto.RegisterType((*ResponseSetOption)(nil), "types.ResponseSetOption")
  1202. proto.RegisterType((*ResponseAppendTx)(nil), "types.ResponseAppendTx")
  1203. proto.RegisterType((*ResponseCheckTx)(nil), "types.ResponseCheckTx")
  1204. proto.RegisterType((*ResponseQuery)(nil), "types.ResponseQuery")
  1205. proto.RegisterType((*ResponseCommit)(nil), "types.ResponseCommit")
  1206. proto.RegisterType((*ResponseInitChain)(nil), "types.ResponseInitChain")
  1207. proto.RegisterType((*ResponseBeginBlock)(nil), "types.ResponseBeginBlock")
  1208. proto.RegisterType((*ResponseEndBlock)(nil), "types.ResponseEndBlock")
  1209. proto.RegisterType((*Validator)(nil), "types.Validator")
  1210. proto.RegisterEnum("types.MessageType", MessageType_name, MessageType_value)
  1211. proto.RegisterEnum("types.CodeType", CodeType_name, CodeType_value)
  1212. }
  1213. // Reference imports to suppress errors if they are not otherwise used.
  1214. var _ context.Context
  1215. var _ grpc.ClientConn
  1216. // This is a compile-time assertion to ensure that this generated file
  1217. // is compatible with the grpc package it is being compiled against.
  1218. const _ = grpc.SupportPackageIsVersion3
  1219. // Client API for TMSPApplication service
  1220. type TMSPApplicationClient interface {
  1221. Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error)
  1222. Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error)
  1223. Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error)
  1224. SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error)
  1225. AppendTx(ctx context.Context, in *RequestAppendTx, opts ...grpc.CallOption) (*ResponseAppendTx, error)
  1226. CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error)
  1227. Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error)
  1228. Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error)
  1229. InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error)
  1230. BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error)
  1231. EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error)
  1232. }
  1233. type tMSPApplicationClient struct {
  1234. cc *grpc.ClientConn
  1235. }
  1236. func NewTMSPApplicationClient(cc *grpc.ClientConn) TMSPApplicationClient {
  1237. return &tMSPApplicationClient{cc}
  1238. }
  1239. func (c *tMSPApplicationClient) Echo(ctx context.Context, in *RequestEcho, opts ...grpc.CallOption) (*ResponseEcho, error) {
  1240. out := new(ResponseEcho)
  1241. err := grpc.Invoke(ctx, "/types.TMSPApplication/Echo", in, out, c.cc, opts...)
  1242. if err != nil {
  1243. return nil, err
  1244. }
  1245. return out, nil
  1246. }
  1247. func (c *tMSPApplicationClient) Flush(ctx context.Context, in *RequestFlush, opts ...grpc.CallOption) (*ResponseFlush, error) {
  1248. out := new(ResponseFlush)
  1249. err := grpc.Invoke(ctx, "/types.TMSPApplication/Flush", in, out, c.cc, opts...)
  1250. if err != nil {
  1251. return nil, err
  1252. }
  1253. return out, nil
  1254. }
  1255. func (c *tMSPApplicationClient) Info(ctx context.Context, in *RequestInfo, opts ...grpc.CallOption) (*ResponseInfo, error) {
  1256. out := new(ResponseInfo)
  1257. err := grpc.Invoke(ctx, "/types.TMSPApplication/Info", in, out, c.cc, opts...)
  1258. if err != nil {
  1259. return nil, err
  1260. }
  1261. return out, nil
  1262. }
  1263. func (c *tMSPApplicationClient) SetOption(ctx context.Context, in *RequestSetOption, opts ...grpc.CallOption) (*ResponseSetOption, error) {
  1264. out := new(ResponseSetOption)
  1265. err := grpc.Invoke(ctx, "/types.TMSPApplication/SetOption", in, out, c.cc, opts...)
  1266. if err != nil {
  1267. return nil, err
  1268. }
  1269. return out, nil
  1270. }
  1271. func (c *tMSPApplicationClient) AppendTx(ctx context.Context, in *RequestAppendTx, opts ...grpc.CallOption) (*ResponseAppendTx, error) {
  1272. out := new(ResponseAppendTx)
  1273. err := grpc.Invoke(ctx, "/types.TMSPApplication/AppendTx", in, out, c.cc, opts...)
  1274. if err != nil {
  1275. return nil, err
  1276. }
  1277. return out, nil
  1278. }
  1279. func (c *tMSPApplicationClient) CheckTx(ctx context.Context, in *RequestCheckTx, opts ...grpc.CallOption) (*ResponseCheckTx, error) {
  1280. out := new(ResponseCheckTx)
  1281. err := grpc.Invoke(ctx, "/types.TMSPApplication/CheckTx", in, out, c.cc, opts...)
  1282. if err != nil {
  1283. return nil, err
  1284. }
  1285. return out, nil
  1286. }
  1287. func (c *tMSPApplicationClient) Query(ctx context.Context, in *RequestQuery, opts ...grpc.CallOption) (*ResponseQuery, error) {
  1288. out := new(ResponseQuery)
  1289. err := grpc.Invoke(ctx, "/types.TMSPApplication/Query", in, out, c.cc, opts...)
  1290. if err != nil {
  1291. return nil, err
  1292. }
  1293. return out, nil
  1294. }
  1295. func (c *tMSPApplicationClient) Commit(ctx context.Context, in *RequestCommit, opts ...grpc.CallOption) (*ResponseCommit, error) {
  1296. out := new(ResponseCommit)
  1297. err := grpc.Invoke(ctx, "/types.TMSPApplication/Commit", in, out, c.cc, opts...)
  1298. if err != nil {
  1299. return nil, err
  1300. }
  1301. return out, nil
  1302. }
  1303. func (c *tMSPApplicationClient) InitChain(ctx context.Context, in *RequestInitChain, opts ...grpc.CallOption) (*ResponseInitChain, error) {
  1304. out := new(ResponseInitChain)
  1305. err := grpc.Invoke(ctx, "/types.TMSPApplication/InitChain", in, out, c.cc, opts...)
  1306. if err != nil {
  1307. return nil, err
  1308. }
  1309. return out, nil
  1310. }
  1311. func (c *tMSPApplicationClient) BeginBlock(ctx context.Context, in *RequestBeginBlock, opts ...grpc.CallOption) (*ResponseBeginBlock, error) {
  1312. out := new(ResponseBeginBlock)
  1313. err := grpc.Invoke(ctx, "/types.TMSPApplication/BeginBlock", in, out, c.cc, opts...)
  1314. if err != nil {
  1315. return nil, err
  1316. }
  1317. return out, nil
  1318. }
  1319. func (c *tMSPApplicationClient) EndBlock(ctx context.Context, in *RequestEndBlock, opts ...grpc.CallOption) (*ResponseEndBlock, error) {
  1320. out := new(ResponseEndBlock)
  1321. err := grpc.Invoke(ctx, "/types.TMSPApplication/EndBlock", in, out, c.cc, opts...)
  1322. if err != nil {
  1323. return nil, err
  1324. }
  1325. return out, nil
  1326. }
  1327. // Server API for TMSPApplication service
  1328. type TMSPApplicationServer interface {
  1329. Echo(context.Context, *RequestEcho) (*ResponseEcho, error)
  1330. Flush(context.Context, *RequestFlush) (*ResponseFlush, error)
  1331. Info(context.Context, *RequestInfo) (*ResponseInfo, error)
  1332. SetOption(context.Context, *RequestSetOption) (*ResponseSetOption, error)
  1333. AppendTx(context.Context, *RequestAppendTx) (*ResponseAppendTx, error)
  1334. CheckTx(context.Context, *RequestCheckTx) (*ResponseCheckTx, error)
  1335. Query(context.Context, *RequestQuery) (*ResponseQuery, error)
  1336. Commit(context.Context, *RequestCommit) (*ResponseCommit, error)
  1337. InitChain(context.Context, *RequestInitChain) (*ResponseInitChain, error)
  1338. BeginBlock(context.Context, *RequestBeginBlock) (*ResponseBeginBlock, error)
  1339. EndBlock(context.Context, *RequestEndBlock) (*ResponseEndBlock, error)
  1340. }
  1341. func RegisterTMSPApplicationServer(s *grpc.Server, srv TMSPApplicationServer) {
  1342. s.RegisterService(&_TMSPApplication_serviceDesc, srv)
  1343. }
  1344. func _TMSPApplication_Echo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1345. in := new(RequestEcho)
  1346. if err := dec(in); err != nil {
  1347. return nil, err
  1348. }
  1349. if interceptor == nil {
  1350. return srv.(TMSPApplicationServer).Echo(ctx, in)
  1351. }
  1352. info := &grpc.UnaryServerInfo{
  1353. Server: srv,
  1354. FullMethod: "/types.TMSPApplication/Echo",
  1355. }
  1356. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1357. return srv.(TMSPApplicationServer).Echo(ctx, req.(*RequestEcho))
  1358. }
  1359. return interceptor(ctx, in, info, handler)
  1360. }
  1361. func _TMSPApplication_Flush_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1362. in := new(RequestFlush)
  1363. if err := dec(in); err != nil {
  1364. return nil, err
  1365. }
  1366. if interceptor == nil {
  1367. return srv.(TMSPApplicationServer).Flush(ctx, in)
  1368. }
  1369. info := &grpc.UnaryServerInfo{
  1370. Server: srv,
  1371. FullMethod: "/types.TMSPApplication/Flush",
  1372. }
  1373. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1374. return srv.(TMSPApplicationServer).Flush(ctx, req.(*RequestFlush))
  1375. }
  1376. return interceptor(ctx, in, info, handler)
  1377. }
  1378. func _TMSPApplication_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1379. in := new(RequestInfo)
  1380. if err := dec(in); err != nil {
  1381. return nil, err
  1382. }
  1383. if interceptor == nil {
  1384. return srv.(TMSPApplicationServer).Info(ctx, in)
  1385. }
  1386. info := &grpc.UnaryServerInfo{
  1387. Server: srv,
  1388. FullMethod: "/types.TMSPApplication/Info",
  1389. }
  1390. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1391. return srv.(TMSPApplicationServer).Info(ctx, req.(*RequestInfo))
  1392. }
  1393. return interceptor(ctx, in, info, handler)
  1394. }
  1395. func _TMSPApplication_SetOption_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1396. in := new(RequestSetOption)
  1397. if err := dec(in); err != nil {
  1398. return nil, err
  1399. }
  1400. if interceptor == nil {
  1401. return srv.(TMSPApplicationServer).SetOption(ctx, in)
  1402. }
  1403. info := &grpc.UnaryServerInfo{
  1404. Server: srv,
  1405. FullMethod: "/types.TMSPApplication/SetOption",
  1406. }
  1407. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1408. return srv.(TMSPApplicationServer).SetOption(ctx, req.(*RequestSetOption))
  1409. }
  1410. return interceptor(ctx, in, info, handler)
  1411. }
  1412. func _TMSPApplication_AppendTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1413. in := new(RequestAppendTx)
  1414. if err := dec(in); err != nil {
  1415. return nil, err
  1416. }
  1417. if interceptor == nil {
  1418. return srv.(TMSPApplicationServer).AppendTx(ctx, in)
  1419. }
  1420. info := &grpc.UnaryServerInfo{
  1421. Server: srv,
  1422. FullMethod: "/types.TMSPApplication/AppendTx",
  1423. }
  1424. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1425. return srv.(TMSPApplicationServer).AppendTx(ctx, req.(*RequestAppendTx))
  1426. }
  1427. return interceptor(ctx, in, info, handler)
  1428. }
  1429. func _TMSPApplication_CheckTx_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1430. in := new(RequestCheckTx)
  1431. if err := dec(in); err != nil {
  1432. return nil, err
  1433. }
  1434. if interceptor == nil {
  1435. return srv.(TMSPApplicationServer).CheckTx(ctx, in)
  1436. }
  1437. info := &grpc.UnaryServerInfo{
  1438. Server: srv,
  1439. FullMethod: "/types.TMSPApplication/CheckTx",
  1440. }
  1441. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1442. return srv.(TMSPApplicationServer).CheckTx(ctx, req.(*RequestCheckTx))
  1443. }
  1444. return interceptor(ctx, in, info, handler)
  1445. }
  1446. func _TMSPApplication_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1447. in := new(RequestQuery)
  1448. if err := dec(in); err != nil {
  1449. return nil, err
  1450. }
  1451. if interceptor == nil {
  1452. return srv.(TMSPApplicationServer).Query(ctx, in)
  1453. }
  1454. info := &grpc.UnaryServerInfo{
  1455. Server: srv,
  1456. FullMethod: "/types.TMSPApplication/Query",
  1457. }
  1458. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1459. return srv.(TMSPApplicationServer).Query(ctx, req.(*RequestQuery))
  1460. }
  1461. return interceptor(ctx, in, info, handler)
  1462. }
  1463. func _TMSPApplication_Commit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1464. in := new(RequestCommit)
  1465. if err := dec(in); err != nil {
  1466. return nil, err
  1467. }
  1468. if interceptor == nil {
  1469. return srv.(TMSPApplicationServer).Commit(ctx, in)
  1470. }
  1471. info := &grpc.UnaryServerInfo{
  1472. Server: srv,
  1473. FullMethod: "/types.TMSPApplication/Commit",
  1474. }
  1475. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1476. return srv.(TMSPApplicationServer).Commit(ctx, req.(*RequestCommit))
  1477. }
  1478. return interceptor(ctx, in, info, handler)
  1479. }
  1480. func _TMSPApplication_InitChain_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1481. in := new(RequestInitChain)
  1482. if err := dec(in); err != nil {
  1483. return nil, err
  1484. }
  1485. if interceptor == nil {
  1486. return srv.(TMSPApplicationServer).InitChain(ctx, in)
  1487. }
  1488. info := &grpc.UnaryServerInfo{
  1489. Server: srv,
  1490. FullMethod: "/types.TMSPApplication/InitChain",
  1491. }
  1492. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1493. return srv.(TMSPApplicationServer).InitChain(ctx, req.(*RequestInitChain))
  1494. }
  1495. return interceptor(ctx, in, info, handler)
  1496. }
  1497. func _TMSPApplication_BeginBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1498. in := new(RequestBeginBlock)
  1499. if err := dec(in); err != nil {
  1500. return nil, err
  1501. }
  1502. if interceptor == nil {
  1503. return srv.(TMSPApplicationServer).BeginBlock(ctx, in)
  1504. }
  1505. info := &grpc.UnaryServerInfo{
  1506. Server: srv,
  1507. FullMethod: "/types.TMSPApplication/BeginBlock",
  1508. }
  1509. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1510. return srv.(TMSPApplicationServer).BeginBlock(ctx, req.(*RequestBeginBlock))
  1511. }
  1512. return interceptor(ctx, in, info, handler)
  1513. }
  1514. func _TMSPApplication_EndBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1515. in := new(RequestEndBlock)
  1516. if err := dec(in); err != nil {
  1517. return nil, err
  1518. }
  1519. if interceptor == nil {
  1520. return srv.(TMSPApplicationServer).EndBlock(ctx, in)
  1521. }
  1522. info := &grpc.UnaryServerInfo{
  1523. Server: srv,
  1524. FullMethod: "/types.TMSPApplication/EndBlock",
  1525. }
  1526. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1527. return srv.(TMSPApplicationServer).EndBlock(ctx, req.(*RequestEndBlock))
  1528. }
  1529. return interceptor(ctx, in, info, handler)
  1530. }
  1531. var _TMSPApplication_serviceDesc = grpc.ServiceDesc{
  1532. ServiceName: "types.TMSPApplication",
  1533. HandlerType: (*TMSPApplicationServer)(nil),
  1534. Methods: []grpc.MethodDesc{
  1535. {
  1536. MethodName: "Echo",
  1537. Handler: _TMSPApplication_Echo_Handler,
  1538. },
  1539. {
  1540. MethodName: "Flush",
  1541. Handler: _TMSPApplication_Flush_Handler,
  1542. },
  1543. {
  1544. MethodName: "Info",
  1545. Handler: _TMSPApplication_Info_Handler,
  1546. },
  1547. {
  1548. MethodName: "SetOption",
  1549. Handler: _TMSPApplication_SetOption_Handler,
  1550. },
  1551. {
  1552. MethodName: "AppendTx",
  1553. Handler: _TMSPApplication_AppendTx_Handler,
  1554. },
  1555. {
  1556. MethodName: "CheckTx",
  1557. Handler: _TMSPApplication_CheckTx_Handler,
  1558. },
  1559. {
  1560. MethodName: "Query",
  1561. Handler: _TMSPApplication_Query_Handler,
  1562. },
  1563. {
  1564. MethodName: "Commit",
  1565. Handler: _TMSPApplication_Commit_Handler,
  1566. },
  1567. {
  1568. MethodName: "InitChain",
  1569. Handler: _TMSPApplication_InitChain_Handler,
  1570. },
  1571. {
  1572. MethodName: "BeginBlock",
  1573. Handler: _TMSPApplication_BeginBlock_Handler,
  1574. },
  1575. {
  1576. MethodName: "EndBlock",
  1577. Handler: _TMSPApplication_EndBlock_Handler,
  1578. },
  1579. },
  1580. Streams: []grpc.StreamDesc{},
  1581. Metadata: fileDescriptor0,
  1582. }
  1583. func init() { proto.RegisterFile("types.proto", fileDescriptor0) }
  1584. var fileDescriptor0 = []byte{
  1585. // 1379 bytes of a gzipped FileDescriptorProto
  1586. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x57, 0xc9, 0x72, 0x14, 0x47,
  1587. 0x13, 0xa6, 0xa5, 0x59, 0x73, 0xb4, 0x94, 0x4a, 0x12, 0x0c, 0x13, 0xff, 0x81, 0xbf, 0xbd, 0x21,
  1588. 0x20, 0xc0, 0x21, 0xc2, 0x84, 0xb1, 0x1d, 0x8e, 0x40, 0x20, 0xb0, 0x82, 0x00, 0xe4, 0x61, 0x39,
  1589. 0x78, 0x09, 0x45, 0x6b, 0xa6, 0x66, 0xa6, 0xad, 0x51, 0x75, 0xd3, 0x0b, 0x20, 0xbf, 0x81, 0x1f,
  1590. 0xc8, 0x17, 0x5f, 0x7d, 0xf2, 0xbe, 0x3c, 0x91, 0x33, 0xab, 0xaa, 0x57, 0x75, 0x73, 0xd2, 0xad,
  1591. 0x2b, 0xb7, 0xaa, 0xca, 0xfc, 0xf2, 0xeb, 0x2c, 0xe8, 0x45, 0x27, 0xbe, 0x08, 0xaf, 0xfb, 0x81,
  1592. 0x17, 0x79, 0xbc, 0xa9, 0x16, 0xf6, 0xcf, 0x0d, 0x68, 0x0f, 0xc5, 0xcb, 0x58, 0x84, 0x11, 0xbf,
  1593. 0x0c, 0x0d, 0x31, 0x9a, 0x79, 0x7d, 0xeb, 0x92, 0x75, 0xb9, 0xb7, 0xcd, 0xaf, 0x6b, 0x73, 0xa3,
  1594. 0xdd, 0x45, 0xcd, 0x17, 0xe7, 0x86, 0xca, 0x82, 0x5f, 0x85, 0xe6, 0x64, 0x1e, 0x87, 0xb3, 0xfe,
  1595. 0x82, 0x32, 0x5d, 0x2f, 0x9a, 0xde, 0x27, 0x15, 0xda, 0x6a, 0x1b, 0x0a, 0xeb, 0xca, 0x89, 0xd7,
  1596. 0x5f, 0xac, 0x0a, 0xbb, 0x87, 0x1a, 0x0a, 0x4b, 0x16, 0xfc, 0x63, 0x80, 0x50, 0x44, 0x07, 0x9e,
  1597. 0x1f, 0xb9, 0x9e, 0xec, 0x37, 0x94, 0xfd, 0x85, 0xa2, 0xfd, 0x53, 0x11, 0x3d, 0x51, 0x6a, 0x74,
  1598. 0xea, 0x86, 0xc9, 0x82, 0x7f, 0x04, 0x5d, 0xc7, 0xf7, 0x85, 0x1c, 0x1f, 0x44, 0x6f, 0xfa, 0x4d,
  1599. 0xe5, 0x78, 0xbe, 0xe8, 0x78, 0x47, 0xa9, 0x9f, 0xbd, 0x41, 0xbf, 0x8e, 0x63, 0xbe, 0xf9, 0x36,
  1600. 0x74, 0x46, 0x33, 0x31, 0x3a, 0x22, 0xaf, 0x96, 0xf2, 0xda, 0x2c, 0x7a, 0xdd, 0x25, 0xad, 0x72,
  1601. 0x6a, 0x8f, 0xf4, 0x27, 0xbf, 0x0e, 0xad, 0x91, 0x77, 0x7c, 0xec, 0x46, 0xfd, 0xb6, 0xf2, 0xd8,
  1602. 0x28, 0x79, 0x28, 0x1d, 0x3a, 0x18, 0x2b, 0xca, 0x15, 0x2a, 0x82, 0x93, 0x7e, 0xa7, 0x2a, 0x57,
  1603. 0x5f, 0x92, 0x8a, 0x72, 0xa5, 0x6c, 0x28, 0x03, 0xae, 0x74, 0xa3, 0x83, 0xd1, 0xcc, 0x71, 0x65,
  1604. 0xbf, 0x5b, 0x95, 0x81, 0x3d, 0xd4, 0xdf, 0x25, 0x35, 0x65, 0xc0, 0x4d, 0x16, 0xfc, 0x53, 0xe8,
  1605. 0x1d, 0x8a, 0xa9, 0x2b, 0x0f, 0x0e, 0xe7, 0xde, 0xe8, 0xa8, 0x0f, 0xca, 0xb5, 0x5f, 0x74, 0xdd,
  1606. 0x21, 0x83, 0x1d, 0xd2, 0xa3, 0x2f, 0x1c, 0xa6, 0x2b, 0x4a, 0x1f, 0xe5, 0x4e, 0xbb, 0xf6, 0xaa,
  1607. 0xd2, 0xb7, 0x2b, 0xc7, 0x89, 0x63, 0x47, 0x98, 0xef, 0x9d, 0x36, 0x34, 0x5f, 0x39, 0xf3, 0x58,
  1608. 0xd8, 0x1f, 0x40, 0x2f, 0x07, 0x13, 0xde, 0x87, 0xf6, 0xb1, 0x08, 0x43, 0x67, 0x2a, 0x14, 0x96,
  1609. 0xba, 0xc3, 0x64, 0x69, 0xaf, 0xc0, 0x52, 0x1e, 0x24, 0xf6, 0x72, 0xea, 0x48, 0x40, 0xb0, 0x3f,
  1610. 0x01, 0x56, 0xae, 0x33, 0x67, 0xb0, 0x78, 0x24, 0x4e, 0x4c, 0x20, 0xfa, 0xe4, 0x1b, 0x66, 0x5b,
  1611. 0x85, 0xbe, 0xee, 0xd0, 0x9c, 0xe1, 0xff, 0xb0, 0x5a, 0x2a, 0x35, 0x5f, 0x81, 0x05, 0x2c, 0x2c,
  1612. 0x79, 0x2e, 0x0d, 0xf1, 0xcb, 0xbe, 0x04, 0x2b, 0xc5, 0xba, 0x9e, 0xb2, 0x78, 0x37, 0x3d, 0x9f,
  1613. 0x2a, 0x0c, 0x6d, 0xa5, 0x8b, 0xa7, 0x4d, 0xf4, 0xc2, 0x5e, 0x85, 0xe5, 0x42, 0xb5, 0xed, 0x7b,
  1614. 0xe9, 0xb9, 0xd3, 0xea, 0xf0, 0x0f, 0x01, 0xf0, 0x60, 0xee, 0xd8, 0x89, 0xbc, 0x20, 0x44, 0xff,
  1615. 0x45, 0x4c, 0x2a, 0x33, 0x49, 0x7d, 0x91, 0x28, 0x86, 0x39, 0x1b, 0xfb, 0x2a, 0xac, 0x9d, 0x2a,
  1616. 0x14, 0x3f, 0x0f, 0xad, 0x99, 0x70, 0xa7, 0xb3, 0x48, 0x1d, 0xa1, 0x31, 0x34, 0x2b, 0x7b, 0x2b,
  1617. 0xbd, 0x6e, 0x52, 0x9a, 0x5a, 0xd3, 0x1f, 0x9a, 0xd0, 0x19, 0x8a, 0xd0, 0xf7, 0x64, 0x28, 0x10,
  1618. 0x61, 0x5d, 0xf1, 0x66, 0x24, 0x74, 0x8b, 0x59, 0x25, 0x94, 0x68, 0x9b, 0xdd, 0x44, 0x4f, 0x08,
  1619. 0x4b, 0x8d, 0xf9, 0x96, 0xa1, 0x87, 0x72, 0xcf, 0x1b, 0xa7, 0x3c, 0x3f, 0x5c, 0x4b, 0xf8, 0x61,
  1620. 0xb1, 0xd4, 0x22, 0xda, 0xb6, 0x44, 0x10, 0x5b, 0x86, 0x20, 0x1a, 0x95, 0x81, 0x0b, 0x0c, 0x71,
  1621. 0xbb, 0xc0, 0x10, 0xcd, 0xca, 0xe3, 0xd7, 0x50, 0xc4, 0xad, 0x3c, 0x45, 0xb4, 0x4a, 0x9d, 0xa5,
  1622. 0x3d, 0x2b, 0x39, 0xe2, 0x66, 0x8e, 0x23, 0xda, 0xa5, 0xd6, 0xd0, 0x6e, 0x15, 0x24, 0x71, 0x23,
  1623. 0x25, 0x89, 0x4e, 0x89, 0x56, 0x8c, 0x4b, 0x99, 0x25, 0xae, 0x25, 0x40, 0xeb, 0x56, 0x66, 0xac,
  1624. 0x44, 0x13, 0xb7, 0x0b, 0x34, 0x01, 0x95, 0x69, 0xa8, 0xe1, 0x89, 0xcf, 0x8a, 0x3c, 0xa1, 0x9b,
  1625. 0xfd, 0x62, 0xc9, 0xb7, 0x96, 0x28, 0x6e, 0xe5, 0x89, 0x62, 0xa9, 0x32, 0x89, 0x6f, 0x67, 0x8a,
  1626. 0x2d, 0xc2, 0x78, 0x09, 0x66, 0xd4, 0x65, 0x22, 0x08, 0xbc, 0xc0, 0x34, 0xb9, 0x5e, 0xd8, 0x97,
  1627. 0xa9, 0x17, 0x33, 0x70, 0xbd, 0x85, 0x55, 0x54, 0x3f, 0xe6, 0xa0, 0x65, 0xdb, 0x99, 0x2b, 0xc1,
  1628. 0x87, 0x73, 0x83, 0x30, 0xed, 0xa7, 0xbe, 0xed, 0xf7, 0xb2, 0x93, 0x14, 0xc8, 0x66, 0xee, 0x4d,
  1629. 0x13, 0xb2, 0xc1, 0x4f, 0xfb, 0x5b, 0x6a, 0xed, 0x22, 0x3c, 0xf8, 0x3b, 0xd0, 0x18, 0x79, 0x63,
  1630. 0x7d, 0x8c, 0x95, 0xed, 0x55, 0x93, 0x80, 0xbb, 0x28, 0x7a, 0x86, 0x5f, 0x43, 0xa5, 0xa4, 0x3d,
  1631. 0xb1, 0xaf, 0x1d, 0xd5, 0x2e, 0x4b, 0x43, 0xf5, 0x9d, 0x84, 0x5f, 0xcc, 0xc2, 0x7f, 0x43, 0x6d,
  1632. 0x5c, 0x80, 0xd1, 0x59, 0x46, 0xff, 0x2a, 0x4b, 0x8c, 0xe6, 0xb3, 0x33, 0x8c, 0xfd, 0x35, 0x91,
  1633. 0x69, 0x1e, 0xcd, 0x67, 0x19, 0x7c, 0x3d, 0x2b, 0x4e, 0x8a, 0x63, 0x7b, 0x03, 0xf8, 0x69, 0x80,
  1634. 0xea, 0x7f, 0x46, 0x11, 0x7a, 0xfc, 0x7d, 0x68, 0x8e, 0xdd, 0xc9, 0x24, 0x44, 0x4a, 0xa9, 0xa6,
  1635. 0x5d, 0xad, 0xb6, 0x6f, 0x43, 0x37, 0x95, 0x11, 0x7d, 0xfa, 0xf1, 0xe1, 0x43, 0x91, 0x90, 0xbd,
  1636. 0x59, 0x11, 0x3a, 0x7d, 0xef, 0xb5, 0x08, 0xd4, 0x91, 0x1b, 0x43, 0xbd, 0xb8, 0xf2, 0x93, 0x05,
  1637. 0xbd, 0x47, 0x1a, 0x7f, 0x74, 0x3b, 0xbe, 0x0a, 0xbd, 0xc7, 0xf1, 0x7c, 0x6e, 0x44, 0xec, 0x1c,
  1638. 0xef, 0x40, 0x83, 0x60, 0xcb, 0x2c, 0xde, 0x85, 0xa6, 0x82, 0x25, 0x5b, 0x20, 0x21, 0x01, 0x92,
  1639. 0x2d, 0xf2, 0x65, 0xe8, 0xa6, 0xb0, 0x63, 0x0d, 0x5a, 0xa6, 0xfd, 0xc0, 0x9a, 0x7c, 0x09, 0x3a,
  1640. 0x09, 0xda, 0xd8, 0x1a, 0xef, 0x41, 0xdb, 0x80, 0x83, 0x61, 0xfe, 0xa0, 0xa5, 0xf3, 0xcd, 0xd6,
  1641. 0x29, 0xb2, 0xaa, 0x2b, 0xdb, 0xa0, 0x00, 0x69, 0xa6, 0xd8, 0x26, 0xfe, 0xd8, 0x20, 0xcb, 0x11,
  1642. 0x3b, 0x4f, 0x01, 0x93, 0xec, 0xb0, 0x0b, 0x57, 0x7e, 0xc4, 0x3f, 0x42, 0x52, 0x17, 0xde, 0x82,
  1643. 0x85, 0x27, 0x0f, 0xf1, 0xc0, 0x6b, 0xb0, 0xbc, 0x27, 0x23, 0x11, 0x48, 0x67, 0xbe, 0x4b, 0x0d,
  1644. 0x88, 0x27, 0x47, 0xd1, 0xae, 0xc4, 0xb2, 0xb9, 0x72, 0xaa, 0x45, 0x0b, 0x14, 0x68, 0xc7, 0x19,
  1645. 0x3f, 0xf6, 0xe4, 0x48, 0xe0, 0x2d, 0x18, 0x2c, 0x3d, 0x97, 0x4e, 0x1c, 0xcd, 0xbc, 0xc0, 0xfd,
  1646. 0x5e, 0x8c, 0xf1, 0x22, 0x9b, 0xb0, 0xb6, 0x27, 0xc3, 0x78, 0x32, 0x71, 0x47, 0xae, 0x90, 0xd1,
  1647. 0xfd, 0x58, 0x8e, 0x43, 0xbc, 0x10, 0x87, 0x95, 0xe7, 0xf2, 0x48, 0x7a, 0xaf, 0xa5, 0xf9, 0x6b,
  1648. 0xb1, 0x16, 0x36, 0xf4, 0xc6, 0x8e, 0x13, 0x8a, 0x7b, 0xb1, 0x3f, 0x77, 0x47, 0x4e, 0x24, 0xee,
  1649. 0x8c, 0xc7, 0x01, 0xa6, 0x8f, 0x09, 0x0a, 0x42, 0x9a, 0xe2, 0xde, 0x93, 0xc4, 0xa1, 0x10, 0x5f,
  1650. 0x88, 0x90, 0x4d, 0xf9, 0x45, 0xd8, 0x3c, 0xa5, 0x51, 0x3b, 0xcf, 0xf8, 0xff, 0xa0, 0x5f, 0x56,
  1651. 0x3d, 0x70, 0xc2, 0xfd, 0xc0, 0xc5, 0x0b, 0xb8, 0x58, 0x5c, 0xa6, 0xb5, 0xea, 0x3f, 0xbc, 0x27,
  1652. 0xfd, 0x38, 0x62, 0xdf, 0x25, 0xfb, 0x1b, 0xe9, 0x93, 0x38, 0x22, 0xf1, 0x51, 0x49, 0xbc, 0xaf,
  1653. 0xe0, 0xc1, 0xe6, 0xfc, 0x02, 0xac, 0xe7, 0xc4, 0x4f, 0xe9, 0x7e, 0x94, 0x9d, 0xe3, 0xec, 0xbc,
  1654. 0x5a, 0xe1, 0x4e, 0xa5, 0x13, 0xc5, 0x81, 0x60, 0x12, 0xb1, 0xc6, 0x49, 0x63, 0x52, 0x92, 0x5c,
  1655. 0xdc, 0x4b, 0x76, 0x30, 0x72, 0xb3, 0x83, 0x5f, 0x16, 0xcf, 0x63, 0xac, 0x2c, 0x7b, 0x89, 0x62,
  1656. 0xf6, 0xc0, 0x7b, 0x65, 0xa4, 0xbb, 0x32, 0x72, 0xa3, 0x13, 0xf6, 0x8b, 0x85, 0x77, 0x5a, 0xcd,
  1657. 0xc4, 0x0f, 0x02, 0x2f, 0xf6, 0xd9, 0xaf, 0x16, 0x9e, 0x92, 0x67, 0xd2, 0xfd, 0xc0, 0xf3, 0xbd,
  1658. 0xd0, 0x99, 0xb3, 0xdf, 0x2c, 0x3c, 0xcb, 0x1a, 0x2a, 0xd2, 0x2a, 0x68, 0x87, 0xdf, 0x13, 0x87,
  1659. 0x54, 0xfe, 0x48, 0x1c, 0x1f, 0x8a, 0x80, 0xfd, 0x61, 0x61, 0xb2, 0x37, 0xf2, 0x8a, 0x34, 0xd6,
  1660. 0x9f, 0x96, 0x39, 0x51, 0xaa, 0x7a, 0xe1, 0x45, 0x82, 0xfd, 0x95, 0x88, 0x4d, 0x1e, 0x4c, 0xa0,
  1661. 0xbf, 0x2d, 0xbe, 0x0e, 0x2b, 0x99, 0x58, 0xd9, 0xfe, 0x63, 0xf1, 0x01, 0x6c, 0x16, 0x84, 0x58,
  1662. 0xff, 0x7d, 0xea, 0x38, 0xf6, 0xaf, 0xb5, 0x8d, 0x93, 0xcc, 0xea, 0xb3, 0x47, 0x4f, 0xf7, 0xb1,
  1663. 0x37, 0xd4, 0x06, 0x44, 0xd9, 0x37, 0x74, 0x9f, 0xf1, 0x8a, 0xf7, 0xca, 0xa0, 0x6a, 0x48, 0xc1,
  1664. 0xa1, 0x5f, 0xb7, 0x23, 0xaf, 0x7a, 0xb6, 0x0c, 0x2a, 0x67, 0x15, 0xda, 0x44, 0xff, 0x48, 0x4e,
  1665. 0xbf, 0x5e, 0x06, 0x55, 0x03, 0x0b, 0xff, 0x3c, 0xd7, 0xde, 0xbc, 0xee, 0x0d, 0x33, 0xa8, 0x1d,
  1666. 0x5d, 0x70, 0x9c, 0x4f, 0x09, 0x80, 0xd7, 0xbc, 0x64, 0x06, 0x75, 0xe3, 0x0b, 0xce, 0x78, 0x09,
  1667. 0x5f, 0xf0, 0xea, 0xf7, 0xcc, 0xa0, 0x66, 0x84, 0xa1, 0xdc, 0xe8, 0x1f, 0x45, 0xd5, 0x33, 0x65,
  1668. 0x50, 0x39, 0x95, 0xe0, 0xe3, 0xc1, 0x10, 0x12, 0xaf, 0x7c, 0x0a, 0x0d, 0xaa, 0x67, 0x1f, 0xca,
  1669. 0x50, 0x36, 0x2c, 0xd7, 0xbd, 0x71, 0x06, 0xb5, 0x53, 0x0d, 0xbf, 0x93, 0x67, 0x38, 0x5e, 0xfb,
  1670. 0xd2, 0x19, 0xd4, 0xcf, 0x36, 0x94, 0xe4, 0x6c, 0x78, 0xae, 0x7e, 0xef, 0x0c, 0xea, 0xc6, 0x9b,
  1671. 0xc3, 0x96, 0x7a, 0x47, 0xdf, 0xfc, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xe3, 0x58, 0x48, 0x56,
  1672. 0x0f, 0x00, 0x00,
  1673. }