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.

374 lines
14 KiB

  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: proto/consensus/walmsgs.proto
  3. package consensus
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. _ "github.com/golang/protobuf/ptypes/duration"
  9. _ "github.com/golang/protobuf/ptypes/timestamp"
  10. types "github.com/tendermint/tendermint/proto/types"
  11. math "math"
  12. time "time"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var _ = proto.Marshal
  16. var _ = fmt.Errorf
  17. var _ = math.Inf
  18. var _ = time.Kitchen
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  24. // MsgInfo are msgs from the reactor which may update the state
  25. type MsgInfo struct {
  26. Msg Message `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg"`
  27. PeerID string `protobuf:"bytes,2,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"`
  28. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  29. XXX_unrecognized []byte `json:"-"`
  30. XXX_sizecache int32 `json:"-"`
  31. }
  32. func (m *MsgInfo) Reset() { *m = MsgInfo{} }
  33. func (m *MsgInfo) String() string { return proto.CompactTextString(m) }
  34. func (*MsgInfo) ProtoMessage() {}
  35. func (*MsgInfo) Descriptor() ([]byte, []int) {
  36. return fileDescriptor_60ad80fa14e37285, []int{0}
  37. }
  38. func (m *MsgInfo) XXX_Unmarshal(b []byte) error {
  39. return xxx_messageInfo_MsgInfo.Unmarshal(m, b)
  40. }
  41. func (m *MsgInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  42. return xxx_messageInfo_MsgInfo.Marshal(b, m, deterministic)
  43. }
  44. func (m *MsgInfo) XXX_Merge(src proto.Message) {
  45. xxx_messageInfo_MsgInfo.Merge(m, src)
  46. }
  47. func (m *MsgInfo) XXX_Size() int {
  48. return xxx_messageInfo_MsgInfo.Size(m)
  49. }
  50. func (m *MsgInfo) XXX_DiscardUnknown() {
  51. xxx_messageInfo_MsgInfo.DiscardUnknown(m)
  52. }
  53. var xxx_messageInfo_MsgInfo proto.InternalMessageInfo
  54. func (m *MsgInfo) GetMsg() Message {
  55. if m != nil {
  56. return m.Msg
  57. }
  58. return Message{}
  59. }
  60. func (m *MsgInfo) GetPeerID() string {
  61. if m != nil {
  62. return m.PeerID
  63. }
  64. return ""
  65. }
  66. // TimeoutInfo internally generated messages which may update the state
  67. type TimeoutInfo struct {
  68. Duration time.Duration `protobuf:"bytes,1,opt,name=duration,proto3,stdduration" json:"duration"`
  69. Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
  70. Round int32 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"`
  71. Step uint32 `protobuf:"varint,4,opt,name=step,proto3" json:"step,omitempty"`
  72. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  73. XXX_unrecognized []byte `json:"-"`
  74. XXX_sizecache int32 `json:"-"`
  75. }
  76. func (m *TimeoutInfo) Reset() { *m = TimeoutInfo{} }
  77. func (m *TimeoutInfo) String() string { return proto.CompactTextString(m) }
  78. func (*TimeoutInfo) ProtoMessage() {}
  79. func (*TimeoutInfo) Descriptor() ([]byte, []int) {
  80. return fileDescriptor_60ad80fa14e37285, []int{1}
  81. }
  82. func (m *TimeoutInfo) XXX_Unmarshal(b []byte) error {
  83. return xxx_messageInfo_TimeoutInfo.Unmarshal(m, b)
  84. }
  85. func (m *TimeoutInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  86. return xxx_messageInfo_TimeoutInfo.Marshal(b, m, deterministic)
  87. }
  88. func (m *TimeoutInfo) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_TimeoutInfo.Merge(m, src)
  90. }
  91. func (m *TimeoutInfo) XXX_Size() int {
  92. return xxx_messageInfo_TimeoutInfo.Size(m)
  93. }
  94. func (m *TimeoutInfo) XXX_DiscardUnknown() {
  95. xxx_messageInfo_TimeoutInfo.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_TimeoutInfo proto.InternalMessageInfo
  98. func (m *TimeoutInfo) GetDuration() time.Duration {
  99. if m != nil {
  100. return m.Duration
  101. }
  102. return 0
  103. }
  104. func (m *TimeoutInfo) GetHeight() int64 {
  105. if m != nil {
  106. return m.Height
  107. }
  108. return 0
  109. }
  110. func (m *TimeoutInfo) GetRound() int32 {
  111. if m != nil {
  112. return m.Round
  113. }
  114. return 0
  115. }
  116. func (m *TimeoutInfo) GetStep() uint32 {
  117. if m != nil {
  118. return m.Step
  119. }
  120. return 0
  121. }
  122. // EndHeightMessage marks the end of the given height inside WAL.
  123. // @internal used by scripts/wal2json util.
  124. type EndHeight struct {
  125. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
  126. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  127. XXX_unrecognized []byte `json:"-"`
  128. XXX_sizecache int32 `json:"-"`
  129. }
  130. func (m *EndHeight) Reset() { *m = EndHeight{} }
  131. func (m *EndHeight) String() string { return proto.CompactTextString(m) }
  132. func (*EndHeight) ProtoMessage() {}
  133. func (*EndHeight) Descriptor() ([]byte, []int) {
  134. return fileDescriptor_60ad80fa14e37285, []int{2}
  135. }
  136. func (m *EndHeight) XXX_Unmarshal(b []byte) error {
  137. return xxx_messageInfo_EndHeight.Unmarshal(m, b)
  138. }
  139. func (m *EndHeight) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  140. return xxx_messageInfo_EndHeight.Marshal(b, m, deterministic)
  141. }
  142. func (m *EndHeight) XXX_Merge(src proto.Message) {
  143. xxx_messageInfo_EndHeight.Merge(m, src)
  144. }
  145. func (m *EndHeight) XXX_Size() int {
  146. return xxx_messageInfo_EndHeight.Size(m)
  147. }
  148. func (m *EndHeight) XXX_DiscardUnknown() {
  149. xxx_messageInfo_EndHeight.DiscardUnknown(m)
  150. }
  151. var xxx_messageInfo_EndHeight proto.InternalMessageInfo
  152. func (m *EndHeight) GetHeight() int64 {
  153. if m != nil {
  154. return m.Height
  155. }
  156. return 0
  157. }
  158. type WALMessage struct {
  159. // Types that are valid to be assigned to Sum:
  160. // *WALMessage_EventDataRoundState
  161. // *WALMessage_MsgInfo
  162. // *WALMessage_TimeoutInfo
  163. // *WALMessage_EndHeight
  164. Sum isWALMessage_Sum `protobuf_oneof:"sum"`
  165. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  166. XXX_unrecognized []byte `json:"-"`
  167. XXX_sizecache int32 `json:"-"`
  168. }
  169. func (m *WALMessage) Reset() { *m = WALMessage{} }
  170. func (m *WALMessage) String() string { return proto.CompactTextString(m) }
  171. func (*WALMessage) ProtoMessage() {}
  172. func (*WALMessage) Descriptor() ([]byte, []int) {
  173. return fileDescriptor_60ad80fa14e37285, []int{3}
  174. }
  175. func (m *WALMessage) XXX_Unmarshal(b []byte) error {
  176. return xxx_messageInfo_WALMessage.Unmarshal(m, b)
  177. }
  178. func (m *WALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  179. return xxx_messageInfo_WALMessage.Marshal(b, m, deterministic)
  180. }
  181. func (m *WALMessage) XXX_Merge(src proto.Message) {
  182. xxx_messageInfo_WALMessage.Merge(m, src)
  183. }
  184. func (m *WALMessage) XXX_Size() int {
  185. return xxx_messageInfo_WALMessage.Size(m)
  186. }
  187. func (m *WALMessage) XXX_DiscardUnknown() {
  188. xxx_messageInfo_WALMessage.DiscardUnknown(m)
  189. }
  190. var xxx_messageInfo_WALMessage proto.InternalMessageInfo
  191. type isWALMessage_Sum interface {
  192. isWALMessage_Sum()
  193. }
  194. type WALMessage_EventDataRoundState struct {
  195. EventDataRoundState *types.EventDataRoundState `protobuf:"bytes,1,opt,name=event_data_round_state,json=eventDataRoundState,proto3,oneof" json:"event_data_round_state,omitempty"`
  196. }
  197. type WALMessage_MsgInfo struct {
  198. MsgInfo *MsgInfo `protobuf:"bytes,2,opt,name=msg_info,json=msgInfo,proto3,oneof" json:"msg_info,omitempty"`
  199. }
  200. type WALMessage_TimeoutInfo struct {
  201. TimeoutInfo *TimeoutInfo `protobuf:"bytes,3,opt,name=timeout_info,json=timeoutInfo,proto3,oneof" json:"timeout_info,omitempty"`
  202. }
  203. type WALMessage_EndHeight struct {
  204. EndHeight *EndHeight `protobuf:"bytes,4,opt,name=end_height,json=endHeight,proto3,oneof" json:"end_height,omitempty"`
  205. }
  206. func (*WALMessage_EventDataRoundState) isWALMessage_Sum() {}
  207. func (*WALMessage_MsgInfo) isWALMessage_Sum() {}
  208. func (*WALMessage_TimeoutInfo) isWALMessage_Sum() {}
  209. func (*WALMessage_EndHeight) isWALMessage_Sum() {}
  210. func (m *WALMessage) GetSum() isWALMessage_Sum {
  211. if m != nil {
  212. return m.Sum
  213. }
  214. return nil
  215. }
  216. func (m *WALMessage) GetEventDataRoundState() *types.EventDataRoundState {
  217. if x, ok := m.GetSum().(*WALMessage_EventDataRoundState); ok {
  218. return x.EventDataRoundState
  219. }
  220. return nil
  221. }
  222. func (m *WALMessage) GetMsgInfo() *MsgInfo {
  223. if x, ok := m.GetSum().(*WALMessage_MsgInfo); ok {
  224. return x.MsgInfo
  225. }
  226. return nil
  227. }
  228. func (m *WALMessage) GetTimeoutInfo() *TimeoutInfo {
  229. if x, ok := m.GetSum().(*WALMessage_TimeoutInfo); ok {
  230. return x.TimeoutInfo
  231. }
  232. return nil
  233. }
  234. func (m *WALMessage) GetEndHeight() *EndHeight {
  235. if x, ok := m.GetSum().(*WALMessage_EndHeight); ok {
  236. return x.EndHeight
  237. }
  238. return nil
  239. }
  240. // XXX_OneofWrappers is for the internal use of the proto package.
  241. func (*WALMessage) XXX_OneofWrappers() []interface{} {
  242. return []interface{}{
  243. (*WALMessage_EventDataRoundState)(nil),
  244. (*WALMessage_MsgInfo)(nil),
  245. (*WALMessage_TimeoutInfo)(nil),
  246. (*WALMessage_EndHeight)(nil),
  247. }
  248. }
  249. // TimedWALMessage wraps WALMessage and adds Time for debugging purposes.
  250. type TimedWALMessage struct {
  251. Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time"`
  252. Msg *WALMessage `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
  253. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  254. XXX_unrecognized []byte `json:"-"`
  255. XXX_sizecache int32 `json:"-"`
  256. }
  257. func (m *TimedWALMessage) Reset() { *m = TimedWALMessage{} }
  258. func (m *TimedWALMessage) String() string { return proto.CompactTextString(m) }
  259. func (*TimedWALMessage) ProtoMessage() {}
  260. func (*TimedWALMessage) Descriptor() ([]byte, []int) {
  261. return fileDescriptor_60ad80fa14e37285, []int{4}
  262. }
  263. func (m *TimedWALMessage) XXX_Unmarshal(b []byte) error {
  264. return xxx_messageInfo_TimedWALMessage.Unmarshal(m, b)
  265. }
  266. func (m *TimedWALMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  267. return xxx_messageInfo_TimedWALMessage.Marshal(b, m, deterministic)
  268. }
  269. func (m *TimedWALMessage) XXX_Merge(src proto.Message) {
  270. xxx_messageInfo_TimedWALMessage.Merge(m, src)
  271. }
  272. func (m *TimedWALMessage) XXX_Size() int {
  273. return xxx_messageInfo_TimedWALMessage.Size(m)
  274. }
  275. func (m *TimedWALMessage) XXX_DiscardUnknown() {
  276. xxx_messageInfo_TimedWALMessage.DiscardUnknown(m)
  277. }
  278. var xxx_messageInfo_TimedWALMessage proto.InternalMessageInfo
  279. func (m *TimedWALMessage) GetTime() time.Time {
  280. if m != nil {
  281. return m.Time
  282. }
  283. return time.Time{}
  284. }
  285. func (m *TimedWALMessage) GetMsg() *WALMessage {
  286. if m != nil {
  287. return m.Msg
  288. }
  289. return nil
  290. }
  291. func init() {
  292. proto.RegisterType((*MsgInfo)(nil), "tendermint.proto.consensus.MsgInfo")
  293. proto.RegisterType((*TimeoutInfo)(nil), "tendermint.proto.consensus.TimeoutInfo")
  294. proto.RegisterType((*EndHeight)(nil), "tendermint.proto.consensus.EndHeight")
  295. proto.RegisterType((*WALMessage)(nil), "tendermint.proto.consensus.WALMessage")
  296. proto.RegisterType((*TimedWALMessage)(nil), "tendermint.proto.consensus.TimedWALMessage")
  297. }
  298. func init() { proto.RegisterFile("proto/consensus/walmsgs.proto", fileDescriptor_60ad80fa14e37285) }
  299. var fileDescriptor_60ad80fa14e37285 = []byte{
  300. // 528 bytes of a gzipped FileDescriptorProto
  301. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x53, 0xcd, 0x8a, 0x13, 0x41,
  302. 0x10, 0xce, 0x6c, 0xb2, 0xf9, 0xa9, 0x28, 0xc2, 0x28, 0x4b, 0x1c, 0xd0, 0x84, 0x04, 0xd7, 0x80,
  303. 0x30, 0x23, 0xeb, 0x65, 0xc1, 0x83, 0x1a, 0xb2, 0x92, 0xc0, 0x2e, 0x48, 0xbb, 0x20, 0x78, 0x19,
  304. 0x26, 0x3b, 0x95, 0xce, 0xe0, 0x76, 0xf7, 0x30, 0x5d, 0xa3, 0xec, 0x03, 0x78, 0xdf, 0xa3, 0x8f,
  305. 0xe4, 0xcd, 0x37, 0x58, 0xc1, 0x27, 0x91, 0xe9, 0x9e, 0xfc, 0x90, 0x60, 0xbc, 0x75, 0x57, 0xf5,
  306. 0xf7, 0x7d, 0x55, 0xf5, 0x55, 0xc3, 0x93, 0x34, 0x53, 0xa4, 0x82, 0x2b, 0x25, 0x35, 0x4a, 0x9d,
  307. 0xeb, 0xe0, 0x5b, 0x74, 0x2d, 0x34, 0xd7, 0xbe, 0x89, 0xbb, 0x1e, 0xa1, 0x8c, 0x31, 0x13, 0x89,
  308. 0x24, 0x1b, 0xf1, 0x57, 0x2f, 0xbd, 0x63, 0x5a, 0x24, 0x59, 0x1c, 0xa6, 0x51, 0x46, 0x37, 0x81,
  309. 0xa5, 0xe1, 0x8a, 0xab, 0xf5, 0xc9, 0x22, 0x3c, 0x6f, 0x5b, 0x62, 0xcd, 0xef, 0x75, 0x6c, 0x8e,
  310. 0x6e, 0x52, 0xd4, 0x01, 0x7e, 0x45, 0x49, 0xcb, 0xcc, 0x53, 0xae, 0x14, 0xbf, 0x46, 0x4b, 0x3c,
  311. 0xcb, 0xe7, 0x41, 0x9c, 0x67, 0x11, 0x25, 0x4a, 0x96, 0xf9, 0xee, 0x76, 0x9e, 0x12, 0x81, 0x9a,
  312. 0x22, 0x91, 0xda, 0x07, 0xfd, 0x2f, 0xd0, 0xb8, 0xd0, 0x7c, 0x2a, 0xe7, 0xca, 0x7d, 0x0d, 0x55,
  313. 0xa1, 0x79, 0xc7, 0xe9, 0x39, 0xc3, 0xf6, 0xc9, 0xc0, 0xff, 0x77, 0x4f, 0xfe, 0x05, 0x6a, 0x1d,
  314. 0x71, 0x1c, 0xd5, 0x7e, 0xde, 0x75, 0x2b, 0xac, 0x40, 0xb9, 0x03, 0x68, 0xa4, 0x88, 0x59, 0x98,
  315. 0xc4, 0x9d, 0x83, 0x9e, 0x33, 0x6c, 0x8d, 0xe0, 0xcf, 0x5d, 0xb7, 0xfe, 0x01, 0x31, 0x9b, 0x8e,
  316. 0x59, 0xbd, 0x48, 0x4d, 0xe3, 0xfe, 0xad, 0x03, 0xed, 0xcb, 0x44, 0xa0, 0xca, 0xc9, 0x28, 0xbe,
  317. 0x81, 0xe6, 0xb2, 0xde, 0x52, 0xf6, 0xb1, 0x6f, 0x0b, 0xf6, 0x97, 0x05, 0xfb, 0xe3, 0xf2, 0xc1,
  318. 0xa8, 0x59, 0x88, 0xfd, 0xf8, 0xdd, 0x75, 0xd8, 0x0a, 0xe4, 0x1e, 0x41, 0x7d, 0x81, 0x09, 0x5f,
  319. 0x90, 0x11, 0xad, 0xb2, 0xf2, 0xe6, 0x3e, 0x82, 0xc3, 0x4c, 0xe5, 0x32, 0xee, 0x54, 0x7b, 0xce,
  320. 0xf0, 0x90, 0xd9, 0x8b, 0xeb, 0x42, 0x4d, 0x13, 0xa6, 0x9d, 0x5a, 0xcf, 0x19, 0xde, 0x67, 0xe6,
  321. 0xdc, 0x1f, 0x40, 0xeb, 0x4c, 0xc6, 0x13, 0x0b, 0x5b, 0xd3, 0x39, 0x9b, 0x74, 0xfd, 0x5f, 0x07,
  322. 0x00, 0x9f, 0xde, 0x9d, 0x97, 0x6d, 0xbb, 0x33, 0x38, 0x32, 0x26, 0x84, 0x71, 0x44, 0x51, 0x68,
  323. 0xb8, 0x43, 0x4d, 0x11, 0x61, 0xd9, 0xc4, 0x8b, 0xdd, 0xd9, 0x19, 0xeb, 0xfc, 0xb3, 0x02, 0x35,
  324. 0x8e, 0x28, 0x62, 0x05, 0xe6, 0x63, 0x01, 0x99, 0x54, 0xd8, 0x43, 0xdc, 0x0d, 0xbb, 0x6f, 0xa1,
  325. 0x29, 0x34, 0x0f, 0x13, 0x39, 0x57, 0xa6, 0xb7, 0xff, 0x39, 0x62, 0x3d, 0x9c, 0x54, 0x58, 0x43,
  326. 0x94, 0x76, 0x9e, 0xc3, 0x3d, 0xb2, 0xb3, 0xb6, 0x2c, 0x55, 0xc3, 0xf2, 0x7c, 0x1f, 0xcb, 0x86,
  327. 0x37, 0x93, 0x0a, 0x6b, 0xd3, 0x86, 0x55, 0xef, 0x01, 0x50, 0xc6, 0x61, 0x39, 0x9e, 0x9a, 0xe1,
  328. 0x7a, 0xb6, 0x8f, 0x6b, 0x35, 0xd5, 0x49, 0x85, 0xb5, 0x70, 0x79, 0x19, 0x1d, 0x42, 0x55, 0xe7,
  329. 0xa2, 0xff, 0xdd, 0x81, 0x07, 0x85, 0x5a, 0xbc, 0x31, 0xd6, 0x53, 0xa8, 0x15, 0x8a, 0xe5, 0x10,
  330. 0xbd, 0x9d, 0x4d, 0xb8, 0x5c, 0xae, 0xae, 0x5d, 0x85, 0xdb, 0x62, 0x15, 0x0c, 0xc2, 0x3d, 0xb5,
  331. 0x9b, 0x6b, 0xe7, 0x74, 0xbc, 0xaf, 0xaa, 0xb5, 0x9c, 0x59, 0xdb, 0xd1, 0xc9, 0xe7, 0x97, 0x3c,
  332. 0xa1, 0x45, 0x3e, 0xf3, 0xaf, 0x94, 0x08, 0xd6, 0xc0, 0xcd, 0xe3, 0xd6, 0xc7, 0x9c, 0xd5, 0x4d,
  333. 0xe0, 0xd5, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x55, 0x7e, 0x02, 0x98, 0x15, 0x04, 0x00, 0x00,
  334. }