raft.pb.go 45 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838
  1. // Code generated by protoc-gen-gogo.
  2. // source: raft.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package raftpb is a generated protocol buffer package.
  6. It is generated from these files:
  7. raft.proto
  8. It has these top-level messages:
  9. Entry
  10. SnapshotMetadata
  11. Snapshot
  12. Message
  13. HardState
  14. ConfState
  15. ConfChange
  16. */
  17. package raftpb
  18. import (
  19. "fmt"
  20. proto "github.com/gogo/protobuf/proto"
  21. math "math"
  22. )
  23. import io "io"
  24. // Reference imports to suppress errors if they are not otherwise used.
  25. var _ = proto.Marshal
  26. var _ = fmt.Errorf
  27. var _ = math.Inf
  28. // This is a compile-time assertion to ensure that this generated file
  29. // is compatible with the proto package it is being compiled against.
  30. const _ = proto.GoGoProtoPackageIsVersion1
  31. type EntryType int32
  32. const (
  33. EntryNormal EntryType = 0
  34. EntryConfChange EntryType = 1
  35. )
  36. var EntryType_name = map[int32]string{
  37. 0: "EntryNormal",
  38. 1: "EntryConfChange",
  39. }
  40. var EntryType_value = map[string]int32{
  41. "EntryNormal": 0,
  42. "EntryConfChange": 1,
  43. }
  44. func (x EntryType) Enum() *EntryType {
  45. p := new(EntryType)
  46. *p = x
  47. return p
  48. }
  49. func (x EntryType) String() string {
  50. return proto.EnumName(EntryType_name, int32(x))
  51. }
  52. func (x *EntryType) UnmarshalJSON(data []byte) error {
  53. value, err := proto.UnmarshalJSONEnum(EntryType_value, data, "EntryType")
  54. if err != nil {
  55. return err
  56. }
  57. *x = EntryType(value)
  58. return nil
  59. }
  60. func (EntryType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaft, []int{0} }
  61. type MessageType int32
  62. const (
  63. MsgHup MessageType = 0
  64. MsgBeat MessageType = 1
  65. MsgProp MessageType = 2
  66. MsgApp MessageType = 3
  67. MsgAppResp MessageType = 4
  68. MsgVote MessageType = 5
  69. MsgVoteResp MessageType = 6
  70. MsgSnap MessageType = 7
  71. MsgHeartbeat MessageType = 8
  72. MsgHeartbeatResp MessageType = 9
  73. MsgUnreachable MessageType = 10
  74. MsgSnapStatus MessageType = 11
  75. MsgCheckQuorum MessageType = 12
  76. MsgTransferLeader MessageType = 13
  77. MsgTimeoutNow MessageType = 14
  78. )
  79. var MessageType_name = map[int32]string{
  80. 0: "MsgHup",
  81. 1: "MsgBeat",
  82. 2: "MsgProp",
  83. 3: "MsgApp",
  84. 4: "MsgAppResp",
  85. 5: "MsgVote",
  86. 6: "MsgVoteResp",
  87. 7: "MsgSnap",
  88. 8: "MsgHeartbeat",
  89. 9: "MsgHeartbeatResp",
  90. 10: "MsgUnreachable",
  91. 11: "MsgSnapStatus",
  92. 12: "MsgCheckQuorum",
  93. 13: "MsgTransferLeader",
  94. 14: "MsgTimeoutNow",
  95. }
  96. var MessageType_value = map[string]int32{
  97. "MsgHup": 0,
  98. "MsgBeat": 1,
  99. "MsgProp": 2,
  100. "MsgApp": 3,
  101. "MsgAppResp": 4,
  102. "MsgVote": 5,
  103. "MsgVoteResp": 6,
  104. "MsgSnap": 7,
  105. "MsgHeartbeat": 8,
  106. "MsgHeartbeatResp": 9,
  107. "MsgUnreachable": 10,
  108. "MsgSnapStatus": 11,
  109. "MsgCheckQuorum": 12,
  110. "MsgTransferLeader": 13,
  111. "MsgTimeoutNow": 14,
  112. }
  113. func (x MessageType) Enum() *MessageType {
  114. p := new(MessageType)
  115. *p = x
  116. return p
  117. }
  118. func (x MessageType) String() string {
  119. return proto.EnumName(MessageType_name, int32(x))
  120. }
  121. func (x *MessageType) UnmarshalJSON(data []byte) error {
  122. value, err := proto.UnmarshalJSONEnum(MessageType_value, data, "MessageType")
  123. if err != nil {
  124. return err
  125. }
  126. *x = MessageType(value)
  127. return nil
  128. }
  129. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaft, []int{1} }
  130. type ConfChangeType int32
  131. const (
  132. ConfChangeAddNode ConfChangeType = 0
  133. ConfChangeRemoveNode ConfChangeType = 1
  134. ConfChangeUpdateNode ConfChangeType = 2
  135. )
  136. var ConfChangeType_name = map[int32]string{
  137. 0: "ConfChangeAddNode",
  138. 1: "ConfChangeRemoveNode",
  139. 2: "ConfChangeUpdateNode",
  140. }
  141. var ConfChangeType_value = map[string]int32{
  142. "ConfChangeAddNode": 0,
  143. "ConfChangeRemoveNode": 1,
  144. "ConfChangeUpdateNode": 2,
  145. }
  146. func (x ConfChangeType) Enum() *ConfChangeType {
  147. p := new(ConfChangeType)
  148. *p = x
  149. return p
  150. }
  151. func (x ConfChangeType) String() string {
  152. return proto.EnumName(ConfChangeType_name, int32(x))
  153. }
  154. func (x *ConfChangeType) UnmarshalJSON(data []byte) error {
  155. value, err := proto.UnmarshalJSONEnum(ConfChangeType_value, data, "ConfChangeType")
  156. if err != nil {
  157. return err
  158. }
  159. *x = ConfChangeType(value)
  160. return nil
  161. }
  162. func (ConfChangeType) EnumDescriptor() ([]byte, []int) { return fileDescriptorRaft, []int{2} }
  163. type Entry struct {
  164. Type EntryType `protobuf:"varint,1,opt,name=Type,json=type,enum=raftpb.EntryType" json:"Type"`
  165. Term uint64 `protobuf:"varint,2,opt,name=Term,json=term" json:"Term"`
  166. Index uint64 `protobuf:"varint,3,opt,name=Index,json=index" json:"Index"`
  167. Data []byte `protobuf:"bytes,4,opt,name=Data,json=data" json:"Data,omitempty"`
  168. XXX_unrecognized []byte `json:"-"`
  169. }
  170. func (m *Entry) Reset() { *m = Entry{} }
  171. func (m *Entry) String() string { return proto.CompactTextString(m) }
  172. func (*Entry) ProtoMessage() {}
  173. func (*Entry) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{0} }
  174. type SnapshotMetadata struct {
  175. ConfState ConfState `protobuf:"bytes,1,opt,name=conf_state,json=confState" json:"conf_state"`
  176. Index uint64 `protobuf:"varint,2,opt,name=index" json:"index"`
  177. Term uint64 `protobuf:"varint,3,opt,name=term" json:"term"`
  178. XXX_unrecognized []byte `json:"-"`
  179. }
  180. func (m *SnapshotMetadata) Reset() { *m = SnapshotMetadata{} }
  181. func (m *SnapshotMetadata) String() string { return proto.CompactTextString(m) }
  182. func (*SnapshotMetadata) ProtoMessage() {}
  183. func (*SnapshotMetadata) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{1} }
  184. type Snapshot struct {
  185. Data []byte `protobuf:"bytes,1,opt,name=data" json:"data,omitempty"`
  186. Metadata SnapshotMetadata `protobuf:"bytes,2,opt,name=metadata" json:"metadata"`
  187. XXX_unrecognized []byte `json:"-"`
  188. }
  189. func (m *Snapshot) Reset() { *m = Snapshot{} }
  190. func (m *Snapshot) String() string { return proto.CompactTextString(m) }
  191. func (*Snapshot) ProtoMessage() {}
  192. func (*Snapshot) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{2} }
  193. type Message struct {
  194. Type MessageType `protobuf:"varint,1,opt,name=type,enum=raftpb.MessageType" json:"type"`
  195. To uint64 `protobuf:"varint,2,opt,name=to" json:"to"`
  196. From uint64 `protobuf:"varint,3,opt,name=from" json:"from"`
  197. Term uint64 `protobuf:"varint,4,opt,name=term" json:"term"`
  198. LogTerm uint64 `protobuf:"varint,5,opt,name=logTerm" json:"logTerm"`
  199. Index uint64 `protobuf:"varint,6,opt,name=index" json:"index"`
  200. Entries []Entry `protobuf:"bytes,7,rep,name=entries" json:"entries"`
  201. Commit uint64 `protobuf:"varint,8,opt,name=commit" json:"commit"`
  202. Snapshot Snapshot `protobuf:"bytes,9,opt,name=snapshot" json:"snapshot"`
  203. Reject bool `protobuf:"varint,10,opt,name=reject" json:"reject"`
  204. RejectHint uint64 `protobuf:"varint,11,opt,name=rejectHint" json:"rejectHint"`
  205. XXX_unrecognized []byte `json:"-"`
  206. }
  207. func (m *Message) Reset() { *m = Message{} }
  208. func (m *Message) String() string { return proto.CompactTextString(m) }
  209. func (*Message) ProtoMessage() {}
  210. func (*Message) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{3} }
  211. type HardState struct {
  212. Term uint64 `protobuf:"varint,1,opt,name=term" json:"term"`
  213. Vote uint64 `protobuf:"varint,2,opt,name=vote" json:"vote"`
  214. Commit uint64 `protobuf:"varint,3,opt,name=commit" json:"commit"`
  215. XXX_unrecognized []byte `json:"-"`
  216. }
  217. func (m *HardState) Reset() { *m = HardState{} }
  218. func (m *HardState) String() string { return proto.CompactTextString(m) }
  219. func (*HardState) ProtoMessage() {}
  220. func (*HardState) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{4} }
  221. type ConfState struct {
  222. Nodes []uint64 `protobuf:"varint,1,rep,name=nodes" json:"nodes,omitempty"`
  223. XXX_unrecognized []byte `json:"-"`
  224. }
  225. func (m *ConfState) Reset() { *m = ConfState{} }
  226. func (m *ConfState) String() string { return proto.CompactTextString(m) }
  227. func (*ConfState) ProtoMessage() {}
  228. func (*ConfState) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{5} }
  229. type ConfChange struct {
  230. ID uint64 `protobuf:"varint,1,opt,name=ID,json=iD" json:"ID"`
  231. Type ConfChangeType `protobuf:"varint,2,opt,name=Type,json=type,enum=raftpb.ConfChangeType" json:"Type"`
  232. NodeID uint64 `protobuf:"varint,3,opt,name=NodeID,json=nodeID" json:"NodeID"`
  233. Context []byte `protobuf:"bytes,4,opt,name=Context,json=context" json:"Context,omitempty"`
  234. XXX_unrecognized []byte `json:"-"`
  235. }
  236. func (m *ConfChange) Reset() { *m = ConfChange{} }
  237. func (m *ConfChange) String() string { return proto.CompactTextString(m) }
  238. func (*ConfChange) ProtoMessage() {}
  239. func (*ConfChange) Descriptor() ([]byte, []int) { return fileDescriptorRaft, []int{6} }
  240. func init() {
  241. proto.RegisterType((*Entry)(nil), "raftpb.Entry")
  242. proto.RegisterType((*SnapshotMetadata)(nil), "raftpb.SnapshotMetadata")
  243. proto.RegisterType((*Snapshot)(nil), "raftpb.Snapshot")
  244. proto.RegisterType((*Message)(nil), "raftpb.Message")
  245. proto.RegisterType((*HardState)(nil), "raftpb.HardState")
  246. proto.RegisterType((*ConfState)(nil), "raftpb.ConfState")
  247. proto.RegisterType((*ConfChange)(nil), "raftpb.ConfChange")
  248. proto.RegisterEnum("raftpb.EntryType", EntryType_name, EntryType_value)
  249. proto.RegisterEnum("raftpb.MessageType", MessageType_name, MessageType_value)
  250. proto.RegisterEnum("raftpb.ConfChangeType", ConfChangeType_name, ConfChangeType_value)
  251. }
  252. func (m *Entry) Marshal() (data []byte, err error) {
  253. size := m.Size()
  254. data = make([]byte, size)
  255. n, err := m.MarshalTo(data)
  256. if err != nil {
  257. return nil, err
  258. }
  259. return data[:n], nil
  260. }
  261. func (m *Entry) MarshalTo(data []byte) (int, error) {
  262. var i int
  263. _ = i
  264. var l int
  265. _ = l
  266. data[i] = 0x8
  267. i++
  268. i = encodeVarintRaft(data, i, uint64(m.Type))
  269. data[i] = 0x10
  270. i++
  271. i = encodeVarintRaft(data, i, uint64(m.Term))
  272. data[i] = 0x18
  273. i++
  274. i = encodeVarintRaft(data, i, uint64(m.Index))
  275. if m.Data != nil {
  276. data[i] = 0x22
  277. i++
  278. i = encodeVarintRaft(data, i, uint64(len(m.Data)))
  279. i += copy(data[i:], m.Data)
  280. }
  281. if m.XXX_unrecognized != nil {
  282. i += copy(data[i:], m.XXX_unrecognized)
  283. }
  284. return i, nil
  285. }
  286. func (m *SnapshotMetadata) Marshal() (data []byte, err error) {
  287. size := m.Size()
  288. data = make([]byte, size)
  289. n, err := m.MarshalTo(data)
  290. if err != nil {
  291. return nil, err
  292. }
  293. return data[:n], nil
  294. }
  295. func (m *SnapshotMetadata) MarshalTo(data []byte) (int, error) {
  296. var i int
  297. _ = i
  298. var l int
  299. _ = l
  300. data[i] = 0xa
  301. i++
  302. i = encodeVarintRaft(data, i, uint64(m.ConfState.Size()))
  303. n1, err := m.ConfState.MarshalTo(data[i:])
  304. if err != nil {
  305. return 0, err
  306. }
  307. i += n1
  308. data[i] = 0x10
  309. i++
  310. i = encodeVarintRaft(data, i, uint64(m.Index))
  311. data[i] = 0x18
  312. i++
  313. i = encodeVarintRaft(data, i, uint64(m.Term))
  314. if m.XXX_unrecognized != nil {
  315. i += copy(data[i:], m.XXX_unrecognized)
  316. }
  317. return i, nil
  318. }
  319. func (m *Snapshot) Marshal() (data []byte, err error) {
  320. size := m.Size()
  321. data = make([]byte, size)
  322. n, err := m.MarshalTo(data)
  323. if err != nil {
  324. return nil, err
  325. }
  326. return data[:n], nil
  327. }
  328. func (m *Snapshot) MarshalTo(data []byte) (int, error) {
  329. var i int
  330. _ = i
  331. var l int
  332. _ = l
  333. if m.Data != nil {
  334. data[i] = 0xa
  335. i++
  336. i = encodeVarintRaft(data, i, uint64(len(m.Data)))
  337. i += copy(data[i:], m.Data)
  338. }
  339. data[i] = 0x12
  340. i++
  341. i = encodeVarintRaft(data, i, uint64(m.Metadata.Size()))
  342. n2, err := m.Metadata.MarshalTo(data[i:])
  343. if err != nil {
  344. return 0, err
  345. }
  346. i += n2
  347. if m.XXX_unrecognized != nil {
  348. i += copy(data[i:], m.XXX_unrecognized)
  349. }
  350. return i, nil
  351. }
  352. func (m *Message) Marshal() (data []byte, err error) {
  353. size := m.Size()
  354. data = make([]byte, size)
  355. n, err := m.MarshalTo(data)
  356. if err != nil {
  357. return nil, err
  358. }
  359. return data[:n], nil
  360. }
  361. func (m *Message) MarshalTo(data []byte) (int, error) {
  362. var i int
  363. _ = i
  364. var l int
  365. _ = l
  366. data[i] = 0x8
  367. i++
  368. i = encodeVarintRaft(data, i, uint64(m.Type))
  369. data[i] = 0x10
  370. i++
  371. i = encodeVarintRaft(data, i, uint64(m.To))
  372. data[i] = 0x18
  373. i++
  374. i = encodeVarintRaft(data, i, uint64(m.From))
  375. data[i] = 0x20
  376. i++
  377. i = encodeVarintRaft(data, i, uint64(m.Term))
  378. data[i] = 0x28
  379. i++
  380. i = encodeVarintRaft(data, i, uint64(m.LogTerm))
  381. data[i] = 0x30
  382. i++
  383. i = encodeVarintRaft(data, i, uint64(m.Index))
  384. if len(m.Entries) > 0 {
  385. for _, msg := range m.Entries {
  386. data[i] = 0x3a
  387. i++
  388. i = encodeVarintRaft(data, i, uint64(msg.Size()))
  389. n, err := msg.MarshalTo(data[i:])
  390. if err != nil {
  391. return 0, err
  392. }
  393. i += n
  394. }
  395. }
  396. data[i] = 0x40
  397. i++
  398. i = encodeVarintRaft(data, i, uint64(m.Commit))
  399. data[i] = 0x4a
  400. i++
  401. i = encodeVarintRaft(data, i, uint64(m.Snapshot.Size()))
  402. n3, err := m.Snapshot.MarshalTo(data[i:])
  403. if err != nil {
  404. return 0, err
  405. }
  406. i += n3
  407. data[i] = 0x50
  408. i++
  409. if m.Reject {
  410. data[i] = 1
  411. } else {
  412. data[i] = 0
  413. }
  414. i++
  415. data[i] = 0x58
  416. i++
  417. i = encodeVarintRaft(data, i, uint64(m.RejectHint))
  418. if m.XXX_unrecognized != nil {
  419. i += copy(data[i:], m.XXX_unrecognized)
  420. }
  421. return i, nil
  422. }
  423. func (m *HardState) Marshal() (data []byte, err error) {
  424. size := m.Size()
  425. data = make([]byte, size)
  426. n, err := m.MarshalTo(data)
  427. if err != nil {
  428. return nil, err
  429. }
  430. return data[:n], nil
  431. }
  432. func (m *HardState) MarshalTo(data []byte) (int, error) {
  433. var i int
  434. _ = i
  435. var l int
  436. _ = l
  437. data[i] = 0x8
  438. i++
  439. i = encodeVarintRaft(data, i, uint64(m.Term))
  440. data[i] = 0x10
  441. i++
  442. i = encodeVarintRaft(data, i, uint64(m.Vote))
  443. data[i] = 0x18
  444. i++
  445. i = encodeVarintRaft(data, i, uint64(m.Commit))
  446. if m.XXX_unrecognized != nil {
  447. i += copy(data[i:], m.XXX_unrecognized)
  448. }
  449. return i, nil
  450. }
  451. func (m *ConfState) Marshal() (data []byte, err error) {
  452. size := m.Size()
  453. data = make([]byte, size)
  454. n, err := m.MarshalTo(data)
  455. if err != nil {
  456. return nil, err
  457. }
  458. return data[:n], nil
  459. }
  460. func (m *ConfState) MarshalTo(data []byte) (int, error) {
  461. var i int
  462. _ = i
  463. var l int
  464. _ = l
  465. if len(m.Nodes) > 0 {
  466. for _, num := range m.Nodes {
  467. data[i] = 0x8
  468. i++
  469. i = encodeVarintRaft(data, i, uint64(num))
  470. }
  471. }
  472. if m.XXX_unrecognized != nil {
  473. i += copy(data[i:], m.XXX_unrecognized)
  474. }
  475. return i, nil
  476. }
  477. func (m *ConfChange) Marshal() (data []byte, err error) {
  478. size := m.Size()
  479. data = make([]byte, size)
  480. n, err := m.MarshalTo(data)
  481. if err != nil {
  482. return nil, err
  483. }
  484. return data[:n], nil
  485. }
  486. func (m *ConfChange) MarshalTo(data []byte) (int, error) {
  487. var i int
  488. _ = i
  489. var l int
  490. _ = l
  491. data[i] = 0x8
  492. i++
  493. i = encodeVarintRaft(data, i, uint64(m.ID))
  494. data[i] = 0x10
  495. i++
  496. i = encodeVarintRaft(data, i, uint64(m.Type))
  497. data[i] = 0x18
  498. i++
  499. i = encodeVarintRaft(data, i, uint64(m.NodeID))
  500. if m.Context != nil {
  501. data[i] = 0x22
  502. i++
  503. i = encodeVarintRaft(data, i, uint64(len(m.Context)))
  504. i += copy(data[i:], m.Context)
  505. }
  506. if m.XXX_unrecognized != nil {
  507. i += copy(data[i:], m.XXX_unrecognized)
  508. }
  509. return i, nil
  510. }
  511. func encodeFixed64Raft(data []byte, offset int, v uint64) int {
  512. data[offset] = uint8(v)
  513. data[offset+1] = uint8(v >> 8)
  514. data[offset+2] = uint8(v >> 16)
  515. data[offset+3] = uint8(v >> 24)
  516. data[offset+4] = uint8(v >> 32)
  517. data[offset+5] = uint8(v >> 40)
  518. data[offset+6] = uint8(v >> 48)
  519. data[offset+7] = uint8(v >> 56)
  520. return offset + 8
  521. }
  522. func encodeFixed32Raft(data []byte, offset int, v uint32) int {
  523. data[offset] = uint8(v)
  524. data[offset+1] = uint8(v >> 8)
  525. data[offset+2] = uint8(v >> 16)
  526. data[offset+3] = uint8(v >> 24)
  527. return offset + 4
  528. }
  529. func encodeVarintRaft(data []byte, offset int, v uint64) int {
  530. for v >= 1<<7 {
  531. data[offset] = uint8(v&0x7f | 0x80)
  532. v >>= 7
  533. offset++
  534. }
  535. data[offset] = uint8(v)
  536. return offset + 1
  537. }
  538. func (m *Entry) Size() (n int) {
  539. var l int
  540. _ = l
  541. n += 1 + sovRaft(uint64(m.Type))
  542. n += 1 + sovRaft(uint64(m.Term))
  543. n += 1 + sovRaft(uint64(m.Index))
  544. if m.Data != nil {
  545. l = len(m.Data)
  546. n += 1 + l + sovRaft(uint64(l))
  547. }
  548. if m.XXX_unrecognized != nil {
  549. n += len(m.XXX_unrecognized)
  550. }
  551. return n
  552. }
  553. func (m *SnapshotMetadata) Size() (n int) {
  554. var l int
  555. _ = l
  556. l = m.ConfState.Size()
  557. n += 1 + l + sovRaft(uint64(l))
  558. n += 1 + sovRaft(uint64(m.Index))
  559. n += 1 + sovRaft(uint64(m.Term))
  560. if m.XXX_unrecognized != nil {
  561. n += len(m.XXX_unrecognized)
  562. }
  563. return n
  564. }
  565. func (m *Snapshot) Size() (n int) {
  566. var l int
  567. _ = l
  568. if m.Data != nil {
  569. l = len(m.Data)
  570. n += 1 + l + sovRaft(uint64(l))
  571. }
  572. l = m.Metadata.Size()
  573. n += 1 + l + sovRaft(uint64(l))
  574. if m.XXX_unrecognized != nil {
  575. n += len(m.XXX_unrecognized)
  576. }
  577. return n
  578. }
  579. func (m *Message) Size() (n int) {
  580. var l int
  581. _ = l
  582. n += 1 + sovRaft(uint64(m.Type))
  583. n += 1 + sovRaft(uint64(m.To))
  584. n += 1 + sovRaft(uint64(m.From))
  585. n += 1 + sovRaft(uint64(m.Term))
  586. n += 1 + sovRaft(uint64(m.LogTerm))
  587. n += 1 + sovRaft(uint64(m.Index))
  588. if len(m.Entries) > 0 {
  589. for _, e := range m.Entries {
  590. l = e.Size()
  591. n += 1 + l + sovRaft(uint64(l))
  592. }
  593. }
  594. n += 1 + sovRaft(uint64(m.Commit))
  595. l = m.Snapshot.Size()
  596. n += 1 + l + sovRaft(uint64(l))
  597. n += 2
  598. n += 1 + sovRaft(uint64(m.RejectHint))
  599. if m.XXX_unrecognized != nil {
  600. n += len(m.XXX_unrecognized)
  601. }
  602. return n
  603. }
  604. func (m *HardState) Size() (n int) {
  605. var l int
  606. _ = l
  607. n += 1 + sovRaft(uint64(m.Term))
  608. n += 1 + sovRaft(uint64(m.Vote))
  609. n += 1 + sovRaft(uint64(m.Commit))
  610. if m.XXX_unrecognized != nil {
  611. n += len(m.XXX_unrecognized)
  612. }
  613. return n
  614. }
  615. func (m *ConfState) Size() (n int) {
  616. var l int
  617. _ = l
  618. if len(m.Nodes) > 0 {
  619. for _, e := range m.Nodes {
  620. n += 1 + sovRaft(uint64(e))
  621. }
  622. }
  623. if m.XXX_unrecognized != nil {
  624. n += len(m.XXX_unrecognized)
  625. }
  626. return n
  627. }
  628. func (m *ConfChange) Size() (n int) {
  629. var l int
  630. _ = l
  631. n += 1 + sovRaft(uint64(m.ID))
  632. n += 1 + sovRaft(uint64(m.Type))
  633. n += 1 + sovRaft(uint64(m.NodeID))
  634. if m.Context != nil {
  635. l = len(m.Context)
  636. n += 1 + l + sovRaft(uint64(l))
  637. }
  638. if m.XXX_unrecognized != nil {
  639. n += len(m.XXX_unrecognized)
  640. }
  641. return n
  642. }
  643. func sovRaft(x uint64) (n int) {
  644. for {
  645. n++
  646. x >>= 7
  647. if x == 0 {
  648. break
  649. }
  650. }
  651. return n
  652. }
  653. func sozRaft(x uint64) (n int) {
  654. return sovRaft(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  655. }
  656. func (m *Entry) Unmarshal(data []byte) error {
  657. l := len(data)
  658. iNdEx := 0
  659. for iNdEx < l {
  660. preIndex := iNdEx
  661. var wire uint64
  662. for shift := uint(0); ; shift += 7 {
  663. if shift >= 64 {
  664. return ErrIntOverflowRaft
  665. }
  666. if iNdEx >= l {
  667. return io.ErrUnexpectedEOF
  668. }
  669. b := data[iNdEx]
  670. iNdEx++
  671. wire |= (uint64(b) & 0x7F) << shift
  672. if b < 0x80 {
  673. break
  674. }
  675. }
  676. fieldNum := int32(wire >> 3)
  677. wireType := int(wire & 0x7)
  678. if wireType == 4 {
  679. return fmt.Errorf("proto: Entry: wiretype end group for non-group")
  680. }
  681. if fieldNum <= 0 {
  682. return fmt.Errorf("proto: Entry: illegal tag %d (wire type %d)", fieldNum, wire)
  683. }
  684. switch fieldNum {
  685. case 1:
  686. if wireType != 0 {
  687. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  688. }
  689. m.Type = 0
  690. for shift := uint(0); ; shift += 7 {
  691. if shift >= 64 {
  692. return ErrIntOverflowRaft
  693. }
  694. if iNdEx >= l {
  695. return io.ErrUnexpectedEOF
  696. }
  697. b := data[iNdEx]
  698. iNdEx++
  699. m.Type |= (EntryType(b) & 0x7F) << shift
  700. if b < 0x80 {
  701. break
  702. }
  703. }
  704. case 2:
  705. if wireType != 0 {
  706. return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  707. }
  708. m.Term = 0
  709. for shift := uint(0); ; shift += 7 {
  710. if shift >= 64 {
  711. return ErrIntOverflowRaft
  712. }
  713. if iNdEx >= l {
  714. return io.ErrUnexpectedEOF
  715. }
  716. b := data[iNdEx]
  717. iNdEx++
  718. m.Term |= (uint64(b) & 0x7F) << shift
  719. if b < 0x80 {
  720. break
  721. }
  722. }
  723. case 3:
  724. if wireType != 0 {
  725. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  726. }
  727. m.Index = 0
  728. for shift := uint(0); ; shift += 7 {
  729. if shift >= 64 {
  730. return ErrIntOverflowRaft
  731. }
  732. if iNdEx >= l {
  733. return io.ErrUnexpectedEOF
  734. }
  735. b := data[iNdEx]
  736. iNdEx++
  737. m.Index |= (uint64(b) & 0x7F) << shift
  738. if b < 0x80 {
  739. break
  740. }
  741. }
  742. case 4:
  743. if wireType != 2 {
  744. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  745. }
  746. var byteLen int
  747. for shift := uint(0); ; shift += 7 {
  748. if shift >= 64 {
  749. return ErrIntOverflowRaft
  750. }
  751. if iNdEx >= l {
  752. return io.ErrUnexpectedEOF
  753. }
  754. b := data[iNdEx]
  755. iNdEx++
  756. byteLen |= (int(b) & 0x7F) << shift
  757. if b < 0x80 {
  758. break
  759. }
  760. }
  761. if byteLen < 0 {
  762. return ErrInvalidLengthRaft
  763. }
  764. postIndex := iNdEx + byteLen
  765. if postIndex > l {
  766. return io.ErrUnexpectedEOF
  767. }
  768. m.Data = append(m.Data[:0], data[iNdEx:postIndex]...)
  769. if m.Data == nil {
  770. m.Data = []byte{}
  771. }
  772. iNdEx = postIndex
  773. default:
  774. iNdEx = preIndex
  775. skippy, err := skipRaft(data[iNdEx:])
  776. if err != nil {
  777. return err
  778. }
  779. if skippy < 0 {
  780. return ErrInvalidLengthRaft
  781. }
  782. if (iNdEx + skippy) > l {
  783. return io.ErrUnexpectedEOF
  784. }
  785. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  786. iNdEx += skippy
  787. }
  788. }
  789. if iNdEx > l {
  790. return io.ErrUnexpectedEOF
  791. }
  792. return nil
  793. }
  794. func (m *SnapshotMetadata) Unmarshal(data []byte) error {
  795. l := len(data)
  796. iNdEx := 0
  797. for iNdEx < l {
  798. preIndex := iNdEx
  799. var wire uint64
  800. for shift := uint(0); ; shift += 7 {
  801. if shift >= 64 {
  802. return ErrIntOverflowRaft
  803. }
  804. if iNdEx >= l {
  805. return io.ErrUnexpectedEOF
  806. }
  807. b := data[iNdEx]
  808. iNdEx++
  809. wire |= (uint64(b) & 0x7F) << shift
  810. if b < 0x80 {
  811. break
  812. }
  813. }
  814. fieldNum := int32(wire >> 3)
  815. wireType := int(wire & 0x7)
  816. if wireType == 4 {
  817. return fmt.Errorf("proto: SnapshotMetadata: wiretype end group for non-group")
  818. }
  819. if fieldNum <= 0 {
  820. return fmt.Errorf("proto: SnapshotMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  821. }
  822. switch fieldNum {
  823. case 1:
  824. if wireType != 2 {
  825. return fmt.Errorf("proto: wrong wireType = %d for field ConfState", wireType)
  826. }
  827. var msglen int
  828. for shift := uint(0); ; shift += 7 {
  829. if shift >= 64 {
  830. return ErrIntOverflowRaft
  831. }
  832. if iNdEx >= l {
  833. return io.ErrUnexpectedEOF
  834. }
  835. b := data[iNdEx]
  836. iNdEx++
  837. msglen |= (int(b) & 0x7F) << shift
  838. if b < 0x80 {
  839. break
  840. }
  841. }
  842. if msglen < 0 {
  843. return ErrInvalidLengthRaft
  844. }
  845. postIndex := iNdEx + msglen
  846. if postIndex > l {
  847. return io.ErrUnexpectedEOF
  848. }
  849. if err := m.ConfState.Unmarshal(data[iNdEx:postIndex]); err != nil {
  850. return err
  851. }
  852. iNdEx = postIndex
  853. case 2:
  854. if wireType != 0 {
  855. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  856. }
  857. m.Index = 0
  858. for shift := uint(0); ; shift += 7 {
  859. if shift >= 64 {
  860. return ErrIntOverflowRaft
  861. }
  862. if iNdEx >= l {
  863. return io.ErrUnexpectedEOF
  864. }
  865. b := data[iNdEx]
  866. iNdEx++
  867. m.Index |= (uint64(b) & 0x7F) << shift
  868. if b < 0x80 {
  869. break
  870. }
  871. }
  872. case 3:
  873. if wireType != 0 {
  874. return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  875. }
  876. m.Term = 0
  877. for shift := uint(0); ; shift += 7 {
  878. if shift >= 64 {
  879. return ErrIntOverflowRaft
  880. }
  881. if iNdEx >= l {
  882. return io.ErrUnexpectedEOF
  883. }
  884. b := data[iNdEx]
  885. iNdEx++
  886. m.Term |= (uint64(b) & 0x7F) << shift
  887. if b < 0x80 {
  888. break
  889. }
  890. }
  891. default:
  892. iNdEx = preIndex
  893. skippy, err := skipRaft(data[iNdEx:])
  894. if err != nil {
  895. return err
  896. }
  897. if skippy < 0 {
  898. return ErrInvalidLengthRaft
  899. }
  900. if (iNdEx + skippy) > l {
  901. return io.ErrUnexpectedEOF
  902. }
  903. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  904. iNdEx += skippy
  905. }
  906. }
  907. if iNdEx > l {
  908. return io.ErrUnexpectedEOF
  909. }
  910. return nil
  911. }
  912. func (m *Snapshot) Unmarshal(data []byte) error {
  913. l := len(data)
  914. iNdEx := 0
  915. for iNdEx < l {
  916. preIndex := iNdEx
  917. var wire uint64
  918. for shift := uint(0); ; shift += 7 {
  919. if shift >= 64 {
  920. return ErrIntOverflowRaft
  921. }
  922. if iNdEx >= l {
  923. return io.ErrUnexpectedEOF
  924. }
  925. b := data[iNdEx]
  926. iNdEx++
  927. wire |= (uint64(b) & 0x7F) << shift
  928. if b < 0x80 {
  929. break
  930. }
  931. }
  932. fieldNum := int32(wire >> 3)
  933. wireType := int(wire & 0x7)
  934. if wireType == 4 {
  935. return fmt.Errorf("proto: Snapshot: wiretype end group for non-group")
  936. }
  937. if fieldNum <= 0 {
  938. return fmt.Errorf("proto: Snapshot: illegal tag %d (wire type %d)", fieldNum, wire)
  939. }
  940. switch fieldNum {
  941. case 1:
  942. if wireType != 2 {
  943. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  944. }
  945. var byteLen int
  946. for shift := uint(0); ; shift += 7 {
  947. if shift >= 64 {
  948. return ErrIntOverflowRaft
  949. }
  950. if iNdEx >= l {
  951. return io.ErrUnexpectedEOF
  952. }
  953. b := data[iNdEx]
  954. iNdEx++
  955. byteLen |= (int(b) & 0x7F) << shift
  956. if b < 0x80 {
  957. break
  958. }
  959. }
  960. if byteLen < 0 {
  961. return ErrInvalidLengthRaft
  962. }
  963. postIndex := iNdEx + byteLen
  964. if postIndex > l {
  965. return io.ErrUnexpectedEOF
  966. }
  967. m.Data = append(m.Data[:0], data[iNdEx:postIndex]...)
  968. if m.Data == nil {
  969. m.Data = []byte{}
  970. }
  971. iNdEx = postIndex
  972. case 2:
  973. if wireType != 2 {
  974. return fmt.Errorf("proto: wrong wireType = %d for field Metadata", wireType)
  975. }
  976. var msglen int
  977. for shift := uint(0); ; shift += 7 {
  978. if shift >= 64 {
  979. return ErrIntOverflowRaft
  980. }
  981. if iNdEx >= l {
  982. return io.ErrUnexpectedEOF
  983. }
  984. b := data[iNdEx]
  985. iNdEx++
  986. msglen |= (int(b) & 0x7F) << shift
  987. if b < 0x80 {
  988. break
  989. }
  990. }
  991. if msglen < 0 {
  992. return ErrInvalidLengthRaft
  993. }
  994. postIndex := iNdEx + msglen
  995. if postIndex > l {
  996. return io.ErrUnexpectedEOF
  997. }
  998. if err := m.Metadata.Unmarshal(data[iNdEx:postIndex]); err != nil {
  999. return err
  1000. }
  1001. iNdEx = postIndex
  1002. default:
  1003. iNdEx = preIndex
  1004. skippy, err := skipRaft(data[iNdEx:])
  1005. if err != nil {
  1006. return err
  1007. }
  1008. if skippy < 0 {
  1009. return ErrInvalidLengthRaft
  1010. }
  1011. if (iNdEx + skippy) > l {
  1012. return io.ErrUnexpectedEOF
  1013. }
  1014. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  1015. iNdEx += skippy
  1016. }
  1017. }
  1018. if iNdEx > l {
  1019. return io.ErrUnexpectedEOF
  1020. }
  1021. return nil
  1022. }
  1023. func (m *Message) Unmarshal(data []byte) error {
  1024. l := len(data)
  1025. iNdEx := 0
  1026. for iNdEx < l {
  1027. preIndex := iNdEx
  1028. var wire uint64
  1029. for shift := uint(0); ; shift += 7 {
  1030. if shift >= 64 {
  1031. return ErrIntOverflowRaft
  1032. }
  1033. if iNdEx >= l {
  1034. return io.ErrUnexpectedEOF
  1035. }
  1036. b := data[iNdEx]
  1037. iNdEx++
  1038. wire |= (uint64(b) & 0x7F) << shift
  1039. if b < 0x80 {
  1040. break
  1041. }
  1042. }
  1043. fieldNum := int32(wire >> 3)
  1044. wireType := int(wire & 0x7)
  1045. if wireType == 4 {
  1046. return fmt.Errorf("proto: Message: wiretype end group for non-group")
  1047. }
  1048. if fieldNum <= 0 {
  1049. return fmt.Errorf("proto: Message: illegal tag %d (wire type %d)", fieldNum, wire)
  1050. }
  1051. switch fieldNum {
  1052. case 1:
  1053. if wireType != 0 {
  1054. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1055. }
  1056. m.Type = 0
  1057. for shift := uint(0); ; shift += 7 {
  1058. if shift >= 64 {
  1059. return ErrIntOverflowRaft
  1060. }
  1061. if iNdEx >= l {
  1062. return io.ErrUnexpectedEOF
  1063. }
  1064. b := data[iNdEx]
  1065. iNdEx++
  1066. m.Type |= (MessageType(b) & 0x7F) << shift
  1067. if b < 0x80 {
  1068. break
  1069. }
  1070. }
  1071. case 2:
  1072. if wireType != 0 {
  1073. return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
  1074. }
  1075. m.To = 0
  1076. for shift := uint(0); ; shift += 7 {
  1077. if shift >= 64 {
  1078. return ErrIntOverflowRaft
  1079. }
  1080. if iNdEx >= l {
  1081. return io.ErrUnexpectedEOF
  1082. }
  1083. b := data[iNdEx]
  1084. iNdEx++
  1085. m.To |= (uint64(b) & 0x7F) << shift
  1086. if b < 0x80 {
  1087. break
  1088. }
  1089. }
  1090. case 3:
  1091. if wireType != 0 {
  1092. return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
  1093. }
  1094. m.From = 0
  1095. for shift := uint(0); ; shift += 7 {
  1096. if shift >= 64 {
  1097. return ErrIntOverflowRaft
  1098. }
  1099. if iNdEx >= l {
  1100. return io.ErrUnexpectedEOF
  1101. }
  1102. b := data[iNdEx]
  1103. iNdEx++
  1104. m.From |= (uint64(b) & 0x7F) << shift
  1105. if b < 0x80 {
  1106. break
  1107. }
  1108. }
  1109. case 4:
  1110. if wireType != 0 {
  1111. return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  1112. }
  1113. m.Term = 0
  1114. for shift := uint(0); ; shift += 7 {
  1115. if shift >= 64 {
  1116. return ErrIntOverflowRaft
  1117. }
  1118. if iNdEx >= l {
  1119. return io.ErrUnexpectedEOF
  1120. }
  1121. b := data[iNdEx]
  1122. iNdEx++
  1123. m.Term |= (uint64(b) & 0x7F) << shift
  1124. if b < 0x80 {
  1125. break
  1126. }
  1127. }
  1128. case 5:
  1129. if wireType != 0 {
  1130. return fmt.Errorf("proto: wrong wireType = %d for field LogTerm", wireType)
  1131. }
  1132. m.LogTerm = 0
  1133. for shift := uint(0); ; shift += 7 {
  1134. if shift >= 64 {
  1135. return ErrIntOverflowRaft
  1136. }
  1137. if iNdEx >= l {
  1138. return io.ErrUnexpectedEOF
  1139. }
  1140. b := data[iNdEx]
  1141. iNdEx++
  1142. m.LogTerm |= (uint64(b) & 0x7F) << shift
  1143. if b < 0x80 {
  1144. break
  1145. }
  1146. }
  1147. case 6:
  1148. if wireType != 0 {
  1149. return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType)
  1150. }
  1151. m.Index = 0
  1152. for shift := uint(0); ; shift += 7 {
  1153. if shift >= 64 {
  1154. return ErrIntOverflowRaft
  1155. }
  1156. if iNdEx >= l {
  1157. return io.ErrUnexpectedEOF
  1158. }
  1159. b := data[iNdEx]
  1160. iNdEx++
  1161. m.Index |= (uint64(b) & 0x7F) << shift
  1162. if b < 0x80 {
  1163. break
  1164. }
  1165. }
  1166. case 7:
  1167. if wireType != 2 {
  1168. return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType)
  1169. }
  1170. var msglen int
  1171. for shift := uint(0); ; shift += 7 {
  1172. if shift >= 64 {
  1173. return ErrIntOverflowRaft
  1174. }
  1175. if iNdEx >= l {
  1176. return io.ErrUnexpectedEOF
  1177. }
  1178. b := data[iNdEx]
  1179. iNdEx++
  1180. msglen |= (int(b) & 0x7F) << shift
  1181. if b < 0x80 {
  1182. break
  1183. }
  1184. }
  1185. if msglen < 0 {
  1186. return ErrInvalidLengthRaft
  1187. }
  1188. postIndex := iNdEx + msglen
  1189. if postIndex > l {
  1190. return io.ErrUnexpectedEOF
  1191. }
  1192. m.Entries = append(m.Entries, Entry{})
  1193. if err := m.Entries[len(m.Entries)-1].Unmarshal(data[iNdEx:postIndex]); err != nil {
  1194. return err
  1195. }
  1196. iNdEx = postIndex
  1197. case 8:
  1198. if wireType != 0 {
  1199. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  1200. }
  1201. m.Commit = 0
  1202. for shift := uint(0); ; shift += 7 {
  1203. if shift >= 64 {
  1204. return ErrIntOverflowRaft
  1205. }
  1206. if iNdEx >= l {
  1207. return io.ErrUnexpectedEOF
  1208. }
  1209. b := data[iNdEx]
  1210. iNdEx++
  1211. m.Commit |= (uint64(b) & 0x7F) << shift
  1212. if b < 0x80 {
  1213. break
  1214. }
  1215. }
  1216. case 9:
  1217. if wireType != 2 {
  1218. return fmt.Errorf("proto: wrong wireType = %d for field Snapshot", wireType)
  1219. }
  1220. var msglen int
  1221. for shift := uint(0); ; shift += 7 {
  1222. if shift >= 64 {
  1223. return ErrIntOverflowRaft
  1224. }
  1225. if iNdEx >= l {
  1226. return io.ErrUnexpectedEOF
  1227. }
  1228. b := data[iNdEx]
  1229. iNdEx++
  1230. msglen |= (int(b) & 0x7F) << shift
  1231. if b < 0x80 {
  1232. break
  1233. }
  1234. }
  1235. if msglen < 0 {
  1236. return ErrInvalidLengthRaft
  1237. }
  1238. postIndex := iNdEx + msglen
  1239. if postIndex > l {
  1240. return io.ErrUnexpectedEOF
  1241. }
  1242. if err := m.Snapshot.Unmarshal(data[iNdEx:postIndex]); err != nil {
  1243. return err
  1244. }
  1245. iNdEx = postIndex
  1246. case 10:
  1247. if wireType != 0 {
  1248. return fmt.Errorf("proto: wrong wireType = %d for field Reject", wireType)
  1249. }
  1250. var v int
  1251. for shift := uint(0); ; shift += 7 {
  1252. if shift >= 64 {
  1253. return ErrIntOverflowRaft
  1254. }
  1255. if iNdEx >= l {
  1256. return io.ErrUnexpectedEOF
  1257. }
  1258. b := data[iNdEx]
  1259. iNdEx++
  1260. v |= (int(b) & 0x7F) << shift
  1261. if b < 0x80 {
  1262. break
  1263. }
  1264. }
  1265. m.Reject = bool(v != 0)
  1266. case 11:
  1267. if wireType != 0 {
  1268. return fmt.Errorf("proto: wrong wireType = %d for field RejectHint", wireType)
  1269. }
  1270. m.RejectHint = 0
  1271. for shift := uint(0); ; shift += 7 {
  1272. if shift >= 64 {
  1273. return ErrIntOverflowRaft
  1274. }
  1275. if iNdEx >= l {
  1276. return io.ErrUnexpectedEOF
  1277. }
  1278. b := data[iNdEx]
  1279. iNdEx++
  1280. m.RejectHint |= (uint64(b) & 0x7F) << shift
  1281. if b < 0x80 {
  1282. break
  1283. }
  1284. }
  1285. default:
  1286. iNdEx = preIndex
  1287. skippy, err := skipRaft(data[iNdEx:])
  1288. if err != nil {
  1289. return err
  1290. }
  1291. if skippy < 0 {
  1292. return ErrInvalidLengthRaft
  1293. }
  1294. if (iNdEx + skippy) > l {
  1295. return io.ErrUnexpectedEOF
  1296. }
  1297. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  1298. iNdEx += skippy
  1299. }
  1300. }
  1301. if iNdEx > l {
  1302. return io.ErrUnexpectedEOF
  1303. }
  1304. return nil
  1305. }
  1306. func (m *HardState) Unmarshal(data []byte) error {
  1307. l := len(data)
  1308. iNdEx := 0
  1309. for iNdEx < l {
  1310. preIndex := iNdEx
  1311. var wire uint64
  1312. for shift := uint(0); ; shift += 7 {
  1313. if shift >= 64 {
  1314. return ErrIntOverflowRaft
  1315. }
  1316. if iNdEx >= l {
  1317. return io.ErrUnexpectedEOF
  1318. }
  1319. b := data[iNdEx]
  1320. iNdEx++
  1321. wire |= (uint64(b) & 0x7F) << shift
  1322. if b < 0x80 {
  1323. break
  1324. }
  1325. }
  1326. fieldNum := int32(wire >> 3)
  1327. wireType := int(wire & 0x7)
  1328. if wireType == 4 {
  1329. return fmt.Errorf("proto: HardState: wiretype end group for non-group")
  1330. }
  1331. if fieldNum <= 0 {
  1332. return fmt.Errorf("proto: HardState: illegal tag %d (wire type %d)", fieldNum, wire)
  1333. }
  1334. switch fieldNum {
  1335. case 1:
  1336. if wireType != 0 {
  1337. return fmt.Errorf("proto: wrong wireType = %d for field Term", wireType)
  1338. }
  1339. m.Term = 0
  1340. for shift := uint(0); ; shift += 7 {
  1341. if shift >= 64 {
  1342. return ErrIntOverflowRaft
  1343. }
  1344. if iNdEx >= l {
  1345. return io.ErrUnexpectedEOF
  1346. }
  1347. b := data[iNdEx]
  1348. iNdEx++
  1349. m.Term |= (uint64(b) & 0x7F) << shift
  1350. if b < 0x80 {
  1351. break
  1352. }
  1353. }
  1354. case 2:
  1355. if wireType != 0 {
  1356. return fmt.Errorf("proto: wrong wireType = %d for field Vote", wireType)
  1357. }
  1358. m.Vote = 0
  1359. for shift := uint(0); ; shift += 7 {
  1360. if shift >= 64 {
  1361. return ErrIntOverflowRaft
  1362. }
  1363. if iNdEx >= l {
  1364. return io.ErrUnexpectedEOF
  1365. }
  1366. b := data[iNdEx]
  1367. iNdEx++
  1368. m.Vote |= (uint64(b) & 0x7F) << shift
  1369. if b < 0x80 {
  1370. break
  1371. }
  1372. }
  1373. case 3:
  1374. if wireType != 0 {
  1375. return fmt.Errorf("proto: wrong wireType = %d for field Commit", wireType)
  1376. }
  1377. m.Commit = 0
  1378. for shift := uint(0); ; shift += 7 {
  1379. if shift >= 64 {
  1380. return ErrIntOverflowRaft
  1381. }
  1382. if iNdEx >= l {
  1383. return io.ErrUnexpectedEOF
  1384. }
  1385. b := data[iNdEx]
  1386. iNdEx++
  1387. m.Commit |= (uint64(b) & 0x7F) << shift
  1388. if b < 0x80 {
  1389. break
  1390. }
  1391. }
  1392. default:
  1393. iNdEx = preIndex
  1394. skippy, err := skipRaft(data[iNdEx:])
  1395. if err != nil {
  1396. return err
  1397. }
  1398. if skippy < 0 {
  1399. return ErrInvalidLengthRaft
  1400. }
  1401. if (iNdEx + skippy) > l {
  1402. return io.ErrUnexpectedEOF
  1403. }
  1404. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  1405. iNdEx += skippy
  1406. }
  1407. }
  1408. if iNdEx > l {
  1409. return io.ErrUnexpectedEOF
  1410. }
  1411. return nil
  1412. }
  1413. func (m *ConfState) Unmarshal(data []byte) error {
  1414. l := len(data)
  1415. iNdEx := 0
  1416. for iNdEx < l {
  1417. preIndex := iNdEx
  1418. var wire uint64
  1419. for shift := uint(0); ; shift += 7 {
  1420. if shift >= 64 {
  1421. return ErrIntOverflowRaft
  1422. }
  1423. if iNdEx >= l {
  1424. return io.ErrUnexpectedEOF
  1425. }
  1426. b := data[iNdEx]
  1427. iNdEx++
  1428. wire |= (uint64(b) & 0x7F) << shift
  1429. if b < 0x80 {
  1430. break
  1431. }
  1432. }
  1433. fieldNum := int32(wire >> 3)
  1434. wireType := int(wire & 0x7)
  1435. if wireType == 4 {
  1436. return fmt.Errorf("proto: ConfState: wiretype end group for non-group")
  1437. }
  1438. if fieldNum <= 0 {
  1439. return fmt.Errorf("proto: ConfState: illegal tag %d (wire type %d)", fieldNum, wire)
  1440. }
  1441. switch fieldNum {
  1442. case 1:
  1443. if wireType != 0 {
  1444. return fmt.Errorf("proto: wrong wireType = %d for field Nodes", wireType)
  1445. }
  1446. var v uint64
  1447. for shift := uint(0); ; shift += 7 {
  1448. if shift >= 64 {
  1449. return ErrIntOverflowRaft
  1450. }
  1451. if iNdEx >= l {
  1452. return io.ErrUnexpectedEOF
  1453. }
  1454. b := data[iNdEx]
  1455. iNdEx++
  1456. v |= (uint64(b) & 0x7F) << shift
  1457. if b < 0x80 {
  1458. break
  1459. }
  1460. }
  1461. m.Nodes = append(m.Nodes, v)
  1462. default:
  1463. iNdEx = preIndex
  1464. skippy, err := skipRaft(data[iNdEx:])
  1465. if err != nil {
  1466. return err
  1467. }
  1468. if skippy < 0 {
  1469. return ErrInvalidLengthRaft
  1470. }
  1471. if (iNdEx + skippy) > l {
  1472. return io.ErrUnexpectedEOF
  1473. }
  1474. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  1475. iNdEx += skippy
  1476. }
  1477. }
  1478. if iNdEx > l {
  1479. return io.ErrUnexpectedEOF
  1480. }
  1481. return nil
  1482. }
  1483. func (m *ConfChange) Unmarshal(data []byte) error {
  1484. l := len(data)
  1485. iNdEx := 0
  1486. for iNdEx < l {
  1487. preIndex := iNdEx
  1488. var wire uint64
  1489. for shift := uint(0); ; shift += 7 {
  1490. if shift >= 64 {
  1491. return ErrIntOverflowRaft
  1492. }
  1493. if iNdEx >= l {
  1494. return io.ErrUnexpectedEOF
  1495. }
  1496. b := data[iNdEx]
  1497. iNdEx++
  1498. wire |= (uint64(b) & 0x7F) << shift
  1499. if b < 0x80 {
  1500. break
  1501. }
  1502. }
  1503. fieldNum := int32(wire >> 3)
  1504. wireType := int(wire & 0x7)
  1505. if wireType == 4 {
  1506. return fmt.Errorf("proto: ConfChange: wiretype end group for non-group")
  1507. }
  1508. if fieldNum <= 0 {
  1509. return fmt.Errorf("proto: ConfChange: illegal tag %d (wire type %d)", fieldNum, wire)
  1510. }
  1511. switch fieldNum {
  1512. case 1:
  1513. if wireType != 0 {
  1514. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1515. }
  1516. m.ID = 0
  1517. for shift := uint(0); ; shift += 7 {
  1518. if shift >= 64 {
  1519. return ErrIntOverflowRaft
  1520. }
  1521. if iNdEx >= l {
  1522. return io.ErrUnexpectedEOF
  1523. }
  1524. b := data[iNdEx]
  1525. iNdEx++
  1526. m.ID |= (uint64(b) & 0x7F) << shift
  1527. if b < 0x80 {
  1528. break
  1529. }
  1530. }
  1531. case 2:
  1532. if wireType != 0 {
  1533. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1534. }
  1535. m.Type = 0
  1536. for shift := uint(0); ; shift += 7 {
  1537. if shift >= 64 {
  1538. return ErrIntOverflowRaft
  1539. }
  1540. if iNdEx >= l {
  1541. return io.ErrUnexpectedEOF
  1542. }
  1543. b := data[iNdEx]
  1544. iNdEx++
  1545. m.Type |= (ConfChangeType(b) & 0x7F) << shift
  1546. if b < 0x80 {
  1547. break
  1548. }
  1549. }
  1550. case 3:
  1551. if wireType != 0 {
  1552. return fmt.Errorf("proto: wrong wireType = %d for field NodeID", wireType)
  1553. }
  1554. m.NodeID = 0
  1555. for shift := uint(0); ; shift += 7 {
  1556. if shift >= 64 {
  1557. return ErrIntOverflowRaft
  1558. }
  1559. if iNdEx >= l {
  1560. return io.ErrUnexpectedEOF
  1561. }
  1562. b := data[iNdEx]
  1563. iNdEx++
  1564. m.NodeID |= (uint64(b) & 0x7F) << shift
  1565. if b < 0x80 {
  1566. break
  1567. }
  1568. }
  1569. case 4:
  1570. if wireType != 2 {
  1571. return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType)
  1572. }
  1573. var byteLen int
  1574. for shift := uint(0); ; shift += 7 {
  1575. if shift >= 64 {
  1576. return ErrIntOverflowRaft
  1577. }
  1578. if iNdEx >= l {
  1579. return io.ErrUnexpectedEOF
  1580. }
  1581. b := data[iNdEx]
  1582. iNdEx++
  1583. byteLen |= (int(b) & 0x7F) << shift
  1584. if b < 0x80 {
  1585. break
  1586. }
  1587. }
  1588. if byteLen < 0 {
  1589. return ErrInvalidLengthRaft
  1590. }
  1591. postIndex := iNdEx + byteLen
  1592. if postIndex > l {
  1593. return io.ErrUnexpectedEOF
  1594. }
  1595. m.Context = append(m.Context[:0], data[iNdEx:postIndex]...)
  1596. if m.Context == nil {
  1597. m.Context = []byte{}
  1598. }
  1599. iNdEx = postIndex
  1600. default:
  1601. iNdEx = preIndex
  1602. skippy, err := skipRaft(data[iNdEx:])
  1603. if err != nil {
  1604. return err
  1605. }
  1606. if skippy < 0 {
  1607. return ErrInvalidLengthRaft
  1608. }
  1609. if (iNdEx + skippy) > l {
  1610. return io.ErrUnexpectedEOF
  1611. }
  1612. m.XXX_unrecognized = append(m.XXX_unrecognized, data[iNdEx:iNdEx+skippy]...)
  1613. iNdEx += skippy
  1614. }
  1615. }
  1616. if iNdEx > l {
  1617. return io.ErrUnexpectedEOF
  1618. }
  1619. return nil
  1620. }
  1621. func skipRaft(data []byte) (n int, err error) {
  1622. l := len(data)
  1623. iNdEx := 0
  1624. for iNdEx < l {
  1625. var wire uint64
  1626. for shift := uint(0); ; shift += 7 {
  1627. if shift >= 64 {
  1628. return 0, ErrIntOverflowRaft
  1629. }
  1630. if iNdEx >= l {
  1631. return 0, io.ErrUnexpectedEOF
  1632. }
  1633. b := data[iNdEx]
  1634. iNdEx++
  1635. wire |= (uint64(b) & 0x7F) << shift
  1636. if b < 0x80 {
  1637. break
  1638. }
  1639. }
  1640. wireType := int(wire & 0x7)
  1641. switch wireType {
  1642. case 0:
  1643. for shift := uint(0); ; shift += 7 {
  1644. if shift >= 64 {
  1645. return 0, ErrIntOverflowRaft
  1646. }
  1647. if iNdEx >= l {
  1648. return 0, io.ErrUnexpectedEOF
  1649. }
  1650. iNdEx++
  1651. if data[iNdEx-1] < 0x80 {
  1652. break
  1653. }
  1654. }
  1655. return iNdEx, nil
  1656. case 1:
  1657. iNdEx += 8
  1658. return iNdEx, nil
  1659. case 2:
  1660. var length int
  1661. for shift := uint(0); ; shift += 7 {
  1662. if shift >= 64 {
  1663. return 0, ErrIntOverflowRaft
  1664. }
  1665. if iNdEx >= l {
  1666. return 0, io.ErrUnexpectedEOF
  1667. }
  1668. b := data[iNdEx]
  1669. iNdEx++
  1670. length |= (int(b) & 0x7F) << shift
  1671. if b < 0x80 {
  1672. break
  1673. }
  1674. }
  1675. iNdEx += length
  1676. if length < 0 {
  1677. return 0, ErrInvalidLengthRaft
  1678. }
  1679. return iNdEx, nil
  1680. case 3:
  1681. for {
  1682. var innerWire uint64
  1683. var start int = iNdEx
  1684. for shift := uint(0); ; shift += 7 {
  1685. if shift >= 64 {
  1686. return 0, ErrIntOverflowRaft
  1687. }
  1688. if iNdEx >= l {
  1689. return 0, io.ErrUnexpectedEOF
  1690. }
  1691. b := data[iNdEx]
  1692. iNdEx++
  1693. innerWire |= (uint64(b) & 0x7F) << shift
  1694. if b < 0x80 {
  1695. break
  1696. }
  1697. }
  1698. innerWireType := int(innerWire & 0x7)
  1699. if innerWireType == 4 {
  1700. break
  1701. }
  1702. next, err := skipRaft(data[start:])
  1703. if err != nil {
  1704. return 0, err
  1705. }
  1706. iNdEx = start + next
  1707. }
  1708. return iNdEx, nil
  1709. case 4:
  1710. return iNdEx, nil
  1711. case 5:
  1712. iNdEx += 4
  1713. return iNdEx, nil
  1714. default:
  1715. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1716. }
  1717. }
  1718. panic("unreachable")
  1719. }
  1720. var (
  1721. ErrInvalidLengthRaft = fmt.Errorf("proto: negative length found during unmarshaling")
  1722. ErrIntOverflowRaft = fmt.Errorf("proto: integer overflow")
  1723. )
  1724. var fileDescriptorRaft = []byte{
  1725. // 735 bytes of a gzipped FileDescriptorProto
  1726. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x54, 0x4d, 0x6f, 0xd3, 0x4a,
  1727. 0x14, 0xad, 0x13, 0xe7, 0xeb, 0xa6, 0x4d, 0xa7, 0xd3, 0xbc, 0x27, 0xab, 0x7a, 0xea, 0xeb, 0xb3,
  1728. 0xde, 0x02, 0x15, 0xb5, 0x40, 0x17, 0x2c, 0xd8, 0xf5, 0x03, 0xa9, 0x95, 0x68, 0x05, 0x69, 0xcb,
  1729. 0x02, 0x84, 0xd0, 0xd4, 0x9e, 0x38, 0x81, 0xda, 0x63, 0x8d, 0x27, 0xa5, 0xdd, 0x20, 0x24, 0x16,
  1730. 0x6c, 0xf8, 0x61, 0x5d, 0xf6, 0x17, 0x20, 0xe0, 0x97, 0x70, 0x67, 0x3c, 0x4e, 0xec, 0x66, 0x11,
  1731. 0x69, 0xe6, 0x9c, 0xfb, 0x71, 0xee, 0x99, 0xeb, 0x00, 0x48, 0x36, 0x54, 0xdb, 0xa9, 0x14, 0x4a,
  1732. 0xd0, 0xa6, 0x3e, 0xa7, 0x17, 0x6b, 0xfd, 0x48, 0x44, 0xc2, 0x40, 0x8f, 0xf4, 0x29, 0x67, 0xfd,
  1733. 0xcf, 0xd0, 0x78, 0x9e, 0x28, 0x79, 0x43, 0x1f, 0x82, 0x7b, 0x76, 0x93, 0x72, 0xcf, 0xd9, 0x70,
  1734. 0x1e, 0xf4, 0x76, 0x56, 0xb6, 0xf3, 0xac, 0x6d, 0x43, 0x6a, 0x62, 0xcf, 0xbd, 0xfd, 0xf1, 0xef,
  1735. 0xc2, 0xc0, 0x55, 0x78, 0xa6, 0x1e, 0x06, 0x73, 0x19, 0x7b, 0x35, 0x0c, 0x76, 0xa7, 0x0c, 0x22,
  1736. 0x74, 0x0d, 0x1a, 0x47, 0x49, 0xc8, 0xaf, 0xbd, 0x7a, 0x89, 0x6a, 0x8c, 0x35, 0x44, 0x29, 0xb8,
  1737. 0x07, 0x4c, 0x31, 0xcf, 0x45, 0x6a, 0x71, 0xe0, 0x86, 0x78, 0xf6, 0xbf, 0x38, 0x40, 0x4e, 0x13,
  1738. 0x96, 0x66, 0x23, 0xa1, 0x8e, 0xb9, 0x62, 0x1a, 0xa4, 0x4f, 0x01, 0x02, 0x91, 0x0c, 0xdf, 0x67,
  1739. 0x8a, 0xa9, 0x5c, 0x51, 0x77, 0xa6, 0x68, 0x1f, 0x99, 0x53, 0x4d, 0xd8, 0xe2, 0x9d, 0xa0, 0x00,
  1740. 0x74, 0x73, 0xd3, 0xa9, 0xa2, 0xcb, 0x36, 0x47, 0xc9, 0x5a, 0x60, 0x45, 0x97, 0x41, 0xfc, 0x37,
  1741. 0xd0, 0x2e, 0x14, 0x68, 0x89, 0x5a, 0x81, 0xe9, 0x69, 0x25, 0xd2, 0x67, 0xd0, 0x8e, 0xad, 0x32,
  1742. 0x53, 0xb8, 0xbb, 0xe3, 0x15, 0x5a, 0xee, 0x2b, 0xb7, 0x75, 0xa7, 0xf1, 0xfe, 0xd7, 0x3a, 0xb4,
  1743. 0x8e, 0x79, 0x96, 0xb1, 0x88, 0xd3, 0x2d, 0x30, 0xe6, 0x59, 0x87, 0x57, 0x8b, 0x1a, 0x96, 0x9e,
  1744. 0xf3, 0xb8, 0x0f, 0x35, 0x25, 0x2a, 0x93, 0xe0, 0x5d, 0x8f, 0x31, 0x94, 0xe2, 0xde, 0x18, 0x1a,
  1745. 0x99, 0x0e, 0xe8, 0xce, 0xbd, 0xc9, 0x3a, 0xb4, 0x2e, 0x45, 0x64, 0x1e, 0xac, 0x51, 0x22, 0x0b,
  1746. 0x70, 0x66, 0x5b, 0x73, 0xde, 0xb6, 0x2d, 0x68, 0x71, 0x5c, 0x81, 0x31, 0xcf, 0xbc, 0xd6, 0x46,
  1747. 0x1d, 0x67, 0x5f, 0xaa, 0x6c, 0x46, 0x51, 0xca, 0xc6, 0xd0, 0x7f, 0xa0, 0x19, 0x88, 0x38, 0x1e,
  1748. 0x2b, 0xaf, 0x5d, 0xaa, 0x65, 0x31, 0xba, 0x03, 0xed, 0xcc, 0x3a, 0xe6, 0x75, 0x8c, 0x93, 0xe4,
  1749. 0xbe, 0x93, 0x85, 0x83, 0x45, 0x9c, 0xae, 0x28, 0xf9, 0x07, 0x1e, 0x28, 0x0f, 0x30, 0xa3, 0x5d,
  1750. 0x54, 0xcc, 0x31, 0xfa, 0x3f, 0xae, 0xba, 0x39, 0x1d, 0x8e, 0x13, 0xe5, 0x75, 0x4b, 0x3d, 0x4b,
  1751. 0xb8, 0xff, 0x0e, 0x3a, 0x87, 0x4c, 0x86, 0xf9, 0x92, 0x14, 0x3e, 0x39, 0x73, 0x3e, 0x21, 0x73,
  1752. 0x25, 0x70, 0xe1, 0x2a, 0x5b, 0xad, 0x91, 0xd2, 0x58, 0xf5, 0xf9, 0xb1, 0xfc, 0xff, 0xa0, 0x33,
  1753. 0x5d, 0x4a, 0x7c, 0xb6, 0x46, 0x22, 0x42, 0xb4, 0xcb, 0x41, 0xbb, 0xdc, 0x41, 0x7e, 0xf1, 0xbf,
  1754. 0x3b, 0x00, 0x3a, 0x66, 0x7f, 0xc4, 0x92, 0xc8, 0xbc, 0xed, 0xd1, 0x41, 0x45, 0x41, 0x6d, 0x7c,
  1755. 0x40, 0x1f, 0xdb, 0x4f, 0xb0, 0x66, 0x16, 0xe4, 0xef, 0xf2, 0xc2, 0xe7, 0x79, 0x73, 0x3b, 0x82,
  1756. 0xba, 0x4e, 0xb0, 0x3e, 0xd6, 0xaa, 0xe8, 0x4a, 0x0c, 0x86, 0xf3, 0xb4, 0x30, 0x57, 0xf1, 0x6b,
  1757. 0x65, 0x3f, 0xb9, 0x56, 0x90, 0x5f, 0x37, 0x9f, 0x40, 0x67, 0xfa, 0x61, 0xd3, 0x65, 0xe8, 0x9a,
  1758. 0xcb, 0x89, 0x90, 0x31, 0xbb, 0x24, 0x0b, 0x74, 0x15, 0x96, 0x0d, 0x30, 0x6b, 0x4c, 0x9c, 0xcd,
  1759. 0x6f, 0x35, 0xe8, 0x96, 0x56, 0x95, 0x02, 0x34, 0x8f, 0xb3, 0xe8, 0x70, 0x92, 0x62, 0x42, 0x17,
  1760. 0x97, 0x3c, 0x8b, 0xf6, 0x38, 0x53, 0xc4, 0xb1, 0x97, 0x97, 0x52, 0xa4, 0xa4, 0x66, 0xa3, 0x76,
  1761. 0xd3, 0x94, 0xd4, 0x69, 0x0f, 0x20, 0x3f, 0x0f, 0x78, 0x96, 0x12, 0xd7, 0x06, 0xbe, 0x46, 0x7f,
  1762. 0x49, 0x43, 0x8b, 0xb0, 0x17, 0xc3, 0x36, 0x2d, 0xab, 0xd7, 0x82, 0xb4, 0x28, 0x81, 0x45, 0xdd,
  1763. 0x8c, 0x33, 0xa9, 0x2e, 0x74, 0x97, 0x36, 0x3a, 0x48, 0xca, 0x88, 0x49, 0xea, 0xe0, 0xe7, 0xdb,
  1764. 0x43, 0xf4, 0x3c, 0x91, 0x9c, 0x05, 0x23, 0x76, 0x71, 0xc9, 0x09, 0xd0, 0x15, 0x58, 0xb2, 0x85,
  1765. 0xf4, 0x03, 0x4d, 0x32, 0xd2, 0xb5, 0x61, 0xfb, 0x23, 0x1e, 0x7c, 0x7c, 0x35, 0x11, 0x72, 0x12,
  1766. 0x93, 0x45, 0xfa, 0x17, 0xac, 0x20, 0x76, 0x26, 0x59, 0x92, 0x0d, 0xb9, 0x7c, 0xc1, 0x59, 0xc8,
  1767. 0x25, 0x59, 0xb2, 0xd9, 0x67, 0xe3, 0x98, 0x8b, 0x89, 0x3a, 0x11, 0x9f, 0x48, 0x6f, 0xf3, 0x2d,
  1768. 0xf4, 0xaa, 0x4f, 0xa2, 0x73, 0x67, 0xc8, 0x6e, 0x18, 0xea, 0x37, 0x41, 0x5b, 0x3c, 0xe8, 0xcf,
  1769. 0xe0, 0x01, 0x8f, 0xc5, 0x15, 0x37, 0x8c, 0x53, 0x65, 0xce, 0x53, 0xfc, 0xab, 0xc8, 0x99, 0xda,
  1770. 0x5e, 0xff, 0xf6, 0xd7, 0xfa, 0xc2, 0x1d, 0xfe, 0x6e, 0x7f, 0xaf, 0x3b, 0x77, 0xf8, 0xfb, 0x89,
  1771. 0xbf, 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xc8, 0x26, 0x45, 0x2d, 0xd0, 0x05, 0x00, 0x00,
  1772. }