bep.pb.go 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/protocol/bep.proto
  3. package protocol
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. _ "github.com/syncthing/syncthing/proto/ext"
  9. io "io"
  10. math "math"
  11. math_bits "math/bits"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  22. type MessageType int32
  23. const (
  24. MessageTypeClusterConfig MessageType = 0
  25. MessageTypeIndex MessageType = 1
  26. MessageTypeIndexUpdate MessageType = 2
  27. MessageTypeRequest MessageType = 3
  28. MessageTypeResponse MessageType = 4
  29. MessageTypeDownloadProgress MessageType = 5
  30. MessageTypePing MessageType = 6
  31. MessageTypeClose MessageType = 7
  32. )
  33. var MessageType_name = map[int32]string{
  34. 0: "MESSAGE_TYPE_CLUSTER_CONFIG",
  35. 1: "MESSAGE_TYPE_INDEX",
  36. 2: "MESSAGE_TYPE_INDEX_UPDATE",
  37. 3: "MESSAGE_TYPE_REQUEST",
  38. 4: "MESSAGE_TYPE_RESPONSE",
  39. 5: "MESSAGE_TYPE_DOWNLOAD_PROGRESS",
  40. 6: "MESSAGE_TYPE_PING",
  41. 7: "MESSAGE_TYPE_CLOSE",
  42. }
  43. var MessageType_value = map[string]int32{
  44. "MESSAGE_TYPE_CLUSTER_CONFIG": 0,
  45. "MESSAGE_TYPE_INDEX": 1,
  46. "MESSAGE_TYPE_INDEX_UPDATE": 2,
  47. "MESSAGE_TYPE_REQUEST": 3,
  48. "MESSAGE_TYPE_RESPONSE": 4,
  49. "MESSAGE_TYPE_DOWNLOAD_PROGRESS": 5,
  50. "MESSAGE_TYPE_PING": 6,
  51. "MESSAGE_TYPE_CLOSE": 7,
  52. }
  53. func (x MessageType) String() string {
  54. return proto.EnumName(MessageType_name, int32(x))
  55. }
  56. func (MessageType) EnumDescriptor() ([]byte, []int) {
  57. return fileDescriptor_311ef540e10d9705, []int{0}
  58. }
  59. type MessageCompression int32
  60. const (
  61. MessageCompressionNone MessageCompression = 0
  62. MessageCompressionLZ4 MessageCompression = 1
  63. )
  64. var MessageCompression_name = map[int32]string{
  65. 0: "MESSAGE_COMPRESSION_NONE",
  66. 1: "MESSAGE_COMPRESSION_LZ4",
  67. }
  68. var MessageCompression_value = map[string]int32{
  69. "MESSAGE_COMPRESSION_NONE": 0,
  70. "MESSAGE_COMPRESSION_LZ4": 1,
  71. }
  72. func (x MessageCompression) String() string {
  73. return proto.EnumName(MessageCompression_name, int32(x))
  74. }
  75. func (MessageCompression) EnumDescriptor() ([]byte, []int) {
  76. return fileDescriptor_311ef540e10d9705, []int{1}
  77. }
  78. type Compression int32
  79. const (
  80. CompressionMetadata Compression = 0
  81. CompressionNever Compression = 1
  82. CompressionAlways Compression = 2
  83. )
  84. var Compression_name = map[int32]string{
  85. 0: "COMPRESSION_METADATA",
  86. 1: "COMPRESSION_NEVER",
  87. 2: "COMPRESSION_ALWAYS",
  88. }
  89. var Compression_value = map[string]int32{
  90. "COMPRESSION_METADATA": 0,
  91. "COMPRESSION_NEVER": 1,
  92. "COMPRESSION_ALWAYS": 2,
  93. }
  94. func (x Compression) String() string {
  95. return proto.EnumName(Compression_name, int32(x))
  96. }
  97. func (Compression) EnumDescriptor() ([]byte, []int) {
  98. return fileDescriptor_311ef540e10d9705, []int{2}
  99. }
  100. type FileInfoType int32
  101. const (
  102. FileInfoTypeFile FileInfoType = 0
  103. FileInfoTypeDirectory FileInfoType = 1
  104. FileInfoTypeSymlinkFile FileInfoType = 2 // Deprecated: Do not use.
  105. FileInfoTypeSymlinkDirectory FileInfoType = 3 // Deprecated: Do not use.
  106. FileInfoTypeSymlink FileInfoType = 4
  107. )
  108. var FileInfoType_name = map[int32]string{
  109. 0: "FILE_INFO_TYPE_FILE",
  110. 1: "FILE_INFO_TYPE_DIRECTORY",
  111. 2: "FILE_INFO_TYPE_SYMLINK_FILE",
  112. 3: "FILE_INFO_TYPE_SYMLINK_DIRECTORY",
  113. 4: "FILE_INFO_TYPE_SYMLINK",
  114. }
  115. var FileInfoType_value = map[string]int32{
  116. "FILE_INFO_TYPE_FILE": 0,
  117. "FILE_INFO_TYPE_DIRECTORY": 1,
  118. "FILE_INFO_TYPE_SYMLINK_FILE": 2,
  119. "FILE_INFO_TYPE_SYMLINK_DIRECTORY": 3,
  120. "FILE_INFO_TYPE_SYMLINK": 4,
  121. }
  122. func (x FileInfoType) String() string {
  123. return proto.EnumName(FileInfoType_name, int32(x))
  124. }
  125. func (FileInfoType) EnumDescriptor() ([]byte, []int) {
  126. return fileDescriptor_311ef540e10d9705, []int{3}
  127. }
  128. type ErrorCode int32
  129. const (
  130. ErrorCodeNoError ErrorCode = 0
  131. ErrorCodeGeneric ErrorCode = 1
  132. ErrorCodeNoSuchFile ErrorCode = 2
  133. ErrorCodeInvalidFile ErrorCode = 3
  134. )
  135. var ErrorCode_name = map[int32]string{
  136. 0: "ERROR_CODE_NO_ERROR",
  137. 1: "ERROR_CODE_GENERIC",
  138. 2: "ERROR_CODE_NO_SUCH_FILE",
  139. 3: "ERROR_CODE_INVALID_FILE",
  140. }
  141. var ErrorCode_value = map[string]int32{
  142. "ERROR_CODE_NO_ERROR": 0,
  143. "ERROR_CODE_GENERIC": 1,
  144. "ERROR_CODE_NO_SUCH_FILE": 2,
  145. "ERROR_CODE_INVALID_FILE": 3,
  146. }
  147. func (x ErrorCode) String() string {
  148. return proto.EnumName(ErrorCode_name, int32(x))
  149. }
  150. func (ErrorCode) EnumDescriptor() ([]byte, []int) {
  151. return fileDescriptor_311ef540e10d9705, []int{4}
  152. }
  153. type FileDownloadProgressUpdateType int32
  154. const (
  155. FileDownloadProgressUpdateTypeAppend FileDownloadProgressUpdateType = 0
  156. FileDownloadProgressUpdateTypeForget FileDownloadProgressUpdateType = 1
  157. )
  158. var FileDownloadProgressUpdateType_name = map[int32]string{
  159. 0: "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_APPEND",
  160. 1: "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_FORGET",
  161. }
  162. var FileDownloadProgressUpdateType_value = map[string]int32{
  163. "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_APPEND": 0,
  164. "FILE_DOWNLOAD_PROGRESS_UPDATE_TYPE_FORGET": 1,
  165. }
  166. func (x FileDownloadProgressUpdateType) String() string {
  167. return proto.EnumName(FileDownloadProgressUpdateType_name, int32(x))
  168. }
  169. func (FileDownloadProgressUpdateType) EnumDescriptor() ([]byte, []int) {
  170. return fileDescriptor_311ef540e10d9705, []int{5}
  171. }
  172. type Hello struct {
  173. DeviceName string `protobuf:"bytes,1,opt,name=device_name,json=deviceName,proto3" json:"deviceName" xml:"deviceName"`
  174. ClientName string `protobuf:"bytes,2,opt,name=client_name,json=clientName,proto3" json:"clientName" xml:"clientName"`
  175. ClientVersion string `protobuf:"bytes,3,opt,name=client_version,json=clientVersion,proto3" json:"clientVersion" xml:"clientVersion"`
  176. }
  177. func (m *Hello) Reset() { *m = Hello{} }
  178. func (m *Hello) String() string { return proto.CompactTextString(m) }
  179. func (*Hello) ProtoMessage() {}
  180. func (*Hello) Descriptor() ([]byte, []int) {
  181. return fileDescriptor_311ef540e10d9705, []int{0}
  182. }
  183. func (m *Hello) XXX_Unmarshal(b []byte) error {
  184. return m.Unmarshal(b)
  185. }
  186. func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  187. if deterministic {
  188. return xxx_messageInfo_Hello.Marshal(b, m, deterministic)
  189. } else {
  190. b = b[:cap(b)]
  191. n, err := m.MarshalToSizedBuffer(b)
  192. if err != nil {
  193. return nil, err
  194. }
  195. return b[:n], nil
  196. }
  197. }
  198. func (m *Hello) XXX_Merge(src proto.Message) {
  199. xxx_messageInfo_Hello.Merge(m, src)
  200. }
  201. func (m *Hello) XXX_Size() int {
  202. return m.ProtoSize()
  203. }
  204. func (m *Hello) XXX_DiscardUnknown() {
  205. xxx_messageInfo_Hello.DiscardUnknown(m)
  206. }
  207. var xxx_messageInfo_Hello proto.InternalMessageInfo
  208. type Header struct {
  209. Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.MessageType" json:"type" xml:"type"`
  210. Compression MessageCompression `protobuf:"varint,2,opt,name=compression,proto3,enum=protocol.MessageCompression" json:"compression" xml:"compression"`
  211. }
  212. func (m *Header) Reset() { *m = Header{} }
  213. func (m *Header) String() string { return proto.CompactTextString(m) }
  214. func (*Header) ProtoMessage() {}
  215. func (*Header) Descriptor() ([]byte, []int) {
  216. return fileDescriptor_311ef540e10d9705, []int{1}
  217. }
  218. func (m *Header) XXX_Unmarshal(b []byte) error {
  219. return m.Unmarshal(b)
  220. }
  221. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  222. if deterministic {
  223. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  224. } else {
  225. b = b[:cap(b)]
  226. n, err := m.MarshalToSizedBuffer(b)
  227. if err != nil {
  228. return nil, err
  229. }
  230. return b[:n], nil
  231. }
  232. }
  233. func (m *Header) XXX_Merge(src proto.Message) {
  234. xxx_messageInfo_Header.Merge(m, src)
  235. }
  236. func (m *Header) XXX_Size() int {
  237. return m.ProtoSize()
  238. }
  239. func (m *Header) XXX_DiscardUnknown() {
  240. xxx_messageInfo_Header.DiscardUnknown(m)
  241. }
  242. var xxx_messageInfo_Header proto.InternalMessageInfo
  243. type ClusterConfig struct {
  244. Folders []Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders" xml:"folder"`
  245. }
  246. func (m *ClusterConfig) Reset() { *m = ClusterConfig{} }
  247. func (m *ClusterConfig) String() string { return proto.CompactTextString(m) }
  248. func (*ClusterConfig) ProtoMessage() {}
  249. func (*ClusterConfig) Descriptor() ([]byte, []int) {
  250. return fileDescriptor_311ef540e10d9705, []int{2}
  251. }
  252. func (m *ClusterConfig) XXX_Unmarshal(b []byte) error {
  253. return m.Unmarshal(b)
  254. }
  255. func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  256. if deterministic {
  257. return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic)
  258. } else {
  259. b = b[:cap(b)]
  260. n, err := m.MarshalToSizedBuffer(b)
  261. if err != nil {
  262. return nil, err
  263. }
  264. return b[:n], nil
  265. }
  266. }
  267. func (m *ClusterConfig) XXX_Merge(src proto.Message) {
  268. xxx_messageInfo_ClusterConfig.Merge(m, src)
  269. }
  270. func (m *ClusterConfig) XXX_Size() int {
  271. return m.ProtoSize()
  272. }
  273. func (m *ClusterConfig) XXX_DiscardUnknown() {
  274. xxx_messageInfo_ClusterConfig.DiscardUnknown(m)
  275. }
  276. var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo
  277. type Folder struct {
  278. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" xml:"id"`
  279. Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label" xml:"label"`
  280. ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"readOnly" xml:"readOnly"`
  281. IgnorePermissions bool `protobuf:"varint,4,opt,name=ignore_permissions,json=ignorePermissions,proto3" json:"ignorePermissions" xml:"ignorePermissions"`
  282. IgnoreDelete bool `protobuf:"varint,5,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignoreDelete" xml:"ignoreDelete"`
  283. DisableTempIndexes bool `protobuf:"varint,6,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disableTempIndexes" xml:"disableTempIndexes"`
  284. Paused bool `protobuf:"varint,7,opt,name=paused,proto3" json:"paused" xml:"paused"`
  285. Devices []Device `protobuf:"bytes,16,rep,name=devices,proto3" json:"devices" xml:"device"`
  286. }
  287. func (m *Folder) Reset() { *m = Folder{} }
  288. func (m *Folder) String() string { return proto.CompactTextString(m) }
  289. func (*Folder) ProtoMessage() {}
  290. func (*Folder) Descriptor() ([]byte, []int) {
  291. return fileDescriptor_311ef540e10d9705, []int{3}
  292. }
  293. func (m *Folder) XXX_Unmarshal(b []byte) error {
  294. return m.Unmarshal(b)
  295. }
  296. func (m *Folder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  297. if deterministic {
  298. return xxx_messageInfo_Folder.Marshal(b, m, deterministic)
  299. } else {
  300. b = b[:cap(b)]
  301. n, err := m.MarshalToSizedBuffer(b)
  302. if err != nil {
  303. return nil, err
  304. }
  305. return b[:n], nil
  306. }
  307. }
  308. func (m *Folder) XXX_Merge(src proto.Message) {
  309. xxx_messageInfo_Folder.Merge(m, src)
  310. }
  311. func (m *Folder) XXX_Size() int {
  312. return m.ProtoSize()
  313. }
  314. func (m *Folder) XXX_DiscardUnknown() {
  315. xxx_messageInfo_Folder.DiscardUnknown(m)
  316. }
  317. var xxx_messageInfo_Folder proto.InternalMessageInfo
  318. type Device struct {
  319. ID DeviceID `protobuf:"bytes,1,opt,name=id,proto3,customtype=DeviceID" json:"id" xml:"id"`
  320. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name"`
  321. Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses" xml:"address"`
  322. Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=protocol.Compression" json:"compression" xml:"compression"`
  323. CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"certName" xml:"certName"`
  324. MaxSequence int64 `protobuf:"varint,6,opt,name=max_sequence,json=maxSequence,proto3" json:"maxSequence" xml:"maxSequence"`
  325. Introducer bool `protobuf:"varint,7,opt,name=introducer,proto3" json:"introducer" xml:"introducer"`
  326. IndexID IndexID `protobuf:"varint,8,opt,name=index_id,json=indexId,proto3,customtype=IndexID" json:"indexId" xml:"indexId"`
  327. SkipIntroductionRemovals bool `protobuf:"varint,9,opt,name=skip_introduction_removals,json=skipIntroductionRemovals,proto3" json:"skipIntroductionRemovals" xml:"skipIntroductionRemovals"`
  328. EncryptionPasswordToken []byte `protobuf:"bytes,10,opt,name=encryption_password_token,json=encryptionPasswordToken,proto3" json:"encryptionPasswordToken" xml:"encryptionPasswordToken"`
  329. }
  330. func (m *Device) Reset() { *m = Device{} }
  331. func (m *Device) String() string { return proto.CompactTextString(m) }
  332. func (*Device) ProtoMessage() {}
  333. func (*Device) Descriptor() ([]byte, []int) {
  334. return fileDescriptor_311ef540e10d9705, []int{4}
  335. }
  336. func (m *Device) XXX_Unmarshal(b []byte) error {
  337. return m.Unmarshal(b)
  338. }
  339. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  340. if deterministic {
  341. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  342. } else {
  343. b = b[:cap(b)]
  344. n, err := m.MarshalToSizedBuffer(b)
  345. if err != nil {
  346. return nil, err
  347. }
  348. return b[:n], nil
  349. }
  350. }
  351. func (m *Device) XXX_Merge(src proto.Message) {
  352. xxx_messageInfo_Device.Merge(m, src)
  353. }
  354. func (m *Device) XXX_Size() int {
  355. return m.ProtoSize()
  356. }
  357. func (m *Device) XXX_DiscardUnknown() {
  358. xxx_messageInfo_Device.DiscardUnknown(m)
  359. }
  360. var xxx_messageInfo_Device proto.InternalMessageInfo
  361. type Index struct {
  362. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  363. Files []FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files" xml:"file"`
  364. }
  365. func (m *Index) Reset() { *m = Index{} }
  366. func (m *Index) String() string { return proto.CompactTextString(m) }
  367. func (*Index) ProtoMessage() {}
  368. func (*Index) Descriptor() ([]byte, []int) {
  369. return fileDescriptor_311ef540e10d9705, []int{5}
  370. }
  371. func (m *Index) XXX_Unmarshal(b []byte) error {
  372. return m.Unmarshal(b)
  373. }
  374. func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  375. if deterministic {
  376. return xxx_messageInfo_Index.Marshal(b, m, deterministic)
  377. } else {
  378. b = b[:cap(b)]
  379. n, err := m.MarshalToSizedBuffer(b)
  380. if err != nil {
  381. return nil, err
  382. }
  383. return b[:n], nil
  384. }
  385. }
  386. func (m *Index) XXX_Merge(src proto.Message) {
  387. xxx_messageInfo_Index.Merge(m, src)
  388. }
  389. func (m *Index) XXX_Size() int {
  390. return m.ProtoSize()
  391. }
  392. func (m *Index) XXX_DiscardUnknown() {
  393. xxx_messageInfo_Index.DiscardUnknown(m)
  394. }
  395. var xxx_messageInfo_Index proto.InternalMessageInfo
  396. type IndexUpdate struct {
  397. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  398. Files []FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files" xml:"file"`
  399. }
  400. func (m *IndexUpdate) Reset() { *m = IndexUpdate{} }
  401. func (m *IndexUpdate) String() string { return proto.CompactTextString(m) }
  402. func (*IndexUpdate) ProtoMessage() {}
  403. func (*IndexUpdate) Descriptor() ([]byte, []int) {
  404. return fileDescriptor_311ef540e10d9705, []int{6}
  405. }
  406. func (m *IndexUpdate) XXX_Unmarshal(b []byte) error {
  407. return m.Unmarshal(b)
  408. }
  409. func (m *IndexUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  410. if deterministic {
  411. return xxx_messageInfo_IndexUpdate.Marshal(b, m, deterministic)
  412. } else {
  413. b = b[:cap(b)]
  414. n, err := m.MarshalToSizedBuffer(b)
  415. if err != nil {
  416. return nil, err
  417. }
  418. return b[:n], nil
  419. }
  420. }
  421. func (m *IndexUpdate) XXX_Merge(src proto.Message) {
  422. xxx_messageInfo_IndexUpdate.Merge(m, src)
  423. }
  424. func (m *IndexUpdate) XXX_Size() int {
  425. return m.ProtoSize()
  426. }
  427. func (m *IndexUpdate) XXX_DiscardUnknown() {
  428. xxx_messageInfo_IndexUpdate.DiscardUnknown(m)
  429. }
  430. var xxx_messageInfo_IndexUpdate proto.InternalMessageInfo
  431. type FileInfo struct {
  432. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" xml:"name"`
  433. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size" xml:"size"`
  434. ModifiedS int64 `protobuf:"varint,5,opt,name=modified_s,json=modifiedS,proto3" json:"modifiedS" xml:"modifiedS"`
  435. ModifiedBy ShortID `protobuf:"varint,12,opt,name=modified_by,json=modifiedBy,proto3,customtype=ShortID" json:"modifiedBy" xml:"modifiedBy"`
  436. Version Vector `protobuf:"bytes,9,opt,name=version,proto3" json:"version" xml:"version"`
  437. Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence" xml:"sequence"`
  438. Blocks []BlockInfo `protobuf:"bytes,16,rep,name=blocks,proto3" json:"blocks" xml:"block"`
  439. SymlinkTarget string `protobuf:"bytes,17,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlinkTarget" xml:"symlinkTarget"`
  440. BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocksHash" xml:"blocksHash"`
  441. Encrypted []byte `protobuf:"bytes,19,opt,name=encrypted,proto3" json:"encrypted" xml:"encrypted"`
  442. Type FileInfoType `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.FileInfoType" json:"type" xml:"type"`
  443. Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions" xml:"permissions"`
  444. ModifiedNs int `protobuf:"varint,11,opt,name=modified_ns,json=modifiedNs,proto3,casttype=int" json:"modifiedNs" xml:"modifiedNs"`
  445. RawBlockSize int `protobuf:"varint,13,opt,name=block_size,json=blockSize,proto3,casttype=int" json:"blockSize" xml:"blockSize"`
  446. // The local_flags fields stores flags that are relevant to the local
  447. // host only. It is not part of the protocol, doesn't get sent or
  448. // received (we make sure to zero it), nonetheless we need it on our
  449. // struct and to be able to serialize it to/from the database.
  450. LocalFlags uint32 `protobuf:"varint,1000,opt,name=local_flags,json=localFlags,proto3" json:"localFlags" xml:"localFlags"`
  451. // The version_hash is an implementation detail and not part of the wire
  452. // format.
  453. VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"versionHash" xml:"versionHash"`
  454. Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted" xml:"deleted"`
  455. RawInvalid bool `protobuf:"varint,7,opt,name=invalid,proto3" json:"invalid" xml:"invalid"`
  456. NoPermissions bool `protobuf:"varint,8,opt,name=no_permissions,json=noPermissions,proto3" json:"noPermissions" xml:"noPermissions"`
  457. }
  458. func (m *FileInfo) Reset() { *m = FileInfo{} }
  459. func (*FileInfo) ProtoMessage() {}
  460. func (*FileInfo) Descriptor() ([]byte, []int) {
  461. return fileDescriptor_311ef540e10d9705, []int{7}
  462. }
  463. func (m *FileInfo) XXX_Unmarshal(b []byte) error {
  464. return m.Unmarshal(b)
  465. }
  466. func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  467. if deterministic {
  468. return xxx_messageInfo_FileInfo.Marshal(b, m, deterministic)
  469. } else {
  470. b = b[:cap(b)]
  471. n, err := m.MarshalToSizedBuffer(b)
  472. if err != nil {
  473. return nil, err
  474. }
  475. return b[:n], nil
  476. }
  477. }
  478. func (m *FileInfo) XXX_Merge(src proto.Message) {
  479. xxx_messageInfo_FileInfo.Merge(m, src)
  480. }
  481. func (m *FileInfo) XXX_Size() int {
  482. return m.ProtoSize()
  483. }
  484. func (m *FileInfo) XXX_DiscardUnknown() {
  485. xxx_messageInfo_FileInfo.DiscardUnknown(m)
  486. }
  487. var xxx_messageInfo_FileInfo proto.InternalMessageInfo
  488. type BlockInfo struct {
  489. Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash" xml:"hash"`
  490. Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset" xml:"offset"`
  491. Size int `protobuf:"varint,2,opt,name=size,proto3,casttype=int" json:"size" xml:"size"`
  492. WeakHash uint32 `protobuf:"varint,4,opt,name=weak_hash,json=weakHash,proto3" json:"weakHash" xml:"weakHash"`
  493. }
  494. func (m *BlockInfo) Reset() { *m = BlockInfo{} }
  495. func (*BlockInfo) ProtoMessage() {}
  496. func (*BlockInfo) Descriptor() ([]byte, []int) {
  497. return fileDescriptor_311ef540e10d9705, []int{8}
  498. }
  499. func (m *BlockInfo) XXX_Unmarshal(b []byte) error {
  500. return m.Unmarshal(b)
  501. }
  502. func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  503. if deterministic {
  504. return xxx_messageInfo_BlockInfo.Marshal(b, m, deterministic)
  505. } else {
  506. b = b[:cap(b)]
  507. n, err := m.MarshalToSizedBuffer(b)
  508. if err != nil {
  509. return nil, err
  510. }
  511. return b[:n], nil
  512. }
  513. }
  514. func (m *BlockInfo) XXX_Merge(src proto.Message) {
  515. xxx_messageInfo_BlockInfo.Merge(m, src)
  516. }
  517. func (m *BlockInfo) XXX_Size() int {
  518. return m.ProtoSize()
  519. }
  520. func (m *BlockInfo) XXX_DiscardUnknown() {
  521. xxx_messageInfo_BlockInfo.DiscardUnknown(m)
  522. }
  523. var xxx_messageInfo_BlockInfo proto.InternalMessageInfo
  524. type Vector struct {
  525. Counters []Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters" xml:"counter"`
  526. }
  527. func (m *Vector) Reset() { *m = Vector{} }
  528. func (m *Vector) String() string { return proto.CompactTextString(m) }
  529. func (*Vector) ProtoMessage() {}
  530. func (*Vector) Descriptor() ([]byte, []int) {
  531. return fileDescriptor_311ef540e10d9705, []int{9}
  532. }
  533. func (m *Vector) XXX_Unmarshal(b []byte) error {
  534. return m.Unmarshal(b)
  535. }
  536. func (m *Vector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  537. if deterministic {
  538. return xxx_messageInfo_Vector.Marshal(b, m, deterministic)
  539. } else {
  540. b = b[:cap(b)]
  541. n, err := m.MarshalToSizedBuffer(b)
  542. if err != nil {
  543. return nil, err
  544. }
  545. return b[:n], nil
  546. }
  547. }
  548. func (m *Vector) XXX_Merge(src proto.Message) {
  549. xxx_messageInfo_Vector.Merge(m, src)
  550. }
  551. func (m *Vector) XXX_Size() int {
  552. return m.ProtoSize()
  553. }
  554. func (m *Vector) XXX_DiscardUnknown() {
  555. xxx_messageInfo_Vector.DiscardUnknown(m)
  556. }
  557. var xxx_messageInfo_Vector proto.InternalMessageInfo
  558. type Counter struct {
  559. ID ShortID `protobuf:"varint,1,opt,name=id,proto3,customtype=ShortID" json:"id" xml:"id"`
  560. Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value" xml:"value"`
  561. }
  562. func (m *Counter) Reset() { *m = Counter{} }
  563. func (m *Counter) String() string { return proto.CompactTextString(m) }
  564. func (*Counter) ProtoMessage() {}
  565. func (*Counter) Descriptor() ([]byte, []int) {
  566. return fileDescriptor_311ef540e10d9705, []int{10}
  567. }
  568. func (m *Counter) XXX_Unmarshal(b []byte) error {
  569. return m.Unmarshal(b)
  570. }
  571. func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  572. if deterministic {
  573. return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
  574. } else {
  575. b = b[:cap(b)]
  576. n, err := m.MarshalToSizedBuffer(b)
  577. if err != nil {
  578. return nil, err
  579. }
  580. return b[:n], nil
  581. }
  582. }
  583. func (m *Counter) XXX_Merge(src proto.Message) {
  584. xxx_messageInfo_Counter.Merge(m, src)
  585. }
  586. func (m *Counter) XXX_Size() int {
  587. return m.ProtoSize()
  588. }
  589. func (m *Counter) XXX_DiscardUnknown() {
  590. xxx_messageInfo_Counter.DiscardUnknown(m)
  591. }
  592. var xxx_messageInfo_Counter proto.InternalMessageInfo
  593. type Request struct {
  594. ID int `protobuf:"varint,1,opt,name=id,proto3,casttype=int" json:"id" xml:"id"`
  595. Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder" xml:"folder"`
  596. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" xml:"name"`
  597. Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset" xml:"offset"`
  598. Size int `protobuf:"varint,5,opt,name=size,proto3,casttype=int" json:"size" xml:"size"`
  599. Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash" xml:"hash"`
  600. FromTemporary bool `protobuf:"varint,7,opt,name=from_temporary,json=fromTemporary,proto3" json:"fromTemporary" xml:"fromTemporary"`
  601. WeakHash uint32 `protobuf:"varint,8,opt,name=weak_hash,json=weakHash,proto3" json:"weakHash" xml:"weakHash"`
  602. BlockNo int `protobuf:"varint,9,opt,name=block_no,json=blockNo,proto3,casttype=int" json:"blockNo" xml:"blockNo"`
  603. }
  604. func (m *Request) Reset() { *m = Request{} }
  605. func (m *Request) String() string { return proto.CompactTextString(m) }
  606. func (*Request) ProtoMessage() {}
  607. func (*Request) Descriptor() ([]byte, []int) {
  608. return fileDescriptor_311ef540e10d9705, []int{11}
  609. }
  610. func (m *Request) XXX_Unmarshal(b []byte) error {
  611. return m.Unmarshal(b)
  612. }
  613. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  614. if deterministic {
  615. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  616. } else {
  617. b = b[:cap(b)]
  618. n, err := m.MarshalToSizedBuffer(b)
  619. if err != nil {
  620. return nil, err
  621. }
  622. return b[:n], nil
  623. }
  624. }
  625. func (m *Request) XXX_Merge(src proto.Message) {
  626. xxx_messageInfo_Request.Merge(m, src)
  627. }
  628. func (m *Request) XXX_Size() int {
  629. return m.ProtoSize()
  630. }
  631. func (m *Request) XXX_DiscardUnknown() {
  632. xxx_messageInfo_Request.DiscardUnknown(m)
  633. }
  634. var xxx_messageInfo_Request proto.InternalMessageInfo
  635. type Response struct {
  636. ID int `protobuf:"varint,1,opt,name=id,proto3,casttype=int" json:"id" xml:"id"`
  637. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" xml:"data"`
  638. Code ErrorCode `protobuf:"varint,3,opt,name=code,proto3,enum=protocol.ErrorCode" json:"code" xml:"code"`
  639. }
  640. func (m *Response) Reset() { *m = Response{} }
  641. func (m *Response) String() string { return proto.CompactTextString(m) }
  642. func (*Response) ProtoMessage() {}
  643. func (*Response) Descriptor() ([]byte, []int) {
  644. return fileDescriptor_311ef540e10d9705, []int{12}
  645. }
  646. func (m *Response) XXX_Unmarshal(b []byte) error {
  647. return m.Unmarshal(b)
  648. }
  649. func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  650. if deterministic {
  651. return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  652. } else {
  653. b = b[:cap(b)]
  654. n, err := m.MarshalToSizedBuffer(b)
  655. if err != nil {
  656. return nil, err
  657. }
  658. return b[:n], nil
  659. }
  660. }
  661. func (m *Response) XXX_Merge(src proto.Message) {
  662. xxx_messageInfo_Response.Merge(m, src)
  663. }
  664. func (m *Response) XXX_Size() int {
  665. return m.ProtoSize()
  666. }
  667. func (m *Response) XXX_DiscardUnknown() {
  668. xxx_messageInfo_Response.DiscardUnknown(m)
  669. }
  670. var xxx_messageInfo_Response proto.InternalMessageInfo
  671. type DownloadProgress struct {
  672. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  673. Updates []FileDownloadProgressUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates" xml:"update"`
  674. }
  675. func (m *DownloadProgress) Reset() { *m = DownloadProgress{} }
  676. func (m *DownloadProgress) String() string { return proto.CompactTextString(m) }
  677. func (*DownloadProgress) ProtoMessage() {}
  678. func (*DownloadProgress) Descriptor() ([]byte, []int) {
  679. return fileDescriptor_311ef540e10d9705, []int{13}
  680. }
  681. func (m *DownloadProgress) XXX_Unmarshal(b []byte) error {
  682. return m.Unmarshal(b)
  683. }
  684. func (m *DownloadProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  685. if deterministic {
  686. return xxx_messageInfo_DownloadProgress.Marshal(b, m, deterministic)
  687. } else {
  688. b = b[:cap(b)]
  689. n, err := m.MarshalToSizedBuffer(b)
  690. if err != nil {
  691. return nil, err
  692. }
  693. return b[:n], nil
  694. }
  695. }
  696. func (m *DownloadProgress) XXX_Merge(src proto.Message) {
  697. xxx_messageInfo_DownloadProgress.Merge(m, src)
  698. }
  699. func (m *DownloadProgress) XXX_Size() int {
  700. return m.ProtoSize()
  701. }
  702. func (m *DownloadProgress) XXX_DiscardUnknown() {
  703. xxx_messageInfo_DownloadProgress.DiscardUnknown(m)
  704. }
  705. var xxx_messageInfo_DownloadProgress proto.InternalMessageInfo
  706. type FileDownloadProgressUpdate struct {
  707. UpdateType FileDownloadProgressUpdateType `protobuf:"varint,1,opt,name=update_type,json=updateType,proto3,enum=protocol.FileDownloadProgressUpdateType" json:"updateType" xml:"updateType"`
  708. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name"`
  709. Version Vector `protobuf:"bytes,3,opt,name=version,proto3" json:"version" xml:"version"`
  710. BlockIndexes []int `protobuf:"varint,4,rep,name=block_indexes,json=blockIndexes,proto3,casttype=int" json:"blockIndexes" xml:"blockIndexe"`
  711. BlockSize int `protobuf:"varint,5,opt,name=block_size,json=blockSize,proto3,casttype=int" json:"blockSize" xml:"blockSize"`
  712. }
  713. func (m *FileDownloadProgressUpdate) Reset() { *m = FileDownloadProgressUpdate{} }
  714. func (m *FileDownloadProgressUpdate) String() string { return proto.CompactTextString(m) }
  715. func (*FileDownloadProgressUpdate) ProtoMessage() {}
  716. func (*FileDownloadProgressUpdate) Descriptor() ([]byte, []int) {
  717. return fileDescriptor_311ef540e10d9705, []int{14}
  718. }
  719. func (m *FileDownloadProgressUpdate) XXX_Unmarshal(b []byte) error {
  720. return m.Unmarshal(b)
  721. }
  722. func (m *FileDownloadProgressUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  723. if deterministic {
  724. return xxx_messageInfo_FileDownloadProgressUpdate.Marshal(b, m, deterministic)
  725. } else {
  726. b = b[:cap(b)]
  727. n, err := m.MarshalToSizedBuffer(b)
  728. if err != nil {
  729. return nil, err
  730. }
  731. return b[:n], nil
  732. }
  733. }
  734. func (m *FileDownloadProgressUpdate) XXX_Merge(src proto.Message) {
  735. xxx_messageInfo_FileDownloadProgressUpdate.Merge(m, src)
  736. }
  737. func (m *FileDownloadProgressUpdate) XXX_Size() int {
  738. return m.ProtoSize()
  739. }
  740. func (m *FileDownloadProgressUpdate) XXX_DiscardUnknown() {
  741. xxx_messageInfo_FileDownloadProgressUpdate.DiscardUnknown(m)
  742. }
  743. var xxx_messageInfo_FileDownloadProgressUpdate proto.InternalMessageInfo
  744. type Ping struct {
  745. }
  746. func (m *Ping) Reset() { *m = Ping{} }
  747. func (m *Ping) String() string { return proto.CompactTextString(m) }
  748. func (*Ping) ProtoMessage() {}
  749. func (*Ping) Descriptor() ([]byte, []int) {
  750. return fileDescriptor_311ef540e10d9705, []int{15}
  751. }
  752. func (m *Ping) XXX_Unmarshal(b []byte) error {
  753. return m.Unmarshal(b)
  754. }
  755. func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  756. if deterministic {
  757. return xxx_messageInfo_Ping.Marshal(b, m, deterministic)
  758. } else {
  759. b = b[:cap(b)]
  760. n, err := m.MarshalToSizedBuffer(b)
  761. if err != nil {
  762. return nil, err
  763. }
  764. return b[:n], nil
  765. }
  766. }
  767. func (m *Ping) XXX_Merge(src proto.Message) {
  768. xxx_messageInfo_Ping.Merge(m, src)
  769. }
  770. func (m *Ping) XXX_Size() int {
  771. return m.ProtoSize()
  772. }
  773. func (m *Ping) XXX_DiscardUnknown() {
  774. xxx_messageInfo_Ping.DiscardUnknown(m)
  775. }
  776. var xxx_messageInfo_Ping proto.InternalMessageInfo
  777. type Close struct {
  778. Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason" xml:"reason"`
  779. }
  780. func (m *Close) Reset() { *m = Close{} }
  781. func (m *Close) String() string { return proto.CompactTextString(m) }
  782. func (*Close) ProtoMessage() {}
  783. func (*Close) Descriptor() ([]byte, []int) {
  784. return fileDescriptor_311ef540e10d9705, []int{16}
  785. }
  786. func (m *Close) XXX_Unmarshal(b []byte) error {
  787. return m.Unmarshal(b)
  788. }
  789. func (m *Close) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  790. if deterministic {
  791. return xxx_messageInfo_Close.Marshal(b, m, deterministic)
  792. } else {
  793. b = b[:cap(b)]
  794. n, err := m.MarshalToSizedBuffer(b)
  795. if err != nil {
  796. return nil, err
  797. }
  798. return b[:n], nil
  799. }
  800. }
  801. func (m *Close) XXX_Merge(src proto.Message) {
  802. xxx_messageInfo_Close.Merge(m, src)
  803. }
  804. func (m *Close) XXX_Size() int {
  805. return m.ProtoSize()
  806. }
  807. func (m *Close) XXX_DiscardUnknown() {
  808. xxx_messageInfo_Close.DiscardUnknown(m)
  809. }
  810. var xxx_messageInfo_Close proto.InternalMessageInfo
  811. func init() {
  812. proto.RegisterEnum("protocol.MessageType", MessageType_name, MessageType_value)
  813. proto.RegisterEnum("protocol.MessageCompression", MessageCompression_name, MessageCompression_value)
  814. proto.RegisterEnum("protocol.Compression", Compression_name, Compression_value)
  815. proto.RegisterEnum("protocol.FileInfoType", FileInfoType_name, FileInfoType_value)
  816. proto.RegisterEnum("protocol.ErrorCode", ErrorCode_name, ErrorCode_value)
  817. proto.RegisterEnum("protocol.FileDownloadProgressUpdateType", FileDownloadProgressUpdateType_name, FileDownloadProgressUpdateType_value)
  818. proto.RegisterType((*Hello)(nil), "protocol.Hello")
  819. proto.RegisterType((*Header)(nil), "protocol.Header")
  820. proto.RegisterType((*ClusterConfig)(nil), "protocol.ClusterConfig")
  821. proto.RegisterType((*Folder)(nil), "protocol.Folder")
  822. proto.RegisterType((*Device)(nil), "protocol.Device")
  823. proto.RegisterType((*Index)(nil), "protocol.Index")
  824. proto.RegisterType((*IndexUpdate)(nil), "protocol.IndexUpdate")
  825. proto.RegisterType((*FileInfo)(nil), "protocol.FileInfo")
  826. proto.RegisterType((*BlockInfo)(nil), "protocol.BlockInfo")
  827. proto.RegisterType((*Vector)(nil), "protocol.Vector")
  828. proto.RegisterType((*Counter)(nil), "protocol.Counter")
  829. proto.RegisterType((*Request)(nil), "protocol.Request")
  830. proto.RegisterType((*Response)(nil), "protocol.Response")
  831. proto.RegisterType((*DownloadProgress)(nil), "protocol.DownloadProgress")
  832. proto.RegisterType((*FileDownloadProgressUpdate)(nil), "protocol.FileDownloadProgressUpdate")
  833. proto.RegisterType((*Ping)(nil), "protocol.Ping")
  834. proto.RegisterType((*Close)(nil), "protocol.Close")
  835. }
  836. func init() { proto.RegisterFile("lib/protocol/bep.proto", fileDescriptor_311ef540e10d9705) }
  837. var fileDescriptor_311ef540e10d9705 = []byte{
  838. // 2681 bytes of a gzipped FileDescriptorProto
  839. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0x4d, 0x6c, 0x1b, 0xc7,
  840. 0xf5, 0xd7, 0x92, 0x94, 0x44, 0x8d, 0x24, 0x87, 0x1a, 0x7f, 0x6d, 0x68, 0x9b, 0xcb, 0xff, 0xc4,
  841. 0xf9, 0x57, 0x51, 0x1a, 0x39, 0x51, 0x92, 0x36, 0x4d, 0x52, 0x07, 0xfc, 0x92, 0xc4, 0x44, 0x22,
  842. 0xd9, 0x21, 0xed, 0xd4, 0x46, 0x0b, 0x62, 0xc5, 0x1d, 0x51, 0x0b, 0x2f, 0x77, 0xd9, 0x5d, 0x4a,
  843. 0xb6, 0x82, 0x5e, 0xda, 0x5e, 0x02, 0x1e, 0x8a, 0x22, 0xa7, 0xa2, 0x28, 0xd1, 0xa0, 0x97, 0xde,
  844. 0x0a, 0xf4, 0xd0, 0x4b, 0x4e, 0x3d, 0xe6, 0x68, 0x04, 0x28, 0x50, 0xf4, 0xb0, 0x80, 0xed, 0x4b,
  845. 0xcb, 0x23, 0x8f, 0x3d, 0x15, 0xf3, 0xb1, 0xbb, 0xb3, 0xa2, 0x14, 0xc8, 0xc9, 0xa1, 0xb7, 0x7d,
  846. 0xbf, 0xf7, 0x7b, 0x6f, 0x86, 0x6f, 0xde, 0x7b, 0xf3, 0x76, 0x09, 0xae, 0x58, 0xe6, 0xde, 0xad,
  847. 0xbe, 0xeb, 0x0c, 0x9c, 0x8e, 0x63, 0xdd, 0xda, 0x23, 0xfd, 0x75, 0x26, 0xc0, 0x74, 0x80, 0x65,
  848. 0x17, 0xc8, 0xa3, 0x01, 0x07, 0xb3, 0x2f, 0xb9, 0xa4, 0xef, 0x78, 0x9c, 0xbe, 0x77, 0xb8, 0x7f,
  849. 0xab, 0xeb, 0x74, 0x1d, 0x26, 0xb0, 0x27, 0x4e, 0x42, 0x4f, 0x15, 0x30, 0xbb, 0x4d, 0x2c, 0xcb,
  850. 0x81, 0x25, 0xb0, 0x68, 0x90, 0x23, 0xb3, 0x43, 0xda, 0xb6, 0xde, 0x23, 0xaa, 0x92, 0x57, 0x56,
  851. 0x17, 0x8a, 0x68, 0xec, 0x6b, 0x80, 0xc3, 0x35, 0xbd, 0x47, 0x26, 0xbe, 0x96, 0x79, 0xd4, 0xb3,
  852. 0xde, 0x45, 0x11, 0x84, 0xb0, 0xa4, 0xa7, 0x4e, 0x3a, 0x96, 0x49, 0xec, 0x01, 0x77, 0x92, 0x88,
  853. 0x9c, 0x70, 0x38, 0xe6, 0x24, 0x82, 0x10, 0x96, 0xf4, 0xb0, 0x0e, 0x2e, 0x08, 0x27, 0x47, 0xc4,
  854. 0xf5, 0x4c, 0xc7, 0x56, 0x93, 0xcc, 0xcf, 0xea, 0xd8, 0xd7, 0x96, 0xb9, 0xe6, 0x2e, 0x57, 0x4c,
  855. 0x7c, 0xed, 0xa2, 0xe4, 0x4a, 0xa0, 0x08, 0xc7, 0x59, 0xe8, 0x2f, 0x0a, 0x98, 0xdb, 0x26, 0xba,
  856. 0x41, 0x5c, 0x58, 0x00, 0xa9, 0xc1, 0x71, 0x9f, 0xff, 0xbc, 0x0b, 0x1b, 0x97, 0xd7, 0x83, 0xc0,
  857. 0xad, 0xef, 0x12, 0xcf, 0xd3, 0xbb, 0xa4, 0x75, 0xdc, 0x27, 0xc5, 0x2b, 0x63, 0x5f, 0x63, 0xb4,
  858. 0x89, 0xaf, 0x01, 0xe6, 0x9f, 0x0a, 0x08, 0x33, 0x0c, 0x1a, 0x60, 0xb1, 0xe3, 0xf4, 0xfa, 0x2e,
  859. 0xf1, 0xd8, 0xde, 0x12, 0xcc, 0xd3, 0xf5, 0x29, 0x4f, 0xa5, 0x88, 0x53, 0xbc, 0x39, 0xf6, 0x35,
  860. 0xd9, 0x68, 0xe2, 0x6b, 0x2b, 0x7c, 0xdf, 0x11, 0x86, 0xb0, 0xcc, 0x40, 0x3f, 0x01, 0xcb, 0x25,
  861. 0xeb, 0xd0, 0x1b, 0x10, 0xb7, 0xe4, 0xd8, 0xfb, 0x66, 0x17, 0x7e, 0x04, 0xe6, 0xf7, 0x1d, 0xcb,
  862. 0x20, 0xae, 0xa7, 0x2a, 0xf9, 0xe4, 0xea, 0xe2, 0x46, 0x26, 0x5a, 0x72, 0x93, 0x29, 0x8a, 0xda,
  863. 0x97, 0xbe, 0x36, 0x33, 0xf6, 0xb5, 0x80, 0x38, 0xf1, 0xb5, 0x25, 0xb6, 0x0c, 0x97, 0x11, 0x0e,
  864. 0x14, 0xe8, 0x8b, 0x14, 0x98, 0xe3, 0x46, 0x70, 0x1d, 0x24, 0x4c, 0x43, 0x1c, 0x77, 0xee, 0xa9,
  865. 0xaf, 0x25, 0xaa, 0xe5, 0xb1, 0xaf, 0x25, 0x4c, 0x63, 0xe2, 0x6b, 0x69, 0x66, 0x6d, 0x1a, 0xe8,
  866. 0xb3, 0xc7, 0x37, 0x13, 0xd5, 0x32, 0x4e, 0x98, 0x06, 0x5c, 0x07, 0xb3, 0x96, 0xbe, 0x47, 0x2c,
  867. 0x71, 0xb8, 0xea, 0xd8, 0xd7, 0x38, 0x30, 0xf1, 0xb5, 0x45, 0xc6, 0x67, 0x12, 0xc2, 0x1c, 0x85,
  868. 0xef, 0x81, 0x05, 0x97, 0xe8, 0x46, 0xdb, 0xb1, 0xad, 0x63, 0x76, 0x90, 0xe9, 0x62, 0x6e, 0xec,
  869. 0x6b, 0x69, 0x0a, 0xd6, 0x6d, 0xeb, 0x78, 0xe2, 0x6b, 0x17, 0x98, 0x59, 0x00, 0x20, 0x1c, 0xea,
  870. 0x60, 0x1b, 0x40, 0xb3, 0x6b, 0x3b, 0x2e, 0x69, 0xf7, 0x89, 0xdb, 0x33, 0x59, 0x68, 0x3c, 0x35,
  871. 0xc5, 0xbc, 0xbc, 0x3e, 0xf6, 0xb5, 0x15, 0xae, 0x6d, 0x44, 0xca, 0x89, 0xaf, 0x5d, 0xe5, 0xbb,
  872. 0x3e, 0xa9, 0x41, 0x78, 0x9a, 0x0d, 0x3f, 0x02, 0xcb, 0x62, 0x01, 0x83, 0x58, 0x64, 0x40, 0xd4,
  873. 0x59, 0xe6, 0xfb, 0xff, 0xc7, 0xbe, 0xb6, 0xc4, 0x15, 0x65, 0x86, 0x4f, 0x7c, 0x0d, 0x4a, 0x6e,
  874. 0x39, 0x88, 0x70, 0x8c, 0x03, 0x0d, 0x70, 0xc9, 0x30, 0x3d, 0x7d, 0xcf, 0x22, 0xed, 0x01, 0xe9,
  875. 0xf5, 0xdb, 0xa6, 0x6d, 0x90, 0x47, 0xc4, 0x53, 0xe7, 0x98, 0xcf, 0x8d, 0xb1, 0xaf, 0x41, 0xa1,
  876. 0x6f, 0x91, 0x5e, 0xbf, 0xca, 0xb5, 0x13, 0x5f, 0x53, 0x79, 0x4d, 0x4d, 0xa9, 0x10, 0x3e, 0x85,
  877. 0x0f, 0x37, 0xc0, 0x5c, 0x5f, 0x3f, 0xf4, 0x88, 0xa1, 0xce, 0x33, 0xbf, 0xd9, 0xb1, 0xaf, 0x09,
  878. 0x24, 0x3c, 0x70, 0x2e, 0x22, 0x2c, 0x70, 0x9a, 0x3c, 0xbc, 0x4a, 0x3d, 0x35, 0x73, 0x32, 0x79,
  879. 0xca, 0x4c, 0x11, 0x25, 0x8f, 0x20, 0x86, 0xbe, 0xb8, 0x8c, 0x70, 0xa0, 0x40, 0x7f, 0x9b, 0x03,
  880. 0x73, 0xdc, 0x08, 0x16, 0xc3, 0xe4, 0x59, 0x2a, 0x6e, 0x50, 0x07, 0xff, 0xf4, 0xb5, 0x34, 0xd7,
  881. 0x55, 0xcb, 0x67, 0x25, 0xd3, 0xa7, 0x8f, 0x6f, 0x2a, 0x52, 0x42, 0xad, 0x81, 0x94, 0xd4, 0x2c,
  882. 0x58, 0xed, 0xd9, 0xbc, 0x4d, 0xf0, 0xda, 0xb3, 0x59, 0x83, 0x60, 0x18, 0x7c, 0x1f, 0x2c, 0xe8,
  883. 0x86, 0x41, 0x6b, 0x84, 0x78, 0x6a, 0x32, 0x9f, 0xa4, 0x39, 0x3b, 0xf6, 0xb5, 0x08, 0x9c, 0xf8,
  884. 0xda, 0x32, 0xb3, 0x12, 0x08, 0xc2, 0x91, 0x0e, 0xfe, 0x34, 0x5e, 0xb9, 0xa9, 0x93, 0x3d, 0xe0,
  885. 0xdb, 0x95, 0x2c, 0xcd, 0xf4, 0x0e, 0x71, 0x45, 0xeb, 0x9b, 0xe5, 0x05, 0x45, 0x33, 0x9d, 0x82,
  886. 0xa2, 0xf1, 0xf1, 0x4c, 0x0f, 0x00, 0x84, 0x43, 0x1d, 0xdc, 0x02, 0x4b, 0x3d, 0xfd, 0x51, 0xdb,
  887. 0x23, 0x3f, 0x3b, 0x24, 0x76, 0x87, 0xb0, 0x9c, 0x49, 0xf2, 0x5d, 0xf4, 0xf4, 0x47, 0x4d, 0x01,
  888. 0x87, 0xbb, 0x90, 0x30, 0x84, 0x65, 0x06, 0x2c, 0x02, 0x60, 0xda, 0x03, 0xd7, 0x31, 0x0e, 0x3b,
  889. 0xc4, 0x15, 0x29, 0xc2, 0x3a, 0x70, 0x84, 0x86, 0x1d, 0x38, 0x82, 0x10, 0x96, 0xf4, 0xb0, 0x0b,
  890. 0xd2, 0x2c, 0x77, 0xdb, 0xa6, 0xa1, 0xa6, 0xf3, 0xca, 0x6a, 0xaa, 0xb8, 0x23, 0x0e, 0x77, 0x9e,
  891. 0x65, 0x21, 0x3b, 0xdb, 0xe0, 0x91, 0xe6, 0x0c, 0x63, 0x57, 0x8d, 0x30, 0xfa, 0x42, 0xa6, 0x7d,
  892. 0x23, 0xa0, 0xfd, 0x2e, 0x7a, 0xc4, 0x01, 0x1f, 0xfe, 0x1c, 0x64, 0xbd, 0x07, 0x26, 0xad, 0x14,
  893. 0xbe, 0xf6, 0xc0, 0x74, 0xec, 0xb6, 0x4b, 0x7a, 0xce, 0x91, 0x6e, 0x79, 0xea, 0x02, 0xdb, 0xfc,
  894. 0xed, 0xb1, 0xaf, 0xa9, 0x94, 0x55, 0x95, 0x48, 0x58, 0x70, 0x26, 0xbe, 0x96, 0x63, 0x2b, 0x9e,
  895. 0x45, 0x40, 0xf8, 0x4c, 0x5b, 0xf8, 0x08, 0xbc, 0x48, 0xec, 0x8e, 0x7b, 0xdc, 0x67, 0xcb, 0xf6,
  896. 0x75, 0xcf, 0x7b, 0xe8, 0xb8, 0x46, 0x7b, 0xe0, 0x3c, 0x20, 0xb6, 0x0a, 0x58, 0x52, 0xbf, 0x3f,
  897. 0xf6, 0xb5, 0xab, 0x11, 0xa9, 0x21, 0x38, 0x2d, 0x4a, 0x99, 0xf8, 0xda, 0x0d, 0xb6, 0xf6, 0x19,
  898. 0x7a, 0x84, 0xcf, 0xb2, 0x44, 0xbf, 0x54, 0xc0, 0x2c, 0x0b, 0x06, 0xad, 0x66, 0xde, 0x94, 0x45,
  899. 0x0b, 0x66, 0xd5, 0xcc, 0x91, 0xa9, 0xf6, 0x2d, 0x70, 0x58, 0x01, 0xb3, 0xfb, 0xa6, 0x45, 0x3c,
  900. 0x35, 0xc1, 0x6a, 0x19, 0x4a, 0x17, 0x81, 0x69, 0x91, 0xaa, 0xbd, 0xef, 0x14, 0xaf, 0x89, 0x6a,
  901. 0xe6, 0xc4, 0xb0, 0x96, 0xa8, 0x84, 0x30, 0x07, 0xd1, 0xa7, 0x0a, 0x58, 0x64, 0x9b, 0xb8, 0xd3,
  902. 0x37, 0xf4, 0x01, 0xf9, 0x5f, 0x6e, 0xe5, 0x09, 0x00, 0xe9, 0xc0, 0x20, 0x6c, 0x08, 0xca, 0x39,
  903. 0x1a, 0xc2, 0x1a, 0x48, 0x79, 0xe6, 0x27, 0x84, 0x5d, 0x2c, 0x49, 0xce, 0xa5, 0x72, 0xc8, 0xa5,
  904. 0x02, 0xc2, 0x0c, 0x83, 0x1f, 0x00, 0xd0, 0x73, 0x0c, 0x73, 0xdf, 0x24, 0x46, 0xdb, 0x63, 0x05,
  905. 0x9a, 0x2c, 0xe6, 0x69, 0xf7, 0x08, 0xd0, 0xe6, 0xc4, 0xd7, 0x5e, 0xe0, 0xe5, 0x15, 0x20, 0x08,
  906. 0x47, 0x5a, 0xda, 0x3f, 0x42, 0x07, 0x7b, 0xc7, 0xea, 0x12, 0xab, 0x8c, 0xf7, 0x83, 0xca, 0x68,
  907. 0x1e, 0x38, 0xee, 0x80, 0x95, 0x43, 0xb8, 0x4c, 0xf1, 0x38, 0x2c, 0xb5, 0x08, 0x42, 0xb4, 0x12,
  908. 0x04, 0x19, 0x4b, 0x54, 0xb8, 0x03, 0xe6, 0x83, 0x81, 0x87, 0x66, 0x7e, 0xac, 0x49, 0xdf, 0x25,
  909. 0x9d, 0x81, 0xe3, 0x16, 0xf3, 0x41, 0x93, 0x3e, 0x0a, 0x07, 0x20, 0x5e, 0x70, 0x47, 0xc1, 0xe8,
  910. 0x13, 0x68, 0xe0, 0xbb, 0x20, 0x1d, 0x36, 0x13, 0xc0, 0x7e, 0x2b, 0x6b, 0x46, 0x5e, 0xd4, 0x49,
  911. 0x78, 0x33, 0xf2, 0xc2, 0x36, 0x12, 0xea, 0xe0, 0x87, 0x60, 0x6e, 0xcf, 0x72, 0x3a, 0x0f, 0x82,
  912. 0xdb, 0xe2, 0x62, 0xb4, 0x91, 0x22, 0xc5, 0xd9, 0xb9, 0xde, 0x10, 0x7b, 0x11, 0xd4, 0xf0, 0xfa,
  913. 0x67, 0x22, 0xc2, 0x02, 0xa6, 0xd3, 0x9c, 0x77, 0xdc, 0xb3, 0x4c, 0xfb, 0x41, 0x7b, 0xa0, 0xbb,
  914. 0x5d, 0x32, 0x50, 0x57, 0xa2, 0x69, 0x4e, 0x68, 0x5a, 0x4c, 0x11, 0x4e, 0x73, 0x31, 0x14, 0xe1,
  915. 0x38, 0x8b, 0xce, 0x98, 0xdc, 0x75, 0xfb, 0x40, 0xf7, 0x0e, 0x54, 0xc8, 0xea, 0x94, 0x75, 0x38,
  916. 0x0e, 0x6f, 0xeb, 0xde, 0x41, 0x18, 0xf6, 0x08, 0x42, 0x58, 0xd2, 0xc3, 0xdb, 0x60, 0x41, 0xd4,
  917. 0x26, 0x31, 0xd4, 0x8b, 0xcc, 0x05, 0x4b, 0x85, 0x10, 0x0c, 0x53, 0x21, 0x44, 0x10, 0x8e, 0xb4,
  918. 0xb0, 0x28, 0xe6, 0x48, 0x3e, 0xfd, 0x5d, 0x99, 0x4e, 0xfb, 0x73, 0x0c, 0x92, 0x9b, 0x60, 0xf1,
  919. 0xe4, 0x54, 0xb3, 0xcc, 0x3b, 0x7e, 0x3f, 0x36, 0xcf, 0xf0, 0x8e, 0xdf, 0x97, 0x27, 0x19, 0x99,
  920. 0x01, 0x3f, 0x94, 0xd2, 0xd2, 0xf6, 0xd4, 0xc5, 0xbc, 0xb2, 0x3a, 0x5b, 0x7c, 0x45, 0xce, 0xc3,
  921. 0x9a, 0x37, 0x95, 0x87, 0x35, 0x0f, 0xfd, 0xc7, 0xd7, 0x92, 0xa6, 0x3d, 0xc0, 0x12, 0x0d, 0xee,
  922. 0x03, 0x1e, 0xa5, 0x36, 0xab, 0xaa, 0x65, 0xe6, 0x6a, 0xeb, 0xa9, 0xaf, 0x2d, 0x61, 0xfd, 0x21,
  923. 0x3b, 0xfa, 0xa6, 0xf9, 0x09, 0xa1, 0x81, 0xda, 0x0b, 0x84, 0x30, 0x50, 0x21, 0x12, 0x38, 0xfe,
  924. 0xec, 0xf1, 0xcd, 0x98, 0x19, 0x8e, 0x8c, 0x60, 0x19, 0x2c, 0x5a, 0x4e, 0x47, 0xb7, 0xda, 0xfb,
  925. 0x96, 0xde, 0xf5, 0xd4, 0x7f, 0xcd, 0xb3, 0x1f, 0xcf, 0x4e, 0x91, 0xe1, 0x9b, 0x14, 0x0e, 0x37,
  926. 0x1d, 0x41, 0x08, 0x4b, 0x7a, 0xb8, 0x0d, 0x96, 0x44, 0xba, 0xf3, 0x5c, 0xf8, 0xf7, 0x3c, 0x3b,
  927. 0x49, 0x16, 0x43, 0xa1, 0x10, 0xd9, 0xb0, 0x22, 0x57, 0x09, 0x4f, 0x07, 0x99, 0x01, 0xbf, 0x47,
  928. 0x07, 0x24, 0x3a, 0xc4, 0x19, 0x62, 0x5a, 0xbb, 0xce, 0x47, 0x21, 0x06, 0x85, 0x55, 0x26, 0x64,
  929. 0x36, 0x0b, 0xb1, 0x27, 0x88, 0xc1, 0xbc, 0x69, 0x1f, 0xe9, 0x96, 0x19, 0x4c, 0x63, 0xef, 0x3c,
  930. 0xf5, 0x35, 0x80, 0xf5, 0x87, 0x55, 0x8e, 0xf2, 0xcb, 0x91, 0x3d, 0x4a, 0x97, 0x23, 0x93, 0xe9,
  931. 0xe5, 0x28, 0x31, 0x71, 0xc0, 0xa3, 0x15, 0x63, 0x3b, 0xb1, 0x81, 0x37, 0xcd, 0x5c, 0xb3, 0x8a,
  932. 0xb1, 0x9d, 0xf8, 0xb0, 0xcb, 0x2b, 0x26, 0x86, 0x22, 0x1c, 0x67, 0xbd, 0x9b, 0xfa, 0xed, 0xe7,
  933. 0xda, 0x0c, 0x7a, 0xa2, 0x80, 0x85, 0xb0, 0x7a, 0x69, 0xe3, 0x64, 0x21, 0x4b, 0xb2, 0x88, 0xb1,
  934. 0x44, 0x3d, 0xe0, 0xa1, 0xe2, 0x89, 0x7a, 0xc0, 0x62, 0xc4, 0x30, 0x7a, 0x31, 0x38, 0xfb, 0xfb,
  935. 0x1e, 0x19, 0xb0, 0x96, 0x9c, 0xe4, 0x17, 0x03, 0x47, 0xc2, 0x8b, 0x81, 0x8b, 0x08, 0x0b, 0x1c,
  936. 0xbe, 0x21, 0x1a, 0x73, 0x82, 0xa5, 0xd0, 0x8d, 0xd3, 0x1b, 0x73, 0x90, 0x81, 0xbc, 0x3f, 0xbf,
  937. 0x07, 0x16, 0x1e, 0x12, 0xfd, 0x01, 0x3f, 0x4a, 0x5e, 0x0d, 0xac, 0x65, 0x51, 0x50, 0x1c, 0x23,
  938. 0x6f, 0x59, 0x01, 0x80, 0x70, 0xa8, 0x13, 0xbf, 0xf1, 0x3e, 0x98, 0xe3, 0x9d, 0x12, 0x36, 0x40,
  939. 0xba, 0xe3, 0x1c, 0xda, 0x83, 0xe8, 0x7d, 0x69, 0x45, 0x1e, 0xf4, 0x98, 0xa6, 0xf8, 0x7f, 0xa2,
  940. 0x85, 0x85, 0xd4, 0xf0, 0x8c, 0x04, 0x40, 0x27, 0x34, 0xa1, 0x42, 0xbf, 0x52, 0xc0, 0xbc, 0x30,
  941. 0x84, 0xdb, 0xe1, 0xdc, 0x9b, 0x2a, 0xbe, 0x73, 0xe2, 0x02, 0xf8, 0xfa, 0x77, 0x28, 0xb9, 0xf9,
  942. 0x8b, 0xd7, 0xa9, 0x23, 0xdd, 0x3a, 0xe4, 0x81, 0x4a, 0xf1, 0xd7, 0x29, 0x06, 0x84, 0xfd, 0x94,
  943. 0x49, 0x08, 0x73, 0x14, 0xfd, 0x22, 0x05, 0xe6, 0x31, 0xed, 0xd3, 0xde, 0x00, 0xbe, 0x1d, 0xee,
  944. 0x62, 0xb6, 0xf8, 0xf2, 0x59, 0xcb, 0x46, 0xc5, 0x18, 0x0c, 0xdc, 0xd1, 0x3d, 0x9f, 0x38, 0xf7,
  945. 0x3d, 0x1f, 0xdc, 0xc9, 0xc9, 0x73, 0xdc, 0xc9, 0x51, 0xba, 0xa4, 0x9e, 0x3b, 0x5d, 0x66, 0xcf,
  946. 0x9f, 0x2e, 0x41, 0x06, 0xcf, 0x9d, 0x23, 0x83, 0xeb, 0xe0, 0xc2, 0xbe, 0xeb, 0xf4, 0xd8, 0x6b,
  947. 0x99, 0xe3, 0xea, 0xee, 0xb1, 0xa8, 0x56, 0x56, 0x52, 0x54, 0xd3, 0x0a, 0x14, 0x61, 0x49, 0xc5,
  948. 0x50, 0x84, 0xe3, 0xac, 0x78, 0xae, 0xa6, 0x9f, 0x2f, 0x57, 0xe1, 0x6d, 0x90, 0xe6, 0x4d, 0xd6,
  949. 0x76, 0xd8, 0x4d, 0x3f, 0x5b, 0x7c, 0x89, 0xf6, 0x09, 0x86, 0xd5, 0x9c, 0x30, 0x07, 0x85, 0x1c,
  950. 0xfe, 0xec, 0x80, 0x80, 0xfe, 0xac, 0x80, 0x34, 0x26, 0x5e, 0xdf, 0xb1, 0x3d, 0xf2, 0x4d, 0x93,
  951. 0x60, 0x0d, 0xa4, 0x0c, 0x7d, 0xa0, 0xb3, 0x14, 0x10, 0xd1, 0xa3, 0x72, 0x18, 0x3d, 0x2a, 0x20,
  952. 0xcc, 0x30, 0xf8, 0x01, 0x48, 0x75, 0x1c, 0x83, 0x1f, 0xfe, 0x05, 0x79, 0x18, 0xa8, 0xb8, 0xae,
  953. 0xe3, 0x96, 0x1c, 0x43, 0xdc, 0x74, 0x94, 0x14, 0x3a, 0xa0, 0x02, 0xc2, 0x0c, 0x43, 0x7f, 0x52,
  954. 0x40, 0xa6, 0xec, 0x3c, 0xb4, 0x2d, 0x47, 0x37, 0x1a, 0xae, 0xd3, 0xa5, 0x6f, 0x4c, 0xdf, 0x68,
  955. 0xdc, 0x6c, 0x83, 0xf9, 0x43, 0x36, 0xac, 0x06, 0x03, 0xe7, 0xcd, 0xf8, 0xcd, 0x7b, 0x72, 0x11,
  956. 0x3e, 0xd9, 0x46, 0xef, 0xb6, 0xc2, 0x38, 0xf4, 0xcf, 0x65, 0x84, 0x03, 0x05, 0xfa, 0x63, 0x12,
  957. 0x64, 0xcf, 0x76, 0x04, 0x7b, 0x60, 0x91, 0x33, 0xdb, 0xd2, 0x57, 0xa4, 0xd5, 0xf3, 0xec, 0x81,
  958. 0xcd, 0x03, 0xec, 0x7e, 0x3b, 0x0c, 0xe5, 0xf0, 0x7e, 0x8b, 0x20, 0x84, 0x25, 0xfd, 0x73, 0xbd,
  959. 0x1a, 0x4b, 0xd3, 0x63, 0xf2, 0xdb, 0x4f, 0x8f, 0x4d, 0xb0, 0xcc, 0x53, 0x34, 0xf8, 0x86, 0x91,
  960. 0xca, 0x27, 0x57, 0x67, 0x8b, 0xeb, 0x63, 0x5f, 0x5b, 0xda, 0xe3, 0x97, 0x48, 0xf0, 0xf5, 0x62,
  961. 0x25, 0x4a, 0x56, 0x0e, 0x06, 0xd9, 0x96, 0x99, 0xc1, 0x31, 0x2e, 0xdc, 0x8c, 0x0d, 0x17, 0xbc,
  962. 0xd4, 0xbf, 0x73, 0xce, 0x61, 0x42, 0x1a, 0x1e, 0xd0, 0x1c, 0x48, 0x35, 0x4c, 0xbb, 0x8b, 0xde,
  963. 0x03, 0xb3, 0x25, 0xcb, 0xf1, 0x58, 0xc7, 0x71, 0x89, 0xee, 0x39, 0xb6, 0x9c, 0x4a, 0x1c, 0x09,
  964. 0x8f, 0x9a, 0x8b, 0x08, 0x0b, 0x7c, 0xed, 0x8b, 0x24, 0x58, 0x94, 0x3e, 0xfa, 0xc1, 0x1f, 0x82,
  965. 0x6b, 0xbb, 0x95, 0x66, 0xb3, 0xb0, 0x55, 0x69, 0xb7, 0xee, 0x35, 0x2a, 0xed, 0xd2, 0xce, 0x9d,
  966. 0x66, 0xab, 0x82, 0xdb, 0xa5, 0x7a, 0x6d, 0xb3, 0xba, 0x95, 0x99, 0xc9, 0x5e, 0x1f, 0x8e, 0xf2,
  967. 0xaa, 0x64, 0x11, 0xff, 0x3c, 0xf7, 0x5d, 0x00, 0x63, 0xe6, 0xd5, 0x5a, 0xb9, 0xf2, 0xe3, 0x8c,
  968. 0x92, 0xbd, 0x34, 0x1c, 0xe5, 0x33, 0x92, 0x15, 0x7f, 0xeb, 0xfb, 0x01, 0x78, 0x71, 0x9a, 0xdd,
  969. 0xbe, 0xd3, 0x28, 0x17, 0x5a, 0x95, 0x4c, 0x22, 0x9b, 0x1d, 0x8e, 0xf2, 0x57, 0x4e, 0x1a, 0x89,
  970. 0x14, 0x7c, 0x1d, 0x5c, 0x8a, 0x99, 0xe2, 0xca, 0x8f, 0xee, 0x54, 0x9a, 0xad, 0x4c, 0x32, 0x7b,
  971. 0x65, 0x38, 0xca, 0x43, 0xc9, 0x2a, 0xb8, 0x26, 0x36, 0xc0, 0xe5, 0x13, 0x16, 0xcd, 0x46, 0xbd,
  972. 0xd6, 0xac, 0x64, 0x52, 0xd9, 0xab, 0xc3, 0x51, 0xfe, 0x62, 0xcc, 0x44, 0x74, 0x95, 0x12, 0xc8,
  973. 0xc5, 0x6c, 0xca, 0xf5, 0x8f, 0x6b, 0x3b, 0xf5, 0x42, 0xb9, 0xdd, 0xc0, 0xf5, 0x2d, 0x5c, 0x69,
  974. 0x36, 0x33, 0xb3, 0x59, 0x6d, 0x38, 0xca, 0x5f, 0x93, 0x8c, 0xa7, 0x2a, 0x7c, 0x0d, 0xac, 0xc4,
  975. 0x9c, 0x34, 0xaa, 0xb5, 0xad, 0xcc, 0x5c, 0xf6, 0xe2, 0x70, 0x94, 0x7f, 0x41, 0xb2, 0xa3, 0x67,
  976. 0x39, 0x15, 0xbf, 0xd2, 0x4e, 0xbd, 0x59, 0xc9, 0xcc, 0x4f, 0xc5, 0x8f, 0x1d, 0xf8, 0xda, 0x1f,
  977. 0x14, 0x00, 0xa7, 0xbf, 0xb3, 0xc2, 0x77, 0x80, 0x1a, 0x38, 0x29, 0xd5, 0x77, 0x1b, 0x74, 0x9f,
  978. 0xd5, 0x7a, 0xad, 0x5d, 0xab, 0xd7, 0x2a, 0x99, 0x99, 0x58, 0x54, 0x25, 0xab, 0x9a, 0x63, 0x13,
  979. 0x58, 0x07, 0x57, 0x4f, 0xb3, 0xdc, 0xb9, 0xff, 0x56, 0x46, 0xc9, 0x6e, 0x0c, 0x47, 0xf9, 0xcb,
  980. 0xd3, 0x86, 0x3b, 0xf7, 0xdf, 0xfa, 0xea, 0xd7, 0x2f, 0x9f, 0xae, 0x58, 0xfb, 0xbd, 0x02, 0x16,
  981. 0xe5, 0xad, 0xbd, 0x01, 0x2e, 0xc9, 0x8e, 0x77, 0x2b, 0xad, 0x42, 0xb9, 0xd0, 0x2a, 0x64, 0x66,
  982. 0xf8, 0x19, 0x48, 0xd4, 0x5d, 0x32, 0xd0, 0x59, 0xdb, 0x7d, 0x15, 0xac, 0xc4, 0x7e, 0x45, 0xe5,
  983. 0x6e, 0x05, 0x07, 0x19, 0x25, 0xef, 0x9f, 0x1c, 0x11, 0x17, 0xbe, 0x06, 0xa0, 0x4c, 0x2e, 0xec,
  984. 0x7c, 0x5c, 0xb8, 0xd7, 0xcc, 0x24, 0xb2, 0x97, 0x87, 0xa3, 0xfc, 0x8a, 0xc4, 0x2e, 0x58, 0x0f,
  985. 0xf5, 0x63, 0x6f, 0xed, 0xaf, 0x09, 0xb0, 0x24, 0xbf, 0xaa, 0xc0, 0xd7, 0xc0, 0xc5, 0xcd, 0xea,
  986. 0x0e, 0xcd, 0xc4, 0xcd, 0x3a, 0x3f, 0x01, 0x2a, 0x66, 0x66, 0xf8, 0x72, 0x32, 0x95, 0x3e, 0xc3,
  987. 0xef, 0x03, 0xf5, 0x04, 0xbd, 0x5c, 0xc5, 0x95, 0x52, 0xab, 0x8e, 0xef, 0x65, 0x94, 0xec, 0x8b,
  988. 0x34, 0x60, 0xb2, 0x4d, 0xd9, 0x74, 0x59, 0x0b, 0x3a, 0x86, 0xb7, 0xc1, 0xb5, 0x13, 0x86, 0xcd,
  989. 0x7b, 0xbb, 0x3b, 0xd5, 0xda, 0x47, 0x7c, 0xbd, 0x44, 0xf6, 0xc6, 0x70, 0x94, 0xbf, 0x2a, 0xdb,
  990. 0x36, 0xf9, 0xdb, 0x1f, 0x85, 0xd2, 0x0a, 0xdc, 0x06, 0xf9, 0x33, 0xec, 0xa3, 0x0d, 0x24, 0xb3,
  991. 0x68, 0x38, 0xca, 0x5f, 0x3f, 0xc5, 0x49, 0xb8, 0x8f, 0xb4, 0x02, 0xdf, 0x04, 0x57, 0x4e, 0xf7,
  992. 0x14, 0xd4, 0xc5, 0x29, 0xf6, 0x6b, 0x7f, 0x57, 0xc0, 0x42, 0x78, 0xeb, 0xd1, 0xa0, 0x55, 0x30,
  993. 0xae, 0xd3, 0x26, 0x51, 0xae, 0xb4, 0x6b, 0xf5, 0x36, 0x93, 0x82, 0xa0, 0x85, 0xbc, 0x9a, 0xc3,
  994. 0x1e, 0x69, 0x8e, 0x4b, 0xf4, 0xad, 0x4a, 0xad, 0x82, 0xab, 0xa5, 0xe0, 0x44, 0x43, 0xf6, 0x16,
  995. 0xb1, 0x89, 0x6b, 0x76, 0xe0, 0x5b, 0xe0, 0x6a, 0xdc, 0x79, 0xf3, 0x4e, 0x69, 0x3b, 0x88, 0x12,
  996. 0xdb, 0xa0, 0xb4, 0x40, 0xf3, 0xb0, 0x73, 0xc0, 0x0e, 0xe6, 0xed, 0x98, 0x55, 0xb5, 0x76, 0xb7,
  997. 0xb0, 0x53, 0x2d, 0x73, 0xab, 0x64, 0x56, 0x1d, 0x8e, 0xf2, 0x97, 0x42, 0x2b, 0xf1, 0xe2, 0x41,
  998. 0xcd, 0xd6, 0xbe, 0x52, 0x40, 0xee, 0xeb, 0x2f, 0x2f, 0xf8, 0x31, 0x78, 0x85, 0xc5, 0x6b, 0xaa,
  999. 0x15, 0x88, 0xbe, 0xc5, 0x63, 0x58, 0x68, 0x34, 0x2a, 0xb5, 0x72, 0x66, 0x26, 0xbb, 0x3a, 0x1c,
  1000. 0xe5, 0x6f, 0x7e, 0xbd, 0xcb, 0x42, 0xbf, 0x4f, 0x6c, 0xe3, 0x9c, 0x8e, 0x37, 0xeb, 0x78, 0xab,
  1001. 0xd2, 0xca, 0x28, 0xe7, 0x71, 0xbc, 0xe9, 0xb8, 0x5d, 0x32, 0x28, 0xee, 0x7e, 0xf9, 0x24, 0x37,
  1002. 0xf3, 0xf8, 0x49, 0x6e, 0xe6, 0xcb, 0xa7, 0x39, 0xe5, 0xf1, 0xd3, 0x9c, 0xf2, 0x9b, 0x67, 0xb9,
  1003. 0x99, 0xcf, 0x9f, 0xe5, 0x94, 0xc7, 0xcf, 0x72, 0x33, 0xff, 0x78, 0x96, 0x9b, 0xb9, 0xff, 0x6a,
  1004. 0xd7, 0x1c, 0x1c, 0x1c, 0xee, 0xad, 0x77, 0x9c, 0xde, 0x2d, 0xef, 0xd8, 0xee, 0x0c, 0x0e, 0x4c,
  1005. 0xbb, 0x2b, 0x3d, 0xc9, 0xff, 0xb7, 0xed, 0xcd, 0xb1, 0xa7, 0x37, 0xff, 0x1b, 0x00, 0x00, 0xff,
  1006. 0xff, 0xf7, 0xe3, 0xa9, 0xd7, 0x86, 0x1b, 0x00, 0x00,
  1007. }
  1008. func (m *Hello) Marshal() (dAtA []byte, err error) {
  1009. size := m.ProtoSize()
  1010. dAtA = make([]byte, size)
  1011. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1012. if err != nil {
  1013. return nil, err
  1014. }
  1015. return dAtA[:n], nil
  1016. }
  1017. func (m *Hello) MarshalTo(dAtA []byte) (int, error) {
  1018. size := m.ProtoSize()
  1019. return m.MarshalToSizedBuffer(dAtA[:size])
  1020. }
  1021. func (m *Hello) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1022. i := len(dAtA)
  1023. _ = i
  1024. var l int
  1025. _ = l
  1026. if len(m.ClientVersion) > 0 {
  1027. i -= len(m.ClientVersion)
  1028. copy(dAtA[i:], m.ClientVersion)
  1029. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientVersion)))
  1030. i--
  1031. dAtA[i] = 0x1a
  1032. }
  1033. if len(m.ClientName) > 0 {
  1034. i -= len(m.ClientName)
  1035. copy(dAtA[i:], m.ClientName)
  1036. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientName)))
  1037. i--
  1038. dAtA[i] = 0x12
  1039. }
  1040. if len(m.DeviceName) > 0 {
  1041. i -= len(m.DeviceName)
  1042. copy(dAtA[i:], m.DeviceName)
  1043. i = encodeVarintBep(dAtA, i, uint64(len(m.DeviceName)))
  1044. i--
  1045. dAtA[i] = 0xa
  1046. }
  1047. return len(dAtA) - i, nil
  1048. }
  1049. func (m *Header) Marshal() (dAtA []byte, err error) {
  1050. size := m.ProtoSize()
  1051. dAtA = make([]byte, size)
  1052. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1053. if err != nil {
  1054. return nil, err
  1055. }
  1056. return dAtA[:n], nil
  1057. }
  1058. func (m *Header) MarshalTo(dAtA []byte) (int, error) {
  1059. size := m.ProtoSize()
  1060. return m.MarshalToSizedBuffer(dAtA[:size])
  1061. }
  1062. func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1063. i := len(dAtA)
  1064. _ = i
  1065. var l int
  1066. _ = l
  1067. if m.Compression != 0 {
  1068. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  1069. i--
  1070. dAtA[i] = 0x10
  1071. }
  1072. if m.Type != 0 {
  1073. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  1074. i--
  1075. dAtA[i] = 0x8
  1076. }
  1077. return len(dAtA) - i, nil
  1078. }
  1079. func (m *ClusterConfig) Marshal() (dAtA []byte, err error) {
  1080. size := m.ProtoSize()
  1081. dAtA = make([]byte, size)
  1082. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1083. if err != nil {
  1084. return nil, err
  1085. }
  1086. return dAtA[:n], nil
  1087. }
  1088. func (m *ClusterConfig) MarshalTo(dAtA []byte) (int, error) {
  1089. size := m.ProtoSize()
  1090. return m.MarshalToSizedBuffer(dAtA[:size])
  1091. }
  1092. func (m *ClusterConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1093. i := len(dAtA)
  1094. _ = i
  1095. var l int
  1096. _ = l
  1097. if len(m.Folders) > 0 {
  1098. for iNdEx := len(m.Folders) - 1; iNdEx >= 0; iNdEx-- {
  1099. {
  1100. size, err := m.Folders[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1101. if err != nil {
  1102. return 0, err
  1103. }
  1104. i -= size
  1105. i = encodeVarintBep(dAtA, i, uint64(size))
  1106. }
  1107. i--
  1108. dAtA[i] = 0xa
  1109. }
  1110. }
  1111. return len(dAtA) - i, nil
  1112. }
  1113. func (m *Folder) Marshal() (dAtA []byte, err error) {
  1114. size := m.ProtoSize()
  1115. dAtA = make([]byte, size)
  1116. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1117. if err != nil {
  1118. return nil, err
  1119. }
  1120. return dAtA[:n], nil
  1121. }
  1122. func (m *Folder) MarshalTo(dAtA []byte) (int, error) {
  1123. size := m.ProtoSize()
  1124. return m.MarshalToSizedBuffer(dAtA[:size])
  1125. }
  1126. func (m *Folder) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1127. i := len(dAtA)
  1128. _ = i
  1129. var l int
  1130. _ = l
  1131. if len(m.Devices) > 0 {
  1132. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  1133. {
  1134. size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1135. if err != nil {
  1136. return 0, err
  1137. }
  1138. i -= size
  1139. i = encodeVarintBep(dAtA, i, uint64(size))
  1140. }
  1141. i--
  1142. dAtA[i] = 0x1
  1143. i--
  1144. dAtA[i] = 0x82
  1145. }
  1146. }
  1147. if m.Paused {
  1148. i--
  1149. if m.Paused {
  1150. dAtA[i] = 1
  1151. } else {
  1152. dAtA[i] = 0
  1153. }
  1154. i--
  1155. dAtA[i] = 0x38
  1156. }
  1157. if m.DisableTempIndexes {
  1158. i--
  1159. if m.DisableTempIndexes {
  1160. dAtA[i] = 1
  1161. } else {
  1162. dAtA[i] = 0
  1163. }
  1164. i--
  1165. dAtA[i] = 0x30
  1166. }
  1167. if m.IgnoreDelete {
  1168. i--
  1169. if m.IgnoreDelete {
  1170. dAtA[i] = 1
  1171. } else {
  1172. dAtA[i] = 0
  1173. }
  1174. i--
  1175. dAtA[i] = 0x28
  1176. }
  1177. if m.IgnorePermissions {
  1178. i--
  1179. if m.IgnorePermissions {
  1180. dAtA[i] = 1
  1181. } else {
  1182. dAtA[i] = 0
  1183. }
  1184. i--
  1185. dAtA[i] = 0x20
  1186. }
  1187. if m.ReadOnly {
  1188. i--
  1189. if m.ReadOnly {
  1190. dAtA[i] = 1
  1191. } else {
  1192. dAtA[i] = 0
  1193. }
  1194. i--
  1195. dAtA[i] = 0x18
  1196. }
  1197. if len(m.Label) > 0 {
  1198. i -= len(m.Label)
  1199. copy(dAtA[i:], m.Label)
  1200. i = encodeVarintBep(dAtA, i, uint64(len(m.Label)))
  1201. i--
  1202. dAtA[i] = 0x12
  1203. }
  1204. if len(m.ID) > 0 {
  1205. i -= len(m.ID)
  1206. copy(dAtA[i:], m.ID)
  1207. i = encodeVarintBep(dAtA, i, uint64(len(m.ID)))
  1208. i--
  1209. dAtA[i] = 0xa
  1210. }
  1211. return len(dAtA) - i, nil
  1212. }
  1213. func (m *Device) Marshal() (dAtA []byte, err error) {
  1214. size := m.ProtoSize()
  1215. dAtA = make([]byte, size)
  1216. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1217. if err != nil {
  1218. return nil, err
  1219. }
  1220. return dAtA[:n], nil
  1221. }
  1222. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  1223. size := m.ProtoSize()
  1224. return m.MarshalToSizedBuffer(dAtA[:size])
  1225. }
  1226. func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1227. i := len(dAtA)
  1228. _ = i
  1229. var l int
  1230. _ = l
  1231. if len(m.EncryptionPasswordToken) > 0 {
  1232. i -= len(m.EncryptionPasswordToken)
  1233. copy(dAtA[i:], m.EncryptionPasswordToken)
  1234. i = encodeVarintBep(dAtA, i, uint64(len(m.EncryptionPasswordToken)))
  1235. i--
  1236. dAtA[i] = 0x52
  1237. }
  1238. if m.SkipIntroductionRemovals {
  1239. i--
  1240. if m.SkipIntroductionRemovals {
  1241. dAtA[i] = 1
  1242. } else {
  1243. dAtA[i] = 0
  1244. }
  1245. i--
  1246. dAtA[i] = 0x48
  1247. }
  1248. if m.IndexID != 0 {
  1249. i = encodeVarintBep(dAtA, i, uint64(m.IndexID))
  1250. i--
  1251. dAtA[i] = 0x40
  1252. }
  1253. if m.Introducer {
  1254. i--
  1255. if m.Introducer {
  1256. dAtA[i] = 1
  1257. } else {
  1258. dAtA[i] = 0
  1259. }
  1260. i--
  1261. dAtA[i] = 0x38
  1262. }
  1263. if m.MaxSequence != 0 {
  1264. i = encodeVarintBep(dAtA, i, uint64(m.MaxSequence))
  1265. i--
  1266. dAtA[i] = 0x30
  1267. }
  1268. if len(m.CertName) > 0 {
  1269. i -= len(m.CertName)
  1270. copy(dAtA[i:], m.CertName)
  1271. i = encodeVarintBep(dAtA, i, uint64(len(m.CertName)))
  1272. i--
  1273. dAtA[i] = 0x2a
  1274. }
  1275. if m.Compression != 0 {
  1276. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  1277. i--
  1278. dAtA[i] = 0x20
  1279. }
  1280. if len(m.Addresses) > 0 {
  1281. for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
  1282. i -= len(m.Addresses[iNdEx])
  1283. copy(dAtA[i:], m.Addresses[iNdEx])
  1284. i = encodeVarintBep(dAtA, i, uint64(len(m.Addresses[iNdEx])))
  1285. i--
  1286. dAtA[i] = 0x1a
  1287. }
  1288. }
  1289. if len(m.Name) > 0 {
  1290. i -= len(m.Name)
  1291. copy(dAtA[i:], m.Name)
  1292. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1293. i--
  1294. dAtA[i] = 0x12
  1295. }
  1296. {
  1297. size := m.ID.ProtoSize()
  1298. i -= size
  1299. if _, err := m.ID.MarshalTo(dAtA[i:]); err != nil {
  1300. return 0, err
  1301. }
  1302. i = encodeVarintBep(dAtA, i, uint64(size))
  1303. }
  1304. i--
  1305. dAtA[i] = 0xa
  1306. return len(dAtA) - i, nil
  1307. }
  1308. func (m *Index) Marshal() (dAtA []byte, err error) {
  1309. size := m.ProtoSize()
  1310. dAtA = make([]byte, size)
  1311. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1312. if err != nil {
  1313. return nil, err
  1314. }
  1315. return dAtA[:n], nil
  1316. }
  1317. func (m *Index) MarshalTo(dAtA []byte) (int, error) {
  1318. size := m.ProtoSize()
  1319. return m.MarshalToSizedBuffer(dAtA[:size])
  1320. }
  1321. func (m *Index) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1322. i := len(dAtA)
  1323. _ = i
  1324. var l int
  1325. _ = l
  1326. if len(m.Files) > 0 {
  1327. for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- {
  1328. {
  1329. size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1330. if err != nil {
  1331. return 0, err
  1332. }
  1333. i -= size
  1334. i = encodeVarintBep(dAtA, i, uint64(size))
  1335. }
  1336. i--
  1337. dAtA[i] = 0x12
  1338. }
  1339. }
  1340. if len(m.Folder) > 0 {
  1341. i -= len(m.Folder)
  1342. copy(dAtA[i:], m.Folder)
  1343. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1344. i--
  1345. dAtA[i] = 0xa
  1346. }
  1347. return len(dAtA) - i, nil
  1348. }
  1349. func (m *IndexUpdate) Marshal() (dAtA []byte, err error) {
  1350. size := m.ProtoSize()
  1351. dAtA = make([]byte, size)
  1352. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1353. if err != nil {
  1354. return nil, err
  1355. }
  1356. return dAtA[:n], nil
  1357. }
  1358. func (m *IndexUpdate) MarshalTo(dAtA []byte) (int, error) {
  1359. size := m.ProtoSize()
  1360. return m.MarshalToSizedBuffer(dAtA[:size])
  1361. }
  1362. func (m *IndexUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1363. i := len(dAtA)
  1364. _ = i
  1365. var l int
  1366. _ = l
  1367. if len(m.Files) > 0 {
  1368. for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- {
  1369. {
  1370. size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1371. if err != nil {
  1372. return 0, err
  1373. }
  1374. i -= size
  1375. i = encodeVarintBep(dAtA, i, uint64(size))
  1376. }
  1377. i--
  1378. dAtA[i] = 0x12
  1379. }
  1380. }
  1381. if len(m.Folder) > 0 {
  1382. i -= len(m.Folder)
  1383. copy(dAtA[i:], m.Folder)
  1384. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1385. i--
  1386. dAtA[i] = 0xa
  1387. }
  1388. return len(dAtA) - i, nil
  1389. }
  1390. func (m *FileInfo) Marshal() (dAtA []byte, err error) {
  1391. size := m.ProtoSize()
  1392. dAtA = make([]byte, size)
  1393. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1394. if err != nil {
  1395. return nil, err
  1396. }
  1397. return dAtA[:n], nil
  1398. }
  1399. func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) {
  1400. size := m.ProtoSize()
  1401. return m.MarshalToSizedBuffer(dAtA[:size])
  1402. }
  1403. func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1404. i := len(dAtA)
  1405. _ = i
  1406. var l int
  1407. _ = l
  1408. if len(m.VersionHash) > 0 {
  1409. i -= len(m.VersionHash)
  1410. copy(dAtA[i:], m.VersionHash)
  1411. i = encodeVarintBep(dAtA, i, uint64(len(m.VersionHash)))
  1412. i--
  1413. dAtA[i] = 0x3e
  1414. i--
  1415. dAtA[i] = 0xca
  1416. }
  1417. if m.LocalFlags != 0 {
  1418. i = encodeVarintBep(dAtA, i, uint64(m.LocalFlags))
  1419. i--
  1420. dAtA[i] = 0x3e
  1421. i--
  1422. dAtA[i] = 0xc0
  1423. }
  1424. if len(m.Encrypted) > 0 {
  1425. i -= len(m.Encrypted)
  1426. copy(dAtA[i:], m.Encrypted)
  1427. i = encodeVarintBep(dAtA, i, uint64(len(m.Encrypted)))
  1428. i--
  1429. dAtA[i] = 0x1
  1430. i--
  1431. dAtA[i] = 0x9a
  1432. }
  1433. if len(m.BlocksHash) > 0 {
  1434. i -= len(m.BlocksHash)
  1435. copy(dAtA[i:], m.BlocksHash)
  1436. i = encodeVarintBep(dAtA, i, uint64(len(m.BlocksHash)))
  1437. i--
  1438. dAtA[i] = 0x1
  1439. i--
  1440. dAtA[i] = 0x92
  1441. }
  1442. if len(m.SymlinkTarget) > 0 {
  1443. i -= len(m.SymlinkTarget)
  1444. copy(dAtA[i:], m.SymlinkTarget)
  1445. i = encodeVarintBep(dAtA, i, uint64(len(m.SymlinkTarget)))
  1446. i--
  1447. dAtA[i] = 0x1
  1448. i--
  1449. dAtA[i] = 0x8a
  1450. }
  1451. if len(m.Blocks) > 0 {
  1452. for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
  1453. {
  1454. size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1455. if err != nil {
  1456. return 0, err
  1457. }
  1458. i -= size
  1459. i = encodeVarintBep(dAtA, i, uint64(size))
  1460. }
  1461. i--
  1462. dAtA[i] = 0x1
  1463. i--
  1464. dAtA[i] = 0x82
  1465. }
  1466. }
  1467. if m.RawBlockSize != 0 {
  1468. i = encodeVarintBep(dAtA, i, uint64(m.RawBlockSize))
  1469. i--
  1470. dAtA[i] = 0x68
  1471. }
  1472. if m.ModifiedBy != 0 {
  1473. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedBy))
  1474. i--
  1475. dAtA[i] = 0x60
  1476. }
  1477. if m.ModifiedNs != 0 {
  1478. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedNs))
  1479. i--
  1480. dAtA[i] = 0x58
  1481. }
  1482. if m.Sequence != 0 {
  1483. i = encodeVarintBep(dAtA, i, uint64(m.Sequence))
  1484. i--
  1485. dAtA[i] = 0x50
  1486. }
  1487. {
  1488. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  1489. if err != nil {
  1490. return 0, err
  1491. }
  1492. i -= size
  1493. i = encodeVarintBep(dAtA, i, uint64(size))
  1494. }
  1495. i--
  1496. dAtA[i] = 0x4a
  1497. if m.NoPermissions {
  1498. i--
  1499. if m.NoPermissions {
  1500. dAtA[i] = 1
  1501. } else {
  1502. dAtA[i] = 0
  1503. }
  1504. i--
  1505. dAtA[i] = 0x40
  1506. }
  1507. if m.RawInvalid {
  1508. i--
  1509. if m.RawInvalid {
  1510. dAtA[i] = 1
  1511. } else {
  1512. dAtA[i] = 0
  1513. }
  1514. i--
  1515. dAtA[i] = 0x38
  1516. }
  1517. if m.Deleted {
  1518. i--
  1519. if m.Deleted {
  1520. dAtA[i] = 1
  1521. } else {
  1522. dAtA[i] = 0
  1523. }
  1524. i--
  1525. dAtA[i] = 0x30
  1526. }
  1527. if m.ModifiedS != 0 {
  1528. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedS))
  1529. i--
  1530. dAtA[i] = 0x28
  1531. }
  1532. if m.Permissions != 0 {
  1533. i = encodeVarintBep(dAtA, i, uint64(m.Permissions))
  1534. i--
  1535. dAtA[i] = 0x20
  1536. }
  1537. if m.Size != 0 {
  1538. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  1539. i--
  1540. dAtA[i] = 0x18
  1541. }
  1542. if m.Type != 0 {
  1543. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  1544. i--
  1545. dAtA[i] = 0x10
  1546. }
  1547. if len(m.Name) > 0 {
  1548. i -= len(m.Name)
  1549. copy(dAtA[i:], m.Name)
  1550. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1551. i--
  1552. dAtA[i] = 0xa
  1553. }
  1554. return len(dAtA) - i, nil
  1555. }
  1556. func (m *BlockInfo) Marshal() (dAtA []byte, err error) {
  1557. size := m.ProtoSize()
  1558. dAtA = make([]byte, size)
  1559. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1560. if err != nil {
  1561. return nil, err
  1562. }
  1563. return dAtA[:n], nil
  1564. }
  1565. func (m *BlockInfo) MarshalTo(dAtA []byte) (int, error) {
  1566. size := m.ProtoSize()
  1567. return m.MarshalToSizedBuffer(dAtA[:size])
  1568. }
  1569. func (m *BlockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1570. i := len(dAtA)
  1571. _ = i
  1572. var l int
  1573. _ = l
  1574. if m.WeakHash != 0 {
  1575. i = encodeVarintBep(dAtA, i, uint64(m.WeakHash))
  1576. i--
  1577. dAtA[i] = 0x20
  1578. }
  1579. if len(m.Hash) > 0 {
  1580. i -= len(m.Hash)
  1581. copy(dAtA[i:], m.Hash)
  1582. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  1583. i--
  1584. dAtA[i] = 0x1a
  1585. }
  1586. if m.Size != 0 {
  1587. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  1588. i--
  1589. dAtA[i] = 0x10
  1590. }
  1591. if m.Offset != 0 {
  1592. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  1593. i--
  1594. dAtA[i] = 0x8
  1595. }
  1596. return len(dAtA) - i, nil
  1597. }
  1598. func (m *Vector) Marshal() (dAtA []byte, err error) {
  1599. size := m.ProtoSize()
  1600. dAtA = make([]byte, size)
  1601. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1602. if err != nil {
  1603. return nil, err
  1604. }
  1605. return dAtA[:n], nil
  1606. }
  1607. func (m *Vector) MarshalTo(dAtA []byte) (int, error) {
  1608. size := m.ProtoSize()
  1609. return m.MarshalToSizedBuffer(dAtA[:size])
  1610. }
  1611. func (m *Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1612. i := len(dAtA)
  1613. _ = i
  1614. var l int
  1615. _ = l
  1616. if len(m.Counters) > 0 {
  1617. for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- {
  1618. {
  1619. size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1620. if err != nil {
  1621. return 0, err
  1622. }
  1623. i -= size
  1624. i = encodeVarintBep(dAtA, i, uint64(size))
  1625. }
  1626. i--
  1627. dAtA[i] = 0xa
  1628. }
  1629. }
  1630. return len(dAtA) - i, nil
  1631. }
  1632. func (m *Counter) Marshal() (dAtA []byte, err error) {
  1633. size := m.ProtoSize()
  1634. dAtA = make([]byte, size)
  1635. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1636. if err != nil {
  1637. return nil, err
  1638. }
  1639. return dAtA[:n], nil
  1640. }
  1641. func (m *Counter) MarshalTo(dAtA []byte) (int, error) {
  1642. size := m.ProtoSize()
  1643. return m.MarshalToSizedBuffer(dAtA[:size])
  1644. }
  1645. func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1646. i := len(dAtA)
  1647. _ = i
  1648. var l int
  1649. _ = l
  1650. if m.Value != 0 {
  1651. i = encodeVarintBep(dAtA, i, uint64(m.Value))
  1652. i--
  1653. dAtA[i] = 0x10
  1654. }
  1655. if m.ID != 0 {
  1656. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  1657. i--
  1658. dAtA[i] = 0x8
  1659. }
  1660. return len(dAtA) - i, nil
  1661. }
  1662. func (m *Request) Marshal() (dAtA []byte, err error) {
  1663. size := m.ProtoSize()
  1664. dAtA = make([]byte, size)
  1665. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1666. if err != nil {
  1667. return nil, err
  1668. }
  1669. return dAtA[:n], nil
  1670. }
  1671. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  1672. size := m.ProtoSize()
  1673. return m.MarshalToSizedBuffer(dAtA[:size])
  1674. }
  1675. func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1676. i := len(dAtA)
  1677. _ = i
  1678. var l int
  1679. _ = l
  1680. if m.BlockNo != 0 {
  1681. i = encodeVarintBep(dAtA, i, uint64(m.BlockNo))
  1682. i--
  1683. dAtA[i] = 0x48
  1684. }
  1685. if m.WeakHash != 0 {
  1686. i = encodeVarintBep(dAtA, i, uint64(m.WeakHash))
  1687. i--
  1688. dAtA[i] = 0x40
  1689. }
  1690. if m.FromTemporary {
  1691. i--
  1692. if m.FromTemporary {
  1693. dAtA[i] = 1
  1694. } else {
  1695. dAtA[i] = 0
  1696. }
  1697. i--
  1698. dAtA[i] = 0x38
  1699. }
  1700. if len(m.Hash) > 0 {
  1701. i -= len(m.Hash)
  1702. copy(dAtA[i:], m.Hash)
  1703. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  1704. i--
  1705. dAtA[i] = 0x32
  1706. }
  1707. if m.Size != 0 {
  1708. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  1709. i--
  1710. dAtA[i] = 0x28
  1711. }
  1712. if m.Offset != 0 {
  1713. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  1714. i--
  1715. dAtA[i] = 0x20
  1716. }
  1717. if len(m.Name) > 0 {
  1718. i -= len(m.Name)
  1719. copy(dAtA[i:], m.Name)
  1720. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1721. i--
  1722. dAtA[i] = 0x1a
  1723. }
  1724. if len(m.Folder) > 0 {
  1725. i -= len(m.Folder)
  1726. copy(dAtA[i:], m.Folder)
  1727. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1728. i--
  1729. dAtA[i] = 0x12
  1730. }
  1731. if m.ID != 0 {
  1732. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  1733. i--
  1734. dAtA[i] = 0x8
  1735. }
  1736. return len(dAtA) - i, nil
  1737. }
  1738. func (m *Response) Marshal() (dAtA []byte, err error) {
  1739. size := m.ProtoSize()
  1740. dAtA = make([]byte, size)
  1741. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1742. if err != nil {
  1743. return nil, err
  1744. }
  1745. return dAtA[:n], nil
  1746. }
  1747. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  1748. size := m.ProtoSize()
  1749. return m.MarshalToSizedBuffer(dAtA[:size])
  1750. }
  1751. func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1752. i := len(dAtA)
  1753. _ = i
  1754. var l int
  1755. _ = l
  1756. if m.Code != 0 {
  1757. i = encodeVarintBep(dAtA, i, uint64(m.Code))
  1758. i--
  1759. dAtA[i] = 0x18
  1760. }
  1761. if len(m.Data) > 0 {
  1762. i -= len(m.Data)
  1763. copy(dAtA[i:], m.Data)
  1764. i = encodeVarintBep(dAtA, i, uint64(len(m.Data)))
  1765. i--
  1766. dAtA[i] = 0x12
  1767. }
  1768. if m.ID != 0 {
  1769. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  1770. i--
  1771. dAtA[i] = 0x8
  1772. }
  1773. return len(dAtA) - i, nil
  1774. }
  1775. func (m *DownloadProgress) Marshal() (dAtA []byte, err error) {
  1776. size := m.ProtoSize()
  1777. dAtA = make([]byte, size)
  1778. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1779. if err != nil {
  1780. return nil, err
  1781. }
  1782. return dAtA[:n], nil
  1783. }
  1784. func (m *DownloadProgress) MarshalTo(dAtA []byte) (int, error) {
  1785. size := m.ProtoSize()
  1786. return m.MarshalToSizedBuffer(dAtA[:size])
  1787. }
  1788. func (m *DownloadProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1789. i := len(dAtA)
  1790. _ = i
  1791. var l int
  1792. _ = l
  1793. if len(m.Updates) > 0 {
  1794. for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- {
  1795. {
  1796. size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1797. if err != nil {
  1798. return 0, err
  1799. }
  1800. i -= size
  1801. i = encodeVarintBep(dAtA, i, uint64(size))
  1802. }
  1803. i--
  1804. dAtA[i] = 0x12
  1805. }
  1806. }
  1807. if len(m.Folder) > 0 {
  1808. i -= len(m.Folder)
  1809. copy(dAtA[i:], m.Folder)
  1810. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1811. i--
  1812. dAtA[i] = 0xa
  1813. }
  1814. return len(dAtA) - i, nil
  1815. }
  1816. func (m *FileDownloadProgressUpdate) Marshal() (dAtA []byte, err error) {
  1817. size := m.ProtoSize()
  1818. dAtA = make([]byte, size)
  1819. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1820. if err != nil {
  1821. return nil, err
  1822. }
  1823. return dAtA[:n], nil
  1824. }
  1825. func (m *FileDownloadProgressUpdate) MarshalTo(dAtA []byte) (int, error) {
  1826. size := m.ProtoSize()
  1827. return m.MarshalToSizedBuffer(dAtA[:size])
  1828. }
  1829. func (m *FileDownloadProgressUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1830. i := len(dAtA)
  1831. _ = i
  1832. var l int
  1833. _ = l
  1834. if m.BlockSize != 0 {
  1835. i = encodeVarintBep(dAtA, i, uint64(m.BlockSize))
  1836. i--
  1837. dAtA[i] = 0x28
  1838. }
  1839. if len(m.BlockIndexes) > 0 {
  1840. for iNdEx := len(m.BlockIndexes) - 1; iNdEx >= 0; iNdEx-- {
  1841. i = encodeVarintBep(dAtA, i, uint64(m.BlockIndexes[iNdEx]))
  1842. i--
  1843. dAtA[i] = 0x20
  1844. }
  1845. }
  1846. {
  1847. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  1848. if err != nil {
  1849. return 0, err
  1850. }
  1851. i -= size
  1852. i = encodeVarintBep(dAtA, i, uint64(size))
  1853. }
  1854. i--
  1855. dAtA[i] = 0x1a
  1856. if len(m.Name) > 0 {
  1857. i -= len(m.Name)
  1858. copy(dAtA[i:], m.Name)
  1859. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1860. i--
  1861. dAtA[i] = 0x12
  1862. }
  1863. if m.UpdateType != 0 {
  1864. i = encodeVarintBep(dAtA, i, uint64(m.UpdateType))
  1865. i--
  1866. dAtA[i] = 0x8
  1867. }
  1868. return len(dAtA) - i, nil
  1869. }
  1870. func (m *Ping) Marshal() (dAtA []byte, err error) {
  1871. size := m.ProtoSize()
  1872. dAtA = make([]byte, size)
  1873. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1874. if err != nil {
  1875. return nil, err
  1876. }
  1877. return dAtA[:n], nil
  1878. }
  1879. func (m *Ping) MarshalTo(dAtA []byte) (int, error) {
  1880. size := m.ProtoSize()
  1881. return m.MarshalToSizedBuffer(dAtA[:size])
  1882. }
  1883. func (m *Ping) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1884. i := len(dAtA)
  1885. _ = i
  1886. var l int
  1887. _ = l
  1888. return len(dAtA) - i, nil
  1889. }
  1890. func (m *Close) Marshal() (dAtA []byte, err error) {
  1891. size := m.ProtoSize()
  1892. dAtA = make([]byte, size)
  1893. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1894. if err != nil {
  1895. return nil, err
  1896. }
  1897. return dAtA[:n], nil
  1898. }
  1899. func (m *Close) MarshalTo(dAtA []byte) (int, error) {
  1900. size := m.ProtoSize()
  1901. return m.MarshalToSizedBuffer(dAtA[:size])
  1902. }
  1903. func (m *Close) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1904. i := len(dAtA)
  1905. _ = i
  1906. var l int
  1907. _ = l
  1908. if len(m.Reason) > 0 {
  1909. i -= len(m.Reason)
  1910. copy(dAtA[i:], m.Reason)
  1911. i = encodeVarintBep(dAtA, i, uint64(len(m.Reason)))
  1912. i--
  1913. dAtA[i] = 0xa
  1914. }
  1915. return len(dAtA) - i, nil
  1916. }
  1917. func encodeVarintBep(dAtA []byte, offset int, v uint64) int {
  1918. offset -= sovBep(v)
  1919. base := offset
  1920. for v >= 1<<7 {
  1921. dAtA[offset] = uint8(v&0x7f | 0x80)
  1922. v >>= 7
  1923. offset++
  1924. }
  1925. dAtA[offset] = uint8(v)
  1926. return base
  1927. }
  1928. func (m *Hello) ProtoSize() (n int) {
  1929. if m == nil {
  1930. return 0
  1931. }
  1932. var l int
  1933. _ = l
  1934. l = len(m.DeviceName)
  1935. if l > 0 {
  1936. n += 1 + l + sovBep(uint64(l))
  1937. }
  1938. l = len(m.ClientName)
  1939. if l > 0 {
  1940. n += 1 + l + sovBep(uint64(l))
  1941. }
  1942. l = len(m.ClientVersion)
  1943. if l > 0 {
  1944. n += 1 + l + sovBep(uint64(l))
  1945. }
  1946. return n
  1947. }
  1948. func (m *Header) ProtoSize() (n int) {
  1949. if m == nil {
  1950. return 0
  1951. }
  1952. var l int
  1953. _ = l
  1954. if m.Type != 0 {
  1955. n += 1 + sovBep(uint64(m.Type))
  1956. }
  1957. if m.Compression != 0 {
  1958. n += 1 + sovBep(uint64(m.Compression))
  1959. }
  1960. return n
  1961. }
  1962. func (m *ClusterConfig) ProtoSize() (n int) {
  1963. if m == nil {
  1964. return 0
  1965. }
  1966. var l int
  1967. _ = l
  1968. if len(m.Folders) > 0 {
  1969. for _, e := range m.Folders {
  1970. l = e.ProtoSize()
  1971. n += 1 + l + sovBep(uint64(l))
  1972. }
  1973. }
  1974. return n
  1975. }
  1976. func (m *Folder) ProtoSize() (n int) {
  1977. if m == nil {
  1978. return 0
  1979. }
  1980. var l int
  1981. _ = l
  1982. l = len(m.ID)
  1983. if l > 0 {
  1984. n += 1 + l + sovBep(uint64(l))
  1985. }
  1986. l = len(m.Label)
  1987. if l > 0 {
  1988. n += 1 + l + sovBep(uint64(l))
  1989. }
  1990. if m.ReadOnly {
  1991. n += 2
  1992. }
  1993. if m.IgnorePermissions {
  1994. n += 2
  1995. }
  1996. if m.IgnoreDelete {
  1997. n += 2
  1998. }
  1999. if m.DisableTempIndexes {
  2000. n += 2
  2001. }
  2002. if m.Paused {
  2003. n += 2
  2004. }
  2005. if len(m.Devices) > 0 {
  2006. for _, e := range m.Devices {
  2007. l = e.ProtoSize()
  2008. n += 2 + l + sovBep(uint64(l))
  2009. }
  2010. }
  2011. return n
  2012. }
  2013. func (m *Device) ProtoSize() (n int) {
  2014. if m == nil {
  2015. return 0
  2016. }
  2017. var l int
  2018. _ = l
  2019. l = m.ID.ProtoSize()
  2020. n += 1 + l + sovBep(uint64(l))
  2021. l = len(m.Name)
  2022. if l > 0 {
  2023. n += 1 + l + sovBep(uint64(l))
  2024. }
  2025. if len(m.Addresses) > 0 {
  2026. for _, s := range m.Addresses {
  2027. l = len(s)
  2028. n += 1 + l + sovBep(uint64(l))
  2029. }
  2030. }
  2031. if m.Compression != 0 {
  2032. n += 1 + sovBep(uint64(m.Compression))
  2033. }
  2034. l = len(m.CertName)
  2035. if l > 0 {
  2036. n += 1 + l + sovBep(uint64(l))
  2037. }
  2038. if m.MaxSequence != 0 {
  2039. n += 1 + sovBep(uint64(m.MaxSequence))
  2040. }
  2041. if m.Introducer {
  2042. n += 2
  2043. }
  2044. if m.IndexID != 0 {
  2045. n += 1 + sovBep(uint64(m.IndexID))
  2046. }
  2047. if m.SkipIntroductionRemovals {
  2048. n += 2
  2049. }
  2050. l = len(m.EncryptionPasswordToken)
  2051. if l > 0 {
  2052. n += 1 + l + sovBep(uint64(l))
  2053. }
  2054. return n
  2055. }
  2056. func (m *Index) ProtoSize() (n int) {
  2057. if m == nil {
  2058. return 0
  2059. }
  2060. var l int
  2061. _ = l
  2062. l = len(m.Folder)
  2063. if l > 0 {
  2064. n += 1 + l + sovBep(uint64(l))
  2065. }
  2066. if len(m.Files) > 0 {
  2067. for _, e := range m.Files {
  2068. l = e.ProtoSize()
  2069. n += 1 + l + sovBep(uint64(l))
  2070. }
  2071. }
  2072. return n
  2073. }
  2074. func (m *IndexUpdate) ProtoSize() (n int) {
  2075. if m == nil {
  2076. return 0
  2077. }
  2078. var l int
  2079. _ = l
  2080. l = len(m.Folder)
  2081. if l > 0 {
  2082. n += 1 + l + sovBep(uint64(l))
  2083. }
  2084. if len(m.Files) > 0 {
  2085. for _, e := range m.Files {
  2086. l = e.ProtoSize()
  2087. n += 1 + l + sovBep(uint64(l))
  2088. }
  2089. }
  2090. return n
  2091. }
  2092. func (m *FileInfo) ProtoSize() (n int) {
  2093. if m == nil {
  2094. return 0
  2095. }
  2096. var l int
  2097. _ = l
  2098. l = len(m.Name)
  2099. if l > 0 {
  2100. n += 1 + l + sovBep(uint64(l))
  2101. }
  2102. if m.Type != 0 {
  2103. n += 1 + sovBep(uint64(m.Type))
  2104. }
  2105. if m.Size != 0 {
  2106. n += 1 + sovBep(uint64(m.Size))
  2107. }
  2108. if m.Permissions != 0 {
  2109. n += 1 + sovBep(uint64(m.Permissions))
  2110. }
  2111. if m.ModifiedS != 0 {
  2112. n += 1 + sovBep(uint64(m.ModifiedS))
  2113. }
  2114. if m.Deleted {
  2115. n += 2
  2116. }
  2117. if m.RawInvalid {
  2118. n += 2
  2119. }
  2120. if m.NoPermissions {
  2121. n += 2
  2122. }
  2123. l = m.Version.ProtoSize()
  2124. n += 1 + l + sovBep(uint64(l))
  2125. if m.Sequence != 0 {
  2126. n += 1 + sovBep(uint64(m.Sequence))
  2127. }
  2128. if m.ModifiedNs != 0 {
  2129. n += 1 + sovBep(uint64(m.ModifiedNs))
  2130. }
  2131. if m.ModifiedBy != 0 {
  2132. n += 1 + sovBep(uint64(m.ModifiedBy))
  2133. }
  2134. if m.RawBlockSize != 0 {
  2135. n += 1 + sovBep(uint64(m.RawBlockSize))
  2136. }
  2137. if len(m.Blocks) > 0 {
  2138. for _, e := range m.Blocks {
  2139. l = e.ProtoSize()
  2140. n += 2 + l + sovBep(uint64(l))
  2141. }
  2142. }
  2143. l = len(m.SymlinkTarget)
  2144. if l > 0 {
  2145. n += 2 + l + sovBep(uint64(l))
  2146. }
  2147. l = len(m.BlocksHash)
  2148. if l > 0 {
  2149. n += 2 + l + sovBep(uint64(l))
  2150. }
  2151. l = len(m.Encrypted)
  2152. if l > 0 {
  2153. n += 2 + l + sovBep(uint64(l))
  2154. }
  2155. if m.LocalFlags != 0 {
  2156. n += 2 + sovBep(uint64(m.LocalFlags))
  2157. }
  2158. l = len(m.VersionHash)
  2159. if l > 0 {
  2160. n += 2 + l + sovBep(uint64(l))
  2161. }
  2162. return n
  2163. }
  2164. func (m *BlockInfo) ProtoSize() (n int) {
  2165. if m == nil {
  2166. return 0
  2167. }
  2168. var l int
  2169. _ = l
  2170. if m.Offset != 0 {
  2171. n += 1 + sovBep(uint64(m.Offset))
  2172. }
  2173. if m.Size != 0 {
  2174. n += 1 + sovBep(uint64(m.Size))
  2175. }
  2176. l = len(m.Hash)
  2177. if l > 0 {
  2178. n += 1 + l + sovBep(uint64(l))
  2179. }
  2180. if m.WeakHash != 0 {
  2181. n += 1 + sovBep(uint64(m.WeakHash))
  2182. }
  2183. return n
  2184. }
  2185. func (m *Vector) ProtoSize() (n int) {
  2186. if m == nil {
  2187. return 0
  2188. }
  2189. var l int
  2190. _ = l
  2191. if len(m.Counters) > 0 {
  2192. for _, e := range m.Counters {
  2193. l = e.ProtoSize()
  2194. n += 1 + l + sovBep(uint64(l))
  2195. }
  2196. }
  2197. return n
  2198. }
  2199. func (m *Counter) ProtoSize() (n int) {
  2200. if m == nil {
  2201. return 0
  2202. }
  2203. var l int
  2204. _ = l
  2205. if m.ID != 0 {
  2206. n += 1 + sovBep(uint64(m.ID))
  2207. }
  2208. if m.Value != 0 {
  2209. n += 1 + sovBep(uint64(m.Value))
  2210. }
  2211. return n
  2212. }
  2213. func (m *Request) ProtoSize() (n int) {
  2214. if m == nil {
  2215. return 0
  2216. }
  2217. var l int
  2218. _ = l
  2219. if m.ID != 0 {
  2220. n += 1 + sovBep(uint64(m.ID))
  2221. }
  2222. l = len(m.Folder)
  2223. if l > 0 {
  2224. n += 1 + l + sovBep(uint64(l))
  2225. }
  2226. l = len(m.Name)
  2227. if l > 0 {
  2228. n += 1 + l + sovBep(uint64(l))
  2229. }
  2230. if m.Offset != 0 {
  2231. n += 1 + sovBep(uint64(m.Offset))
  2232. }
  2233. if m.Size != 0 {
  2234. n += 1 + sovBep(uint64(m.Size))
  2235. }
  2236. l = len(m.Hash)
  2237. if l > 0 {
  2238. n += 1 + l + sovBep(uint64(l))
  2239. }
  2240. if m.FromTemporary {
  2241. n += 2
  2242. }
  2243. if m.WeakHash != 0 {
  2244. n += 1 + sovBep(uint64(m.WeakHash))
  2245. }
  2246. if m.BlockNo != 0 {
  2247. n += 1 + sovBep(uint64(m.BlockNo))
  2248. }
  2249. return n
  2250. }
  2251. func (m *Response) ProtoSize() (n int) {
  2252. if m == nil {
  2253. return 0
  2254. }
  2255. var l int
  2256. _ = l
  2257. if m.ID != 0 {
  2258. n += 1 + sovBep(uint64(m.ID))
  2259. }
  2260. l = len(m.Data)
  2261. if l > 0 {
  2262. n += 1 + l + sovBep(uint64(l))
  2263. }
  2264. if m.Code != 0 {
  2265. n += 1 + sovBep(uint64(m.Code))
  2266. }
  2267. return n
  2268. }
  2269. func (m *DownloadProgress) ProtoSize() (n int) {
  2270. if m == nil {
  2271. return 0
  2272. }
  2273. var l int
  2274. _ = l
  2275. l = len(m.Folder)
  2276. if l > 0 {
  2277. n += 1 + l + sovBep(uint64(l))
  2278. }
  2279. if len(m.Updates) > 0 {
  2280. for _, e := range m.Updates {
  2281. l = e.ProtoSize()
  2282. n += 1 + l + sovBep(uint64(l))
  2283. }
  2284. }
  2285. return n
  2286. }
  2287. func (m *FileDownloadProgressUpdate) ProtoSize() (n int) {
  2288. if m == nil {
  2289. return 0
  2290. }
  2291. var l int
  2292. _ = l
  2293. if m.UpdateType != 0 {
  2294. n += 1 + sovBep(uint64(m.UpdateType))
  2295. }
  2296. l = len(m.Name)
  2297. if l > 0 {
  2298. n += 1 + l + sovBep(uint64(l))
  2299. }
  2300. l = m.Version.ProtoSize()
  2301. n += 1 + l + sovBep(uint64(l))
  2302. if len(m.BlockIndexes) > 0 {
  2303. for _, e := range m.BlockIndexes {
  2304. n += 1 + sovBep(uint64(e))
  2305. }
  2306. }
  2307. if m.BlockSize != 0 {
  2308. n += 1 + sovBep(uint64(m.BlockSize))
  2309. }
  2310. return n
  2311. }
  2312. func (m *Ping) ProtoSize() (n int) {
  2313. if m == nil {
  2314. return 0
  2315. }
  2316. var l int
  2317. _ = l
  2318. return n
  2319. }
  2320. func (m *Close) ProtoSize() (n int) {
  2321. if m == nil {
  2322. return 0
  2323. }
  2324. var l int
  2325. _ = l
  2326. l = len(m.Reason)
  2327. if l > 0 {
  2328. n += 1 + l + sovBep(uint64(l))
  2329. }
  2330. return n
  2331. }
  2332. func sovBep(x uint64) (n int) {
  2333. return (math_bits.Len64(x|1) + 6) / 7
  2334. }
  2335. func sozBep(x uint64) (n int) {
  2336. return sovBep(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2337. }
  2338. func (m *Hello) Unmarshal(dAtA []byte) error {
  2339. l := len(dAtA)
  2340. iNdEx := 0
  2341. for iNdEx < l {
  2342. preIndex := iNdEx
  2343. var wire uint64
  2344. for shift := uint(0); ; shift += 7 {
  2345. if shift >= 64 {
  2346. return ErrIntOverflowBep
  2347. }
  2348. if iNdEx >= l {
  2349. return io.ErrUnexpectedEOF
  2350. }
  2351. b := dAtA[iNdEx]
  2352. iNdEx++
  2353. wire |= uint64(b&0x7F) << shift
  2354. if b < 0x80 {
  2355. break
  2356. }
  2357. }
  2358. fieldNum := int32(wire >> 3)
  2359. wireType := int(wire & 0x7)
  2360. if wireType == 4 {
  2361. return fmt.Errorf("proto: Hello: wiretype end group for non-group")
  2362. }
  2363. if fieldNum <= 0 {
  2364. return fmt.Errorf("proto: Hello: illegal tag %d (wire type %d)", fieldNum, wire)
  2365. }
  2366. switch fieldNum {
  2367. case 1:
  2368. if wireType != 2 {
  2369. return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType)
  2370. }
  2371. var stringLen uint64
  2372. for shift := uint(0); ; shift += 7 {
  2373. if shift >= 64 {
  2374. return ErrIntOverflowBep
  2375. }
  2376. if iNdEx >= l {
  2377. return io.ErrUnexpectedEOF
  2378. }
  2379. b := dAtA[iNdEx]
  2380. iNdEx++
  2381. stringLen |= uint64(b&0x7F) << shift
  2382. if b < 0x80 {
  2383. break
  2384. }
  2385. }
  2386. intStringLen := int(stringLen)
  2387. if intStringLen < 0 {
  2388. return ErrInvalidLengthBep
  2389. }
  2390. postIndex := iNdEx + intStringLen
  2391. if postIndex < 0 {
  2392. return ErrInvalidLengthBep
  2393. }
  2394. if postIndex > l {
  2395. return io.ErrUnexpectedEOF
  2396. }
  2397. m.DeviceName = string(dAtA[iNdEx:postIndex])
  2398. iNdEx = postIndex
  2399. case 2:
  2400. if wireType != 2 {
  2401. return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType)
  2402. }
  2403. var stringLen uint64
  2404. for shift := uint(0); ; shift += 7 {
  2405. if shift >= 64 {
  2406. return ErrIntOverflowBep
  2407. }
  2408. if iNdEx >= l {
  2409. return io.ErrUnexpectedEOF
  2410. }
  2411. b := dAtA[iNdEx]
  2412. iNdEx++
  2413. stringLen |= uint64(b&0x7F) << shift
  2414. if b < 0x80 {
  2415. break
  2416. }
  2417. }
  2418. intStringLen := int(stringLen)
  2419. if intStringLen < 0 {
  2420. return ErrInvalidLengthBep
  2421. }
  2422. postIndex := iNdEx + intStringLen
  2423. if postIndex < 0 {
  2424. return ErrInvalidLengthBep
  2425. }
  2426. if postIndex > l {
  2427. return io.ErrUnexpectedEOF
  2428. }
  2429. m.ClientName = string(dAtA[iNdEx:postIndex])
  2430. iNdEx = postIndex
  2431. case 3:
  2432. if wireType != 2 {
  2433. return fmt.Errorf("proto: wrong wireType = %d for field ClientVersion", 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 < 0 {
  2456. return ErrInvalidLengthBep
  2457. }
  2458. if postIndex > l {
  2459. return io.ErrUnexpectedEOF
  2460. }
  2461. m.ClientVersion = string(dAtA[iNdEx:postIndex])
  2462. iNdEx = postIndex
  2463. default:
  2464. iNdEx = preIndex
  2465. skippy, err := skipBep(dAtA[iNdEx:])
  2466. if err != nil {
  2467. return err
  2468. }
  2469. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2470. return ErrInvalidLengthBep
  2471. }
  2472. if (iNdEx + skippy) > l {
  2473. return io.ErrUnexpectedEOF
  2474. }
  2475. iNdEx += skippy
  2476. }
  2477. }
  2478. if iNdEx > l {
  2479. return io.ErrUnexpectedEOF
  2480. }
  2481. return nil
  2482. }
  2483. func (m *Header) Unmarshal(dAtA []byte) error {
  2484. l := len(dAtA)
  2485. iNdEx := 0
  2486. for iNdEx < l {
  2487. preIndex := iNdEx
  2488. var wire uint64
  2489. for shift := uint(0); ; shift += 7 {
  2490. if shift >= 64 {
  2491. return ErrIntOverflowBep
  2492. }
  2493. if iNdEx >= l {
  2494. return io.ErrUnexpectedEOF
  2495. }
  2496. b := dAtA[iNdEx]
  2497. iNdEx++
  2498. wire |= uint64(b&0x7F) << shift
  2499. if b < 0x80 {
  2500. break
  2501. }
  2502. }
  2503. fieldNum := int32(wire >> 3)
  2504. wireType := int(wire & 0x7)
  2505. if wireType == 4 {
  2506. return fmt.Errorf("proto: Header: wiretype end group for non-group")
  2507. }
  2508. if fieldNum <= 0 {
  2509. return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  2510. }
  2511. switch fieldNum {
  2512. case 1:
  2513. if wireType != 0 {
  2514. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  2515. }
  2516. m.Type = 0
  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. m.Type |= MessageType(b&0x7F) << shift
  2527. if b < 0x80 {
  2528. break
  2529. }
  2530. }
  2531. case 2:
  2532. if wireType != 0 {
  2533. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  2534. }
  2535. m.Compression = 0
  2536. for shift := uint(0); ; shift += 7 {
  2537. if shift >= 64 {
  2538. return ErrIntOverflowBep
  2539. }
  2540. if iNdEx >= l {
  2541. return io.ErrUnexpectedEOF
  2542. }
  2543. b := dAtA[iNdEx]
  2544. iNdEx++
  2545. m.Compression |= MessageCompression(b&0x7F) << shift
  2546. if b < 0x80 {
  2547. break
  2548. }
  2549. }
  2550. default:
  2551. iNdEx = preIndex
  2552. skippy, err := skipBep(dAtA[iNdEx:])
  2553. if err != nil {
  2554. return err
  2555. }
  2556. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2557. return ErrInvalidLengthBep
  2558. }
  2559. if (iNdEx + skippy) > l {
  2560. return io.ErrUnexpectedEOF
  2561. }
  2562. iNdEx += skippy
  2563. }
  2564. }
  2565. if iNdEx > l {
  2566. return io.ErrUnexpectedEOF
  2567. }
  2568. return nil
  2569. }
  2570. func (m *ClusterConfig) Unmarshal(dAtA []byte) error {
  2571. l := len(dAtA)
  2572. iNdEx := 0
  2573. for iNdEx < l {
  2574. preIndex := iNdEx
  2575. var wire uint64
  2576. for shift := uint(0); ; shift += 7 {
  2577. if shift >= 64 {
  2578. return ErrIntOverflowBep
  2579. }
  2580. if iNdEx >= l {
  2581. return io.ErrUnexpectedEOF
  2582. }
  2583. b := dAtA[iNdEx]
  2584. iNdEx++
  2585. wire |= uint64(b&0x7F) << shift
  2586. if b < 0x80 {
  2587. break
  2588. }
  2589. }
  2590. fieldNum := int32(wire >> 3)
  2591. wireType := int(wire & 0x7)
  2592. if wireType == 4 {
  2593. return fmt.Errorf("proto: ClusterConfig: wiretype end group for non-group")
  2594. }
  2595. if fieldNum <= 0 {
  2596. return fmt.Errorf("proto: ClusterConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  2597. }
  2598. switch fieldNum {
  2599. case 1:
  2600. if wireType != 2 {
  2601. return fmt.Errorf("proto: wrong wireType = %d for field Folders", wireType)
  2602. }
  2603. var msglen int
  2604. for shift := uint(0); ; shift += 7 {
  2605. if shift >= 64 {
  2606. return ErrIntOverflowBep
  2607. }
  2608. if iNdEx >= l {
  2609. return io.ErrUnexpectedEOF
  2610. }
  2611. b := dAtA[iNdEx]
  2612. iNdEx++
  2613. msglen |= int(b&0x7F) << shift
  2614. if b < 0x80 {
  2615. break
  2616. }
  2617. }
  2618. if msglen < 0 {
  2619. return ErrInvalidLengthBep
  2620. }
  2621. postIndex := iNdEx + msglen
  2622. if postIndex < 0 {
  2623. return ErrInvalidLengthBep
  2624. }
  2625. if postIndex > l {
  2626. return io.ErrUnexpectedEOF
  2627. }
  2628. m.Folders = append(m.Folders, Folder{})
  2629. if err := m.Folders[len(m.Folders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2630. return err
  2631. }
  2632. iNdEx = postIndex
  2633. default:
  2634. iNdEx = preIndex
  2635. skippy, err := skipBep(dAtA[iNdEx:])
  2636. if err != nil {
  2637. return err
  2638. }
  2639. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2640. return ErrInvalidLengthBep
  2641. }
  2642. if (iNdEx + skippy) > l {
  2643. return io.ErrUnexpectedEOF
  2644. }
  2645. iNdEx += skippy
  2646. }
  2647. }
  2648. if iNdEx > l {
  2649. return io.ErrUnexpectedEOF
  2650. }
  2651. return nil
  2652. }
  2653. func (m *Folder) Unmarshal(dAtA []byte) error {
  2654. l := len(dAtA)
  2655. iNdEx := 0
  2656. for iNdEx < l {
  2657. preIndex := iNdEx
  2658. var wire uint64
  2659. for shift := uint(0); ; shift += 7 {
  2660. if shift >= 64 {
  2661. return ErrIntOverflowBep
  2662. }
  2663. if iNdEx >= l {
  2664. return io.ErrUnexpectedEOF
  2665. }
  2666. b := dAtA[iNdEx]
  2667. iNdEx++
  2668. wire |= uint64(b&0x7F) << shift
  2669. if b < 0x80 {
  2670. break
  2671. }
  2672. }
  2673. fieldNum := int32(wire >> 3)
  2674. wireType := int(wire & 0x7)
  2675. if wireType == 4 {
  2676. return fmt.Errorf("proto: Folder: wiretype end group for non-group")
  2677. }
  2678. if fieldNum <= 0 {
  2679. return fmt.Errorf("proto: Folder: illegal tag %d (wire type %d)", fieldNum, wire)
  2680. }
  2681. switch fieldNum {
  2682. case 1:
  2683. if wireType != 2 {
  2684. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2685. }
  2686. var stringLen uint64
  2687. for shift := uint(0); ; shift += 7 {
  2688. if shift >= 64 {
  2689. return ErrIntOverflowBep
  2690. }
  2691. if iNdEx >= l {
  2692. return io.ErrUnexpectedEOF
  2693. }
  2694. b := dAtA[iNdEx]
  2695. iNdEx++
  2696. stringLen |= uint64(b&0x7F) << shift
  2697. if b < 0x80 {
  2698. break
  2699. }
  2700. }
  2701. intStringLen := int(stringLen)
  2702. if intStringLen < 0 {
  2703. return ErrInvalidLengthBep
  2704. }
  2705. postIndex := iNdEx + intStringLen
  2706. if postIndex < 0 {
  2707. return ErrInvalidLengthBep
  2708. }
  2709. if postIndex > l {
  2710. return io.ErrUnexpectedEOF
  2711. }
  2712. m.ID = string(dAtA[iNdEx:postIndex])
  2713. iNdEx = postIndex
  2714. case 2:
  2715. if wireType != 2 {
  2716. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  2717. }
  2718. var stringLen uint64
  2719. for shift := uint(0); ; shift += 7 {
  2720. if shift >= 64 {
  2721. return ErrIntOverflowBep
  2722. }
  2723. if iNdEx >= l {
  2724. return io.ErrUnexpectedEOF
  2725. }
  2726. b := dAtA[iNdEx]
  2727. iNdEx++
  2728. stringLen |= uint64(b&0x7F) << shift
  2729. if b < 0x80 {
  2730. break
  2731. }
  2732. }
  2733. intStringLen := int(stringLen)
  2734. if intStringLen < 0 {
  2735. return ErrInvalidLengthBep
  2736. }
  2737. postIndex := iNdEx + intStringLen
  2738. if postIndex < 0 {
  2739. return ErrInvalidLengthBep
  2740. }
  2741. if postIndex > l {
  2742. return io.ErrUnexpectedEOF
  2743. }
  2744. m.Label = string(dAtA[iNdEx:postIndex])
  2745. iNdEx = postIndex
  2746. case 3:
  2747. if wireType != 0 {
  2748. return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
  2749. }
  2750. var v int
  2751. for shift := uint(0); ; shift += 7 {
  2752. if shift >= 64 {
  2753. return ErrIntOverflowBep
  2754. }
  2755. if iNdEx >= l {
  2756. return io.ErrUnexpectedEOF
  2757. }
  2758. b := dAtA[iNdEx]
  2759. iNdEx++
  2760. v |= int(b&0x7F) << shift
  2761. if b < 0x80 {
  2762. break
  2763. }
  2764. }
  2765. m.ReadOnly = bool(v != 0)
  2766. case 4:
  2767. if wireType != 0 {
  2768. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePermissions", wireType)
  2769. }
  2770. var v int
  2771. for shift := uint(0); ; shift += 7 {
  2772. if shift >= 64 {
  2773. return ErrIntOverflowBep
  2774. }
  2775. if iNdEx >= l {
  2776. return io.ErrUnexpectedEOF
  2777. }
  2778. b := dAtA[iNdEx]
  2779. iNdEx++
  2780. v |= int(b&0x7F) << shift
  2781. if b < 0x80 {
  2782. break
  2783. }
  2784. }
  2785. m.IgnorePermissions = bool(v != 0)
  2786. case 5:
  2787. if wireType != 0 {
  2788. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  2789. }
  2790. var v int
  2791. for shift := uint(0); ; shift += 7 {
  2792. if shift >= 64 {
  2793. return ErrIntOverflowBep
  2794. }
  2795. if iNdEx >= l {
  2796. return io.ErrUnexpectedEOF
  2797. }
  2798. b := dAtA[iNdEx]
  2799. iNdEx++
  2800. v |= int(b&0x7F) << shift
  2801. if b < 0x80 {
  2802. break
  2803. }
  2804. }
  2805. m.IgnoreDelete = bool(v != 0)
  2806. case 6:
  2807. if wireType != 0 {
  2808. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  2809. }
  2810. var v int
  2811. for shift := uint(0); ; shift += 7 {
  2812. if shift >= 64 {
  2813. return ErrIntOverflowBep
  2814. }
  2815. if iNdEx >= l {
  2816. return io.ErrUnexpectedEOF
  2817. }
  2818. b := dAtA[iNdEx]
  2819. iNdEx++
  2820. v |= int(b&0x7F) << shift
  2821. if b < 0x80 {
  2822. break
  2823. }
  2824. }
  2825. m.DisableTempIndexes = bool(v != 0)
  2826. case 7:
  2827. if wireType != 0 {
  2828. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  2829. }
  2830. var v int
  2831. for shift := uint(0); ; shift += 7 {
  2832. if shift >= 64 {
  2833. return ErrIntOverflowBep
  2834. }
  2835. if iNdEx >= l {
  2836. return io.ErrUnexpectedEOF
  2837. }
  2838. b := dAtA[iNdEx]
  2839. iNdEx++
  2840. v |= int(b&0x7F) << shift
  2841. if b < 0x80 {
  2842. break
  2843. }
  2844. }
  2845. m.Paused = bool(v != 0)
  2846. case 16:
  2847. if wireType != 2 {
  2848. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  2849. }
  2850. var msglen int
  2851. for shift := uint(0); ; shift += 7 {
  2852. if shift >= 64 {
  2853. return ErrIntOverflowBep
  2854. }
  2855. if iNdEx >= l {
  2856. return io.ErrUnexpectedEOF
  2857. }
  2858. b := dAtA[iNdEx]
  2859. iNdEx++
  2860. msglen |= int(b&0x7F) << shift
  2861. if b < 0x80 {
  2862. break
  2863. }
  2864. }
  2865. if msglen < 0 {
  2866. return ErrInvalidLengthBep
  2867. }
  2868. postIndex := iNdEx + msglen
  2869. if postIndex < 0 {
  2870. return ErrInvalidLengthBep
  2871. }
  2872. if postIndex > l {
  2873. return io.ErrUnexpectedEOF
  2874. }
  2875. m.Devices = append(m.Devices, Device{})
  2876. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2877. return err
  2878. }
  2879. iNdEx = postIndex
  2880. default:
  2881. iNdEx = preIndex
  2882. skippy, err := skipBep(dAtA[iNdEx:])
  2883. if err != nil {
  2884. return err
  2885. }
  2886. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2887. return ErrInvalidLengthBep
  2888. }
  2889. if (iNdEx + skippy) > l {
  2890. return io.ErrUnexpectedEOF
  2891. }
  2892. iNdEx += skippy
  2893. }
  2894. }
  2895. if iNdEx > l {
  2896. return io.ErrUnexpectedEOF
  2897. }
  2898. return nil
  2899. }
  2900. func (m *Device) Unmarshal(dAtA []byte) error {
  2901. l := len(dAtA)
  2902. iNdEx := 0
  2903. for iNdEx < l {
  2904. preIndex := iNdEx
  2905. var wire uint64
  2906. for shift := uint(0); ; shift += 7 {
  2907. if shift >= 64 {
  2908. return ErrIntOverflowBep
  2909. }
  2910. if iNdEx >= l {
  2911. return io.ErrUnexpectedEOF
  2912. }
  2913. b := dAtA[iNdEx]
  2914. iNdEx++
  2915. wire |= uint64(b&0x7F) << shift
  2916. if b < 0x80 {
  2917. break
  2918. }
  2919. }
  2920. fieldNum := int32(wire >> 3)
  2921. wireType := int(wire & 0x7)
  2922. if wireType == 4 {
  2923. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  2924. }
  2925. if fieldNum <= 0 {
  2926. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  2927. }
  2928. switch fieldNum {
  2929. case 1:
  2930. if wireType != 2 {
  2931. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  2932. }
  2933. var byteLen int
  2934. for shift := uint(0); ; shift += 7 {
  2935. if shift >= 64 {
  2936. return ErrIntOverflowBep
  2937. }
  2938. if iNdEx >= l {
  2939. return io.ErrUnexpectedEOF
  2940. }
  2941. b := dAtA[iNdEx]
  2942. iNdEx++
  2943. byteLen |= int(b&0x7F) << shift
  2944. if b < 0x80 {
  2945. break
  2946. }
  2947. }
  2948. if byteLen < 0 {
  2949. return ErrInvalidLengthBep
  2950. }
  2951. postIndex := iNdEx + byteLen
  2952. if postIndex < 0 {
  2953. return ErrInvalidLengthBep
  2954. }
  2955. if postIndex > l {
  2956. return io.ErrUnexpectedEOF
  2957. }
  2958. if err := m.ID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2959. return err
  2960. }
  2961. iNdEx = postIndex
  2962. case 2:
  2963. if wireType != 2 {
  2964. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  2965. }
  2966. var stringLen uint64
  2967. for shift := uint(0); ; shift += 7 {
  2968. if shift >= 64 {
  2969. return ErrIntOverflowBep
  2970. }
  2971. if iNdEx >= l {
  2972. return io.ErrUnexpectedEOF
  2973. }
  2974. b := dAtA[iNdEx]
  2975. iNdEx++
  2976. stringLen |= uint64(b&0x7F) << shift
  2977. if b < 0x80 {
  2978. break
  2979. }
  2980. }
  2981. intStringLen := int(stringLen)
  2982. if intStringLen < 0 {
  2983. return ErrInvalidLengthBep
  2984. }
  2985. postIndex := iNdEx + intStringLen
  2986. if postIndex < 0 {
  2987. return ErrInvalidLengthBep
  2988. }
  2989. if postIndex > l {
  2990. return io.ErrUnexpectedEOF
  2991. }
  2992. m.Name = string(dAtA[iNdEx:postIndex])
  2993. iNdEx = postIndex
  2994. case 3:
  2995. if wireType != 2 {
  2996. return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
  2997. }
  2998. var stringLen uint64
  2999. for shift := uint(0); ; shift += 7 {
  3000. if shift >= 64 {
  3001. return ErrIntOverflowBep
  3002. }
  3003. if iNdEx >= l {
  3004. return io.ErrUnexpectedEOF
  3005. }
  3006. b := dAtA[iNdEx]
  3007. iNdEx++
  3008. stringLen |= uint64(b&0x7F) << shift
  3009. if b < 0x80 {
  3010. break
  3011. }
  3012. }
  3013. intStringLen := int(stringLen)
  3014. if intStringLen < 0 {
  3015. return ErrInvalidLengthBep
  3016. }
  3017. postIndex := iNdEx + intStringLen
  3018. if postIndex < 0 {
  3019. return ErrInvalidLengthBep
  3020. }
  3021. if postIndex > l {
  3022. return io.ErrUnexpectedEOF
  3023. }
  3024. m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex]))
  3025. iNdEx = postIndex
  3026. case 4:
  3027. if wireType != 0 {
  3028. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  3029. }
  3030. m.Compression = 0
  3031. for shift := uint(0); ; shift += 7 {
  3032. if shift >= 64 {
  3033. return ErrIntOverflowBep
  3034. }
  3035. if iNdEx >= l {
  3036. return io.ErrUnexpectedEOF
  3037. }
  3038. b := dAtA[iNdEx]
  3039. iNdEx++
  3040. m.Compression |= Compression(b&0x7F) << shift
  3041. if b < 0x80 {
  3042. break
  3043. }
  3044. }
  3045. case 5:
  3046. if wireType != 2 {
  3047. return fmt.Errorf("proto: wrong wireType = %d for field CertName", wireType)
  3048. }
  3049. var stringLen uint64
  3050. for shift := uint(0); ; shift += 7 {
  3051. if shift >= 64 {
  3052. return ErrIntOverflowBep
  3053. }
  3054. if iNdEx >= l {
  3055. return io.ErrUnexpectedEOF
  3056. }
  3057. b := dAtA[iNdEx]
  3058. iNdEx++
  3059. stringLen |= uint64(b&0x7F) << shift
  3060. if b < 0x80 {
  3061. break
  3062. }
  3063. }
  3064. intStringLen := int(stringLen)
  3065. if intStringLen < 0 {
  3066. return ErrInvalidLengthBep
  3067. }
  3068. postIndex := iNdEx + intStringLen
  3069. if postIndex < 0 {
  3070. return ErrInvalidLengthBep
  3071. }
  3072. if postIndex > l {
  3073. return io.ErrUnexpectedEOF
  3074. }
  3075. m.CertName = string(dAtA[iNdEx:postIndex])
  3076. iNdEx = postIndex
  3077. case 6:
  3078. if wireType != 0 {
  3079. return fmt.Errorf("proto: wrong wireType = %d for field MaxSequence", wireType)
  3080. }
  3081. m.MaxSequence = 0
  3082. for shift := uint(0); ; shift += 7 {
  3083. if shift >= 64 {
  3084. return ErrIntOverflowBep
  3085. }
  3086. if iNdEx >= l {
  3087. return io.ErrUnexpectedEOF
  3088. }
  3089. b := dAtA[iNdEx]
  3090. iNdEx++
  3091. m.MaxSequence |= int64(b&0x7F) << shift
  3092. if b < 0x80 {
  3093. break
  3094. }
  3095. }
  3096. case 7:
  3097. if wireType != 0 {
  3098. return fmt.Errorf("proto: wrong wireType = %d for field Introducer", wireType)
  3099. }
  3100. var v int
  3101. for shift := uint(0); ; shift += 7 {
  3102. if shift >= 64 {
  3103. return ErrIntOverflowBep
  3104. }
  3105. if iNdEx >= l {
  3106. return io.ErrUnexpectedEOF
  3107. }
  3108. b := dAtA[iNdEx]
  3109. iNdEx++
  3110. v |= int(b&0x7F) << shift
  3111. if b < 0x80 {
  3112. break
  3113. }
  3114. }
  3115. m.Introducer = bool(v != 0)
  3116. case 8:
  3117. if wireType != 0 {
  3118. return fmt.Errorf("proto: wrong wireType = %d for field IndexID", wireType)
  3119. }
  3120. m.IndexID = 0
  3121. for shift := uint(0); ; shift += 7 {
  3122. if shift >= 64 {
  3123. return ErrIntOverflowBep
  3124. }
  3125. if iNdEx >= l {
  3126. return io.ErrUnexpectedEOF
  3127. }
  3128. b := dAtA[iNdEx]
  3129. iNdEx++
  3130. m.IndexID |= IndexID(b&0x7F) << shift
  3131. if b < 0x80 {
  3132. break
  3133. }
  3134. }
  3135. case 9:
  3136. if wireType != 0 {
  3137. return fmt.Errorf("proto: wrong wireType = %d for field SkipIntroductionRemovals", wireType)
  3138. }
  3139. var v int
  3140. for shift := uint(0); ; shift += 7 {
  3141. if shift >= 64 {
  3142. return ErrIntOverflowBep
  3143. }
  3144. if iNdEx >= l {
  3145. return io.ErrUnexpectedEOF
  3146. }
  3147. b := dAtA[iNdEx]
  3148. iNdEx++
  3149. v |= int(b&0x7F) << shift
  3150. if b < 0x80 {
  3151. break
  3152. }
  3153. }
  3154. m.SkipIntroductionRemovals = bool(v != 0)
  3155. case 10:
  3156. if wireType != 2 {
  3157. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionPasswordToken", wireType)
  3158. }
  3159. var byteLen int
  3160. for shift := uint(0); ; shift += 7 {
  3161. if shift >= 64 {
  3162. return ErrIntOverflowBep
  3163. }
  3164. if iNdEx >= l {
  3165. return io.ErrUnexpectedEOF
  3166. }
  3167. b := dAtA[iNdEx]
  3168. iNdEx++
  3169. byteLen |= int(b&0x7F) << shift
  3170. if b < 0x80 {
  3171. break
  3172. }
  3173. }
  3174. if byteLen < 0 {
  3175. return ErrInvalidLengthBep
  3176. }
  3177. postIndex := iNdEx + byteLen
  3178. if postIndex < 0 {
  3179. return ErrInvalidLengthBep
  3180. }
  3181. if postIndex > l {
  3182. return io.ErrUnexpectedEOF
  3183. }
  3184. m.EncryptionPasswordToken = append(m.EncryptionPasswordToken[:0], dAtA[iNdEx:postIndex]...)
  3185. if m.EncryptionPasswordToken == nil {
  3186. m.EncryptionPasswordToken = []byte{}
  3187. }
  3188. iNdEx = postIndex
  3189. default:
  3190. iNdEx = preIndex
  3191. skippy, err := skipBep(dAtA[iNdEx:])
  3192. if err != nil {
  3193. return err
  3194. }
  3195. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3196. return ErrInvalidLengthBep
  3197. }
  3198. if (iNdEx + skippy) > l {
  3199. return io.ErrUnexpectedEOF
  3200. }
  3201. iNdEx += skippy
  3202. }
  3203. }
  3204. if iNdEx > l {
  3205. return io.ErrUnexpectedEOF
  3206. }
  3207. return nil
  3208. }
  3209. func (m *Index) Unmarshal(dAtA []byte) error {
  3210. l := len(dAtA)
  3211. iNdEx := 0
  3212. for iNdEx < l {
  3213. preIndex := iNdEx
  3214. var wire uint64
  3215. for shift := uint(0); ; shift += 7 {
  3216. if shift >= 64 {
  3217. return ErrIntOverflowBep
  3218. }
  3219. if iNdEx >= l {
  3220. return io.ErrUnexpectedEOF
  3221. }
  3222. b := dAtA[iNdEx]
  3223. iNdEx++
  3224. wire |= uint64(b&0x7F) << shift
  3225. if b < 0x80 {
  3226. break
  3227. }
  3228. }
  3229. fieldNum := int32(wire >> 3)
  3230. wireType := int(wire & 0x7)
  3231. if wireType == 4 {
  3232. return fmt.Errorf("proto: Index: wiretype end group for non-group")
  3233. }
  3234. if fieldNum <= 0 {
  3235. return fmt.Errorf("proto: Index: illegal tag %d (wire type %d)", fieldNum, wire)
  3236. }
  3237. switch fieldNum {
  3238. case 1:
  3239. if wireType != 2 {
  3240. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  3241. }
  3242. var stringLen uint64
  3243. for shift := uint(0); ; shift += 7 {
  3244. if shift >= 64 {
  3245. return ErrIntOverflowBep
  3246. }
  3247. if iNdEx >= l {
  3248. return io.ErrUnexpectedEOF
  3249. }
  3250. b := dAtA[iNdEx]
  3251. iNdEx++
  3252. stringLen |= uint64(b&0x7F) << shift
  3253. if b < 0x80 {
  3254. break
  3255. }
  3256. }
  3257. intStringLen := int(stringLen)
  3258. if intStringLen < 0 {
  3259. return ErrInvalidLengthBep
  3260. }
  3261. postIndex := iNdEx + intStringLen
  3262. if postIndex < 0 {
  3263. return ErrInvalidLengthBep
  3264. }
  3265. if postIndex > l {
  3266. return io.ErrUnexpectedEOF
  3267. }
  3268. m.Folder = string(dAtA[iNdEx:postIndex])
  3269. iNdEx = postIndex
  3270. case 2:
  3271. if wireType != 2 {
  3272. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  3273. }
  3274. var msglen int
  3275. for shift := uint(0); ; shift += 7 {
  3276. if shift >= 64 {
  3277. return ErrIntOverflowBep
  3278. }
  3279. if iNdEx >= l {
  3280. return io.ErrUnexpectedEOF
  3281. }
  3282. b := dAtA[iNdEx]
  3283. iNdEx++
  3284. msglen |= int(b&0x7F) << shift
  3285. if b < 0x80 {
  3286. break
  3287. }
  3288. }
  3289. if msglen < 0 {
  3290. return ErrInvalidLengthBep
  3291. }
  3292. postIndex := iNdEx + msglen
  3293. if postIndex < 0 {
  3294. return ErrInvalidLengthBep
  3295. }
  3296. if postIndex > l {
  3297. return io.ErrUnexpectedEOF
  3298. }
  3299. m.Files = append(m.Files, FileInfo{})
  3300. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3301. return err
  3302. }
  3303. iNdEx = postIndex
  3304. default:
  3305. iNdEx = preIndex
  3306. skippy, err := skipBep(dAtA[iNdEx:])
  3307. if err != nil {
  3308. return err
  3309. }
  3310. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3311. return ErrInvalidLengthBep
  3312. }
  3313. if (iNdEx + skippy) > l {
  3314. return io.ErrUnexpectedEOF
  3315. }
  3316. iNdEx += skippy
  3317. }
  3318. }
  3319. if iNdEx > l {
  3320. return io.ErrUnexpectedEOF
  3321. }
  3322. return nil
  3323. }
  3324. func (m *IndexUpdate) Unmarshal(dAtA []byte) error {
  3325. l := len(dAtA)
  3326. iNdEx := 0
  3327. for iNdEx < l {
  3328. preIndex := iNdEx
  3329. var wire uint64
  3330. for shift := uint(0); ; shift += 7 {
  3331. if shift >= 64 {
  3332. return ErrIntOverflowBep
  3333. }
  3334. if iNdEx >= l {
  3335. return io.ErrUnexpectedEOF
  3336. }
  3337. b := dAtA[iNdEx]
  3338. iNdEx++
  3339. wire |= uint64(b&0x7F) << shift
  3340. if b < 0x80 {
  3341. break
  3342. }
  3343. }
  3344. fieldNum := int32(wire >> 3)
  3345. wireType := int(wire & 0x7)
  3346. if wireType == 4 {
  3347. return fmt.Errorf("proto: IndexUpdate: wiretype end group for non-group")
  3348. }
  3349. if fieldNum <= 0 {
  3350. return fmt.Errorf("proto: IndexUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  3351. }
  3352. switch fieldNum {
  3353. case 1:
  3354. if wireType != 2 {
  3355. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  3356. }
  3357. var stringLen uint64
  3358. for shift := uint(0); ; shift += 7 {
  3359. if shift >= 64 {
  3360. return ErrIntOverflowBep
  3361. }
  3362. if iNdEx >= l {
  3363. return io.ErrUnexpectedEOF
  3364. }
  3365. b := dAtA[iNdEx]
  3366. iNdEx++
  3367. stringLen |= uint64(b&0x7F) << shift
  3368. if b < 0x80 {
  3369. break
  3370. }
  3371. }
  3372. intStringLen := int(stringLen)
  3373. if intStringLen < 0 {
  3374. return ErrInvalidLengthBep
  3375. }
  3376. postIndex := iNdEx + intStringLen
  3377. if postIndex < 0 {
  3378. return ErrInvalidLengthBep
  3379. }
  3380. if postIndex > l {
  3381. return io.ErrUnexpectedEOF
  3382. }
  3383. m.Folder = string(dAtA[iNdEx:postIndex])
  3384. iNdEx = postIndex
  3385. case 2:
  3386. if wireType != 2 {
  3387. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  3388. }
  3389. var msglen int
  3390. for shift := uint(0); ; shift += 7 {
  3391. if shift >= 64 {
  3392. return ErrIntOverflowBep
  3393. }
  3394. if iNdEx >= l {
  3395. return io.ErrUnexpectedEOF
  3396. }
  3397. b := dAtA[iNdEx]
  3398. iNdEx++
  3399. msglen |= int(b&0x7F) << shift
  3400. if b < 0x80 {
  3401. break
  3402. }
  3403. }
  3404. if msglen < 0 {
  3405. return ErrInvalidLengthBep
  3406. }
  3407. postIndex := iNdEx + msglen
  3408. if postIndex < 0 {
  3409. return ErrInvalidLengthBep
  3410. }
  3411. if postIndex > l {
  3412. return io.ErrUnexpectedEOF
  3413. }
  3414. m.Files = append(m.Files, FileInfo{})
  3415. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3416. return err
  3417. }
  3418. iNdEx = postIndex
  3419. default:
  3420. iNdEx = preIndex
  3421. skippy, err := skipBep(dAtA[iNdEx:])
  3422. if err != nil {
  3423. return err
  3424. }
  3425. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3426. return ErrInvalidLengthBep
  3427. }
  3428. if (iNdEx + skippy) > l {
  3429. return io.ErrUnexpectedEOF
  3430. }
  3431. iNdEx += skippy
  3432. }
  3433. }
  3434. if iNdEx > l {
  3435. return io.ErrUnexpectedEOF
  3436. }
  3437. return nil
  3438. }
  3439. func (m *FileInfo) Unmarshal(dAtA []byte) error {
  3440. l := len(dAtA)
  3441. iNdEx := 0
  3442. for iNdEx < l {
  3443. preIndex := iNdEx
  3444. var wire uint64
  3445. for shift := uint(0); ; shift += 7 {
  3446. if shift >= 64 {
  3447. return ErrIntOverflowBep
  3448. }
  3449. if iNdEx >= l {
  3450. return io.ErrUnexpectedEOF
  3451. }
  3452. b := dAtA[iNdEx]
  3453. iNdEx++
  3454. wire |= uint64(b&0x7F) << shift
  3455. if b < 0x80 {
  3456. break
  3457. }
  3458. }
  3459. fieldNum := int32(wire >> 3)
  3460. wireType := int(wire & 0x7)
  3461. if wireType == 4 {
  3462. return fmt.Errorf("proto: FileInfo: wiretype end group for non-group")
  3463. }
  3464. if fieldNum <= 0 {
  3465. return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3466. }
  3467. switch fieldNum {
  3468. case 1:
  3469. if wireType != 2 {
  3470. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3471. }
  3472. var stringLen uint64
  3473. for shift := uint(0); ; shift += 7 {
  3474. if shift >= 64 {
  3475. return ErrIntOverflowBep
  3476. }
  3477. if iNdEx >= l {
  3478. return io.ErrUnexpectedEOF
  3479. }
  3480. b := dAtA[iNdEx]
  3481. iNdEx++
  3482. stringLen |= uint64(b&0x7F) << shift
  3483. if b < 0x80 {
  3484. break
  3485. }
  3486. }
  3487. intStringLen := int(stringLen)
  3488. if intStringLen < 0 {
  3489. return ErrInvalidLengthBep
  3490. }
  3491. postIndex := iNdEx + intStringLen
  3492. if postIndex < 0 {
  3493. return ErrInvalidLengthBep
  3494. }
  3495. if postIndex > l {
  3496. return io.ErrUnexpectedEOF
  3497. }
  3498. m.Name = string(dAtA[iNdEx:postIndex])
  3499. iNdEx = postIndex
  3500. case 2:
  3501. if wireType != 0 {
  3502. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3503. }
  3504. m.Type = 0
  3505. for shift := uint(0); ; shift += 7 {
  3506. if shift >= 64 {
  3507. return ErrIntOverflowBep
  3508. }
  3509. if iNdEx >= l {
  3510. return io.ErrUnexpectedEOF
  3511. }
  3512. b := dAtA[iNdEx]
  3513. iNdEx++
  3514. m.Type |= FileInfoType(b&0x7F) << shift
  3515. if b < 0x80 {
  3516. break
  3517. }
  3518. }
  3519. case 3:
  3520. if wireType != 0 {
  3521. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  3522. }
  3523. m.Size = 0
  3524. for shift := uint(0); ; shift += 7 {
  3525. if shift >= 64 {
  3526. return ErrIntOverflowBep
  3527. }
  3528. if iNdEx >= l {
  3529. return io.ErrUnexpectedEOF
  3530. }
  3531. b := dAtA[iNdEx]
  3532. iNdEx++
  3533. m.Size |= int64(b&0x7F) << shift
  3534. if b < 0x80 {
  3535. break
  3536. }
  3537. }
  3538. case 4:
  3539. if wireType != 0 {
  3540. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  3541. }
  3542. m.Permissions = 0
  3543. for shift := uint(0); ; shift += 7 {
  3544. if shift >= 64 {
  3545. return ErrIntOverflowBep
  3546. }
  3547. if iNdEx >= l {
  3548. return io.ErrUnexpectedEOF
  3549. }
  3550. b := dAtA[iNdEx]
  3551. iNdEx++
  3552. m.Permissions |= uint32(b&0x7F) << shift
  3553. if b < 0x80 {
  3554. break
  3555. }
  3556. }
  3557. case 5:
  3558. if wireType != 0 {
  3559. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedS", wireType)
  3560. }
  3561. m.ModifiedS = 0
  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. m.ModifiedS |= int64(b&0x7F) << shift
  3572. if b < 0x80 {
  3573. break
  3574. }
  3575. }
  3576. case 6:
  3577. if wireType != 0 {
  3578. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  3579. }
  3580. var v int
  3581. for shift := uint(0); ; shift += 7 {
  3582. if shift >= 64 {
  3583. return ErrIntOverflowBep
  3584. }
  3585. if iNdEx >= l {
  3586. return io.ErrUnexpectedEOF
  3587. }
  3588. b := dAtA[iNdEx]
  3589. iNdEx++
  3590. v |= int(b&0x7F) << shift
  3591. if b < 0x80 {
  3592. break
  3593. }
  3594. }
  3595. m.Deleted = bool(v != 0)
  3596. case 7:
  3597. if wireType != 0 {
  3598. return fmt.Errorf("proto: wrong wireType = %d for field RawInvalid", wireType)
  3599. }
  3600. var v int
  3601. for shift := uint(0); ; shift += 7 {
  3602. if shift >= 64 {
  3603. return ErrIntOverflowBep
  3604. }
  3605. if iNdEx >= l {
  3606. return io.ErrUnexpectedEOF
  3607. }
  3608. b := dAtA[iNdEx]
  3609. iNdEx++
  3610. v |= int(b&0x7F) << shift
  3611. if b < 0x80 {
  3612. break
  3613. }
  3614. }
  3615. m.RawInvalid = bool(v != 0)
  3616. case 8:
  3617. if wireType != 0 {
  3618. return fmt.Errorf("proto: wrong wireType = %d for field NoPermissions", wireType)
  3619. }
  3620. var v int
  3621. for shift := uint(0); ; shift += 7 {
  3622. if shift >= 64 {
  3623. return ErrIntOverflowBep
  3624. }
  3625. if iNdEx >= l {
  3626. return io.ErrUnexpectedEOF
  3627. }
  3628. b := dAtA[iNdEx]
  3629. iNdEx++
  3630. v |= int(b&0x7F) << shift
  3631. if b < 0x80 {
  3632. break
  3633. }
  3634. }
  3635. m.NoPermissions = bool(v != 0)
  3636. case 9:
  3637. if wireType != 2 {
  3638. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  3639. }
  3640. var msglen int
  3641. for shift := uint(0); ; shift += 7 {
  3642. if shift >= 64 {
  3643. return ErrIntOverflowBep
  3644. }
  3645. if iNdEx >= l {
  3646. return io.ErrUnexpectedEOF
  3647. }
  3648. b := dAtA[iNdEx]
  3649. iNdEx++
  3650. msglen |= int(b&0x7F) << shift
  3651. if b < 0x80 {
  3652. break
  3653. }
  3654. }
  3655. if msglen < 0 {
  3656. return ErrInvalidLengthBep
  3657. }
  3658. postIndex := iNdEx + msglen
  3659. if postIndex < 0 {
  3660. return ErrInvalidLengthBep
  3661. }
  3662. if postIndex > l {
  3663. return io.ErrUnexpectedEOF
  3664. }
  3665. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3666. return err
  3667. }
  3668. iNdEx = postIndex
  3669. case 10:
  3670. if wireType != 0 {
  3671. return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  3672. }
  3673. m.Sequence = 0
  3674. for shift := uint(0); ; shift += 7 {
  3675. if shift >= 64 {
  3676. return ErrIntOverflowBep
  3677. }
  3678. if iNdEx >= l {
  3679. return io.ErrUnexpectedEOF
  3680. }
  3681. b := dAtA[iNdEx]
  3682. iNdEx++
  3683. m.Sequence |= int64(b&0x7F) << shift
  3684. if b < 0x80 {
  3685. break
  3686. }
  3687. }
  3688. case 11:
  3689. if wireType != 0 {
  3690. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedNs", wireType)
  3691. }
  3692. m.ModifiedNs = 0
  3693. for shift := uint(0); ; shift += 7 {
  3694. if shift >= 64 {
  3695. return ErrIntOverflowBep
  3696. }
  3697. if iNdEx >= l {
  3698. return io.ErrUnexpectedEOF
  3699. }
  3700. b := dAtA[iNdEx]
  3701. iNdEx++
  3702. m.ModifiedNs |= int(b&0x7F) << shift
  3703. if b < 0x80 {
  3704. break
  3705. }
  3706. }
  3707. case 12:
  3708. if wireType != 0 {
  3709. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedBy", wireType)
  3710. }
  3711. m.ModifiedBy = 0
  3712. for shift := uint(0); ; shift += 7 {
  3713. if shift >= 64 {
  3714. return ErrIntOverflowBep
  3715. }
  3716. if iNdEx >= l {
  3717. return io.ErrUnexpectedEOF
  3718. }
  3719. b := dAtA[iNdEx]
  3720. iNdEx++
  3721. m.ModifiedBy |= ShortID(b&0x7F) << shift
  3722. if b < 0x80 {
  3723. break
  3724. }
  3725. }
  3726. case 13:
  3727. if wireType != 0 {
  3728. return fmt.Errorf("proto: wrong wireType = %d for field RawBlockSize", wireType)
  3729. }
  3730. m.RawBlockSize = 0
  3731. for shift := uint(0); ; shift += 7 {
  3732. if shift >= 64 {
  3733. return ErrIntOverflowBep
  3734. }
  3735. if iNdEx >= l {
  3736. return io.ErrUnexpectedEOF
  3737. }
  3738. b := dAtA[iNdEx]
  3739. iNdEx++
  3740. m.RawBlockSize |= int(b&0x7F) << shift
  3741. if b < 0x80 {
  3742. break
  3743. }
  3744. }
  3745. case 16:
  3746. if wireType != 2 {
  3747. return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType)
  3748. }
  3749. var msglen int
  3750. for shift := uint(0); ; shift += 7 {
  3751. if shift >= 64 {
  3752. return ErrIntOverflowBep
  3753. }
  3754. if iNdEx >= l {
  3755. return io.ErrUnexpectedEOF
  3756. }
  3757. b := dAtA[iNdEx]
  3758. iNdEx++
  3759. msglen |= int(b&0x7F) << shift
  3760. if b < 0x80 {
  3761. break
  3762. }
  3763. }
  3764. if msglen < 0 {
  3765. return ErrInvalidLengthBep
  3766. }
  3767. postIndex := iNdEx + msglen
  3768. if postIndex < 0 {
  3769. return ErrInvalidLengthBep
  3770. }
  3771. if postIndex > l {
  3772. return io.ErrUnexpectedEOF
  3773. }
  3774. m.Blocks = append(m.Blocks, BlockInfo{})
  3775. if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3776. return err
  3777. }
  3778. iNdEx = postIndex
  3779. case 17:
  3780. if wireType != 2 {
  3781. return fmt.Errorf("proto: wrong wireType = %d for field SymlinkTarget", wireType)
  3782. }
  3783. var stringLen uint64
  3784. for shift := uint(0); ; shift += 7 {
  3785. if shift >= 64 {
  3786. return ErrIntOverflowBep
  3787. }
  3788. if iNdEx >= l {
  3789. return io.ErrUnexpectedEOF
  3790. }
  3791. b := dAtA[iNdEx]
  3792. iNdEx++
  3793. stringLen |= uint64(b&0x7F) << shift
  3794. if b < 0x80 {
  3795. break
  3796. }
  3797. }
  3798. intStringLen := int(stringLen)
  3799. if intStringLen < 0 {
  3800. return ErrInvalidLengthBep
  3801. }
  3802. postIndex := iNdEx + intStringLen
  3803. if postIndex < 0 {
  3804. return ErrInvalidLengthBep
  3805. }
  3806. if postIndex > l {
  3807. return io.ErrUnexpectedEOF
  3808. }
  3809. m.SymlinkTarget = string(dAtA[iNdEx:postIndex])
  3810. iNdEx = postIndex
  3811. case 18:
  3812. if wireType != 2 {
  3813. return fmt.Errorf("proto: wrong wireType = %d for field BlocksHash", wireType)
  3814. }
  3815. var byteLen int
  3816. for shift := uint(0); ; shift += 7 {
  3817. if shift >= 64 {
  3818. return ErrIntOverflowBep
  3819. }
  3820. if iNdEx >= l {
  3821. return io.ErrUnexpectedEOF
  3822. }
  3823. b := dAtA[iNdEx]
  3824. iNdEx++
  3825. byteLen |= int(b&0x7F) << shift
  3826. if b < 0x80 {
  3827. break
  3828. }
  3829. }
  3830. if byteLen < 0 {
  3831. return ErrInvalidLengthBep
  3832. }
  3833. postIndex := iNdEx + byteLen
  3834. if postIndex < 0 {
  3835. return ErrInvalidLengthBep
  3836. }
  3837. if postIndex > l {
  3838. return io.ErrUnexpectedEOF
  3839. }
  3840. m.BlocksHash = append(m.BlocksHash[:0], dAtA[iNdEx:postIndex]...)
  3841. if m.BlocksHash == nil {
  3842. m.BlocksHash = []byte{}
  3843. }
  3844. iNdEx = postIndex
  3845. case 19:
  3846. if wireType != 2 {
  3847. return fmt.Errorf("proto: wrong wireType = %d for field Encrypted", wireType)
  3848. }
  3849. var byteLen int
  3850. for shift := uint(0); ; shift += 7 {
  3851. if shift >= 64 {
  3852. return ErrIntOverflowBep
  3853. }
  3854. if iNdEx >= l {
  3855. return io.ErrUnexpectedEOF
  3856. }
  3857. b := dAtA[iNdEx]
  3858. iNdEx++
  3859. byteLen |= int(b&0x7F) << shift
  3860. if b < 0x80 {
  3861. break
  3862. }
  3863. }
  3864. if byteLen < 0 {
  3865. return ErrInvalidLengthBep
  3866. }
  3867. postIndex := iNdEx + byteLen
  3868. if postIndex < 0 {
  3869. return ErrInvalidLengthBep
  3870. }
  3871. if postIndex > l {
  3872. return io.ErrUnexpectedEOF
  3873. }
  3874. m.Encrypted = append(m.Encrypted[:0], dAtA[iNdEx:postIndex]...)
  3875. if m.Encrypted == nil {
  3876. m.Encrypted = []byte{}
  3877. }
  3878. iNdEx = postIndex
  3879. case 1000:
  3880. if wireType != 0 {
  3881. return fmt.Errorf("proto: wrong wireType = %d for field LocalFlags", wireType)
  3882. }
  3883. m.LocalFlags = 0
  3884. for shift := uint(0); ; shift += 7 {
  3885. if shift >= 64 {
  3886. return ErrIntOverflowBep
  3887. }
  3888. if iNdEx >= l {
  3889. return io.ErrUnexpectedEOF
  3890. }
  3891. b := dAtA[iNdEx]
  3892. iNdEx++
  3893. m.LocalFlags |= uint32(b&0x7F) << shift
  3894. if b < 0x80 {
  3895. break
  3896. }
  3897. }
  3898. case 1001:
  3899. if wireType != 2 {
  3900. return fmt.Errorf("proto: wrong wireType = %d for field VersionHash", wireType)
  3901. }
  3902. var byteLen int
  3903. for shift := uint(0); ; shift += 7 {
  3904. if shift >= 64 {
  3905. return ErrIntOverflowBep
  3906. }
  3907. if iNdEx >= l {
  3908. return io.ErrUnexpectedEOF
  3909. }
  3910. b := dAtA[iNdEx]
  3911. iNdEx++
  3912. byteLen |= int(b&0x7F) << shift
  3913. if b < 0x80 {
  3914. break
  3915. }
  3916. }
  3917. if byteLen < 0 {
  3918. return ErrInvalidLengthBep
  3919. }
  3920. postIndex := iNdEx + byteLen
  3921. if postIndex < 0 {
  3922. return ErrInvalidLengthBep
  3923. }
  3924. if postIndex > l {
  3925. return io.ErrUnexpectedEOF
  3926. }
  3927. m.VersionHash = append(m.VersionHash[:0], dAtA[iNdEx:postIndex]...)
  3928. if m.VersionHash == nil {
  3929. m.VersionHash = []byte{}
  3930. }
  3931. iNdEx = postIndex
  3932. default:
  3933. iNdEx = preIndex
  3934. skippy, err := skipBep(dAtA[iNdEx:])
  3935. if err != nil {
  3936. return err
  3937. }
  3938. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3939. return ErrInvalidLengthBep
  3940. }
  3941. if (iNdEx + skippy) > l {
  3942. return io.ErrUnexpectedEOF
  3943. }
  3944. iNdEx += skippy
  3945. }
  3946. }
  3947. if iNdEx > l {
  3948. return io.ErrUnexpectedEOF
  3949. }
  3950. return nil
  3951. }
  3952. func (m *BlockInfo) Unmarshal(dAtA []byte) error {
  3953. l := len(dAtA)
  3954. iNdEx := 0
  3955. for iNdEx < l {
  3956. preIndex := iNdEx
  3957. var wire uint64
  3958. for shift := uint(0); ; shift += 7 {
  3959. if shift >= 64 {
  3960. return ErrIntOverflowBep
  3961. }
  3962. if iNdEx >= l {
  3963. return io.ErrUnexpectedEOF
  3964. }
  3965. b := dAtA[iNdEx]
  3966. iNdEx++
  3967. wire |= uint64(b&0x7F) << shift
  3968. if b < 0x80 {
  3969. break
  3970. }
  3971. }
  3972. fieldNum := int32(wire >> 3)
  3973. wireType := int(wire & 0x7)
  3974. if wireType == 4 {
  3975. return fmt.Errorf("proto: BlockInfo: wiretype end group for non-group")
  3976. }
  3977. if fieldNum <= 0 {
  3978. return fmt.Errorf("proto: BlockInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  3979. }
  3980. switch fieldNum {
  3981. case 1:
  3982. if wireType != 0 {
  3983. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  3984. }
  3985. m.Offset = 0
  3986. for shift := uint(0); ; shift += 7 {
  3987. if shift >= 64 {
  3988. return ErrIntOverflowBep
  3989. }
  3990. if iNdEx >= l {
  3991. return io.ErrUnexpectedEOF
  3992. }
  3993. b := dAtA[iNdEx]
  3994. iNdEx++
  3995. m.Offset |= int64(b&0x7F) << shift
  3996. if b < 0x80 {
  3997. break
  3998. }
  3999. }
  4000. case 2:
  4001. if wireType != 0 {
  4002. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  4003. }
  4004. m.Size = 0
  4005. for shift := uint(0); ; shift += 7 {
  4006. if shift >= 64 {
  4007. return ErrIntOverflowBep
  4008. }
  4009. if iNdEx >= l {
  4010. return io.ErrUnexpectedEOF
  4011. }
  4012. b := dAtA[iNdEx]
  4013. iNdEx++
  4014. m.Size |= int(b&0x7F) << shift
  4015. if b < 0x80 {
  4016. break
  4017. }
  4018. }
  4019. case 3:
  4020. if wireType != 2 {
  4021. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  4022. }
  4023. var byteLen int
  4024. for shift := uint(0); ; shift += 7 {
  4025. if shift >= 64 {
  4026. return ErrIntOverflowBep
  4027. }
  4028. if iNdEx >= l {
  4029. return io.ErrUnexpectedEOF
  4030. }
  4031. b := dAtA[iNdEx]
  4032. iNdEx++
  4033. byteLen |= int(b&0x7F) << shift
  4034. if b < 0x80 {
  4035. break
  4036. }
  4037. }
  4038. if byteLen < 0 {
  4039. return ErrInvalidLengthBep
  4040. }
  4041. postIndex := iNdEx + byteLen
  4042. if postIndex < 0 {
  4043. return ErrInvalidLengthBep
  4044. }
  4045. if postIndex > l {
  4046. return io.ErrUnexpectedEOF
  4047. }
  4048. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  4049. if m.Hash == nil {
  4050. m.Hash = []byte{}
  4051. }
  4052. iNdEx = postIndex
  4053. case 4:
  4054. if wireType != 0 {
  4055. return fmt.Errorf("proto: wrong wireType = %d for field WeakHash", wireType)
  4056. }
  4057. m.WeakHash = 0
  4058. for shift := uint(0); ; shift += 7 {
  4059. if shift >= 64 {
  4060. return ErrIntOverflowBep
  4061. }
  4062. if iNdEx >= l {
  4063. return io.ErrUnexpectedEOF
  4064. }
  4065. b := dAtA[iNdEx]
  4066. iNdEx++
  4067. m.WeakHash |= uint32(b&0x7F) << shift
  4068. if b < 0x80 {
  4069. break
  4070. }
  4071. }
  4072. default:
  4073. iNdEx = preIndex
  4074. skippy, err := skipBep(dAtA[iNdEx:])
  4075. if err != nil {
  4076. return err
  4077. }
  4078. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4079. return ErrInvalidLengthBep
  4080. }
  4081. if (iNdEx + skippy) > l {
  4082. return io.ErrUnexpectedEOF
  4083. }
  4084. iNdEx += skippy
  4085. }
  4086. }
  4087. if iNdEx > l {
  4088. return io.ErrUnexpectedEOF
  4089. }
  4090. return nil
  4091. }
  4092. func (m *Vector) Unmarshal(dAtA []byte) error {
  4093. l := len(dAtA)
  4094. iNdEx := 0
  4095. for iNdEx < l {
  4096. preIndex := iNdEx
  4097. var wire uint64
  4098. for shift := uint(0); ; shift += 7 {
  4099. if shift >= 64 {
  4100. return ErrIntOverflowBep
  4101. }
  4102. if iNdEx >= l {
  4103. return io.ErrUnexpectedEOF
  4104. }
  4105. b := dAtA[iNdEx]
  4106. iNdEx++
  4107. wire |= uint64(b&0x7F) << shift
  4108. if b < 0x80 {
  4109. break
  4110. }
  4111. }
  4112. fieldNum := int32(wire >> 3)
  4113. wireType := int(wire & 0x7)
  4114. if wireType == 4 {
  4115. return fmt.Errorf("proto: Vector: wiretype end group for non-group")
  4116. }
  4117. if fieldNum <= 0 {
  4118. return fmt.Errorf("proto: Vector: illegal tag %d (wire type %d)", fieldNum, wire)
  4119. }
  4120. switch fieldNum {
  4121. case 1:
  4122. if wireType != 2 {
  4123. return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType)
  4124. }
  4125. var msglen int
  4126. for shift := uint(0); ; shift += 7 {
  4127. if shift >= 64 {
  4128. return ErrIntOverflowBep
  4129. }
  4130. if iNdEx >= l {
  4131. return io.ErrUnexpectedEOF
  4132. }
  4133. b := dAtA[iNdEx]
  4134. iNdEx++
  4135. msglen |= int(b&0x7F) << shift
  4136. if b < 0x80 {
  4137. break
  4138. }
  4139. }
  4140. if msglen < 0 {
  4141. return ErrInvalidLengthBep
  4142. }
  4143. postIndex := iNdEx + msglen
  4144. if postIndex < 0 {
  4145. return ErrInvalidLengthBep
  4146. }
  4147. if postIndex > l {
  4148. return io.ErrUnexpectedEOF
  4149. }
  4150. m.Counters = append(m.Counters, Counter{})
  4151. if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4152. return err
  4153. }
  4154. iNdEx = postIndex
  4155. default:
  4156. iNdEx = preIndex
  4157. skippy, err := skipBep(dAtA[iNdEx:])
  4158. if err != nil {
  4159. return err
  4160. }
  4161. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4162. return ErrInvalidLengthBep
  4163. }
  4164. if (iNdEx + skippy) > l {
  4165. return io.ErrUnexpectedEOF
  4166. }
  4167. iNdEx += skippy
  4168. }
  4169. }
  4170. if iNdEx > l {
  4171. return io.ErrUnexpectedEOF
  4172. }
  4173. return nil
  4174. }
  4175. func (m *Counter) Unmarshal(dAtA []byte) error {
  4176. l := len(dAtA)
  4177. iNdEx := 0
  4178. for iNdEx < l {
  4179. preIndex := iNdEx
  4180. var wire uint64
  4181. for shift := uint(0); ; shift += 7 {
  4182. if shift >= 64 {
  4183. return ErrIntOverflowBep
  4184. }
  4185. if iNdEx >= l {
  4186. return io.ErrUnexpectedEOF
  4187. }
  4188. b := dAtA[iNdEx]
  4189. iNdEx++
  4190. wire |= uint64(b&0x7F) << shift
  4191. if b < 0x80 {
  4192. break
  4193. }
  4194. }
  4195. fieldNum := int32(wire >> 3)
  4196. wireType := int(wire & 0x7)
  4197. if wireType == 4 {
  4198. return fmt.Errorf("proto: Counter: wiretype end group for non-group")
  4199. }
  4200. if fieldNum <= 0 {
  4201. return fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire)
  4202. }
  4203. switch fieldNum {
  4204. case 1:
  4205. if wireType != 0 {
  4206. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4207. }
  4208. m.ID = 0
  4209. for shift := uint(0); ; shift += 7 {
  4210. if shift >= 64 {
  4211. return ErrIntOverflowBep
  4212. }
  4213. if iNdEx >= l {
  4214. return io.ErrUnexpectedEOF
  4215. }
  4216. b := dAtA[iNdEx]
  4217. iNdEx++
  4218. m.ID |= ShortID(b&0x7F) << shift
  4219. if b < 0x80 {
  4220. break
  4221. }
  4222. }
  4223. case 2:
  4224. if wireType != 0 {
  4225. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  4226. }
  4227. m.Value = 0
  4228. for shift := uint(0); ; shift += 7 {
  4229. if shift >= 64 {
  4230. return ErrIntOverflowBep
  4231. }
  4232. if iNdEx >= l {
  4233. return io.ErrUnexpectedEOF
  4234. }
  4235. b := dAtA[iNdEx]
  4236. iNdEx++
  4237. m.Value |= uint64(b&0x7F) << shift
  4238. if b < 0x80 {
  4239. break
  4240. }
  4241. }
  4242. default:
  4243. iNdEx = preIndex
  4244. skippy, err := skipBep(dAtA[iNdEx:])
  4245. if err != nil {
  4246. return err
  4247. }
  4248. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4249. return ErrInvalidLengthBep
  4250. }
  4251. if (iNdEx + skippy) > l {
  4252. return io.ErrUnexpectedEOF
  4253. }
  4254. iNdEx += skippy
  4255. }
  4256. }
  4257. if iNdEx > l {
  4258. return io.ErrUnexpectedEOF
  4259. }
  4260. return nil
  4261. }
  4262. func (m *Request) Unmarshal(dAtA []byte) error {
  4263. l := len(dAtA)
  4264. iNdEx := 0
  4265. for iNdEx < l {
  4266. preIndex := iNdEx
  4267. var wire uint64
  4268. for shift := uint(0); ; shift += 7 {
  4269. if shift >= 64 {
  4270. return ErrIntOverflowBep
  4271. }
  4272. if iNdEx >= l {
  4273. return io.ErrUnexpectedEOF
  4274. }
  4275. b := dAtA[iNdEx]
  4276. iNdEx++
  4277. wire |= uint64(b&0x7F) << shift
  4278. if b < 0x80 {
  4279. break
  4280. }
  4281. }
  4282. fieldNum := int32(wire >> 3)
  4283. wireType := int(wire & 0x7)
  4284. if wireType == 4 {
  4285. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  4286. }
  4287. if fieldNum <= 0 {
  4288. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  4289. }
  4290. switch fieldNum {
  4291. case 1:
  4292. if wireType != 0 {
  4293. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4294. }
  4295. m.ID = 0
  4296. for shift := uint(0); ; shift += 7 {
  4297. if shift >= 64 {
  4298. return ErrIntOverflowBep
  4299. }
  4300. if iNdEx >= l {
  4301. return io.ErrUnexpectedEOF
  4302. }
  4303. b := dAtA[iNdEx]
  4304. iNdEx++
  4305. m.ID |= int(b&0x7F) << shift
  4306. if b < 0x80 {
  4307. break
  4308. }
  4309. }
  4310. case 2:
  4311. if wireType != 2 {
  4312. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  4313. }
  4314. var stringLen uint64
  4315. for shift := uint(0); ; shift += 7 {
  4316. if shift >= 64 {
  4317. return ErrIntOverflowBep
  4318. }
  4319. if iNdEx >= l {
  4320. return io.ErrUnexpectedEOF
  4321. }
  4322. b := dAtA[iNdEx]
  4323. iNdEx++
  4324. stringLen |= uint64(b&0x7F) << shift
  4325. if b < 0x80 {
  4326. break
  4327. }
  4328. }
  4329. intStringLen := int(stringLen)
  4330. if intStringLen < 0 {
  4331. return ErrInvalidLengthBep
  4332. }
  4333. postIndex := iNdEx + intStringLen
  4334. if postIndex < 0 {
  4335. return ErrInvalidLengthBep
  4336. }
  4337. if postIndex > l {
  4338. return io.ErrUnexpectedEOF
  4339. }
  4340. m.Folder = string(dAtA[iNdEx:postIndex])
  4341. iNdEx = postIndex
  4342. case 3:
  4343. if wireType != 2 {
  4344. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4345. }
  4346. var stringLen uint64
  4347. for shift := uint(0); ; shift += 7 {
  4348. if shift >= 64 {
  4349. return ErrIntOverflowBep
  4350. }
  4351. if iNdEx >= l {
  4352. return io.ErrUnexpectedEOF
  4353. }
  4354. b := dAtA[iNdEx]
  4355. iNdEx++
  4356. stringLen |= uint64(b&0x7F) << shift
  4357. if b < 0x80 {
  4358. break
  4359. }
  4360. }
  4361. intStringLen := int(stringLen)
  4362. if intStringLen < 0 {
  4363. return ErrInvalidLengthBep
  4364. }
  4365. postIndex := iNdEx + intStringLen
  4366. if postIndex < 0 {
  4367. return ErrInvalidLengthBep
  4368. }
  4369. if postIndex > l {
  4370. return io.ErrUnexpectedEOF
  4371. }
  4372. m.Name = string(dAtA[iNdEx:postIndex])
  4373. iNdEx = postIndex
  4374. case 4:
  4375. if wireType != 0 {
  4376. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4377. }
  4378. m.Offset = 0
  4379. for shift := uint(0); ; shift += 7 {
  4380. if shift >= 64 {
  4381. return ErrIntOverflowBep
  4382. }
  4383. if iNdEx >= l {
  4384. return io.ErrUnexpectedEOF
  4385. }
  4386. b := dAtA[iNdEx]
  4387. iNdEx++
  4388. m.Offset |= int64(b&0x7F) << shift
  4389. if b < 0x80 {
  4390. break
  4391. }
  4392. }
  4393. case 5:
  4394. if wireType != 0 {
  4395. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  4396. }
  4397. m.Size = 0
  4398. for shift := uint(0); ; shift += 7 {
  4399. if shift >= 64 {
  4400. return ErrIntOverflowBep
  4401. }
  4402. if iNdEx >= l {
  4403. return io.ErrUnexpectedEOF
  4404. }
  4405. b := dAtA[iNdEx]
  4406. iNdEx++
  4407. m.Size |= int(b&0x7F) << shift
  4408. if b < 0x80 {
  4409. break
  4410. }
  4411. }
  4412. case 6:
  4413. if wireType != 2 {
  4414. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  4415. }
  4416. var byteLen int
  4417. for shift := uint(0); ; shift += 7 {
  4418. if shift >= 64 {
  4419. return ErrIntOverflowBep
  4420. }
  4421. if iNdEx >= l {
  4422. return io.ErrUnexpectedEOF
  4423. }
  4424. b := dAtA[iNdEx]
  4425. iNdEx++
  4426. byteLen |= int(b&0x7F) << shift
  4427. if b < 0x80 {
  4428. break
  4429. }
  4430. }
  4431. if byteLen < 0 {
  4432. return ErrInvalidLengthBep
  4433. }
  4434. postIndex := iNdEx + byteLen
  4435. if postIndex < 0 {
  4436. return ErrInvalidLengthBep
  4437. }
  4438. if postIndex > l {
  4439. return io.ErrUnexpectedEOF
  4440. }
  4441. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  4442. if m.Hash == nil {
  4443. m.Hash = []byte{}
  4444. }
  4445. iNdEx = postIndex
  4446. case 7:
  4447. if wireType != 0 {
  4448. return fmt.Errorf("proto: wrong wireType = %d for field FromTemporary", wireType)
  4449. }
  4450. var v int
  4451. for shift := uint(0); ; shift += 7 {
  4452. if shift >= 64 {
  4453. return ErrIntOverflowBep
  4454. }
  4455. if iNdEx >= l {
  4456. return io.ErrUnexpectedEOF
  4457. }
  4458. b := dAtA[iNdEx]
  4459. iNdEx++
  4460. v |= int(b&0x7F) << shift
  4461. if b < 0x80 {
  4462. break
  4463. }
  4464. }
  4465. m.FromTemporary = bool(v != 0)
  4466. case 8:
  4467. if wireType != 0 {
  4468. return fmt.Errorf("proto: wrong wireType = %d for field WeakHash", wireType)
  4469. }
  4470. m.WeakHash = 0
  4471. for shift := uint(0); ; shift += 7 {
  4472. if shift >= 64 {
  4473. return ErrIntOverflowBep
  4474. }
  4475. if iNdEx >= l {
  4476. return io.ErrUnexpectedEOF
  4477. }
  4478. b := dAtA[iNdEx]
  4479. iNdEx++
  4480. m.WeakHash |= uint32(b&0x7F) << shift
  4481. if b < 0x80 {
  4482. break
  4483. }
  4484. }
  4485. case 9:
  4486. if wireType != 0 {
  4487. return fmt.Errorf("proto: wrong wireType = %d for field BlockNo", wireType)
  4488. }
  4489. m.BlockNo = 0
  4490. for shift := uint(0); ; shift += 7 {
  4491. if shift >= 64 {
  4492. return ErrIntOverflowBep
  4493. }
  4494. if iNdEx >= l {
  4495. return io.ErrUnexpectedEOF
  4496. }
  4497. b := dAtA[iNdEx]
  4498. iNdEx++
  4499. m.BlockNo |= int(b&0x7F) << shift
  4500. if b < 0x80 {
  4501. break
  4502. }
  4503. }
  4504. default:
  4505. iNdEx = preIndex
  4506. skippy, err := skipBep(dAtA[iNdEx:])
  4507. if err != nil {
  4508. return err
  4509. }
  4510. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4511. return ErrInvalidLengthBep
  4512. }
  4513. if (iNdEx + skippy) > l {
  4514. return io.ErrUnexpectedEOF
  4515. }
  4516. iNdEx += skippy
  4517. }
  4518. }
  4519. if iNdEx > l {
  4520. return io.ErrUnexpectedEOF
  4521. }
  4522. return nil
  4523. }
  4524. func (m *Response) Unmarshal(dAtA []byte) error {
  4525. l := len(dAtA)
  4526. iNdEx := 0
  4527. for iNdEx < l {
  4528. preIndex := iNdEx
  4529. var wire uint64
  4530. for shift := uint(0); ; shift += 7 {
  4531. if shift >= 64 {
  4532. return ErrIntOverflowBep
  4533. }
  4534. if iNdEx >= l {
  4535. return io.ErrUnexpectedEOF
  4536. }
  4537. b := dAtA[iNdEx]
  4538. iNdEx++
  4539. wire |= uint64(b&0x7F) << shift
  4540. if b < 0x80 {
  4541. break
  4542. }
  4543. }
  4544. fieldNum := int32(wire >> 3)
  4545. wireType := int(wire & 0x7)
  4546. if wireType == 4 {
  4547. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  4548. }
  4549. if fieldNum <= 0 {
  4550. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  4551. }
  4552. switch fieldNum {
  4553. case 1:
  4554. if wireType != 0 {
  4555. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4556. }
  4557. m.ID = 0
  4558. for shift := uint(0); ; shift += 7 {
  4559. if shift >= 64 {
  4560. return ErrIntOverflowBep
  4561. }
  4562. if iNdEx >= l {
  4563. return io.ErrUnexpectedEOF
  4564. }
  4565. b := dAtA[iNdEx]
  4566. iNdEx++
  4567. m.ID |= int(b&0x7F) << shift
  4568. if b < 0x80 {
  4569. break
  4570. }
  4571. }
  4572. case 2:
  4573. if wireType != 2 {
  4574. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  4575. }
  4576. var byteLen int
  4577. for shift := uint(0); ; shift += 7 {
  4578. if shift >= 64 {
  4579. return ErrIntOverflowBep
  4580. }
  4581. if iNdEx >= l {
  4582. return io.ErrUnexpectedEOF
  4583. }
  4584. b := dAtA[iNdEx]
  4585. iNdEx++
  4586. byteLen |= int(b&0x7F) << shift
  4587. if b < 0x80 {
  4588. break
  4589. }
  4590. }
  4591. if byteLen < 0 {
  4592. return ErrInvalidLengthBep
  4593. }
  4594. postIndex := iNdEx + byteLen
  4595. if postIndex < 0 {
  4596. return ErrInvalidLengthBep
  4597. }
  4598. if postIndex > l {
  4599. return io.ErrUnexpectedEOF
  4600. }
  4601. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  4602. if m.Data == nil {
  4603. m.Data = []byte{}
  4604. }
  4605. iNdEx = postIndex
  4606. case 3:
  4607. if wireType != 0 {
  4608. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  4609. }
  4610. m.Code = 0
  4611. for shift := uint(0); ; shift += 7 {
  4612. if shift >= 64 {
  4613. return ErrIntOverflowBep
  4614. }
  4615. if iNdEx >= l {
  4616. return io.ErrUnexpectedEOF
  4617. }
  4618. b := dAtA[iNdEx]
  4619. iNdEx++
  4620. m.Code |= ErrorCode(b&0x7F) << shift
  4621. if b < 0x80 {
  4622. break
  4623. }
  4624. }
  4625. default:
  4626. iNdEx = preIndex
  4627. skippy, err := skipBep(dAtA[iNdEx:])
  4628. if err != nil {
  4629. return err
  4630. }
  4631. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4632. return ErrInvalidLengthBep
  4633. }
  4634. if (iNdEx + skippy) > l {
  4635. return io.ErrUnexpectedEOF
  4636. }
  4637. iNdEx += skippy
  4638. }
  4639. }
  4640. if iNdEx > l {
  4641. return io.ErrUnexpectedEOF
  4642. }
  4643. return nil
  4644. }
  4645. func (m *DownloadProgress) Unmarshal(dAtA []byte) error {
  4646. l := len(dAtA)
  4647. iNdEx := 0
  4648. for iNdEx < l {
  4649. preIndex := iNdEx
  4650. var wire uint64
  4651. for shift := uint(0); ; shift += 7 {
  4652. if shift >= 64 {
  4653. return ErrIntOverflowBep
  4654. }
  4655. if iNdEx >= l {
  4656. return io.ErrUnexpectedEOF
  4657. }
  4658. b := dAtA[iNdEx]
  4659. iNdEx++
  4660. wire |= uint64(b&0x7F) << shift
  4661. if b < 0x80 {
  4662. break
  4663. }
  4664. }
  4665. fieldNum := int32(wire >> 3)
  4666. wireType := int(wire & 0x7)
  4667. if wireType == 4 {
  4668. return fmt.Errorf("proto: DownloadProgress: wiretype end group for non-group")
  4669. }
  4670. if fieldNum <= 0 {
  4671. return fmt.Errorf("proto: DownloadProgress: illegal tag %d (wire type %d)", fieldNum, wire)
  4672. }
  4673. switch fieldNum {
  4674. case 1:
  4675. if wireType != 2 {
  4676. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  4677. }
  4678. var stringLen uint64
  4679. for shift := uint(0); ; shift += 7 {
  4680. if shift >= 64 {
  4681. return ErrIntOverflowBep
  4682. }
  4683. if iNdEx >= l {
  4684. return io.ErrUnexpectedEOF
  4685. }
  4686. b := dAtA[iNdEx]
  4687. iNdEx++
  4688. stringLen |= uint64(b&0x7F) << shift
  4689. if b < 0x80 {
  4690. break
  4691. }
  4692. }
  4693. intStringLen := int(stringLen)
  4694. if intStringLen < 0 {
  4695. return ErrInvalidLengthBep
  4696. }
  4697. postIndex := iNdEx + intStringLen
  4698. if postIndex < 0 {
  4699. return ErrInvalidLengthBep
  4700. }
  4701. if postIndex > l {
  4702. return io.ErrUnexpectedEOF
  4703. }
  4704. m.Folder = string(dAtA[iNdEx:postIndex])
  4705. iNdEx = postIndex
  4706. case 2:
  4707. if wireType != 2 {
  4708. return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType)
  4709. }
  4710. var msglen int
  4711. for shift := uint(0); ; shift += 7 {
  4712. if shift >= 64 {
  4713. return ErrIntOverflowBep
  4714. }
  4715. if iNdEx >= l {
  4716. return io.ErrUnexpectedEOF
  4717. }
  4718. b := dAtA[iNdEx]
  4719. iNdEx++
  4720. msglen |= int(b&0x7F) << shift
  4721. if b < 0x80 {
  4722. break
  4723. }
  4724. }
  4725. if msglen < 0 {
  4726. return ErrInvalidLengthBep
  4727. }
  4728. postIndex := iNdEx + msglen
  4729. if postIndex < 0 {
  4730. return ErrInvalidLengthBep
  4731. }
  4732. if postIndex > l {
  4733. return io.ErrUnexpectedEOF
  4734. }
  4735. m.Updates = append(m.Updates, FileDownloadProgressUpdate{})
  4736. if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4737. return err
  4738. }
  4739. iNdEx = postIndex
  4740. default:
  4741. iNdEx = preIndex
  4742. skippy, err := skipBep(dAtA[iNdEx:])
  4743. if err != nil {
  4744. return err
  4745. }
  4746. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4747. return ErrInvalidLengthBep
  4748. }
  4749. if (iNdEx + skippy) > l {
  4750. return io.ErrUnexpectedEOF
  4751. }
  4752. iNdEx += skippy
  4753. }
  4754. }
  4755. if iNdEx > l {
  4756. return io.ErrUnexpectedEOF
  4757. }
  4758. return nil
  4759. }
  4760. func (m *FileDownloadProgressUpdate) Unmarshal(dAtA []byte) error {
  4761. l := len(dAtA)
  4762. iNdEx := 0
  4763. for iNdEx < l {
  4764. preIndex := iNdEx
  4765. var wire uint64
  4766. for shift := uint(0); ; shift += 7 {
  4767. if shift >= 64 {
  4768. return ErrIntOverflowBep
  4769. }
  4770. if iNdEx >= l {
  4771. return io.ErrUnexpectedEOF
  4772. }
  4773. b := dAtA[iNdEx]
  4774. iNdEx++
  4775. wire |= uint64(b&0x7F) << shift
  4776. if b < 0x80 {
  4777. break
  4778. }
  4779. }
  4780. fieldNum := int32(wire >> 3)
  4781. wireType := int(wire & 0x7)
  4782. if wireType == 4 {
  4783. return fmt.Errorf("proto: FileDownloadProgressUpdate: wiretype end group for non-group")
  4784. }
  4785. if fieldNum <= 0 {
  4786. return fmt.Errorf("proto: FileDownloadProgressUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  4787. }
  4788. switch fieldNum {
  4789. case 1:
  4790. if wireType != 0 {
  4791. return fmt.Errorf("proto: wrong wireType = %d for field UpdateType", wireType)
  4792. }
  4793. m.UpdateType = 0
  4794. for shift := uint(0); ; shift += 7 {
  4795. if shift >= 64 {
  4796. return ErrIntOverflowBep
  4797. }
  4798. if iNdEx >= l {
  4799. return io.ErrUnexpectedEOF
  4800. }
  4801. b := dAtA[iNdEx]
  4802. iNdEx++
  4803. m.UpdateType |= FileDownloadProgressUpdateType(b&0x7F) << shift
  4804. if b < 0x80 {
  4805. break
  4806. }
  4807. }
  4808. case 2:
  4809. if wireType != 2 {
  4810. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4811. }
  4812. var stringLen uint64
  4813. for shift := uint(0); ; shift += 7 {
  4814. if shift >= 64 {
  4815. return ErrIntOverflowBep
  4816. }
  4817. if iNdEx >= l {
  4818. return io.ErrUnexpectedEOF
  4819. }
  4820. b := dAtA[iNdEx]
  4821. iNdEx++
  4822. stringLen |= uint64(b&0x7F) << shift
  4823. if b < 0x80 {
  4824. break
  4825. }
  4826. }
  4827. intStringLen := int(stringLen)
  4828. if intStringLen < 0 {
  4829. return ErrInvalidLengthBep
  4830. }
  4831. postIndex := iNdEx + intStringLen
  4832. if postIndex < 0 {
  4833. return ErrInvalidLengthBep
  4834. }
  4835. if postIndex > l {
  4836. return io.ErrUnexpectedEOF
  4837. }
  4838. m.Name = string(dAtA[iNdEx:postIndex])
  4839. iNdEx = postIndex
  4840. case 3:
  4841. if wireType != 2 {
  4842. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4843. }
  4844. var msglen int
  4845. for shift := uint(0); ; shift += 7 {
  4846. if shift >= 64 {
  4847. return ErrIntOverflowBep
  4848. }
  4849. if iNdEx >= l {
  4850. return io.ErrUnexpectedEOF
  4851. }
  4852. b := dAtA[iNdEx]
  4853. iNdEx++
  4854. msglen |= int(b&0x7F) << shift
  4855. if b < 0x80 {
  4856. break
  4857. }
  4858. }
  4859. if msglen < 0 {
  4860. return ErrInvalidLengthBep
  4861. }
  4862. postIndex := iNdEx + msglen
  4863. if postIndex < 0 {
  4864. return ErrInvalidLengthBep
  4865. }
  4866. if postIndex > l {
  4867. return io.ErrUnexpectedEOF
  4868. }
  4869. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4870. return err
  4871. }
  4872. iNdEx = postIndex
  4873. case 4:
  4874. if wireType == 0 {
  4875. var v int
  4876. for shift := uint(0); ; shift += 7 {
  4877. if shift >= 64 {
  4878. return ErrIntOverflowBep
  4879. }
  4880. if iNdEx >= l {
  4881. return io.ErrUnexpectedEOF
  4882. }
  4883. b := dAtA[iNdEx]
  4884. iNdEx++
  4885. v |= int(b&0x7F) << shift
  4886. if b < 0x80 {
  4887. break
  4888. }
  4889. }
  4890. m.BlockIndexes = append(m.BlockIndexes, v)
  4891. } else if wireType == 2 {
  4892. var packedLen int
  4893. for shift := uint(0); ; shift += 7 {
  4894. if shift >= 64 {
  4895. return ErrIntOverflowBep
  4896. }
  4897. if iNdEx >= l {
  4898. return io.ErrUnexpectedEOF
  4899. }
  4900. b := dAtA[iNdEx]
  4901. iNdEx++
  4902. packedLen |= int(b&0x7F) << shift
  4903. if b < 0x80 {
  4904. break
  4905. }
  4906. }
  4907. if packedLen < 0 {
  4908. return ErrInvalidLengthBep
  4909. }
  4910. postIndex := iNdEx + packedLen
  4911. if postIndex < 0 {
  4912. return ErrInvalidLengthBep
  4913. }
  4914. if postIndex > l {
  4915. return io.ErrUnexpectedEOF
  4916. }
  4917. var elementCount int
  4918. var count int
  4919. for _, integer := range dAtA[iNdEx:postIndex] {
  4920. if integer < 128 {
  4921. count++
  4922. }
  4923. }
  4924. elementCount = count
  4925. if elementCount != 0 && len(m.BlockIndexes) == 0 {
  4926. m.BlockIndexes = make([]int, 0, elementCount)
  4927. }
  4928. for iNdEx < postIndex {
  4929. var v int
  4930. for shift := uint(0); ; shift += 7 {
  4931. if shift >= 64 {
  4932. return ErrIntOverflowBep
  4933. }
  4934. if iNdEx >= l {
  4935. return io.ErrUnexpectedEOF
  4936. }
  4937. b := dAtA[iNdEx]
  4938. iNdEx++
  4939. v |= int(b&0x7F) << shift
  4940. if b < 0x80 {
  4941. break
  4942. }
  4943. }
  4944. m.BlockIndexes = append(m.BlockIndexes, v)
  4945. }
  4946. } else {
  4947. return fmt.Errorf("proto: wrong wireType = %d for field BlockIndexes", wireType)
  4948. }
  4949. case 5:
  4950. if wireType != 0 {
  4951. return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType)
  4952. }
  4953. m.BlockSize = 0
  4954. for shift := uint(0); ; shift += 7 {
  4955. if shift >= 64 {
  4956. return ErrIntOverflowBep
  4957. }
  4958. if iNdEx >= l {
  4959. return io.ErrUnexpectedEOF
  4960. }
  4961. b := dAtA[iNdEx]
  4962. iNdEx++
  4963. m.BlockSize |= int(b&0x7F) << shift
  4964. if b < 0x80 {
  4965. break
  4966. }
  4967. }
  4968. default:
  4969. iNdEx = preIndex
  4970. skippy, err := skipBep(dAtA[iNdEx:])
  4971. if err != nil {
  4972. return err
  4973. }
  4974. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4975. return ErrInvalidLengthBep
  4976. }
  4977. if (iNdEx + skippy) > l {
  4978. return io.ErrUnexpectedEOF
  4979. }
  4980. iNdEx += skippy
  4981. }
  4982. }
  4983. if iNdEx > l {
  4984. return io.ErrUnexpectedEOF
  4985. }
  4986. return nil
  4987. }
  4988. func (m *Ping) Unmarshal(dAtA []byte) error {
  4989. l := len(dAtA)
  4990. iNdEx := 0
  4991. for iNdEx < l {
  4992. preIndex := iNdEx
  4993. var wire uint64
  4994. for shift := uint(0); ; shift += 7 {
  4995. if shift >= 64 {
  4996. return ErrIntOverflowBep
  4997. }
  4998. if iNdEx >= l {
  4999. return io.ErrUnexpectedEOF
  5000. }
  5001. b := dAtA[iNdEx]
  5002. iNdEx++
  5003. wire |= uint64(b&0x7F) << shift
  5004. if b < 0x80 {
  5005. break
  5006. }
  5007. }
  5008. fieldNum := int32(wire >> 3)
  5009. wireType := int(wire & 0x7)
  5010. if wireType == 4 {
  5011. return fmt.Errorf("proto: Ping: wiretype end group for non-group")
  5012. }
  5013. if fieldNum <= 0 {
  5014. return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire)
  5015. }
  5016. switch fieldNum {
  5017. default:
  5018. iNdEx = preIndex
  5019. skippy, err := skipBep(dAtA[iNdEx:])
  5020. if err != nil {
  5021. return err
  5022. }
  5023. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5024. return ErrInvalidLengthBep
  5025. }
  5026. if (iNdEx + skippy) > l {
  5027. return io.ErrUnexpectedEOF
  5028. }
  5029. iNdEx += skippy
  5030. }
  5031. }
  5032. if iNdEx > l {
  5033. return io.ErrUnexpectedEOF
  5034. }
  5035. return nil
  5036. }
  5037. func (m *Close) Unmarshal(dAtA []byte) error {
  5038. l := len(dAtA)
  5039. iNdEx := 0
  5040. for iNdEx < l {
  5041. preIndex := iNdEx
  5042. var wire uint64
  5043. for shift := uint(0); ; shift += 7 {
  5044. if shift >= 64 {
  5045. return ErrIntOverflowBep
  5046. }
  5047. if iNdEx >= l {
  5048. return io.ErrUnexpectedEOF
  5049. }
  5050. b := dAtA[iNdEx]
  5051. iNdEx++
  5052. wire |= uint64(b&0x7F) << shift
  5053. if b < 0x80 {
  5054. break
  5055. }
  5056. }
  5057. fieldNum := int32(wire >> 3)
  5058. wireType := int(wire & 0x7)
  5059. if wireType == 4 {
  5060. return fmt.Errorf("proto: Close: wiretype end group for non-group")
  5061. }
  5062. if fieldNum <= 0 {
  5063. return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
  5064. }
  5065. switch fieldNum {
  5066. case 1:
  5067. if wireType != 2 {
  5068. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  5069. }
  5070. var stringLen uint64
  5071. for shift := uint(0); ; shift += 7 {
  5072. if shift >= 64 {
  5073. return ErrIntOverflowBep
  5074. }
  5075. if iNdEx >= l {
  5076. return io.ErrUnexpectedEOF
  5077. }
  5078. b := dAtA[iNdEx]
  5079. iNdEx++
  5080. stringLen |= uint64(b&0x7F) << shift
  5081. if b < 0x80 {
  5082. break
  5083. }
  5084. }
  5085. intStringLen := int(stringLen)
  5086. if intStringLen < 0 {
  5087. return ErrInvalidLengthBep
  5088. }
  5089. postIndex := iNdEx + intStringLen
  5090. if postIndex < 0 {
  5091. return ErrInvalidLengthBep
  5092. }
  5093. if postIndex > l {
  5094. return io.ErrUnexpectedEOF
  5095. }
  5096. m.Reason = string(dAtA[iNdEx:postIndex])
  5097. iNdEx = postIndex
  5098. default:
  5099. iNdEx = preIndex
  5100. skippy, err := skipBep(dAtA[iNdEx:])
  5101. if err != nil {
  5102. return err
  5103. }
  5104. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5105. return ErrInvalidLengthBep
  5106. }
  5107. if (iNdEx + skippy) > l {
  5108. return io.ErrUnexpectedEOF
  5109. }
  5110. iNdEx += skippy
  5111. }
  5112. }
  5113. if iNdEx > l {
  5114. return io.ErrUnexpectedEOF
  5115. }
  5116. return nil
  5117. }
  5118. func skipBep(dAtA []byte) (n int, err error) {
  5119. l := len(dAtA)
  5120. iNdEx := 0
  5121. depth := 0
  5122. for iNdEx < l {
  5123. var wire uint64
  5124. for shift := uint(0); ; shift += 7 {
  5125. if shift >= 64 {
  5126. return 0, ErrIntOverflowBep
  5127. }
  5128. if iNdEx >= l {
  5129. return 0, io.ErrUnexpectedEOF
  5130. }
  5131. b := dAtA[iNdEx]
  5132. iNdEx++
  5133. wire |= (uint64(b) & 0x7F) << shift
  5134. if b < 0x80 {
  5135. break
  5136. }
  5137. }
  5138. wireType := int(wire & 0x7)
  5139. switch wireType {
  5140. case 0:
  5141. for shift := uint(0); ; shift += 7 {
  5142. if shift >= 64 {
  5143. return 0, ErrIntOverflowBep
  5144. }
  5145. if iNdEx >= l {
  5146. return 0, io.ErrUnexpectedEOF
  5147. }
  5148. iNdEx++
  5149. if dAtA[iNdEx-1] < 0x80 {
  5150. break
  5151. }
  5152. }
  5153. case 1:
  5154. iNdEx += 8
  5155. case 2:
  5156. var length int
  5157. for shift := uint(0); ; shift += 7 {
  5158. if shift >= 64 {
  5159. return 0, ErrIntOverflowBep
  5160. }
  5161. if iNdEx >= l {
  5162. return 0, io.ErrUnexpectedEOF
  5163. }
  5164. b := dAtA[iNdEx]
  5165. iNdEx++
  5166. length |= (int(b) & 0x7F) << shift
  5167. if b < 0x80 {
  5168. break
  5169. }
  5170. }
  5171. if length < 0 {
  5172. return 0, ErrInvalidLengthBep
  5173. }
  5174. iNdEx += length
  5175. case 3:
  5176. depth++
  5177. case 4:
  5178. if depth == 0 {
  5179. return 0, ErrUnexpectedEndOfGroupBep
  5180. }
  5181. depth--
  5182. case 5:
  5183. iNdEx += 4
  5184. default:
  5185. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  5186. }
  5187. if iNdEx < 0 {
  5188. return 0, ErrInvalidLengthBep
  5189. }
  5190. if depth == 0 {
  5191. return iNdEx, nil
  5192. }
  5193. }
  5194. return 0, io.ErrUnexpectedEOF
  5195. }
  5196. var (
  5197. ErrInvalidLengthBep = fmt.Errorf("proto: negative length found during unmarshaling")
  5198. ErrIntOverflowBep = fmt.Errorf("proto: integer overflow")
  5199. ErrUnexpectedEndOfGroupBep = fmt.Errorf("proto: unexpected end of group")
  5200. )