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.

794 lines
28 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/consensus/msgs.proto
  3. package consensus
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. bits "github.com/tendermint/tendermint/proto/libs/bits"
  9. types "github.com/tendermint/tendermint/proto/types"
  10. math "math"
  11. )
  12. // Reference imports to suppress errors if they are not otherwise used.
  13. var _ = proto.Marshal
  14. var _ = fmt.Errorf
  15. var _ = math.Inf
  16. // This is a compile-time assertion to ensure that this generated file
  17. // is compatible with the proto package it is being compiled against.
  18. // A compilation error at this line likely means your copy of the
  19. // proto package needs to be updated.
  20. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  21. // NewRoundStepMessage is sent for every step taken in the ConsensusState.
  22. // For every height/round/step transition
  23. type NewRoundStep struct {
  24. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  25. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  26. Step uint32 `protobuf:"varint,3,opt,name=step,proto3" json:"step,omitempty"`
  27. SecondsSinceStartTime int64 `protobuf:"varint,4,opt,name=seconds_since_start_time,json=secondsSinceStartTime,proto3" json:"seconds_since_start_time,omitempty"`
  28. LastCommitRound int32 `protobuf:"varint,5,opt,name=last_commit_round,json=lastCommitRound,proto3" json:"last_commit_round,omitempty"`
  29. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  30. XXX_unrecognized []byte `json:"-"`
  31. XXX_sizecache int32 `json:"-"`
  32. }
  33. func (m *NewRoundStep) Reset() { *m = NewRoundStep{} }
  34. func (m *NewRoundStep) String() string { return proto.CompactTextString(m) }
  35. func (*NewRoundStep) ProtoMessage() {}
  36. func (*NewRoundStep) Descriptor() ([]byte, []int) {
  37. return fileDescriptor_9de64017f8b3fc88, []int{0}
  38. }
  39. func (m *NewRoundStep) XXX_Unmarshal(b []byte) error {
  40. return xxx_messageInfo_NewRoundStep.Unmarshal(m, b)
  41. }
  42. func (m *NewRoundStep) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  43. return xxx_messageInfo_NewRoundStep.Marshal(b, m, deterministic)
  44. }
  45. func (m *NewRoundStep) XXX_Merge(src proto.Message) {
  46. xxx_messageInfo_NewRoundStep.Merge(m, src)
  47. }
  48. func (m *NewRoundStep) XXX_Size() int {
  49. return xxx_messageInfo_NewRoundStep.Size(m)
  50. }
  51. func (m *NewRoundStep) XXX_DiscardUnknown() {
  52. xxx_messageInfo_NewRoundStep.DiscardUnknown(m)
  53. }
  54. var xxx_messageInfo_NewRoundStep proto.InternalMessageInfo
  55. func (m *NewRoundStep) GetHeight() int64 {
  56. if m != nil {
  57. return m.Height
  58. }
  59. return 0
  60. }
  61. func (m *NewRoundStep) GetRound() int32 {
  62. if m != nil {
  63. return m.Round
  64. }
  65. return 0
  66. }
  67. func (m *NewRoundStep) GetStep() uint32 {
  68. if m != nil {
  69. return m.Step
  70. }
  71. return 0
  72. }
  73. func (m *NewRoundStep) GetSecondsSinceStartTime() int64 {
  74. if m != nil {
  75. return m.SecondsSinceStartTime
  76. }
  77. return 0
  78. }
  79. func (m *NewRoundStep) GetLastCommitRound() int32 {
  80. if m != nil {
  81. return m.LastCommitRound
  82. }
  83. return 0
  84. }
  85. // NewValidBlockMessage is sent when a validator observes a valid block B in some round r,
  86. //i.e., there is a Proposal for block B and 2/3+ prevotes for the block B in the round r.
  87. // In case the block is also committed, then IsCommit flag is set to true.
  88. type NewValidBlock struct {
  89. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  90. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  91. BlockPartsHeader types.PartSetHeader `protobuf:"bytes,3,opt,name=block_parts_header,json=blockPartsHeader,proto3" json:"block_parts_header"`
  92. BlockParts *bits.BitArray `protobuf:"bytes,4,opt,name=block_parts,json=blockParts,proto3" json:"block_parts,omitempty"`
  93. IsCommit bool `protobuf:"varint,5,opt,name=is_commit,json=isCommit,proto3" json:"is_commit,omitempty"`
  94. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  95. XXX_unrecognized []byte `json:"-"`
  96. XXX_sizecache int32 `json:"-"`
  97. }
  98. func (m *NewValidBlock) Reset() { *m = NewValidBlock{} }
  99. func (m *NewValidBlock) String() string { return proto.CompactTextString(m) }
  100. func (*NewValidBlock) ProtoMessage() {}
  101. func (*NewValidBlock) Descriptor() ([]byte, []int) {
  102. return fileDescriptor_9de64017f8b3fc88, []int{1}
  103. }
  104. func (m *NewValidBlock) XXX_Unmarshal(b []byte) error {
  105. return xxx_messageInfo_NewValidBlock.Unmarshal(m, b)
  106. }
  107. func (m *NewValidBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  108. return xxx_messageInfo_NewValidBlock.Marshal(b, m, deterministic)
  109. }
  110. func (m *NewValidBlock) XXX_Merge(src proto.Message) {
  111. xxx_messageInfo_NewValidBlock.Merge(m, src)
  112. }
  113. func (m *NewValidBlock) XXX_Size() int {
  114. return xxx_messageInfo_NewValidBlock.Size(m)
  115. }
  116. func (m *NewValidBlock) XXX_DiscardUnknown() {
  117. xxx_messageInfo_NewValidBlock.DiscardUnknown(m)
  118. }
  119. var xxx_messageInfo_NewValidBlock proto.InternalMessageInfo
  120. func (m *NewValidBlock) GetHeight() int64 {
  121. if m != nil {
  122. return m.Height
  123. }
  124. return 0
  125. }
  126. func (m *NewValidBlock) GetRound() int32 {
  127. if m != nil {
  128. return m.Round
  129. }
  130. return 0
  131. }
  132. func (m *NewValidBlock) GetBlockPartsHeader() types.PartSetHeader {
  133. if m != nil {
  134. return m.BlockPartsHeader
  135. }
  136. return types.PartSetHeader{}
  137. }
  138. func (m *NewValidBlock) GetBlockParts() *bits.BitArray {
  139. if m != nil {
  140. return m.BlockParts
  141. }
  142. return nil
  143. }
  144. func (m *NewValidBlock) GetIsCommit() bool {
  145. if m != nil {
  146. return m.IsCommit
  147. }
  148. return false
  149. }
  150. // ProposalMessage is sent when a new block is proposed.
  151. type Proposal struct {
  152. Proposal types.Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal"`
  153. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  154. XXX_unrecognized []byte `json:"-"`
  155. XXX_sizecache int32 `json:"-"`
  156. }
  157. func (m *Proposal) Reset() { *m = Proposal{} }
  158. func (m *Proposal) String() string { return proto.CompactTextString(m) }
  159. func (*Proposal) ProtoMessage() {}
  160. func (*Proposal) Descriptor() ([]byte, []int) {
  161. return fileDescriptor_9de64017f8b3fc88, []int{2}
  162. }
  163. func (m *Proposal) XXX_Unmarshal(b []byte) error {
  164. return xxx_messageInfo_Proposal.Unmarshal(m, b)
  165. }
  166. func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  167. return xxx_messageInfo_Proposal.Marshal(b, m, deterministic)
  168. }
  169. func (m *Proposal) XXX_Merge(src proto.Message) {
  170. xxx_messageInfo_Proposal.Merge(m, src)
  171. }
  172. func (m *Proposal) XXX_Size() int {
  173. return xxx_messageInfo_Proposal.Size(m)
  174. }
  175. func (m *Proposal) XXX_DiscardUnknown() {
  176. xxx_messageInfo_Proposal.DiscardUnknown(m)
  177. }
  178. var xxx_messageInfo_Proposal proto.InternalMessageInfo
  179. func (m *Proposal) GetProposal() types.Proposal {
  180. if m != nil {
  181. return m.Proposal
  182. }
  183. return types.Proposal{}
  184. }
  185. // ProposalPOLMessage is sent when a previous proposal is re-proposed.
  186. type ProposalPOL struct {
  187. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  188. ProposalPolRound int32 `protobuf:"varint,2,opt,name=proposal_pol_round,json=proposalPolRound,proto3" json:"proposal_pol_round,omitempty"`
  189. ProposalPol bits.BitArray `protobuf:"bytes,3,opt,name=proposal_pol,json=proposalPol,proto3" json:"proposal_pol"`
  190. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  191. XXX_unrecognized []byte `json:"-"`
  192. XXX_sizecache int32 `json:"-"`
  193. }
  194. func (m *ProposalPOL) Reset() { *m = ProposalPOL{} }
  195. func (m *ProposalPOL) String() string { return proto.CompactTextString(m) }
  196. func (*ProposalPOL) ProtoMessage() {}
  197. func (*ProposalPOL) Descriptor() ([]byte, []int) {
  198. return fileDescriptor_9de64017f8b3fc88, []int{3}
  199. }
  200. func (m *ProposalPOL) XXX_Unmarshal(b []byte) error {
  201. return xxx_messageInfo_ProposalPOL.Unmarshal(m, b)
  202. }
  203. func (m *ProposalPOL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  204. return xxx_messageInfo_ProposalPOL.Marshal(b, m, deterministic)
  205. }
  206. func (m *ProposalPOL) XXX_Merge(src proto.Message) {
  207. xxx_messageInfo_ProposalPOL.Merge(m, src)
  208. }
  209. func (m *ProposalPOL) XXX_Size() int {
  210. return xxx_messageInfo_ProposalPOL.Size(m)
  211. }
  212. func (m *ProposalPOL) XXX_DiscardUnknown() {
  213. xxx_messageInfo_ProposalPOL.DiscardUnknown(m)
  214. }
  215. var xxx_messageInfo_ProposalPOL proto.InternalMessageInfo
  216. func (m *ProposalPOL) GetHeight() int64 {
  217. if m != nil {
  218. return m.Height
  219. }
  220. return 0
  221. }
  222. func (m *ProposalPOL) GetProposalPolRound() int32 {
  223. if m != nil {
  224. return m.ProposalPolRound
  225. }
  226. return 0
  227. }
  228. func (m *ProposalPOL) GetProposalPol() bits.BitArray {
  229. if m != nil {
  230. return m.ProposalPol
  231. }
  232. return bits.BitArray{}
  233. }
  234. // BlockPartMessage is sent when gossipping a piece of the proposed block.
  235. type BlockPart struct {
  236. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  237. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  238. Part types.Part `protobuf:"bytes,3,opt,name=part,proto3" json:"part"`
  239. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  240. XXX_unrecognized []byte `json:"-"`
  241. XXX_sizecache int32 `json:"-"`
  242. }
  243. func (m *BlockPart) Reset() { *m = BlockPart{} }
  244. func (m *BlockPart) String() string { return proto.CompactTextString(m) }
  245. func (*BlockPart) ProtoMessage() {}
  246. func (*BlockPart) Descriptor() ([]byte, []int) {
  247. return fileDescriptor_9de64017f8b3fc88, []int{4}
  248. }
  249. func (m *BlockPart) XXX_Unmarshal(b []byte) error {
  250. return xxx_messageInfo_BlockPart.Unmarshal(m, b)
  251. }
  252. func (m *BlockPart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  253. return xxx_messageInfo_BlockPart.Marshal(b, m, deterministic)
  254. }
  255. func (m *BlockPart) XXX_Merge(src proto.Message) {
  256. xxx_messageInfo_BlockPart.Merge(m, src)
  257. }
  258. func (m *BlockPart) XXX_Size() int {
  259. return xxx_messageInfo_BlockPart.Size(m)
  260. }
  261. func (m *BlockPart) XXX_DiscardUnknown() {
  262. xxx_messageInfo_BlockPart.DiscardUnknown(m)
  263. }
  264. var xxx_messageInfo_BlockPart proto.InternalMessageInfo
  265. func (m *BlockPart) GetHeight() int64 {
  266. if m != nil {
  267. return m.Height
  268. }
  269. return 0
  270. }
  271. func (m *BlockPart) GetRound() int32 {
  272. if m != nil {
  273. return m.Round
  274. }
  275. return 0
  276. }
  277. func (m *BlockPart) GetPart() types.Part {
  278. if m != nil {
  279. return m.Part
  280. }
  281. return types.Part{}
  282. }
  283. // VoteMessage is sent when voting for a proposal (or lack thereof).
  284. type Vote struct {
  285. Vote *types.Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
  286. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  287. XXX_unrecognized []byte `json:"-"`
  288. XXX_sizecache int32 `json:"-"`
  289. }
  290. func (m *Vote) Reset() { *m = Vote{} }
  291. func (m *Vote) String() string { return proto.CompactTextString(m) }
  292. func (*Vote) ProtoMessage() {}
  293. func (*Vote) Descriptor() ([]byte, []int) {
  294. return fileDescriptor_9de64017f8b3fc88, []int{5}
  295. }
  296. func (m *Vote) XXX_Unmarshal(b []byte) error {
  297. return xxx_messageInfo_Vote.Unmarshal(m, b)
  298. }
  299. func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  300. return xxx_messageInfo_Vote.Marshal(b, m, deterministic)
  301. }
  302. func (m *Vote) XXX_Merge(src proto.Message) {
  303. xxx_messageInfo_Vote.Merge(m, src)
  304. }
  305. func (m *Vote) XXX_Size() int {
  306. return xxx_messageInfo_Vote.Size(m)
  307. }
  308. func (m *Vote) XXX_DiscardUnknown() {
  309. xxx_messageInfo_Vote.DiscardUnknown(m)
  310. }
  311. var xxx_messageInfo_Vote proto.InternalMessageInfo
  312. func (m *Vote) GetVote() *types.Vote {
  313. if m != nil {
  314. return m.Vote
  315. }
  316. return nil
  317. }
  318. // HasVoteMessage is sent to indicate that a particular vote has been received.
  319. type HasVote struct {
  320. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  321. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  322. Type types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
  323. Index uint32 `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
  324. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  325. XXX_unrecognized []byte `json:"-"`
  326. XXX_sizecache int32 `json:"-"`
  327. }
  328. func (m *HasVote) Reset() { *m = HasVote{} }
  329. func (m *HasVote) String() string { return proto.CompactTextString(m) }
  330. func (*HasVote) ProtoMessage() {}
  331. func (*HasVote) Descriptor() ([]byte, []int) {
  332. return fileDescriptor_9de64017f8b3fc88, []int{6}
  333. }
  334. func (m *HasVote) XXX_Unmarshal(b []byte) error {
  335. return xxx_messageInfo_HasVote.Unmarshal(m, b)
  336. }
  337. func (m *HasVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  338. return xxx_messageInfo_HasVote.Marshal(b, m, deterministic)
  339. }
  340. func (m *HasVote) XXX_Merge(src proto.Message) {
  341. xxx_messageInfo_HasVote.Merge(m, src)
  342. }
  343. func (m *HasVote) XXX_Size() int {
  344. return xxx_messageInfo_HasVote.Size(m)
  345. }
  346. func (m *HasVote) XXX_DiscardUnknown() {
  347. xxx_messageInfo_HasVote.DiscardUnknown(m)
  348. }
  349. var xxx_messageInfo_HasVote proto.InternalMessageInfo
  350. func (m *HasVote) GetHeight() int64 {
  351. if m != nil {
  352. return m.Height
  353. }
  354. return 0
  355. }
  356. func (m *HasVote) GetRound() int32 {
  357. if m != nil {
  358. return m.Round
  359. }
  360. return 0
  361. }
  362. func (m *HasVote) GetType() types.SignedMsgType {
  363. if m != nil {
  364. return m.Type
  365. }
  366. return types.SIGNED_MSG_TYPE_UNKNOWN
  367. }
  368. func (m *HasVote) GetIndex() uint32 {
  369. if m != nil {
  370. return m.Index
  371. }
  372. return 0
  373. }
  374. // VoteSetMaj23Message is sent to indicate that a given BlockID has seen +2/3 votes.
  375. type VoteSetMaj23 struct {
  376. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  377. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  378. Type types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
  379. BlockID types.BlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
  380. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  381. XXX_unrecognized []byte `json:"-"`
  382. XXX_sizecache int32 `json:"-"`
  383. }
  384. func (m *VoteSetMaj23) Reset() { *m = VoteSetMaj23{} }
  385. func (m *VoteSetMaj23) String() string { return proto.CompactTextString(m) }
  386. func (*VoteSetMaj23) ProtoMessage() {}
  387. func (*VoteSetMaj23) Descriptor() ([]byte, []int) {
  388. return fileDescriptor_9de64017f8b3fc88, []int{7}
  389. }
  390. func (m *VoteSetMaj23) XXX_Unmarshal(b []byte) error {
  391. return xxx_messageInfo_VoteSetMaj23.Unmarshal(m, b)
  392. }
  393. func (m *VoteSetMaj23) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  394. return xxx_messageInfo_VoteSetMaj23.Marshal(b, m, deterministic)
  395. }
  396. func (m *VoteSetMaj23) XXX_Merge(src proto.Message) {
  397. xxx_messageInfo_VoteSetMaj23.Merge(m, src)
  398. }
  399. func (m *VoteSetMaj23) XXX_Size() int {
  400. return xxx_messageInfo_VoteSetMaj23.Size(m)
  401. }
  402. func (m *VoteSetMaj23) XXX_DiscardUnknown() {
  403. xxx_messageInfo_VoteSetMaj23.DiscardUnknown(m)
  404. }
  405. var xxx_messageInfo_VoteSetMaj23 proto.InternalMessageInfo
  406. func (m *VoteSetMaj23) GetHeight() int64 {
  407. if m != nil {
  408. return m.Height
  409. }
  410. return 0
  411. }
  412. func (m *VoteSetMaj23) GetRound() int32 {
  413. if m != nil {
  414. return m.Round
  415. }
  416. return 0
  417. }
  418. func (m *VoteSetMaj23) GetType() types.SignedMsgType {
  419. if m != nil {
  420. return m.Type
  421. }
  422. return types.SIGNED_MSG_TYPE_UNKNOWN
  423. }
  424. func (m *VoteSetMaj23) GetBlockID() types.BlockID {
  425. if m != nil {
  426. return m.BlockID
  427. }
  428. return types.BlockID{}
  429. }
  430. // VoteSetBitsMessage is sent to communicate the bit-array of votes seen for the BlockID.
  431. type VoteSetBits struct {
  432. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  433. Round int32 `protobuf:"varint,2,opt,name=round,proto3" json:"round,omitempty"`
  434. Type types.SignedMsgType `protobuf:"varint,3,opt,name=type,proto3,enum=tendermint.proto.types.SignedMsgType" json:"type,omitempty"`
  435. BlockID types.BlockID `protobuf:"bytes,4,opt,name=block_id,json=blockId,proto3" json:"block_id"`
  436. Votes bits.BitArray `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes"`
  437. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  438. XXX_unrecognized []byte `json:"-"`
  439. XXX_sizecache int32 `json:"-"`
  440. }
  441. func (m *VoteSetBits) Reset() { *m = VoteSetBits{} }
  442. func (m *VoteSetBits) String() string { return proto.CompactTextString(m) }
  443. func (*VoteSetBits) ProtoMessage() {}
  444. func (*VoteSetBits) Descriptor() ([]byte, []int) {
  445. return fileDescriptor_9de64017f8b3fc88, []int{8}
  446. }
  447. func (m *VoteSetBits) XXX_Unmarshal(b []byte) error {
  448. return xxx_messageInfo_VoteSetBits.Unmarshal(m, b)
  449. }
  450. func (m *VoteSetBits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  451. return xxx_messageInfo_VoteSetBits.Marshal(b, m, deterministic)
  452. }
  453. func (m *VoteSetBits) XXX_Merge(src proto.Message) {
  454. xxx_messageInfo_VoteSetBits.Merge(m, src)
  455. }
  456. func (m *VoteSetBits) XXX_Size() int {
  457. return xxx_messageInfo_VoteSetBits.Size(m)
  458. }
  459. func (m *VoteSetBits) XXX_DiscardUnknown() {
  460. xxx_messageInfo_VoteSetBits.DiscardUnknown(m)
  461. }
  462. var xxx_messageInfo_VoteSetBits proto.InternalMessageInfo
  463. func (m *VoteSetBits) GetHeight() int64 {
  464. if m != nil {
  465. return m.Height
  466. }
  467. return 0
  468. }
  469. func (m *VoteSetBits) GetRound() int32 {
  470. if m != nil {
  471. return m.Round
  472. }
  473. return 0
  474. }
  475. func (m *VoteSetBits) GetType() types.SignedMsgType {
  476. if m != nil {
  477. return m.Type
  478. }
  479. return types.SIGNED_MSG_TYPE_UNKNOWN
  480. }
  481. func (m *VoteSetBits) GetBlockID() types.BlockID {
  482. if m != nil {
  483. return m.BlockID
  484. }
  485. return types.BlockID{}
  486. }
  487. func (m *VoteSetBits) GetVotes() bits.BitArray {
  488. if m != nil {
  489. return m.Votes
  490. }
  491. return bits.BitArray{}
  492. }
  493. type Message struct {
  494. // Types that are valid to be assigned to Sum:
  495. // *Message_NewRoundStep
  496. // *Message_NewValidBlock
  497. // *Message_Proposal
  498. // *Message_ProposalPol
  499. // *Message_BlockPart
  500. // *Message_Vote
  501. // *Message_HasVote
  502. // *Message_VoteSetMaj23
  503. // *Message_VoteSetBits
  504. Sum isMessage_Sum `protobuf_oneof:"sum"`
  505. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  506. XXX_unrecognized []byte `json:"-"`
  507. XXX_sizecache int32 `json:"-"`
  508. }
  509. func (m *Message) Reset() { *m = Message{} }
  510. func (m *Message) String() string { return proto.CompactTextString(m) }
  511. func (*Message) ProtoMessage() {}
  512. func (*Message) Descriptor() ([]byte, []int) {
  513. return fileDescriptor_9de64017f8b3fc88, []int{9}
  514. }
  515. func (m *Message) XXX_Unmarshal(b []byte) error {
  516. return xxx_messageInfo_Message.Unmarshal(m, b)
  517. }
  518. func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  519. return xxx_messageInfo_Message.Marshal(b, m, deterministic)
  520. }
  521. func (m *Message) XXX_Merge(src proto.Message) {
  522. xxx_messageInfo_Message.Merge(m, src)
  523. }
  524. func (m *Message) XXX_Size() int {
  525. return xxx_messageInfo_Message.Size(m)
  526. }
  527. func (m *Message) XXX_DiscardUnknown() {
  528. xxx_messageInfo_Message.DiscardUnknown(m)
  529. }
  530. var xxx_messageInfo_Message proto.InternalMessageInfo
  531. type isMessage_Sum interface {
  532. isMessage_Sum()
  533. }
  534. type Message_NewRoundStep struct {
  535. NewRoundStep *NewRoundStep `protobuf:"bytes,1,opt,name=new_round_step,json=newRoundStep,proto3,oneof" json:"new_round_step,omitempty"`
  536. }
  537. type Message_NewValidBlock struct {
  538. NewValidBlock *NewValidBlock `protobuf:"bytes,2,opt,name=new_valid_block,json=newValidBlock,proto3,oneof" json:"new_valid_block,omitempty"`
  539. }
  540. type Message_Proposal struct {
  541. Proposal *Proposal `protobuf:"bytes,3,opt,name=proposal,proto3,oneof" json:"proposal,omitempty"`
  542. }
  543. type Message_ProposalPol struct {
  544. ProposalPol *ProposalPOL `protobuf:"bytes,4,opt,name=proposal_pol,json=proposalPol,proto3,oneof" json:"proposal_pol,omitempty"`
  545. }
  546. type Message_BlockPart struct {
  547. BlockPart *BlockPart `protobuf:"bytes,5,opt,name=block_part,json=blockPart,proto3,oneof" json:"block_part,omitempty"`
  548. }
  549. type Message_Vote struct {
  550. Vote *Vote `protobuf:"bytes,6,opt,name=vote,proto3,oneof" json:"vote,omitempty"`
  551. }
  552. type Message_HasVote struct {
  553. HasVote *HasVote `protobuf:"bytes,7,opt,name=has_vote,json=hasVote,proto3,oneof" json:"has_vote,omitempty"`
  554. }
  555. type Message_VoteSetMaj23 struct {
  556. VoteSetMaj23 *VoteSetMaj23 `protobuf:"bytes,8,opt,name=vote_set_maj23,json=voteSetMaj23,proto3,oneof" json:"vote_set_maj23,omitempty"`
  557. }
  558. type Message_VoteSetBits struct {
  559. VoteSetBits *VoteSetBits `protobuf:"bytes,9,opt,name=vote_set_bits,json=voteSetBits,proto3,oneof" json:"vote_set_bits,omitempty"`
  560. }
  561. func (*Message_NewRoundStep) isMessage_Sum() {}
  562. func (*Message_NewValidBlock) isMessage_Sum() {}
  563. func (*Message_Proposal) isMessage_Sum() {}
  564. func (*Message_ProposalPol) isMessage_Sum() {}
  565. func (*Message_BlockPart) isMessage_Sum() {}
  566. func (*Message_Vote) isMessage_Sum() {}
  567. func (*Message_HasVote) isMessage_Sum() {}
  568. func (*Message_VoteSetMaj23) isMessage_Sum() {}
  569. func (*Message_VoteSetBits) isMessage_Sum() {}
  570. func (m *Message) GetSum() isMessage_Sum {
  571. if m != nil {
  572. return m.Sum
  573. }
  574. return nil
  575. }
  576. func (m *Message) GetNewRoundStep() *NewRoundStep {
  577. if x, ok := m.GetSum().(*Message_NewRoundStep); ok {
  578. return x.NewRoundStep
  579. }
  580. return nil
  581. }
  582. func (m *Message) GetNewValidBlock() *NewValidBlock {
  583. if x, ok := m.GetSum().(*Message_NewValidBlock); ok {
  584. return x.NewValidBlock
  585. }
  586. return nil
  587. }
  588. func (m *Message) GetProposal() *Proposal {
  589. if x, ok := m.GetSum().(*Message_Proposal); ok {
  590. return x.Proposal
  591. }
  592. return nil
  593. }
  594. func (m *Message) GetProposalPol() *ProposalPOL {
  595. if x, ok := m.GetSum().(*Message_ProposalPol); ok {
  596. return x.ProposalPol
  597. }
  598. return nil
  599. }
  600. func (m *Message) GetBlockPart() *BlockPart {
  601. if x, ok := m.GetSum().(*Message_BlockPart); ok {
  602. return x.BlockPart
  603. }
  604. return nil
  605. }
  606. func (m *Message) GetVote() *Vote {
  607. if x, ok := m.GetSum().(*Message_Vote); ok {
  608. return x.Vote
  609. }
  610. return nil
  611. }
  612. func (m *Message) GetHasVote() *HasVote {
  613. if x, ok := m.GetSum().(*Message_HasVote); ok {
  614. return x.HasVote
  615. }
  616. return nil
  617. }
  618. func (m *Message) GetVoteSetMaj23() *VoteSetMaj23 {
  619. if x, ok := m.GetSum().(*Message_VoteSetMaj23); ok {
  620. return x.VoteSetMaj23
  621. }
  622. return nil
  623. }
  624. func (m *Message) GetVoteSetBits() *VoteSetBits {
  625. if x, ok := m.GetSum().(*Message_VoteSetBits); ok {
  626. return x.VoteSetBits
  627. }
  628. return nil
  629. }
  630. // XXX_OneofWrappers is for the internal use of the proto package.
  631. func (*Message) XXX_OneofWrappers() []interface{} {
  632. return []interface{}{
  633. (*Message_NewRoundStep)(nil),
  634. (*Message_NewValidBlock)(nil),
  635. (*Message_Proposal)(nil),
  636. (*Message_ProposalPol)(nil),
  637. (*Message_BlockPart)(nil),
  638. (*Message_Vote)(nil),
  639. (*Message_HasVote)(nil),
  640. (*Message_VoteSetMaj23)(nil),
  641. (*Message_VoteSetBits)(nil),
  642. }
  643. }
  644. func init() {
  645. proto.RegisterType((*NewRoundStep)(nil), "tendermint.proto.consensus.NewRoundStep")
  646. proto.RegisterType((*NewValidBlock)(nil), "tendermint.proto.consensus.NewValidBlock")
  647. proto.RegisterType((*Proposal)(nil), "tendermint.proto.consensus.Proposal")
  648. proto.RegisterType((*ProposalPOL)(nil), "tendermint.proto.consensus.ProposalPOL")
  649. proto.RegisterType((*BlockPart)(nil), "tendermint.proto.consensus.BlockPart")
  650. proto.RegisterType((*Vote)(nil), "tendermint.proto.consensus.Vote")
  651. proto.RegisterType((*HasVote)(nil), "tendermint.proto.consensus.HasVote")
  652. proto.RegisterType((*VoteSetMaj23)(nil), "tendermint.proto.consensus.VoteSetMaj23")
  653. proto.RegisterType((*VoteSetBits)(nil), "tendermint.proto.consensus.VoteSetBits")
  654. proto.RegisterType((*Message)(nil), "tendermint.proto.consensus.Message")
  655. }
  656. func init() { proto.RegisterFile("proto/consensus/msgs.proto", fileDescriptor_9de64017f8b3fc88) }
  657. var fileDescriptor_9de64017f8b3fc88 = []byte{
  658. // 833 bytes of a gzipped FileDescriptorProto
  659. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x56, 0xcd, 0x6e, 0xeb, 0x44,
  660. 0x14, 0x8e, 0x6f, 0x93, 0x26, 0x39, 0x4e, 0xda, 0xcb, 0x88, 0x9f, 0x28, 0x17, 0xa9, 0x91, 0xe1,
  661. 0x42, 0x40, 0xc8, 0xb9, 0x4a, 0x25, 0x7e, 0x76, 0xc5, 0xfc, 0xc8, 0x15, 0x4d, 0x1b, 0x39, 0x55,
  662. 0x25, 0xd8, 0x58, 0x4e, 0x3c, 0x72, 0x06, 0x62, 0x8f, 0xf1, 0x4c, 0x52, 0xf2, 0x00, 0x48, 0x3c,
  663. 0x07, 0x6b, 0xb6, 0xbc, 0x01, 0x0b, 0x9e, 0xa2, 0x0b, 0x9e, 0x83, 0x05, 0x9a, 0x9f, 0xc4, 0x6e,
  664. 0x2b, 0xb7, 0xcd, 0x06, 0xe9, 0x6e, 0xaa, 0x99, 0x39, 0xe7, 0xfb, 0x7c, 0xe6, 0x3b, 0x73, 0xbe,
  665. 0x06, 0xba, 0x69, 0x46, 0x39, 0x1d, 0xcc, 0x68, 0xc2, 0x70, 0xc2, 0x96, 0x6c, 0x10, 0xb3, 0x88,
  666. 0xd9, 0xf2, 0x10, 0x75, 0x39, 0x4e, 0x42, 0x9c, 0xc5, 0x24, 0xe1, 0xea, 0xc4, 0xde, 0xa6, 0x75,
  667. 0x3f, 0xe0, 0x73, 0x92, 0x85, 0x7e, 0x1a, 0x64, 0x7c, 0x3d, 0x50, 0x1c, 0x11, 0x8d, 0x68, 0xbe,
  668. 0x52, 0x88, 0xee, 0x3b, 0xea, 0x84, 0xaf, 0x53, 0xcc, 0xd4, 0x5f, 0x1d, 0x78, 0xa1, 0x02, 0x0b,
  669. 0x32, 0x65, 0x83, 0x29, 0xe1, 0xb7, 0x82, 0xd6, 0x9f, 0x06, 0xb4, 0xce, 0xf1, 0xb5, 0x47, 0x97,
  670. 0x49, 0x38, 0xe1, 0x38, 0x45, 0x6f, 0xc3, 0xfe, 0x1c, 0x93, 0x68, 0xce, 0x3b, 0x46, 0xcf, 0xe8,
  671. 0xef, 0x79, 0x7a, 0x87, 0xde, 0x84, 0x5a, 0x26, 0x92, 0x3a, 0xcf, 0x7a, 0x46, 0xbf, 0xe6, 0xa9,
  672. 0x0d, 0x42, 0x50, 0x65, 0x1c, 0xa7, 0x9d, 0xbd, 0x9e, 0xd1, 0x6f, 0x7b, 0x72, 0x8d, 0x3e, 0x83,
  673. 0x0e, 0xc3, 0x33, 0x9a, 0x84, 0xcc, 0x67, 0x24, 0x99, 0x61, 0x9f, 0xf1, 0x20, 0xe3, 0x3e, 0x27,
  674. 0x31, 0xee, 0x54, 0x25, 0xe7, 0x5b, 0x3a, 0x3e, 0x11, 0xe1, 0x89, 0x88, 0x5e, 0x92, 0x18, 0xa3,
  675. 0x8f, 0xe1, 0x8d, 0x45, 0xc0, 0xb8, 0x3f, 0xa3, 0x71, 0x4c, 0xb8, 0xaf, 0x3e, 0x57, 0x93, 0x9f,
  676. 0x3b, 0x14, 0x81, 0xaf, 0xe4, 0xb9, 0x2c, 0xd5, 0xfa, 0xd7, 0x80, 0xf6, 0x39, 0xbe, 0xbe, 0x0a,
  677. 0x16, 0x24, 0x74, 0x16, 0x74, 0xf6, 0xd3, 0x8e, 0x85, 0x7f, 0x0f, 0x68, 0x2a, 0x60, 0x52, 0x57,
  678. 0xe6, 0xcf, 0x71, 0x10, 0xe2, 0x4c, 0x5e, 0xc3, 0x1c, 0xbe, 0xb4, 0xef, 0xb5, 0x43, 0x49, 0x36,
  679. 0x0e, 0x32, 0x3e, 0xc1, 0xdc, 0x95, 0xc9, 0x4e, 0xf5, 0xef, 0x9b, 0xa3, 0x8a, 0xf7, 0x5c, 0xd2,
  680. 0x88, 0x08, 0x53, 0xe7, 0xe8, 0x1b, 0x30, 0x0b, 0xd4, 0xf2, 0xca, 0xe6, 0xf0, 0xfd, 0xfb, 0x9c,
  681. 0xa2, 0x21, 0xb6, 0x68, 0x88, 0xed, 0x10, 0xfe, 0x65, 0x96, 0x05, 0x6b, 0x0f, 0x72, 0x32, 0xf4,
  682. 0x02, 0x9a, 0x84, 0x69, 0x2d, 0xa4, 0x0a, 0x0d, 0xaf, 0x41, 0x98, 0xd2, 0xc0, 0x3a, 0x87, 0xc6,
  683. 0x38, 0xa3, 0x29, 0x65, 0xc1, 0x02, 0x39, 0xd0, 0x48, 0xf5, 0x5a, 0x5e, 0xdd, 0x1c, 0xf6, 0x4a,
  684. 0x2f, 0xa0, 0xf3, 0x74, 0xed, 0x5b, 0x9c, 0xf5, 0xbb, 0x01, 0xe6, 0x26, 0x38, 0xbe, 0x38, 0x2b,
  685. 0x15, 0xf3, 0x13, 0x40, 0x1b, 0x8c, 0x9f, 0xd2, 0x85, 0x5f, 0x54, 0xf6, 0xf9, 0x26, 0x32, 0xa6,
  686. 0x0b, 0xd9, 0x24, 0x34, 0x82, 0x56, 0x31, 0x5b, 0xcb, 0xfb, 0x24, 0x29, 0x74, 0x85, 0x66, 0x81,
  687. 0xd3, 0xfa, 0x19, 0x9a, 0xce, 0x46, 0x9f, 0x1d, 0xdb, 0xfd, 0x29, 0x54, 0x45, 0x37, 0x74, 0x05,
  688. 0xef, 0x3e, 0xd4, 0x60, 0xfd, 0x65, 0x99, 0x6f, 0x7d, 0x0e, 0xd5, 0x2b, 0xca, 0x31, 0x7a, 0x05,
  689. 0xd5, 0x15, 0xe5, 0x58, 0xeb, 0x5b, 0x8a, 0x17, 0xb9, 0x9e, 0xcc, 0xb4, 0x7e, 0x33, 0xa0, 0xee,
  690. 0x06, 0x4c, 0xa2, 0x77, 0xab, 0xf5, 0x0b, 0xa8, 0x0a, 0x36, 0x59, 0xeb, 0x41, 0xf9, 0x63, 0x9c,
  691. 0x90, 0x28, 0xc1, 0xe1, 0x88, 0x45, 0x97, 0xeb, 0x14, 0x7b, 0x12, 0x22, 0x08, 0x49, 0x12, 0xe2,
  692. 0x5f, 0xe4, 0xa3, 0x6b, 0x7b, 0x6a, 0x63, 0xfd, 0x65, 0x40, 0x4b, 0xd4, 0x31, 0xc1, 0x7c, 0x14,
  693. 0xfc, 0x38, 0x3c, 0xfe, 0xff, 0xea, 0xf9, 0x0e, 0x1a, 0x6a, 0x14, 0x48, 0xa8, 0xe7, 0xe0, 0xa8,
  694. 0x0c, 0x2e, 0x3b, 0x7b, 0xfa, 0xb5, 0x73, 0x28, 0xd4, 0xff, 0xe7, 0xe6, 0xa8, 0xae, 0x0f, 0xbc,
  695. 0xba, 0x64, 0x38, 0x0d, 0xad, 0x5f, 0x9f, 0x81, 0xa9, 0xaf, 0xe1, 0x10, 0xce, 0x5e, 0xcf, 0x5b,
  696. 0xa0, 0x13, 0xa8, 0x89, 0xf7, 0xc1, 0xe4, 0x48, 0xef, 0x36, 0x0c, 0x0a, 0x68, 0xfd, 0x51, 0x83,
  697. 0xfa, 0x08, 0x33, 0x16, 0x44, 0x18, 0x8d, 0xe1, 0x20, 0xc1, 0xd7, 0x6a, 0x0c, 0x7d, 0xe9, 0xc4,
  698. 0xea, 0x85, 0xf6, 0xed, 0xf2, 0xff, 0x28, 0x76, 0xd1, 0xef, 0xdd, 0x8a, 0xd7, 0x4a, 0x8a, 0xfe,
  699. 0x3f, 0x81, 0x43, 0xc1, 0xb8, 0x12, 0xc6, 0xea, 0xcb, 0xa2, 0xa5, 0x8e, 0xe6, 0xf0, 0xa3, 0x47,
  700. 0x28, 0x73, 0x2b, 0x76, 0x2b, 0x5e, 0x3b, 0xb9, 0xe5, 0xcd, 0x45, 0x8b, 0x2a, 0x35, 0x81, 0x9c,
  701. 0x6d, 0xe3, 0x44, 0x6e, 0xc1, 0xa2, 0xd0, 0xd9, 0x1d, 0x33, 0x51, 0x9d, 0xf8, 0xf0, 0x29, 0x3c,
  702. 0xe3, 0x8b, 0x33, 0xf7, 0xb6, 0x97, 0xa0, 0x6f, 0x01, 0x72, 0x93, 0xd6, 0xbd, 0x78, 0xf9, 0x10,
  703. 0xd7, 0xd6, 0x79, 0xdc, 0x8a, 0xd7, 0xdc, 0xda, 0xb4, 0x30, 0x16, 0x69, 0x0c, 0xfb, 0x65, 0xc6,
  704. 0x9b, 0x33, 0x88, 0xb7, 0xeb, 0x56, 0x94, 0x3d, 0xa0, 0x13, 0x68, 0xcc, 0x03, 0xe6, 0x4b, 0x6c,
  705. 0x5d, 0x62, 0xdf, 0x7b, 0x08, 0xab, 0x9d, 0xc4, 0xad, 0x78, 0xf5, 0xb9, 0x36, 0x95, 0x31, 0x1c,
  706. 0x08, 0xb4, 0xcf, 0x30, 0xf7, 0x63, 0x31, 0xd6, 0x9d, 0xc6, 0xe3, 0xad, 0x2f, 0xda, 0x80, 0x68,
  707. 0xfd, 0xaa, 0x68, 0x0b, 0x23, 0x68, 0x6f, 0x19, 0xc5, 0xfb, 0xeb, 0x34, 0x1f, 0x97, 0xb8, 0x30,
  708. 0x90, 0x42, 0xe2, 0x55, 0xbe, 0x75, 0x6a, 0xb0, 0xc7, 0x96, 0xb1, 0x33, 0xfc, 0xe1, 0x55, 0x44,
  709. 0xf8, 0x7c, 0x39, 0xb5, 0x67, 0x34, 0x1e, 0xe4, 0x54, 0xc5, 0xe5, 0x9d, 0x9f, 0x46, 0xd3, 0x7d,
  710. 0x79, 0x70, 0xfc, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae, 0x4b, 0x4c, 0x2a, 0x34, 0x09, 0x00,
  711. 0x00,
  712. }