raft.pb.go 46 KB

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