raft.pb.go 46 KB

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