bep.pb.go 103 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: bep.proto
  3. /*
  4. Package protocol is a generated protocol buffer package.
  5. It is generated from these files:
  6. bep.proto
  7. It has these top-level messages:
  8. Hello
  9. Header
  10. ClusterConfig
  11. Folder
  12. Device
  13. Index
  14. IndexUpdate
  15. FileInfo
  16. BlockInfo
  17. Vector
  18. Counter
  19. Request
  20. Response
  21. DownloadProgress
  22. FileDownloadProgressUpdate
  23. Ping
  24. Close
  25. */
  26. package protocol
  27. import proto "github.com/gogo/protobuf/proto"
  28. import fmt "fmt"
  29. import math "math"
  30. import _ "github.com/gogo/protobuf/gogoproto"
  31. import io "io"
  32. // Reference imports to suppress errors if they are not otherwise used.
  33. var _ = proto.Marshal
  34. var _ = fmt.Errorf
  35. var _ = math.Inf
  36. // This is a compile-time assertion to ensure that this generated file
  37. // is compatible with the proto package it is being compiled against.
  38. // A compilation error at this line likely means your copy of the
  39. // proto package needs to be updated.
  40. const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
  41. type MessageType int32
  42. const (
  43. messageTypeClusterConfig MessageType = 0
  44. messageTypeIndex MessageType = 1
  45. messageTypeIndexUpdate MessageType = 2
  46. messageTypeRequest MessageType = 3
  47. messageTypeResponse MessageType = 4
  48. messageTypeDownloadProgress MessageType = 5
  49. messageTypePing MessageType = 6
  50. messageTypeClose MessageType = 7
  51. )
  52. var MessageType_name = map[int32]string{
  53. 0: "CLUSTER_CONFIG",
  54. 1: "INDEX",
  55. 2: "INDEX_UPDATE",
  56. 3: "REQUEST",
  57. 4: "RESPONSE",
  58. 5: "DOWNLOAD_PROGRESS",
  59. 6: "PING",
  60. 7: "CLOSE",
  61. }
  62. var MessageType_value = map[string]int32{
  63. "CLUSTER_CONFIG": 0,
  64. "INDEX": 1,
  65. "INDEX_UPDATE": 2,
  66. "REQUEST": 3,
  67. "RESPONSE": 4,
  68. "DOWNLOAD_PROGRESS": 5,
  69. "PING": 6,
  70. "CLOSE": 7,
  71. }
  72. func (x MessageType) String() string {
  73. return proto.EnumName(MessageType_name, int32(x))
  74. }
  75. func (MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBep, []int{0} }
  76. type MessageCompression int32
  77. const (
  78. MessageCompressionNone MessageCompression = 0
  79. MessageCompressionLZ4 MessageCompression = 1
  80. )
  81. var MessageCompression_name = map[int32]string{
  82. 0: "NONE",
  83. 1: "LZ4",
  84. }
  85. var MessageCompression_value = map[string]int32{
  86. "NONE": 0,
  87. "LZ4": 1,
  88. }
  89. func (x MessageCompression) String() string {
  90. return proto.EnumName(MessageCompression_name, int32(x))
  91. }
  92. func (MessageCompression) EnumDescriptor() ([]byte, []int) { return fileDescriptorBep, []int{1} }
  93. type Compression int32
  94. const (
  95. CompressMetadata Compression = 0
  96. CompressNever Compression = 1
  97. CompressAlways Compression = 2
  98. )
  99. var Compression_name = map[int32]string{
  100. 0: "METADATA",
  101. 1: "NEVER",
  102. 2: "ALWAYS",
  103. }
  104. var Compression_value = map[string]int32{
  105. "METADATA": 0,
  106. "NEVER": 1,
  107. "ALWAYS": 2,
  108. }
  109. func (x Compression) String() string {
  110. return proto.EnumName(Compression_name, int32(x))
  111. }
  112. func (Compression) EnumDescriptor() ([]byte, []int) { return fileDescriptorBep, []int{2} }
  113. type FileInfoType int32
  114. const (
  115. FileInfoTypeFile FileInfoType = 0
  116. FileInfoTypeDirectory FileInfoType = 1
  117. FileInfoTypeDeprecatedSymlinkFile FileInfoType = 2
  118. FileInfoTypeDeprecatedSymlinkDirectory FileInfoType = 3
  119. FileInfoTypeSymlink FileInfoType = 4
  120. )
  121. var FileInfoType_name = map[int32]string{
  122. 0: "FILE",
  123. 1: "DIRECTORY",
  124. 2: "SYMLINK_FILE",
  125. 3: "SYMLINK_DIRECTORY",
  126. 4: "SYMLINK",
  127. }
  128. var FileInfoType_value = map[string]int32{
  129. "FILE": 0,
  130. "DIRECTORY": 1,
  131. "SYMLINK_FILE": 2,
  132. "SYMLINK_DIRECTORY": 3,
  133. "SYMLINK": 4,
  134. }
  135. func (x FileInfoType) String() string {
  136. return proto.EnumName(FileInfoType_name, int32(x))
  137. }
  138. func (FileInfoType) EnumDescriptor() ([]byte, []int) { return fileDescriptorBep, []int{3} }
  139. type ErrorCode int32
  140. const (
  141. ErrorCodeNoError ErrorCode = 0
  142. ErrorCodeGeneric ErrorCode = 1
  143. ErrorCodeNoSuchFile ErrorCode = 2
  144. ErrorCodeInvalidFile ErrorCode = 3
  145. )
  146. var ErrorCode_name = map[int32]string{
  147. 0: "NO_ERROR",
  148. 1: "GENERIC",
  149. 2: "NO_SUCH_FILE",
  150. 3: "INVALID_FILE",
  151. }
  152. var ErrorCode_value = map[string]int32{
  153. "NO_ERROR": 0,
  154. "GENERIC": 1,
  155. "NO_SUCH_FILE": 2,
  156. "INVALID_FILE": 3,
  157. }
  158. func (x ErrorCode) String() string {
  159. return proto.EnumName(ErrorCode_name, int32(x))
  160. }
  161. func (ErrorCode) EnumDescriptor() ([]byte, []int) { return fileDescriptorBep, []int{4} }
  162. type FileDownloadProgressUpdateType int32
  163. const (
  164. UpdateTypeAppend FileDownloadProgressUpdateType = 0
  165. UpdateTypeForget FileDownloadProgressUpdateType = 1
  166. )
  167. var FileDownloadProgressUpdateType_name = map[int32]string{
  168. 0: "APPEND",
  169. 1: "FORGET",
  170. }
  171. var FileDownloadProgressUpdateType_value = map[string]int32{
  172. "APPEND": 0,
  173. "FORGET": 1,
  174. }
  175. func (x FileDownloadProgressUpdateType) String() string {
  176. return proto.EnumName(FileDownloadProgressUpdateType_name, int32(x))
  177. }
  178. func (FileDownloadProgressUpdateType) EnumDescriptor() ([]byte, []int) {
  179. return fileDescriptorBep, []int{5}
  180. }
  181. type Hello struct {
  182. DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"device_name,omitempty"`
  183. ClientName string `protobuf:"bytes,2,opt,name=client_name,json=clientName,proto3" json:"client_name,omitempty"`
  184. ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"client_version,omitempty"`
  185. }
  186. func (m *Hello) Reset() { *m = Hello{} }
  187. func (m *Hello) String() string { return proto.CompactTextString(m) }
  188. func (*Hello) ProtoMessage() {}
  189. func (*Hello) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{0} }
  190. type Header struct {
  191. Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.MessageType" json:"type,omitempty"`
  192. Compression MessageCompression `protobuf:"varint,2,opt,name=compression,proto3,enum=protocol.MessageCompression" json:"compression,omitempty"`
  193. }
  194. func (m *Header) Reset() { *m = Header{} }
  195. func (m *Header) String() string { return proto.CompactTextString(m) }
  196. func (*Header) ProtoMessage() {}
  197. func (*Header) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{1} }
  198. type ClusterConfig struct {
  199. Folders []Folder `protobuf:"bytes,1,rep,name=folders" json:"folders"`
  200. }
  201. func (m *ClusterConfig) Reset() { *m = ClusterConfig{} }
  202. func (m *ClusterConfig) String() string { return proto.CompactTextString(m) }
  203. func (*ClusterConfig) ProtoMessage() {}
  204. func (*ClusterConfig) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{2} }
  205. type Folder struct {
  206. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  207. Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
  208. ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"read_only,omitempty"`
  209. IgnorePermissions bool `protobuf:"varint,4,opt,name=ignore_permissions,json=ignorePermissions,proto3" json:"ignore_permissions,omitempty"`
  210. IgnoreDelete bool `protobuf:"varint,5,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignore_delete,omitempty"`
  211. DisableTempIndexes bool `protobuf:"varint,6,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disable_temp_indexes,omitempty"`
  212. Paused bool `protobuf:"varint,7,opt,name=paused,proto3" json:"paused,omitempty"`
  213. Devices []Device `protobuf:"bytes,16,rep,name=devices" json:"devices"`
  214. }
  215. func (m *Folder) Reset() { *m = Folder{} }
  216. func (m *Folder) String() string { return proto.CompactTextString(m) }
  217. func (*Folder) ProtoMessage() {}
  218. func (*Folder) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{3} }
  219. type Device struct {
  220. ID DeviceID `protobuf:"bytes,1,opt,name=id,proto3,customtype=DeviceID" json:"id"`
  221. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  222. Addresses []string `protobuf:"bytes,3,rep,name=addresses" json:"addresses,omitempty"`
  223. Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=protocol.Compression" json:"compression,omitempty"`
  224. CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"cert_name,omitempty"`
  225. MaxSequence int64 `protobuf:"varint,6,opt,name=max_sequence,json=maxSequence,proto3" json:"max_sequence,omitempty"`
  226. Introducer bool `protobuf:"varint,7,opt,name=introducer,proto3" json:"introducer,omitempty"`
  227. IndexID IndexID `protobuf:"varint,8,opt,name=index_id,json=indexId,proto3,customtype=IndexID" json:"index_id"`
  228. SkipIntroductionRemovals bool `protobuf:"varint,9,opt,name=skip_introduction_removals,json=skipIntroductionRemovals,proto3" json:"skip_introduction_removals,omitempty"`
  229. }
  230. func (m *Device) Reset() { *m = Device{} }
  231. func (m *Device) String() string { return proto.CompactTextString(m) }
  232. func (*Device) ProtoMessage() {}
  233. func (*Device) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{4} }
  234. type Index struct {
  235. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
  236. Files []FileInfo `protobuf:"bytes,2,rep,name=files" json:"files"`
  237. }
  238. func (m *Index) Reset() { *m = Index{} }
  239. func (m *Index) String() string { return proto.CompactTextString(m) }
  240. func (*Index) ProtoMessage() {}
  241. func (*Index) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{5} }
  242. type IndexUpdate struct {
  243. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
  244. Files []FileInfo `protobuf:"bytes,2,rep,name=files" json:"files"`
  245. }
  246. func (m *IndexUpdate) Reset() { *m = IndexUpdate{} }
  247. func (m *IndexUpdate) String() string { return proto.CompactTextString(m) }
  248. func (*IndexUpdate) ProtoMessage() {}
  249. func (*IndexUpdate) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{6} }
  250. type FileInfo struct {
  251. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  252. Type FileInfoType `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.FileInfoType" json:"type,omitempty"`
  253. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
  254. Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions,omitempty"`
  255. ModifiedS int64 `protobuf:"varint,5,opt,name=modified_s,json=modifiedS,proto3" json:"modified_s,omitempty"`
  256. ModifiedNs int32 `protobuf:"varint,11,opt,name=modified_ns,json=modifiedNs,proto3" json:"modified_ns,omitempty"`
  257. ModifiedBy ShortID `protobuf:"varint,12,opt,name=modified_by,json=modifiedBy,proto3,customtype=ShortID" json:"modified_by"`
  258. Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted,omitempty"`
  259. Invalid bool `protobuf:"varint,7,opt,name=invalid,proto3" json:"invalid,omitempty"`
  260. NoPermissions bool `protobuf:"varint,8,opt,name=no_permissions,json=noPermissions,proto3" json:"no_permissions,omitempty"`
  261. Version Vector `protobuf:"bytes,9,opt,name=version" json:"version"`
  262. Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence,omitempty"`
  263. RawBlockSize int32 `protobuf:"varint,13,opt,name=block_size,json=blockSize,proto3" json:"block_size,omitempty"`
  264. Blocks []BlockInfo `protobuf:"bytes,16,rep,name=Blocks" json:"Blocks"`
  265. SymlinkTarget string `protobuf:"bytes,17,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlink_target,omitempty"`
  266. }
  267. func (m *FileInfo) Reset() { *m = FileInfo{} }
  268. func (*FileInfo) ProtoMessage() {}
  269. func (*FileInfo) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{7} }
  270. type BlockInfo struct {
  271. Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
  272. Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
  273. Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash,omitempty"`
  274. WeakHash uint32 `protobuf:"varint,4,opt,name=weak_hash,json=weakHash,proto3" json:"weak_hash,omitempty"`
  275. }
  276. func (m *BlockInfo) Reset() { *m = BlockInfo{} }
  277. func (*BlockInfo) ProtoMessage() {}
  278. func (*BlockInfo) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{8} }
  279. type Vector struct {
  280. Counters []Counter `protobuf:"bytes,1,rep,name=counters" json:"counters"`
  281. }
  282. func (m *Vector) Reset() { *m = Vector{} }
  283. func (m *Vector) String() string { return proto.CompactTextString(m) }
  284. func (*Vector) ProtoMessage() {}
  285. func (*Vector) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{9} }
  286. type Counter struct {
  287. ID ShortID `protobuf:"varint,1,opt,name=id,proto3,customtype=ShortID" json:"id"`
  288. Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  289. }
  290. func (m *Counter) Reset() { *m = Counter{} }
  291. func (m *Counter) String() string { return proto.CompactTextString(m) }
  292. func (*Counter) ProtoMessage() {}
  293. func (*Counter) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{10} }
  294. type Request struct {
  295. ID int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  296. Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder,omitempty"`
  297. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
  298. Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
  299. Size int32 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
  300. Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
  301. FromTemporary bool `protobuf:"varint,7,opt,name=from_temporary,json=fromTemporary,proto3" json:"from_temporary,omitempty"`
  302. }
  303. func (m *Request) Reset() { *m = Request{} }
  304. func (m *Request) String() string { return proto.CompactTextString(m) }
  305. func (*Request) ProtoMessage() {}
  306. func (*Request) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{11} }
  307. type Response struct {
  308. ID int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  309. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
  310. Code ErrorCode `protobuf:"varint,3,opt,name=code,proto3,enum=protocol.ErrorCode" json:"code,omitempty"`
  311. }
  312. func (m *Response) Reset() { *m = Response{} }
  313. func (m *Response) String() string { return proto.CompactTextString(m) }
  314. func (*Response) ProtoMessage() {}
  315. func (*Response) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{12} }
  316. type DownloadProgress struct {
  317. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder,omitempty"`
  318. Updates []FileDownloadProgressUpdate `protobuf:"bytes,2,rep,name=updates" json:"updates"`
  319. }
  320. func (m *DownloadProgress) Reset() { *m = DownloadProgress{} }
  321. func (m *DownloadProgress) String() string { return proto.CompactTextString(m) }
  322. func (*DownloadProgress) ProtoMessage() {}
  323. func (*DownloadProgress) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{13} }
  324. type FileDownloadProgressUpdate struct {
  325. UpdateType FileDownloadProgressUpdateType `protobuf:"varint,1,opt,name=update_type,json=updateType,proto3,enum=protocol.FileDownloadProgressUpdateType" json:"update_type,omitempty"`
  326. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
  327. Version Vector `protobuf:"bytes,3,opt,name=version" json:"version"`
  328. BlockIndexes []int32 `protobuf:"varint,4,rep,name=block_indexes,json=blockIndexes" json:"block_indexes,omitempty"`
  329. }
  330. func (m *FileDownloadProgressUpdate) Reset() { *m = FileDownloadProgressUpdate{} }
  331. func (m *FileDownloadProgressUpdate) String() string { return proto.CompactTextString(m) }
  332. func (*FileDownloadProgressUpdate) ProtoMessage() {}
  333. func (*FileDownloadProgressUpdate) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{14} }
  334. type Ping struct {
  335. }
  336. func (m *Ping) Reset() { *m = Ping{} }
  337. func (m *Ping) String() string { return proto.CompactTextString(m) }
  338. func (*Ping) ProtoMessage() {}
  339. func (*Ping) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{15} }
  340. type Close struct {
  341. Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason,omitempty"`
  342. }
  343. func (m *Close) Reset() { *m = Close{} }
  344. func (m *Close) String() string { return proto.CompactTextString(m) }
  345. func (*Close) ProtoMessage() {}
  346. func (*Close) Descriptor() ([]byte, []int) { return fileDescriptorBep, []int{16} }
  347. func init() {
  348. proto.RegisterType((*Hello)(nil), "protocol.Hello")
  349. proto.RegisterType((*Header)(nil), "protocol.Header")
  350. proto.RegisterType((*ClusterConfig)(nil), "protocol.ClusterConfig")
  351. proto.RegisterType((*Folder)(nil), "protocol.Folder")
  352. proto.RegisterType((*Device)(nil), "protocol.Device")
  353. proto.RegisterType((*Index)(nil), "protocol.Index")
  354. proto.RegisterType((*IndexUpdate)(nil), "protocol.IndexUpdate")
  355. proto.RegisterType((*FileInfo)(nil), "protocol.FileInfo")
  356. proto.RegisterType((*BlockInfo)(nil), "protocol.BlockInfo")
  357. proto.RegisterType((*Vector)(nil), "protocol.Vector")
  358. proto.RegisterType((*Counter)(nil), "protocol.Counter")
  359. proto.RegisterType((*Request)(nil), "protocol.Request")
  360. proto.RegisterType((*Response)(nil), "protocol.Response")
  361. proto.RegisterType((*DownloadProgress)(nil), "protocol.DownloadProgress")
  362. proto.RegisterType((*FileDownloadProgressUpdate)(nil), "protocol.FileDownloadProgressUpdate")
  363. proto.RegisterType((*Ping)(nil), "protocol.Ping")
  364. proto.RegisterType((*Close)(nil), "protocol.Close")
  365. proto.RegisterEnum("protocol.MessageType", MessageType_name, MessageType_value)
  366. proto.RegisterEnum("protocol.MessageCompression", MessageCompression_name, MessageCompression_value)
  367. proto.RegisterEnum("protocol.Compression", Compression_name, Compression_value)
  368. proto.RegisterEnum("protocol.FileInfoType", FileInfoType_name, FileInfoType_value)
  369. proto.RegisterEnum("protocol.ErrorCode", ErrorCode_name, ErrorCode_value)
  370. proto.RegisterEnum("protocol.FileDownloadProgressUpdateType", FileDownloadProgressUpdateType_name, FileDownloadProgressUpdateType_value)
  371. }
  372. func (m *Hello) Marshal() (dAtA []byte, err error) {
  373. size := m.ProtoSize()
  374. dAtA = make([]byte, size)
  375. n, err := m.MarshalTo(dAtA)
  376. if err != nil {
  377. return nil, err
  378. }
  379. return dAtA[:n], nil
  380. }
  381. func (m *Hello) MarshalTo(dAtA []byte) (int, error) {
  382. var i int
  383. _ = i
  384. var l int
  385. _ = l
  386. if len(m.DeviceName) > 0 {
  387. dAtA[i] = 0xa
  388. i++
  389. i = encodeVarintBep(dAtA, i, uint64(len(m.DeviceName)))
  390. i += copy(dAtA[i:], m.DeviceName)
  391. }
  392. if len(m.ClientName) > 0 {
  393. dAtA[i] = 0x12
  394. i++
  395. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientName)))
  396. i += copy(dAtA[i:], m.ClientName)
  397. }
  398. if len(m.ClientVersion) > 0 {
  399. dAtA[i] = 0x1a
  400. i++
  401. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientVersion)))
  402. i += copy(dAtA[i:], m.ClientVersion)
  403. }
  404. return i, nil
  405. }
  406. func (m *Header) Marshal() (dAtA []byte, err error) {
  407. size := m.ProtoSize()
  408. dAtA = make([]byte, size)
  409. n, err := m.MarshalTo(dAtA)
  410. if err != nil {
  411. return nil, err
  412. }
  413. return dAtA[:n], nil
  414. }
  415. func (m *Header) MarshalTo(dAtA []byte) (int, error) {
  416. var i int
  417. _ = i
  418. var l int
  419. _ = l
  420. if m.Type != 0 {
  421. dAtA[i] = 0x8
  422. i++
  423. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  424. }
  425. if m.Compression != 0 {
  426. dAtA[i] = 0x10
  427. i++
  428. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  429. }
  430. return i, nil
  431. }
  432. func (m *ClusterConfig) Marshal() (dAtA []byte, err error) {
  433. size := m.ProtoSize()
  434. dAtA = make([]byte, size)
  435. n, err := m.MarshalTo(dAtA)
  436. if err != nil {
  437. return nil, err
  438. }
  439. return dAtA[:n], nil
  440. }
  441. func (m *ClusterConfig) MarshalTo(dAtA []byte) (int, error) {
  442. var i int
  443. _ = i
  444. var l int
  445. _ = l
  446. if len(m.Folders) > 0 {
  447. for _, msg := range m.Folders {
  448. dAtA[i] = 0xa
  449. i++
  450. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  451. n, err := msg.MarshalTo(dAtA[i:])
  452. if err != nil {
  453. return 0, err
  454. }
  455. i += n
  456. }
  457. }
  458. return i, nil
  459. }
  460. func (m *Folder) Marshal() (dAtA []byte, err error) {
  461. size := m.ProtoSize()
  462. dAtA = make([]byte, size)
  463. n, err := m.MarshalTo(dAtA)
  464. if err != nil {
  465. return nil, err
  466. }
  467. return dAtA[:n], nil
  468. }
  469. func (m *Folder) MarshalTo(dAtA []byte) (int, error) {
  470. var i int
  471. _ = i
  472. var l int
  473. _ = l
  474. if len(m.ID) > 0 {
  475. dAtA[i] = 0xa
  476. i++
  477. i = encodeVarintBep(dAtA, i, uint64(len(m.ID)))
  478. i += copy(dAtA[i:], m.ID)
  479. }
  480. if len(m.Label) > 0 {
  481. dAtA[i] = 0x12
  482. i++
  483. i = encodeVarintBep(dAtA, i, uint64(len(m.Label)))
  484. i += copy(dAtA[i:], m.Label)
  485. }
  486. if m.ReadOnly {
  487. dAtA[i] = 0x18
  488. i++
  489. if m.ReadOnly {
  490. dAtA[i] = 1
  491. } else {
  492. dAtA[i] = 0
  493. }
  494. i++
  495. }
  496. if m.IgnorePermissions {
  497. dAtA[i] = 0x20
  498. i++
  499. if m.IgnorePermissions {
  500. dAtA[i] = 1
  501. } else {
  502. dAtA[i] = 0
  503. }
  504. i++
  505. }
  506. if m.IgnoreDelete {
  507. dAtA[i] = 0x28
  508. i++
  509. if m.IgnoreDelete {
  510. dAtA[i] = 1
  511. } else {
  512. dAtA[i] = 0
  513. }
  514. i++
  515. }
  516. if m.DisableTempIndexes {
  517. dAtA[i] = 0x30
  518. i++
  519. if m.DisableTempIndexes {
  520. dAtA[i] = 1
  521. } else {
  522. dAtA[i] = 0
  523. }
  524. i++
  525. }
  526. if m.Paused {
  527. dAtA[i] = 0x38
  528. i++
  529. if m.Paused {
  530. dAtA[i] = 1
  531. } else {
  532. dAtA[i] = 0
  533. }
  534. i++
  535. }
  536. if len(m.Devices) > 0 {
  537. for _, msg := range m.Devices {
  538. dAtA[i] = 0x82
  539. i++
  540. dAtA[i] = 0x1
  541. i++
  542. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  543. n, err := msg.MarshalTo(dAtA[i:])
  544. if err != nil {
  545. return 0, err
  546. }
  547. i += n
  548. }
  549. }
  550. return i, nil
  551. }
  552. func (m *Device) Marshal() (dAtA []byte, err error) {
  553. size := m.ProtoSize()
  554. dAtA = make([]byte, size)
  555. n, err := m.MarshalTo(dAtA)
  556. if err != nil {
  557. return nil, err
  558. }
  559. return dAtA[:n], nil
  560. }
  561. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  562. var i int
  563. _ = i
  564. var l int
  565. _ = l
  566. dAtA[i] = 0xa
  567. i++
  568. i = encodeVarintBep(dAtA, i, uint64(m.ID.ProtoSize()))
  569. n1, err := m.ID.MarshalTo(dAtA[i:])
  570. if err != nil {
  571. return 0, err
  572. }
  573. i += n1
  574. if len(m.Name) > 0 {
  575. dAtA[i] = 0x12
  576. i++
  577. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  578. i += copy(dAtA[i:], m.Name)
  579. }
  580. if len(m.Addresses) > 0 {
  581. for _, s := range m.Addresses {
  582. dAtA[i] = 0x1a
  583. i++
  584. l = len(s)
  585. for l >= 1<<7 {
  586. dAtA[i] = uint8(uint64(l)&0x7f | 0x80)
  587. l >>= 7
  588. i++
  589. }
  590. dAtA[i] = uint8(l)
  591. i++
  592. i += copy(dAtA[i:], s)
  593. }
  594. }
  595. if m.Compression != 0 {
  596. dAtA[i] = 0x20
  597. i++
  598. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  599. }
  600. if len(m.CertName) > 0 {
  601. dAtA[i] = 0x2a
  602. i++
  603. i = encodeVarintBep(dAtA, i, uint64(len(m.CertName)))
  604. i += copy(dAtA[i:], m.CertName)
  605. }
  606. if m.MaxSequence != 0 {
  607. dAtA[i] = 0x30
  608. i++
  609. i = encodeVarintBep(dAtA, i, uint64(m.MaxSequence))
  610. }
  611. if m.Introducer {
  612. dAtA[i] = 0x38
  613. i++
  614. if m.Introducer {
  615. dAtA[i] = 1
  616. } else {
  617. dAtA[i] = 0
  618. }
  619. i++
  620. }
  621. if m.IndexID != 0 {
  622. dAtA[i] = 0x40
  623. i++
  624. i = encodeVarintBep(dAtA, i, uint64(m.IndexID))
  625. }
  626. if m.SkipIntroductionRemovals {
  627. dAtA[i] = 0x48
  628. i++
  629. if m.SkipIntroductionRemovals {
  630. dAtA[i] = 1
  631. } else {
  632. dAtA[i] = 0
  633. }
  634. i++
  635. }
  636. return i, nil
  637. }
  638. func (m *Index) Marshal() (dAtA []byte, err error) {
  639. size := m.ProtoSize()
  640. dAtA = make([]byte, size)
  641. n, err := m.MarshalTo(dAtA)
  642. if err != nil {
  643. return nil, err
  644. }
  645. return dAtA[:n], nil
  646. }
  647. func (m *Index) MarshalTo(dAtA []byte) (int, error) {
  648. var i int
  649. _ = i
  650. var l int
  651. _ = l
  652. if len(m.Folder) > 0 {
  653. dAtA[i] = 0xa
  654. i++
  655. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  656. i += copy(dAtA[i:], m.Folder)
  657. }
  658. if len(m.Files) > 0 {
  659. for _, msg := range m.Files {
  660. dAtA[i] = 0x12
  661. i++
  662. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  663. n, err := msg.MarshalTo(dAtA[i:])
  664. if err != nil {
  665. return 0, err
  666. }
  667. i += n
  668. }
  669. }
  670. return i, nil
  671. }
  672. func (m *IndexUpdate) Marshal() (dAtA []byte, err error) {
  673. size := m.ProtoSize()
  674. dAtA = make([]byte, size)
  675. n, err := m.MarshalTo(dAtA)
  676. if err != nil {
  677. return nil, err
  678. }
  679. return dAtA[:n], nil
  680. }
  681. func (m *IndexUpdate) MarshalTo(dAtA []byte) (int, error) {
  682. var i int
  683. _ = i
  684. var l int
  685. _ = l
  686. if len(m.Folder) > 0 {
  687. dAtA[i] = 0xa
  688. i++
  689. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  690. i += copy(dAtA[i:], m.Folder)
  691. }
  692. if len(m.Files) > 0 {
  693. for _, msg := range m.Files {
  694. dAtA[i] = 0x12
  695. i++
  696. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  697. n, err := msg.MarshalTo(dAtA[i:])
  698. if err != nil {
  699. return 0, err
  700. }
  701. i += n
  702. }
  703. }
  704. return i, nil
  705. }
  706. func (m *FileInfo) Marshal() (dAtA []byte, err error) {
  707. size := m.ProtoSize()
  708. dAtA = make([]byte, size)
  709. n, err := m.MarshalTo(dAtA)
  710. if err != nil {
  711. return nil, err
  712. }
  713. return dAtA[:n], nil
  714. }
  715. func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) {
  716. var i int
  717. _ = i
  718. var l int
  719. _ = l
  720. if len(m.Name) > 0 {
  721. dAtA[i] = 0xa
  722. i++
  723. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  724. i += copy(dAtA[i:], m.Name)
  725. }
  726. if m.Type != 0 {
  727. dAtA[i] = 0x10
  728. i++
  729. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  730. }
  731. if m.Size != 0 {
  732. dAtA[i] = 0x18
  733. i++
  734. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  735. }
  736. if m.Permissions != 0 {
  737. dAtA[i] = 0x20
  738. i++
  739. i = encodeVarintBep(dAtA, i, uint64(m.Permissions))
  740. }
  741. if m.ModifiedS != 0 {
  742. dAtA[i] = 0x28
  743. i++
  744. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedS))
  745. }
  746. if m.Deleted {
  747. dAtA[i] = 0x30
  748. i++
  749. if m.Deleted {
  750. dAtA[i] = 1
  751. } else {
  752. dAtA[i] = 0
  753. }
  754. i++
  755. }
  756. if m.Invalid {
  757. dAtA[i] = 0x38
  758. i++
  759. if m.Invalid {
  760. dAtA[i] = 1
  761. } else {
  762. dAtA[i] = 0
  763. }
  764. i++
  765. }
  766. if m.NoPermissions {
  767. dAtA[i] = 0x40
  768. i++
  769. if m.NoPermissions {
  770. dAtA[i] = 1
  771. } else {
  772. dAtA[i] = 0
  773. }
  774. i++
  775. }
  776. dAtA[i] = 0x4a
  777. i++
  778. i = encodeVarintBep(dAtA, i, uint64(m.Version.ProtoSize()))
  779. n2, err := m.Version.MarshalTo(dAtA[i:])
  780. if err != nil {
  781. return 0, err
  782. }
  783. i += n2
  784. if m.Sequence != 0 {
  785. dAtA[i] = 0x50
  786. i++
  787. i = encodeVarintBep(dAtA, i, uint64(m.Sequence))
  788. }
  789. if m.ModifiedNs != 0 {
  790. dAtA[i] = 0x58
  791. i++
  792. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedNs))
  793. }
  794. if m.ModifiedBy != 0 {
  795. dAtA[i] = 0x60
  796. i++
  797. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedBy))
  798. }
  799. if m.RawBlockSize != 0 {
  800. dAtA[i] = 0x68
  801. i++
  802. i = encodeVarintBep(dAtA, i, uint64(m.RawBlockSize))
  803. }
  804. if len(m.Blocks) > 0 {
  805. for _, msg := range m.Blocks {
  806. dAtA[i] = 0x82
  807. i++
  808. dAtA[i] = 0x1
  809. i++
  810. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  811. n, err := msg.MarshalTo(dAtA[i:])
  812. if err != nil {
  813. return 0, err
  814. }
  815. i += n
  816. }
  817. }
  818. if len(m.SymlinkTarget) > 0 {
  819. dAtA[i] = 0x8a
  820. i++
  821. dAtA[i] = 0x1
  822. i++
  823. i = encodeVarintBep(dAtA, i, uint64(len(m.SymlinkTarget)))
  824. i += copy(dAtA[i:], m.SymlinkTarget)
  825. }
  826. return i, nil
  827. }
  828. func (m *BlockInfo) Marshal() (dAtA []byte, err error) {
  829. size := m.ProtoSize()
  830. dAtA = make([]byte, size)
  831. n, err := m.MarshalTo(dAtA)
  832. if err != nil {
  833. return nil, err
  834. }
  835. return dAtA[:n], nil
  836. }
  837. func (m *BlockInfo) MarshalTo(dAtA []byte) (int, error) {
  838. var i int
  839. _ = i
  840. var l int
  841. _ = l
  842. if m.Offset != 0 {
  843. dAtA[i] = 0x8
  844. i++
  845. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  846. }
  847. if m.Size != 0 {
  848. dAtA[i] = 0x10
  849. i++
  850. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  851. }
  852. if len(m.Hash) > 0 {
  853. dAtA[i] = 0x1a
  854. i++
  855. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  856. i += copy(dAtA[i:], m.Hash)
  857. }
  858. if m.WeakHash != 0 {
  859. dAtA[i] = 0x20
  860. i++
  861. i = encodeVarintBep(dAtA, i, uint64(m.WeakHash))
  862. }
  863. return i, nil
  864. }
  865. func (m *Vector) Marshal() (dAtA []byte, err error) {
  866. size := m.ProtoSize()
  867. dAtA = make([]byte, size)
  868. n, err := m.MarshalTo(dAtA)
  869. if err != nil {
  870. return nil, err
  871. }
  872. return dAtA[:n], nil
  873. }
  874. func (m *Vector) MarshalTo(dAtA []byte) (int, error) {
  875. var i int
  876. _ = i
  877. var l int
  878. _ = l
  879. if len(m.Counters) > 0 {
  880. for _, msg := range m.Counters {
  881. dAtA[i] = 0xa
  882. i++
  883. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  884. n, err := msg.MarshalTo(dAtA[i:])
  885. if err != nil {
  886. return 0, err
  887. }
  888. i += n
  889. }
  890. }
  891. return i, nil
  892. }
  893. func (m *Counter) Marshal() (dAtA []byte, err error) {
  894. size := m.ProtoSize()
  895. dAtA = make([]byte, size)
  896. n, err := m.MarshalTo(dAtA)
  897. if err != nil {
  898. return nil, err
  899. }
  900. return dAtA[:n], nil
  901. }
  902. func (m *Counter) MarshalTo(dAtA []byte) (int, error) {
  903. var i int
  904. _ = i
  905. var l int
  906. _ = l
  907. if m.ID != 0 {
  908. dAtA[i] = 0x8
  909. i++
  910. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  911. }
  912. if m.Value != 0 {
  913. dAtA[i] = 0x10
  914. i++
  915. i = encodeVarintBep(dAtA, i, uint64(m.Value))
  916. }
  917. return i, nil
  918. }
  919. func (m *Request) Marshal() (dAtA []byte, err error) {
  920. size := m.ProtoSize()
  921. dAtA = make([]byte, size)
  922. n, err := m.MarshalTo(dAtA)
  923. if err != nil {
  924. return nil, err
  925. }
  926. return dAtA[:n], nil
  927. }
  928. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  929. var i int
  930. _ = i
  931. var l int
  932. _ = l
  933. if m.ID != 0 {
  934. dAtA[i] = 0x8
  935. i++
  936. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  937. }
  938. if len(m.Folder) > 0 {
  939. dAtA[i] = 0x12
  940. i++
  941. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  942. i += copy(dAtA[i:], m.Folder)
  943. }
  944. if len(m.Name) > 0 {
  945. dAtA[i] = 0x1a
  946. i++
  947. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  948. i += copy(dAtA[i:], m.Name)
  949. }
  950. if m.Offset != 0 {
  951. dAtA[i] = 0x20
  952. i++
  953. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  954. }
  955. if m.Size != 0 {
  956. dAtA[i] = 0x28
  957. i++
  958. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  959. }
  960. if len(m.Hash) > 0 {
  961. dAtA[i] = 0x32
  962. i++
  963. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  964. i += copy(dAtA[i:], m.Hash)
  965. }
  966. if m.FromTemporary {
  967. dAtA[i] = 0x38
  968. i++
  969. if m.FromTemporary {
  970. dAtA[i] = 1
  971. } else {
  972. dAtA[i] = 0
  973. }
  974. i++
  975. }
  976. return i, nil
  977. }
  978. func (m *Response) Marshal() (dAtA []byte, err error) {
  979. size := m.ProtoSize()
  980. dAtA = make([]byte, size)
  981. n, err := m.MarshalTo(dAtA)
  982. if err != nil {
  983. return nil, err
  984. }
  985. return dAtA[:n], nil
  986. }
  987. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  988. var i int
  989. _ = i
  990. var l int
  991. _ = l
  992. if m.ID != 0 {
  993. dAtA[i] = 0x8
  994. i++
  995. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  996. }
  997. if len(m.Data) > 0 {
  998. dAtA[i] = 0x12
  999. i++
  1000. i = encodeVarintBep(dAtA, i, uint64(len(m.Data)))
  1001. i += copy(dAtA[i:], m.Data)
  1002. }
  1003. if m.Code != 0 {
  1004. dAtA[i] = 0x18
  1005. i++
  1006. i = encodeVarintBep(dAtA, i, uint64(m.Code))
  1007. }
  1008. return i, nil
  1009. }
  1010. func (m *DownloadProgress) Marshal() (dAtA []byte, err error) {
  1011. size := m.ProtoSize()
  1012. dAtA = make([]byte, size)
  1013. n, err := m.MarshalTo(dAtA)
  1014. if err != nil {
  1015. return nil, err
  1016. }
  1017. return dAtA[:n], nil
  1018. }
  1019. func (m *DownloadProgress) MarshalTo(dAtA []byte) (int, error) {
  1020. var i int
  1021. _ = i
  1022. var l int
  1023. _ = l
  1024. if len(m.Folder) > 0 {
  1025. dAtA[i] = 0xa
  1026. i++
  1027. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1028. i += copy(dAtA[i:], m.Folder)
  1029. }
  1030. if len(m.Updates) > 0 {
  1031. for _, msg := range m.Updates {
  1032. dAtA[i] = 0x12
  1033. i++
  1034. i = encodeVarintBep(dAtA, i, uint64(msg.ProtoSize()))
  1035. n, err := msg.MarshalTo(dAtA[i:])
  1036. if err != nil {
  1037. return 0, err
  1038. }
  1039. i += n
  1040. }
  1041. }
  1042. return i, nil
  1043. }
  1044. func (m *FileDownloadProgressUpdate) Marshal() (dAtA []byte, err error) {
  1045. size := m.ProtoSize()
  1046. dAtA = make([]byte, size)
  1047. n, err := m.MarshalTo(dAtA)
  1048. if err != nil {
  1049. return nil, err
  1050. }
  1051. return dAtA[:n], nil
  1052. }
  1053. func (m *FileDownloadProgressUpdate) MarshalTo(dAtA []byte) (int, error) {
  1054. var i int
  1055. _ = i
  1056. var l int
  1057. _ = l
  1058. if m.UpdateType != 0 {
  1059. dAtA[i] = 0x8
  1060. i++
  1061. i = encodeVarintBep(dAtA, i, uint64(m.UpdateType))
  1062. }
  1063. if len(m.Name) > 0 {
  1064. dAtA[i] = 0x12
  1065. i++
  1066. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1067. i += copy(dAtA[i:], m.Name)
  1068. }
  1069. dAtA[i] = 0x1a
  1070. i++
  1071. i = encodeVarintBep(dAtA, i, uint64(m.Version.ProtoSize()))
  1072. n3, err := m.Version.MarshalTo(dAtA[i:])
  1073. if err != nil {
  1074. return 0, err
  1075. }
  1076. i += n3
  1077. if len(m.BlockIndexes) > 0 {
  1078. for _, num := range m.BlockIndexes {
  1079. dAtA[i] = 0x20
  1080. i++
  1081. i = encodeVarintBep(dAtA, i, uint64(num))
  1082. }
  1083. }
  1084. return i, nil
  1085. }
  1086. func (m *Ping) Marshal() (dAtA []byte, err error) {
  1087. size := m.ProtoSize()
  1088. dAtA = make([]byte, size)
  1089. n, err := m.MarshalTo(dAtA)
  1090. if err != nil {
  1091. return nil, err
  1092. }
  1093. return dAtA[:n], nil
  1094. }
  1095. func (m *Ping) MarshalTo(dAtA []byte) (int, error) {
  1096. var i int
  1097. _ = i
  1098. var l int
  1099. _ = l
  1100. return i, nil
  1101. }
  1102. func (m *Close) Marshal() (dAtA []byte, err error) {
  1103. size := m.ProtoSize()
  1104. dAtA = make([]byte, size)
  1105. n, err := m.MarshalTo(dAtA)
  1106. if err != nil {
  1107. return nil, err
  1108. }
  1109. return dAtA[:n], nil
  1110. }
  1111. func (m *Close) MarshalTo(dAtA []byte) (int, error) {
  1112. var i int
  1113. _ = i
  1114. var l int
  1115. _ = l
  1116. if len(m.Reason) > 0 {
  1117. dAtA[i] = 0xa
  1118. i++
  1119. i = encodeVarintBep(dAtA, i, uint64(len(m.Reason)))
  1120. i += copy(dAtA[i:], m.Reason)
  1121. }
  1122. return i, nil
  1123. }
  1124. func encodeFixed64Bep(dAtA []byte, offset int, v uint64) int {
  1125. dAtA[offset] = uint8(v)
  1126. dAtA[offset+1] = uint8(v >> 8)
  1127. dAtA[offset+2] = uint8(v >> 16)
  1128. dAtA[offset+3] = uint8(v >> 24)
  1129. dAtA[offset+4] = uint8(v >> 32)
  1130. dAtA[offset+5] = uint8(v >> 40)
  1131. dAtA[offset+6] = uint8(v >> 48)
  1132. dAtA[offset+7] = uint8(v >> 56)
  1133. return offset + 8
  1134. }
  1135. func encodeFixed32Bep(dAtA []byte, offset int, v uint32) int {
  1136. dAtA[offset] = uint8(v)
  1137. dAtA[offset+1] = uint8(v >> 8)
  1138. dAtA[offset+2] = uint8(v >> 16)
  1139. dAtA[offset+3] = uint8(v >> 24)
  1140. return offset + 4
  1141. }
  1142. func encodeVarintBep(dAtA []byte, offset int, v uint64) int {
  1143. for v >= 1<<7 {
  1144. dAtA[offset] = uint8(v&0x7f | 0x80)
  1145. v >>= 7
  1146. offset++
  1147. }
  1148. dAtA[offset] = uint8(v)
  1149. return offset + 1
  1150. }
  1151. func (m *Hello) ProtoSize() (n int) {
  1152. var l int
  1153. _ = l
  1154. l = len(m.DeviceName)
  1155. if l > 0 {
  1156. n += 1 + l + sovBep(uint64(l))
  1157. }
  1158. l = len(m.ClientName)
  1159. if l > 0 {
  1160. n += 1 + l + sovBep(uint64(l))
  1161. }
  1162. l = len(m.ClientVersion)
  1163. if l > 0 {
  1164. n += 1 + l + sovBep(uint64(l))
  1165. }
  1166. return n
  1167. }
  1168. func (m *Header) ProtoSize() (n int) {
  1169. var l int
  1170. _ = l
  1171. if m.Type != 0 {
  1172. n += 1 + sovBep(uint64(m.Type))
  1173. }
  1174. if m.Compression != 0 {
  1175. n += 1 + sovBep(uint64(m.Compression))
  1176. }
  1177. return n
  1178. }
  1179. func (m *ClusterConfig) ProtoSize() (n int) {
  1180. var l int
  1181. _ = l
  1182. if len(m.Folders) > 0 {
  1183. for _, e := range m.Folders {
  1184. l = e.ProtoSize()
  1185. n += 1 + l + sovBep(uint64(l))
  1186. }
  1187. }
  1188. return n
  1189. }
  1190. func (m *Folder) ProtoSize() (n int) {
  1191. var l int
  1192. _ = l
  1193. l = len(m.ID)
  1194. if l > 0 {
  1195. n += 1 + l + sovBep(uint64(l))
  1196. }
  1197. l = len(m.Label)
  1198. if l > 0 {
  1199. n += 1 + l + sovBep(uint64(l))
  1200. }
  1201. if m.ReadOnly {
  1202. n += 2
  1203. }
  1204. if m.IgnorePermissions {
  1205. n += 2
  1206. }
  1207. if m.IgnoreDelete {
  1208. n += 2
  1209. }
  1210. if m.DisableTempIndexes {
  1211. n += 2
  1212. }
  1213. if m.Paused {
  1214. n += 2
  1215. }
  1216. if len(m.Devices) > 0 {
  1217. for _, e := range m.Devices {
  1218. l = e.ProtoSize()
  1219. n += 2 + l + sovBep(uint64(l))
  1220. }
  1221. }
  1222. return n
  1223. }
  1224. func (m *Device) ProtoSize() (n int) {
  1225. var l int
  1226. _ = l
  1227. l = m.ID.ProtoSize()
  1228. n += 1 + l + sovBep(uint64(l))
  1229. l = len(m.Name)
  1230. if l > 0 {
  1231. n += 1 + l + sovBep(uint64(l))
  1232. }
  1233. if len(m.Addresses) > 0 {
  1234. for _, s := range m.Addresses {
  1235. l = len(s)
  1236. n += 1 + l + sovBep(uint64(l))
  1237. }
  1238. }
  1239. if m.Compression != 0 {
  1240. n += 1 + sovBep(uint64(m.Compression))
  1241. }
  1242. l = len(m.CertName)
  1243. if l > 0 {
  1244. n += 1 + l + sovBep(uint64(l))
  1245. }
  1246. if m.MaxSequence != 0 {
  1247. n += 1 + sovBep(uint64(m.MaxSequence))
  1248. }
  1249. if m.Introducer {
  1250. n += 2
  1251. }
  1252. if m.IndexID != 0 {
  1253. n += 1 + sovBep(uint64(m.IndexID))
  1254. }
  1255. if m.SkipIntroductionRemovals {
  1256. n += 2
  1257. }
  1258. return n
  1259. }
  1260. func (m *Index) ProtoSize() (n int) {
  1261. var l int
  1262. _ = l
  1263. l = len(m.Folder)
  1264. if l > 0 {
  1265. n += 1 + l + sovBep(uint64(l))
  1266. }
  1267. if len(m.Files) > 0 {
  1268. for _, e := range m.Files {
  1269. l = e.ProtoSize()
  1270. n += 1 + l + sovBep(uint64(l))
  1271. }
  1272. }
  1273. return n
  1274. }
  1275. func (m *IndexUpdate) ProtoSize() (n int) {
  1276. var l int
  1277. _ = l
  1278. l = len(m.Folder)
  1279. if l > 0 {
  1280. n += 1 + l + sovBep(uint64(l))
  1281. }
  1282. if len(m.Files) > 0 {
  1283. for _, e := range m.Files {
  1284. l = e.ProtoSize()
  1285. n += 1 + l + sovBep(uint64(l))
  1286. }
  1287. }
  1288. return n
  1289. }
  1290. func (m *FileInfo) ProtoSize() (n int) {
  1291. var l int
  1292. _ = l
  1293. l = len(m.Name)
  1294. if l > 0 {
  1295. n += 1 + l + sovBep(uint64(l))
  1296. }
  1297. if m.Type != 0 {
  1298. n += 1 + sovBep(uint64(m.Type))
  1299. }
  1300. if m.Size != 0 {
  1301. n += 1 + sovBep(uint64(m.Size))
  1302. }
  1303. if m.Permissions != 0 {
  1304. n += 1 + sovBep(uint64(m.Permissions))
  1305. }
  1306. if m.ModifiedS != 0 {
  1307. n += 1 + sovBep(uint64(m.ModifiedS))
  1308. }
  1309. if m.Deleted {
  1310. n += 2
  1311. }
  1312. if m.Invalid {
  1313. n += 2
  1314. }
  1315. if m.NoPermissions {
  1316. n += 2
  1317. }
  1318. l = m.Version.ProtoSize()
  1319. n += 1 + l + sovBep(uint64(l))
  1320. if m.Sequence != 0 {
  1321. n += 1 + sovBep(uint64(m.Sequence))
  1322. }
  1323. if m.ModifiedNs != 0 {
  1324. n += 1 + sovBep(uint64(m.ModifiedNs))
  1325. }
  1326. if m.ModifiedBy != 0 {
  1327. n += 1 + sovBep(uint64(m.ModifiedBy))
  1328. }
  1329. if m.RawBlockSize != 0 {
  1330. n += 1 + sovBep(uint64(m.RawBlockSize))
  1331. }
  1332. if len(m.Blocks) > 0 {
  1333. for _, e := range m.Blocks {
  1334. l = e.ProtoSize()
  1335. n += 2 + l + sovBep(uint64(l))
  1336. }
  1337. }
  1338. l = len(m.SymlinkTarget)
  1339. if l > 0 {
  1340. n += 2 + l + sovBep(uint64(l))
  1341. }
  1342. return n
  1343. }
  1344. func (m *BlockInfo) ProtoSize() (n int) {
  1345. var l int
  1346. _ = l
  1347. if m.Offset != 0 {
  1348. n += 1 + sovBep(uint64(m.Offset))
  1349. }
  1350. if m.Size != 0 {
  1351. n += 1 + sovBep(uint64(m.Size))
  1352. }
  1353. l = len(m.Hash)
  1354. if l > 0 {
  1355. n += 1 + l + sovBep(uint64(l))
  1356. }
  1357. if m.WeakHash != 0 {
  1358. n += 1 + sovBep(uint64(m.WeakHash))
  1359. }
  1360. return n
  1361. }
  1362. func (m *Vector) ProtoSize() (n int) {
  1363. var l int
  1364. _ = l
  1365. if len(m.Counters) > 0 {
  1366. for _, e := range m.Counters {
  1367. l = e.ProtoSize()
  1368. n += 1 + l + sovBep(uint64(l))
  1369. }
  1370. }
  1371. return n
  1372. }
  1373. func (m *Counter) ProtoSize() (n int) {
  1374. var l int
  1375. _ = l
  1376. if m.ID != 0 {
  1377. n += 1 + sovBep(uint64(m.ID))
  1378. }
  1379. if m.Value != 0 {
  1380. n += 1 + sovBep(uint64(m.Value))
  1381. }
  1382. return n
  1383. }
  1384. func (m *Request) ProtoSize() (n int) {
  1385. var l int
  1386. _ = l
  1387. if m.ID != 0 {
  1388. n += 1 + sovBep(uint64(m.ID))
  1389. }
  1390. l = len(m.Folder)
  1391. if l > 0 {
  1392. n += 1 + l + sovBep(uint64(l))
  1393. }
  1394. l = len(m.Name)
  1395. if l > 0 {
  1396. n += 1 + l + sovBep(uint64(l))
  1397. }
  1398. if m.Offset != 0 {
  1399. n += 1 + sovBep(uint64(m.Offset))
  1400. }
  1401. if m.Size != 0 {
  1402. n += 1 + sovBep(uint64(m.Size))
  1403. }
  1404. l = len(m.Hash)
  1405. if l > 0 {
  1406. n += 1 + l + sovBep(uint64(l))
  1407. }
  1408. if m.FromTemporary {
  1409. n += 2
  1410. }
  1411. return n
  1412. }
  1413. func (m *Response) ProtoSize() (n int) {
  1414. var l int
  1415. _ = l
  1416. if m.ID != 0 {
  1417. n += 1 + sovBep(uint64(m.ID))
  1418. }
  1419. l = len(m.Data)
  1420. if l > 0 {
  1421. n += 1 + l + sovBep(uint64(l))
  1422. }
  1423. if m.Code != 0 {
  1424. n += 1 + sovBep(uint64(m.Code))
  1425. }
  1426. return n
  1427. }
  1428. func (m *DownloadProgress) ProtoSize() (n int) {
  1429. var l int
  1430. _ = l
  1431. l = len(m.Folder)
  1432. if l > 0 {
  1433. n += 1 + l + sovBep(uint64(l))
  1434. }
  1435. if len(m.Updates) > 0 {
  1436. for _, e := range m.Updates {
  1437. l = e.ProtoSize()
  1438. n += 1 + l + sovBep(uint64(l))
  1439. }
  1440. }
  1441. return n
  1442. }
  1443. func (m *FileDownloadProgressUpdate) ProtoSize() (n int) {
  1444. var l int
  1445. _ = l
  1446. if m.UpdateType != 0 {
  1447. n += 1 + sovBep(uint64(m.UpdateType))
  1448. }
  1449. l = len(m.Name)
  1450. if l > 0 {
  1451. n += 1 + l + sovBep(uint64(l))
  1452. }
  1453. l = m.Version.ProtoSize()
  1454. n += 1 + l + sovBep(uint64(l))
  1455. if len(m.BlockIndexes) > 0 {
  1456. for _, e := range m.BlockIndexes {
  1457. n += 1 + sovBep(uint64(e))
  1458. }
  1459. }
  1460. return n
  1461. }
  1462. func (m *Ping) ProtoSize() (n int) {
  1463. var l int
  1464. _ = l
  1465. return n
  1466. }
  1467. func (m *Close) ProtoSize() (n int) {
  1468. var l int
  1469. _ = l
  1470. l = len(m.Reason)
  1471. if l > 0 {
  1472. n += 1 + l + sovBep(uint64(l))
  1473. }
  1474. return n
  1475. }
  1476. func sovBep(x uint64) (n int) {
  1477. for {
  1478. n++
  1479. x >>= 7
  1480. if x == 0 {
  1481. break
  1482. }
  1483. }
  1484. return n
  1485. }
  1486. func sozBep(x uint64) (n int) {
  1487. return sovBep(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1488. }
  1489. func (m *Hello) Unmarshal(dAtA []byte) error {
  1490. l := len(dAtA)
  1491. iNdEx := 0
  1492. for iNdEx < l {
  1493. preIndex := iNdEx
  1494. var wire uint64
  1495. for shift := uint(0); ; shift += 7 {
  1496. if shift >= 64 {
  1497. return ErrIntOverflowBep
  1498. }
  1499. if iNdEx >= l {
  1500. return io.ErrUnexpectedEOF
  1501. }
  1502. b := dAtA[iNdEx]
  1503. iNdEx++
  1504. wire |= (uint64(b) & 0x7F) << shift
  1505. if b < 0x80 {
  1506. break
  1507. }
  1508. }
  1509. fieldNum := int32(wire >> 3)
  1510. wireType := int(wire & 0x7)
  1511. if wireType == 4 {
  1512. return fmt.Errorf("proto: Hello: wiretype end group for non-group")
  1513. }
  1514. if fieldNum <= 0 {
  1515. return fmt.Errorf("proto: Hello: illegal tag %d (wire type %d)", fieldNum, wire)
  1516. }
  1517. switch fieldNum {
  1518. case 1:
  1519. if wireType != 2 {
  1520. return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType)
  1521. }
  1522. var stringLen uint64
  1523. for shift := uint(0); ; shift += 7 {
  1524. if shift >= 64 {
  1525. return ErrIntOverflowBep
  1526. }
  1527. if iNdEx >= l {
  1528. return io.ErrUnexpectedEOF
  1529. }
  1530. b := dAtA[iNdEx]
  1531. iNdEx++
  1532. stringLen |= (uint64(b) & 0x7F) << shift
  1533. if b < 0x80 {
  1534. break
  1535. }
  1536. }
  1537. intStringLen := int(stringLen)
  1538. if intStringLen < 0 {
  1539. return ErrInvalidLengthBep
  1540. }
  1541. postIndex := iNdEx + intStringLen
  1542. if postIndex > l {
  1543. return io.ErrUnexpectedEOF
  1544. }
  1545. m.DeviceName = string(dAtA[iNdEx:postIndex])
  1546. iNdEx = postIndex
  1547. case 2:
  1548. if wireType != 2 {
  1549. return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType)
  1550. }
  1551. var stringLen uint64
  1552. for shift := uint(0); ; shift += 7 {
  1553. if shift >= 64 {
  1554. return ErrIntOverflowBep
  1555. }
  1556. if iNdEx >= l {
  1557. return io.ErrUnexpectedEOF
  1558. }
  1559. b := dAtA[iNdEx]
  1560. iNdEx++
  1561. stringLen |= (uint64(b) & 0x7F) << shift
  1562. if b < 0x80 {
  1563. break
  1564. }
  1565. }
  1566. intStringLen := int(stringLen)
  1567. if intStringLen < 0 {
  1568. return ErrInvalidLengthBep
  1569. }
  1570. postIndex := iNdEx + intStringLen
  1571. if postIndex > l {
  1572. return io.ErrUnexpectedEOF
  1573. }
  1574. m.ClientName = string(dAtA[iNdEx:postIndex])
  1575. iNdEx = postIndex
  1576. case 3:
  1577. if wireType != 2 {
  1578. return fmt.Errorf("proto: wrong wireType = %d for field ClientVersion", wireType)
  1579. }
  1580. var stringLen uint64
  1581. for shift := uint(0); ; shift += 7 {
  1582. if shift >= 64 {
  1583. return ErrIntOverflowBep
  1584. }
  1585. if iNdEx >= l {
  1586. return io.ErrUnexpectedEOF
  1587. }
  1588. b := dAtA[iNdEx]
  1589. iNdEx++
  1590. stringLen |= (uint64(b) & 0x7F) << shift
  1591. if b < 0x80 {
  1592. break
  1593. }
  1594. }
  1595. intStringLen := int(stringLen)
  1596. if intStringLen < 0 {
  1597. return ErrInvalidLengthBep
  1598. }
  1599. postIndex := iNdEx + intStringLen
  1600. if postIndex > l {
  1601. return io.ErrUnexpectedEOF
  1602. }
  1603. m.ClientVersion = string(dAtA[iNdEx:postIndex])
  1604. iNdEx = postIndex
  1605. default:
  1606. iNdEx = preIndex
  1607. skippy, err := skipBep(dAtA[iNdEx:])
  1608. if err != nil {
  1609. return err
  1610. }
  1611. if skippy < 0 {
  1612. return ErrInvalidLengthBep
  1613. }
  1614. if (iNdEx + skippy) > l {
  1615. return io.ErrUnexpectedEOF
  1616. }
  1617. iNdEx += skippy
  1618. }
  1619. }
  1620. if iNdEx > l {
  1621. return io.ErrUnexpectedEOF
  1622. }
  1623. return nil
  1624. }
  1625. func (m *Header) Unmarshal(dAtA []byte) error {
  1626. l := len(dAtA)
  1627. iNdEx := 0
  1628. for iNdEx < l {
  1629. preIndex := iNdEx
  1630. var wire uint64
  1631. for shift := uint(0); ; shift += 7 {
  1632. if shift >= 64 {
  1633. return ErrIntOverflowBep
  1634. }
  1635. if iNdEx >= l {
  1636. return io.ErrUnexpectedEOF
  1637. }
  1638. b := dAtA[iNdEx]
  1639. iNdEx++
  1640. wire |= (uint64(b) & 0x7F) << shift
  1641. if b < 0x80 {
  1642. break
  1643. }
  1644. }
  1645. fieldNum := int32(wire >> 3)
  1646. wireType := int(wire & 0x7)
  1647. if wireType == 4 {
  1648. return fmt.Errorf("proto: Header: wiretype end group for non-group")
  1649. }
  1650. if fieldNum <= 0 {
  1651. return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  1652. }
  1653. switch fieldNum {
  1654. case 1:
  1655. if wireType != 0 {
  1656. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1657. }
  1658. m.Type = 0
  1659. for shift := uint(0); ; shift += 7 {
  1660. if shift >= 64 {
  1661. return ErrIntOverflowBep
  1662. }
  1663. if iNdEx >= l {
  1664. return io.ErrUnexpectedEOF
  1665. }
  1666. b := dAtA[iNdEx]
  1667. iNdEx++
  1668. m.Type |= (MessageType(b) & 0x7F) << shift
  1669. if b < 0x80 {
  1670. break
  1671. }
  1672. }
  1673. case 2:
  1674. if wireType != 0 {
  1675. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  1676. }
  1677. m.Compression = 0
  1678. for shift := uint(0); ; shift += 7 {
  1679. if shift >= 64 {
  1680. return ErrIntOverflowBep
  1681. }
  1682. if iNdEx >= l {
  1683. return io.ErrUnexpectedEOF
  1684. }
  1685. b := dAtA[iNdEx]
  1686. iNdEx++
  1687. m.Compression |= (MessageCompression(b) & 0x7F) << shift
  1688. if b < 0x80 {
  1689. break
  1690. }
  1691. }
  1692. default:
  1693. iNdEx = preIndex
  1694. skippy, err := skipBep(dAtA[iNdEx:])
  1695. if err != nil {
  1696. return err
  1697. }
  1698. if skippy < 0 {
  1699. return ErrInvalidLengthBep
  1700. }
  1701. if (iNdEx + skippy) > l {
  1702. return io.ErrUnexpectedEOF
  1703. }
  1704. iNdEx += skippy
  1705. }
  1706. }
  1707. if iNdEx > l {
  1708. return io.ErrUnexpectedEOF
  1709. }
  1710. return nil
  1711. }
  1712. func (m *ClusterConfig) Unmarshal(dAtA []byte) error {
  1713. l := len(dAtA)
  1714. iNdEx := 0
  1715. for iNdEx < l {
  1716. preIndex := iNdEx
  1717. var wire uint64
  1718. for shift := uint(0); ; shift += 7 {
  1719. if shift >= 64 {
  1720. return ErrIntOverflowBep
  1721. }
  1722. if iNdEx >= l {
  1723. return io.ErrUnexpectedEOF
  1724. }
  1725. b := dAtA[iNdEx]
  1726. iNdEx++
  1727. wire |= (uint64(b) & 0x7F) << shift
  1728. if b < 0x80 {
  1729. break
  1730. }
  1731. }
  1732. fieldNum := int32(wire >> 3)
  1733. wireType := int(wire & 0x7)
  1734. if wireType == 4 {
  1735. return fmt.Errorf("proto: ClusterConfig: wiretype end group for non-group")
  1736. }
  1737. if fieldNum <= 0 {
  1738. return fmt.Errorf("proto: ClusterConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  1739. }
  1740. switch fieldNum {
  1741. case 1:
  1742. if wireType != 2 {
  1743. return fmt.Errorf("proto: wrong wireType = %d for field Folders", wireType)
  1744. }
  1745. var msglen int
  1746. for shift := uint(0); ; shift += 7 {
  1747. if shift >= 64 {
  1748. return ErrIntOverflowBep
  1749. }
  1750. if iNdEx >= l {
  1751. return io.ErrUnexpectedEOF
  1752. }
  1753. b := dAtA[iNdEx]
  1754. iNdEx++
  1755. msglen |= (int(b) & 0x7F) << shift
  1756. if b < 0x80 {
  1757. break
  1758. }
  1759. }
  1760. if msglen < 0 {
  1761. return ErrInvalidLengthBep
  1762. }
  1763. postIndex := iNdEx + msglen
  1764. if postIndex > l {
  1765. return io.ErrUnexpectedEOF
  1766. }
  1767. m.Folders = append(m.Folders, Folder{})
  1768. if err := m.Folders[len(m.Folders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1769. return err
  1770. }
  1771. iNdEx = postIndex
  1772. default:
  1773. iNdEx = preIndex
  1774. skippy, err := skipBep(dAtA[iNdEx:])
  1775. if err != nil {
  1776. return err
  1777. }
  1778. if skippy < 0 {
  1779. return ErrInvalidLengthBep
  1780. }
  1781. if (iNdEx + skippy) > l {
  1782. return io.ErrUnexpectedEOF
  1783. }
  1784. iNdEx += skippy
  1785. }
  1786. }
  1787. if iNdEx > l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. return nil
  1791. }
  1792. func (m *Folder) Unmarshal(dAtA []byte) error {
  1793. l := len(dAtA)
  1794. iNdEx := 0
  1795. for iNdEx < l {
  1796. preIndex := iNdEx
  1797. var wire uint64
  1798. for shift := uint(0); ; shift += 7 {
  1799. if shift >= 64 {
  1800. return ErrIntOverflowBep
  1801. }
  1802. if iNdEx >= l {
  1803. return io.ErrUnexpectedEOF
  1804. }
  1805. b := dAtA[iNdEx]
  1806. iNdEx++
  1807. wire |= (uint64(b) & 0x7F) << shift
  1808. if b < 0x80 {
  1809. break
  1810. }
  1811. }
  1812. fieldNum := int32(wire >> 3)
  1813. wireType := int(wire & 0x7)
  1814. if wireType == 4 {
  1815. return fmt.Errorf("proto: Folder: wiretype end group for non-group")
  1816. }
  1817. if fieldNum <= 0 {
  1818. return fmt.Errorf("proto: Folder: illegal tag %d (wire type %d)", fieldNum, wire)
  1819. }
  1820. switch fieldNum {
  1821. case 1:
  1822. if wireType != 2 {
  1823. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1824. }
  1825. var stringLen uint64
  1826. for shift := uint(0); ; shift += 7 {
  1827. if shift >= 64 {
  1828. return ErrIntOverflowBep
  1829. }
  1830. if iNdEx >= l {
  1831. return io.ErrUnexpectedEOF
  1832. }
  1833. b := dAtA[iNdEx]
  1834. iNdEx++
  1835. stringLen |= (uint64(b) & 0x7F) << shift
  1836. if b < 0x80 {
  1837. break
  1838. }
  1839. }
  1840. intStringLen := int(stringLen)
  1841. if intStringLen < 0 {
  1842. return ErrInvalidLengthBep
  1843. }
  1844. postIndex := iNdEx + intStringLen
  1845. if postIndex > l {
  1846. return io.ErrUnexpectedEOF
  1847. }
  1848. m.ID = string(dAtA[iNdEx:postIndex])
  1849. iNdEx = postIndex
  1850. case 2:
  1851. if wireType != 2 {
  1852. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  1853. }
  1854. var stringLen uint64
  1855. for shift := uint(0); ; shift += 7 {
  1856. if shift >= 64 {
  1857. return ErrIntOverflowBep
  1858. }
  1859. if iNdEx >= l {
  1860. return io.ErrUnexpectedEOF
  1861. }
  1862. b := dAtA[iNdEx]
  1863. iNdEx++
  1864. stringLen |= (uint64(b) & 0x7F) << shift
  1865. if b < 0x80 {
  1866. break
  1867. }
  1868. }
  1869. intStringLen := int(stringLen)
  1870. if intStringLen < 0 {
  1871. return ErrInvalidLengthBep
  1872. }
  1873. postIndex := iNdEx + intStringLen
  1874. if postIndex > l {
  1875. return io.ErrUnexpectedEOF
  1876. }
  1877. m.Label = string(dAtA[iNdEx:postIndex])
  1878. iNdEx = postIndex
  1879. case 3:
  1880. if wireType != 0 {
  1881. return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
  1882. }
  1883. var v int
  1884. for shift := uint(0); ; shift += 7 {
  1885. if shift >= 64 {
  1886. return ErrIntOverflowBep
  1887. }
  1888. if iNdEx >= l {
  1889. return io.ErrUnexpectedEOF
  1890. }
  1891. b := dAtA[iNdEx]
  1892. iNdEx++
  1893. v |= (int(b) & 0x7F) << shift
  1894. if b < 0x80 {
  1895. break
  1896. }
  1897. }
  1898. m.ReadOnly = bool(v != 0)
  1899. case 4:
  1900. if wireType != 0 {
  1901. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePermissions", wireType)
  1902. }
  1903. var v int
  1904. for shift := uint(0); ; shift += 7 {
  1905. if shift >= 64 {
  1906. return ErrIntOverflowBep
  1907. }
  1908. if iNdEx >= l {
  1909. return io.ErrUnexpectedEOF
  1910. }
  1911. b := dAtA[iNdEx]
  1912. iNdEx++
  1913. v |= (int(b) & 0x7F) << shift
  1914. if b < 0x80 {
  1915. break
  1916. }
  1917. }
  1918. m.IgnorePermissions = bool(v != 0)
  1919. case 5:
  1920. if wireType != 0 {
  1921. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  1922. }
  1923. var v int
  1924. for shift := uint(0); ; shift += 7 {
  1925. if shift >= 64 {
  1926. return ErrIntOverflowBep
  1927. }
  1928. if iNdEx >= l {
  1929. return io.ErrUnexpectedEOF
  1930. }
  1931. b := dAtA[iNdEx]
  1932. iNdEx++
  1933. v |= (int(b) & 0x7F) << shift
  1934. if b < 0x80 {
  1935. break
  1936. }
  1937. }
  1938. m.IgnoreDelete = bool(v != 0)
  1939. case 6:
  1940. if wireType != 0 {
  1941. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  1942. }
  1943. var v int
  1944. for shift := uint(0); ; shift += 7 {
  1945. if shift >= 64 {
  1946. return ErrIntOverflowBep
  1947. }
  1948. if iNdEx >= l {
  1949. return io.ErrUnexpectedEOF
  1950. }
  1951. b := dAtA[iNdEx]
  1952. iNdEx++
  1953. v |= (int(b) & 0x7F) << shift
  1954. if b < 0x80 {
  1955. break
  1956. }
  1957. }
  1958. m.DisableTempIndexes = bool(v != 0)
  1959. case 7:
  1960. if wireType != 0 {
  1961. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  1962. }
  1963. var v int
  1964. for shift := uint(0); ; shift += 7 {
  1965. if shift >= 64 {
  1966. return ErrIntOverflowBep
  1967. }
  1968. if iNdEx >= l {
  1969. return io.ErrUnexpectedEOF
  1970. }
  1971. b := dAtA[iNdEx]
  1972. iNdEx++
  1973. v |= (int(b) & 0x7F) << shift
  1974. if b < 0x80 {
  1975. break
  1976. }
  1977. }
  1978. m.Paused = bool(v != 0)
  1979. case 16:
  1980. if wireType != 2 {
  1981. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1982. }
  1983. var msglen int
  1984. for shift := uint(0); ; shift += 7 {
  1985. if shift >= 64 {
  1986. return ErrIntOverflowBep
  1987. }
  1988. if iNdEx >= l {
  1989. return io.ErrUnexpectedEOF
  1990. }
  1991. b := dAtA[iNdEx]
  1992. iNdEx++
  1993. msglen |= (int(b) & 0x7F) << shift
  1994. if b < 0x80 {
  1995. break
  1996. }
  1997. }
  1998. if msglen < 0 {
  1999. return ErrInvalidLengthBep
  2000. }
  2001. postIndex := iNdEx + msglen
  2002. if postIndex > l {
  2003. return io.ErrUnexpectedEOF
  2004. }
  2005. m.Devices = append(m.Devices, Device{})
  2006. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2007. return err
  2008. }
  2009. iNdEx = postIndex
  2010. default:
  2011. iNdEx = preIndex
  2012. skippy, err := skipBep(dAtA[iNdEx:])
  2013. if err != nil {
  2014. return err
  2015. }
  2016. if skippy < 0 {
  2017. return ErrInvalidLengthBep
  2018. }
  2019. if (iNdEx + skippy) > l {
  2020. return io.ErrUnexpectedEOF
  2021. }
  2022. iNdEx += skippy
  2023. }
  2024. }
  2025. if iNdEx > l {
  2026. return io.ErrUnexpectedEOF
  2027. }
  2028. return nil
  2029. }
  2030. func (m *Device) Unmarshal(dAtA []byte) error {
  2031. l := len(dAtA)
  2032. iNdEx := 0
  2033. for iNdEx < l {
  2034. preIndex := iNdEx
  2035. var wire uint64
  2036. for shift := uint(0); ; shift += 7 {
  2037. if shift >= 64 {
  2038. return ErrIntOverflowBep
  2039. }
  2040. if iNdEx >= l {
  2041. return io.ErrUnexpectedEOF
  2042. }
  2043. b := dAtA[iNdEx]
  2044. iNdEx++
  2045. wire |= (uint64(b) & 0x7F) << shift
  2046. if b < 0x80 {
  2047. break
  2048. }
  2049. }
  2050. fieldNum := int32(wire >> 3)
  2051. wireType := int(wire & 0x7)
  2052. if wireType == 4 {
  2053. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  2054. }
  2055. if fieldNum <= 0 {
  2056. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  2057. }
  2058. switch fieldNum {
  2059. case 1:
  2060. if wireType != 2 {
  2061. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2062. }
  2063. var byteLen int
  2064. for shift := uint(0); ; shift += 7 {
  2065. if shift >= 64 {
  2066. return ErrIntOverflowBep
  2067. }
  2068. if iNdEx >= l {
  2069. return io.ErrUnexpectedEOF
  2070. }
  2071. b := dAtA[iNdEx]
  2072. iNdEx++
  2073. byteLen |= (int(b) & 0x7F) << shift
  2074. if b < 0x80 {
  2075. break
  2076. }
  2077. }
  2078. if byteLen < 0 {
  2079. return ErrInvalidLengthBep
  2080. }
  2081. postIndex := iNdEx + byteLen
  2082. if postIndex > l {
  2083. return io.ErrUnexpectedEOF
  2084. }
  2085. if err := m.ID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2086. return err
  2087. }
  2088. iNdEx = postIndex
  2089. case 2:
  2090. if wireType != 2 {
  2091. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2092. }
  2093. var stringLen uint64
  2094. for shift := uint(0); ; shift += 7 {
  2095. if shift >= 64 {
  2096. return ErrIntOverflowBep
  2097. }
  2098. if iNdEx >= l {
  2099. return io.ErrUnexpectedEOF
  2100. }
  2101. b := dAtA[iNdEx]
  2102. iNdEx++
  2103. stringLen |= (uint64(b) & 0x7F) << shift
  2104. if b < 0x80 {
  2105. break
  2106. }
  2107. }
  2108. intStringLen := int(stringLen)
  2109. if intStringLen < 0 {
  2110. return ErrInvalidLengthBep
  2111. }
  2112. postIndex := iNdEx + intStringLen
  2113. if postIndex > l {
  2114. return io.ErrUnexpectedEOF
  2115. }
  2116. m.Name = string(dAtA[iNdEx:postIndex])
  2117. iNdEx = postIndex
  2118. case 3:
  2119. if wireType != 2 {
  2120. return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
  2121. }
  2122. var stringLen uint64
  2123. for shift := uint(0); ; shift += 7 {
  2124. if shift >= 64 {
  2125. return ErrIntOverflowBep
  2126. }
  2127. if iNdEx >= l {
  2128. return io.ErrUnexpectedEOF
  2129. }
  2130. b := dAtA[iNdEx]
  2131. iNdEx++
  2132. stringLen |= (uint64(b) & 0x7F) << shift
  2133. if b < 0x80 {
  2134. break
  2135. }
  2136. }
  2137. intStringLen := int(stringLen)
  2138. if intStringLen < 0 {
  2139. return ErrInvalidLengthBep
  2140. }
  2141. postIndex := iNdEx + intStringLen
  2142. if postIndex > l {
  2143. return io.ErrUnexpectedEOF
  2144. }
  2145. m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex]))
  2146. iNdEx = postIndex
  2147. case 4:
  2148. if wireType != 0 {
  2149. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  2150. }
  2151. m.Compression = 0
  2152. for shift := uint(0); ; shift += 7 {
  2153. if shift >= 64 {
  2154. return ErrIntOverflowBep
  2155. }
  2156. if iNdEx >= l {
  2157. return io.ErrUnexpectedEOF
  2158. }
  2159. b := dAtA[iNdEx]
  2160. iNdEx++
  2161. m.Compression |= (Compression(b) & 0x7F) << shift
  2162. if b < 0x80 {
  2163. break
  2164. }
  2165. }
  2166. case 5:
  2167. if wireType != 2 {
  2168. return fmt.Errorf("proto: wrong wireType = %d for field CertName", wireType)
  2169. }
  2170. var stringLen uint64
  2171. for shift := uint(0); ; shift += 7 {
  2172. if shift >= 64 {
  2173. return ErrIntOverflowBep
  2174. }
  2175. if iNdEx >= l {
  2176. return io.ErrUnexpectedEOF
  2177. }
  2178. b := dAtA[iNdEx]
  2179. iNdEx++
  2180. stringLen |= (uint64(b) & 0x7F) << shift
  2181. if b < 0x80 {
  2182. break
  2183. }
  2184. }
  2185. intStringLen := int(stringLen)
  2186. if intStringLen < 0 {
  2187. return ErrInvalidLengthBep
  2188. }
  2189. postIndex := iNdEx + intStringLen
  2190. if postIndex > l {
  2191. return io.ErrUnexpectedEOF
  2192. }
  2193. m.CertName = string(dAtA[iNdEx:postIndex])
  2194. iNdEx = postIndex
  2195. case 6:
  2196. if wireType != 0 {
  2197. return fmt.Errorf("proto: wrong wireType = %d for field MaxSequence", wireType)
  2198. }
  2199. m.MaxSequence = 0
  2200. for shift := uint(0); ; shift += 7 {
  2201. if shift >= 64 {
  2202. return ErrIntOverflowBep
  2203. }
  2204. if iNdEx >= l {
  2205. return io.ErrUnexpectedEOF
  2206. }
  2207. b := dAtA[iNdEx]
  2208. iNdEx++
  2209. m.MaxSequence |= (int64(b) & 0x7F) << shift
  2210. if b < 0x80 {
  2211. break
  2212. }
  2213. }
  2214. case 7:
  2215. if wireType != 0 {
  2216. return fmt.Errorf("proto: wrong wireType = %d for field Introducer", wireType)
  2217. }
  2218. var v int
  2219. for shift := uint(0); ; shift += 7 {
  2220. if shift >= 64 {
  2221. return ErrIntOverflowBep
  2222. }
  2223. if iNdEx >= l {
  2224. return io.ErrUnexpectedEOF
  2225. }
  2226. b := dAtA[iNdEx]
  2227. iNdEx++
  2228. v |= (int(b) & 0x7F) << shift
  2229. if b < 0x80 {
  2230. break
  2231. }
  2232. }
  2233. m.Introducer = bool(v != 0)
  2234. case 8:
  2235. if wireType != 0 {
  2236. return fmt.Errorf("proto: wrong wireType = %d for field IndexID", wireType)
  2237. }
  2238. m.IndexID = 0
  2239. for shift := uint(0); ; shift += 7 {
  2240. if shift >= 64 {
  2241. return ErrIntOverflowBep
  2242. }
  2243. if iNdEx >= l {
  2244. return io.ErrUnexpectedEOF
  2245. }
  2246. b := dAtA[iNdEx]
  2247. iNdEx++
  2248. m.IndexID |= (IndexID(b) & 0x7F) << shift
  2249. if b < 0x80 {
  2250. break
  2251. }
  2252. }
  2253. case 9:
  2254. if wireType != 0 {
  2255. return fmt.Errorf("proto: wrong wireType = %d for field SkipIntroductionRemovals", wireType)
  2256. }
  2257. var v int
  2258. for shift := uint(0); ; shift += 7 {
  2259. if shift >= 64 {
  2260. return ErrIntOverflowBep
  2261. }
  2262. if iNdEx >= l {
  2263. return io.ErrUnexpectedEOF
  2264. }
  2265. b := dAtA[iNdEx]
  2266. iNdEx++
  2267. v |= (int(b) & 0x7F) << shift
  2268. if b < 0x80 {
  2269. break
  2270. }
  2271. }
  2272. m.SkipIntroductionRemovals = bool(v != 0)
  2273. default:
  2274. iNdEx = preIndex
  2275. skippy, err := skipBep(dAtA[iNdEx:])
  2276. if err != nil {
  2277. return err
  2278. }
  2279. if skippy < 0 {
  2280. return ErrInvalidLengthBep
  2281. }
  2282. if (iNdEx + skippy) > l {
  2283. return io.ErrUnexpectedEOF
  2284. }
  2285. iNdEx += skippy
  2286. }
  2287. }
  2288. if iNdEx > l {
  2289. return io.ErrUnexpectedEOF
  2290. }
  2291. return nil
  2292. }
  2293. func (m *Index) Unmarshal(dAtA []byte) error {
  2294. l := len(dAtA)
  2295. iNdEx := 0
  2296. for iNdEx < l {
  2297. preIndex := iNdEx
  2298. var wire uint64
  2299. for shift := uint(0); ; shift += 7 {
  2300. if shift >= 64 {
  2301. return ErrIntOverflowBep
  2302. }
  2303. if iNdEx >= l {
  2304. return io.ErrUnexpectedEOF
  2305. }
  2306. b := dAtA[iNdEx]
  2307. iNdEx++
  2308. wire |= (uint64(b) & 0x7F) << shift
  2309. if b < 0x80 {
  2310. break
  2311. }
  2312. }
  2313. fieldNum := int32(wire >> 3)
  2314. wireType := int(wire & 0x7)
  2315. if wireType == 4 {
  2316. return fmt.Errorf("proto: Index: wiretype end group for non-group")
  2317. }
  2318. if fieldNum <= 0 {
  2319. return fmt.Errorf("proto: Index: illegal tag %d (wire type %d)", fieldNum, wire)
  2320. }
  2321. switch fieldNum {
  2322. case 1:
  2323. if wireType != 2 {
  2324. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  2325. }
  2326. var stringLen uint64
  2327. for shift := uint(0); ; shift += 7 {
  2328. if shift >= 64 {
  2329. return ErrIntOverflowBep
  2330. }
  2331. if iNdEx >= l {
  2332. return io.ErrUnexpectedEOF
  2333. }
  2334. b := dAtA[iNdEx]
  2335. iNdEx++
  2336. stringLen |= (uint64(b) & 0x7F) << shift
  2337. if b < 0x80 {
  2338. break
  2339. }
  2340. }
  2341. intStringLen := int(stringLen)
  2342. if intStringLen < 0 {
  2343. return ErrInvalidLengthBep
  2344. }
  2345. postIndex := iNdEx + intStringLen
  2346. if postIndex > l {
  2347. return io.ErrUnexpectedEOF
  2348. }
  2349. m.Folder = string(dAtA[iNdEx:postIndex])
  2350. iNdEx = postIndex
  2351. case 2:
  2352. if wireType != 2 {
  2353. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  2354. }
  2355. var msglen int
  2356. for shift := uint(0); ; shift += 7 {
  2357. if shift >= 64 {
  2358. return ErrIntOverflowBep
  2359. }
  2360. if iNdEx >= l {
  2361. return io.ErrUnexpectedEOF
  2362. }
  2363. b := dAtA[iNdEx]
  2364. iNdEx++
  2365. msglen |= (int(b) & 0x7F) << shift
  2366. if b < 0x80 {
  2367. break
  2368. }
  2369. }
  2370. if msglen < 0 {
  2371. return ErrInvalidLengthBep
  2372. }
  2373. postIndex := iNdEx + msglen
  2374. if postIndex > l {
  2375. return io.ErrUnexpectedEOF
  2376. }
  2377. m.Files = append(m.Files, FileInfo{})
  2378. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2379. return err
  2380. }
  2381. iNdEx = postIndex
  2382. default:
  2383. iNdEx = preIndex
  2384. skippy, err := skipBep(dAtA[iNdEx:])
  2385. if err != nil {
  2386. return err
  2387. }
  2388. if skippy < 0 {
  2389. return ErrInvalidLengthBep
  2390. }
  2391. if (iNdEx + skippy) > l {
  2392. return io.ErrUnexpectedEOF
  2393. }
  2394. iNdEx += skippy
  2395. }
  2396. }
  2397. if iNdEx > l {
  2398. return io.ErrUnexpectedEOF
  2399. }
  2400. return nil
  2401. }
  2402. func (m *IndexUpdate) Unmarshal(dAtA []byte) error {
  2403. l := len(dAtA)
  2404. iNdEx := 0
  2405. for iNdEx < l {
  2406. preIndex := iNdEx
  2407. var wire uint64
  2408. for shift := uint(0); ; shift += 7 {
  2409. if shift >= 64 {
  2410. return ErrIntOverflowBep
  2411. }
  2412. if iNdEx >= l {
  2413. return io.ErrUnexpectedEOF
  2414. }
  2415. b := dAtA[iNdEx]
  2416. iNdEx++
  2417. wire |= (uint64(b) & 0x7F) << shift
  2418. if b < 0x80 {
  2419. break
  2420. }
  2421. }
  2422. fieldNum := int32(wire >> 3)
  2423. wireType := int(wire & 0x7)
  2424. if wireType == 4 {
  2425. return fmt.Errorf("proto: IndexUpdate: wiretype end group for non-group")
  2426. }
  2427. if fieldNum <= 0 {
  2428. return fmt.Errorf("proto: IndexUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  2429. }
  2430. switch fieldNum {
  2431. case 1:
  2432. if wireType != 2 {
  2433. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  2434. }
  2435. var stringLen uint64
  2436. for shift := uint(0); ; shift += 7 {
  2437. if shift >= 64 {
  2438. return ErrIntOverflowBep
  2439. }
  2440. if iNdEx >= l {
  2441. return io.ErrUnexpectedEOF
  2442. }
  2443. b := dAtA[iNdEx]
  2444. iNdEx++
  2445. stringLen |= (uint64(b) & 0x7F) << shift
  2446. if b < 0x80 {
  2447. break
  2448. }
  2449. }
  2450. intStringLen := int(stringLen)
  2451. if intStringLen < 0 {
  2452. return ErrInvalidLengthBep
  2453. }
  2454. postIndex := iNdEx + intStringLen
  2455. if postIndex > l {
  2456. return io.ErrUnexpectedEOF
  2457. }
  2458. m.Folder = string(dAtA[iNdEx:postIndex])
  2459. iNdEx = postIndex
  2460. case 2:
  2461. if wireType != 2 {
  2462. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  2463. }
  2464. var msglen int
  2465. for shift := uint(0); ; shift += 7 {
  2466. if shift >= 64 {
  2467. return ErrIntOverflowBep
  2468. }
  2469. if iNdEx >= l {
  2470. return io.ErrUnexpectedEOF
  2471. }
  2472. b := dAtA[iNdEx]
  2473. iNdEx++
  2474. msglen |= (int(b) & 0x7F) << shift
  2475. if b < 0x80 {
  2476. break
  2477. }
  2478. }
  2479. if msglen < 0 {
  2480. return ErrInvalidLengthBep
  2481. }
  2482. postIndex := iNdEx + msglen
  2483. if postIndex > l {
  2484. return io.ErrUnexpectedEOF
  2485. }
  2486. m.Files = append(m.Files, FileInfo{})
  2487. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2488. return err
  2489. }
  2490. iNdEx = postIndex
  2491. default:
  2492. iNdEx = preIndex
  2493. skippy, err := skipBep(dAtA[iNdEx:])
  2494. if err != nil {
  2495. return err
  2496. }
  2497. if skippy < 0 {
  2498. return ErrInvalidLengthBep
  2499. }
  2500. if (iNdEx + skippy) > l {
  2501. return io.ErrUnexpectedEOF
  2502. }
  2503. iNdEx += skippy
  2504. }
  2505. }
  2506. if iNdEx > l {
  2507. return io.ErrUnexpectedEOF
  2508. }
  2509. return nil
  2510. }
  2511. func (m *FileInfo) Unmarshal(dAtA []byte) error {
  2512. l := len(dAtA)
  2513. iNdEx := 0
  2514. for iNdEx < l {
  2515. preIndex := iNdEx
  2516. var wire uint64
  2517. for shift := uint(0); ; shift += 7 {
  2518. if shift >= 64 {
  2519. return ErrIntOverflowBep
  2520. }
  2521. if iNdEx >= l {
  2522. return io.ErrUnexpectedEOF
  2523. }
  2524. b := dAtA[iNdEx]
  2525. iNdEx++
  2526. wire |= (uint64(b) & 0x7F) << shift
  2527. if b < 0x80 {
  2528. break
  2529. }
  2530. }
  2531. fieldNum := int32(wire >> 3)
  2532. wireType := int(wire & 0x7)
  2533. if wireType == 4 {
  2534. return fmt.Errorf("proto: FileInfo: wiretype end group for non-group")
  2535. }
  2536. if fieldNum <= 0 {
  2537. return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2538. }
  2539. switch fieldNum {
  2540. case 1:
  2541. if wireType != 2 {
  2542. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2543. }
  2544. var stringLen uint64
  2545. for shift := uint(0); ; shift += 7 {
  2546. if shift >= 64 {
  2547. return ErrIntOverflowBep
  2548. }
  2549. if iNdEx >= l {
  2550. return io.ErrUnexpectedEOF
  2551. }
  2552. b := dAtA[iNdEx]
  2553. iNdEx++
  2554. stringLen |= (uint64(b) & 0x7F) << shift
  2555. if b < 0x80 {
  2556. break
  2557. }
  2558. }
  2559. intStringLen := int(stringLen)
  2560. if intStringLen < 0 {
  2561. return ErrInvalidLengthBep
  2562. }
  2563. postIndex := iNdEx + intStringLen
  2564. if postIndex > l {
  2565. return io.ErrUnexpectedEOF
  2566. }
  2567. m.Name = string(dAtA[iNdEx:postIndex])
  2568. iNdEx = postIndex
  2569. case 2:
  2570. if wireType != 0 {
  2571. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2572. }
  2573. m.Type = 0
  2574. for shift := uint(0); ; shift += 7 {
  2575. if shift >= 64 {
  2576. return ErrIntOverflowBep
  2577. }
  2578. if iNdEx >= l {
  2579. return io.ErrUnexpectedEOF
  2580. }
  2581. b := dAtA[iNdEx]
  2582. iNdEx++
  2583. m.Type |= (FileInfoType(b) & 0x7F) << shift
  2584. if b < 0x80 {
  2585. break
  2586. }
  2587. }
  2588. case 3:
  2589. if wireType != 0 {
  2590. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  2591. }
  2592. m.Size = 0
  2593. for shift := uint(0); ; shift += 7 {
  2594. if shift >= 64 {
  2595. return ErrIntOverflowBep
  2596. }
  2597. if iNdEx >= l {
  2598. return io.ErrUnexpectedEOF
  2599. }
  2600. b := dAtA[iNdEx]
  2601. iNdEx++
  2602. m.Size |= (int64(b) & 0x7F) << shift
  2603. if b < 0x80 {
  2604. break
  2605. }
  2606. }
  2607. case 4:
  2608. if wireType != 0 {
  2609. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  2610. }
  2611. m.Permissions = 0
  2612. for shift := uint(0); ; shift += 7 {
  2613. if shift >= 64 {
  2614. return ErrIntOverflowBep
  2615. }
  2616. if iNdEx >= l {
  2617. return io.ErrUnexpectedEOF
  2618. }
  2619. b := dAtA[iNdEx]
  2620. iNdEx++
  2621. m.Permissions |= (uint32(b) & 0x7F) << shift
  2622. if b < 0x80 {
  2623. break
  2624. }
  2625. }
  2626. case 5:
  2627. if wireType != 0 {
  2628. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedS", wireType)
  2629. }
  2630. m.ModifiedS = 0
  2631. for shift := uint(0); ; shift += 7 {
  2632. if shift >= 64 {
  2633. return ErrIntOverflowBep
  2634. }
  2635. if iNdEx >= l {
  2636. return io.ErrUnexpectedEOF
  2637. }
  2638. b := dAtA[iNdEx]
  2639. iNdEx++
  2640. m.ModifiedS |= (int64(b) & 0x7F) << shift
  2641. if b < 0x80 {
  2642. break
  2643. }
  2644. }
  2645. case 6:
  2646. if wireType != 0 {
  2647. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  2648. }
  2649. var v int
  2650. for shift := uint(0); ; shift += 7 {
  2651. if shift >= 64 {
  2652. return ErrIntOverflowBep
  2653. }
  2654. if iNdEx >= l {
  2655. return io.ErrUnexpectedEOF
  2656. }
  2657. b := dAtA[iNdEx]
  2658. iNdEx++
  2659. v |= (int(b) & 0x7F) << shift
  2660. if b < 0x80 {
  2661. break
  2662. }
  2663. }
  2664. m.Deleted = bool(v != 0)
  2665. case 7:
  2666. if wireType != 0 {
  2667. return fmt.Errorf("proto: wrong wireType = %d for field Invalid", wireType)
  2668. }
  2669. var v int
  2670. for shift := uint(0); ; shift += 7 {
  2671. if shift >= 64 {
  2672. return ErrIntOverflowBep
  2673. }
  2674. if iNdEx >= l {
  2675. return io.ErrUnexpectedEOF
  2676. }
  2677. b := dAtA[iNdEx]
  2678. iNdEx++
  2679. v |= (int(b) & 0x7F) << shift
  2680. if b < 0x80 {
  2681. break
  2682. }
  2683. }
  2684. m.Invalid = bool(v != 0)
  2685. case 8:
  2686. if wireType != 0 {
  2687. return fmt.Errorf("proto: wrong wireType = %d for field NoPermissions", wireType)
  2688. }
  2689. var v int
  2690. for shift := uint(0); ; shift += 7 {
  2691. if shift >= 64 {
  2692. return ErrIntOverflowBep
  2693. }
  2694. if iNdEx >= l {
  2695. return io.ErrUnexpectedEOF
  2696. }
  2697. b := dAtA[iNdEx]
  2698. iNdEx++
  2699. v |= (int(b) & 0x7F) << shift
  2700. if b < 0x80 {
  2701. break
  2702. }
  2703. }
  2704. m.NoPermissions = bool(v != 0)
  2705. case 9:
  2706. if wireType != 2 {
  2707. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  2708. }
  2709. var msglen int
  2710. for shift := uint(0); ; shift += 7 {
  2711. if shift >= 64 {
  2712. return ErrIntOverflowBep
  2713. }
  2714. if iNdEx >= l {
  2715. return io.ErrUnexpectedEOF
  2716. }
  2717. b := dAtA[iNdEx]
  2718. iNdEx++
  2719. msglen |= (int(b) & 0x7F) << shift
  2720. if b < 0x80 {
  2721. break
  2722. }
  2723. }
  2724. if msglen < 0 {
  2725. return ErrInvalidLengthBep
  2726. }
  2727. postIndex := iNdEx + msglen
  2728. if postIndex > l {
  2729. return io.ErrUnexpectedEOF
  2730. }
  2731. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2732. return err
  2733. }
  2734. iNdEx = postIndex
  2735. case 10:
  2736. if wireType != 0 {
  2737. return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  2738. }
  2739. m.Sequence = 0
  2740. for shift := uint(0); ; shift += 7 {
  2741. if shift >= 64 {
  2742. return ErrIntOverflowBep
  2743. }
  2744. if iNdEx >= l {
  2745. return io.ErrUnexpectedEOF
  2746. }
  2747. b := dAtA[iNdEx]
  2748. iNdEx++
  2749. m.Sequence |= (int64(b) & 0x7F) << shift
  2750. if b < 0x80 {
  2751. break
  2752. }
  2753. }
  2754. case 11:
  2755. if wireType != 0 {
  2756. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedNs", wireType)
  2757. }
  2758. m.ModifiedNs = 0
  2759. for shift := uint(0); ; shift += 7 {
  2760. if shift >= 64 {
  2761. return ErrIntOverflowBep
  2762. }
  2763. if iNdEx >= l {
  2764. return io.ErrUnexpectedEOF
  2765. }
  2766. b := dAtA[iNdEx]
  2767. iNdEx++
  2768. m.ModifiedNs |= (int32(b) & 0x7F) << shift
  2769. if b < 0x80 {
  2770. break
  2771. }
  2772. }
  2773. case 12:
  2774. if wireType != 0 {
  2775. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedBy", wireType)
  2776. }
  2777. m.ModifiedBy = 0
  2778. for shift := uint(0); ; shift += 7 {
  2779. if shift >= 64 {
  2780. return ErrIntOverflowBep
  2781. }
  2782. if iNdEx >= l {
  2783. return io.ErrUnexpectedEOF
  2784. }
  2785. b := dAtA[iNdEx]
  2786. iNdEx++
  2787. m.ModifiedBy |= (ShortID(b) & 0x7F) << shift
  2788. if b < 0x80 {
  2789. break
  2790. }
  2791. }
  2792. case 13:
  2793. if wireType != 0 {
  2794. return fmt.Errorf("proto: wrong wireType = %d for field RawBlockSize", wireType)
  2795. }
  2796. m.RawBlockSize = 0
  2797. for shift := uint(0); ; shift += 7 {
  2798. if shift >= 64 {
  2799. return ErrIntOverflowBep
  2800. }
  2801. if iNdEx >= l {
  2802. return io.ErrUnexpectedEOF
  2803. }
  2804. b := dAtA[iNdEx]
  2805. iNdEx++
  2806. m.RawBlockSize |= (int32(b) & 0x7F) << shift
  2807. if b < 0x80 {
  2808. break
  2809. }
  2810. }
  2811. case 16:
  2812. if wireType != 2 {
  2813. return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType)
  2814. }
  2815. var msglen int
  2816. for shift := uint(0); ; shift += 7 {
  2817. if shift >= 64 {
  2818. return ErrIntOverflowBep
  2819. }
  2820. if iNdEx >= l {
  2821. return io.ErrUnexpectedEOF
  2822. }
  2823. b := dAtA[iNdEx]
  2824. iNdEx++
  2825. msglen |= (int(b) & 0x7F) << shift
  2826. if b < 0x80 {
  2827. break
  2828. }
  2829. }
  2830. if msglen < 0 {
  2831. return ErrInvalidLengthBep
  2832. }
  2833. postIndex := iNdEx + msglen
  2834. if postIndex > l {
  2835. return io.ErrUnexpectedEOF
  2836. }
  2837. m.Blocks = append(m.Blocks, BlockInfo{})
  2838. if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2839. return err
  2840. }
  2841. iNdEx = postIndex
  2842. case 17:
  2843. if wireType != 2 {
  2844. return fmt.Errorf("proto: wrong wireType = %d for field SymlinkTarget", wireType)
  2845. }
  2846. var stringLen uint64
  2847. for shift := uint(0); ; shift += 7 {
  2848. if shift >= 64 {
  2849. return ErrIntOverflowBep
  2850. }
  2851. if iNdEx >= l {
  2852. return io.ErrUnexpectedEOF
  2853. }
  2854. b := dAtA[iNdEx]
  2855. iNdEx++
  2856. stringLen |= (uint64(b) & 0x7F) << shift
  2857. if b < 0x80 {
  2858. break
  2859. }
  2860. }
  2861. intStringLen := int(stringLen)
  2862. if intStringLen < 0 {
  2863. return ErrInvalidLengthBep
  2864. }
  2865. postIndex := iNdEx + intStringLen
  2866. if postIndex > l {
  2867. return io.ErrUnexpectedEOF
  2868. }
  2869. m.SymlinkTarget = string(dAtA[iNdEx:postIndex])
  2870. iNdEx = postIndex
  2871. default:
  2872. iNdEx = preIndex
  2873. skippy, err := skipBep(dAtA[iNdEx:])
  2874. if err != nil {
  2875. return err
  2876. }
  2877. if skippy < 0 {
  2878. return ErrInvalidLengthBep
  2879. }
  2880. if (iNdEx + skippy) > l {
  2881. return io.ErrUnexpectedEOF
  2882. }
  2883. iNdEx += skippy
  2884. }
  2885. }
  2886. if iNdEx > l {
  2887. return io.ErrUnexpectedEOF
  2888. }
  2889. return nil
  2890. }
  2891. func (m *BlockInfo) Unmarshal(dAtA []byte) error {
  2892. l := len(dAtA)
  2893. iNdEx := 0
  2894. for iNdEx < l {
  2895. preIndex := iNdEx
  2896. var wire uint64
  2897. for shift := uint(0); ; shift += 7 {
  2898. if shift >= 64 {
  2899. return ErrIntOverflowBep
  2900. }
  2901. if iNdEx >= l {
  2902. return io.ErrUnexpectedEOF
  2903. }
  2904. b := dAtA[iNdEx]
  2905. iNdEx++
  2906. wire |= (uint64(b) & 0x7F) << shift
  2907. if b < 0x80 {
  2908. break
  2909. }
  2910. }
  2911. fieldNum := int32(wire >> 3)
  2912. wireType := int(wire & 0x7)
  2913. if wireType == 4 {
  2914. return fmt.Errorf("proto: BlockInfo: wiretype end group for non-group")
  2915. }
  2916. if fieldNum <= 0 {
  2917. return fmt.Errorf("proto: BlockInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  2918. }
  2919. switch fieldNum {
  2920. case 1:
  2921. if wireType != 0 {
  2922. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  2923. }
  2924. m.Offset = 0
  2925. for shift := uint(0); ; shift += 7 {
  2926. if shift >= 64 {
  2927. return ErrIntOverflowBep
  2928. }
  2929. if iNdEx >= l {
  2930. return io.ErrUnexpectedEOF
  2931. }
  2932. b := dAtA[iNdEx]
  2933. iNdEx++
  2934. m.Offset |= (int64(b) & 0x7F) << shift
  2935. if b < 0x80 {
  2936. break
  2937. }
  2938. }
  2939. case 2:
  2940. if wireType != 0 {
  2941. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  2942. }
  2943. m.Size = 0
  2944. for shift := uint(0); ; shift += 7 {
  2945. if shift >= 64 {
  2946. return ErrIntOverflowBep
  2947. }
  2948. if iNdEx >= l {
  2949. return io.ErrUnexpectedEOF
  2950. }
  2951. b := dAtA[iNdEx]
  2952. iNdEx++
  2953. m.Size |= (int32(b) & 0x7F) << shift
  2954. if b < 0x80 {
  2955. break
  2956. }
  2957. }
  2958. case 3:
  2959. if wireType != 2 {
  2960. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  2961. }
  2962. var byteLen int
  2963. for shift := uint(0); ; shift += 7 {
  2964. if shift >= 64 {
  2965. return ErrIntOverflowBep
  2966. }
  2967. if iNdEx >= l {
  2968. return io.ErrUnexpectedEOF
  2969. }
  2970. b := dAtA[iNdEx]
  2971. iNdEx++
  2972. byteLen |= (int(b) & 0x7F) << shift
  2973. if b < 0x80 {
  2974. break
  2975. }
  2976. }
  2977. if byteLen < 0 {
  2978. return ErrInvalidLengthBep
  2979. }
  2980. postIndex := iNdEx + byteLen
  2981. if postIndex > l {
  2982. return io.ErrUnexpectedEOF
  2983. }
  2984. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  2985. if m.Hash == nil {
  2986. m.Hash = []byte{}
  2987. }
  2988. iNdEx = postIndex
  2989. case 4:
  2990. if wireType != 0 {
  2991. return fmt.Errorf("proto: wrong wireType = %d for field WeakHash", wireType)
  2992. }
  2993. m.WeakHash = 0
  2994. for shift := uint(0); ; shift += 7 {
  2995. if shift >= 64 {
  2996. return ErrIntOverflowBep
  2997. }
  2998. if iNdEx >= l {
  2999. return io.ErrUnexpectedEOF
  3000. }
  3001. b := dAtA[iNdEx]
  3002. iNdEx++
  3003. m.WeakHash |= (uint32(b) & 0x7F) << shift
  3004. if b < 0x80 {
  3005. break
  3006. }
  3007. }
  3008. default:
  3009. iNdEx = preIndex
  3010. skippy, err := skipBep(dAtA[iNdEx:])
  3011. if err != nil {
  3012. return err
  3013. }
  3014. if skippy < 0 {
  3015. return ErrInvalidLengthBep
  3016. }
  3017. if (iNdEx + skippy) > l {
  3018. return io.ErrUnexpectedEOF
  3019. }
  3020. iNdEx += skippy
  3021. }
  3022. }
  3023. if iNdEx > l {
  3024. return io.ErrUnexpectedEOF
  3025. }
  3026. return nil
  3027. }
  3028. func (m *Vector) Unmarshal(dAtA []byte) error {
  3029. l := len(dAtA)
  3030. iNdEx := 0
  3031. for iNdEx < l {
  3032. preIndex := iNdEx
  3033. var wire uint64
  3034. for shift := uint(0); ; shift += 7 {
  3035. if shift >= 64 {
  3036. return ErrIntOverflowBep
  3037. }
  3038. if iNdEx >= l {
  3039. return io.ErrUnexpectedEOF
  3040. }
  3041. b := dAtA[iNdEx]
  3042. iNdEx++
  3043. wire |= (uint64(b) & 0x7F) << shift
  3044. if b < 0x80 {
  3045. break
  3046. }
  3047. }
  3048. fieldNum := int32(wire >> 3)
  3049. wireType := int(wire & 0x7)
  3050. if wireType == 4 {
  3051. return fmt.Errorf("proto: Vector: wiretype end group for non-group")
  3052. }
  3053. if fieldNum <= 0 {
  3054. return fmt.Errorf("proto: Vector: illegal tag %d (wire type %d)", fieldNum, wire)
  3055. }
  3056. switch fieldNum {
  3057. case 1:
  3058. if wireType != 2 {
  3059. return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType)
  3060. }
  3061. var msglen int
  3062. for shift := uint(0); ; shift += 7 {
  3063. if shift >= 64 {
  3064. return ErrIntOverflowBep
  3065. }
  3066. if iNdEx >= l {
  3067. return io.ErrUnexpectedEOF
  3068. }
  3069. b := dAtA[iNdEx]
  3070. iNdEx++
  3071. msglen |= (int(b) & 0x7F) << shift
  3072. if b < 0x80 {
  3073. break
  3074. }
  3075. }
  3076. if msglen < 0 {
  3077. return ErrInvalidLengthBep
  3078. }
  3079. postIndex := iNdEx + msglen
  3080. if postIndex > l {
  3081. return io.ErrUnexpectedEOF
  3082. }
  3083. m.Counters = append(m.Counters, Counter{})
  3084. if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3085. return err
  3086. }
  3087. iNdEx = postIndex
  3088. default:
  3089. iNdEx = preIndex
  3090. skippy, err := skipBep(dAtA[iNdEx:])
  3091. if err != nil {
  3092. return err
  3093. }
  3094. if skippy < 0 {
  3095. return ErrInvalidLengthBep
  3096. }
  3097. if (iNdEx + skippy) > l {
  3098. return io.ErrUnexpectedEOF
  3099. }
  3100. iNdEx += skippy
  3101. }
  3102. }
  3103. if iNdEx > l {
  3104. return io.ErrUnexpectedEOF
  3105. }
  3106. return nil
  3107. }
  3108. func (m *Counter) Unmarshal(dAtA []byte) error {
  3109. l := len(dAtA)
  3110. iNdEx := 0
  3111. for iNdEx < l {
  3112. preIndex := iNdEx
  3113. var wire uint64
  3114. for shift := uint(0); ; shift += 7 {
  3115. if shift >= 64 {
  3116. return ErrIntOverflowBep
  3117. }
  3118. if iNdEx >= l {
  3119. return io.ErrUnexpectedEOF
  3120. }
  3121. b := dAtA[iNdEx]
  3122. iNdEx++
  3123. wire |= (uint64(b) & 0x7F) << shift
  3124. if b < 0x80 {
  3125. break
  3126. }
  3127. }
  3128. fieldNum := int32(wire >> 3)
  3129. wireType := int(wire & 0x7)
  3130. if wireType == 4 {
  3131. return fmt.Errorf("proto: Counter: wiretype end group for non-group")
  3132. }
  3133. if fieldNum <= 0 {
  3134. return fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire)
  3135. }
  3136. switch fieldNum {
  3137. case 1:
  3138. if wireType != 0 {
  3139. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3140. }
  3141. m.ID = 0
  3142. for shift := uint(0); ; shift += 7 {
  3143. if shift >= 64 {
  3144. return ErrIntOverflowBep
  3145. }
  3146. if iNdEx >= l {
  3147. return io.ErrUnexpectedEOF
  3148. }
  3149. b := dAtA[iNdEx]
  3150. iNdEx++
  3151. m.ID |= (ShortID(b) & 0x7F) << shift
  3152. if b < 0x80 {
  3153. break
  3154. }
  3155. }
  3156. case 2:
  3157. if wireType != 0 {
  3158. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  3159. }
  3160. m.Value = 0
  3161. for shift := uint(0); ; shift += 7 {
  3162. if shift >= 64 {
  3163. return ErrIntOverflowBep
  3164. }
  3165. if iNdEx >= l {
  3166. return io.ErrUnexpectedEOF
  3167. }
  3168. b := dAtA[iNdEx]
  3169. iNdEx++
  3170. m.Value |= (uint64(b) & 0x7F) << shift
  3171. if b < 0x80 {
  3172. break
  3173. }
  3174. }
  3175. default:
  3176. iNdEx = preIndex
  3177. skippy, err := skipBep(dAtA[iNdEx:])
  3178. if err != nil {
  3179. return err
  3180. }
  3181. if skippy < 0 {
  3182. return ErrInvalidLengthBep
  3183. }
  3184. if (iNdEx + skippy) > l {
  3185. return io.ErrUnexpectedEOF
  3186. }
  3187. iNdEx += skippy
  3188. }
  3189. }
  3190. if iNdEx > l {
  3191. return io.ErrUnexpectedEOF
  3192. }
  3193. return nil
  3194. }
  3195. func (m *Request) Unmarshal(dAtA []byte) error {
  3196. l := len(dAtA)
  3197. iNdEx := 0
  3198. for iNdEx < l {
  3199. preIndex := iNdEx
  3200. var wire uint64
  3201. for shift := uint(0); ; shift += 7 {
  3202. if shift >= 64 {
  3203. return ErrIntOverflowBep
  3204. }
  3205. if iNdEx >= l {
  3206. return io.ErrUnexpectedEOF
  3207. }
  3208. b := dAtA[iNdEx]
  3209. iNdEx++
  3210. wire |= (uint64(b) & 0x7F) << shift
  3211. if b < 0x80 {
  3212. break
  3213. }
  3214. }
  3215. fieldNum := int32(wire >> 3)
  3216. wireType := int(wire & 0x7)
  3217. if wireType == 4 {
  3218. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  3219. }
  3220. if fieldNum <= 0 {
  3221. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  3222. }
  3223. switch fieldNum {
  3224. case 1:
  3225. if wireType != 0 {
  3226. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3227. }
  3228. m.ID = 0
  3229. for shift := uint(0); ; shift += 7 {
  3230. if shift >= 64 {
  3231. return ErrIntOverflowBep
  3232. }
  3233. if iNdEx >= l {
  3234. return io.ErrUnexpectedEOF
  3235. }
  3236. b := dAtA[iNdEx]
  3237. iNdEx++
  3238. m.ID |= (int32(b) & 0x7F) << shift
  3239. if b < 0x80 {
  3240. break
  3241. }
  3242. }
  3243. case 2:
  3244. if wireType != 2 {
  3245. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  3246. }
  3247. var stringLen uint64
  3248. for shift := uint(0); ; shift += 7 {
  3249. if shift >= 64 {
  3250. return ErrIntOverflowBep
  3251. }
  3252. if iNdEx >= l {
  3253. return io.ErrUnexpectedEOF
  3254. }
  3255. b := dAtA[iNdEx]
  3256. iNdEx++
  3257. stringLen |= (uint64(b) & 0x7F) << shift
  3258. if b < 0x80 {
  3259. break
  3260. }
  3261. }
  3262. intStringLen := int(stringLen)
  3263. if intStringLen < 0 {
  3264. return ErrInvalidLengthBep
  3265. }
  3266. postIndex := iNdEx + intStringLen
  3267. if postIndex > l {
  3268. return io.ErrUnexpectedEOF
  3269. }
  3270. m.Folder = string(dAtA[iNdEx:postIndex])
  3271. iNdEx = postIndex
  3272. case 3:
  3273. if wireType != 2 {
  3274. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3275. }
  3276. var stringLen uint64
  3277. for shift := uint(0); ; shift += 7 {
  3278. if shift >= 64 {
  3279. return ErrIntOverflowBep
  3280. }
  3281. if iNdEx >= l {
  3282. return io.ErrUnexpectedEOF
  3283. }
  3284. b := dAtA[iNdEx]
  3285. iNdEx++
  3286. stringLen |= (uint64(b) & 0x7F) << shift
  3287. if b < 0x80 {
  3288. break
  3289. }
  3290. }
  3291. intStringLen := int(stringLen)
  3292. if intStringLen < 0 {
  3293. return ErrInvalidLengthBep
  3294. }
  3295. postIndex := iNdEx + intStringLen
  3296. if postIndex > l {
  3297. return io.ErrUnexpectedEOF
  3298. }
  3299. m.Name = string(dAtA[iNdEx:postIndex])
  3300. iNdEx = postIndex
  3301. case 4:
  3302. if wireType != 0 {
  3303. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  3304. }
  3305. m.Offset = 0
  3306. for shift := uint(0); ; shift += 7 {
  3307. if shift >= 64 {
  3308. return ErrIntOverflowBep
  3309. }
  3310. if iNdEx >= l {
  3311. return io.ErrUnexpectedEOF
  3312. }
  3313. b := dAtA[iNdEx]
  3314. iNdEx++
  3315. m.Offset |= (int64(b) & 0x7F) << shift
  3316. if b < 0x80 {
  3317. break
  3318. }
  3319. }
  3320. case 5:
  3321. if wireType != 0 {
  3322. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  3323. }
  3324. m.Size = 0
  3325. for shift := uint(0); ; shift += 7 {
  3326. if shift >= 64 {
  3327. return ErrIntOverflowBep
  3328. }
  3329. if iNdEx >= l {
  3330. return io.ErrUnexpectedEOF
  3331. }
  3332. b := dAtA[iNdEx]
  3333. iNdEx++
  3334. m.Size |= (int32(b) & 0x7F) << shift
  3335. if b < 0x80 {
  3336. break
  3337. }
  3338. }
  3339. case 6:
  3340. if wireType != 2 {
  3341. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  3342. }
  3343. var byteLen int
  3344. for shift := uint(0); ; shift += 7 {
  3345. if shift >= 64 {
  3346. return ErrIntOverflowBep
  3347. }
  3348. if iNdEx >= l {
  3349. return io.ErrUnexpectedEOF
  3350. }
  3351. b := dAtA[iNdEx]
  3352. iNdEx++
  3353. byteLen |= (int(b) & 0x7F) << shift
  3354. if b < 0x80 {
  3355. break
  3356. }
  3357. }
  3358. if byteLen < 0 {
  3359. return ErrInvalidLengthBep
  3360. }
  3361. postIndex := iNdEx + byteLen
  3362. if postIndex > l {
  3363. return io.ErrUnexpectedEOF
  3364. }
  3365. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  3366. if m.Hash == nil {
  3367. m.Hash = []byte{}
  3368. }
  3369. iNdEx = postIndex
  3370. case 7:
  3371. if wireType != 0 {
  3372. return fmt.Errorf("proto: wrong wireType = %d for field FromTemporary", wireType)
  3373. }
  3374. var v int
  3375. for shift := uint(0); ; shift += 7 {
  3376. if shift >= 64 {
  3377. return ErrIntOverflowBep
  3378. }
  3379. if iNdEx >= l {
  3380. return io.ErrUnexpectedEOF
  3381. }
  3382. b := dAtA[iNdEx]
  3383. iNdEx++
  3384. v |= (int(b) & 0x7F) << shift
  3385. if b < 0x80 {
  3386. break
  3387. }
  3388. }
  3389. m.FromTemporary = bool(v != 0)
  3390. default:
  3391. iNdEx = preIndex
  3392. skippy, err := skipBep(dAtA[iNdEx:])
  3393. if err != nil {
  3394. return err
  3395. }
  3396. if skippy < 0 {
  3397. return ErrInvalidLengthBep
  3398. }
  3399. if (iNdEx + skippy) > l {
  3400. return io.ErrUnexpectedEOF
  3401. }
  3402. iNdEx += skippy
  3403. }
  3404. }
  3405. if iNdEx > l {
  3406. return io.ErrUnexpectedEOF
  3407. }
  3408. return nil
  3409. }
  3410. func (m *Response) Unmarshal(dAtA []byte) error {
  3411. l := len(dAtA)
  3412. iNdEx := 0
  3413. for iNdEx < l {
  3414. preIndex := iNdEx
  3415. var wire uint64
  3416. for shift := uint(0); ; shift += 7 {
  3417. if shift >= 64 {
  3418. return ErrIntOverflowBep
  3419. }
  3420. if iNdEx >= l {
  3421. return io.ErrUnexpectedEOF
  3422. }
  3423. b := dAtA[iNdEx]
  3424. iNdEx++
  3425. wire |= (uint64(b) & 0x7F) << shift
  3426. if b < 0x80 {
  3427. break
  3428. }
  3429. }
  3430. fieldNum := int32(wire >> 3)
  3431. wireType := int(wire & 0x7)
  3432. if wireType == 4 {
  3433. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  3434. }
  3435. if fieldNum <= 0 {
  3436. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  3437. }
  3438. switch fieldNum {
  3439. case 1:
  3440. if wireType != 0 {
  3441. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3442. }
  3443. m.ID = 0
  3444. for shift := uint(0); ; shift += 7 {
  3445. if shift >= 64 {
  3446. return ErrIntOverflowBep
  3447. }
  3448. if iNdEx >= l {
  3449. return io.ErrUnexpectedEOF
  3450. }
  3451. b := dAtA[iNdEx]
  3452. iNdEx++
  3453. m.ID |= (int32(b) & 0x7F) << shift
  3454. if b < 0x80 {
  3455. break
  3456. }
  3457. }
  3458. case 2:
  3459. if wireType != 2 {
  3460. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  3461. }
  3462. var byteLen int
  3463. for shift := uint(0); ; shift += 7 {
  3464. if shift >= 64 {
  3465. return ErrIntOverflowBep
  3466. }
  3467. if iNdEx >= l {
  3468. return io.ErrUnexpectedEOF
  3469. }
  3470. b := dAtA[iNdEx]
  3471. iNdEx++
  3472. byteLen |= (int(b) & 0x7F) << shift
  3473. if b < 0x80 {
  3474. break
  3475. }
  3476. }
  3477. if byteLen < 0 {
  3478. return ErrInvalidLengthBep
  3479. }
  3480. postIndex := iNdEx + byteLen
  3481. if postIndex > l {
  3482. return io.ErrUnexpectedEOF
  3483. }
  3484. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  3485. if m.Data == nil {
  3486. m.Data = []byte{}
  3487. }
  3488. iNdEx = postIndex
  3489. case 3:
  3490. if wireType != 0 {
  3491. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  3492. }
  3493. m.Code = 0
  3494. for shift := uint(0); ; shift += 7 {
  3495. if shift >= 64 {
  3496. return ErrIntOverflowBep
  3497. }
  3498. if iNdEx >= l {
  3499. return io.ErrUnexpectedEOF
  3500. }
  3501. b := dAtA[iNdEx]
  3502. iNdEx++
  3503. m.Code |= (ErrorCode(b) & 0x7F) << shift
  3504. if b < 0x80 {
  3505. break
  3506. }
  3507. }
  3508. default:
  3509. iNdEx = preIndex
  3510. skippy, err := skipBep(dAtA[iNdEx:])
  3511. if err != nil {
  3512. return err
  3513. }
  3514. if skippy < 0 {
  3515. return ErrInvalidLengthBep
  3516. }
  3517. if (iNdEx + skippy) > l {
  3518. return io.ErrUnexpectedEOF
  3519. }
  3520. iNdEx += skippy
  3521. }
  3522. }
  3523. if iNdEx > l {
  3524. return io.ErrUnexpectedEOF
  3525. }
  3526. return nil
  3527. }
  3528. func (m *DownloadProgress) Unmarshal(dAtA []byte) error {
  3529. l := len(dAtA)
  3530. iNdEx := 0
  3531. for iNdEx < l {
  3532. preIndex := iNdEx
  3533. var wire uint64
  3534. for shift := uint(0); ; shift += 7 {
  3535. if shift >= 64 {
  3536. return ErrIntOverflowBep
  3537. }
  3538. if iNdEx >= l {
  3539. return io.ErrUnexpectedEOF
  3540. }
  3541. b := dAtA[iNdEx]
  3542. iNdEx++
  3543. wire |= (uint64(b) & 0x7F) << shift
  3544. if b < 0x80 {
  3545. break
  3546. }
  3547. }
  3548. fieldNum := int32(wire >> 3)
  3549. wireType := int(wire & 0x7)
  3550. if wireType == 4 {
  3551. return fmt.Errorf("proto: DownloadProgress: wiretype end group for non-group")
  3552. }
  3553. if fieldNum <= 0 {
  3554. return fmt.Errorf("proto: DownloadProgress: illegal tag %d (wire type %d)", fieldNum, wire)
  3555. }
  3556. switch fieldNum {
  3557. case 1:
  3558. if wireType != 2 {
  3559. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  3560. }
  3561. var stringLen uint64
  3562. for shift := uint(0); ; shift += 7 {
  3563. if shift >= 64 {
  3564. return ErrIntOverflowBep
  3565. }
  3566. if iNdEx >= l {
  3567. return io.ErrUnexpectedEOF
  3568. }
  3569. b := dAtA[iNdEx]
  3570. iNdEx++
  3571. stringLen |= (uint64(b) & 0x7F) << shift
  3572. if b < 0x80 {
  3573. break
  3574. }
  3575. }
  3576. intStringLen := int(stringLen)
  3577. if intStringLen < 0 {
  3578. return ErrInvalidLengthBep
  3579. }
  3580. postIndex := iNdEx + intStringLen
  3581. if postIndex > l {
  3582. return io.ErrUnexpectedEOF
  3583. }
  3584. m.Folder = string(dAtA[iNdEx:postIndex])
  3585. iNdEx = postIndex
  3586. case 2:
  3587. if wireType != 2 {
  3588. return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType)
  3589. }
  3590. var msglen int
  3591. for shift := uint(0); ; shift += 7 {
  3592. if shift >= 64 {
  3593. return ErrIntOverflowBep
  3594. }
  3595. if iNdEx >= l {
  3596. return io.ErrUnexpectedEOF
  3597. }
  3598. b := dAtA[iNdEx]
  3599. iNdEx++
  3600. msglen |= (int(b) & 0x7F) << shift
  3601. if b < 0x80 {
  3602. break
  3603. }
  3604. }
  3605. if msglen < 0 {
  3606. return ErrInvalidLengthBep
  3607. }
  3608. postIndex := iNdEx + msglen
  3609. if postIndex > l {
  3610. return io.ErrUnexpectedEOF
  3611. }
  3612. m.Updates = append(m.Updates, FileDownloadProgressUpdate{})
  3613. if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3614. return err
  3615. }
  3616. iNdEx = postIndex
  3617. default:
  3618. iNdEx = preIndex
  3619. skippy, err := skipBep(dAtA[iNdEx:])
  3620. if err != nil {
  3621. return err
  3622. }
  3623. if skippy < 0 {
  3624. return ErrInvalidLengthBep
  3625. }
  3626. if (iNdEx + skippy) > l {
  3627. return io.ErrUnexpectedEOF
  3628. }
  3629. iNdEx += skippy
  3630. }
  3631. }
  3632. if iNdEx > l {
  3633. return io.ErrUnexpectedEOF
  3634. }
  3635. return nil
  3636. }
  3637. func (m *FileDownloadProgressUpdate) Unmarshal(dAtA []byte) error {
  3638. l := len(dAtA)
  3639. iNdEx := 0
  3640. for iNdEx < l {
  3641. preIndex := iNdEx
  3642. var wire uint64
  3643. for shift := uint(0); ; shift += 7 {
  3644. if shift >= 64 {
  3645. return ErrIntOverflowBep
  3646. }
  3647. if iNdEx >= l {
  3648. return io.ErrUnexpectedEOF
  3649. }
  3650. b := dAtA[iNdEx]
  3651. iNdEx++
  3652. wire |= (uint64(b) & 0x7F) << shift
  3653. if b < 0x80 {
  3654. break
  3655. }
  3656. }
  3657. fieldNum := int32(wire >> 3)
  3658. wireType := int(wire & 0x7)
  3659. if wireType == 4 {
  3660. return fmt.Errorf("proto: FileDownloadProgressUpdate: wiretype end group for non-group")
  3661. }
  3662. if fieldNum <= 0 {
  3663. return fmt.Errorf("proto: FileDownloadProgressUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  3664. }
  3665. switch fieldNum {
  3666. case 1:
  3667. if wireType != 0 {
  3668. return fmt.Errorf("proto: wrong wireType = %d for field UpdateType", wireType)
  3669. }
  3670. m.UpdateType = 0
  3671. for shift := uint(0); ; shift += 7 {
  3672. if shift >= 64 {
  3673. return ErrIntOverflowBep
  3674. }
  3675. if iNdEx >= l {
  3676. return io.ErrUnexpectedEOF
  3677. }
  3678. b := dAtA[iNdEx]
  3679. iNdEx++
  3680. m.UpdateType |= (FileDownloadProgressUpdateType(b) & 0x7F) << shift
  3681. if b < 0x80 {
  3682. break
  3683. }
  3684. }
  3685. case 2:
  3686. if wireType != 2 {
  3687. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3688. }
  3689. var stringLen uint64
  3690. for shift := uint(0); ; shift += 7 {
  3691. if shift >= 64 {
  3692. return ErrIntOverflowBep
  3693. }
  3694. if iNdEx >= l {
  3695. return io.ErrUnexpectedEOF
  3696. }
  3697. b := dAtA[iNdEx]
  3698. iNdEx++
  3699. stringLen |= (uint64(b) & 0x7F) << shift
  3700. if b < 0x80 {
  3701. break
  3702. }
  3703. }
  3704. intStringLen := int(stringLen)
  3705. if intStringLen < 0 {
  3706. return ErrInvalidLengthBep
  3707. }
  3708. postIndex := iNdEx + intStringLen
  3709. if postIndex > l {
  3710. return io.ErrUnexpectedEOF
  3711. }
  3712. m.Name = string(dAtA[iNdEx:postIndex])
  3713. iNdEx = postIndex
  3714. case 3:
  3715. if wireType != 2 {
  3716. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  3717. }
  3718. var msglen int
  3719. for shift := uint(0); ; shift += 7 {
  3720. if shift >= 64 {
  3721. return ErrIntOverflowBep
  3722. }
  3723. if iNdEx >= l {
  3724. return io.ErrUnexpectedEOF
  3725. }
  3726. b := dAtA[iNdEx]
  3727. iNdEx++
  3728. msglen |= (int(b) & 0x7F) << shift
  3729. if b < 0x80 {
  3730. break
  3731. }
  3732. }
  3733. if msglen < 0 {
  3734. return ErrInvalidLengthBep
  3735. }
  3736. postIndex := iNdEx + msglen
  3737. if postIndex > l {
  3738. return io.ErrUnexpectedEOF
  3739. }
  3740. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3741. return err
  3742. }
  3743. iNdEx = postIndex
  3744. case 4:
  3745. if wireType == 0 {
  3746. var v int32
  3747. for shift := uint(0); ; shift += 7 {
  3748. if shift >= 64 {
  3749. return ErrIntOverflowBep
  3750. }
  3751. if iNdEx >= l {
  3752. return io.ErrUnexpectedEOF
  3753. }
  3754. b := dAtA[iNdEx]
  3755. iNdEx++
  3756. v |= (int32(b) & 0x7F) << shift
  3757. if b < 0x80 {
  3758. break
  3759. }
  3760. }
  3761. m.BlockIndexes = append(m.BlockIndexes, v)
  3762. } else if wireType == 2 {
  3763. var packedLen int
  3764. for shift := uint(0); ; shift += 7 {
  3765. if shift >= 64 {
  3766. return ErrIntOverflowBep
  3767. }
  3768. if iNdEx >= l {
  3769. return io.ErrUnexpectedEOF
  3770. }
  3771. b := dAtA[iNdEx]
  3772. iNdEx++
  3773. packedLen |= (int(b) & 0x7F) << shift
  3774. if b < 0x80 {
  3775. break
  3776. }
  3777. }
  3778. if packedLen < 0 {
  3779. return ErrInvalidLengthBep
  3780. }
  3781. postIndex := iNdEx + packedLen
  3782. if postIndex > l {
  3783. return io.ErrUnexpectedEOF
  3784. }
  3785. for iNdEx < postIndex {
  3786. var v int32
  3787. for shift := uint(0); ; shift += 7 {
  3788. if shift >= 64 {
  3789. return ErrIntOverflowBep
  3790. }
  3791. if iNdEx >= l {
  3792. return io.ErrUnexpectedEOF
  3793. }
  3794. b := dAtA[iNdEx]
  3795. iNdEx++
  3796. v |= (int32(b) & 0x7F) << shift
  3797. if b < 0x80 {
  3798. break
  3799. }
  3800. }
  3801. m.BlockIndexes = append(m.BlockIndexes, v)
  3802. }
  3803. } else {
  3804. return fmt.Errorf("proto: wrong wireType = %d for field BlockIndexes", wireType)
  3805. }
  3806. default:
  3807. iNdEx = preIndex
  3808. skippy, err := skipBep(dAtA[iNdEx:])
  3809. if err != nil {
  3810. return err
  3811. }
  3812. if skippy < 0 {
  3813. return ErrInvalidLengthBep
  3814. }
  3815. if (iNdEx + skippy) > l {
  3816. return io.ErrUnexpectedEOF
  3817. }
  3818. iNdEx += skippy
  3819. }
  3820. }
  3821. if iNdEx > l {
  3822. return io.ErrUnexpectedEOF
  3823. }
  3824. return nil
  3825. }
  3826. func (m *Ping) Unmarshal(dAtA []byte) error {
  3827. l := len(dAtA)
  3828. iNdEx := 0
  3829. for iNdEx < l {
  3830. preIndex := iNdEx
  3831. var wire uint64
  3832. for shift := uint(0); ; shift += 7 {
  3833. if shift >= 64 {
  3834. return ErrIntOverflowBep
  3835. }
  3836. if iNdEx >= l {
  3837. return io.ErrUnexpectedEOF
  3838. }
  3839. b := dAtA[iNdEx]
  3840. iNdEx++
  3841. wire |= (uint64(b) & 0x7F) << shift
  3842. if b < 0x80 {
  3843. break
  3844. }
  3845. }
  3846. fieldNum := int32(wire >> 3)
  3847. wireType := int(wire & 0x7)
  3848. if wireType == 4 {
  3849. return fmt.Errorf("proto: Ping: wiretype end group for non-group")
  3850. }
  3851. if fieldNum <= 0 {
  3852. return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire)
  3853. }
  3854. switch fieldNum {
  3855. default:
  3856. iNdEx = preIndex
  3857. skippy, err := skipBep(dAtA[iNdEx:])
  3858. if err != nil {
  3859. return err
  3860. }
  3861. if skippy < 0 {
  3862. return ErrInvalidLengthBep
  3863. }
  3864. if (iNdEx + skippy) > l {
  3865. return io.ErrUnexpectedEOF
  3866. }
  3867. iNdEx += skippy
  3868. }
  3869. }
  3870. if iNdEx > l {
  3871. return io.ErrUnexpectedEOF
  3872. }
  3873. return nil
  3874. }
  3875. func (m *Close) Unmarshal(dAtA []byte) error {
  3876. l := len(dAtA)
  3877. iNdEx := 0
  3878. for iNdEx < l {
  3879. preIndex := iNdEx
  3880. var wire uint64
  3881. for shift := uint(0); ; shift += 7 {
  3882. if shift >= 64 {
  3883. return ErrIntOverflowBep
  3884. }
  3885. if iNdEx >= l {
  3886. return io.ErrUnexpectedEOF
  3887. }
  3888. b := dAtA[iNdEx]
  3889. iNdEx++
  3890. wire |= (uint64(b) & 0x7F) << shift
  3891. if b < 0x80 {
  3892. break
  3893. }
  3894. }
  3895. fieldNum := int32(wire >> 3)
  3896. wireType := int(wire & 0x7)
  3897. if wireType == 4 {
  3898. return fmt.Errorf("proto: Close: wiretype end group for non-group")
  3899. }
  3900. if fieldNum <= 0 {
  3901. return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
  3902. }
  3903. switch fieldNum {
  3904. case 1:
  3905. if wireType != 2 {
  3906. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  3907. }
  3908. var stringLen uint64
  3909. for shift := uint(0); ; shift += 7 {
  3910. if shift >= 64 {
  3911. return ErrIntOverflowBep
  3912. }
  3913. if iNdEx >= l {
  3914. return io.ErrUnexpectedEOF
  3915. }
  3916. b := dAtA[iNdEx]
  3917. iNdEx++
  3918. stringLen |= (uint64(b) & 0x7F) << shift
  3919. if b < 0x80 {
  3920. break
  3921. }
  3922. }
  3923. intStringLen := int(stringLen)
  3924. if intStringLen < 0 {
  3925. return ErrInvalidLengthBep
  3926. }
  3927. postIndex := iNdEx + intStringLen
  3928. if postIndex > l {
  3929. return io.ErrUnexpectedEOF
  3930. }
  3931. m.Reason = string(dAtA[iNdEx:postIndex])
  3932. iNdEx = postIndex
  3933. default:
  3934. iNdEx = preIndex
  3935. skippy, err := skipBep(dAtA[iNdEx:])
  3936. if err != nil {
  3937. return err
  3938. }
  3939. if skippy < 0 {
  3940. return ErrInvalidLengthBep
  3941. }
  3942. if (iNdEx + skippy) > l {
  3943. return io.ErrUnexpectedEOF
  3944. }
  3945. iNdEx += skippy
  3946. }
  3947. }
  3948. if iNdEx > l {
  3949. return io.ErrUnexpectedEOF
  3950. }
  3951. return nil
  3952. }
  3953. func skipBep(dAtA []byte) (n int, err error) {
  3954. l := len(dAtA)
  3955. iNdEx := 0
  3956. for iNdEx < l {
  3957. var wire uint64
  3958. for shift := uint(0); ; shift += 7 {
  3959. if shift >= 64 {
  3960. return 0, ErrIntOverflowBep
  3961. }
  3962. if iNdEx >= l {
  3963. return 0, io.ErrUnexpectedEOF
  3964. }
  3965. b := dAtA[iNdEx]
  3966. iNdEx++
  3967. wire |= (uint64(b) & 0x7F) << shift
  3968. if b < 0x80 {
  3969. break
  3970. }
  3971. }
  3972. wireType := int(wire & 0x7)
  3973. switch wireType {
  3974. case 0:
  3975. for shift := uint(0); ; shift += 7 {
  3976. if shift >= 64 {
  3977. return 0, ErrIntOverflowBep
  3978. }
  3979. if iNdEx >= l {
  3980. return 0, io.ErrUnexpectedEOF
  3981. }
  3982. iNdEx++
  3983. if dAtA[iNdEx-1] < 0x80 {
  3984. break
  3985. }
  3986. }
  3987. return iNdEx, nil
  3988. case 1:
  3989. iNdEx += 8
  3990. return iNdEx, nil
  3991. case 2:
  3992. var length int
  3993. for shift := uint(0); ; shift += 7 {
  3994. if shift >= 64 {
  3995. return 0, ErrIntOverflowBep
  3996. }
  3997. if iNdEx >= l {
  3998. return 0, io.ErrUnexpectedEOF
  3999. }
  4000. b := dAtA[iNdEx]
  4001. iNdEx++
  4002. length |= (int(b) & 0x7F) << shift
  4003. if b < 0x80 {
  4004. break
  4005. }
  4006. }
  4007. iNdEx += length
  4008. if length < 0 {
  4009. return 0, ErrInvalidLengthBep
  4010. }
  4011. return iNdEx, nil
  4012. case 3:
  4013. for {
  4014. var innerWire uint64
  4015. var start int = iNdEx
  4016. for shift := uint(0); ; shift += 7 {
  4017. if shift >= 64 {
  4018. return 0, ErrIntOverflowBep
  4019. }
  4020. if iNdEx >= l {
  4021. return 0, io.ErrUnexpectedEOF
  4022. }
  4023. b := dAtA[iNdEx]
  4024. iNdEx++
  4025. innerWire |= (uint64(b) & 0x7F) << shift
  4026. if b < 0x80 {
  4027. break
  4028. }
  4029. }
  4030. innerWireType := int(innerWire & 0x7)
  4031. if innerWireType == 4 {
  4032. break
  4033. }
  4034. next, err := skipBep(dAtA[start:])
  4035. if err != nil {
  4036. return 0, err
  4037. }
  4038. iNdEx = start + next
  4039. }
  4040. return iNdEx, nil
  4041. case 4:
  4042. return iNdEx, nil
  4043. case 5:
  4044. iNdEx += 4
  4045. return iNdEx, nil
  4046. default:
  4047. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  4048. }
  4049. }
  4050. panic("unreachable")
  4051. }
  4052. var (
  4053. ErrInvalidLengthBep = fmt.Errorf("proto: negative length found during unmarshaling")
  4054. ErrIntOverflowBep = fmt.Errorf("proto: integer overflow")
  4055. )
  4056. func init() { proto.RegisterFile("bep.proto", fileDescriptorBep) }
  4057. var fileDescriptorBep = []byte{
  4058. // 1757 bytes of a gzipped FileDescriptorProto
  4059. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x4f, 0x8f, 0xdb, 0xc6,
  4060. 0x15, 0x17, 0x25, 0xea, 0xdf, 0x93, 0xb4, 0xe1, 0x8e, 0xed, 0x2d, 0xcb, 0x6c, 0x24, 0x5a, 0xb1,
  4061. 0xe3, 0xcd, 0x22, 0x59, 0xbb, 0x49, 0xda, 0xa2, 0x45, 0x5b, 0x40, 0x7f, 0xb8, 0x6b, 0xa1, 0x32,
  4062. 0xa5, 0x8e, 0xb4, 0x4e, 0x9d, 0x43, 0x09, 0x4a, 0x1c, 0x69, 0x09, 0x53, 0x1c, 0x95, 0xa4, 0xd6,
  4063. 0x56, 0x3e, 0x82, 0x3e, 0x41, 0x2f, 0x02, 0x02, 0xf4, 0x54, 0xa0, 0xc7, 0x7e, 0x08, 0x1f, 0x83,
  4064. 0x1e, 0x7a, 0xe8, 0xc1, 0x68, 0xb6, 0x97, 0x1e, 0xfb, 0x09, 0x8a, 0x82, 0x33, 0xa4, 0x44, 0xed,
  4065. 0xda, 0x81, 0x0f, 0x39, 0x71, 0xe6, 0xbd, 0xdf, 0xbc, 0x99, 0xf9, 0xcd, 0xef, 0xbd, 0x47, 0x28,
  4066. 0x8e, 0xc8, 0xfc, 0x64, 0xee, 0xd1, 0x80, 0xa2, 0x02, 0xfb, 0x8c, 0xa9, 0xa3, 0x7c, 0x3a, 0xb5,
  4067. 0x83, 0x8b, 0xc5, 0xe8, 0x64, 0x4c, 0x67, 0x0f, 0xa7, 0x74, 0x4a, 0x1f, 0x32, 0xcf, 0x68, 0x31,
  4068. 0x61, 0x33, 0x36, 0x61, 0x23, 0xbe, 0xb0, 0x3e, 0x87, 0xec, 0x63, 0xe2, 0x38, 0x14, 0xd5, 0xa0,
  4069. 0x64, 0x91, 0x4b, 0x7b, 0x4c, 0x0c, 0xd7, 0x9c, 0x11, 0x59, 0x50, 0x85, 0xa3, 0x22, 0x06, 0x6e,
  4070. 0xd2, 0xcd, 0x19, 0x09, 0x01, 0x63, 0xc7, 0x26, 0x6e, 0xc0, 0x01, 0x69, 0x0e, 0xe0, 0x26, 0x06,
  4071. 0xb8, 0x0f, 0x7b, 0x11, 0xe0, 0x92, 0x78, 0xbe, 0x4d, 0x5d, 0x39, 0xc3, 0x30, 0x15, 0x6e, 0x7d,
  4072. 0xca, 0x8d, 0x75, 0x1f, 0x72, 0x8f, 0x89, 0x69, 0x11, 0x0f, 0x7d, 0x0c, 0x62, 0xb0, 0x9c, 0xf3,
  4073. 0xbd, 0xf6, 0x3e, 0xbb, 0x73, 0x12, 0xdf, 0xe1, 0xe4, 0x09, 0xf1, 0x7d, 0x73, 0x4a, 0x86, 0xcb,
  4074. 0x39, 0xc1, 0x0c, 0x82, 0x7e, 0x03, 0xa5, 0x31, 0x9d, 0xcd, 0x3d, 0xe2, 0xb3, 0xc0, 0x69, 0xb6,
  4075. 0xe2, 0xf0, 0xc6, 0x8a, 0xd6, 0x16, 0x83, 0x93, 0x0b, 0xea, 0x0d, 0xa8, 0xb4, 0x9c, 0x85, 0x1f,
  4076. 0x10, 0xaf, 0x45, 0xdd, 0x89, 0x3d, 0x45, 0x8f, 0x20, 0x3f, 0xa1, 0x8e, 0x45, 0x3c, 0x5f, 0x16,
  4077. 0xd4, 0xcc, 0x51, 0xe9, 0x33, 0x69, 0x1b, 0xec, 0x94, 0x39, 0x9a, 0xe2, 0xab, 0xd7, 0xb5, 0x14,
  4078. 0x8e, 0x61, 0xf5, 0x3f, 0xa7, 0x21, 0xc7, 0x3d, 0xe8, 0x00, 0xd2, 0xb6, 0xc5, 0x29, 0x6a, 0xe6,
  4079. 0xae, 0x5e, 0xd7, 0xd2, 0x9d, 0x36, 0x4e, 0xdb, 0x16, 0xba, 0x0d, 0x59, 0xc7, 0x1c, 0x11, 0x27,
  4080. 0x22, 0x87, 0x4f, 0xd0, 0xfb, 0x50, 0xf4, 0x88, 0x69, 0x19, 0xd4, 0x75, 0x96, 0x8c, 0x92, 0x02,
  4081. 0x2e, 0x84, 0x86, 0x9e, 0xeb, 0x2c, 0xd1, 0xa7, 0x80, 0xec, 0xa9, 0x4b, 0x3d, 0x62, 0xcc, 0x89,
  4082. 0x37, 0xb3, 0xd9, 0x69, 0x7d, 0x59, 0x64, 0xa8, 0x7d, 0xee, 0xe9, 0x6f, 0x1d, 0xe8, 0x43, 0xa8,
  4083. 0x44, 0x70, 0x8b, 0x38, 0x24, 0x20, 0x72, 0x96, 0x21, 0xcb, 0xdc, 0xd8, 0x66, 0x36, 0xf4, 0x08,
  4084. 0x6e, 0x5b, 0xb6, 0x6f, 0x8e, 0x1c, 0x62, 0x04, 0x64, 0x36, 0x37, 0x6c, 0xd7, 0x22, 0x2f, 0x89,
  4085. 0x2f, 0xe7, 0x18, 0x16, 0x45, 0xbe, 0x21, 0x99, 0xcd, 0x3b, 0xdc, 0x83, 0x0e, 0x20, 0x37, 0x37,
  4086. 0x17, 0x3e, 0xb1, 0xe4, 0x3c, 0xc3, 0x44, 0xb3, 0x90, 0x25, 0xae, 0x00, 0x5f, 0x96, 0xae, 0xb3,
  4087. 0xd4, 0x66, 0x8e, 0x98, 0xa5, 0x08, 0x56, 0xff, 0x6f, 0x1a, 0x72, 0xdc, 0x83, 0x3e, 0xda, 0xb0,
  4088. 0x54, 0x6e, 0x1e, 0x84, 0xa8, 0x7f, 0xbe, 0xae, 0x15, 0xb8, 0xaf, 0xd3, 0x4e, 0xb0, 0x86, 0x40,
  4089. 0x4c, 0x28, 0x8a, 0x8d, 0xd1, 0x21, 0x14, 0x4d, 0xcb, 0x0a, 0x5f, 0x8f, 0xf8, 0x72, 0x46, 0xcd,
  4090. 0x1c, 0x15, 0xf1, 0xd6, 0x80, 0x7e, 0xbe, 0xab, 0x06, 0xf1, 0xba, 0x7e, 0xde, 0x26, 0x83, 0xf0,
  4091. 0x29, 0xc6, 0xc4, 0x8b, 0x14, 0x9c, 0x65, 0xfb, 0x15, 0x42, 0x03, 0xd3, 0xef, 0x5d, 0x28, 0xcf,
  4092. 0xcc, 0x97, 0x86, 0x4f, 0xfe, 0xb8, 0x20, 0xee, 0x98, 0x30, 0xba, 0x32, 0xb8, 0x34, 0x33, 0x5f,
  4093. 0x0e, 0x22, 0x13, 0xaa, 0x02, 0xd8, 0x6e, 0xe0, 0x51, 0x6b, 0x31, 0x26, 0x5e, 0xc4, 0x55, 0xc2,
  4094. 0x82, 0x7e, 0x0a, 0x05, 0x46, 0xb6, 0x61, 0x5b, 0x72, 0x41, 0x15, 0x8e, 0xc4, 0xa6, 0x12, 0x5d,
  4095. 0x3c, 0xcf, 0xa8, 0x66, 0xf7, 0x8e, 0x87, 0x38, 0xcf, 0xb0, 0x1d, 0x0b, 0xfd, 0x0a, 0x14, 0xff,
  4096. 0xb9, 0x1d, 0x3e, 0x14, 0x8f, 0x14, 0xd8, 0xd4, 0x35, 0x3c, 0x32, 0xa3, 0x97, 0xa6, 0xe3, 0xcb,
  4097. 0x45, 0xb6, 0x8d, 0x1c, 0x22, 0x3a, 0x09, 0x00, 0x8e, 0xfc, 0xf5, 0x1e, 0x64, 0x59, 0xc4, 0xf0,
  4098. 0x15, 0xb9, 0x58, 0xa3, 0xec, 0x8d, 0x66, 0xe8, 0x04, 0xb2, 0x13, 0xdb, 0x21, 0xbe, 0x9c, 0x66,
  4099. 0x6f, 0x88, 0x12, 0x4a, 0xb7, 0x1d, 0xd2, 0x71, 0x27, 0x34, 0x7a, 0x45, 0x0e, 0xab, 0x9f, 0x43,
  4100. 0x89, 0x05, 0x3c, 0x9f, 0x5b, 0x66, 0x40, 0x7e, 0xb0, 0xb0, 0x7f, 0x15, 0xa1, 0x10, 0x7b, 0x36,
  4101. 0x8f, 0x2e, 0x24, 0x1e, 0xfd, 0x38, 0xaa, 0x07, 0x3c, 0xbb, 0x0f, 0x6e, 0xc6, 0x4b, 0x14, 0x04,
  4102. 0x04, 0xa2, 0x6f, 0x7f, 0x4d, 0x58, 0x3e, 0x65, 0x30, 0x1b, 0x23, 0x15, 0x4a, 0xd7, 0x93, 0xa8,
  4103. 0x82, 0x93, 0x26, 0xf4, 0x01, 0xc0, 0x8c, 0x5a, 0xf6, 0xc4, 0x26, 0x96, 0xe1, 0x33, 0x01, 0x64,
  4104. 0x70, 0x31, 0xb6, 0x0c, 0x90, 0x1c, 0xca, 0x3d, 0x4c, 0x21, 0x2b, 0xca, 0x95, 0x78, 0x1a, 0x7a,
  4105. 0x6c, 0xf7, 0xd2, 0x74, 0xec, 0x38, 0x43, 0xe2, 0x69, 0x58, 0xf5, 0x5c, 0xba, 0x93, 0xbc, 0x05,
  4106. 0x06, 0xa8, 0xb8, 0x34, 0x99, 0xb8, 0x8f, 0x20, 0x1f, 0x57, 0xc5, 0xf0, 0x3d, 0x77, 0x32, 0xe9,
  4107. 0x29, 0x19, 0x07, 0x74, 0x53, 0x6f, 0x22, 0x18, 0x52, 0xa0, 0xb0, 0x91, 0x22, 0xb0, 0x93, 0x6e,
  4108. 0xe6, 0x61, 0x2d, 0xde, 0xdc, 0xc3, 0xf5, 0xe5, 0x92, 0x2a, 0x1c, 0x65, 0xf1, 0xe6, 0x6a, 0x7a,
  4109. 0xb8, 0xdd, 0x16, 0x30, 0x5a, 0xca, 0x65, 0xa6, 0xc5, 0xf7, 0x62, 0x2d, 0x0e, 0x2e, 0xa8, 0x17,
  4110. 0x74, 0xda, 0xdb, 0x15, 0xcd, 0x25, 0x7a, 0x08, 0x30, 0x72, 0xe8, 0xf8, 0xb9, 0xc1, 0x68, 0xad,
  4111. 0x84, 0x11, 0x9b, 0xd2, 0xd5, 0xeb, 0x5a, 0x19, 0x9b, 0x2f, 0x9a, 0xa1, 0x63, 0x60, 0x7f, 0x4d,
  4112. 0x70, 0x71, 0x14, 0x0f, 0xd1, 0x4f, 0x20, 0xc7, 0xec, 0x71, 0x69, 0xb8, 0xb5, 0xbd, 0x10, 0xb3,
  4113. 0x27, 0x04, 0x10, 0x01, 0x43, 0xae, 0xfc, 0xe5, 0xcc, 0xb1, 0xdd, 0xe7, 0x46, 0x60, 0x7a, 0x53,
  4114. 0x12, 0xc8, 0xfb, 0xbc, 0x43, 0x44, 0xd6, 0x21, 0x33, 0xfe, 0x52, 0xfc, 0xd3, 0x37, 0xb5, 0x54,
  4115. 0xdd, 0x85, 0xe2, 0x26, 0x4e, 0xa8, 0x41, 0x3a, 0x99, 0xf8, 0x24, 0x60, 0x82, 0xc9, 0xe0, 0x68,
  4116. 0xb6, 0x91, 0x41, 0x9a, 0x31, 0xc0, 0x65, 0x80, 0x40, 0xbc, 0x30, 0xfd, 0x0b, 0x26, 0x8d, 0x32,
  4117. 0x66, 0xe3, 0x30, 0xf1, 0x5f, 0x10, 0xf3, 0xb9, 0xc1, 0x1c, 0x5c, 0x18, 0x85, 0xd0, 0xf0, 0xd8,
  4118. 0xf4, 0x2f, 0xa2, 0xfd, 0x7e, 0x0d, 0x39, 0xfe, 0x10, 0xe8, 0x73, 0x28, 0x8c, 0xe9, 0xc2, 0x0d,
  4119. 0xb6, 0xcd, 0x61, 0x3f, 0x59, 0x5b, 0x98, 0x27, 0xba, 0xd9, 0x06, 0x58, 0x3f, 0x85, 0x7c, 0xe4,
  4120. 0x42, 0xf7, 0x37, 0x85, 0x4f, 0x6c, 0xde, 0xb9, 0xc6, 0xf9, 0x6e, 0xb7, 0xb8, 0x34, 0x9d, 0x05,
  4121. 0x3f, 0xbc, 0x88, 0xf9, 0xa4, 0xfe, 0x37, 0x01, 0xf2, 0x38, 0x7c, 0x67, 0x3f, 0x48, 0xf4, 0x99,
  4122. 0xec, 0x4e, 0x9f, 0xd9, 0x66, 0x64, 0x7a, 0x27, 0x23, 0xe3, 0xa4, 0xca, 0x24, 0x92, 0x6a, 0xcb,
  4123. 0x9c, 0xf8, 0x46, 0xe6, 0xb2, 0x6f, 0x60, 0x2e, 0x97, 0x60, 0xee, 0x3e, 0xec, 0x4d, 0x3c, 0x3a,
  4124. 0x63, 0x9d, 0x84, 0x7a, 0xa6, 0xb7, 0x8c, 0x12, 0xa0, 0x12, 0x5a, 0x87, 0xb1, 0xb1, 0x6e, 0x40,
  4125. 0x01, 0x13, 0x7f, 0x4e, 0x5d, 0x9f, 0xbc, 0xf5, 0xd8, 0x08, 0x44, 0xcb, 0x0c, 0x4c, 0x76, 0xe8,
  4126. 0x32, 0x66, 0x63, 0xf4, 0x00, 0xc4, 0x31, 0xb5, 0xf8, 0x91, 0xf7, 0x92, 0x1a, 0xd2, 0x3c, 0x8f,
  4127. 0x7a, 0x2d, 0x6a, 0x11, 0xcc, 0x00, 0xf5, 0x39, 0x48, 0x6d, 0xfa, 0xc2, 0x75, 0xa8, 0x69, 0xf5,
  4128. 0x3d, 0x3a, 0x0d, 0x2b, 0xfa, 0x5b, 0x2b, 0x53, 0x1b, 0xf2, 0x0b, 0x56, 0xbb, 0xe2, 0xda, 0x74,
  4129. 0x6f, 0xb7, 0x96, 0x5c, 0x0f, 0xc4, 0x0b, 0x5d, 0x9c, 0x80, 0xd1, 0xd2, 0xfa, 0x3f, 0x04, 0x50,
  4130. 0xde, 0x8e, 0x46, 0x1d, 0x28, 0x71, 0xa4, 0x91, 0xf8, 0x89, 0x39, 0x7a, 0x97, 0x8d, 0x58, 0x19,
  4131. 0x83, 0xc5, 0x66, 0xfc, 0xc6, 0x0e, 0x98, 0x28, 0x18, 0x99, 0x77, 0x2b, 0x18, 0x0f, 0xa0, 0xc2,
  4132. 0x33, 0x38, 0xee, 0xf7, 0xa2, 0x9a, 0x39, 0xca, 0x36, 0xd3, 0x52, 0x0a, 0x97, 0x47, 0x3c, 0x93,
  4133. 0x98, 0xbd, 0x9e, 0x03, 0xb1, 0x6f, 0xbb, 0xd3, 0x7a, 0x0d, 0xb2, 0x2d, 0x87, 0xb2, 0x07, 0xcb,
  4134. 0x79, 0xc4, 0xf4, 0xa9, 0x1b, 0xf3, 0xc8, 0x67, 0xc7, 0x7f, 0x4f, 0x43, 0x29, 0xf1, 0x2f, 0x86,
  4135. 0x1e, 0xc1, 0x5e, 0xab, 0x7b, 0x3e, 0x18, 0x6a, 0xd8, 0x68, 0xf5, 0xf4, 0xd3, 0xce, 0x99, 0x94,
  4136. 0x52, 0x0e, 0x57, 0x6b, 0x55, 0x9e, 0x6d, 0x41, 0xbb, 0xbf, 0x59, 0x35, 0xc8, 0x76, 0xf4, 0xb6,
  4137. 0xf6, 0x7b, 0x49, 0x50, 0x6e, 0xaf, 0xd6, 0xaa, 0x94, 0x00, 0xf2, 0x9e, 0xf5, 0x09, 0x94, 0x19,
  4138. 0xc0, 0x38, 0xef, 0xb7, 0x1b, 0x43, 0x4d, 0x4a, 0x2b, 0xca, 0x6a, 0xad, 0x1e, 0x5c, 0xc7, 0x45,
  4139. 0x9c, 0x7f, 0x08, 0x79, 0xac, 0xfd, 0xee, 0x5c, 0x1b, 0x0c, 0xa5, 0x8c, 0x72, 0xb0, 0x5a, 0xab,
  4140. 0x28, 0x01, 0x8c, 0xb3, 0xe6, 0x3e, 0x14, 0xb0, 0x36, 0xe8, 0xf7, 0xf4, 0x81, 0x26, 0x89, 0xca,
  4141. 0x8f, 0x56, 0x6b, 0xf5, 0xd6, 0x0e, 0x2a, 0x52, 0xe9, 0xcf, 0x60, 0xbf, 0xdd, 0xfb, 0x52, 0xef,
  4142. 0xf6, 0x1a, 0x6d, 0xa3, 0x8f, 0x7b, 0x67, 0x58, 0x1b, 0x0c, 0xa4, 0xac, 0x52, 0x5b, 0xad, 0xd5,
  4143. 0xf7, 0x13, 0xf8, 0x1b, 0xa2, 0xfb, 0x00, 0xc4, 0x7e, 0x47, 0x3f, 0x93, 0x72, 0xca, 0xad, 0xd5,
  4144. 0x5a, 0x7d, 0x2f, 0x01, 0x0d, 0x49, 0x0d, 0x6f, 0xdc, 0xea, 0xf6, 0x06, 0x9a, 0x94, 0xbf, 0x71,
  4145. 0x63, 0x46, 0xf6, 0xf1, 0x1f, 0x00, 0xdd, 0xfc, 0x5b, 0x45, 0xf7, 0x40, 0xd4, 0x7b, 0xba, 0x26,
  4146. 0xa5, 0xf8, 0xfd, 0x6f, 0x22, 0x74, 0xea, 0x12, 0x54, 0x87, 0x4c, 0xf7, 0xab, 0x2f, 0x24, 0x41,
  4147. 0xf9, 0xf1, 0x6a, 0xad, 0xde, 0xb9, 0x09, 0xea, 0x7e, 0xf5, 0xc5, 0x31, 0x85, 0x52, 0x32, 0x70,
  4148. 0x1d, 0x0a, 0x4f, 0xb4, 0x61, 0xa3, 0xdd, 0x18, 0x36, 0xa4, 0x14, 0x3f, 0x52, 0xec, 0x7e, 0x42,
  4149. 0x02, 0x93, 0x25, 0xe1, 0x21, 0x64, 0x75, 0xed, 0xa9, 0x86, 0x25, 0x41, 0xd9, 0x5f, 0xad, 0xd5,
  4150. 0x4a, 0x0c, 0xd0, 0xc9, 0x25, 0xf1, 0x50, 0x15, 0x72, 0x8d, 0xee, 0x97, 0x8d, 0x67, 0x03, 0x29,
  4151. 0xad, 0xa0, 0xd5, 0x5a, 0xdd, 0x8b, 0xdd, 0x0d, 0xe7, 0x85, 0xb9, 0xf4, 0x8f, 0xff, 0x27, 0x40,
  4152. 0x39, 0xd9, 0xa1, 0x51, 0x15, 0xc4, 0xd3, 0x4e, 0x57, 0x8b, 0xb7, 0x4b, 0xfa, 0xc2, 0x31, 0x3a,
  4153. 0x82, 0x62, 0xbb, 0x83, 0xb5, 0xd6, 0xb0, 0x87, 0x9f, 0xc5, 0x77, 0x49, 0x82, 0xda, 0xb6, 0xc7,
  4154. 0x04, 0xbe, 0x44, 0xbf, 0x80, 0xf2, 0xe0, 0xd9, 0x93, 0x6e, 0x47, 0xff, 0xad, 0xc1, 0x22, 0xa6,
  4155. 0x95, 0x07, 0xab, 0xb5, 0x7a, 0x77, 0x07, 0x4c, 0xe6, 0x1e, 0x19, 0x9b, 0x01, 0xb1, 0x06, 0xbc,
  4156. 0x89, 0x84, 0xce, 0x82, 0x80, 0x5a, 0xb0, 0x1f, 0x2f, 0xdd, 0x6e, 0x96, 0x51, 0x3e, 0x59, 0xad,
  4157. 0xd5, 0x8f, 0xbe, 0x77, 0xfd, 0x66, 0xf7, 0x82, 0x80, 0xee, 0x41, 0x3e, 0x0a, 0x12, 0x2b, 0x29,
  4158. 0xb9, 0x34, 0x5a, 0x70, 0xfc, 0x17, 0x01, 0x8a, 0x9b, 0x72, 0x15, 0x12, 0xae, 0xf7, 0x0c, 0x0d,
  4159. 0xe3, 0x1e, 0x8e, 0x19, 0xd8, 0x38, 0x75, 0xca, 0x86, 0xe8, 0x2e, 0xe4, 0xcf, 0x34, 0x5d, 0xc3,
  4160. 0x9d, 0x56, 0x9c, 0x18, 0x1b, 0xc8, 0x19, 0x71, 0x89, 0x67, 0x8f, 0xd1, 0xc7, 0x50, 0xd6, 0x7b,
  4161. 0xc6, 0xe0, 0xbc, 0xf5, 0x38, 0xbe, 0x3a, 0xdb, 0x3f, 0x11, 0x6a, 0xb0, 0x18, 0x5f, 0x30, 0x3e,
  4162. 0x8f, 0xc3, 0x1c, 0x7a, 0xda, 0xe8, 0x76, 0xda, 0x1c, 0x9a, 0x51, 0xe4, 0xd5, 0x5a, 0xbd, 0xbd,
  4163. 0x81, 0x76, 0xf8, 0xaf, 0x4a, 0x88, 0x3d, 0xb6, 0xa0, 0xfa, 0xfd, 0x85, 0x09, 0xa9, 0x90, 0x6b,
  4164. 0xf4, 0xfb, 0x9a, 0xde, 0x8e, 0x4f, 0xbf, 0xf5, 0x35, 0xe6, 0x73, 0xe2, 0x5a, 0x21, 0xe2, 0xb4,
  4165. 0x87, 0xcf, 0xb4, 0x61, 0x7c, 0xf8, 0x2d, 0xe2, 0x94, 0x86, 0x1d, 0xbc, 0x79, 0xf8, 0xea, 0xbb,
  4166. 0x6a, 0xea, 0xdb, 0xef, 0xaa, 0xa9, 0x57, 0x57, 0x55, 0xe1, 0xdb, 0xab, 0xaa, 0xf0, 0xaf, 0xab,
  4167. 0x6a, 0xea, 0x3f, 0x57, 0x55, 0xe1, 0x9b, 0x7f, 0x57, 0x85, 0x51, 0x8e, 0x15, 0xb2, 0xcf, 0xff,
  4168. 0x1f, 0x00, 0x00, 0xff, 0xff, 0x0d, 0x36, 0x7c, 0x9b, 0xc0, 0x0e, 0x00, 0x00,
  4169. }