bep.pb.go 170 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903
  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. NumConnections int `protobuf:"varint,4,opt,name=num_connections,json=numConnections,proto3,casttype=int" json:"numConnections" xml:"numConnections"`
  177. Timestamp int64 `protobuf:"varint,5,opt,name=timestamp,proto3" json:"timestamp" xml:"timestamp"`
  178. }
  179. func (m *Hello) Reset() { *m = Hello{} }
  180. func (m *Hello) String() string { return proto.CompactTextString(m) }
  181. func (*Hello) ProtoMessage() {}
  182. func (*Hello) Descriptor() ([]byte, []int) {
  183. return fileDescriptor_311ef540e10d9705, []int{0}
  184. }
  185. func (m *Hello) XXX_Unmarshal(b []byte) error {
  186. return m.Unmarshal(b)
  187. }
  188. func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  189. if deterministic {
  190. return xxx_messageInfo_Hello.Marshal(b, m, deterministic)
  191. } else {
  192. b = b[:cap(b)]
  193. n, err := m.MarshalToSizedBuffer(b)
  194. if err != nil {
  195. return nil, err
  196. }
  197. return b[:n], nil
  198. }
  199. }
  200. func (m *Hello) XXX_Merge(src proto.Message) {
  201. xxx_messageInfo_Hello.Merge(m, src)
  202. }
  203. func (m *Hello) XXX_Size() int {
  204. return m.ProtoSize()
  205. }
  206. func (m *Hello) XXX_DiscardUnknown() {
  207. xxx_messageInfo_Hello.DiscardUnknown(m)
  208. }
  209. var xxx_messageInfo_Hello proto.InternalMessageInfo
  210. type Header struct {
  211. Type MessageType `protobuf:"varint,1,opt,name=type,proto3,enum=protocol.MessageType" json:"type" xml:"type"`
  212. Compression MessageCompression `protobuf:"varint,2,opt,name=compression,proto3,enum=protocol.MessageCompression" json:"compression" xml:"compression"`
  213. }
  214. func (m *Header) Reset() { *m = Header{} }
  215. func (m *Header) String() string { return proto.CompactTextString(m) }
  216. func (*Header) ProtoMessage() {}
  217. func (*Header) Descriptor() ([]byte, []int) {
  218. return fileDescriptor_311ef540e10d9705, []int{1}
  219. }
  220. func (m *Header) XXX_Unmarshal(b []byte) error {
  221. return m.Unmarshal(b)
  222. }
  223. func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  224. if deterministic {
  225. return xxx_messageInfo_Header.Marshal(b, m, deterministic)
  226. } else {
  227. b = b[:cap(b)]
  228. n, err := m.MarshalToSizedBuffer(b)
  229. if err != nil {
  230. return nil, err
  231. }
  232. return b[:n], nil
  233. }
  234. }
  235. func (m *Header) XXX_Merge(src proto.Message) {
  236. xxx_messageInfo_Header.Merge(m, src)
  237. }
  238. func (m *Header) XXX_Size() int {
  239. return m.ProtoSize()
  240. }
  241. func (m *Header) XXX_DiscardUnknown() {
  242. xxx_messageInfo_Header.DiscardUnknown(m)
  243. }
  244. var xxx_messageInfo_Header proto.InternalMessageInfo
  245. type ClusterConfig struct {
  246. Folders []Folder `protobuf:"bytes,1,rep,name=folders,proto3" json:"folders" xml:"folder"`
  247. Secondary bool `protobuf:"varint,2,opt,name=secondary,proto3" json:"secondary" xml:"secondary"`
  248. }
  249. func (m *ClusterConfig) Reset() { *m = ClusterConfig{} }
  250. func (m *ClusterConfig) String() string { return proto.CompactTextString(m) }
  251. func (*ClusterConfig) ProtoMessage() {}
  252. func (*ClusterConfig) Descriptor() ([]byte, []int) {
  253. return fileDescriptor_311ef540e10d9705, []int{2}
  254. }
  255. func (m *ClusterConfig) XXX_Unmarshal(b []byte) error {
  256. return m.Unmarshal(b)
  257. }
  258. func (m *ClusterConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  259. if deterministic {
  260. return xxx_messageInfo_ClusterConfig.Marshal(b, m, deterministic)
  261. } else {
  262. b = b[:cap(b)]
  263. n, err := m.MarshalToSizedBuffer(b)
  264. if err != nil {
  265. return nil, err
  266. }
  267. return b[:n], nil
  268. }
  269. }
  270. func (m *ClusterConfig) XXX_Merge(src proto.Message) {
  271. xxx_messageInfo_ClusterConfig.Merge(m, src)
  272. }
  273. func (m *ClusterConfig) XXX_Size() int {
  274. return m.ProtoSize()
  275. }
  276. func (m *ClusterConfig) XXX_DiscardUnknown() {
  277. xxx_messageInfo_ClusterConfig.DiscardUnknown(m)
  278. }
  279. var xxx_messageInfo_ClusterConfig proto.InternalMessageInfo
  280. type Folder struct {
  281. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" xml:"id"`
  282. Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label" xml:"label"`
  283. ReadOnly bool `protobuf:"varint,3,opt,name=read_only,json=readOnly,proto3" json:"readOnly" xml:"readOnly"`
  284. IgnorePermissions bool `protobuf:"varint,4,opt,name=ignore_permissions,json=ignorePermissions,proto3" json:"ignorePermissions" xml:"ignorePermissions"`
  285. IgnoreDelete bool `protobuf:"varint,5,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignoreDelete" xml:"ignoreDelete"`
  286. DisableTempIndexes bool `protobuf:"varint,6,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disableTempIndexes" xml:"disableTempIndexes"`
  287. Paused bool `protobuf:"varint,7,opt,name=paused,proto3" json:"paused" xml:"paused"`
  288. Devices []Device `protobuf:"bytes,16,rep,name=devices,proto3" json:"devices" xml:"device"`
  289. }
  290. func (m *Folder) Reset() { *m = Folder{} }
  291. func (m *Folder) String() string { return proto.CompactTextString(m) }
  292. func (*Folder) ProtoMessage() {}
  293. func (*Folder) Descriptor() ([]byte, []int) {
  294. return fileDescriptor_311ef540e10d9705, []int{3}
  295. }
  296. func (m *Folder) XXX_Unmarshal(b []byte) error {
  297. return m.Unmarshal(b)
  298. }
  299. func (m *Folder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  300. if deterministic {
  301. return xxx_messageInfo_Folder.Marshal(b, m, deterministic)
  302. } else {
  303. b = b[:cap(b)]
  304. n, err := m.MarshalToSizedBuffer(b)
  305. if err != nil {
  306. return nil, err
  307. }
  308. return b[:n], nil
  309. }
  310. }
  311. func (m *Folder) XXX_Merge(src proto.Message) {
  312. xxx_messageInfo_Folder.Merge(m, src)
  313. }
  314. func (m *Folder) XXX_Size() int {
  315. return m.ProtoSize()
  316. }
  317. func (m *Folder) XXX_DiscardUnknown() {
  318. xxx_messageInfo_Folder.DiscardUnknown(m)
  319. }
  320. var xxx_messageInfo_Folder proto.InternalMessageInfo
  321. type Device struct {
  322. ID DeviceID `protobuf:"bytes,1,opt,name=id,proto3,customtype=DeviceID" json:"id" xml:"id"`
  323. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name"`
  324. Addresses []string `protobuf:"bytes,3,rep,name=addresses,proto3" json:"addresses" xml:"address"`
  325. Compression Compression `protobuf:"varint,4,opt,name=compression,proto3,enum=protocol.Compression" json:"compression" xml:"compression"`
  326. CertName string `protobuf:"bytes,5,opt,name=cert_name,json=certName,proto3" json:"certName" xml:"certName"`
  327. MaxSequence int64 `protobuf:"varint,6,opt,name=max_sequence,json=maxSequence,proto3" json:"maxSequence" xml:"maxSequence"`
  328. Introducer bool `protobuf:"varint,7,opt,name=introducer,proto3" json:"introducer" xml:"introducer"`
  329. IndexID IndexID `protobuf:"varint,8,opt,name=index_id,json=indexId,proto3,customtype=IndexID" json:"indexId" xml:"indexId"`
  330. SkipIntroductionRemovals bool `protobuf:"varint,9,opt,name=skip_introduction_removals,json=skipIntroductionRemovals,proto3" json:"skipIntroductionRemovals" xml:"skipIntroductionRemovals"`
  331. EncryptionPasswordToken []byte `protobuf:"bytes,10,opt,name=encryption_password_token,json=encryptionPasswordToken,proto3" json:"encryptionPasswordToken" xml:"encryptionPasswordToken"`
  332. }
  333. func (m *Device) Reset() { *m = Device{} }
  334. func (m *Device) String() string { return proto.CompactTextString(m) }
  335. func (*Device) ProtoMessage() {}
  336. func (*Device) Descriptor() ([]byte, []int) {
  337. return fileDescriptor_311ef540e10d9705, []int{4}
  338. }
  339. func (m *Device) XXX_Unmarshal(b []byte) error {
  340. return m.Unmarshal(b)
  341. }
  342. func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  343. if deterministic {
  344. return xxx_messageInfo_Device.Marshal(b, m, deterministic)
  345. } else {
  346. b = b[:cap(b)]
  347. n, err := m.MarshalToSizedBuffer(b)
  348. if err != nil {
  349. return nil, err
  350. }
  351. return b[:n], nil
  352. }
  353. }
  354. func (m *Device) XXX_Merge(src proto.Message) {
  355. xxx_messageInfo_Device.Merge(m, src)
  356. }
  357. func (m *Device) XXX_Size() int {
  358. return m.ProtoSize()
  359. }
  360. func (m *Device) XXX_DiscardUnknown() {
  361. xxx_messageInfo_Device.DiscardUnknown(m)
  362. }
  363. var xxx_messageInfo_Device proto.InternalMessageInfo
  364. type Index struct {
  365. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  366. Files []FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files" xml:"file"`
  367. }
  368. func (m *Index) Reset() { *m = Index{} }
  369. func (m *Index) String() string { return proto.CompactTextString(m) }
  370. func (*Index) ProtoMessage() {}
  371. func (*Index) Descriptor() ([]byte, []int) {
  372. return fileDescriptor_311ef540e10d9705, []int{5}
  373. }
  374. func (m *Index) XXX_Unmarshal(b []byte) error {
  375. return m.Unmarshal(b)
  376. }
  377. func (m *Index) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  378. if deterministic {
  379. return xxx_messageInfo_Index.Marshal(b, m, deterministic)
  380. } else {
  381. b = b[:cap(b)]
  382. n, err := m.MarshalToSizedBuffer(b)
  383. if err != nil {
  384. return nil, err
  385. }
  386. return b[:n], nil
  387. }
  388. }
  389. func (m *Index) XXX_Merge(src proto.Message) {
  390. xxx_messageInfo_Index.Merge(m, src)
  391. }
  392. func (m *Index) XXX_Size() int {
  393. return m.ProtoSize()
  394. }
  395. func (m *Index) XXX_DiscardUnknown() {
  396. xxx_messageInfo_Index.DiscardUnknown(m)
  397. }
  398. var xxx_messageInfo_Index proto.InternalMessageInfo
  399. type IndexUpdate struct {
  400. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  401. Files []FileInfo `protobuf:"bytes,2,rep,name=files,proto3" json:"files" xml:"file"`
  402. }
  403. func (m *IndexUpdate) Reset() { *m = IndexUpdate{} }
  404. func (m *IndexUpdate) String() string { return proto.CompactTextString(m) }
  405. func (*IndexUpdate) ProtoMessage() {}
  406. func (*IndexUpdate) Descriptor() ([]byte, []int) {
  407. return fileDescriptor_311ef540e10d9705, []int{6}
  408. }
  409. func (m *IndexUpdate) XXX_Unmarshal(b []byte) error {
  410. return m.Unmarshal(b)
  411. }
  412. func (m *IndexUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  413. if deterministic {
  414. return xxx_messageInfo_IndexUpdate.Marshal(b, m, deterministic)
  415. } else {
  416. b = b[:cap(b)]
  417. n, err := m.MarshalToSizedBuffer(b)
  418. if err != nil {
  419. return nil, err
  420. }
  421. return b[:n], nil
  422. }
  423. }
  424. func (m *IndexUpdate) XXX_Merge(src proto.Message) {
  425. xxx_messageInfo_IndexUpdate.Merge(m, src)
  426. }
  427. func (m *IndexUpdate) XXX_Size() int {
  428. return m.ProtoSize()
  429. }
  430. func (m *IndexUpdate) XXX_DiscardUnknown() {
  431. xxx_messageInfo_IndexUpdate.DiscardUnknown(m)
  432. }
  433. var xxx_messageInfo_IndexUpdate proto.InternalMessageInfo
  434. type FileInfo struct {
  435. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" xml:"name"`
  436. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size" xml:"size"`
  437. ModifiedS int64 `protobuf:"varint,5,opt,name=modified_s,json=modifiedS,proto3" json:"modifiedS" xml:"modifiedS"`
  438. ModifiedBy ShortID `protobuf:"varint,12,opt,name=modified_by,json=modifiedBy,proto3,customtype=ShortID" json:"modifiedBy" xml:"modifiedBy"`
  439. Version Vector `protobuf:"bytes,9,opt,name=version,proto3" json:"version" xml:"version"`
  440. Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence" xml:"sequence"`
  441. Blocks []BlockInfo `protobuf:"bytes,16,rep,name=blocks,proto3" json:"blocks" xml:"block"`
  442. SymlinkTarget string `protobuf:"bytes,17,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlinkTarget" xml:"symlinkTarget"`
  443. BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocksHash" xml:"blocksHash"`
  444. Encrypted []byte `protobuf:"bytes,19,opt,name=encrypted,proto3" json:"encrypted" xml:"encrypted"`
  445. Type FileInfoType `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.FileInfoType" json:"type" xml:"type"`
  446. Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions" xml:"permissions"`
  447. ModifiedNs int `protobuf:"varint,11,opt,name=modified_ns,json=modifiedNs,proto3,casttype=int" json:"modifiedNs" xml:"modifiedNs"`
  448. RawBlockSize int `protobuf:"varint,13,opt,name=block_size,json=blockSize,proto3,casttype=int" json:"blockSize" xml:"blockSize"`
  449. Platform PlatformData `protobuf:"bytes,14,opt,name=platform,proto3" json:"platform" xml:"platform"`
  450. // The local_flags fields stores flags that are relevant to the local
  451. // host only. It is not part of the protocol, doesn't get sent or
  452. // received (we make sure to zero it), nonetheless we need it on our
  453. // struct and to be able to serialize it to/from the database.
  454. LocalFlags uint32 `protobuf:"varint,1000,opt,name=local_flags,json=localFlags,proto3" json:"localFlags" xml:"localFlags"`
  455. // The version_hash is an implementation detail and not part of the wire
  456. // format.
  457. VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"versionHash" xml:"versionHash"`
  458. // The time when the inode was last changed (i.e., permissions, xattrs
  459. // etc changed). This is host-local, not sent over the wire.
  460. InodeChangeNs int64 `protobuf:"varint,1002,opt,name=inode_change_ns,json=inodeChangeNs,proto3" json:"inodeChangeNs" xml:"inodeChangeNs"`
  461. // The size of the data appended to the encrypted file on disk. This is
  462. // host-local, not sent over the wire.
  463. EncryptionTrailerSize int `protobuf:"varint,1003,opt,name=encryption_trailer_size,json=encryptionTrailerSize,proto3,casttype=int" json:"encryptionTrailerSize" xml:"encryptionTrailerSize"`
  464. Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted" xml:"deleted"`
  465. RawInvalid bool `protobuf:"varint,7,opt,name=invalid,proto3" json:"invalid" xml:"invalid"`
  466. NoPermissions bool `protobuf:"varint,8,opt,name=no_permissions,json=noPermissions,proto3" json:"noPermissions" xml:"noPermissions"`
  467. }
  468. func (m *FileInfo) Reset() { *m = FileInfo{} }
  469. func (*FileInfo) ProtoMessage() {}
  470. func (*FileInfo) Descriptor() ([]byte, []int) {
  471. return fileDescriptor_311ef540e10d9705, []int{7}
  472. }
  473. func (m *FileInfo) XXX_Unmarshal(b []byte) error {
  474. return m.Unmarshal(b)
  475. }
  476. func (m *FileInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  477. if deterministic {
  478. return xxx_messageInfo_FileInfo.Marshal(b, m, deterministic)
  479. } else {
  480. b = b[:cap(b)]
  481. n, err := m.MarshalToSizedBuffer(b)
  482. if err != nil {
  483. return nil, err
  484. }
  485. return b[:n], nil
  486. }
  487. }
  488. func (m *FileInfo) XXX_Merge(src proto.Message) {
  489. xxx_messageInfo_FileInfo.Merge(m, src)
  490. }
  491. func (m *FileInfo) XXX_Size() int {
  492. return m.ProtoSize()
  493. }
  494. func (m *FileInfo) XXX_DiscardUnknown() {
  495. xxx_messageInfo_FileInfo.DiscardUnknown(m)
  496. }
  497. var xxx_messageInfo_FileInfo proto.InternalMessageInfo
  498. type BlockInfo struct {
  499. Hash []byte `protobuf:"bytes,3,opt,name=hash,proto3" json:"hash" xml:"hash"`
  500. Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset" xml:"offset"`
  501. Size int `protobuf:"varint,2,opt,name=size,proto3,casttype=int" json:"size" xml:"size"`
  502. WeakHash uint32 `protobuf:"varint,4,opt,name=weak_hash,json=weakHash,proto3" json:"weakHash" xml:"weakHash"`
  503. }
  504. func (m *BlockInfo) Reset() { *m = BlockInfo{} }
  505. func (*BlockInfo) ProtoMessage() {}
  506. func (*BlockInfo) Descriptor() ([]byte, []int) {
  507. return fileDescriptor_311ef540e10d9705, []int{8}
  508. }
  509. func (m *BlockInfo) XXX_Unmarshal(b []byte) error {
  510. return m.Unmarshal(b)
  511. }
  512. func (m *BlockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  513. if deterministic {
  514. return xxx_messageInfo_BlockInfo.Marshal(b, m, deterministic)
  515. } else {
  516. b = b[:cap(b)]
  517. n, err := m.MarshalToSizedBuffer(b)
  518. if err != nil {
  519. return nil, err
  520. }
  521. return b[:n], nil
  522. }
  523. }
  524. func (m *BlockInfo) XXX_Merge(src proto.Message) {
  525. xxx_messageInfo_BlockInfo.Merge(m, src)
  526. }
  527. func (m *BlockInfo) XXX_Size() int {
  528. return m.ProtoSize()
  529. }
  530. func (m *BlockInfo) XXX_DiscardUnknown() {
  531. xxx_messageInfo_BlockInfo.DiscardUnknown(m)
  532. }
  533. var xxx_messageInfo_BlockInfo proto.InternalMessageInfo
  534. type Vector struct {
  535. Counters []Counter `protobuf:"bytes,1,rep,name=counters,proto3" json:"counters" xml:"counter"`
  536. }
  537. func (m *Vector) Reset() { *m = Vector{} }
  538. func (m *Vector) String() string { return proto.CompactTextString(m) }
  539. func (*Vector) ProtoMessage() {}
  540. func (*Vector) Descriptor() ([]byte, []int) {
  541. return fileDescriptor_311ef540e10d9705, []int{9}
  542. }
  543. func (m *Vector) XXX_Unmarshal(b []byte) error {
  544. return m.Unmarshal(b)
  545. }
  546. func (m *Vector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  547. if deterministic {
  548. return xxx_messageInfo_Vector.Marshal(b, m, deterministic)
  549. } else {
  550. b = b[:cap(b)]
  551. n, err := m.MarshalToSizedBuffer(b)
  552. if err != nil {
  553. return nil, err
  554. }
  555. return b[:n], nil
  556. }
  557. }
  558. func (m *Vector) XXX_Merge(src proto.Message) {
  559. xxx_messageInfo_Vector.Merge(m, src)
  560. }
  561. func (m *Vector) XXX_Size() int {
  562. return m.ProtoSize()
  563. }
  564. func (m *Vector) XXX_DiscardUnknown() {
  565. xxx_messageInfo_Vector.DiscardUnknown(m)
  566. }
  567. var xxx_messageInfo_Vector proto.InternalMessageInfo
  568. type Counter struct {
  569. ID ShortID `protobuf:"varint,1,opt,name=id,proto3,customtype=ShortID" json:"id" xml:"id"`
  570. Value uint64 `protobuf:"varint,2,opt,name=value,proto3" json:"value" xml:"value"`
  571. }
  572. func (m *Counter) Reset() { *m = Counter{} }
  573. func (m *Counter) String() string { return proto.CompactTextString(m) }
  574. func (*Counter) ProtoMessage() {}
  575. func (*Counter) Descriptor() ([]byte, []int) {
  576. return fileDescriptor_311ef540e10d9705, []int{10}
  577. }
  578. func (m *Counter) XXX_Unmarshal(b []byte) error {
  579. return m.Unmarshal(b)
  580. }
  581. func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  582. if deterministic {
  583. return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
  584. } else {
  585. b = b[:cap(b)]
  586. n, err := m.MarshalToSizedBuffer(b)
  587. if err != nil {
  588. return nil, err
  589. }
  590. return b[:n], nil
  591. }
  592. }
  593. func (m *Counter) XXX_Merge(src proto.Message) {
  594. xxx_messageInfo_Counter.Merge(m, src)
  595. }
  596. func (m *Counter) XXX_Size() int {
  597. return m.ProtoSize()
  598. }
  599. func (m *Counter) XXX_DiscardUnknown() {
  600. xxx_messageInfo_Counter.DiscardUnknown(m)
  601. }
  602. var xxx_messageInfo_Counter proto.InternalMessageInfo
  603. type PlatformData struct {
  604. Unix *UnixData `protobuf:"bytes,1,opt,name=unix,proto3" json:"unix" xml:"unix"`
  605. Windows *WindowsData `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows" xml:"windows"`
  606. Linux *XattrData `protobuf:"bytes,3,opt,name=linux,proto3" json:"linux" xml:"linux"`
  607. Darwin *XattrData `protobuf:"bytes,4,opt,name=darwin,proto3" json:"darwin" xml:"darwin"`
  608. FreeBSD *XattrData `protobuf:"bytes,5,opt,name=freebsd,proto3" json:"freebsd" xml:"freebsd"`
  609. NetBSD *XattrData `protobuf:"bytes,6,opt,name=netbsd,proto3" json:"netbsd" xml:"netbsd"`
  610. }
  611. func (m *PlatformData) Reset() { *m = PlatformData{} }
  612. func (m *PlatformData) String() string { return proto.CompactTextString(m) }
  613. func (*PlatformData) ProtoMessage() {}
  614. func (*PlatformData) Descriptor() ([]byte, []int) {
  615. return fileDescriptor_311ef540e10d9705, []int{11}
  616. }
  617. func (m *PlatformData) XXX_Unmarshal(b []byte) error {
  618. return m.Unmarshal(b)
  619. }
  620. func (m *PlatformData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  621. if deterministic {
  622. return xxx_messageInfo_PlatformData.Marshal(b, m, deterministic)
  623. } else {
  624. b = b[:cap(b)]
  625. n, err := m.MarshalToSizedBuffer(b)
  626. if err != nil {
  627. return nil, err
  628. }
  629. return b[:n], nil
  630. }
  631. }
  632. func (m *PlatformData) XXX_Merge(src proto.Message) {
  633. xxx_messageInfo_PlatformData.Merge(m, src)
  634. }
  635. func (m *PlatformData) XXX_Size() int {
  636. return m.ProtoSize()
  637. }
  638. func (m *PlatformData) XXX_DiscardUnknown() {
  639. xxx_messageInfo_PlatformData.DiscardUnknown(m)
  640. }
  641. var xxx_messageInfo_PlatformData proto.InternalMessageInfo
  642. type UnixData struct {
  643. // The owner name and group name are set when known (i.e., could be
  644. // resolved on the source device), while the UID and GID are always set
  645. // as they come directly from the stat() call.
  646. OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"ownerName" xml:"ownerName"`
  647. GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"groupName" xml:"groupName"`
  648. UID int `protobuf:"varint,3,opt,name=uid,proto3,casttype=int" json:"uid" xml:"uid"`
  649. GID int `protobuf:"varint,4,opt,name=gid,proto3,casttype=int" json:"gid" xml:"gid"`
  650. }
  651. func (m *UnixData) Reset() { *m = UnixData{} }
  652. func (m *UnixData) String() string { return proto.CompactTextString(m) }
  653. func (*UnixData) ProtoMessage() {}
  654. func (*UnixData) Descriptor() ([]byte, []int) {
  655. return fileDescriptor_311ef540e10d9705, []int{12}
  656. }
  657. func (m *UnixData) XXX_Unmarshal(b []byte) error {
  658. return m.Unmarshal(b)
  659. }
  660. func (m *UnixData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  661. if deterministic {
  662. return xxx_messageInfo_UnixData.Marshal(b, m, deterministic)
  663. } else {
  664. b = b[:cap(b)]
  665. n, err := m.MarshalToSizedBuffer(b)
  666. if err != nil {
  667. return nil, err
  668. }
  669. return b[:n], nil
  670. }
  671. }
  672. func (m *UnixData) XXX_Merge(src proto.Message) {
  673. xxx_messageInfo_UnixData.Merge(m, src)
  674. }
  675. func (m *UnixData) XXX_Size() int {
  676. return m.ProtoSize()
  677. }
  678. func (m *UnixData) XXX_DiscardUnknown() {
  679. xxx_messageInfo_UnixData.DiscardUnknown(m)
  680. }
  681. var xxx_messageInfo_UnixData proto.InternalMessageInfo
  682. type WindowsData struct {
  683. // Windows file objects have a single owner, which may be a user or a
  684. // group. We keep the name of that account, and a flag to indicate what
  685. // type it is.
  686. OwnerName string `protobuf:"bytes,1,opt,name=owner_name,json=ownerName,proto3" json:"ownerName" xml:"ownerName"`
  687. OwnerIsGroup bool `protobuf:"varint,2,opt,name=owner_is_group,json=ownerIsGroup,proto3" json:"ownerIsGroup" xml:"ownerIsGroup"`
  688. }
  689. func (m *WindowsData) Reset() { *m = WindowsData{} }
  690. func (m *WindowsData) String() string { return proto.CompactTextString(m) }
  691. func (*WindowsData) ProtoMessage() {}
  692. func (*WindowsData) Descriptor() ([]byte, []int) {
  693. return fileDescriptor_311ef540e10d9705, []int{13}
  694. }
  695. func (m *WindowsData) XXX_Unmarshal(b []byte) error {
  696. return m.Unmarshal(b)
  697. }
  698. func (m *WindowsData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  699. if deterministic {
  700. return xxx_messageInfo_WindowsData.Marshal(b, m, deterministic)
  701. } else {
  702. b = b[:cap(b)]
  703. n, err := m.MarshalToSizedBuffer(b)
  704. if err != nil {
  705. return nil, err
  706. }
  707. return b[:n], nil
  708. }
  709. }
  710. func (m *WindowsData) XXX_Merge(src proto.Message) {
  711. xxx_messageInfo_WindowsData.Merge(m, src)
  712. }
  713. func (m *WindowsData) XXX_Size() int {
  714. return m.ProtoSize()
  715. }
  716. func (m *WindowsData) XXX_DiscardUnknown() {
  717. xxx_messageInfo_WindowsData.DiscardUnknown(m)
  718. }
  719. var xxx_messageInfo_WindowsData proto.InternalMessageInfo
  720. type XattrData struct {
  721. Xattrs []Xattr `protobuf:"bytes,1,rep,name=xattrs,proto3" json:"xattrs" xml:"xattr"`
  722. }
  723. func (m *XattrData) Reset() { *m = XattrData{} }
  724. func (m *XattrData) String() string { return proto.CompactTextString(m) }
  725. func (*XattrData) ProtoMessage() {}
  726. func (*XattrData) Descriptor() ([]byte, []int) {
  727. return fileDescriptor_311ef540e10d9705, []int{14}
  728. }
  729. func (m *XattrData) XXX_Unmarshal(b []byte) error {
  730. return m.Unmarshal(b)
  731. }
  732. func (m *XattrData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  733. if deterministic {
  734. return xxx_messageInfo_XattrData.Marshal(b, m, deterministic)
  735. } else {
  736. b = b[:cap(b)]
  737. n, err := m.MarshalToSizedBuffer(b)
  738. if err != nil {
  739. return nil, err
  740. }
  741. return b[:n], nil
  742. }
  743. }
  744. func (m *XattrData) XXX_Merge(src proto.Message) {
  745. xxx_messageInfo_XattrData.Merge(m, src)
  746. }
  747. func (m *XattrData) XXX_Size() int {
  748. return m.ProtoSize()
  749. }
  750. func (m *XattrData) XXX_DiscardUnknown() {
  751. xxx_messageInfo_XattrData.DiscardUnknown(m)
  752. }
  753. var xxx_messageInfo_XattrData proto.InternalMessageInfo
  754. type Xattr struct {
  755. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" xml:"name"`
  756. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value" xml:"value"`
  757. }
  758. func (m *Xattr) Reset() { *m = Xattr{} }
  759. func (m *Xattr) String() string { return proto.CompactTextString(m) }
  760. func (*Xattr) ProtoMessage() {}
  761. func (*Xattr) Descriptor() ([]byte, []int) {
  762. return fileDescriptor_311ef540e10d9705, []int{15}
  763. }
  764. func (m *Xattr) XXX_Unmarshal(b []byte) error {
  765. return m.Unmarshal(b)
  766. }
  767. func (m *Xattr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  768. if deterministic {
  769. return xxx_messageInfo_Xattr.Marshal(b, m, deterministic)
  770. } else {
  771. b = b[:cap(b)]
  772. n, err := m.MarshalToSizedBuffer(b)
  773. if err != nil {
  774. return nil, err
  775. }
  776. return b[:n], nil
  777. }
  778. }
  779. func (m *Xattr) XXX_Merge(src proto.Message) {
  780. xxx_messageInfo_Xattr.Merge(m, src)
  781. }
  782. func (m *Xattr) XXX_Size() int {
  783. return m.ProtoSize()
  784. }
  785. func (m *Xattr) XXX_DiscardUnknown() {
  786. xxx_messageInfo_Xattr.DiscardUnknown(m)
  787. }
  788. var xxx_messageInfo_Xattr proto.InternalMessageInfo
  789. type Request struct {
  790. ID int `protobuf:"varint,1,opt,name=id,proto3,casttype=int" json:"id" xml:"id"`
  791. Folder string `protobuf:"bytes,2,opt,name=folder,proto3" json:"folder" xml:"folder"`
  792. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" xml:"name"`
  793. Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset" xml:"offset"`
  794. Size int `protobuf:"varint,5,opt,name=size,proto3,casttype=int" json:"size" xml:"size"`
  795. Hash []byte `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash" xml:"hash"`
  796. FromTemporary bool `protobuf:"varint,7,opt,name=from_temporary,json=fromTemporary,proto3" json:"fromTemporary" xml:"fromTemporary"`
  797. WeakHash uint32 `protobuf:"varint,8,opt,name=weak_hash,json=weakHash,proto3" json:"weakHash" xml:"weakHash"`
  798. BlockNo int `protobuf:"varint,9,opt,name=block_no,json=blockNo,proto3,casttype=int" json:"blockNo" xml:"blockNo"`
  799. }
  800. func (m *Request) Reset() { *m = Request{} }
  801. func (m *Request) String() string { return proto.CompactTextString(m) }
  802. func (*Request) ProtoMessage() {}
  803. func (*Request) Descriptor() ([]byte, []int) {
  804. return fileDescriptor_311ef540e10d9705, []int{16}
  805. }
  806. func (m *Request) XXX_Unmarshal(b []byte) error {
  807. return m.Unmarshal(b)
  808. }
  809. func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  810. if deterministic {
  811. return xxx_messageInfo_Request.Marshal(b, m, deterministic)
  812. } else {
  813. b = b[:cap(b)]
  814. n, err := m.MarshalToSizedBuffer(b)
  815. if err != nil {
  816. return nil, err
  817. }
  818. return b[:n], nil
  819. }
  820. }
  821. func (m *Request) XXX_Merge(src proto.Message) {
  822. xxx_messageInfo_Request.Merge(m, src)
  823. }
  824. func (m *Request) XXX_Size() int {
  825. return m.ProtoSize()
  826. }
  827. func (m *Request) XXX_DiscardUnknown() {
  828. xxx_messageInfo_Request.DiscardUnknown(m)
  829. }
  830. var xxx_messageInfo_Request proto.InternalMessageInfo
  831. type Response struct {
  832. ID int `protobuf:"varint,1,opt,name=id,proto3,casttype=int" json:"id" xml:"id"`
  833. Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" xml:"data"`
  834. Code ErrorCode `protobuf:"varint,3,opt,name=code,proto3,enum=protocol.ErrorCode" json:"code" xml:"code"`
  835. }
  836. func (m *Response) Reset() { *m = Response{} }
  837. func (m *Response) String() string { return proto.CompactTextString(m) }
  838. func (*Response) ProtoMessage() {}
  839. func (*Response) Descriptor() ([]byte, []int) {
  840. return fileDescriptor_311ef540e10d9705, []int{17}
  841. }
  842. func (m *Response) XXX_Unmarshal(b []byte) error {
  843. return m.Unmarshal(b)
  844. }
  845. func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  846. if deterministic {
  847. return xxx_messageInfo_Response.Marshal(b, m, deterministic)
  848. } else {
  849. b = b[:cap(b)]
  850. n, err := m.MarshalToSizedBuffer(b)
  851. if err != nil {
  852. return nil, err
  853. }
  854. return b[:n], nil
  855. }
  856. }
  857. func (m *Response) XXX_Merge(src proto.Message) {
  858. xxx_messageInfo_Response.Merge(m, src)
  859. }
  860. func (m *Response) XXX_Size() int {
  861. return m.ProtoSize()
  862. }
  863. func (m *Response) XXX_DiscardUnknown() {
  864. xxx_messageInfo_Response.DiscardUnknown(m)
  865. }
  866. var xxx_messageInfo_Response proto.InternalMessageInfo
  867. type DownloadProgress struct {
  868. Folder string `protobuf:"bytes,1,opt,name=folder,proto3" json:"folder" xml:"folder"`
  869. Updates []FileDownloadProgressUpdate `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates" xml:"update"`
  870. }
  871. func (m *DownloadProgress) Reset() { *m = DownloadProgress{} }
  872. func (m *DownloadProgress) String() string { return proto.CompactTextString(m) }
  873. func (*DownloadProgress) ProtoMessage() {}
  874. func (*DownloadProgress) Descriptor() ([]byte, []int) {
  875. return fileDescriptor_311ef540e10d9705, []int{18}
  876. }
  877. func (m *DownloadProgress) XXX_Unmarshal(b []byte) error {
  878. return m.Unmarshal(b)
  879. }
  880. func (m *DownloadProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  881. if deterministic {
  882. return xxx_messageInfo_DownloadProgress.Marshal(b, m, deterministic)
  883. } else {
  884. b = b[:cap(b)]
  885. n, err := m.MarshalToSizedBuffer(b)
  886. if err != nil {
  887. return nil, err
  888. }
  889. return b[:n], nil
  890. }
  891. }
  892. func (m *DownloadProgress) XXX_Merge(src proto.Message) {
  893. xxx_messageInfo_DownloadProgress.Merge(m, src)
  894. }
  895. func (m *DownloadProgress) XXX_Size() int {
  896. return m.ProtoSize()
  897. }
  898. func (m *DownloadProgress) XXX_DiscardUnknown() {
  899. xxx_messageInfo_DownloadProgress.DiscardUnknown(m)
  900. }
  901. var xxx_messageInfo_DownloadProgress proto.InternalMessageInfo
  902. type FileDownloadProgressUpdate struct {
  903. UpdateType FileDownloadProgressUpdateType `protobuf:"varint,1,opt,name=update_type,json=updateType,proto3,enum=protocol.FileDownloadProgressUpdateType" json:"updateType" xml:"updateType"`
  904. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name"`
  905. Version Vector `protobuf:"bytes,3,opt,name=version,proto3" json:"version" xml:"version"`
  906. BlockIndexes []int `protobuf:"varint,4,rep,name=block_indexes,json=blockIndexes,proto3,casttype=int" json:"blockIndexes" xml:"blockIndexe"`
  907. BlockSize int `protobuf:"varint,5,opt,name=block_size,json=blockSize,proto3,casttype=int" json:"blockSize" xml:"blockSize"`
  908. }
  909. func (m *FileDownloadProgressUpdate) Reset() { *m = FileDownloadProgressUpdate{} }
  910. func (m *FileDownloadProgressUpdate) String() string { return proto.CompactTextString(m) }
  911. func (*FileDownloadProgressUpdate) ProtoMessage() {}
  912. func (*FileDownloadProgressUpdate) Descriptor() ([]byte, []int) {
  913. return fileDescriptor_311ef540e10d9705, []int{19}
  914. }
  915. func (m *FileDownloadProgressUpdate) XXX_Unmarshal(b []byte) error {
  916. return m.Unmarshal(b)
  917. }
  918. func (m *FileDownloadProgressUpdate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  919. if deterministic {
  920. return xxx_messageInfo_FileDownloadProgressUpdate.Marshal(b, m, deterministic)
  921. } else {
  922. b = b[:cap(b)]
  923. n, err := m.MarshalToSizedBuffer(b)
  924. if err != nil {
  925. return nil, err
  926. }
  927. return b[:n], nil
  928. }
  929. }
  930. func (m *FileDownloadProgressUpdate) XXX_Merge(src proto.Message) {
  931. xxx_messageInfo_FileDownloadProgressUpdate.Merge(m, src)
  932. }
  933. func (m *FileDownloadProgressUpdate) XXX_Size() int {
  934. return m.ProtoSize()
  935. }
  936. func (m *FileDownloadProgressUpdate) XXX_DiscardUnknown() {
  937. xxx_messageInfo_FileDownloadProgressUpdate.DiscardUnknown(m)
  938. }
  939. var xxx_messageInfo_FileDownloadProgressUpdate proto.InternalMessageInfo
  940. type Ping struct {
  941. }
  942. func (m *Ping) Reset() { *m = Ping{} }
  943. func (m *Ping) String() string { return proto.CompactTextString(m) }
  944. func (*Ping) ProtoMessage() {}
  945. func (*Ping) Descriptor() ([]byte, []int) {
  946. return fileDescriptor_311ef540e10d9705, []int{20}
  947. }
  948. func (m *Ping) XXX_Unmarshal(b []byte) error {
  949. return m.Unmarshal(b)
  950. }
  951. func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  952. if deterministic {
  953. return xxx_messageInfo_Ping.Marshal(b, m, deterministic)
  954. } else {
  955. b = b[:cap(b)]
  956. n, err := m.MarshalToSizedBuffer(b)
  957. if err != nil {
  958. return nil, err
  959. }
  960. return b[:n], nil
  961. }
  962. }
  963. func (m *Ping) XXX_Merge(src proto.Message) {
  964. xxx_messageInfo_Ping.Merge(m, src)
  965. }
  966. func (m *Ping) XXX_Size() int {
  967. return m.ProtoSize()
  968. }
  969. func (m *Ping) XXX_DiscardUnknown() {
  970. xxx_messageInfo_Ping.DiscardUnknown(m)
  971. }
  972. var xxx_messageInfo_Ping proto.InternalMessageInfo
  973. type Close struct {
  974. Reason string `protobuf:"bytes,1,opt,name=reason,proto3" json:"reason" xml:"reason"`
  975. }
  976. func (m *Close) Reset() { *m = Close{} }
  977. func (m *Close) String() string { return proto.CompactTextString(m) }
  978. func (*Close) ProtoMessage() {}
  979. func (*Close) Descriptor() ([]byte, []int) {
  980. return fileDescriptor_311ef540e10d9705, []int{21}
  981. }
  982. func (m *Close) XXX_Unmarshal(b []byte) error {
  983. return m.Unmarshal(b)
  984. }
  985. func (m *Close) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  986. if deterministic {
  987. return xxx_messageInfo_Close.Marshal(b, m, deterministic)
  988. } else {
  989. b = b[:cap(b)]
  990. n, err := m.MarshalToSizedBuffer(b)
  991. if err != nil {
  992. return nil, err
  993. }
  994. return b[:n], nil
  995. }
  996. }
  997. func (m *Close) XXX_Merge(src proto.Message) {
  998. xxx_messageInfo_Close.Merge(m, src)
  999. }
  1000. func (m *Close) XXX_Size() int {
  1001. return m.ProtoSize()
  1002. }
  1003. func (m *Close) XXX_DiscardUnknown() {
  1004. xxx_messageInfo_Close.DiscardUnknown(m)
  1005. }
  1006. var xxx_messageInfo_Close proto.InternalMessageInfo
  1007. func init() {
  1008. proto.RegisterEnum("protocol.MessageType", MessageType_name, MessageType_value)
  1009. proto.RegisterEnum("protocol.MessageCompression", MessageCompression_name, MessageCompression_value)
  1010. proto.RegisterEnum("protocol.Compression", Compression_name, Compression_value)
  1011. proto.RegisterEnum("protocol.FileInfoType", FileInfoType_name, FileInfoType_value)
  1012. proto.RegisterEnum("protocol.ErrorCode", ErrorCode_name, ErrorCode_value)
  1013. proto.RegisterEnum("protocol.FileDownloadProgressUpdateType", FileDownloadProgressUpdateType_name, FileDownloadProgressUpdateType_value)
  1014. proto.RegisterType((*Hello)(nil), "protocol.Hello")
  1015. proto.RegisterType((*Header)(nil), "protocol.Header")
  1016. proto.RegisterType((*ClusterConfig)(nil), "protocol.ClusterConfig")
  1017. proto.RegisterType((*Folder)(nil), "protocol.Folder")
  1018. proto.RegisterType((*Device)(nil), "protocol.Device")
  1019. proto.RegisterType((*Index)(nil), "protocol.Index")
  1020. proto.RegisterType((*IndexUpdate)(nil), "protocol.IndexUpdate")
  1021. proto.RegisterType((*FileInfo)(nil), "protocol.FileInfo")
  1022. proto.RegisterType((*BlockInfo)(nil), "protocol.BlockInfo")
  1023. proto.RegisterType((*Vector)(nil), "protocol.Vector")
  1024. proto.RegisterType((*Counter)(nil), "protocol.Counter")
  1025. proto.RegisterType((*PlatformData)(nil), "protocol.PlatformData")
  1026. proto.RegisterType((*UnixData)(nil), "protocol.UnixData")
  1027. proto.RegisterType((*WindowsData)(nil), "protocol.WindowsData")
  1028. proto.RegisterType((*XattrData)(nil), "protocol.XattrData")
  1029. proto.RegisterType((*Xattr)(nil), "protocol.Xattr")
  1030. proto.RegisterType((*Request)(nil), "protocol.Request")
  1031. proto.RegisterType((*Response)(nil), "protocol.Response")
  1032. proto.RegisterType((*DownloadProgress)(nil), "protocol.DownloadProgress")
  1033. proto.RegisterType((*FileDownloadProgressUpdate)(nil), "protocol.FileDownloadProgressUpdate")
  1034. proto.RegisterType((*Ping)(nil), "protocol.Ping")
  1035. proto.RegisterType((*Close)(nil), "protocol.Close")
  1036. }
  1037. func init() { proto.RegisterFile("lib/protocol/bep.proto", fileDescriptor_311ef540e10d9705) }
  1038. var fileDescriptor_311ef540e10d9705 = []byte{
  1039. // 3251 bytes of a gzipped FileDescriptorProto
  1040. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x5a, 0x4b, 0x6c, 0x23, 0x47,
  1041. 0x7a, 0x16, 0x9f, 0xa2, 0x4a, 0x8f, 0xa1, 0x6a, 0x5e, 0x34, 0x67, 0xac, 0x66, 0x6a, 0x67, 0x13,
  1042. 0x59, 0x9b, 0x1d, 0xaf, 0xb5, 0xde, 0x8d, 0x63, 0x3b, 0x36, 0xc4, 0x87, 0x34, 0x5c, 0x6b, 0x48,
  1043. 0xb9, 0xa8, 0x19, 0xaf, 0x07, 0x08, 0x88, 0x16, 0xbb, 0x44, 0x35, 0x86, 0xec, 0x66, 0xba, 0x9b,
  1044. 0x7a, 0x2c, 0x72, 0x49, 0x16, 0x58, 0x2c, 0x74, 0x08, 0x82, 0x3d, 0x05, 0xc1, 0x0a, 0x59, 0xe4,
  1045. 0x92, 0x5b, 0x80, 0x1c, 0x72, 0xd9, 0x53, 0x8e, 0x73, 0x1c, 0x2c, 0x10, 0x20, 0xc8, 0xa1, 0x01,
  1046. 0xcf, 0x5c, 0x12, 0xe6, 0xc6, 0x63, 0x0e, 0x41, 0x50, 0x7f, 0x55, 0x57, 0x57, 0xeb, 0xe1, 0x68,
  1047. 0xec, 0x43, 0x4e, 0xc3, 0xfa, 0xfe, 0xef, 0xff, 0xab, 0xba, 0xea, 0x7f, 0x55, 0x69, 0xd0, 0x9d,
  1048. 0x81, 0xbd, 0xf7, 0xee, 0xc8, 0x73, 0x03, 0xb7, 0xe7, 0x0e, 0xde, 0xdd, 0x63, 0xa3, 0x87, 0x30,
  1049. 0xc0, 0x85, 0x08, 0x2b, 0xcf, 0xb1, 0xe3, 0x40, 0x80, 0xe5, 0xef, 0x78, 0x6c, 0xe4, 0xfa, 0x82,
  1050. 0xbe, 0x37, 0xde, 0x7f, 0xb7, 0xef, 0xf6, 0x5d, 0x18, 0xc0, 0x2f, 0x41, 0x22, 0xff, 0x93, 0x46,
  1051. 0xb9, 0x47, 0x6c, 0x30, 0x70, 0x71, 0x0d, 0xcd, 0x5b, 0xec, 0xd0, 0xee, 0xb1, 0xae, 0x63, 0x0e,
  1052. 0x59, 0x29, 0x55, 0x49, 0xad, 0xce, 0x55, 0xc9, 0x24, 0x34, 0x90, 0x80, 0x5b, 0xe6, 0x90, 0x4d,
  1053. 0x43, 0xa3, 0x78, 0x3c, 0x1c, 0x7c, 0x48, 0x62, 0x88, 0x50, 0x4d, 0xce, 0x8d, 0xf4, 0x06, 0x36,
  1054. 0x73, 0x02, 0x61, 0x24, 0x1d, 0x1b, 0x11, 0x70, 0xc2, 0x48, 0x0c, 0x11, 0xaa, 0xc9, 0x71, 0x1b,
  1055. 0x2d, 0x49, 0x23, 0x87, 0xcc, 0xf3, 0x6d, 0xd7, 0x29, 0x65, 0xc0, 0xce, 0xea, 0x24, 0x34, 0x16,
  1056. 0x85, 0xe4, 0xa9, 0x10, 0x4c, 0x43, 0xe3, 0xa6, 0x66, 0x4a, 0xa2, 0x84, 0x26, 0x59, 0xf8, 0x19,
  1057. 0xba, 0xe1, 0x8c, 0x87, 0xdd, 0x9e, 0xeb, 0x38, 0xac, 0x17, 0xd8, 0xae, 0xe3, 0x97, 0xb2, 0x95,
  1058. 0xd4, 0x6a, 0xae, 0xfa, 0xde, 0x24, 0x34, 0x96, 0x9c, 0xf1, 0xb0, 0x16, 0x4b, 0xa6, 0xa1, 0x71,
  1059. 0x0b, 0x4c, 0x26, 0x61, 0xf2, 0xdf, 0xa1, 0x91, 0xb1, 0x9d, 0x80, 0x9e, 0xa3, 0xe3, 0x4f, 0xd0,
  1060. 0x5c, 0x60, 0x0f, 0x99, 0x1f, 0x98, 0xc3, 0x51, 0x29, 0x57, 0x49, 0xad, 0x66, 0xaa, 0x95, 0x49,
  1061. 0x68, 0xc4, 0xe0, 0x34, 0x34, 0x6e, 0x80, 0x41, 0x85, 0x10, 0x1a, 0x4b, 0xc9, 0x3f, 0xa5, 0x50,
  1062. 0xfe, 0x11, 0x33, 0x2d, 0xe6, 0xe1, 0x0d, 0x94, 0x0d, 0x4e, 0x46, 0x62, 0xeb, 0x97, 0xd6, 0x6f,
  1063. 0x3f, 0x8c, 0x0e, 0xf5, 0xe1, 0x63, 0xe6, 0xfb, 0x66, 0x9f, 0xed, 0x9e, 0x8c, 0x58, 0xf5, 0xce,
  1064. 0x24, 0x34, 0x80, 0x36, 0x0d, 0x0d, 0x24, 0xec, 0x9e, 0x8c, 0x18, 0xa1, 0x80, 0x61, 0x0b, 0xcd,
  1065. 0xf7, 0xdc, 0xe1, 0xc8, 0x63, 0x3e, 0xec, 0x5b, 0x1a, 0x2c, 0xdd, 0xbf, 0x60, 0xa9, 0x16, 0x73,
  1066. 0xaa, 0x0f, 0x26, 0xa1, 0xa1, 0x2b, 0x4d, 0x43, 0x63, 0x59, 0xec, 0x69, 0x8c, 0x11, 0xaa, 0x33,
  1067. 0xc8, 0xaf, 0x53, 0x68, 0xb1, 0x36, 0x18, 0xfb, 0x01, 0xf3, 0x6a, 0xae, 0xb3, 0x6f, 0xf7, 0xf1,
  1068. 0x67, 0x68, 0x76, 0xdf, 0x1d, 0x58, 0xcc, 0xf3, 0x4b, 0xa9, 0x4a, 0x66, 0x75, 0x7e, 0xbd, 0x18,
  1069. 0xcf, 0xb9, 0x09, 0x82, 0xaa, 0xf1, 0x22, 0x34, 0x66, 0x26, 0xa1, 0x11, 0x11, 0xa7, 0xa1, 0xb1,
  1070. 0x00, 0xf3, 0x88, 0x31, 0xa1, 0x91, 0x80, 0x6f, 0xa9, 0xcf, 0x7a, 0xae, 0x63, 0x99, 0xde, 0x09,
  1071. 0x7c, 0x42, 0x41, 0x6c, 0xa9, 0x02, 0xd5, 0x96, 0x2a, 0x84, 0xd0, 0x58, 0x4a, 0x7e, 0x9b, 0x45,
  1072. 0x79, 0x31, 0x29, 0x7e, 0x88, 0xd2, 0xb6, 0x25, 0x7d, 0x79, 0xe5, 0x55, 0x68, 0xa4, 0x9b, 0xf5,
  1073. 0x49, 0x68, 0xa4, 0x6d, 0x6b, 0x1a, 0x1a, 0x05, 0x30, 0x61, 0x5b, 0xe4, 0x57, 0x2f, 0x1f, 0xa4,
  1074. 0x9b, 0x75, 0x9a, 0xb6, 0x2d, 0xfc, 0x10, 0xe5, 0x06, 0xe6, 0x1e, 0x1b, 0x48, 0xcf, 0x2d, 0x4d,
  1075. 0x42, 0x43, 0x00, 0xd3, 0xd0, 0x98, 0x07, 0x3e, 0x8c, 0x08, 0x15, 0x28, 0xfe, 0x08, 0xcd, 0x79,
  1076. 0xcc, 0xb4, 0xba, 0xae, 0x33, 0x38, 0x01, 0x2f, 0x2d, 0x54, 0x57, 0x26, 0xa1, 0x51, 0xe0, 0x60,
  1077. 0xdb, 0x19, 0xf0, 0x95, 0x2e, 0x81, 0x5a, 0x04, 0x10, 0xaa, 0x64, 0xb8, 0x8b, 0xb0, 0xdd, 0x77,
  1078. 0x5c, 0x8f, 0x75, 0x47, 0xcc, 0x1b, 0xda, 0xb0, 0xb7, 0xc2, 0x33, 0x0b, 0xd5, 0x1f, 0x4c, 0x42,
  1079. 0x63, 0x59, 0x48, 0x77, 0x62, 0xe1, 0x34, 0x34, 0xee, 0x8a, 0x55, 0x9f, 0x97, 0x10, 0x7a, 0x91,
  1080. 0x8d, 0x3f, 0x43, 0x8b, 0x72, 0x02, 0x8b, 0x0d, 0x58, 0xc0, 0xc0, 0x3f, 0x0b, 0xd5, 0xdf, 0x9f,
  1081. 0x84, 0xc6, 0x82, 0x10, 0xd4, 0x01, 0x9f, 0x86, 0x06, 0xd6, 0xcc, 0x0a, 0x90, 0xd0, 0x04, 0x07,
  1082. 0x5b, 0xe8, 0x96, 0x65, 0xfb, 0xe6, 0xde, 0x80, 0x75, 0x03, 0x36, 0x1c, 0x75, 0x6d, 0xc7, 0x62,
  1083. 0xc7, 0xcc, 0x2f, 0xe5, 0xc1, 0xe6, 0xfa, 0x24, 0x34, 0xb0, 0x94, 0xef, 0xb2, 0xe1, 0xa8, 0x29,
  1084. 0xa4, 0xd3, 0xd0, 0x28, 0x89, 0x84, 0x71, 0x41, 0x44, 0xe8, 0x25, 0x7c, 0xbc, 0x8e, 0xf2, 0x23,
  1085. 0x73, 0xec, 0x33, 0xab, 0x34, 0x0b, 0x76, 0xcb, 0x93, 0xd0, 0x90, 0x88, 0x72, 0x18, 0x31, 0x24,
  1086. 0x54, 0xe2, 0xdc, 0xf9, 0x44, 0x0a, 0xf2, 0x4b, 0xc5, 0xf3, 0xce, 0x57, 0x07, 0x41, 0xec, 0x7c,
  1087. 0x92, 0xa8, 0x6c, 0x89, 0x31, 0xa1, 0x91, 0x80, 0xfc, 0x4b, 0x1e, 0xe5, 0x85, 0x12, 0xae, 0x2a,
  1088. 0xe7, 0x59, 0xa8, 0xae, 0x73, 0x03, 0xff, 0x1e, 0x1a, 0x05, 0x21, 0x6b, 0xd6, 0xaf, 0x72, 0xa6,
  1089. 0x5f, 0xbe, 0x7c, 0x90, 0xd2, 0x1c, 0x6a, 0x0d, 0x65, 0xb5, 0x4c, 0x08, 0xc1, 0xeb, 0x88, 0x1c,
  1090. 0x28, 0x82, 0xd7, 0x81, 0xec, 0x07, 0x18, 0xfe, 0x18, 0xcd, 0x99, 0x96, 0xc5, 0x83, 0x8c, 0xf9,
  1091. 0xa5, 0x4c, 0x25, 0xc3, 0x7d, 0x96, 0xfb, 0xbd, 0x02, 0xa7, 0xa1, 0xb1, 0x08, 0x5a, 0x12, 0x21,
  1092. 0x34, 0x96, 0xe1, 0x3f, 0x4d, 0x86, 0x7e, 0xf6, 0x7c, 0x12, 0xf9, 0x76, 0x31, 0xcf, 0x3d, 0xbd,
  1093. 0xc7, 0x3c, 0x99, 0xd7, 0x73, 0x22, 0xa0, 0xb8, 0xa7, 0x73, 0x50, 0x66, 0x75, 0xe1, 0xe9, 0x11,
  1094. 0x40, 0xa8, 0x92, 0xe1, 0x2d, 0xb4, 0x30, 0x34, 0x8f, 0xbb, 0x3e, 0xfb, 0xb3, 0x31, 0x73, 0x7a,
  1095. 0x0c, 0x7c, 0x26, 0x23, 0x56, 0x31, 0x34, 0x8f, 0x3b, 0x12, 0x56, 0xab, 0xd0, 0x30, 0x42, 0x75,
  1096. 0x06, 0xae, 0x22, 0x64, 0x3b, 0x81, 0xe7, 0x5a, 0xe3, 0x1e, 0xf3, 0xa4, 0x8b, 0x40, 0x79, 0x89,
  1097. 0x51, 0x55, 0x5e, 0x62, 0x88, 0x50, 0x4d, 0x8e, 0xfb, 0xa8, 0x00, 0xbe, 0xdb, 0xb5, 0xad, 0x52,
  1098. 0xa1, 0x92, 0x5a, 0xcd, 0x56, 0xb7, 0xe5, 0xe1, 0xce, 0x82, 0x17, 0xc2, 0xd9, 0x46, 0x3f, 0xb9,
  1099. 0xcf, 0x00, 0xbb, 0x69, 0xa9, 0xdd, 0x97, 0x63, 0x9e, 0x37, 0x22, 0xda, 0xdf, 0xc6, 0x3f, 0x69,
  1100. 0xc4, 0xc7, 0x7f, 0x8e, 0xca, 0xfe, 0x73, 0x9b, 0x47, 0x8a, 0x98, 0x9b, 0x17, 0x8c, 0xae, 0xc7,
  1101. 0x86, 0xee, 0xa1, 0x39, 0xf0, 0x4b, 0x73, 0xb0, 0xf8, 0x4f, 0x26, 0xa1, 0x51, 0xe2, 0xac, 0xa6,
  1102. 0x46, 0xa2, 0x92, 0x33, 0x0d, 0x8d, 0x15, 0x91, 0xe7, 0xae, 0x20, 0x10, 0x7a, 0xa5, 0x2e, 0x3e,
  1103. 0x46, 0x6f, 0x31, 0xa7, 0xe7, 0x9d, 0x8c, 0x60, 0xda, 0x91, 0xe9, 0xfb, 0x47, 0xae, 0x67, 0x75,
  1104. 0x03, 0xf7, 0x39, 0x73, 0x4a, 0x08, 0x9c, 0xfa, 0xe3, 0x49, 0x68, 0xdc, 0x8d, 0x49, 0x3b, 0x92,
  1105. 0xb3, 0xcb, 0x29, 0xd3, 0xd0, 0x78, 0x1b, 0xe6, 0xbe, 0x42, 0x4e, 0xe8, 0x55, 0x9a, 0xe4, 0x2f,
  1106. 0x53, 0x28, 0x07, 0x9b, 0xc1, 0xa3, 0x59, 0x24, 0x75, 0x99, 0x82, 0x21, 0x9a, 0x05, 0x72, 0x21,
  1107. 0xfd, 0x4b, 0x1c, 0x37, 0x50, 0x6e, 0xdf, 0x1e, 0x30, 0xbf, 0x94, 0x86, 0x58, 0xc6, 0x5a, 0x21,
  1108. 0xb1, 0x07, 0xac, 0xe9, 0xec, 0xbb, 0xd5, 0x7b, 0x32, 0x9a, 0x05, 0x51, 0xc5, 0x12, 0x1f, 0x11,
  1109. 0x2a, 0x40, 0xf2, 0xcb, 0x14, 0x9a, 0x87, 0x45, 0x3c, 0x19, 0x59, 0x66, 0xc0, 0xfe, 0x3f, 0x97,
  1110. 0xf2, 0x8b, 0x45, 0x54, 0x88, 0x14, 0x54, 0x42, 0x48, 0x5d, 0x23, 0x21, 0xac, 0xa1, 0xac, 0x6f,
  1111. 0xff, 0x8c, 0x41, 0x61, 0xc9, 0x08, 0x2e, 0x1f, 0x2b, 0x2e, 0x1f, 0x10, 0x0a, 0x18, 0xfe, 0x14,
  1112. 0xa1, 0xa1, 0x6b, 0xd9, 0xfb, 0x36, 0xb3, 0xba, 0xbe, 0xde, 0x88, 0x44, 0x68, 0x47, 0x55, 0x4d,
  1113. 0x85, 0x10, 0x1a, 0x4b, 0x79, 0xfe, 0x50, 0x06, 0xf6, 0x4e, 0x4a, 0x0b, 0x10, 0x19, 0x1f, 0x47,
  1114. 0x91, 0xd1, 0x39, 0x70, 0xbd, 0x00, 0xc2, 0x41, 0x4d, 0x53, 0x3d, 0x51, 0xa1, 0x16, 0x43, 0x84,
  1115. 0x47, 0x82, 0x24, 0x53, 0x8d, 0x8a, 0xb7, 0xd1, 0x6c, 0xd4, 0xcd, 0x71, 0xcf, 0x4f, 0x24, 0xe9,
  1116. 0xa7, 0xac, 0x17, 0xb8, 0x5e, 0xb5, 0x12, 0x25, 0xe9, 0x43, 0xd5, 0xdd, 0x89, 0x80, 0x3b, 0x8c,
  1117. 0xfa, 0xba, 0x48, 0x82, 0x3f, 0x44, 0x05, 0x95, 0x4c, 0x10, 0x7c, 0x2b, 0x24, 0x23, 0x3f, 0xce,
  1118. 0x24, 0x4b, 0xb2, 0x41, 0x88, 0xd2, 0x88, 0x92, 0xe1, 0x9f, 0xa0, 0xfc, 0xde, 0xc0, 0xed, 0x3d,
  1119. 0x8f, 0xaa, 0xc5, 0xcd, 0x78, 0x21, 0x55, 0x8e, 0xc3, 0xb9, 0xbe, 0x2d, 0xd7, 0x22, 0xa9, 0xaa,
  1120. 0xfc, 0xc3, 0x90, 0x50, 0x09, 0xf3, 0x56, 0xd5, 0x3f, 0x19, 0x0e, 0x6c, 0xe7, 0x79, 0x37, 0x30,
  1121. 0xbd, 0x3e, 0x0b, 0x4a, 0xcb, 0x71, 0xab, 0x2a, 0x25, 0xbb, 0x20, 0x50, 0xad, 0x6a, 0x02, 0x25,
  1122. 0x34, 0xc9, 0xe2, 0x0d, 0xb4, 0x30, 0xdd, 0x3d, 0x30, 0xfd, 0x83, 0x12, 0x86, 0x38, 0x85, 0x0c,
  1123. 0x27, 0xe0, 0x47, 0xa6, 0x7f, 0xa0, 0xb6, 0x3d, 0x86, 0x08, 0xd5, 0xe4, 0xbc, 0x81, 0x92, 0xb1,
  1124. 0xc9, 0xac, 0xd2, 0x4d, 0x30, 0x01, 0xae, 0xa0, 0x40, 0xe5, 0x0a, 0x0a, 0x21, 0x34, 0x96, 0xe2,
  1125. 0xaa, 0x6c, 0x44, 0x45, 0xfb, 0x78, 0xe7, 0xa2, 0xdb, 0x5f, 0xa3, 0x13, 0xdd, 0x44, 0xf3, 0xe7,
  1126. 0xbb, 0x9a, 0x45, 0x91, 0xf1, 0x47, 0x89, 0x7e, 0x46, 0x64, 0xfc, 0x91, 0xde, 0xc9, 0xe8, 0x0c,
  1127. 0xfc, 0x13, 0xcd, 0x2d, 0x1d, 0xbf, 0x34, 0x0f, 0x7d, 0xfb, 0x3b, 0xba, 0x1f, 0xb6, 0xfc, 0x0b,
  1128. 0x7e, 0xd8, 0x8a, 0xfb, 0x75, 0x8d, 0x86, 0xf7, 0x91, 0xd8, 0xa5, 0x2e, 0x44, 0xd5, 0x22, 0x98,
  1129. 0xda, 0x7a, 0x15, 0x1a, 0x0b, 0xd4, 0x3c, 0x82, 0xa3, 0xef, 0xd8, 0x3f, 0x63, 0x7c, 0xa3, 0xf6,
  1130. 0xa2, 0x81, 0xda, 0x28, 0x85, 0x44, 0x86, 0x7f, 0xf5, 0xf2, 0x41, 0x42, 0x8d, 0xc6, 0x4a, 0xf8,
  1131. 0x29, 0x2a, 0x8c, 0x06, 0x66, 0xb0, 0xef, 0x7a, 0xc3, 0xd2, 0x12, 0x38, 0xbb, 0xb6, 0x87, 0x3b,
  1132. 0x52, 0x52, 0x37, 0x03, 0xb3, 0x4a, 0xa4, 0x9b, 0x29, 0xbe, 0xf2, 0xdc, 0x08, 0x20, 0x54, 0xc9,
  1133. 0x70, 0x1d, 0xcd, 0x0f, 0xdc, 0x9e, 0x39, 0xe8, 0xee, 0x0f, 0xcc, 0xbe, 0x5f, 0xfa, 0x8f, 0x59,
  1134. 0xd8, 0x54, 0xf0, 0x0e, 0xc0, 0x37, 0x39, 0xac, 0x36, 0x23, 0x86, 0x08, 0xd5, 0xe4, 0xf8, 0x11,
  1135. 0x5a, 0x90, 0x61, 0x24, 0x7c, 0xec, 0x3f, 0x67, 0xc1, 0x43, 0xe0, 0x6c, 0xa4, 0x40, 0x7a, 0xd9,
  1136. 0xb2, 0x1e, 0x7d, 0xc2, 0xcd, 0x74, 0x06, 0xfe, 0x1c, 0xdd, 0xb0, 0x1d, 0xd7, 0x62, 0xdd, 0xde,
  1137. 0x81, 0xe9, 0xf4, 0x19, 0x3f, 0x9f, 0xc9, 0x2c, 0x44, 0x23, 0xf8, 0x3f, 0xc8, 0x6a, 0x20, 0x82,
  1138. 0x33, 0xba, 0x29, 0xab, 0xa7, 0x86, 0x12, 0x9a, 0x64, 0xe1, 0x63, 0xa4, 0x95, 0x95, 0x6e, 0xe0,
  1139. 0x99, 0xf6, 0x80, 0x79, 0xe2, 0xbc, 0xfe, 0x6b, 0x16, 0x0e, 0xec, 0xd3, 0x49, 0x68, 0xdc, 0x8e,
  1140. 0x39, 0xbb, 0x82, 0x22, 0x0f, 0xeb, 0xde, 0xb9, 0x92, 0xa5, 0x49, 0x95, 0x47, 0x5c, 0xae, 0x8c,
  1141. 0x7f, 0xcc, 0xbb, 0x48, 0xde, 0xe9, 0x5a, 0xb2, 0xa5, 0xbd, 0x2f, 0xfa, 0x45, 0x80, 0x54, 0x2a,
  1142. 0x92, 0x63, 0x68, 0x18, 0xe1, 0x17, 0xa6, 0x68, 0xd6, 0x76, 0x0e, 0xcd, 0x81, 0x1d, 0xb5, 0xac,
  1143. 0x1f, 0xbc, 0x0a, 0x0d, 0x44, 0xcd, 0xa3, 0xa6, 0x40, 0x45, 0x07, 0x01, 0x3f, 0xb5, 0x0e, 0x02,
  1144. 0xc6, 0xbc, 0x83, 0xd0, 0x98, 0x34, 0xe2, 0xf1, 0xb4, 0xe2, 0xb8, 0x89, 0x5b, 0x41, 0x01, 0x4c,
  1145. 0xc3, 0xb6, 0x3a, 0x6e, 0xf2, 0x46, 0x20, 0xb6, 0x35, 0x81, 0x12, 0x9a, 0x64, 0x7d, 0x98, 0xfd,
  1146. 0x9b, 0xdf, 0x18, 0x33, 0xe4, 0xab, 0x14, 0x9a, 0x53, 0x29, 0x8e, 0x57, 0x17, 0x38, 0xff, 0x0c,
  1147. 0x1c, 0x3f, 0x44, 0xf3, 0x81, 0x38, 0x77, 0x11, 0xcd, 0x07, 0x70, 0xe0, 0x80, 0xf1, 0xea, 0xe9,
  1148. 0xee, 0xef, 0xfb, 0x2c, 0x80, 0xba, 0x95, 0x11, 0xd5, 0x53, 0x20, 0xaa, 0x7a, 0x8a, 0x21, 0xa1,
  1149. 0x12, 0xc7, 0xef, 0xc9, 0xea, 0x95, 0x86, 0x63, 0x7b, 0xfb, 0xf2, 0xea, 0x15, 0x1d, 0x8a, 0x28,
  1150. 0x62, 0x1f, 0xa1, 0xb9, 0x23, 0x66, 0x3e, 0x17, 0x7e, 0x29, 0x52, 0x06, 0xe4, 0x75, 0x0e, 0x4a,
  1151. 0x9f, 0x14, 0xd1, 0x11, 0x01, 0x84, 0x2a, 0x99, 0xfc, 0xc6, 0x67, 0x28, 0x2f, 0xca, 0x09, 0xde,
  1152. 0x41, 0x85, 0x9e, 0x3b, 0x76, 0x82, 0xf8, 0x52, 0xba, 0xac, 0x77, 0xc3, 0x20, 0xa9, 0xfe, 0x5e,
  1153. 0x14, 0x80, 0x11, 0x55, 0x9d, 0x91, 0x04, 0x78, 0x1b, 0x2b, 0x45, 0xe4, 0xe7, 0x29, 0x34, 0x2b,
  1154. 0x15, 0xf1, 0x23, 0x75, 0x39, 0xc8, 0x56, 0x3f, 0x38, 0x57, 0x25, 0xbf, 0xfe, 0xa2, 0xa9, 0x57,
  1155. 0x48, 0x79, 0xe7, 0x3c, 0x34, 0x07, 0x63, 0xb1, 0x51, 0x59, 0x71, 0xe7, 0x04, 0x40, 0x15, 0x1d,
  1156. 0x18, 0x11, 0x2a, 0x50, 0xf2, 0xf3, 0x2c, 0x5a, 0xd0, 0x93, 0x08, 0x4f, 0xd7, 0x63, 0xc7, 0x3e,
  1157. 0x86, 0xc5, 0x24, 0xba, 0x94, 0x27, 0x8e, 0x7d, 0x0c, 0x69, 0xa6, 0xfc, 0x22, 0x34, 0x52, 0xfc,
  1158. 0x00, 0x38, 0x4f, 0x1d, 0x00, 0x1f, 0x10, 0x0a, 0x18, 0xfe, 0x1c, 0xcd, 0x1e, 0xd9, 0x8e, 0xe5,
  1159. 0x1e, 0xf9, 0xb0, 0x8c, 0x79, 0xfd, 0xe6, 0xf0, 0x85, 0x10, 0x80, 0xa5, 0x8a, 0xb4, 0x14, 0xb1,
  1160. 0xd5, 0x76, 0xc9, 0x31, 0xa1, 0x91, 0x04, 0x6f, 0xa1, 0xdc, 0xc0, 0x76, 0xc6, 0xc7, 0xe0, 0x60,
  1161. 0x89, 0x32, 0xfb, 0x53, 0x33, 0x08, 0x3c, 0x30, 0x77, 0x5f, 0x9a, 0x13, 0xcc, 0xf8, 0x92, 0xcd,
  1162. 0x47, 0xfc, 0x92, 0xcd, 0xff, 0xc5, 0x9f, 0xa1, 0xbc, 0x65, 0x7a, 0x47, 0xb6, 0xb8, 0xd4, 0x5c,
  1163. 0x61, 0x69, 0x45, 0x5a, 0x92, 0xd4, 0xf8, 0x82, 0x07, 0x43, 0x42, 0x25, 0x8e, 0x19, 0x9a, 0xdd,
  1164. 0xf7, 0x18, 0xdb, 0xf3, 0x2d, 0x68, 0x92, 0xae, 0xb0, 0xf6, 0x63, 0x6e, 0x8d, 0x5f, 0x03, 0x36,
  1165. 0x3d, 0xc6, 0xaa, 0x1d, 0xb8, 0x06, 0x48, 0x35, 0xf5, 0xc5, 0x72, 0x0c, 0xd7, 0x00, 0x49, 0xa3,
  1166. 0x11, 0x09, 0x77, 0x51, 0xde, 0x61, 0x01, 0x9f, 0x25, 0x7f, 0xf5, 0x2c, 0xeb, 0x72, 0x96, 0x7c,
  1167. 0x8b, 0x05, 0x62, 0x12, 0xa9, 0xa4, 0x56, 0x2f, 0x86, 0x7c, 0x0a, 0xc9, 0xa1, 0x92, 0x41, 0x7e,
  1168. 0x91, 0x46, 0x85, 0xe8, 0x7c, 0x79, 0xf3, 0xe7, 0x1e, 0x39, 0xcc, 0xd3, 0x9f, 0xee, 0xa0, 0xe2,
  1169. 0x03, 0x2a, 0xaf, 0x67, 0xa2, 0x90, 0x29, 0x84, 0xd0, 0x58, 0xca, 0x0d, 0xf4, 0x3d, 0x77, 0x3c,
  1170. 0xd2, 0x9f, 0xed, 0xc0, 0x00, 0xa0, 0x09, 0x03, 0x0a, 0x21, 0x34, 0x96, 0xe2, 0x8f, 0x50, 0x66,
  1171. 0x6c, 0x5b, 0x70, 0xd4, 0xb9, 0xea, 0x3b, 0xaf, 0x42, 0x23, 0xf3, 0x04, 0x22, 0x80, 0xa3, 0xd3,
  1172. 0xd0, 0x98, 0x13, 0x0e, 0x67, 0x5b, 0x5a, 0xf9, 0xe4, 0x0c, 0xca, 0xe5, 0x5c, 0xb9, 0x6f, 0x5b,
  1173. 0xf2, 0x4d, 0x0e, 0x94, 0xb7, 0x84, 0x72, 0x5f, 0x53, 0xee, 0x27, 0x95, 0xb7, 0xb8, 0x32, 0xc7,
  1174. 0x7e, 0x9d, 0x42, 0xf3, 0x9a, 0x87, 0x7e, 0xfb, 0xbd, 0xd8, 0x46, 0x4b, 0xc2, 0x80, 0xed, 0x77,
  1175. 0xe1, 0x03, 0xe5, 0x1b, 0x14, 0x3c, 0x9b, 0x80, 0xa4, 0xe9, 0x6f, 0x71, 0x5c, 0x3d, 0x9b, 0xe8,
  1176. 0x20, 0xa1, 0x09, 0x0e, 0xe9, 0xa0, 0x39, 0x75, 0xe0, 0x78, 0x13, 0xe5, 0x8f, 0xf9, 0x20, 0x4a,
  1177. 0x48, 0x37, 0xce, 0x79, 0x45, 0xdc, 0x76, 0x0a, 0x9a, 0x0a, 0x08, 0x18, 0x12, 0x2a, 0x61, 0xd2,
  1178. 0x43, 0x39, 0xe0, 0xbf, 0xd1, 0x6d, 0x22, 0x91, 0x67, 0x16, 0xfe, 0xef, 0x3c, 0xf3, 0x17, 0x59,
  1179. 0x34, 0x4b, 0x79, 0xd3, 0xec, 0x07, 0xf8, 0x47, 0x2a, 0xdb, 0xe5, 0xaa, 0xdf, 0xbd, 0x2a, 0xbd,
  1180. 0xc5, 0xa7, 0x13, 0xbd, 0x7e, 0xc4, 0x97, 0xae, 0xf4, 0xb5, 0x2f, 0x5d, 0xd1, 0x27, 0x65, 0xae,
  1181. 0xf1, 0x49, 0x71, 0x59, 0xca, 0xbe, 0x71, 0x59, 0xca, 0x5d, 0xbf, 0x2c, 0x45, 0x95, 0x32, 0x7f,
  1182. 0x8d, 0x4a, 0xd9, 0x46, 0x4b, 0xfb, 0x9e, 0x3b, 0x84, 0x37, 0x32, 0xd7, 0x33, 0xbd, 0x13, 0xd9,
  1183. 0x15, 0x40, 0xe9, 0xe6, 0x92, 0xdd, 0x48, 0xa0, 0x4a, 0x77, 0x02, 0x25, 0x34, 0xc9, 0x4a, 0xd6,
  1184. 0xc4, 0xc2, 0x9b, 0xd5, 0x44, 0xfc, 0x09, 0x2a, 0x88, 0x8e, 0xd7, 0x71, 0xe1, 0xda, 0x95, 0xab,
  1185. 0x7e, 0x87, 0xa7, 0x32, 0xc0, 0x5a, 0xae, 0x4a, 0x65, 0x72, 0xac, 0x3e, 0x3b, 0x22, 0x90, 0x7f,
  1186. 0x4c, 0xa1, 0x02, 0x65, 0xfe, 0xc8, 0x75, 0x7c, 0xf6, 0x4d, 0x9d, 0x60, 0x0d, 0x65, 0x2d, 0x33,
  1187. 0x30, 0xa5, 0xdb, 0xc1, 0xee, 0xf1, 0xb1, 0xda, 0x3d, 0x3e, 0x20, 0x14, 0x30, 0xfc, 0x29, 0xca,
  1188. 0xf6, 0x5c, 0x4b, 0x1c, 0xfe, 0x92, 0x9e, 0x34, 0x1b, 0x9e, 0xe7, 0x7a, 0x35, 0xd7, 0x92, 0xd7,
  1189. 0x0e, 0x4e, 0x52, 0x06, 0xf8, 0x80, 0x50, 0xc0, 0xc8, 0x3f, 0xa4, 0x50, 0xb1, 0xee, 0x1e, 0x39,
  1190. 0x03, 0xd7, 0xb4, 0x76, 0x3c, 0xb7, 0xef, 0x31, 0xdf, 0xff, 0x46, 0x77, 0xff, 0x2e, 0x9a, 0x1d,
  1191. 0xc3, 0xcb, 0x41, 0x74, 0xfb, 0x7f, 0x90, 0xbc, 0x06, 0x9d, 0x9f, 0x44, 0x3c, 0x33, 0xc4, 0x0f,
  1192. 0x8d, 0x52, 0x59, 0xd9, 0x17, 0x63, 0x42, 0x23, 0x01, 0xf9, 0xfb, 0x0c, 0x2a, 0x5f, 0x6d, 0x08,
  1193. 0x0f, 0xd1, 0xbc, 0x60, 0x76, 0xb5, 0xbf, 0x09, 0xac, 0x5e, 0x67, 0x0d, 0x70, 0x39, 0x83, 0x4b,
  1194. 0xc1, 0x58, 0x8d, 0xd5, 0xa5, 0x20, 0x86, 0x08, 0xd5, 0xe4, 0x6f, 0xf4, 0x4e, 0xa9, 0x5d, 0xe5,
  1195. 0x33, 0xdf, 0xfe, 0x2a, 0xdf, 0x41, 0x8b, 0xc2, 0x45, 0xa3, 0x07, 0xe5, 0x6c, 0x25, 0xb3, 0x9a,
  1196. 0xab, 0x3e, 0xe4, 0xd9, 0x76, 0x4f, 0x34, 0xab, 0xd1, 0x53, 0xf2, 0x72, 0xec, 0xac, 0x02, 0x8c,
  1197. 0xbc, 0xad, 0x38, 0x43, 0x13, 0x5c, 0xbc, 0x99, 0xb8, 0xe9, 0x89, 0x50, 0xff, 0x83, 0x6b, 0xde,
  1198. 0xec, 0xb4, 0x9b, 0x1c, 0xc9, 0xa3, 0xec, 0x8e, 0xed, 0xf4, 0xc9, 0x47, 0x28, 0x57, 0x1b, 0xb8,
  1199. 0x3e, 0x64, 0x1c, 0x8f, 0x99, 0xbe, 0xeb, 0xe8, 0xae, 0x24, 0x10, 0x75, 0xd4, 0x62, 0x48, 0xa8,
  1200. 0xc4, 0xd7, 0x7e, 0x9b, 0x41, 0xf3, 0xda, 0x9f, 0x70, 0xf0, 0x9f, 0xa0, 0x7b, 0x8f, 0x1b, 0x9d,
  1201. 0xce, 0xc6, 0x56, 0xa3, 0xbb, 0xfb, 0xe5, 0x4e, 0xa3, 0x5b, 0xdb, 0x7e, 0xd2, 0xd9, 0x6d, 0xd0,
  1202. 0x6e, 0xad, 0xdd, 0xda, 0x6c, 0x6e, 0x15, 0x67, 0xca, 0xf7, 0x4f, 0xcf, 0x2a, 0x25, 0x4d, 0x23,
  1203. 0xf9, 0xb7, 0x96, 0x3f, 0x44, 0x38, 0xa1, 0xde, 0x6c, 0xd5, 0x1b, 0x3f, 0x2d, 0xa6, 0xca, 0xb7,
  1204. 0x4e, 0xcf, 0x2a, 0x45, 0x4d, 0x4b, 0x3c, 0xc1, 0xfd, 0x31, 0x7a, 0xeb, 0x22, 0xbb, 0xfb, 0x64,
  1205. 0xa7, 0xbe, 0xb1, 0xdb, 0x28, 0xa6, 0xcb, 0xe5, 0xd3, 0xb3, 0xca, 0x9d, 0xf3, 0x4a, 0xd2, 0x05,
  1206. 0x7f, 0x80, 0x6e, 0x25, 0x54, 0x69, 0xe3, 0xf3, 0x27, 0x8d, 0xce, 0x6e, 0x31, 0x53, 0xbe, 0x73,
  1207. 0x7a, 0x56, 0xc1, 0x9a, 0x56, 0x54, 0x26, 0xd6, 0xd1, 0xed, 0x73, 0x1a, 0x9d, 0x9d, 0x76, 0xab,
  1208. 0xd3, 0x28, 0x66, 0xcb, 0x77, 0x4f, 0xcf, 0x2a, 0x37, 0x13, 0x2a, 0x32, 0xab, 0xd4, 0xd0, 0x4a,
  1209. 0x42, 0xa7, 0xde, 0xfe, 0xa2, 0xb5, 0xdd, 0xde, 0xa8, 0x77, 0x77, 0x68, 0x7b, 0x8b, 0x36, 0x3a,
  1210. 0x9d, 0x62, 0xae, 0x6c, 0x9c, 0x9e, 0x55, 0xee, 0x69, 0xca, 0x17, 0x22, 0x7c, 0x0d, 0x2d, 0x27,
  1211. 0x8c, 0xec, 0x34, 0x5b, 0x5b, 0xc5, 0x7c, 0xf9, 0xe6, 0xe9, 0x59, 0xe5, 0x86, 0xa6, 0xc7, 0xcf,
  1212. 0xf2, 0xc2, 0xfe, 0xd5, 0xb6, 0xdb, 0x9d, 0x46, 0x71, 0xf6, 0xc2, 0xfe, 0xc1, 0x81, 0xaf, 0xfd,
  1213. 0x5d, 0x0a, 0xe1, 0x8b, 0x7f, 0x35, 0xc3, 0x1f, 0xa0, 0x52, 0x64, 0xa4, 0xd6, 0x7e, 0xbc, 0xc3,
  1214. 0xd7, 0xd9, 0x6c, 0xb7, 0xba, 0xad, 0x76, 0xab, 0x51, 0x9c, 0x49, 0xec, 0xaa, 0xa6, 0xd5, 0x72,
  1215. 0x1d, 0x86, 0xdb, 0xe8, 0xee, 0x65, 0x9a, 0xdb, 0xcf, 0xde, 0x2f, 0xa6, 0xca, 0xeb, 0xa7, 0x67,
  1216. 0x95, 0xdb, 0x17, 0x15, 0xb7, 0x9f, 0xbd, 0xff, 0xbb, 0xbf, 0xfa, 0xee, 0xe5, 0x82, 0x35, 0xde,
  1217. 0x00, 0xe9, 0x4b, 0x7b, 0x0f, 0xdd, 0xd2, 0x0d, 0x3f, 0x6e, 0xec, 0x6e, 0xd4, 0x37, 0x76, 0x37,
  1218. 0x8a, 0x33, 0xe2, 0x0c, 0x34, 0xea, 0x63, 0x16, 0x98, 0x90, 0x76, 0xbf, 0x87, 0x96, 0x13, 0x5f,
  1219. 0xd1, 0x78, 0xda, 0xa0, 0x91, 0x47, 0xe9, 0xeb, 0x67, 0x87, 0xcc, 0xc3, 0xdf, 0x47, 0x58, 0x27,
  1220. 0x6f, 0x6c, 0x7f, 0xb1, 0xf1, 0x65, 0xa7, 0x98, 0x2e, 0xdf, 0x3e, 0x3d, 0xab, 0x2c, 0x6b, 0xec,
  1221. 0x8d, 0xc1, 0x91, 0x79, 0xe2, 0xaf, 0xfd, 0x73, 0x1a, 0x2d, 0xe8, 0xef, 0x46, 0xf8, 0xfb, 0xe8,
  1222. 0xe6, 0x66, 0x73, 0x9b, 0x7b, 0xe2, 0x66, 0x5b, 0x9c, 0x00, 0x1f, 0x16, 0x67, 0xc4, 0x74, 0x3a,
  1223. 0x95, 0xff, 0xc6, 0x7f, 0x84, 0x4a, 0xe7, 0xe8, 0xf5, 0x26, 0x6d, 0xd4, 0x76, 0xdb, 0xf4, 0xcb,
  1224. 0x62, 0xaa, 0xfc, 0x16, 0xdf, 0x30, 0x5d, 0xa7, 0x6e, 0x7b, 0x90, 0x82, 0x4e, 0xf0, 0x27, 0xe8,
  1225. 0xde, 0x39, 0xc5, 0xce, 0x97, 0x8f, 0xb7, 0x9b, 0xad, 0xcf, 0xc4, 0x7c, 0xe9, 0xf2, 0xdb, 0xa7,
  1226. 0x67, 0x95, 0xbb, 0xba, 0x6e, 0x47, 0x3c, 0xc5, 0x71, 0xa8, 0x90, 0xc2, 0x8f, 0x50, 0xe5, 0x0a,
  1227. 0xfd, 0x78, 0x01, 0x99, 0x32, 0x39, 0x3d, 0xab, 0xdc, 0xbf, 0xc4, 0x88, 0x5a, 0x47, 0x21, 0x85,
  1228. 0x7f, 0x88, 0xee, 0x5c, 0x6e, 0x29, 0x8a, 0x8b, 0x4b, 0xf4, 0xd7, 0xfe, 0x35, 0x85, 0xe6, 0x54,
  1229. 0xd5, 0xe3, 0x9b, 0xd6, 0xa0, 0xb4, 0xcd, 0x93, 0x44, 0xbd, 0xd1, 0x6d, 0xb5, 0xbb, 0x30, 0x8a,
  1230. 0x36, 0x4d, 0xf1, 0x5a, 0x2e, 0xfc, 0xe4, 0x3e, 0xae, 0xd1, 0xb7, 0x1a, 0xad, 0x06, 0x6d, 0xd6,
  1231. 0xa2, 0x13, 0x55, 0xec, 0x2d, 0xe6, 0x30, 0xcf, 0xee, 0xe1, 0xf7, 0xd1, 0xdd, 0xa4, 0xf1, 0xce,
  1232. 0x93, 0xda, 0xa3, 0x68, 0x97, 0x60, 0x81, 0xda, 0x04, 0x9d, 0x71, 0xef, 0x00, 0x0e, 0xe6, 0x47,
  1233. 0x09, 0xad, 0x66, 0xeb, 0xe9, 0xc6, 0x76, 0xb3, 0x2e, 0xb4, 0x32, 0xe5, 0xd2, 0xe9, 0x59, 0xe5,
  1234. 0x96, 0xd2, 0x92, 0x0f, 0x1c, 0x5c, 0x6d, 0xed, 0x77, 0x29, 0xb4, 0xf2, 0xf5, 0xc5, 0x0b, 0x7f,
  1235. 0x81, 0xde, 0x81, 0xfd, 0xba, 0x90, 0x0a, 0x64, 0xde, 0x12, 0x7b, 0xb8, 0xb1, 0xb3, 0xd3, 0x68,
  1236. 0xd5, 0x8b, 0x33, 0xe5, 0xd5, 0xd3, 0xb3, 0xca, 0x83, 0xaf, 0x37, 0xb9, 0x31, 0x1a, 0x31, 0xc7,
  1237. 0xba, 0xa6, 0xe1, 0xcd, 0x36, 0xdd, 0x6a, 0xec, 0x16, 0x53, 0xd7, 0x31, 0xbc, 0xe9, 0x7a, 0x7d,
  1238. 0x16, 0x54, 0x1f, 0xbf, 0xf8, 0x6a, 0x65, 0xe6, 0xe5, 0x57, 0x2b, 0x33, 0x2f, 0x5e, 0xad, 0xa4,
  1239. 0x5e, 0xbe, 0x5a, 0x49, 0xfd, 0xf5, 0xeb, 0x95, 0x99, 0xdf, 0xbc, 0x5e, 0x49, 0xbd, 0x7c, 0xbd,
  1240. 0x32, 0xf3, 0x6f, 0xaf, 0x57, 0x66, 0x9e, 0x7d, 0xaf, 0x6f, 0x07, 0x07, 0xe3, 0xbd, 0x87, 0x3d,
  1241. 0x77, 0xf8, 0xae, 0x7f, 0xe2, 0xf4, 0x82, 0x03, 0xdb, 0xe9, 0x6b, 0xbf, 0xf4, 0xff, 0xd9, 0xb1,
  1242. 0x97, 0x87, 0x5f, 0x3f, 0xfc, 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x35, 0x55, 0x08, 0x69, 0xf0,
  1243. 0x21, 0x00, 0x00,
  1244. }
  1245. func (m *Hello) Marshal() (dAtA []byte, err error) {
  1246. size := m.ProtoSize()
  1247. dAtA = make([]byte, size)
  1248. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1249. if err != nil {
  1250. return nil, err
  1251. }
  1252. return dAtA[:n], nil
  1253. }
  1254. func (m *Hello) MarshalTo(dAtA []byte) (int, error) {
  1255. size := m.ProtoSize()
  1256. return m.MarshalToSizedBuffer(dAtA[:size])
  1257. }
  1258. func (m *Hello) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1259. i := len(dAtA)
  1260. _ = i
  1261. var l int
  1262. _ = l
  1263. if m.Timestamp != 0 {
  1264. i = encodeVarintBep(dAtA, i, uint64(m.Timestamp))
  1265. i--
  1266. dAtA[i] = 0x28
  1267. }
  1268. if m.NumConnections != 0 {
  1269. i = encodeVarintBep(dAtA, i, uint64(m.NumConnections))
  1270. i--
  1271. dAtA[i] = 0x20
  1272. }
  1273. if len(m.ClientVersion) > 0 {
  1274. i -= len(m.ClientVersion)
  1275. copy(dAtA[i:], m.ClientVersion)
  1276. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientVersion)))
  1277. i--
  1278. dAtA[i] = 0x1a
  1279. }
  1280. if len(m.ClientName) > 0 {
  1281. i -= len(m.ClientName)
  1282. copy(dAtA[i:], m.ClientName)
  1283. i = encodeVarintBep(dAtA, i, uint64(len(m.ClientName)))
  1284. i--
  1285. dAtA[i] = 0x12
  1286. }
  1287. if len(m.DeviceName) > 0 {
  1288. i -= len(m.DeviceName)
  1289. copy(dAtA[i:], m.DeviceName)
  1290. i = encodeVarintBep(dAtA, i, uint64(len(m.DeviceName)))
  1291. i--
  1292. dAtA[i] = 0xa
  1293. }
  1294. return len(dAtA) - i, nil
  1295. }
  1296. func (m *Header) Marshal() (dAtA []byte, err error) {
  1297. size := m.ProtoSize()
  1298. dAtA = make([]byte, size)
  1299. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1300. if err != nil {
  1301. return nil, err
  1302. }
  1303. return dAtA[:n], nil
  1304. }
  1305. func (m *Header) MarshalTo(dAtA []byte) (int, error) {
  1306. size := m.ProtoSize()
  1307. return m.MarshalToSizedBuffer(dAtA[:size])
  1308. }
  1309. func (m *Header) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1310. i := len(dAtA)
  1311. _ = i
  1312. var l int
  1313. _ = l
  1314. if m.Compression != 0 {
  1315. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  1316. i--
  1317. dAtA[i] = 0x10
  1318. }
  1319. if m.Type != 0 {
  1320. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  1321. i--
  1322. dAtA[i] = 0x8
  1323. }
  1324. return len(dAtA) - i, nil
  1325. }
  1326. func (m *ClusterConfig) Marshal() (dAtA []byte, err error) {
  1327. size := m.ProtoSize()
  1328. dAtA = make([]byte, size)
  1329. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1330. if err != nil {
  1331. return nil, err
  1332. }
  1333. return dAtA[:n], nil
  1334. }
  1335. func (m *ClusterConfig) MarshalTo(dAtA []byte) (int, error) {
  1336. size := m.ProtoSize()
  1337. return m.MarshalToSizedBuffer(dAtA[:size])
  1338. }
  1339. func (m *ClusterConfig) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1340. i := len(dAtA)
  1341. _ = i
  1342. var l int
  1343. _ = l
  1344. if m.Secondary {
  1345. i--
  1346. if m.Secondary {
  1347. dAtA[i] = 1
  1348. } else {
  1349. dAtA[i] = 0
  1350. }
  1351. i--
  1352. dAtA[i] = 0x10
  1353. }
  1354. if len(m.Folders) > 0 {
  1355. for iNdEx := len(m.Folders) - 1; iNdEx >= 0; iNdEx-- {
  1356. {
  1357. size, err := m.Folders[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1358. if err != nil {
  1359. return 0, err
  1360. }
  1361. i -= size
  1362. i = encodeVarintBep(dAtA, i, uint64(size))
  1363. }
  1364. i--
  1365. dAtA[i] = 0xa
  1366. }
  1367. }
  1368. return len(dAtA) - i, nil
  1369. }
  1370. func (m *Folder) Marshal() (dAtA []byte, err error) {
  1371. size := m.ProtoSize()
  1372. dAtA = make([]byte, size)
  1373. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1374. if err != nil {
  1375. return nil, err
  1376. }
  1377. return dAtA[:n], nil
  1378. }
  1379. func (m *Folder) MarshalTo(dAtA []byte) (int, error) {
  1380. size := m.ProtoSize()
  1381. return m.MarshalToSizedBuffer(dAtA[:size])
  1382. }
  1383. func (m *Folder) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1384. i := len(dAtA)
  1385. _ = i
  1386. var l int
  1387. _ = l
  1388. if len(m.Devices) > 0 {
  1389. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  1390. {
  1391. size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1392. if err != nil {
  1393. return 0, err
  1394. }
  1395. i -= size
  1396. i = encodeVarintBep(dAtA, i, uint64(size))
  1397. }
  1398. i--
  1399. dAtA[i] = 0x1
  1400. i--
  1401. dAtA[i] = 0x82
  1402. }
  1403. }
  1404. if m.Paused {
  1405. i--
  1406. if m.Paused {
  1407. dAtA[i] = 1
  1408. } else {
  1409. dAtA[i] = 0
  1410. }
  1411. i--
  1412. dAtA[i] = 0x38
  1413. }
  1414. if m.DisableTempIndexes {
  1415. i--
  1416. if m.DisableTempIndexes {
  1417. dAtA[i] = 1
  1418. } else {
  1419. dAtA[i] = 0
  1420. }
  1421. i--
  1422. dAtA[i] = 0x30
  1423. }
  1424. if m.IgnoreDelete {
  1425. i--
  1426. if m.IgnoreDelete {
  1427. dAtA[i] = 1
  1428. } else {
  1429. dAtA[i] = 0
  1430. }
  1431. i--
  1432. dAtA[i] = 0x28
  1433. }
  1434. if m.IgnorePermissions {
  1435. i--
  1436. if m.IgnorePermissions {
  1437. dAtA[i] = 1
  1438. } else {
  1439. dAtA[i] = 0
  1440. }
  1441. i--
  1442. dAtA[i] = 0x20
  1443. }
  1444. if m.ReadOnly {
  1445. i--
  1446. if m.ReadOnly {
  1447. dAtA[i] = 1
  1448. } else {
  1449. dAtA[i] = 0
  1450. }
  1451. i--
  1452. dAtA[i] = 0x18
  1453. }
  1454. if len(m.Label) > 0 {
  1455. i -= len(m.Label)
  1456. copy(dAtA[i:], m.Label)
  1457. i = encodeVarintBep(dAtA, i, uint64(len(m.Label)))
  1458. i--
  1459. dAtA[i] = 0x12
  1460. }
  1461. if len(m.ID) > 0 {
  1462. i -= len(m.ID)
  1463. copy(dAtA[i:], m.ID)
  1464. i = encodeVarintBep(dAtA, i, uint64(len(m.ID)))
  1465. i--
  1466. dAtA[i] = 0xa
  1467. }
  1468. return len(dAtA) - i, nil
  1469. }
  1470. func (m *Device) Marshal() (dAtA []byte, err error) {
  1471. size := m.ProtoSize()
  1472. dAtA = make([]byte, size)
  1473. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1474. if err != nil {
  1475. return nil, err
  1476. }
  1477. return dAtA[:n], nil
  1478. }
  1479. func (m *Device) MarshalTo(dAtA []byte) (int, error) {
  1480. size := m.ProtoSize()
  1481. return m.MarshalToSizedBuffer(dAtA[:size])
  1482. }
  1483. func (m *Device) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1484. i := len(dAtA)
  1485. _ = i
  1486. var l int
  1487. _ = l
  1488. if len(m.EncryptionPasswordToken) > 0 {
  1489. i -= len(m.EncryptionPasswordToken)
  1490. copy(dAtA[i:], m.EncryptionPasswordToken)
  1491. i = encodeVarintBep(dAtA, i, uint64(len(m.EncryptionPasswordToken)))
  1492. i--
  1493. dAtA[i] = 0x52
  1494. }
  1495. if m.SkipIntroductionRemovals {
  1496. i--
  1497. if m.SkipIntroductionRemovals {
  1498. dAtA[i] = 1
  1499. } else {
  1500. dAtA[i] = 0
  1501. }
  1502. i--
  1503. dAtA[i] = 0x48
  1504. }
  1505. if m.IndexID != 0 {
  1506. i = encodeVarintBep(dAtA, i, uint64(m.IndexID))
  1507. i--
  1508. dAtA[i] = 0x40
  1509. }
  1510. if m.Introducer {
  1511. i--
  1512. if m.Introducer {
  1513. dAtA[i] = 1
  1514. } else {
  1515. dAtA[i] = 0
  1516. }
  1517. i--
  1518. dAtA[i] = 0x38
  1519. }
  1520. if m.MaxSequence != 0 {
  1521. i = encodeVarintBep(dAtA, i, uint64(m.MaxSequence))
  1522. i--
  1523. dAtA[i] = 0x30
  1524. }
  1525. if len(m.CertName) > 0 {
  1526. i -= len(m.CertName)
  1527. copy(dAtA[i:], m.CertName)
  1528. i = encodeVarintBep(dAtA, i, uint64(len(m.CertName)))
  1529. i--
  1530. dAtA[i] = 0x2a
  1531. }
  1532. if m.Compression != 0 {
  1533. i = encodeVarintBep(dAtA, i, uint64(m.Compression))
  1534. i--
  1535. dAtA[i] = 0x20
  1536. }
  1537. if len(m.Addresses) > 0 {
  1538. for iNdEx := len(m.Addresses) - 1; iNdEx >= 0; iNdEx-- {
  1539. i -= len(m.Addresses[iNdEx])
  1540. copy(dAtA[i:], m.Addresses[iNdEx])
  1541. i = encodeVarintBep(dAtA, i, uint64(len(m.Addresses[iNdEx])))
  1542. i--
  1543. dAtA[i] = 0x1a
  1544. }
  1545. }
  1546. if len(m.Name) > 0 {
  1547. i -= len(m.Name)
  1548. copy(dAtA[i:], m.Name)
  1549. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1550. i--
  1551. dAtA[i] = 0x12
  1552. }
  1553. {
  1554. size := m.ID.ProtoSize()
  1555. i -= size
  1556. if _, err := m.ID.MarshalTo(dAtA[i:]); err != nil {
  1557. return 0, err
  1558. }
  1559. i = encodeVarintBep(dAtA, i, uint64(size))
  1560. }
  1561. i--
  1562. dAtA[i] = 0xa
  1563. return len(dAtA) - i, nil
  1564. }
  1565. func (m *Index) Marshal() (dAtA []byte, err error) {
  1566. size := m.ProtoSize()
  1567. dAtA = make([]byte, size)
  1568. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1569. if err != nil {
  1570. return nil, err
  1571. }
  1572. return dAtA[:n], nil
  1573. }
  1574. func (m *Index) MarshalTo(dAtA []byte) (int, error) {
  1575. size := m.ProtoSize()
  1576. return m.MarshalToSizedBuffer(dAtA[:size])
  1577. }
  1578. func (m *Index) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1579. i := len(dAtA)
  1580. _ = i
  1581. var l int
  1582. _ = l
  1583. if len(m.Files) > 0 {
  1584. for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- {
  1585. {
  1586. size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1587. if err != nil {
  1588. return 0, err
  1589. }
  1590. i -= size
  1591. i = encodeVarintBep(dAtA, i, uint64(size))
  1592. }
  1593. i--
  1594. dAtA[i] = 0x12
  1595. }
  1596. }
  1597. if len(m.Folder) > 0 {
  1598. i -= len(m.Folder)
  1599. copy(dAtA[i:], m.Folder)
  1600. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1601. i--
  1602. dAtA[i] = 0xa
  1603. }
  1604. return len(dAtA) - i, nil
  1605. }
  1606. func (m *IndexUpdate) Marshal() (dAtA []byte, err error) {
  1607. size := m.ProtoSize()
  1608. dAtA = make([]byte, size)
  1609. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1610. if err != nil {
  1611. return nil, err
  1612. }
  1613. return dAtA[:n], nil
  1614. }
  1615. func (m *IndexUpdate) MarshalTo(dAtA []byte) (int, error) {
  1616. size := m.ProtoSize()
  1617. return m.MarshalToSizedBuffer(dAtA[:size])
  1618. }
  1619. func (m *IndexUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1620. i := len(dAtA)
  1621. _ = i
  1622. var l int
  1623. _ = l
  1624. if len(m.Files) > 0 {
  1625. for iNdEx := len(m.Files) - 1; iNdEx >= 0; iNdEx-- {
  1626. {
  1627. size, err := m.Files[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1628. if err != nil {
  1629. return 0, err
  1630. }
  1631. i -= size
  1632. i = encodeVarintBep(dAtA, i, uint64(size))
  1633. }
  1634. i--
  1635. dAtA[i] = 0x12
  1636. }
  1637. }
  1638. if len(m.Folder) > 0 {
  1639. i -= len(m.Folder)
  1640. copy(dAtA[i:], m.Folder)
  1641. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  1642. i--
  1643. dAtA[i] = 0xa
  1644. }
  1645. return len(dAtA) - i, nil
  1646. }
  1647. func (m *FileInfo) Marshal() (dAtA []byte, err error) {
  1648. size := m.ProtoSize()
  1649. dAtA = make([]byte, size)
  1650. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1651. if err != nil {
  1652. return nil, err
  1653. }
  1654. return dAtA[:n], nil
  1655. }
  1656. func (m *FileInfo) MarshalTo(dAtA []byte) (int, error) {
  1657. size := m.ProtoSize()
  1658. return m.MarshalToSizedBuffer(dAtA[:size])
  1659. }
  1660. func (m *FileInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1661. i := len(dAtA)
  1662. _ = i
  1663. var l int
  1664. _ = l
  1665. if m.EncryptionTrailerSize != 0 {
  1666. i = encodeVarintBep(dAtA, i, uint64(m.EncryptionTrailerSize))
  1667. i--
  1668. dAtA[i] = 0x3e
  1669. i--
  1670. dAtA[i] = 0xd8
  1671. }
  1672. if m.InodeChangeNs != 0 {
  1673. i = encodeVarintBep(dAtA, i, uint64(m.InodeChangeNs))
  1674. i--
  1675. dAtA[i] = 0x3e
  1676. i--
  1677. dAtA[i] = 0xd0
  1678. }
  1679. if len(m.VersionHash) > 0 {
  1680. i -= len(m.VersionHash)
  1681. copy(dAtA[i:], m.VersionHash)
  1682. i = encodeVarintBep(dAtA, i, uint64(len(m.VersionHash)))
  1683. i--
  1684. dAtA[i] = 0x3e
  1685. i--
  1686. dAtA[i] = 0xca
  1687. }
  1688. if m.LocalFlags != 0 {
  1689. i = encodeVarintBep(dAtA, i, uint64(m.LocalFlags))
  1690. i--
  1691. dAtA[i] = 0x3e
  1692. i--
  1693. dAtA[i] = 0xc0
  1694. }
  1695. if len(m.Encrypted) > 0 {
  1696. i -= len(m.Encrypted)
  1697. copy(dAtA[i:], m.Encrypted)
  1698. i = encodeVarintBep(dAtA, i, uint64(len(m.Encrypted)))
  1699. i--
  1700. dAtA[i] = 0x1
  1701. i--
  1702. dAtA[i] = 0x9a
  1703. }
  1704. if len(m.BlocksHash) > 0 {
  1705. i -= len(m.BlocksHash)
  1706. copy(dAtA[i:], m.BlocksHash)
  1707. i = encodeVarintBep(dAtA, i, uint64(len(m.BlocksHash)))
  1708. i--
  1709. dAtA[i] = 0x1
  1710. i--
  1711. dAtA[i] = 0x92
  1712. }
  1713. if len(m.SymlinkTarget) > 0 {
  1714. i -= len(m.SymlinkTarget)
  1715. copy(dAtA[i:], m.SymlinkTarget)
  1716. i = encodeVarintBep(dAtA, i, uint64(len(m.SymlinkTarget)))
  1717. i--
  1718. dAtA[i] = 0x1
  1719. i--
  1720. dAtA[i] = 0x8a
  1721. }
  1722. if len(m.Blocks) > 0 {
  1723. for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
  1724. {
  1725. size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1726. if err != nil {
  1727. return 0, err
  1728. }
  1729. i -= size
  1730. i = encodeVarintBep(dAtA, i, uint64(size))
  1731. }
  1732. i--
  1733. dAtA[i] = 0x1
  1734. i--
  1735. dAtA[i] = 0x82
  1736. }
  1737. }
  1738. {
  1739. size, err := m.Platform.MarshalToSizedBuffer(dAtA[:i])
  1740. if err != nil {
  1741. return 0, err
  1742. }
  1743. i -= size
  1744. i = encodeVarintBep(dAtA, i, uint64(size))
  1745. }
  1746. i--
  1747. dAtA[i] = 0x72
  1748. if m.RawBlockSize != 0 {
  1749. i = encodeVarintBep(dAtA, i, uint64(m.RawBlockSize))
  1750. i--
  1751. dAtA[i] = 0x68
  1752. }
  1753. if m.ModifiedBy != 0 {
  1754. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedBy))
  1755. i--
  1756. dAtA[i] = 0x60
  1757. }
  1758. if m.ModifiedNs != 0 {
  1759. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedNs))
  1760. i--
  1761. dAtA[i] = 0x58
  1762. }
  1763. if m.Sequence != 0 {
  1764. i = encodeVarintBep(dAtA, i, uint64(m.Sequence))
  1765. i--
  1766. dAtA[i] = 0x50
  1767. }
  1768. {
  1769. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  1770. if err != nil {
  1771. return 0, err
  1772. }
  1773. i -= size
  1774. i = encodeVarintBep(dAtA, i, uint64(size))
  1775. }
  1776. i--
  1777. dAtA[i] = 0x4a
  1778. if m.NoPermissions {
  1779. i--
  1780. if m.NoPermissions {
  1781. dAtA[i] = 1
  1782. } else {
  1783. dAtA[i] = 0
  1784. }
  1785. i--
  1786. dAtA[i] = 0x40
  1787. }
  1788. if m.RawInvalid {
  1789. i--
  1790. if m.RawInvalid {
  1791. dAtA[i] = 1
  1792. } else {
  1793. dAtA[i] = 0
  1794. }
  1795. i--
  1796. dAtA[i] = 0x38
  1797. }
  1798. if m.Deleted {
  1799. i--
  1800. if m.Deleted {
  1801. dAtA[i] = 1
  1802. } else {
  1803. dAtA[i] = 0
  1804. }
  1805. i--
  1806. dAtA[i] = 0x30
  1807. }
  1808. if m.ModifiedS != 0 {
  1809. i = encodeVarintBep(dAtA, i, uint64(m.ModifiedS))
  1810. i--
  1811. dAtA[i] = 0x28
  1812. }
  1813. if m.Permissions != 0 {
  1814. i = encodeVarintBep(dAtA, i, uint64(m.Permissions))
  1815. i--
  1816. dAtA[i] = 0x20
  1817. }
  1818. if m.Size != 0 {
  1819. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  1820. i--
  1821. dAtA[i] = 0x18
  1822. }
  1823. if m.Type != 0 {
  1824. i = encodeVarintBep(dAtA, i, uint64(m.Type))
  1825. i--
  1826. dAtA[i] = 0x10
  1827. }
  1828. if len(m.Name) > 0 {
  1829. i -= len(m.Name)
  1830. copy(dAtA[i:], m.Name)
  1831. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  1832. i--
  1833. dAtA[i] = 0xa
  1834. }
  1835. return len(dAtA) - i, nil
  1836. }
  1837. func (m *BlockInfo) Marshal() (dAtA []byte, err error) {
  1838. size := m.ProtoSize()
  1839. dAtA = make([]byte, size)
  1840. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1841. if err != nil {
  1842. return nil, err
  1843. }
  1844. return dAtA[:n], nil
  1845. }
  1846. func (m *BlockInfo) MarshalTo(dAtA []byte) (int, error) {
  1847. size := m.ProtoSize()
  1848. return m.MarshalToSizedBuffer(dAtA[:size])
  1849. }
  1850. func (m *BlockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1851. i := len(dAtA)
  1852. _ = i
  1853. var l int
  1854. _ = l
  1855. if m.WeakHash != 0 {
  1856. i = encodeVarintBep(dAtA, i, uint64(m.WeakHash))
  1857. i--
  1858. dAtA[i] = 0x20
  1859. }
  1860. if len(m.Hash) > 0 {
  1861. i -= len(m.Hash)
  1862. copy(dAtA[i:], m.Hash)
  1863. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  1864. i--
  1865. dAtA[i] = 0x1a
  1866. }
  1867. if m.Size != 0 {
  1868. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  1869. i--
  1870. dAtA[i] = 0x10
  1871. }
  1872. if m.Offset != 0 {
  1873. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  1874. i--
  1875. dAtA[i] = 0x8
  1876. }
  1877. return len(dAtA) - i, nil
  1878. }
  1879. func (m *Vector) Marshal() (dAtA []byte, err error) {
  1880. size := m.ProtoSize()
  1881. dAtA = make([]byte, size)
  1882. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1883. if err != nil {
  1884. return nil, err
  1885. }
  1886. return dAtA[:n], nil
  1887. }
  1888. func (m *Vector) MarshalTo(dAtA []byte) (int, error) {
  1889. size := m.ProtoSize()
  1890. return m.MarshalToSizedBuffer(dAtA[:size])
  1891. }
  1892. func (m *Vector) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1893. i := len(dAtA)
  1894. _ = i
  1895. var l int
  1896. _ = l
  1897. if len(m.Counters) > 0 {
  1898. for iNdEx := len(m.Counters) - 1; iNdEx >= 0; iNdEx-- {
  1899. {
  1900. size, err := m.Counters[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1901. if err != nil {
  1902. return 0, err
  1903. }
  1904. i -= size
  1905. i = encodeVarintBep(dAtA, i, uint64(size))
  1906. }
  1907. i--
  1908. dAtA[i] = 0xa
  1909. }
  1910. }
  1911. return len(dAtA) - i, nil
  1912. }
  1913. func (m *Counter) Marshal() (dAtA []byte, err error) {
  1914. size := m.ProtoSize()
  1915. dAtA = make([]byte, size)
  1916. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1917. if err != nil {
  1918. return nil, err
  1919. }
  1920. return dAtA[:n], nil
  1921. }
  1922. func (m *Counter) MarshalTo(dAtA []byte) (int, error) {
  1923. size := m.ProtoSize()
  1924. return m.MarshalToSizedBuffer(dAtA[:size])
  1925. }
  1926. func (m *Counter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1927. i := len(dAtA)
  1928. _ = i
  1929. var l int
  1930. _ = l
  1931. if m.Value != 0 {
  1932. i = encodeVarintBep(dAtA, i, uint64(m.Value))
  1933. i--
  1934. dAtA[i] = 0x10
  1935. }
  1936. if m.ID != 0 {
  1937. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  1938. i--
  1939. dAtA[i] = 0x8
  1940. }
  1941. return len(dAtA) - i, nil
  1942. }
  1943. func (m *PlatformData) Marshal() (dAtA []byte, err error) {
  1944. size := m.ProtoSize()
  1945. dAtA = make([]byte, size)
  1946. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1947. if err != nil {
  1948. return nil, err
  1949. }
  1950. return dAtA[:n], nil
  1951. }
  1952. func (m *PlatformData) MarshalTo(dAtA []byte) (int, error) {
  1953. size := m.ProtoSize()
  1954. return m.MarshalToSizedBuffer(dAtA[:size])
  1955. }
  1956. func (m *PlatformData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1957. i := len(dAtA)
  1958. _ = i
  1959. var l int
  1960. _ = l
  1961. if m.NetBSD != nil {
  1962. {
  1963. size, err := m.NetBSD.MarshalToSizedBuffer(dAtA[:i])
  1964. if err != nil {
  1965. return 0, err
  1966. }
  1967. i -= size
  1968. i = encodeVarintBep(dAtA, i, uint64(size))
  1969. }
  1970. i--
  1971. dAtA[i] = 0x32
  1972. }
  1973. if m.FreeBSD != nil {
  1974. {
  1975. size, err := m.FreeBSD.MarshalToSizedBuffer(dAtA[:i])
  1976. if err != nil {
  1977. return 0, err
  1978. }
  1979. i -= size
  1980. i = encodeVarintBep(dAtA, i, uint64(size))
  1981. }
  1982. i--
  1983. dAtA[i] = 0x2a
  1984. }
  1985. if m.Darwin != nil {
  1986. {
  1987. size, err := m.Darwin.MarshalToSizedBuffer(dAtA[:i])
  1988. if err != nil {
  1989. return 0, err
  1990. }
  1991. i -= size
  1992. i = encodeVarintBep(dAtA, i, uint64(size))
  1993. }
  1994. i--
  1995. dAtA[i] = 0x22
  1996. }
  1997. if m.Linux != nil {
  1998. {
  1999. size, err := m.Linux.MarshalToSizedBuffer(dAtA[:i])
  2000. if err != nil {
  2001. return 0, err
  2002. }
  2003. i -= size
  2004. i = encodeVarintBep(dAtA, i, uint64(size))
  2005. }
  2006. i--
  2007. dAtA[i] = 0x1a
  2008. }
  2009. if m.Windows != nil {
  2010. {
  2011. size, err := m.Windows.MarshalToSizedBuffer(dAtA[:i])
  2012. if err != nil {
  2013. return 0, err
  2014. }
  2015. i -= size
  2016. i = encodeVarintBep(dAtA, i, uint64(size))
  2017. }
  2018. i--
  2019. dAtA[i] = 0x12
  2020. }
  2021. if m.Unix != nil {
  2022. {
  2023. size, err := m.Unix.MarshalToSizedBuffer(dAtA[:i])
  2024. if err != nil {
  2025. return 0, err
  2026. }
  2027. i -= size
  2028. i = encodeVarintBep(dAtA, i, uint64(size))
  2029. }
  2030. i--
  2031. dAtA[i] = 0xa
  2032. }
  2033. return len(dAtA) - i, nil
  2034. }
  2035. func (m *UnixData) Marshal() (dAtA []byte, err error) {
  2036. size := m.ProtoSize()
  2037. dAtA = make([]byte, size)
  2038. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2039. if err != nil {
  2040. return nil, err
  2041. }
  2042. return dAtA[:n], nil
  2043. }
  2044. func (m *UnixData) MarshalTo(dAtA []byte) (int, error) {
  2045. size := m.ProtoSize()
  2046. return m.MarshalToSizedBuffer(dAtA[:size])
  2047. }
  2048. func (m *UnixData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2049. i := len(dAtA)
  2050. _ = i
  2051. var l int
  2052. _ = l
  2053. if m.GID != 0 {
  2054. i = encodeVarintBep(dAtA, i, uint64(m.GID))
  2055. i--
  2056. dAtA[i] = 0x20
  2057. }
  2058. if m.UID != 0 {
  2059. i = encodeVarintBep(dAtA, i, uint64(m.UID))
  2060. i--
  2061. dAtA[i] = 0x18
  2062. }
  2063. if len(m.GroupName) > 0 {
  2064. i -= len(m.GroupName)
  2065. copy(dAtA[i:], m.GroupName)
  2066. i = encodeVarintBep(dAtA, i, uint64(len(m.GroupName)))
  2067. i--
  2068. dAtA[i] = 0x12
  2069. }
  2070. if len(m.OwnerName) > 0 {
  2071. i -= len(m.OwnerName)
  2072. copy(dAtA[i:], m.OwnerName)
  2073. i = encodeVarintBep(dAtA, i, uint64(len(m.OwnerName)))
  2074. i--
  2075. dAtA[i] = 0xa
  2076. }
  2077. return len(dAtA) - i, nil
  2078. }
  2079. func (m *WindowsData) Marshal() (dAtA []byte, err error) {
  2080. size := m.ProtoSize()
  2081. dAtA = make([]byte, size)
  2082. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2083. if err != nil {
  2084. return nil, err
  2085. }
  2086. return dAtA[:n], nil
  2087. }
  2088. func (m *WindowsData) MarshalTo(dAtA []byte) (int, error) {
  2089. size := m.ProtoSize()
  2090. return m.MarshalToSizedBuffer(dAtA[:size])
  2091. }
  2092. func (m *WindowsData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2093. i := len(dAtA)
  2094. _ = i
  2095. var l int
  2096. _ = l
  2097. if m.OwnerIsGroup {
  2098. i--
  2099. if m.OwnerIsGroup {
  2100. dAtA[i] = 1
  2101. } else {
  2102. dAtA[i] = 0
  2103. }
  2104. i--
  2105. dAtA[i] = 0x10
  2106. }
  2107. if len(m.OwnerName) > 0 {
  2108. i -= len(m.OwnerName)
  2109. copy(dAtA[i:], m.OwnerName)
  2110. i = encodeVarintBep(dAtA, i, uint64(len(m.OwnerName)))
  2111. i--
  2112. dAtA[i] = 0xa
  2113. }
  2114. return len(dAtA) - i, nil
  2115. }
  2116. func (m *XattrData) Marshal() (dAtA []byte, err error) {
  2117. size := m.ProtoSize()
  2118. dAtA = make([]byte, size)
  2119. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2120. if err != nil {
  2121. return nil, err
  2122. }
  2123. return dAtA[:n], nil
  2124. }
  2125. func (m *XattrData) MarshalTo(dAtA []byte) (int, error) {
  2126. size := m.ProtoSize()
  2127. return m.MarshalToSizedBuffer(dAtA[:size])
  2128. }
  2129. func (m *XattrData) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2130. i := len(dAtA)
  2131. _ = i
  2132. var l int
  2133. _ = l
  2134. if len(m.Xattrs) > 0 {
  2135. for iNdEx := len(m.Xattrs) - 1; iNdEx >= 0; iNdEx-- {
  2136. {
  2137. size, err := m.Xattrs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2138. if err != nil {
  2139. return 0, err
  2140. }
  2141. i -= size
  2142. i = encodeVarintBep(dAtA, i, uint64(size))
  2143. }
  2144. i--
  2145. dAtA[i] = 0xa
  2146. }
  2147. }
  2148. return len(dAtA) - i, nil
  2149. }
  2150. func (m *Xattr) Marshal() (dAtA []byte, err error) {
  2151. size := m.ProtoSize()
  2152. dAtA = make([]byte, size)
  2153. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2154. if err != nil {
  2155. return nil, err
  2156. }
  2157. return dAtA[:n], nil
  2158. }
  2159. func (m *Xattr) MarshalTo(dAtA []byte) (int, error) {
  2160. size := m.ProtoSize()
  2161. return m.MarshalToSizedBuffer(dAtA[:size])
  2162. }
  2163. func (m *Xattr) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2164. i := len(dAtA)
  2165. _ = i
  2166. var l int
  2167. _ = l
  2168. if len(m.Value) > 0 {
  2169. i -= len(m.Value)
  2170. copy(dAtA[i:], m.Value)
  2171. i = encodeVarintBep(dAtA, i, uint64(len(m.Value)))
  2172. i--
  2173. dAtA[i] = 0x12
  2174. }
  2175. if len(m.Name) > 0 {
  2176. i -= len(m.Name)
  2177. copy(dAtA[i:], m.Name)
  2178. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  2179. i--
  2180. dAtA[i] = 0xa
  2181. }
  2182. return len(dAtA) - i, nil
  2183. }
  2184. func (m *Request) Marshal() (dAtA []byte, err error) {
  2185. size := m.ProtoSize()
  2186. dAtA = make([]byte, size)
  2187. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2188. if err != nil {
  2189. return nil, err
  2190. }
  2191. return dAtA[:n], nil
  2192. }
  2193. func (m *Request) MarshalTo(dAtA []byte) (int, error) {
  2194. size := m.ProtoSize()
  2195. return m.MarshalToSizedBuffer(dAtA[:size])
  2196. }
  2197. func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2198. i := len(dAtA)
  2199. _ = i
  2200. var l int
  2201. _ = l
  2202. if m.BlockNo != 0 {
  2203. i = encodeVarintBep(dAtA, i, uint64(m.BlockNo))
  2204. i--
  2205. dAtA[i] = 0x48
  2206. }
  2207. if m.WeakHash != 0 {
  2208. i = encodeVarintBep(dAtA, i, uint64(m.WeakHash))
  2209. i--
  2210. dAtA[i] = 0x40
  2211. }
  2212. if m.FromTemporary {
  2213. i--
  2214. if m.FromTemporary {
  2215. dAtA[i] = 1
  2216. } else {
  2217. dAtA[i] = 0
  2218. }
  2219. i--
  2220. dAtA[i] = 0x38
  2221. }
  2222. if len(m.Hash) > 0 {
  2223. i -= len(m.Hash)
  2224. copy(dAtA[i:], m.Hash)
  2225. i = encodeVarintBep(dAtA, i, uint64(len(m.Hash)))
  2226. i--
  2227. dAtA[i] = 0x32
  2228. }
  2229. if m.Size != 0 {
  2230. i = encodeVarintBep(dAtA, i, uint64(m.Size))
  2231. i--
  2232. dAtA[i] = 0x28
  2233. }
  2234. if m.Offset != 0 {
  2235. i = encodeVarintBep(dAtA, i, uint64(m.Offset))
  2236. i--
  2237. dAtA[i] = 0x20
  2238. }
  2239. if len(m.Name) > 0 {
  2240. i -= len(m.Name)
  2241. copy(dAtA[i:], m.Name)
  2242. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  2243. i--
  2244. dAtA[i] = 0x1a
  2245. }
  2246. if len(m.Folder) > 0 {
  2247. i -= len(m.Folder)
  2248. copy(dAtA[i:], m.Folder)
  2249. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  2250. i--
  2251. dAtA[i] = 0x12
  2252. }
  2253. if m.ID != 0 {
  2254. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  2255. i--
  2256. dAtA[i] = 0x8
  2257. }
  2258. return len(dAtA) - i, nil
  2259. }
  2260. func (m *Response) Marshal() (dAtA []byte, err error) {
  2261. size := m.ProtoSize()
  2262. dAtA = make([]byte, size)
  2263. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2264. if err != nil {
  2265. return nil, err
  2266. }
  2267. return dAtA[:n], nil
  2268. }
  2269. func (m *Response) MarshalTo(dAtA []byte) (int, error) {
  2270. size := m.ProtoSize()
  2271. return m.MarshalToSizedBuffer(dAtA[:size])
  2272. }
  2273. func (m *Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2274. i := len(dAtA)
  2275. _ = i
  2276. var l int
  2277. _ = l
  2278. if m.Code != 0 {
  2279. i = encodeVarintBep(dAtA, i, uint64(m.Code))
  2280. i--
  2281. dAtA[i] = 0x18
  2282. }
  2283. if len(m.Data) > 0 {
  2284. i -= len(m.Data)
  2285. copy(dAtA[i:], m.Data)
  2286. i = encodeVarintBep(dAtA, i, uint64(len(m.Data)))
  2287. i--
  2288. dAtA[i] = 0x12
  2289. }
  2290. if m.ID != 0 {
  2291. i = encodeVarintBep(dAtA, i, uint64(m.ID))
  2292. i--
  2293. dAtA[i] = 0x8
  2294. }
  2295. return len(dAtA) - i, nil
  2296. }
  2297. func (m *DownloadProgress) Marshal() (dAtA []byte, err error) {
  2298. size := m.ProtoSize()
  2299. dAtA = make([]byte, size)
  2300. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2301. if err != nil {
  2302. return nil, err
  2303. }
  2304. return dAtA[:n], nil
  2305. }
  2306. func (m *DownloadProgress) MarshalTo(dAtA []byte) (int, error) {
  2307. size := m.ProtoSize()
  2308. return m.MarshalToSizedBuffer(dAtA[:size])
  2309. }
  2310. func (m *DownloadProgress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2311. i := len(dAtA)
  2312. _ = i
  2313. var l int
  2314. _ = l
  2315. if len(m.Updates) > 0 {
  2316. for iNdEx := len(m.Updates) - 1; iNdEx >= 0; iNdEx-- {
  2317. {
  2318. size, err := m.Updates[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  2319. if err != nil {
  2320. return 0, err
  2321. }
  2322. i -= size
  2323. i = encodeVarintBep(dAtA, i, uint64(size))
  2324. }
  2325. i--
  2326. dAtA[i] = 0x12
  2327. }
  2328. }
  2329. if len(m.Folder) > 0 {
  2330. i -= len(m.Folder)
  2331. copy(dAtA[i:], m.Folder)
  2332. i = encodeVarintBep(dAtA, i, uint64(len(m.Folder)))
  2333. i--
  2334. dAtA[i] = 0xa
  2335. }
  2336. return len(dAtA) - i, nil
  2337. }
  2338. func (m *FileDownloadProgressUpdate) Marshal() (dAtA []byte, err error) {
  2339. size := m.ProtoSize()
  2340. dAtA = make([]byte, size)
  2341. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2342. if err != nil {
  2343. return nil, err
  2344. }
  2345. return dAtA[:n], nil
  2346. }
  2347. func (m *FileDownloadProgressUpdate) MarshalTo(dAtA []byte) (int, error) {
  2348. size := m.ProtoSize()
  2349. return m.MarshalToSizedBuffer(dAtA[:size])
  2350. }
  2351. func (m *FileDownloadProgressUpdate) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2352. i := len(dAtA)
  2353. _ = i
  2354. var l int
  2355. _ = l
  2356. if m.BlockSize != 0 {
  2357. i = encodeVarintBep(dAtA, i, uint64(m.BlockSize))
  2358. i--
  2359. dAtA[i] = 0x28
  2360. }
  2361. if len(m.BlockIndexes) > 0 {
  2362. for iNdEx := len(m.BlockIndexes) - 1; iNdEx >= 0; iNdEx-- {
  2363. i = encodeVarintBep(dAtA, i, uint64(m.BlockIndexes[iNdEx]))
  2364. i--
  2365. dAtA[i] = 0x20
  2366. }
  2367. }
  2368. {
  2369. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  2370. if err != nil {
  2371. return 0, err
  2372. }
  2373. i -= size
  2374. i = encodeVarintBep(dAtA, i, uint64(size))
  2375. }
  2376. i--
  2377. dAtA[i] = 0x1a
  2378. if len(m.Name) > 0 {
  2379. i -= len(m.Name)
  2380. copy(dAtA[i:], m.Name)
  2381. i = encodeVarintBep(dAtA, i, uint64(len(m.Name)))
  2382. i--
  2383. dAtA[i] = 0x12
  2384. }
  2385. if m.UpdateType != 0 {
  2386. i = encodeVarintBep(dAtA, i, uint64(m.UpdateType))
  2387. i--
  2388. dAtA[i] = 0x8
  2389. }
  2390. return len(dAtA) - i, nil
  2391. }
  2392. func (m *Ping) Marshal() (dAtA []byte, err error) {
  2393. size := m.ProtoSize()
  2394. dAtA = make([]byte, size)
  2395. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2396. if err != nil {
  2397. return nil, err
  2398. }
  2399. return dAtA[:n], nil
  2400. }
  2401. func (m *Ping) MarshalTo(dAtA []byte) (int, error) {
  2402. size := m.ProtoSize()
  2403. return m.MarshalToSizedBuffer(dAtA[:size])
  2404. }
  2405. func (m *Ping) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2406. i := len(dAtA)
  2407. _ = i
  2408. var l int
  2409. _ = l
  2410. return len(dAtA) - i, nil
  2411. }
  2412. func (m *Close) Marshal() (dAtA []byte, err error) {
  2413. size := m.ProtoSize()
  2414. dAtA = make([]byte, size)
  2415. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  2416. if err != nil {
  2417. return nil, err
  2418. }
  2419. return dAtA[:n], nil
  2420. }
  2421. func (m *Close) MarshalTo(dAtA []byte) (int, error) {
  2422. size := m.ProtoSize()
  2423. return m.MarshalToSizedBuffer(dAtA[:size])
  2424. }
  2425. func (m *Close) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  2426. i := len(dAtA)
  2427. _ = i
  2428. var l int
  2429. _ = l
  2430. if len(m.Reason) > 0 {
  2431. i -= len(m.Reason)
  2432. copy(dAtA[i:], m.Reason)
  2433. i = encodeVarintBep(dAtA, i, uint64(len(m.Reason)))
  2434. i--
  2435. dAtA[i] = 0xa
  2436. }
  2437. return len(dAtA) - i, nil
  2438. }
  2439. func encodeVarintBep(dAtA []byte, offset int, v uint64) int {
  2440. offset -= sovBep(v)
  2441. base := offset
  2442. for v >= 1<<7 {
  2443. dAtA[offset] = uint8(v&0x7f | 0x80)
  2444. v >>= 7
  2445. offset++
  2446. }
  2447. dAtA[offset] = uint8(v)
  2448. return base
  2449. }
  2450. func (m *Hello) ProtoSize() (n int) {
  2451. if m == nil {
  2452. return 0
  2453. }
  2454. var l int
  2455. _ = l
  2456. l = len(m.DeviceName)
  2457. if l > 0 {
  2458. n += 1 + l + sovBep(uint64(l))
  2459. }
  2460. l = len(m.ClientName)
  2461. if l > 0 {
  2462. n += 1 + l + sovBep(uint64(l))
  2463. }
  2464. l = len(m.ClientVersion)
  2465. if l > 0 {
  2466. n += 1 + l + sovBep(uint64(l))
  2467. }
  2468. if m.NumConnections != 0 {
  2469. n += 1 + sovBep(uint64(m.NumConnections))
  2470. }
  2471. if m.Timestamp != 0 {
  2472. n += 1 + sovBep(uint64(m.Timestamp))
  2473. }
  2474. return n
  2475. }
  2476. func (m *Header) ProtoSize() (n int) {
  2477. if m == nil {
  2478. return 0
  2479. }
  2480. var l int
  2481. _ = l
  2482. if m.Type != 0 {
  2483. n += 1 + sovBep(uint64(m.Type))
  2484. }
  2485. if m.Compression != 0 {
  2486. n += 1 + sovBep(uint64(m.Compression))
  2487. }
  2488. return n
  2489. }
  2490. func (m *ClusterConfig) ProtoSize() (n int) {
  2491. if m == nil {
  2492. return 0
  2493. }
  2494. var l int
  2495. _ = l
  2496. if len(m.Folders) > 0 {
  2497. for _, e := range m.Folders {
  2498. l = e.ProtoSize()
  2499. n += 1 + l + sovBep(uint64(l))
  2500. }
  2501. }
  2502. if m.Secondary {
  2503. n += 2
  2504. }
  2505. return n
  2506. }
  2507. func (m *Folder) ProtoSize() (n int) {
  2508. if m == nil {
  2509. return 0
  2510. }
  2511. var l int
  2512. _ = l
  2513. l = len(m.ID)
  2514. if l > 0 {
  2515. n += 1 + l + sovBep(uint64(l))
  2516. }
  2517. l = len(m.Label)
  2518. if l > 0 {
  2519. n += 1 + l + sovBep(uint64(l))
  2520. }
  2521. if m.ReadOnly {
  2522. n += 2
  2523. }
  2524. if m.IgnorePermissions {
  2525. n += 2
  2526. }
  2527. if m.IgnoreDelete {
  2528. n += 2
  2529. }
  2530. if m.DisableTempIndexes {
  2531. n += 2
  2532. }
  2533. if m.Paused {
  2534. n += 2
  2535. }
  2536. if len(m.Devices) > 0 {
  2537. for _, e := range m.Devices {
  2538. l = e.ProtoSize()
  2539. n += 2 + l + sovBep(uint64(l))
  2540. }
  2541. }
  2542. return n
  2543. }
  2544. func (m *Device) ProtoSize() (n int) {
  2545. if m == nil {
  2546. return 0
  2547. }
  2548. var l int
  2549. _ = l
  2550. l = m.ID.ProtoSize()
  2551. n += 1 + l + sovBep(uint64(l))
  2552. l = len(m.Name)
  2553. if l > 0 {
  2554. n += 1 + l + sovBep(uint64(l))
  2555. }
  2556. if len(m.Addresses) > 0 {
  2557. for _, s := range m.Addresses {
  2558. l = len(s)
  2559. n += 1 + l + sovBep(uint64(l))
  2560. }
  2561. }
  2562. if m.Compression != 0 {
  2563. n += 1 + sovBep(uint64(m.Compression))
  2564. }
  2565. l = len(m.CertName)
  2566. if l > 0 {
  2567. n += 1 + l + sovBep(uint64(l))
  2568. }
  2569. if m.MaxSequence != 0 {
  2570. n += 1 + sovBep(uint64(m.MaxSequence))
  2571. }
  2572. if m.Introducer {
  2573. n += 2
  2574. }
  2575. if m.IndexID != 0 {
  2576. n += 1 + sovBep(uint64(m.IndexID))
  2577. }
  2578. if m.SkipIntroductionRemovals {
  2579. n += 2
  2580. }
  2581. l = len(m.EncryptionPasswordToken)
  2582. if l > 0 {
  2583. n += 1 + l + sovBep(uint64(l))
  2584. }
  2585. return n
  2586. }
  2587. func (m *Index) ProtoSize() (n int) {
  2588. if m == nil {
  2589. return 0
  2590. }
  2591. var l int
  2592. _ = l
  2593. l = len(m.Folder)
  2594. if l > 0 {
  2595. n += 1 + l + sovBep(uint64(l))
  2596. }
  2597. if len(m.Files) > 0 {
  2598. for _, e := range m.Files {
  2599. l = e.ProtoSize()
  2600. n += 1 + l + sovBep(uint64(l))
  2601. }
  2602. }
  2603. return n
  2604. }
  2605. func (m *IndexUpdate) ProtoSize() (n int) {
  2606. if m == nil {
  2607. return 0
  2608. }
  2609. var l int
  2610. _ = l
  2611. l = len(m.Folder)
  2612. if l > 0 {
  2613. n += 1 + l + sovBep(uint64(l))
  2614. }
  2615. if len(m.Files) > 0 {
  2616. for _, e := range m.Files {
  2617. l = e.ProtoSize()
  2618. n += 1 + l + sovBep(uint64(l))
  2619. }
  2620. }
  2621. return n
  2622. }
  2623. func (m *FileInfo) ProtoSize() (n int) {
  2624. if m == nil {
  2625. return 0
  2626. }
  2627. var l int
  2628. _ = l
  2629. l = len(m.Name)
  2630. if l > 0 {
  2631. n += 1 + l + sovBep(uint64(l))
  2632. }
  2633. if m.Type != 0 {
  2634. n += 1 + sovBep(uint64(m.Type))
  2635. }
  2636. if m.Size != 0 {
  2637. n += 1 + sovBep(uint64(m.Size))
  2638. }
  2639. if m.Permissions != 0 {
  2640. n += 1 + sovBep(uint64(m.Permissions))
  2641. }
  2642. if m.ModifiedS != 0 {
  2643. n += 1 + sovBep(uint64(m.ModifiedS))
  2644. }
  2645. if m.Deleted {
  2646. n += 2
  2647. }
  2648. if m.RawInvalid {
  2649. n += 2
  2650. }
  2651. if m.NoPermissions {
  2652. n += 2
  2653. }
  2654. l = m.Version.ProtoSize()
  2655. n += 1 + l + sovBep(uint64(l))
  2656. if m.Sequence != 0 {
  2657. n += 1 + sovBep(uint64(m.Sequence))
  2658. }
  2659. if m.ModifiedNs != 0 {
  2660. n += 1 + sovBep(uint64(m.ModifiedNs))
  2661. }
  2662. if m.ModifiedBy != 0 {
  2663. n += 1 + sovBep(uint64(m.ModifiedBy))
  2664. }
  2665. if m.RawBlockSize != 0 {
  2666. n += 1 + sovBep(uint64(m.RawBlockSize))
  2667. }
  2668. l = m.Platform.ProtoSize()
  2669. n += 1 + l + sovBep(uint64(l))
  2670. if len(m.Blocks) > 0 {
  2671. for _, e := range m.Blocks {
  2672. l = e.ProtoSize()
  2673. n += 2 + l + sovBep(uint64(l))
  2674. }
  2675. }
  2676. l = len(m.SymlinkTarget)
  2677. if l > 0 {
  2678. n += 2 + l + sovBep(uint64(l))
  2679. }
  2680. l = len(m.BlocksHash)
  2681. if l > 0 {
  2682. n += 2 + l + sovBep(uint64(l))
  2683. }
  2684. l = len(m.Encrypted)
  2685. if l > 0 {
  2686. n += 2 + l + sovBep(uint64(l))
  2687. }
  2688. if m.LocalFlags != 0 {
  2689. n += 2 + sovBep(uint64(m.LocalFlags))
  2690. }
  2691. l = len(m.VersionHash)
  2692. if l > 0 {
  2693. n += 2 + l + sovBep(uint64(l))
  2694. }
  2695. if m.InodeChangeNs != 0 {
  2696. n += 2 + sovBep(uint64(m.InodeChangeNs))
  2697. }
  2698. if m.EncryptionTrailerSize != 0 {
  2699. n += 2 + sovBep(uint64(m.EncryptionTrailerSize))
  2700. }
  2701. return n
  2702. }
  2703. func (m *BlockInfo) ProtoSize() (n int) {
  2704. if m == nil {
  2705. return 0
  2706. }
  2707. var l int
  2708. _ = l
  2709. if m.Offset != 0 {
  2710. n += 1 + sovBep(uint64(m.Offset))
  2711. }
  2712. if m.Size != 0 {
  2713. n += 1 + sovBep(uint64(m.Size))
  2714. }
  2715. l = len(m.Hash)
  2716. if l > 0 {
  2717. n += 1 + l + sovBep(uint64(l))
  2718. }
  2719. if m.WeakHash != 0 {
  2720. n += 1 + sovBep(uint64(m.WeakHash))
  2721. }
  2722. return n
  2723. }
  2724. func (m *Vector) ProtoSize() (n int) {
  2725. if m == nil {
  2726. return 0
  2727. }
  2728. var l int
  2729. _ = l
  2730. if len(m.Counters) > 0 {
  2731. for _, e := range m.Counters {
  2732. l = e.ProtoSize()
  2733. n += 1 + l + sovBep(uint64(l))
  2734. }
  2735. }
  2736. return n
  2737. }
  2738. func (m *Counter) ProtoSize() (n int) {
  2739. if m == nil {
  2740. return 0
  2741. }
  2742. var l int
  2743. _ = l
  2744. if m.ID != 0 {
  2745. n += 1 + sovBep(uint64(m.ID))
  2746. }
  2747. if m.Value != 0 {
  2748. n += 1 + sovBep(uint64(m.Value))
  2749. }
  2750. return n
  2751. }
  2752. func (m *PlatformData) ProtoSize() (n int) {
  2753. if m == nil {
  2754. return 0
  2755. }
  2756. var l int
  2757. _ = l
  2758. if m.Unix != nil {
  2759. l = m.Unix.ProtoSize()
  2760. n += 1 + l + sovBep(uint64(l))
  2761. }
  2762. if m.Windows != nil {
  2763. l = m.Windows.ProtoSize()
  2764. n += 1 + l + sovBep(uint64(l))
  2765. }
  2766. if m.Linux != nil {
  2767. l = m.Linux.ProtoSize()
  2768. n += 1 + l + sovBep(uint64(l))
  2769. }
  2770. if m.Darwin != nil {
  2771. l = m.Darwin.ProtoSize()
  2772. n += 1 + l + sovBep(uint64(l))
  2773. }
  2774. if m.FreeBSD != nil {
  2775. l = m.FreeBSD.ProtoSize()
  2776. n += 1 + l + sovBep(uint64(l))
  2777. }
  2778. if m.NetBSD != nil {
  2779. l = m.NetBSD.ProtoSize()
  2780. n += 1 + l + sovBep(uint64(l))
  2781. }
  2782. return n
  2783. }
  2784. func (m *UnixData) ProtoSize() (n int) {
  2785. if m == nil {
  2786. return 0
  2787. }
  2788. var l int
  2789. _ = l
  2790. l = len(m.OwnerName)
  2791. if l > 0 {
  2792. n += 1 + l + sovBep(uint64(l))
  2793. }
  2794. l = len(m.GroupName)
  2795. if l > 0 {
  2796. n += 1 + l + sovBep(uint64(l))
  2797. }
  2798. if m.UID != 0 {
  2799. n += 1 + sovBep(uint64(m.UID))
  2800. }
  2801. if m.GID != 0 {
  2802. n += 1 + sovBep(uint64(m.GID))
  2803. }
  2804. return n
  2805. }
  2806. func (m *WindowsData) ProtoSize() (n int) {
  2807. if m == nil {
  2808. return 0
  2809. }
  2810. var l int
  2811. _ = l
  2812. l = len(m.OwnerName)
  2813. if l > 0 {
  2814. n += 1 + l + sovBep(uint64(l))
  2815. }
  2816. if m.OwnerIsGroup {
  2817. n += 2
  2818. }
  2819. return n
  2820. }
  2821. func (m *XattrData) ProtoSize() (n int) {
  2822. if m == nil {
  2823. return 0
  2824. }
  2825. var l int
  2826. _ = l
  2827. if len(m.Xattrs) > 0 {
  2828. for _, e := range m.Xattrs {
  2829. l = e.ProtoSize()
  2830. n += 1 + l + sovBep(uint64(l))
  2831. }
  2832. }
  2833. return n
  2834. }
  2835. func (m *Xattr) ProtoSize() (n int) {
  2836. if m == nil {
  2837. return 0
  2838. }
  2839. var l int
  2840. _ = l
  2841. l = len(m.Name)
  2842. if l > 0 {
  2843. n += 1 + l + sovBep(uint64(l))
  2844. }
  2845. l = len(m.Value)
  2846. if l > 0 {
  2847. n += 1 + l + sovBep(uint64(l))
  2848. }
  2849. return n
  2850. }
  2851. func (m *Request) ProtoSize() (n int) {
  2852. if m == nil {
  2853. return 0
  2854. }
  2855. var l int
  2856. _ = l
  2857. if m.ID != 0 {
  2858. n += 1 + sovBep(uint64(m.ID))
  2859. }
  2860. l = len(m.Folder)
  2861. if l > 0 {
  2862. n += 1 + l + sovBep(uint64(l))
  2863. }
  2864. l = len(m.Name)
  2865. if l > 0 {
  2866. n += 1 + l + sovBep(uint64(l))
  2867. }
  2868. if m.Offset != 0 {
  2869. n += 1 + sovBep(uint64(m.Offset))
  2870. }
  2871. if m.Size != 0 {
  2872. n += 1 + sovBep(uint64(m.Size))
  2873. }
  2874. l = len(m.Hash)
  2875. if l > 0 {
  2876. n += 1 + l + sovBep(uint64(l))
  2877. }
  2878. if m.FromTemporary {
  2879. n += 2
  2880. }
  2881. if m.WeakHash != 0 {
  2882. n += 1 + sovBep(uint64(m.WeakHash))
  2883. }
  2884. if m.BlockNo != 0 {
  2885. n += 1 + sovBep(uint64(m.BlockNo))
  2886. }
  2887. return n
  2888. }
  2889. func (m *Response) ProtoSize() (n int) {
  2890. if m == nil {
  2891. return 0
  2892. }
  2893. var l int
  2894. _ = l
  2895. if m.ID != 0 {
  2896. n += 1 + sovBep(uint64(m.ID))
  2897. }
  2898. l = len(m.Data)
  2899. if l > 0 {
  2900. n += 1 + l + sovBep(uint64(l))
  2901. }
  2902. if m.Code != 0 {
  2903. n += 1 + sovBep(uint64(m.Code))
  2904. }
  2905. return n
  2906. }
  2907. func (m *DownloadProgress) ProtoSize() (n int) {
  2908. if m == nil {
  2909. return 0
  2910. }
  2911. var l int
  2912. _ = l
  2913. l = len(m.Folder)
  2914. if l > 0 {
  2915. n += 1 + l + sovBep(uint64(l))
  2916. }
  2917. if len(m.Updates) > 0 {
  2918. for _, e := range m.Updates {
  2919. l = e.ProtoSize()
  2920. n += 1 + l + sovBep(uint64(l))
  2921. }
  2922. }
  2923. return n
  2924. }
  2925. func (m *FileDownloadProgressUpdate) ProtoSize() (n int) {
  2926. if m == nil {
  2927. return 0
  2928. }
  2929. var l int
  2930. _ = l
  2931. if m.UpdateType != 0 {
  2932. n += 1 + sovBep(uint64(m.UpdateType))
  2933. }
  2934. l = len(m.Name)
  2935. if l > 0 {
  2936. n += 1 + l + sovBep(uint64(l))
  2937. }
  2938. l = m.Version.ProtoSize()
  2939. n += 1 + l + sovBep(uint64(l))
  2940. if len(m.BlockIndexes) > 0 {
  2941. for _, e := range m.BlockIndexes {
  2942. n += 1 + sovBep(uint64(e))
  2943. }
  2944. }
  2945. if m.BlockSize != 0 {
  2946. n += 1 + sovBep(uint64(m.BlockSize))
  2947. }
  2948. return n
  2949. }
  2950. func (m *Ping) ProtoSize() (n int) {
  2951. if m == nil {
  2952. return 0
  2953. }
  2954. var l int
  2955. _ = l
  2956. return n
  2957. }
  2958. func (m *Close) ProtoSize() (n int) {
  2959. if m == nil {
  2960. return 0
  2961. }
  2962. var l int
  2963. _ = l
  2964. l = len(m.Reason)
  2965. if l > 0 {
  2966. n += 1 + l + sovBep(uint64(l))
  2967. }
  2968. return n
  2969. }
  2970. func sovBep(x uint64) (n int) {
  2971. return (math_bits.Len64(x|1) + 6) / 7
  2972. }
  2973. func sozBep(x uint64) (n int) {
  2974. return sovBep(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  2975. }
  2976. func (m *Hello) Unmarshal(dAtA []byte) error {
  2977. l := len(dAtA)
  2978. iNdEx := 0
  2979. for iNdEx < l {
  2980. preIndex := iNdEx
  2981. var wire uint64
  2982. for shift := uint(0); ; shift += 7 {
  2983. if shift >= 64 {
  2984. return ErrIntOverflowBep
  2985. }
  2986. if iNdEx >= l {
  2987. return io.ErrUnexpectedEOF
  2988. }
  2989. b := dAtA[iNdEx]
  2990. iNdEx++
  2991. wire |= uint64(b&0x7F) << shift
  2992. if b < 0x80 {
  2993. break
  2994. }
  2995. }
  2996. fieldNum := int32(wire >> 3)
  2997. wireType := int(wire & 0x7)
  2998. if wireType == 4 {
  2999. return fmt.Errorf("proto: Hello: wiretype end group for non-group")
  3000. }
  3001. if fieldNum <= 0 {
  3002. return fmt.Errorf("proto: Hello: illegal tag %d (wire type %d)", fieldNum, wire)
  3003. }
  3004. switch fieldNum {
  3005. case 1:
  3006. if wireType != 2 {
  3007. return fmt.Errorf("proto: wrong wireType = %d for field DeviceName", wireType)
  3008. }
  3009. var stringLen uint64
  3010. for shift := uint(0); ; shift += 7 {
  3011. if shift >= 64 {
  3012. return ErrIntOverflowBep
  3013. }
  3014. if iNdEx >= l {
  3015. return io.ErrUnexpectedEOF
  3016. }
  3017. b := dAtA[iNdEx]
  3018. iNdEx++
  3019. stringLen |= uint64(b&0x7F) << shift
  3020. if b < 0x80 {
  3021. break
  3022. }
  3023. }
  3024. intStringLen := int(stringLen)
  3025. if intStringLen < 0 {
  3026. return ErrInvalidLengthBep
  3027. }
  3028. postIndex := iNdEx + intStringLen
  3029. if postIndex < 0 {
  3030. return ErrInvalidLengthBep
  3031. }
  3032. if postIndex > l {
  3033. return io.ErrUnexpectedEOF
  3034. }
  3035. m.DeviceName = string(dAtA[iNdEx:postIndex])
  3036. iNdEx = postIndex
  3037. case 2:
  3038. if wireType != 2 {
  3039. return fmt.Errorf("proto: wrong wireType = %d for field ClientName", wireType)
  3040. }
  3041. var stringLen uint64
  3042. for shift := uint(0); ; shift += 7 {
  3043. if shift >= 64 {
  3044. return ErrIntOverflowBep
  3045. }
  3046. if iNdEx >= l {
  3047. return io.ErrUnexpectedEOF
  3048. }
  3049. b := dAtA[iNdEx]
  3050. iNdEx++
  3051. stringLen |= uint64(b&0x7F) << shift
  3052. if b < 0x80 {
  3053. break
  3054. }
  3055. }
  3056. intStringLen := int(stringLen)
  3057. if intStringLen < 0 {
  3058. return ErrInvalidLengthBep
  3059. }
  3060. postIndex := iNdEx + intStringLen
  3061. if postIndex < 0 {
  3062. return ErrInvalidLengthBep
  3063. }
  3064. if postIndex > l {
  3065. return io.ErrUnexpectedEOF
  3066. }
  3067. m.ClientName = string(dAtA[iNdEx:postIndex])
  3068. iNdEx = postIndex
  3069. case 3:
  3070. if wireType != 2 {
  3071. return fmt.Errorf("proto: wrong wireType = %d for field ClientVersion", wireType)
  3072. }
  3073. var stringLen uint64
  3074. for shift := uint(0); ; shift += 7 {
  3075. if shift >= 64 {
  3076. return ErrIntOverflowBep
  3077. }
  3078. if iNdEx >= l {
  3079. return io.ErrUnexpectedEOF
  3080. }
  3081. b := dAtA[iNdEx]
  3082. iNdEx++
  3083. stringLen |= uint64(b&0x7F) << shift
  3084. if b < 0x80 {
  3085. break
  3086. }
  3087. }
  3088. intStringLen := int(stringLen)
  3089. if intStringLen < 0 {
  3090. return ErrInvalidLengthBep
  3091. }
  3092. postIndex := iNdEx + intStringLen
  3093. if postIndex < 0 {
  3094. return ErrInvalidLengthBep
  3095. }
  3096. if postIndex > l {
  3097. return io.ErrUnexpectedEOF
  3098. }
  3099. m.ClientVersion = string(dAtA[iNdEx:postIndex])
  3100. iNdEx = postIndex
  3101. case 4:
  3102. if wireType != 0 {
  3103. return fmt.Errorf("proto: wrong wireType = %d for field NumConnections", wireType)
  3104. }
  3105. m.NumConnections = 0
  3106. for shift := uint(0); ; shift += 7 {
  3107. if shift >= 64 {
  3108. return ErrIntOverflowBep
  3109. }
  3110. if iNdEx >= l {
  3111. return io.ErrUnexpectedEOF
  3112. }
  3113. b := dAtA[iNdEx]
  3114. iNdEx++
  3115. m.NumConnections |= int(b&0x7F) << shift
  3116. if b < 0x80 {
  3117. break
  3118. }
  3119. }
  3120. case 5:
  3121. if wireType != 0 {
  3122. return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  3123. }
  3124. m.Timestamp = 0
  3125. for shift := uint(0); ; shift += 7 {
  3126. if shift >= 64 {
  3127. return ErrIntOverflowBep
  3128. }
  3129. if iNdEx >= l {
  3130. return io.ErrUnexpectedEOF
  3131. }
  3132. b := dAtA[iNdEx]
  3133. iNdEx++
  3134. m.Timestamp |= int64(b&0x7F) << shift
  3135. if b < 0x80 {
  3136. break
  3137. }
  3138. }
  3139. default:
  3140. iNdEx = preIndex
  3141. skippy, err := skipBep(dAtA[iNdEx:])
  3142. if err != nil {
  3143. return err
  3144. }
  3145. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3146. return ErrInvalidLengthBep
  3147. }
  3148. if (iNdEx + skippy) > l {
  3149. return io.ErrUnexpectedEOF
  3150. }
  3151. iNdEx += skippy
  3152. }
  3153. }
  3154. if iNdEx > l {
  3155. return io.ErrUnexpectedEOF
  3156. }
  3157. return nil
  3158. }
  3159. func (m *Header) Unmarshal(dAtA []byte) error {
  3160. l := len(dAtA)
  3161. iNdEx := 0
  3162. for iNdEx < l {
  3163. preIndex := iNdEx
  3164. var wire uint64
  3165. for shift := uint(0); ; shift += 7 {
  3166. if shift >= 64 {
  3167. return ErrIntOverflowBep
  3168. }
  3169. if iNdEx >= l {
  3170. return io.ErrUnexpectedEOF
  3171. }
  3172. b := dAtA[iNdEx]
  3173. iNdEx++
  3174. wire |= uint64(b&0x7F) << shift
  3175. if b < 0x80 {
  3176. break
  3177. }
  3178. }
  3179. fieldNum := int32(wire >> 3)
  3180. wireType := int(wire & 0x7)
  3181. if wireType == 4 {
  3182. return fmt.Errorf("proto: Header: wiretype end group for non-group")
  3183. }
  3184. if fieldNum <= 0 {
  3185. return fmt.Errorf("proto: Header: illegal tag %d (wire type %d)", fieldNum, wire)
  3186. }
  3187. switch fieldNum {
  3188. case 1:
  3189. if wireType != 0 {
  3190. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  3191. }
  3192. m.Type = 0
  3193. for shift := uint(0); ; shift += 7 {
  3194. if shift >= 64 {
  3195. return ErrIntOverflowBep
  3196. }
  3197. if iNdEx >= l {
  3198. return io.ErrUnexpectedEOF
  3199. }
  3200. b := dAtA[iNdEx]
  3201. iNdEx++
  3202. m.Type |= MessageType(b&0x7F) << shift
  3203. if b < 0x80 {
  3204. break
  3205. }
  3206. }
  3207. case 2:
  3208. if wireType != 0 {
  3209. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  3210. }
  3211. m.Compression = 0
  3212. for shift := uint(0); ; shift += 7 {
  3213. if shift >= 64 {
  3214. return ErrIntOverflowBep
  3215. }
  3216. if iNdEx >= l {
  3217. return io.ErrUnexpectedEOF
  3218. }
  3219. b := dAtA[iNdEx]
  3220. iNdEx++
  3221. m.Compression |= MessageCompression(b&0x7F) << shift
  3222. if b < 0x80 {
  3223. break
  3224. }
  3225. }
  3226. default:
  3227. iNdEx = preIndex
  3228. skippy, err := skipBep(dAtA[iNdEx:])
  3229. if err != nil {
  3230. return err
  3231. }
  3232. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3233. return ErrInvalidLengthBep
  3234. }
  3235. if (iNdEx + skippy) > l {
  3236. return io.ErrUnexpectedEOF
  3237. }
  3238. iNdEx += skippy
  3239. }
  3240. }
  3241. if iNdEx > l {
  3242. return io.ErrUnexpectedEOF
  3243. }
  3244. return nil
  3245. }
  3246. func (m *ClusterConfig) Unmarshal(dAtA []byte) error {
  3247. l := len(dAtA)
  3248. iNdEx := 0
  3249. for iNdEx < l {
  3250. preIndex := iNdEx
  3251. var wire uint64
  3252. for shift := uint(0); ; shift += 7 {
  3253. if shift >= 64 {
  3254. return ErrIntOverflowBep
  3255. }
  3256. if iNdEx >= l {
  3257. return io.ErrUnexpectedEOF
  3258. }
  3259. b := dAtA[iNdEx]
  3260. iNdEx++
  3261. wire |= uint64(b&0x7F) << shift
  3262. if b < 0x80 {
  3263. break
  3264. }
  3265. }
  3266. fieldNum := int32(wire >> 3)
  3267. wireType := int(wire & 0x7)
  3268. if wireType == 4 {
  3269. return fmt.Errorf("proto: ClusterConfig: wiretype end group for non-group")
  3270. }
  3271. if fieldNum <= 0 {
  3272. return fmt.Errorf("proto: ClusterConfig: illegal tag %d (wire type %d)", fieldNum, wire)
  3273. }
  3274. switch fieldNum {
  3275. case 1:
  3276. if wireType != 2 {
  3277. return fmt.Errorf("proto: wrong wireType = %d for field Folders", wireType)
  3278. }
  3279. var msglen int
  3280. for shift := uint(0); ; shift += 7 {
  3281. if shift >= 64 {
  3282. return ErrIntOverflowBep
  3283. }
  3284. if iNdEx >= l {
  3285. return io.ErrUnexpectedEOF
  3286. }
  3287. b := dAtA[iNdEx]
  3288. iNdEx++
  3289. msglen |= int(b&0x7F) << shift
  3290. if b < 0x80 {
  3291. break
  3292. }
  3293. }
  3294. if msglen < 0 {
  3295. return ErrInvalidLengthBep
  3296. }
  3297. postIndex := iNdEx + msglen
  3298. if postIndex < 0 {
  3299. return ErrInvalidLengthBep
  3300. }
  3301. if postIndex > l {
  3302. return io.ErrUnexpectedEOF
  3303. }
  3304. m.Folders = append(m.Folders, Folder{})
  3305. if err := m.Folders[len(m.Folders)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3306. return err
  3307. }
  3308. iNdEx = postIndex
  3309. case 2:
  3310. if wireType != 0 {
  3311. return fmt.Errorf("proto: wrong wireType = %d for field Secondary", wireType)
  3312. }
  3313. var v int
  3314. for shift := uint(0); ; shift += 7 {
  3315. if shift >= 64 {
  3316. return ErrIntOverflowBep
  3317. }
  3318. if iNdEx >= l {
  3319. return io.ErrUnexpectedEOF
  3320. }
  3321. b := dAtA[iNdEx]
  3322. iNdEx++
  3323. v |= int(b&0x7F) << shift
  3324. if b < 0x80 {
  3325. break
  3326. }
  3327. }
  3328. m.Secondary = bool(v != 0)
  3329. default:
  3330. iNdEx = preIndex
  3331. skippy, err := skipBep(dAtA[iNdEx:])
  3332. if err != nil {
  3333. return err
  3334. }
  3335. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3336. return ErrInvalidLengthBep
  3337. }
  3338. if (iNdEx + skippy) > l {
  3339. return io.ErrUnexpectedEOF
  3340. }
  3341. iNdEx += skippy
  3342. }
  3343. }
  3344. if iNdEx > l {
  3345. return io.ErrUnexpectedEOF
  3346. }
  3347. return nil
  3348. }
  3349. func (m *Folder) Unmarshal(dAtA []byte) error {
  3350. l := len(dAtA)
  3351. iNdEx := 0
  3352. for iNdEx < l {
  3353. preIndex := iNdEx
  3354. var wire uint64
  3355. for shift := uint(0); ; shift += 7 {
  3356. if shift >= 64 {
  3357. return ErrIntOverflowBep
  3358. }
  3359. if iNdEx >= l {
  3360. return io.ErrUnexpectedEOF
  3361. }
  3362. b := dAtA[iNdEx]
  3363. iNdEx++
  3364. wire |= uint64(b&0x7F) << shift
  3365. if b < 0x80 {
  3366. break
  3367. }
  3368. }
  3369. fieldNum := int32(wire >> 3)
  3370. wireType := int(wire & 0x7)
  3371. if wireType == 4 {
  3372. return fmt.Errorf("proto: Folder: wiretype end group for non-group")
  3373. }
  3374. if fieldNum <= 0 {
  3375. return fmt.Errorf("proto: Folder: illegal tag %d (wire type %d)", fieldNum, wire)
  3376. }
  3377. switch fieldNum {
  3378. case 1:
  3379. if wireType != 2 {
  3380. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3381. }
  3382. var stringLen uint64
  3383. for shift := uint(0); ; shift += 7 {
  3384. if shift >= 64 {
  3385. return ErrIntOverflowBep
  3386. }
  3387. if iNdEx >= l {
  3388. return io.ErrUnexpectedEOF
  3389. }
  3390. b := dAtA[iNdEx]
  3391. iNdEx++
  3392. stringLen |= uint64(b&0x7F) << shift
  3393. if b < 0x80 {
  3394. break
  3395. }
  3396. }
  3397. intStringLen := int(stringLen)
  3398. if intStringLen < 0 {
  3399. return ErrInvalidLengthBep
  3400. }
  3401. postIndex := iNdEx + intStringLen
  3402. if postIndex < 0 {
  3403. return ErrInvalidLengthBep
  3404. }
  3405. if postIndex > l {
  3406. return io.ErrUnexpectedEOF
  3407. }
  3408. m.ID = string(dAtA[iNdEx:postIndex])
  3409. iNdEx = postIndex
  3410. case 2:
  3411. if wireType != 2 {
  3412. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  3413. }
  3414. var stringLen uint64
  3415. for shift := uint(0); ; shift += 7 {
  3416. if shift >= 64 {
  3417. return ErrIntOverflowBep
  3418. }
  3419. if iNdEx >= l {
  3420. return io.ErrUnexpectedEOF
  3421. }
  3422. b := dAtA[iNdEx]
  3423. iNdEx++
  3424. stringLen |= uint64(b&0x7F) << shift
  3425. if b < 0x80 {
  3426. break
  3427. }
  3428. }
  3429. intStringLen := int(stringLen)
  3430. if intStringLen < 0 {
  3431. return ErrInvalidLengthBep
  3432. }
  3433. postIndex := iNdEx + intStringLen
  3434. if postIndex < 0 {
  3435. return ErrInvalidLengthBep
  3436. }
  3437. if postIndex > l {
  3438. return io.ErrUnexpectedEOF
  3439. }
  3440. m.Label = string(dAtA[iNdEx:postIndex])
  3441. iNdEx = postIndex
  3442. case 3:
  3443. if wireType != 0 {
  3444. return fmt.Errorf("proto: wrong wireType = %d for field ReadOnly", wireType)
  3445. }
  3446. var v int
  3447. for shift := uint(0); ; shift += 7 {
  3448. if shift >= 64 {
  3449. return ErrIntOverflowBep
  3450. }
  3451. if iNdEx >= l {
  3452. return io.ErrUnexpectedEOF
  3453. }
  3454. b := dAtA[iNdEx]
  3455. iNdEx++
  3456. v |= int(b&0x7F) << shift
  3457. if b < 0x80 {
  3458. break
  3459. }
  3460. }
  3461. m.ReadOnly = bool(v != 0)
  3462. case 4:
  3463. if wireType != 0 {
  3464. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePermissions", wireType)
  3465. }
  3466. var v int
  3467. for shift := uint(0); ; shift += 7 {
  3468. if shift >= 64 {
  3469. return ErrIntOverflowBep
  3470. }
  3471. if iNdEx >= l {
  3472. return io.ErrUnexpectedEOF
  3473. }
  3474. b := dAtA[iNdEx]
  3475. iNdEx++
  3476. v |= int(b&0x7F) << shift
  3477. if b < 0x80 {
  3478. break
  3479. }
  3480. }
  3481. m.IgnorePermissions = bool(v != 0)
  3482. case 5:
  3483. if wireType != 0 {
  3484. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  3485. }
  3486. var v int
  3487. for shift := uint(0); ; shift += 7 {
  3488. if shift >= 64 {
  3489. return ErrIntOverflowBep
  3490. }
  3491. if iNdEx >= l {
  3492. return io.ErrUnexpectedEOF
  3493. }
  3494. b := dAtA[iNdEx]
  3495. iNdEx++
  3496. v |= int(b&0x7F) << shift
  3497. if b < 0x80 {
  3498. break
  3499. }
  3500. }
  3501. m.IgnoreDelete = bool(v != 0)
  3502. case 6:
  3503. if wireType != 0 {
  3504. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  3505. }
  3506. var v int
  3507. for shift := uint(0); ; shift += 7 {
  3508. if shift >= 64 {
  3509. return ErrIntOverflowBep
  3510. }
  3511. if iNdEx >= l {
  3512. return io.ErrUnexpectedEOF
  3513. }
  3514. b := dAtA[iNdEx]
  3515. iNdEx++
  3516. v |= int(b&0x7F) << shift
  3517. if b < 0x80 {
  3518. break
  3519. }
  3520. }
  3521. m.DisableTempIndexes = bool(v != 0)
  3522. case 7:
  3523. if wireType != 0 {
  3524. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  3525. }
  3526. var v int
  3527. for shift := uint(0); ; shift += 7 {
  3528. if shift >= 64 {
  3529. return ErrIntOverflowBep
  3530. }
  3531. if iNdEx >= l {
  3532. return io.ErrUnexpectedEOF
  3533. }
  3534. b := dAtA[iNdEx]
  3535. iNdEx++
  3536. v |= int(b&0x7F) << shift
  3537. if b < 0x80 {
  3538. break
  3539. }
  3540. }
  3541. m.Paused = bool(v != 0)
  3542. case 16:
  3543. if wireType != 2 {
  3544. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  3545. }
  3546. var msglen int
  3547. for shift := uint(0); ; shift += 7 {
  3548. if shift >= 64 {
  3549. return ErrIntOverflowBep
  3550. }
  3551. if iNdEx >= l {
  3552. return io.ErrUnexpectedEOF
  3553. }
  3554. b := dAtA[iNdEx]
  3555. iNdEx++
  3556. msglen |= int(b&0x7F) << shift
  3557. if b < 0x80 {
  3558. break
  3559. }
  3560. }
  3561. if msglen < 0 {
  3562. return ErrInvalidLengthBep
  3563. }
  3564. postIndex := iNdEx + msglen
  3565. if postIndex < 0 {
  3566. return ErrInvalidLengthBep
  3567. }
  3568. if postIndex > l {
  3569. return io.ErrUnexpectedEOF
  3570. }
  3571. m.Devices = append(m.Devices, Device{})
  3572. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3573. return err
  3574. }
  3575. iNdEx = postIndex
  3576. default:
  3577. iNdEx = preIndex
  3578. skippy, err := skipBep(dAtA[iNdEx:])
  3579. if err != nil {
  3580. return err
  3581. }
  3582. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3583. return ErrInvalidLengthBep
  3584. }
  3585. if (iNdEx + skippy) > l {
  3586. return io.ErrUnexpectedEOF
  3587. }
  3588. iNdEx += skippy
  3589. }
  3590. }
  3591. if iNdEx > l {
  3592. return io.ErrUnexpectedEOF
  3593. }
  3594. return nil
  3595. }
  3596. func (m *Device) Unmarshal(dAtA []byte) error {
  3597. l := len(dAtA)
  3598. iNdEx := 0
  3599. for iNdEx < l {
  3600. preIndex := iNdEx
  3601. var wire uint64
  3602. for shift := uint(0); ; shift += 7 {
  3603. if shift >= 64 {
  3604. return ErrIntOverflowBep
  3605. }
  3606. if iNdEx >= l {
  3607. return io.ErrUnexpectedEOF
  3608. }
  3609. b := dAtA[iNdEx]
  3610. iNdEx++
  3611. wire |= uint64(b&0x7F) << shift
  3612. if b < 0x80 {
  3613. break
  3614. }
  3615. }
  3616. fieldNum := int32(wire >> 3)
  3617. wireType := int(wire & 0x7)
  3618. if wireType == 4 {
  3619. return fmt.Errorf("proto: Device: wiretype end group for non-group")
  3620. }
  3621. if fieldNum <= 0 {
  3622. return fmt.Errorf("proto: Device: illegal tag %d (wire type %d)", fieldNum, wire)
  3623. }
  3624. switch fieldNum {
  3625. case 1:
  3626. if wireType != 2 {
  3627. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  3628. }
  3629. var byteLen int
  3630. for shift := uint(0); ; shift += 7 {
  3631. if shift >= 64 {
  3632. return ErrIntOverflowBep
  3633. }
  3634. if iNdEx >= l {
  3635. return io.ErrUnexpectedEOF
  3636. }
  3637. b := dAtA[iNdEx]
  3638. iNdEx++
  3639. byteLen |= int(b&0x7F) << shift
  3640. if b < 0x80 {
  3641. break
  3642. }
  3643. }
  3644. if byteLen < 0 {
  3645. return ErrInvalidLengthBep
  3646. }
  3647. postIndex := iNdEx + byteLen
  3648. if postIndex < 0 {
  3649. return ErrInvalidLengthBep
  3650. }
  3651. if postIndex > l {
  3652. return io.ErrUnexpectedEOF
  3653. }
  3654. if err := m.ID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3655. return err
  3656. }
  3657. iNdEx = postIndex
  3658. case 2:
  3659. if wireType != 2 {
  3660. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3661. }
  3662. var stringLen uint64
  3663. for shift := uint(0); ; shift += 7 {
  3664. if shift >= 64 {
  3665. return ErrIntOverflowBep
  3666. }
  3667. if iNdEx >= l {
  3668. return io.ErrUnexpectedEOF
  3669. }
  3670. b := dAtA[iNdEx]
  3671. iNdEx++
  3672. stringLen |= uint64(b&0x7F) << shift
  3673. if b < 0x80 {
  3674. break
  3675. }
  3676. }
  3677. intStringLen := int(stringLen)
  3678. if intStringLen < 0 {
  3679. return ErrInvalidLengthBep
  3680. }
  3681. postIndex := iNdEx + intStringLen
  3682. if postIndex < 0 {
  3683. return ErrInvalidLengthBep
  3684. }
  3685. if postIndex > l {
  3686. return io.ErrUnexpectedEOF
  3687. }
  3688. m.Name = string(dAtA[iNdEx:postIndex])
  3689. iNdEx = postIndex
  3690. case 3:
  3691. if wireType != 2 {
  3692. return fmt.Errorf("proto: wrong wireType = %d for field Addresses", wireType)
  3693. }
  3694. var stringLen uint64
  3695. for shift := uint(0); ; shift += 7 {
  3696. if shift >= 64 {
  3697. return ErrIntOverflowBep
  3698. }
  3699. if iNdEx >= l {
  3700. return io.ErrUnexpectedEOF
  3701. }
  3702. b := dAtA[iNdEx]
  3703. iNdEx++
  3704. stringLen |= uint64(b&0x7F) << shift
  3705. if b < 0x80 {
  3706. break
  3707. }
  3708. }
  3709. intStringLen := int(stringLen)
  3710. if intStringLen < 0 {
  3711. return ErrInvalidLengthBep
  3712. }
  3713. postIndex := iNdEx + intStringLen
  3714. if postIndex < 0 {
  3715. return ErrInvalidLengthBep
  3716. }
  3717. if postIndex > l {
  3718. return io.ErrUnexpectedEOF
  3719. }
  3720. m.Addresses = append(m.Addresses, string(dAtA[iNdEx:postIndex]))
  3721. iNdEx = postIndex
  3722. case 4:
  3723. if wireType != 0 {
  3724. return fmt.Errorf("proto: wrong wireType = %d for field Compression", wireType)
  3725. }
  3726. m.Compression = 0
  3727. for shift := uint(0); ; shift += 7 {
  3728. if shift >= 64 {
  3729. return ErrIntOverflowBep
  3730. }
  3731. if iNdEx >= l {
  3732. return io.ErrUnexpectedEOF
  3733. }
  3734. b := dAtA[iNdEx]
  3735. iNdEx++
  3736. m.Compression |= Compression(b&0x7F) << shift
  3737. if b < 0x80 {
  3738. break
  3739. }
  3740. }
  3741. case 5:
  3742. if wireType != 2 {
  3743. return fmt.Errorf("proto: wrong wireType = %d for field CertName", wireType)
  3744. }
  3745. var stringLen uint64
  3746. for shift := uint(0); ; shift += 7 {
  3747. if shift >= 64 {
  3748. return ErrIntOverflowBep
  3749. }
  3750. if iNdEx >= l {
  3751. return io.ErrUnexpectedEOF
  3752. }
  3753. b := dAtA[iNdEx]
  3754. iNdEx++
  3755. stringLen |= uint64(b&0x7F) << shift
  3756. if b < 0x80 {
  3757. break
  3758. }
  3759. }
  3760. intStringLen := int(stringLen)
  3761. if intStringLen < 0 {
  3762. return ErrInvalidLengthBep
  3763. }
  3764. postIndex := iNdEx + intStringLen
  3765. if postIndex < 0 {
  3766. return ErrInvalidLengthBep
  3767. }
  3768. if postIndex > l {
  3769. return io.ErrUnexpectedEOF
  3770. }
  3771. m.CertName = string(dAtA[iNdEx:postIndex])
  3772. iNdEx = postIndex
  3773. case 6:
  3774. if wireType != 0 {
  3775. return fmt.Errorf("proto: wrong wireType = %d for field MaxSequence", wireType)
  3776. }
  3777. m.MaxSequence = 0
  3778. for shift := uint(0); ; shift += 7 {
  3779. if shift >= 64 {
  3780. return ErrIntOverflowBep
  3781. }
  3782. if iNdEx >= l {
  3783. return io.ErrUnexpectedEOF
  3784. }
  3785. b := dAtA[iNdEx]
  3786. iNdEx++
  3787. m.MaxSequence |= int64(b&0x7F) << shift
  3788. if b < 0x80 {
  3789. break
  3790. }
  3791. }
  3792. case 7:
  3793. if wireType != 0 {
  3794. return fmt.Errorf("proto: wrong wireType = %d for field Introducer", wireType)
  3795. }
  3796. var v int
  3797. for shift := uint(0); ; shift += 7 {
  3798. if shift >= 64 {
  3799. return ErrIntOverflowBep
  3800. }
  3801. if iNdEx >= l {
  3802. return io.ErrUnexpectedEOF
  3803. }
  3804. b := dAtA[iNdEx]
  3805. iNdEx++
  3806. v |= int(b&0x7F) << shift
  3807. if b < 0x80 {
  3808. break
  3809. }
  3810. }
  3811. m.Introducer = bool(v != 0)
  3812. case 8:
  3813. if wireType != 0 {
  3814. return fmt.Errorf("proto: wrong wireType = %d for field IndexID", wireType)
  3815. }
  3816. m.IndexID = 0
  3817. for shift := uint(0); ; shift += 7 {
  3818. if shift >= 64 {
  3819. return ErrIntOverflowBep
  3820. }
  3821. if iNdEx >= l {
  3822. return io.ErrUnexpectedEOF
  3823. }
  3824. b := dAtA[iNdEx]
  3825. iNdEx++
  3826. m.IndexID |= IndexID(b&0x7F) << shift
  3827. if b < 0x80 {
  3828. break
  3829. }
  3830. }
  3831. case 9:
  3832. if wireType != 0 {
  3833. return fmt.Errorf("proto: wrong wireType = %d for field SkipIntroductionRemovals", wireType)
  3834. }
  3835. var v int
  3836. for shift := uint(0); ; shift += 7 {
  3837. if shift >= 64 {
  3838. return ErrIntOverflowBep
  3839. }
  3840. if iNdEx >= l {
  3841. return io.ErrUnexpectedEOF
  3842. }
  3843. b := dAtA[iNdEx]
  3844. iNdEx++
  3845. v |= int(b&0x7F) << shift
  3846. if b < 0x80 {
  3847. break
  3848. }
  3849. }
  3850. m.SkipIntroductionRemovals = bool(v != 0)
  3851. case 10:
  3852. if wireType != 2 {
  3853. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionPasswordToken", wireType)
  3854. }
  3855. var byteLen int
  3856. for shift := uint(0); ; shift += 7 {
  3857. if shift >= 64 {
  3858. return ErrIntOverflowBep
  3859. }
  3860. if iNdEx >= l {
  3861. return io.ErrUnexpectedEOF
  3862. }
  3863. b := dAtA[iNdEx]
  3864. iNdEx++
  3865. byteLen |= int(b&0x7F) << shift
  3866. if b < 0x80 {
  3867. break
  3868. }
  3869. }
  3870. if byteLen < 0 {
  3871. return ErrInvalidLengthBep
  3872. }
  3873. postIndex := iNdEx + byteLen
  3874. if postIndex < 0 {
  3875. return ErrInvalidLengthBep
  3876. }
  3877. if postIndex > l {
  3878. return io.ErrUnexpectedEOF
  3879. }
  3880. m.EncryptionPasswordToken = append(m.EncryptionPasswordToken[:0], dAtA[iNdEx:postIndex]...)
  3881. if m.EncryptionPasswordToken == nil {
  3882. m.EncryptionPasswordToken = []byte{}
  3883. }
  3884. iNdEx = postIndex
  3885. default:
  3886. iNdEx = preIndex
  3887. skippy, err := skipBep(dAtA[iNdEx:])
  3888. if err != nil {
  3889. return err
  3890. }
  3891. if (skippy < 0) || (iNdEx+skippy) < 0 {
  3892. return ErrInvalidLengthBep
  3893. }
  3894. if (iNdEx + skippy) > l {
  3895. return io.ErrUnexpectedEOF
  3896. }
  3897. iNdEx += skippy
  3898. }
  3899. }
  3900. if iNdEx > l {
  3901. return io.ErrUnexpectedEOF
  3902. }
  3903. return nil
  3904. }
  3905. func (m *Index) Unmarshal(dAtA []byte) error {
  3906. l := len(dAtA)
  3907. iNdEx := 0
  3908. for iNdEx < l {
  3909. preIndex := iNdEx
  3910. var wire uint64
  3911. for shift := uint(0); ; shift += 7 {
  3912. if shift >= 64 {
  3913. return ErrIntOverflowBep
  3914. }
  3915. if iNdEx >= l {
  3916. return io.ErrUnexpectedEOF
  3917. }
  3918. b := dAtA[iNdEx]
  3919. iNdEx++
  3920. wire |= uint64(b&0x7F) << shift
  3921. if b < 0x80 {
  3922. break
  3923. }
  3924. }
  3925. fieldNum := int32(wire >> 3)
  3926. wireType := int(wire & 0x7)
  3927. if wireType == 4 {
  3928. return fmt.Errorf("proto: Index: wiretype end group for non-group")
  3929. }
  3930. if fieldNum <= 0 {
  3931. return fmt.Errorf("proto: Index: illegal tag %d (wire type %d)", fieldNum, wire)
  3932. }
  3933. switch fieldNum {
  3934. case 1:
  3935. if wireType != 2 {
  3936. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  3937. }
  3938. var stringLen uint64
  3939. for shift := uint(0); ; shift += 7 {
  3940. if shift >= 64 {
  3941. return ErrIntOverflowBep
  3942. }
  3943. if iNdEx >= l {
  3944. return io.ErrUnexpectedEOF
  3945. }
  3946. b := dAtA[iNdEx]
  3947. iNdEx++
  3948. stringLen |= uint64(b&0x7F) << shift
  3949. if b < 0x80 {
  3950. break
  3951. }
  3952. }
  3953. intStringLen := int(stringLen)
  3954. if intStringLen < 0 {
  3955. return ErrInvalidLengthBep
  3956. }
  3957. postIndex := iNdEx + intStringLen
  3958. if postIndex < 0 {
  3959. return ErrInvalidLengthBep
  3960. }
  3961. if postIndex > l {
  3962. return io.ErrUnexpectedEOF
  3963. }
  3964. m.Folder = string(dAtA[iNdEx:postIndex])
  3965. iNdEx = postIndex
  3966. case 2:
  3967. if wireType != 2 {
  3968. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  3969. }
  3970. var msglen int
  3971. for shift := uint(0); ; shift += 7 {
  3972. if shift >= 64 {
  3973. return ErrIntOverflowBep
  3974. }
  3975. if iNdEx >= l {
  3976. return io.ErrUnexpectedEOF
  3977. }
  3978. b := dAtA[iNdEx]
  3979. iNdEx++
  3980. msglen |= int(b&0x7F) << shift
  3981. if b < 0x80 {
  3982. break
  3983. }
  3984. }
  3985. if msglen < 0 {
  3986. return ErrInvalidLengthBep
  3987. }
  3988. postIndex := iNdEx + msglen
  3989. if postIndex < 0 {
  3990. return ErrInvalidLengthBep
  3991. }
  3992. if postIndex > l {
  3993. return io.ErrUnexpectedEOF
  3994. }
  3995. m.Files = append(m.Files, FileInfo{})
  3996. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  3997. return err
  3998. }
  3999. iNdEx = postIndex
  4000. default:
  4001. iNdEx = preIndex
  4002. skippy, err := skipBep(dAtA[iNdEx:])
  4003. if err != nil {
  4004. return err
  4005. }
  4006. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4007. return ErrInvalidLengthBep
  4008. }
  4009. if (iNdEx + skippy) > l {
  4010. return io.ErrUnexpectedEOF
  4011. }
  4012. iNdEx += skippy
  4013. }
  4014. }
  4015. if iNdEx > l {
  4016. return io.ErrUnexpectedEOF
  4017. }
  4018. return nil
  4019. }
  4020. func (m *IndexUpdate) Unmarshal(dAtA []byte) error {
  4021. l := len(dAtA)
  4022. iNdEx := 0
  4023. for iNdEx < l {
  4024. preIndex := iNdEx
  4025. var wire uint64
  4026. for shift := uint(0); ; shift += 7 {
  4027. if shift >= 64 {
  4028. return ErrIntOverflowBep
  4029. }
  4030. if iNdEx >= l {
  4031. return io.ErrUnexpectedEOF
  4032. }
  4033. b := dAtA[iNdEx]
  4034. iNdEx++
  4035. wire |= uint64(b&0x7F) << shift
  4036. if b < 0x80 {
  4037. break
  4038. }
  4039. }
  4040. fieldNum := int32(wire >> 3)
  4041. wireType := int(wire & 0x7)
  4042. if wireType == 4 {
  4043. return fmt.Errorf("proto: IndexUpdate: wiretype end group for non-group")
  4044. }
  4045. if fieldNum <= 0 {
  4046. return fmt.Errorf("proto: IndexUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  4047. }
  4048. switch fieldNum {
  4049. case 1:
  4050. if wireType != 2 {
  4051. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  4052. }
  4053. var stringLen uint64
  4054. for shift := uint(0); ; shift += 7 {
  4055. if shift >= 64 {
  4056. return ErrIntOverflowBep
  4057. }
  4058. if iNdEx >= l {
  4059. return io.ErrUnexpectedEOF
  4060. }
  4061. b := dAtA[iNdEx]
  4062. iNdEx++
  4063. stringLen |= uint64(b&0x7F) << shift
  4064. if b < 0x80 {
  4065. break
  4066. }
  4067. }
  4068. intStringLen := int(stringLen)
  4069. if intStringLen < 0 {
  4070. return ErrInvalidLengthBep
  4071. }
  4072. postIndex := iNdEx + intStringLen
  4073. if postIndex < 0 {
  4074. return ErrInvalidLengthBep
  4075. }
  4076. if postIndex > l {
  4077. return io.ErrUnexpectedEOF
  4078. }
  4079. m.Folder = string(dAtA[iNdEx:postIndex])
  4080. iNdEx = postIndex
  4081. case 2:
  4082. if wireType != 2 {
  4083. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  4084. }
  4085. var msglen int
  4086. for shift := uint(0); ; shift += 7 {
  4087. if shift >= 64 {
  4088. return ErrIntOverflowBep
  4089. }
  4090. if iNdEx >= l {
  4091. return io.ErrUnexpectedEOF
  4092. }
  4093. b := dAtA[iNdEx]
  4094. iNdEx++
  4095. msglen |= int(b&0x7F) << shift
  4096. if b < 0x80 {
  4097. break
  4098. }
  4099. }
  4100. if msglen < 0 {
  4101. return ErrInvalidLengthBep
  4102. }
  4103. postIndex := iNdEx + msglen
  4104. if postIndex < 0 {
  4105. return ErrInvalidLengthBep
  4106. }
  4107. if postIndex > l {
  4108. return io.ErrUnexpectedEOF
  4109. }
  4110. m.Files = append(m.Files, FileInfo{})
  4111. if err := m.Files[len(m.Files)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4112. return err
  4113. }
  4114. iNdEx = postIndex
  4115. default:
  4116. iNdEx = preIndex
  4117. skippy, err := skipBep(dAtA[iNdEx:])
  4118. if err != nil {
  4119. return err
  4120. }
  4121. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4122. return ErrInvalidLengthBep
  4123. }
  4124. if (iNdEx + skippy) > l {
  4125. return io.ErrUnexpectedEOF
  4126. }
  4127. iNdEx += skippy
  4128. }
  4129. }
  4130. if iNdEx > l {
  4131. return io.ErrUnexpectedEOF
  4132. }
  4133. return nil
  4134. }
  4135. func (m *FileInfo) Unmarshal(dAtA []byte) error {
  4136. l := len(dAtA)
  4137. iNdEx := 0
  4138. for iNdEx < l {
  4139. preIndex := iNdEx
  4140. var wire uint64
  4141. for shift := uint(0); ; shift += 7 {
  4142. if shift >= 64 {
  4143. return ErrIntOverflowBep
  4144. }
  4145. if iNdEx >= l {
  4146. return io.ErrUnexpectedEOF
  4147. }
  4148. b := dAtA[iNdEx]
  4149. iNdEx++
  4150. wire |= uint64(b&0x7F) << shift
  4151. if b < 0x80 {
  4152. break
  4153. }
  4154. }
  4155. fieldNum := int32(wire >> 3)
  4156. wireType := int(wire & 0x7)
  4157. if wireType == 4 {
  4158. return fmt.Errorf("proto: FileInfo: wiretype end group for non-group")
  4159. }
  4160. if fieldNum <= 0 {
  4161. return fmt.Errorf("proto: FileInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4162. }
  4163. switch fieldNum {
  4164. case 1:
  4165. if wireType != 2 {
  4166. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  4167. }
  4168. var stringLen uint64
  4169. for shift := uint(0); ; shift += 7 {
  4170. if shift >= 64 {
  4171. return ErrIntOverflowBep
  4172. }
  4173. if iNdEx >= l {
  4174. return io.ErrUnexpectedEOF
  4175. }
  4176. b := dAtA[iNdEx]
  4177. iNdEx++
  4178. stringLen |= uint64(b&0x7F) << shift
  4179. if b < 0x80 {
  4180. break
  4181. }
  4182. }
  4183. intStringLen := int(stringLen)
  4184. if intStringLen < 0 {
  4185. return ErrInvalidLengthBep
  4186. }
  4187. postIndex := iNdEx + intStringLen
  4188. if postIndex < 0 {
  4189. return ErrInvalidLengthBep
  4190. }
  4191. if postIndex > l {
  4192. return io.ErrUnexpectedEOF
  4193. }
  4194. m.Name = string(dAtA[iNdEx:postIndex])
  4195. iNdEx = postIndex
  4196. case 2:
  4197. if wireType != 0 {
  4198. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  4199. }
  4200. m.Type = 0
  4201. for shift := uint(0); ; shift += 7 {
  4202. if shift >= 64 {
  4203. return ErrIntOverflowBep
  4204. }
  4205. if iNdEx >= l {
  4206. return io.ErrUnexpectedEOF
  4207. }
  4208. b := dAtA[iNdEx]
  4209. iNdEx++
  4210. m.Type |= FileInfoType(b&0x7F) << shift
  4211. if b < 0x80 {
  4212. break
  4213. }
  4214. }
  4215. case 3:
  4216. if wireType != 0 {
  4217. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  4218. }
  4219. m.Size = 0
  4220. for shift := uint(0); ; shift += 7 {
  4221. if shift >= 64 {
  4222. return ErrIntOverflowBep
  4223. }
  4224. if iNdEx >= l {
  4225. return io.ErrUnexpectedEOF
  4226. }
  4227. b := dAtA[iNdEx]
  4228. iNdEx++
  4229. m.Size |= int64(b&0x7F) << shift
  4230. if b < 0x80 {
  4231. break
  4232. }
  4233. }
  4234. case 4:
  4235. if wireType != 0 {
  4236. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  4237. }
  4238. m.Permissions = 0
  4239. for shift := uint(0); ; shift += 7 {
  4240. if shift >= 64 {
  4241. return ErrIntOverflowBep
  4242. }
  4243. if iNdEx >= l {
  4244. return io.ErrUnexpectedEOF
  4245. }
  4246. b := dAtA[iNdEx]
  4247. iNdEx++
  4248. m.Permissions |= uint32(b&0x7F) << shift
  4249. if b < 0x80 {
  4250. break
  4251. }
  4252. }
  4253. case 5:
  4254. if wireType != 0 {
  4255. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedS", wireType)
  4256. }
  4257. m.ModifiedS = 0
  4258. for shift := uint(0); ; shift += 7 {
  4259. if shift >= 64 {
  4260. return ErrIntOverflowBep
  4261. }
  4262. if iNdEx >= l {
  4263. return io.ErrUnexpectedEOF
  4264. }
  4265. b := dAtA[iNdEx]
  4266. iNdEx++
  4267. m.ModifiedS |= int64(b&0x7F) << shift
  4268. if b < 0x80 {
  4269. break
  4270. }
  4271. }
  4272. case 6:
  4273. if wireType != 0 {
  4274. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  4275. }
  4276. var v int
  4277. for shift := uint(0); ; shift += 7 {
  4278. if shift >= 64 {
  4279. return ErrIntOverflowBep
  4280. }
  4281. if iNdEx >= l {
  4282. return io.ErrUnexpectedEOF
  4283. }
  4284. b := dAtA[iNdEx]
  4285. iNdEx++
  4286. v |= int(b&0x7F) << shift
  4287. if b < 0x80 {
  4288. break
  4289. }
  4290. }
  4291. m.Deleted = bool(v != 0)
  4292. case 7:
  4293. if wireType != 0 {
  4294. return fmt.Errorf("proto: wrong wireType = %d for field RawInvalid", wireType)
  4295. }
  4296. var v int
  4297. for shift := uint(0); ; shift += 7 {
  4298. if shift >= 64 {
  4299. return ErrIntOverflowBep
  4300. }
  4301. if iNdEx >= l {
  4302. return io.ErrUnexpectedEOF
  4303. }
  4304. b := dAtA[iNdEx]
  4305. iNdEx++
  4306. v |= int(b&0x7F) << shift
  4307. if b < 0x80 {
  4308. break
  4309. }
  4310. }
  4311. m.RawInvalid = bool(v != 0)
  4312. case 8:
  4313. if wireType != 0 {
  4314. return fmt.Errorf("proto: wrong wireType = %d for field NoPermissions", wireType)
  4315. }
  4316. var v int
  4317. for shift := uint(0); ; shift += 7 {
  4318. if shift >= 64 {
  4319. return ErrIntOverflowBep
  4320. }
  4321. if iNdEx >= l {
  4322. return io.ErrUnexpectedEOF
  4323. }
  4324. b := dAtA[iNdEx]
  4325. iNdEx++
  4326. v |= int(b&0x7F) << shift
  4327. if b < 0x80 {
  4328. break
  4329. }
  4330. }
  4331. m.NoPermissions = bool(v != 0)
  4332. case 9:
  4333. if wireType != 2 {
  4334. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  4335. }
  4336. var msglen int
  4337. for shift := uint(0); ; shift += 7 {
  4338. if shift >= 64 {
  4339. return ErrIntOverflowBep
  4340. }
  4341. if iNdEx >= l {
  4342. return io.ErrUnexpectedEOF
  4343. }
  4344. b := dAtA[iNdEx]
  4345. iNdEx++
  4346. msglen |= int(b&0x7F) << shift
  4347. if b < 0x80 {
  4348. break
  4349. }
  4350. }
  4351. if msglen < 0 {
  4352. return ErrInvalidLengthBep
  4353. }
  4354. postIndex := iNdEx + msglen
  4355. if postIndex < 0 {
  4356. return ErrInvalidLengthBep
  4357. }
  4358. if postIndex > l {
  4359. return io.ErrUnexpectedEOF
  4360. }
  4361. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4362. return err
  4363. }
  4364. iNdEx = postIndex
  4365. case 10:
  4366. if wireType != 0 {
  4367. return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  4368. }
  4369. m.Sequence = 0
  4370. for shift := uint(0); ; shift += 7 {
  4371. if shift >= 64 {
  4372. return ErrIntOverflowBep
  4373. }
  4374. if iNdEx >= l {
  4375. return io.ErrUnexpectedEOF
  4376. }
  4377. b := dAtA[iNdEx]
  4378. iNdEx++
  4379. m.Sequence |= int64(b&0x7F) << shift
  4380. if b < 0x80 {
  4381. break
  4382. }
  4383. }
  4384. case 11:
  4385. if wireType != 0 {
  4386. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedNs", wireType)
  4387. }
  4388. m.ModifiedNs = 0
  4389. for shift := uint(0); ; shift += 7 {
  4390. if shift >= 64 {
  4391. return ErrIntOverflowBep
  4392. }
  4393. if iNdEx >= l {
  4394. return io.ErrUnexpectedEOF
  4395. }
  4396. b := dAtA[iNdEx]
  4397. iNdEx++
  4398. m.ModifiedNs |= int(b&0x7F) << shift
  4399. if b < 0x80 {
  4400. break
  4401. }
  4402. }
  4403. case 12:
  4404. if wireType != 0 {
  4405. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedBy", wireType)
  4406. }
  4407. m.ModifiedBy = 0
  4408. for shift := uint(0); ; shift += 7 {
  4409. if shift >= 64 {
  4410. return ErrIntOverflowBep
  4411. }
  4412. if iNdEx >= l {
  4413. return io.ErrUnexpectedEOF
  4414. }
  4415. b := dAtA[iNdEx]
  4416. iNdEx++
  4417. m.ModifiedBy |= ShortID(b&0x7F) << shift
  4418. if b < 0x80 {
  4419. break
  4420. }
  4421. }
  4422. case 13:
  4423. if wireType != 0 {
  4424. return fmt.Errorf("proto: wrong wireType = %d for field RawBlockSize", wireType)
  4425. }
  4426. m.RawBlockSize = 0
  4427. for shift := uint(0); ; shift += 7 {
  4428. if shift >= 64 {
  4429. return ErrIntOverflowBep
  4430. }
  4431. if iNdEx >= l {
  4432. return io.ErrUnexpectedEOF
  4433. }
  4434. b := dAtA[iNdEx]
  4435. iNdEx++
  4436. m.RawBlockSize |= int(b&0x7F) << shift
  4437. if b < 0x80 {
  4438. break
  4439. }
  4440. }
  4441. case 14:
  4442. if wireType != 2 {
  4443. return fmt.Errorf("proto: wrong wireType = %d for field Platform", wireType)
  4444. }
  4445. var msglen int
  4446. for shift := uint(0); ; shift += 7 {
  4447. if shift >= 64 {
  4448. return ErrIntOverflowBep
  4449. }
  4450. if iNdEx >= l {
  4451. return io.ErrUnexpectedEOF
  4452. }
  4453. b := dAtA[iNdEx]
  4454. iNdEx++
  4455. msglen |= int(b&0x7F) << shift
  4456. if b < 0x80 {
  4457. break
  4458. }
  4459. }
  4460. if msglen < 0 {
  4461. return ErrInvalidLengthBep
  4462. }
  4463. postIndex := iNdEx + msglen
  4464. if postIndex < 0 {
  4465. return ErrInvalidLengthBep
  4466. }
  4467. if postIndex > l {
  4468. return io.ErrUnexpectedEOF
  4469. }
  4470. if err := m.Platform.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4471. return err
  4472. }
  4473. iNdEx = postIndex
  4474. case 16:
  4475. if wireType != 2 {
  4476. return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType)
  4477. }
  4478. var msglen int
  4479. for shift := uint(0); ; shift += 7 {
  4480. if shift >= 64 {
  4481. return ErrIntOverflowBep
  4482. }
  4483. if iNdEx >= l {
  4484. return io.ErrUnexpectedEOF
  4485. }
  4486. b := dAtA[iNdEx]
  4487. iNdEx++
  4488. msglen |= int(b&0x7F) << shift
  4489. if b < 0x80 {
  4490. break
  4491. }
  4492. }
  4493. if msglen < 0 {
  4494. return ErrInvalidLengthBep
  4495. }
  4496. postIndex := iNdEx + msglen
  4497. if postIndex < 0 {
  4498. return ErrInvalidLengthBep
  4499. }
  4500. if postIndex > l {
  4501. return io.ErrUnexpectedEOF
  4502. }
  4503. m.Blocks = append(m.Blocks, BlockInfo{})
  4504. if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4505. return err
  4506. }
  4507. iNdEx = postIndex
  4508. case 17:
  4509. if wireType != 2 {
  4510. return fmt.Errorf("proto: wrong wireType = %d for field SymlinkTarget", wireType)
  4511. }
  4512. var stringLen uint64
  4513. for shift := uint(0); ; shift += 7 {
  4514. if shift >= 64 {
  4515. return ErrIntOverflowBep
  4516. }
  4517. if iNdEx >= l {
  4518. return io.ErrUnexpectedEOF
  4519. }
  4520. b := dAtA[iNdEx]
  4521. iNdEx++
  4522. stringLen |= uint64(b&0x7F) << shift
  4523. if b < 0x80 {
  4524. break
  4525. }
  4526. }
  4527. intStringLen := int(stringLen)
  4528. if intStringLen < 0 {
  4529. return ErrInvalidLengthBep
  4530. }
  4531. postIndex := iNdEx + intStringLen
  4532. if postIndex < 0 {
  4533. return ErrInvalidLengthBep
  4534. }
  4535. if postIndex > l {
  4536. return io.ErrUnexpectedEOF
  4537. }
  4538. m.SymlinkTarget = string(dAtA[iNdEx:postIndex])
  4539. iNdEx = postIndex
  4540. case 18:
  4541. if wireType != 2 {
  4542. return fmt.Errorf("proto: wrong wireType = %d for field BlocksHash", wireType)
  4543. }
  4544. var byteLen int
  4545. for shift := uint(0); ; shift += 7 {
  4546. if shift >= 64 {
  4547. return ErrIntOverflowBep
  4548. }
  4549. if iNdEx >= l {
  4550. return io.ErrUnexpectedEOF
  4551. }
  4552. b := dAtA[iNdEx]
  4553. iNdEx++
  4554. byteLen |= int(b&0x7F) << shift
  4555. if b < 0x80 {
  4556. break
  4557. }
  4558. }
  4559. if byteLen < 0 {
  4560. return ErrInvalidLengthBep
  4561. }
  4562. postIndex := iNdEx + byteLen
  4563. if postIndex < 0 {
  4564. return ErrInvalidLengthBep
  4565. }
  4566. if postIndex > l {
  4567. return io.ErrUnexpectedEOF
  4568. }
  4569. m.BlocksHash = append(m.BlocksHash[:0], dAtA[iNdEx:postIndex]...)
  4570. if m.BlocksHash == nil {
  4571. m.BlocksHash = []byte{}
  4572. }
  4573. iNdEx = postIndex
  4574. case 19:
  4575. if wireType != 2 {
  4576. return fmt.Errorf("proto: wrong wireType = %d for field Encrypted", wireType)
  4577. }
  4578. var byteLen int
  4579. for shift := uint(0); ; shift += 7 {
  4580. if shift >= 64 {
  4581. return ErrIntOverflowBep
  4582. }
  4583. if iNdEx >= l {
  4584. return io.ErrUnexpectedEOF
  4585. }
  4586. b := dAtA[iNdEx]
  4587. iNdEx++
  4588. byteLen |= int(b&0x7F) << shift
  4589. if b < 0x80 {
  4590. break
  4591. }
  4592. }
  4593. if byteLen < 0 {
  4594. return ErrInvalidLengthBep
  4595. }
  4596. postIndex := iNdEx + byteLen
  4597. if postIndex < 0 {
  4598. return ErrInvalidLengthBep
  4599. }
  4600. if postIndex > l {
  4601. return io.ErrUnexpectedEOF
  4602. }
  4603. m.Encrypted = append(m.Encrypted[:0], dAtA[iNdEx:postIndex]...)
  4604. if m.Encrypted == nil {
  4605. m.Encrypted = []byte{}
  4606. }
  4607. iNdEx = postIndex
  4608. case 1000:
  4609. if wireType != 0 {
  4610. return fmt.Errorf("proto: wrong wireType = %d for field LocalFlags", wireType)
  4611. }
  4612. m.LocalFlags = 0
  4613. for shift := uint(0); ; shift += 7 {
  4614. if shift >= 64 {
  4615. return ErrIntOverflowBep
  4616. }
  4617. if iNdEx >= l {
  4618. return io.ErrUnexpectedEOF
  4619. }
  4620. b := dAtA[iNdEx]
  4621. iNdEx++
  4622. m.LocalFlags |= uint32(b&0x7F) << shift
  4623. if b < 0x80 {
  4624. break
  4625. }
  4626. }
  4627. case 1001:
  4628. if wireType != 2 {
  4629. return fmt.Errorf("proto: wrong wireType = %d for field VersionHash", wireType)
  4630. }
  4631. var byteLen int
  4632. for shift := uint(0); ; shift += 7 {
  4633. if shift >= 64 {
  4634. return ErrIntOverflowBep
  4635. }
  4636. if iNdEx >= l {
  4637. return io.ErrUnexpectedEOF
  4638. }
  4639. b := dAtA[iNdEx]
  4640. iNdEx++
  4641. byteLen |= int(b&0x7F) << shift
  4642. if b < 0x80 {
  4643. break
  4644. }
  4645. }
  4646. if byteLen < 0 {
  4647. return ErrInvalidLengthBep
  4648. }
  4649. postIndex := iNdEx + byteLen
  4650. if postIndex < 0 {
  4651. return ErrInvalidLengthBep
  4652. }
  4653. if postIndex > l {
  4654. return io.ErrUnexpectedEOF
  4655. }
  4656. m.VersionHash = append(m.VersionHash[:0], dAtA[iNdEx:postIndex]...)
  4657. if m.VersionHash == nil {
  4658. m.VersionHash = []byte{}
  4659. }
  4660. iNdEx = postIndex
  4661. case 1002:
  4662. if wireType != 0 {
  4663. return fmt.Errorf("proto: wrong wireType = %d for field InodeChangeNs", wireType)
  4664. }
  4665. m.InodeChangeNs = 0
  4666. for shift := uint(0); ; shift += 7 {
  4667. if shift >= 64 {
  4668. return ErrIntOverflowBep
  4669. }
  4670. if iNdEx >= l {
  4671. return io.ErrUnexpectedEOF
  4672. }
  4673. b := dAtA[iNdEx]
  4674. iNdEx++
  4675. m.InodeChangeNs |= int64(b&0x7F) << shift
  4676. if b < 0x80 {
  4677. break
  4678. }
  4679. }
  4680. case 1003:
  4681. if wireType != 0 {
  4682. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionTrailerSize", wireType)
  4683. }
  4684. m.EncryptionTrailerSize = 0
  4685. for shift := uint(0); ; shift += 7 {
  4686. if shift >= 64 {
  4687. return ErrIntOverflowBep
  4688. }
  4689. if iNdEx >= l {
  4690. return io.ErrUnexpectedEOF
  4691. }
  4692. b := dAtA[iNdEx]
  4693. iNdEx++
  4694. m.EncryptionTrailerSize |= int(b&0x7F) << shift
  4695. if b < 0x80 {
  4696. break
  4697. }
  4698. }
  4699. default:
  4700. iNdEx = preIndex
  4701. skippy, err := skipBep(dAtA[iNdEx:])
  4702. if err != nil {
  4703. return err
  4704. }
  4705. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4706. return ErrInvalidLengthBep
  4707. }
  4708. if (iNdEx + skippy) > l {
  4709. return io.ErrUnexpectedEOF
  4710. }
  4711. iNdEx += skippy
  4712. }
  4713. }
  4714. if iNdEx > l {
  4715. return io.ErrUnexpectedEOF
  4716. }
  4717. return nil
  4718. }
  4719. func (m *BlockInfo) Unmarshal(dAtA []byte) error {
  4720. l := len(dAtA)
  4721. iNdEx := 0
  4722. for iNdEx < l {
  4723. preIndex := iNdEx
  4724. var wire uint64
  4725. for shift := uint(0); ; shift += 7 {
  4726. if shift >= 64 {
  4727. return ErrIntOverflowBep
  4728. }
  4729. if iNdEx >= l {
  4730. return io.ErrUnexpectedEOF
  4731. }
  4732. b := dAtA[iNdEx]
  4733. iNdEx++
  4734. wire |= uint64(b&0x7F) << shift
  4735. if b < 0x80 {
  4736. break
  4737. }
  4738. }
  4739. fieldNum := int32(wire >> 3)
  4740. wireType := int(wire & 0x7)
  4741. if wireType == 4 {
  4742. return fmt.Errorf("proto: BlockInfo: wiretype end group for non-group")
  4743. }
  4744. if fieldNum <= 0 {
  4745. return fmt.Errorf("proto: BlockInfo: illegal tag %d (wire type %d)", fieldNum, wire)
  4746. }
  4747. switch fieldNum {
  4748. case 1:
  4749. if wireType != 0 {
  4750. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  4751. }
  4752. m.Offset = 0
  4753. for shift := uint(0); ; shift += 7 {
  4754. if shift >= 64 {
  4755. return ErrIntOverflowBep
  4756. }
  4757. if iNdEx >= l {
  4758. return io.ErrUnexpectedEOF
  4759. }
  4760. b := dAtA[iNdEx]
  4761. iNdEx++
  4762. m.Offset |= int64(b&0x7F) << shift
  4763. if b < 0x80 {
  4764. break
  4765. }
  4766. }
  4767. case 2:
  4768. if wireType != 0 {
  4769. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  4770. }
  4771. m.Size = 0
  4772. for shift := uint(0); ; shift += 7 {
  4773. if shift >= 64 {
  4774. return ErrIntOverflowBep
  4775. }
  4776. if iNdEx >= l {
  4777. return io.ErrUnexpectedEOF
  4778. }
  4779. b := dAtA[iNdEx]
  4780. iNdEx++
  4781. m.Size |= int(b&0x7F) << shift
  4782. if b < 0x80 {
  4783. break
  4784. }
  4785. }
  4786. case 3:
  4787. if wireType != 2 {
  4788. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  4789. }
  4790. var byteLen int
  4791. for shift := uint(0); ; shift += 7 {
  4792. if shift >= 64 {
  4793. return ErrIntOverflowBep
  4794. }
  4795. if iNdEx >= l {
  4796. return io.ErrUnexpectedEOF
  4797. }
  4798. b := dAtA[iNdEx]
  4799. iNdEx++
  4800. byteLen |= int(b&0x7F) << shift
  4801. if b < 0x80 {
  4802. break
  4803. }
  4804. }
  4805. if byteLen < 0 {
  4806. return ErrInvalidLengthBep
  4807. }
  4808. postIndex := iNdEx + byteLen
  4809. if postIndex < 0 {
  4810. return ErrInvalidLengthBep
  4811. }
  4812. if postIndex > l {
  4813. return io.ErrUnexpectedEOF
  4814. }
  4815. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  4816. if m.Hash == nil {
  4817. m.Hash = []byte{}
  4818. }
  4819. iNdEx = postIndex
  4820. case 4:
  4821. if wireType != 0 {
  4822. return fmt.Errorf("proto: wrong wireType = %d for field WeakHash", wireType)
  4823. }
  4824. m.WeakHash = 0
  4825. for shift := uint(0); ; shift += 7 {
  4826. if shift >= 64 {
  4827. return ErrIntOverflowBep
  4828. }
  4829. if iNdEx >= l {
  4830. return io.ErrUnexpectedEOF
  4831. }
  4832. b := dAtA[iNdEx]
  4833. iNdEx++
  4834. m.WeakHash |= uint32(b&0x7F) << shift
  4835. if b < 0x80 {
  4836. break
  4837. }
  4838. }
  4839. default:
  4840. iNdEx = preIndex
  4841. skippy, err := skipBep(dAtA[iNdEx:])
  4842. if err != nil {
  4843. return err
  4844. }
  4845. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4846. return ErrInvalidLengthBep
  4847. }
  4848. if (iNdEx + skippy) > l {
  4849. return io.ErrUnexpectedEOF
  4850. }
  4851. iNdEx += skippy
  4852. }
  4853. }
  4854. if iNdEx > l {
  4855. return io.ErrUnexpectedEOF
  4856. }
  4857. return nil
  4858. }
  4859. func (m *Vector) Unmarshal(dAtA []byte) error {
  4860. l := len(dAtA)
  4861. iNdEx := 0
  4862. for iNdEx < l {
  4863. preIndex := iNdEx
  4864. var wire uint64
  4865. for shift := uint(0); ; shift += 7 {
  4866. if shift >= 64 {
  4867. return ErrIntOverflowBep
  4868. }
  4869. if iNdEx >= l {
  4870. return io.ErrUnexpectedEOF
  4871. }
  4872. b := dAtA[iNdEx]
  4873. iNdEx++
  4874. wire |= uint64(b&0x7F) << shift
  4875. if b < 0x80 {
  4876. break
  4877. }
  4878. }
  4879. fieldNum := int32(wire >> 3)
  4880. wireType := int(wire & 0x7)
  4881. if wireType == 4 {
  4882. return fmt.Errorf("proto: Vector: wiretype end group for non-group")
  4883. }
  4884. if fieldNum <= 0 {
  4885. return fmt.Errorf("proto: Vector: illegal tag %d (wire type %d)", fieldNum, wire)
  4886. }
  4887. switch fieldNum {
  4888. case 1:
  4889. if wireType != 2 {
  4890. return fmt.Errorf("proto: wrong wireType = %d for field Counters", wireType)
  4891. }
  4892. var msglen 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. msglen |= int(b&0x7F) << shift
  4903. if b < 0x80 {
  4904. break
  4905. }
  4906. }
  4907. if msglen < 0 {
  4908. return ErrInvalidLengthBep
  4909. }
  4910. postIndex := iNdEx + msglen
  4911. if postIndex < 0 {
  4912. return ErrInvalidLengthBep
  4913. }
  4914. if postIndex > l {
  4915. return io.ErrUnexpectedEOF
  4916. }
  4917. m.Counters = append(m.Counters, Counter{})
  4918. if err := m.Counters[len(m.Counters)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  4919. return err
  4920. }
  4921. iNdEx = postIndex
  4922. default:
  4923. iNdEx = preIndex
  4924. skippy, err := skipBep(dAtA[iNdEx:])
  4925. if err != nil {
  4926. return err
  4927. }
  4928. if (skippy < 0) || (iNdEx+skippy) < 0 {
  4929. return ErrInvalidLengthBep
  4930. }
  4931. if (iNdEx + skippy) > l {
  4932. return io.ErrUnexpectedEOF
  4933. }
  4934. iNdEx += skippy
  4935. }
  4936. }
  4937. if iNdEx > l {
  4938. return io.ErrUnexpectedEOF
  4939. }
  4940. return nil
  4941. }
  4942. func (m *Counter) Unmarshal(dAtA []byte) error {
  4943. l := len(dAtA)
  4944. iNdEx := 0
  4945. for iNdEx < l {
  4946. preIndex := iNdEx
  4947. var wire uint64
  4948. for shift := uint(0); ; shift += 7 {
  4949. if shift >= 64 {
  4950. return ErrIntOverflowBep
  4951. }
  4952. if iNdEx >= l {
  4953. return io.ErrUnexpectedEOF
  4954. }
  4955. b := dAtA[iNdEx]
  4956. iNdEx++
  4957. wire |= uint64(b&0x7F) << shift
  4958. if b < 0x80 {
  4959. break
  4960. }
  4961. }
  4962. fieldNum := int32(wire >> 3)
  4963. wireType := int(wire & 0x7)
  4964. if wireType == 4 {
  4965. return fmt.Errorf("proto: Counter: wiretype end group for non-group")
  4966. }
  4967. if fieldNum <= 0 {
  4968. return fmt.Errorf("proto: Counter: illegal tag %d (wire type %d)", fieldNum, wire)
  4969. }
  4970. switch fieldNum {
  4971. case 1:
  4972. if wireType != 0 {
  4973. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  4974. }
  4975. m.ID = 0
  4976. for shift := uint(0); ; shift += 7 {
  4977. if shift >= 64 {
  4978. return ErrIntOverflowBep
  4979. }
  4980. if iNdEx >= l {
  4981. return io.ErrUnexpectedEOF
  4982. }
  4983. b := dAtA[iNdEx]
  4984. iNdEx++
  4985. m.ID |= ShortID(b&0x7F) << shift
  4986. if b < 0x80 {
  4987. break
  4988. }
  4989. }
  4990. case 2:
  4991. if wireType != 0 {
  4992. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  4993. }
  4994. m.Value = 0
  4995. for shift := uint(0); ; shift += 7 {
  4996. if shift >= 64 {
  4997. return ErrIntOverflowBep
  4998. }
  4999. if iNdEx >= l {
  5000. return io.ErrUnexpectedEOF
  5001. }
  5002. b := dAtA[iNdEx]
  5003. iNdEx++
  5004. m.Value |= uint64(b&0x7F) << shift
  5005. if b < 0x80 {
  5006. break
  5007. }
  5008. }
  5009. default:
  5010. iNdEx = preIndex
  5011. skippy, err := skipBep(dAtA[iNdEx:])
  5012. if err != nil {
  5013. return err
  5014. }
  5015. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5016. return ErrInvalidLengthBep
  5017. }
  5018. if (iNdEx + skippy) > l {
  5019. return io.ErrUnexpectedEOF
  5020. }
  5021. iNdEx += skippy
  5022. }
  5023. }
  5024. if iNdEx > l {
  5025. return io.ErrUnexpectedEOF
  5026. }
  5027. return nil
  5028. }
  5029. func (m *PlatformData) Unmarshal(dAtA []byte) error {
  5030. l := len(dAtA)
  5031. iNdEx := 0
  5032. for iNdEx < l {
  5033. preIndex := iNdEx
  5034. var wire uint64
  5035. for shift := uint(0); ; shift += 7 {
  5036. if shift >= 64 {
  5037. return ErrIntOverflowBep
  5038. }
  5039. if iNdEx >= l {
  5040. return io.ErrUnexpectedEOF
  5041. }
  5042. b := dAtA[iNdEx]
  5043. iNdEx++
  5044. wire |= uint64(b&0x7F) << shift
  5045. if b < 0x80 {
  5046. break
  5047. }
  5048. }
  5049. fieldNum := int32(wire >> 3)
  5050. wireType := int(wire & 0x7)
  5051. if wireType == 4 {
  5052. return fmt.Errorf("proto: PlatformData: wiretype end group for non-group")
  5053. }
  5054. if fieldNum <= 0 {
  5055. return fmt.Errorf("proto: PlatformData: illegal tag %d (wire type %d)", fieldNum, wire)
  5056. }
  5057. switch fieldNum {
  5058. case 1:
  5059. if wireType != 2 {
  5060. return fmt.Errorf("proto: wrong wireType = %d for field Unix", wireType)
  5061. }
  5062. var msglen int
  5063. for shift := uint(0); ; shift += 7 {
  5064. if shift >= 64 {
  5065. return ErrIntOverflowBep
  5066. }
  5067. if iNdEx >= l {
  5068. return io.ErrUnexpectedEOF
  5069. }
  5070. b := dAtA[iNdEx]
  5071. iNdEx++
  5072. msglen |= int(b&0x7F) << shift
  5073. if b < 0x80 {
  5074. break
  5075. }
  5076. }
  5077. if msglen < 0 {
  5078. return ErrInvalidLengthBep
  5079. }
  5080. postIndex := iNdEx + msglen
  5081. if postIndex < 0 {
  5082. return ErrInvalidLengthBep
  5083. }
  5084. if postIndex > l {
  5085. return io.ErrUnexpectedEOF
  5086. }
  5087. if m.Unix == nil {
  5088. m.Unix = &UnixData{}
  5089. }
  5090. if err := m.Unix.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5091. return err
  5092. }
  5093. iNdEx = postIndex
  5094. case 2:
  5095. if wireType != 2 {
  5096. return fmt.Errorf("proto: wrong wireType = %d for field Windows", wireType)
  5097. }
  5098. var msglen int
  5099. for shift := uint(0); ; shift += 7 {
  5100. if shift >= 64 {
  5101. return ErrIntOverflowBep
  5102. }
  5103. if iNdEx >= l {
  5104. return io.ErrUnexpectedEOF
  5105. }
  5106. b := dAtA[iNdEx]
  5107. iNdEx++
  5108. msglen |= int(b&0x7F) << shift
  5109. if b < 0x80 {
  5110. break
  5111. }
  5112. }
  5113. if msglen < 0 {
  5114. return ErrInvalidLengthBep
  5115. }
  5116. postIndex := iNdEx + msglen
  5117. if postIndex < 0 {
  5118. return ErrInvalidLengthBep
  5119. }
  5120. if postIndex > l {
  5121. return io.ErrUnexpectedEOF
  5122. }
  5123. if m.Windows == nil {
  5124. m.Windows = &WindowsData{}
  5125. }
  5126. if err := m.Windows.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5127. return err
  5128. }
  5129. iNdEx = postIndex
  5130. case 3:
  5131. if wireType != 2 {
  5132. return fmt.Errorf("proto: wrong wireType = %d for field Linux", wireType)
  5133. }
  5134. var msglen int
  5135. for shift := uint(0); ; shift += 7 {
  5136. if shift >= 64 {
  5137. return ErrIntOverflowBep
  5138. }
  5139. if iNdEx >= l {
  5140. return io.ErrUnexpectedEOF
  5141. }
  5142. b := dAtA[iNdEx]
  5143. iNdEx++
  5144. msglen |= int(b&0x7F) << shift
  5145. if b < 0x80 {
  5146. break
  5147. }
  5148. }
  5149. if msglen < 0 {
  5150. return ErrInvalidLengthBep
  5151. }
  5152. postIndex := iNdEx + msglen
  5153. if postIndex < 0 {
  5154. return ErrInvalidLengthBep
  5155. }
  5156. if postIndex > l {
  5157. return io.ErrUnexpectedEOF
  5158. }
  5159. if m.Linux == nil {
  5160. m.Linux = &XattrData{}
  5161. }
  5162. if err := m.Linux.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5163. return err
  5164. }
  5165. iNdEx = postIndex
  5166. case 4:
  5167. if wireType != 2 {
  5168. return fmt.Errorf("proto: wrong wireType = %d for field Darwin", wireType)
  5169. }
  5170. var msglen int
  5171. for shift := uint(0); ; shift += 7 {
  5172. if shift >= 64 {
  5173. return ErrIntOverflowBep
  5174. }
  5175. if iNdEx >= l {
  5176. return io.ErrUnexpectedEOF
  5177. }
  5178. b := dAtA[iNdEx]
  5179. iNdEx++
  5180. msglen |= int(b&0x7F) << shift
  5181. if b < 0x80 {
  5182. break
  5183. }
  5184. }
  5185. if msglen < 0 {
  5186. return ErrInvalidLengthBep
  5187. }
  5188. postIndex := iNdEx + msglen
  5189. if postIndex < 0 {
  5190. return ErrInvalidLengthBep
  5191. }
  5192. if postIndex > l {
  5193. return io.ErrUnexpectedEOF
  5194. }
  5195. if m.Darwin == nil {
  5196. m.Darwin = &XattrData{}
  5197. }
  5198. if err := m.Darwin.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5199. return err
  5200. }
  5201. iNdEx = postIndex
  5202. case 5:
  5203. if wireType != 2 {
  5204. return fmt.Errorf("proto: wrong wireType = %d for field FreeBSD", wireType)
  5205. }
  5206. var msglen int
  5207. for shift := uint(0); ; shift += 7 {
  5208. if shift >= 64 {
  5209. return ErrIntOverflowBep
  5210. }
  5211. if iNdEx >= l {
  5212. return io.ErrUnexpectedEOF
  5213. }
  5214. b := dAtA[iNdEx]
  5215. iNdEx++
  5216. msglen |= int(b&0x7F) << shift
  5217. if b < 0x80 {
  5218. break
  5219. }
  5220. }
  5221. if msglen < 0 {
  5222. return ErrInvalidLengthBep
  5223. }
  5224. postIndex := iNdEx + msglen
  5225. if postIndex < 0 {
  5226. return ErrInvalidLengthBep
  5227. }
  5228. if postIndex > l {
  5229. return io.ErrUnexpectedEOF
  5230. }
  5231. if m.FreeBSD == nil {
  5232. m.FreeBSD = &XattrData{}
  5233. }
  5234. if err := m.FreeBSD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5235. return err
  5236. }
  5237. iNdEx = postIndex
  5238. case 6:
  5239. if wireType != 2 {
  5240. return fmt.Errorf("proto: wrong wireType = %d for field NetBSD", wireType)
  5241. }
  5242. var msglen int
  5243. for shift := uint(0); ; shift += 7 {
  5244. if shift >= 64 {
  5245. return ErrIntOverflowBep
  5246. }
  5247. if iNdEx >= l {
  5248. return io.ErrUnexpectedEOF
  5249. }
  5250. b := dAtA[iNdEx]
  5251. iNdEx++
  5252. msglen |= int(b&0x7F) << shift
  5253. if b < 0x80 {
  5254. break
  5255. }
  5256. }
  5257. if msglen < 0 {
  5258. return ErrInvalidLengthBep
  5259. }
  5260. postIndex := iNdEx + msglen
  5261. if postIndex < 0 {
  5262. return ErrInvalidLengthBep
  5263. }
  5264. if postIndex > l {
  5265. return io.ErrUnexpectedEOF
  5266. }
  5267. if m.NetBSD == nil {
  5268. m.NetBSD = &XattrData{}
  5269. }
  5270. if err := m.NetBSD.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5271. return err
  5272. }
  5273. iNdEx = postIndex
  5274. default:
  5275. iNdEx = preIndex
  5276. skippy, err := skipBep(dAtA[iNdEx:])
  5277. if err != nil {
  5278. return err
  5279. }
  5280. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5281. return ErrInvalidLengthBep
  5282. }
  5283. if (iNdEx + skippy) > l {
  5284. return io.ErrUnexpectedEOF
  5285. }
  5286. iNdEx += skippy
  5287. }
  5288. }
  5289. if iNdEx > l {
  5290. return io.ErrUnexpectedEOF
  5291. }
  5292. return nil
  5293. }
  5294. func (m *UnixData) Unmarshal(dAtA []byte) error {
  5295. l := len(dAtA)
  5296. iNdEx := 0
  5297. for iNdEx < l {
  5298. preIndex := iNdEx
  5299. var wire uint64
  5300. for shift := uint(0); ; shift += 7 {
  5301. if shift >= 64 {
  5302. return ErrIntOverflowBep
  5303. }
  5304. if iNdEx >= l {
  5305. return io.ErrUnexpectedEOF
  5306. }
  5307. b := dAtA[iNdEx]
  5308. iNdEx++
  5309. wire |= uint64(b&0x7F) << shift
  5310. if b < 0x80 {
  5311. break
  5312. }
  5313. }
  5314. fieldNum := int32(wire >> 3)
  5315. wireType := int(wire & 0x7)
  5316. if wireType == 4 {
  5317. return fmt.Errorf("proto: UnixData: wiretype end group for non-group")
  5318. }
  5319. if fieldNum <= 0 {
  5320. return fmt.Errorf("proto: UnixData: illegal tag %d (wire type %d)", fieldNum, wire)
  5321. }
  5322. switch fieldNum {
  5323. case 1:
  5324. if wireType != 2 {
  5325. return fmt.Errorf("proto: wrong wireType = %d for field OwnerName", wireType)
  5326. }
  5327. var stringLen uint64
  5328. for shift := uint(0); ; shift += 7 {
  5329. if shift >= 64 {
  5330. return ErrIntOverflowBep
  5331. }
  5332. if iNdEx >= l {
  5333. return io.ErrUnexpectedEOF
  5334. }
  5335. b := dAtA[iNdEx]
  5336. iNdEx++
  5337. stringLen |= uint64(b&0x7F) << shift
  5338. if b < 0x80 {
  5339. break
  5340. }
  5341. }
  5342. intStringLen := int(stringLen)
  5343. if intStringLen < 0 {
  5344. return ErrInvalidLengthBep
  5345. }
  5346. postIndex := iNdEx + intStringLen
  5347. if postIndex < 0 {
  5348. return ErrInvalidLengthBep
  5349. }
  5350. if postIndex > l {
  5351. return io.ErrUnexpectedEOF
  5352. }
  5353. m.OwnerName = string(dAtA[iNdEx:postIndex])
  5354. iNdEx = postIndex
  5355. case 2:
  5356. if wireType != 2 {
  5357. return fmt.Errorf("proto: wrong wireType = %d for field GroupName", wireType)
  5358. }
  5359. var stringLen uint64
  5360. for shift := uint(0); ; shift += 7 {
  5361. if shift >= 64 {
  5362. return ErrIntOverflowBep
  5363. }
  5364. if iNdEx >= l {
  5365. return io.ErrUnexpectedEOF
  5366. }
  5367. b := dAtA[iNdEx]
  5368. iNdEx++
  5369. stringLen |= uint64(b&0x7F) << shift
  5370. if b < 0x80 {
  5371. break
  5372. }
  5373. }
  5374. intStringLen := int(stringLen)
  5375. if intStringLen < 0 {
  5376. return ErrInvalidLengthBep
  5377. }
  5378. postIndex := iNdEx + intStringLen
  5379. if postIndex < 0 {
  5380. return ErrInvalidLengthBep
  5381. }
  5382. if postIndex > l {
  5383. return io.ErrUnexpectedEOF
  5384. }
  5385. m.GroupName = string(dAtA[iNdEx:postIndex])
  5386. iNdEx = postIndex
  5387. case 3:
  5388. if wireType != 0 {
  5389. return fmt.Errorf("proto: wrong wireType = %d for field UID", wireType)
  5390. }
  5391. m.UID = 0
  5392. for shift := uint(0); ; shift += 7 {
  5393. if shift >= 64 {
  5394. return ErrIntOverflowBep
  5395. }
  5396. if iNdEx >= l {
  5397. return io.ErrUnexpectedEOF
  5398. }
  5399. b := dAtA[iNdEx]
  5400. iNdEx++
  5401. m.UID |= int(b&0x7F) << shift
  5402. if b < 0x80 {
  5403. break
  5404. }
  5405. }
  5406. case 4:
  5407. if wireType != 0 {
  5408. return fmt.Errorf("proto: wrong wireType = %d for field GID", wireType)
  5409. }
  5410. m.GID = 0
  5411. for shift := uint(0); ; shift += 7 {
  5412. if shift >= 64 {
  5413. return ErrIntOverflowBep
  5414. }
  5415. if iNdEx >= l {
  5416. return io.ErrUnexpectedEOF
  5417. }
  5418. b := dAtA[iNdEx]
  5419. iNdEx++
  5420. m.GID |= int(b&0x7F) << shift
  5421. if b < 0x80 {
  5422. break
  5423. }
  5424. }
  5425. default:
  5426. iNdEx = preIndex
  5427. skippy, err := skipBep(dAtA[iNdEx:])
  5428. if err != nil {
  5429. return err
  5430. }
  5431. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5432. return ErrInvalidLengthBep
  5433. }
  5434. if (iNdEx + skippy) > l {
  5435. return io.ErrUnexpectedEOF
  5436. }
  5437. iNdEx += skippy
  5438. }
  5439. }
  5440. if iNdEx > l {
  5441. return io.ErrUnexpectedEOF
  5442. }
  5443. return nil
  5444. }
  5445. func (m *WindowsData) Unmarshal(dAtA []byte) error {
  5446. l := len(dAtA)
  5447. iNdEx := 0
  5448. for iNdEx < l {
  5449. preIndex := iNdEx
  5450. var wire uint64
  5451. for shift := uint(0); ; shift += 7 {
  5452. if shift >= 64 {
  5453. return ErrIntOverflowBep
  5454. }
  5455. if iNdEx >= l {
  5456. return io.ErrUnexpectedEOF
  5457. }
  5458. b := dAtA[iNdEx]
  5459. iNdEx++
  5460. wire |= uint64(b&0x7F) << shift
  5461. if b < 0x80 {
  5462. break
  5463. }
  5464. }
  5465. fieldNum := int32(wire >> 3)
  5466. wireType := int(wire & 0x7)
  5467. if wireType == 4 {
  5468. return fmt.Errorf("proto: WindowsData: wiretype end group for non-group")
  5469. }
  5470. if fieldNum <= 0 {
  5471. return fmt.Errorf("proto: WindowsData: illegal tag %d (wire type %d)", fieldNum, wire)
  5472. }
  5473. switch fieldNum {
  5474. case 1:
  5475. if wireType != 2 {
  5476. return fmt.Errorf("proto: wrong wireType = %d for field OwnerName", wireType)
  5477. }
  5478. var stringLen uint64
  5479. for shift := uint(0); ; shift += 7 {
  5480. if shift >= 64 {
  5481. return ErrIntOverflowBep
  5482. }
  5483. if iNdEx >= l {
  5484. return io.ErrUnexpectedEOF
  5485. }
  5486. b := dAtA[iNdEx]
  5487. iNdEx++
  5488. stringLen |= uint64(b&0x7F) << shift
  5489. if b < 0x80 {
  5490. break
  5491. }
  5492. }
  5493. intStringLen := int(stringLen)
  5494. if intStringLen < 0 {
  5495. return ErrInvalidLengthBep
  5496. }
  5497. postIndex := iNdEx + intStringLen
  5498. if postIndex < 0 {
  5499. return ErrInvalidLengthBep
  5500. }
  5501. if postIndex > l {
  5502. return io.ErrUnexpectedEOF
  5503. }
  5504. m.OwnerName = string(dAtA[iNdEx:postIndex])
  5505. iNdEx = postIndex
  5506. case 2:
  5507. if wireType != 0 {
  5508. return fmt.Errorf("proto: wrong wireType = %d for field OwnerIsGroup", wireType)
  5509. }
  5510. var v int
  5511. for shift := uint(0); ; shift += 7 {
  5512. if shift >= 64 {
  5513. return ErrIntOverflowBep
  5514. }
  5515. if iNdEx >= l {
  5516. return io.ErrUnexpectedEOF
  5517. }
  5518. b := dAtA[iNdEx]
  5519. iNdEx++
  5520. v |= int(b&0x7F) << shift
  5521. if b < 0x80 {
  5522. break
  5523. }
  5524. }
  5525. m.OwnerIsGroup = bool(v != 0)
  5526. default:
  5527. iNdEx = preIndex
  5528. skippy, err := skipBep(dAtA[iNdEx:])
  5529. if err != nil {
  5530. return err
  5531. }
  5532. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5533. return ErrInvalidLengthBep
  5534. }
  5535. if (iNdEx + skippy) > l {
  5536. return io.ErrUnexpectedEOF
  5537. }
  5538. iNdEx += skippy
  5539. }
  5540. }
  5541. if iNdEx > l {
  5542. return io.ErrUnexpectedEOF
  5543. }
  5544. return nil
  5545. }
  5546. func (m *XattrData) Unmarshal(dAtA []byte) error {
  5547. l := len(dAtA)
  5548. iNdEx := 0
  5549. for iNdEx < l {
  5550. preIndex := iNdEx
  5551. var wire uint64
  5552. for shift := uint(0); ; shift += 7 {
  5553. if shift >= 64 {
  5554. return ErrIntOverflowBep
  5555. }
  5556. if iNdEx >= l {
  5557. return io.ErrUnexpectedEOF
  5558. }
  5559. b := dAtA[iNdEx]
  5560. iNdEx++
  5561. wire |= uint64(b&0x7F) << shift
  5562. if b < 0x80 {
  5563. break
  5564. }
  5565. }
  5566. fieldNum := int32(wire >> 3)
  5567. wireType := int(wire & 0x7)
  5568. if wireType == 4 {
  5569. return fmt.Errorf("proto: XattrData: wiretype end group for non-group")
  5570. }
  5571. if fieldNum <= 0 {
  5572. return fmt.Errorf("proto: XattrData: illegal tag %d (wire type %d)", fieldNum, wire)
  5573. }
  5574. switch fieldNum {
  5575. case 1:
  5576. if wireType != 2 {
  5577. return fmt.Errorf("proto: wrong wireType = %d for field Xattrs", wireType)
  5578. }
  5579. var msglen int
  5580. for shift := uint(0); ; shift += 7 {
  5581. if shift >= 64 {
  5582. return ErrIntOverflowBep
  5583. }
  5584. if iNdEx >= l {
  5585. return io.ErrUnexpectedEOF
  5586. }
  5587. b := dAtA[iNdEx]
  5588. iNdEx++
  5589. msglen |= int(b&0x7F) << shift
  5590. if b < 0x80 {
  5591. break
  5592. }
  5593. }
  5594. if msglen < 0 {
  5595. return ErrInvalidLengthBep
  5596. }
  5597. postIndex := iNdEx + msglen
  5598. if postIndex < 0 {
  5599. return ErrInvalidLengthBep
  5600. }
  5601. if postIndex > l {
  5602. return io.ErrUnexpectedEOF
  5603. }
  5604. m.Xattrs = append(m.Xattrs, Xattr{})
  5605. if err := m.Xattrs[len(m.Xattrs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5606. return err
  5607. }
  5608. iNdEx = postIndex
  5609. default:
  5610. iNdEx = preIndex
  5611. skippy, err := skipBep(dAtA[iNdEx:])
  5612. if err != nil {
  5613. return err
  5614. }
  5615. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5616. return ErrInvalidLengthBep
  5617. }
  5618. if (iNdEx + skippy) > l {
  5619. return io.ErrUnexpectedEOF
  5620. }
  5621. iNdEx += skippy
  5622. }
  5623. }
  5624. if iNdEx > l {
  5625. return io.ErrUnexpectedEOF
  5626. }
  5627. return nil
  5628. }
  5629. func (m *Xattr) Unmarshal(dAtA []byte) error {
  5630. l := len(dAtA)
  5631. iNdEx := 0
  5632. for iNdEx < l {
  5633. preIndex := iNdEx
  5634. var wire uint64
  5635. for shift := uint(0); ; shift += 7 {
  5636. if shift >= 64 {
  5637. return ErrIntOverflowBep
  5638. }
  5639. if iNdEx >= l {
  5640. return io.ErrUnexpectedEOF
  5641. }
  5642. b := dAtA[iNdEx]
  5643. iNdEx++
  5644. wire |= uint64(b&0x7F) << shift
  5645. if b < 0x80 {
  5646. break
  5647. }
  5648. }
  5649. fieldNum := int32(wire >> 3)
  5650. wireType := int(wire & 0x7)
  5651. if wireType == 4 {
  5652. return fmt.Errorf("proto: Xattr: wiretype end group for non-group")
  5653. }
  5654. if fieldNum <= 0 {
  5655. return fmt.Errorf("proto: Xattr: illegal tag %d (wire type %d)", fieldNum, wire)
  5656. }
  5657. switch fieldNum {
  5658. case 1:
  5659. if wireType != 2 {
  5660. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5661. }
  5662. var stringLen uint64
  5663. for shift := uint(0); ; shift += 7 {
  5664. if shift >= 64 {
  5665. return ErrIntOverflowBep
  5666. }
  5667. if iNdEx >= l {
  5668. return io.ErrUnexpectedEOF
  5669. }
  5670. b := dAtA[iNdEx]
  5671. iNdEx++
  5672. stringLen |= uint64(b&0x7F) << shift
  5673. if b < 0x80 {
  5674. break
  5675. }
  5676. }
  5677. intStringLen := int(stringLen)
  5678. if intStringLen < 0 {
  5679. return ErrInvalidLengthBep
  5680. }
  5681. postIndex := iNdEx + intStringLen
  5682. if postIndex < 0 {
  5683. return ErrInvalidLengthBep
  5684. }
  5685. if postIndex > l {
  5686. return io.ErrUnexpectedEOF
  5687. }
  5688. m.Name = string(dAtA[iNdEx:postIndex])
  5689. iNdEx = postIndex
  5690. case 2:
  5691. if wireType != 2 {
  5692. return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  5693. }
  5694. var byteLen int
  5695. for shift := uint(0); ; shift += 7 {
  5696. if shift >= 64 {
  5697. return ErrIntOverflowBep
  5698. }
  5699. if iNdEx >= l {
  5700. return io.ErrUnexpectedEOF
  5701. }
  5702. b := dAtA[iNdEx]
  5703. iNdEx++
  5704. byteLen |= int(b&0x7F) << shift
  5705. if b < 0x80 {
  5706. break
  5707. }
  5708. }
  5709. if byteLen < 0 {
  5710. return ErrInvalidLengthBep
  5711. }
  5712. postIndex := iNdEx + byteLen
  5713. if postIndex < 0 {
  5714. return ErrInvalidLengthBep
  5715. }
  5716. if postIndex > l {
  5717. return io.ErrUnexpectedEOF
  5718. }
  5719. m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
  5720. if m.Value == nil {
  5721. m.Value = []byte{}
  5722. }
  5723. iNdEx = postIndex
  5724. default:
  5725. iNdEx = preIndex
  5726. skippy, err := skipBep(dAtA[iNdEx:])
  5727. if err != nil {
  5728. return err
  5729. }
  5730. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5731. return ErrInvalidLengthBep
  5732. }
  5733. if (iNdEx + skippy) > l {
  5734. return io.ErrUnexpectedEOF
  5735. }
  5736. iNdEx += skippy
  5737. }
  5738. }
  5739. if iNdEx > l {
  5740. return io.ErrUnexpectedEOF
  5741. }
  5742. return nil
  5743. }
  5744. func (m *Request) Unmarshal(dAtA []byte) error {
  5745. l := len(dAtA)
  5746. iNdEx := 0
  5747. for iNdEx < l {
  5748. preIndex := iNdEx
  5749. var wire uint64
  5750. for shift := uint(0); ; shift += 7 {
  5751. if shift >= 64 {
  5752. return ErrIntOverflowBep
  5753. }
  5754. if iNdEx >= l {
  5755. return io.ErrUnexpectedEOF
  5756. }
  5757. b := dAtA[iNdEx]
  5758. iNdEx++
  5759. wire |= uint64(b&0x7F) << shift
  5760. if b < 0x80 {
  5761. break
  5762. }
  5763. }
  5764. fieldNum := int32(wire >> 3)
  5765. wireType := int(wire & 0x7)
  5766. if wireType == 4 {
  5767. return fmt.Errorf("proto: Request: wiretype end group for non-group")
  5768. }
  5769. if fieldNum <= 0 {
  5770. return fmt.Errorf("proto: Request: illegal tag %d (wire type %d)", fieldNum, wire)
  5771. }
  5772. switch fieldNum {
  5773. case 1:
  5774. if wireType != 0 {
  5775. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  5776. }
  5777. m.ID = 0
  5778. for shift := uint(0); ; shift += 7 {
  5779. if shift >= 64 {
  5780. return ErrIntOverflowBep
  5781. }
  5782. if iNdEx >= l {
  5783. return io.ErrUnexpectedEOF
  5784. }
  5785. b := dAtA[iNdEx]
  5786. iNdEx++
  5787. m.ID |= int(b&0x7F) << shift
  5788. if b < 0x80 {
  5789. break
  5790. }
  5791. }
  5792. case 2:
  5793. if wireType != 2 {
  5794. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  5795. }
  5796. var stringLen uint64
  5797. for shift := uint(0); ; shift += 7 {
  5798. if shift >= 64 {
  5799. return ErrIntOverflowBep
  5800. }
  5801. if iNdEx >= l {
  5802. return io.ErrUnexpectedEOF
  5803. }
  5804. b := dAtA[iNdEx]
  5805. iNdEx++
  5806. stringLen |= uint64(b&0x7F) << shift
  5807. if b < 0x80 {
  5808. break
  5809. }
  5810. }
  5811. intStringLen := int(stringLen)
  5812. if intStringLen < 0 {
  5813. return ErrInvalidLengthBep
  5814. }
  5815. postIndex := iNdEx + intStringLen
  5816. if postIndex < 0 {
  5817. return ErrInvalidLengthBep
  5818. }
  5819. if postIndex > l {
  5820. return io.ErrUnexpectedEOF
  5821. }
  5822. m.Folder = string(dAtA[iNdEx:postIndex])
  5823. iNdEx = postIndex
  5824. case 3:
  5825. if wireType != 2 {
  5826. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  5827. }
  5828. var stringLen uint64
  5829. for shift := uint(0); ; shift += 7 {
  5830. if shift >= 64 {
  5831. return ErrIntOverflowBep
  5832. }
  5833. if iNdEx >= l {
  5834. return io.ErrUnexpectedEOF
  5835. }
  5836. b := dAtA[iNdEx]
  5837. iNdEx++
  5838. stringLen |= uint64(b&0x7F) << shift
  5839. if b < 0x80 {
  5840. break
  5841. }
  5842. }
  5843. intStringLen := int(stringLen)
  5844. if intStringLen < 0 {
  5845. return ErrInvalidLengthBep
  5846. }
  5847. postIndex := iNdEx + intStringLen
  5848. if postIndex < 0 {
  5849. return ErrInvalidLengthBep
  5850. }
  5851. if postIndex > l {
  5852. return io.ErrUnexpectedEOF
  5853. }
  5854. m.Name = string(dAtA[iNdEx:postIndex])
  5855. iNdEx = postIndex
  5856. case 4:
  5857. if wireType != 0 {
  5858. return fmt.Errorf("proto: wrong wireType = %d for field Offset", wireType)
  5859. }
  5860. m.Offset = 0
  5861. for shift := uint(0); ; shift += 7 {
  5862. if shift >= 64 {
  5863. return ErrIntOverflowBep
  5864. }
  5865. if iNdEx >= l {
  5866. return io.ErrUnexpectedEOF
  5867. }
  5868. b := dAtA[iNdEx]
  5869. iNdEx++
  5870. m.Offset |= int64(b&0x7F) << shift
  5871. if b < 0x80 {
  5872. break
  5873. }
  5874. }
  5875. case 5:
  5876. if wireType != 0 {
  5877. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  5878. }
  5879. m.Size = 0
  5880. for shift := uint(0); ; shift += 7 {
  5881. if shift >= 64 {
  5882. return ErrIntOverflowBep
  5883. }
  5884. if iNdEx >= l {
  5885. return io.ErrUnexpectedEOF
  5886. }
  5887. b := dAtA[iNdEx]
  5888. iNdEx++
  5889. m.Size |= int(b&0x7F) << shift
  5890. if b < 0x80 {
  5891. break
  5892. }
  5893. }
  5894. case 6:
  5895. if wireType != 2 {
  5896. return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  5897. }
  5898. var byteLen int
  5899. for shift := uint(0); ; shift += 7 {
  5900. if shift >= 64 {
  5901. return ErrIntOverflowBep
  5902. }
  5903. if iNdEx >= l {
  5904. return io.ErrUnexpectedEOF
  5905. }
  5906. b := dAtA[iNdEx]
  5907. iNdEx++
  5908. byteLen |= int(b&0x7F) << shift
  5909. if b < 0x80 {
  5910. break
  5911. }
  5912. }
  5913. if byteLen < 0 {
  5914. return ErrInvalidLengthBep
  5915. }
  5916. postIndex := iNdEx + byteLen
  5917. if postIndex < 0 {
  5918. return ErrInvalidLengthBep
  5919. }
  5920. if postIndex > l {
  5921. return io.ErrUnexpectedEOF
  5922. }
  5923. m.Hash = append(m.Hash[:0], dAtA[iNdEx:postIndex]...)
  5924. if m.Hash == nil {
  5925. m.Hash = []byte{}
  5926. }
  5927. iNdEx = postIndex
  5928. case 7:
  5929. if wireType != 0 {
  5930. return fmt.Errorf("proto: wrong wireType = %d for field FromTemporary", wireType)
  5931. }
  5932. var v int
  5933. for shift := uint(0); ; shift += 7 {
  5934. if shift >= 64 {
  5935. return ErrIntOverflowBep
  5936. }
  5937. if iNdEx >= l {
  5938. return io.ErrUnexpectedEOF
  5939. }
  5940. b := dAtA[iNdEx]
  5941. iNdEx++
  5942. v |= int(b&0x7F) << shift
  5943. if b < 0x80 {
  5944. break
  5945. }
  5946. }
  5947. m.FromTemporary = bool(v != 0)
  5948. case 8:
  5949. if wireType != 0 {
  5950. return fmt.Errorf("proto: wrong wireType = %d for field WeakHash", wireType)
  5951. }
  5952. m.WeakHash = 0
  5953. for shift := uint(0); ; shift += 7 {
  5954. if shift >= 64 {
  5955. return ErrIntOverflowBep
  5956. }
  5957. if iNdEx >= l {
  5958. return io.ErrUnexpectedEOF
  5959. }
  5960. b := dAtA[iNdEx]
  5961. iNdEx++
  5962. m.WeakHash |= uint32(b&0x7F) << shift
  5963. if b < 0x80 {
  5964. break
  5965. }
  5966. }
  5967. case 9:
  5968. if wireType != 0 {
  5969. return fmt.Errorf("proto: wrong wireType = %d for field BlockNo", wireType)
  5970. }
  5971. m.BlockNo = 0
  5972. for shift := uint(0); ; shift += 7 {
  5973. if shift >= 64 {
  5974. return ErrIntOverflowBep
  5975. }
  5976. if iNdEx >= l {
  5977. return io.ErrUnexpectedEOF
  5978. }
  5979. b := dAtA[iNdEx]
  5980. iNdEx++
  5981. m.BlockNo |= int(b&0x7F) << shift
  5982. if b < 0x80 {
  5983. break
  5984. }
  5985. }
  5986. default:
  5987. iNdEx = preIndex
  5988. skippy, err := skipBep(dAtA[iNdEx:])
  5989. if err != nil {
  5990. return err
  5991. }
  5992. if (skippy < 0) || (iNdEx+skippy) < 0 {
  5993. return ErrInvalidLengthBep
  5994. }
  5995. if (iNdEx + skippy) > l {
  5996. return io.ErrUnexpectedEOF
  5997. }
  5998. iNdEx += skippy
  5999. }
  6000. }
  6001. if iNdEx > l {
  6002. return io.ErrUnexpectedEOF
  6003. }
  6004. return nil
  6005. }
  6006. func (m *Response) Unmarshal(dAtA []byte) error {
  6007. l := len(dAtA)
  6008. iNdEx := 0
  6009. for iNdEx < l {
  6010. preIndex := iNdEx
  6011. var wire uint64
  6012. for shift := uint(0); ; shift += 7 {
  6013. if shift >= 64 {
  6014. return ErrIntOverflowBep
  6015. }
  6016. if iNdEx >= l {
  6017. return io.ErrUnexpectedEOF
  6018. }
  6019. b := dAtA[iNdEx]
  6020. iNdEx++
  6021. wire |= uint64(b&0x7F) << shift
  6022. if b < 0x80 {
  6023. break
  6024. }
  6025. }
  6026. fieldNum := int32(wire >> 3)
  6027. wireType := int(wire & 0x7)
  6028. if wireType == 4 {
  6029. return fmt.Errorf("proto: Response: wiretype end group for non-group")
  6030. }
  6031. if fieldNum <= 0 {
  6032. return fmt.Errorf("proto: Response: illegal tag %d (wire type %d)", fieldNum, wire)
  6033. }
  6034. switch fieldNum {
  6035. case 1:
  6036. if wireType != 0 {
  6037. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  6038. }
  6039. m.ID = 0
  6040. for shift := uint(0); ; shift += 7 {
  6041. if shift >= 64 {
  6042. return ErrIntOverflowBep
  6043. }
  6044. if iNdEx >= l {
  6045. return io.ErrUnexpectedEOF
  6046. }
  6047. b := dAtA[iNdEx]
  6048. iNdEx++
  6049. m.ID |= int(b&0x7F) << shift
  6050. if b < 0x80 {
  6051. break
  6052. }
  6053. }
  6054. case 2:
  6055. if wireType != 2 {
  6056. return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
  6057. }
  6058. var byteLen int
  6059. for shift := uint(0); ; shift += 7 {
  6060. if shift >= 64 {
  6061. return ErrIntOverflowBep
  6062. }
  6063. if iNdEx >= l {
  6064. return io.ErrUnexpectedEOF
  6065. }
  6066. b := dAtA[iNdEx]
  6067. iNdEx++
  6068. byteLen |= int(b&0x7F) << shift
  6069. if b < 0x80 {
  6070. break
  6071. }
  6072. }
  6073. if byteLen < 0 {
  6074. return ErrInvalidLengthBep
  6075. }
  6076. postIndex := iNdEx + byteLen
  6077. if postIndex < 0 {
  6078. return ErrInvalidLengthBep
  6079. }
  6080. if postIndex > l {
  6081. return io.ErrUnexpectedEOF
  6082. }
  6083. m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
  6084. if m.Data == nil {
  6085. m.Data = []byte{}
  6086. }
  6087. iNdEx = postIndex
  6088. case 3:
  6089. if wireType != 0 {
  6090. return fmt.Errorf("proto: wrong wireType = %d for field Code", wireType)
  6091. }
  6092. m.Code = 0
  6093. for shift := uint(0); ; shift += 7 {
  6094. if shift >= 64 {
  6095. return ErrIntOverflowBep
  6096. }
  6097. if iNdEx >= l {
  6098. return io.ErrUnexpectedEOF
  6099. }
  6100. b := dAtA[iNdEx]
  6101. iNdEx++
  6102. m.Code |= ErrorCode(b&0x7F) << shift
  6103. if b < 0x80 {
  6104. break
  6105. }
  6106. }
  6107. default:
  6108. iNdEx = preIndex
  6109. skippy, err := skipBep(dAtA[iNdEx:])
  6110. if err != nil {
  6111. return err
  6112. }
  6113. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6114. return ErrInvalidLengthBep
  6115. }
  6116. if (iNdEx + skippy) > l {
  6117. return io.ErrUnexpectedEOF
  6118. }
  6119. iNdEx += skippy
  6120. }
  6121. }
  6122. if iNdEx > l {
  6123. return io.ErrUnexpectedEOF
  6124. }
  6125. return nil
  6126. }
  6127. func (m *DownloadProgress) Unmarshal(dAtA []byte) error {
  6128. l := len(dAtA)
  6129. iNdEx := 0
  6130. for iNdEx < l {
  6131. preIndex := iNdEx
  6132. var wire uint64
  6133. for shift := uint(0); ; shift += 7 {
  6134. if shift >= 64 {
  6135. return ErrIntOverflowBep
  6136. }
  6137. if iNdEx >= l {
  6138. return io.ErrUnexpectedEOF
  6139. }
  6140. b := dAtA[iNdEx]
  6141. iNdEx++
  6142. wire |= uint64(b&0x7F) << shift
  6143. if b < 0x80 {
  6144. break
  6145. }
  6146. }
  6147. fieldNum := int32(wire >> 3)
  6148. wireType := int(wire & 0x7)
  6149. if wireType == 4 {
  6150. return fmt.Errorf("proto: DownloadProgress: wiretype end group for non-group")
  6151. }
  6152. if fieldNum <= 0 {
  6153. return fmt.Errorf("proto: DownloadProgress: illegal tag %d (wire type %d)", fieldNum, wire)
  6154. }
  6155. switch fieldNum {
  6156. case 1:
  6157. if wireType != 2 {
  6158. return fmt.Errorf("proto: wrong wireType = %d for field Folder", wireType)
  6159. }
  6160. var stringLen uint64
  6161. for shift := uint(0); ; shift += 7 {
  6162. if shift >= 64 {
  6163. return ErrIntOverflowBep
  6164. }
  6165. if iNdEx >= l {
  6166. return io.ErrUnexpectedEOF
  6167. }
  6168. b := dAtA[iNdEx]
  6169. iNdEx++
  6170. stringLen |= uint64(b&0x7F) << shift
  6171. if b < 0x80 {
  6172. break
  6173. }
  6174. }
  6175. intStringLen := int(stringLen)
  6176. if intStringLen < 0 {
  6177. return ErrInvalidLengthBep
  6178. }
  6179. postIndex := iNdEx + intStringLen
  6180. if postIndex < 0 {
  6181. return ErrInvalidLengthBep
  6182. }
  6183. if postIndex > l {
  6184. return io.ErrUnexpectedEOF
  6185. }
  6186. m.Folder = string(dAtA[iNdEx:postIndex])
  6187. iNdEx = postIndex
  6188. case 2:
  6189. if wireType != 2 {
  6190. return fmt.Errorf("proto: wrong wireType = %d for field Updates", wireType)
  6191. }
  6192. var msglen int
  6193. for shift := uint(0); ; shift += 7 {
  6194. if shift >= 64 {
  6195. return ErrIntOverflowBep
  6196. }
  6197. if iNdEx >= l {
  6198. return io.ErrUnexpectedEOF
  6199. }
  6200. b := dAtA[iNdEx]
  6201. iNdEx++
  6202. msglen |= int(b&0x7F) << shift
  6203. if b < 0x80 {
  6204. break
  6205. }
  6206. }
  6207. if msglen < 0 {
  6208. return ErrInvalidLengthBep
  6209. }
  6210. postIndex := iNdEx + msglen
  6211. if postIndex < 0 {
  6212. return ErrInvalidLengthBep
  6213. }
  6214. if postIndex > l {
  6215. return io.ErrUnexpectedEOF
  6216. }
  6217. m.Updates = append(m.Updates, FileDownloadProgressUpdate{})
  6218. if err := m.Updates[len(m.Updates)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6219. return err
  6220. }
  6221. iNdEx = postIndex
  6222. default:
  6223. iNdEx = preIndex
  6224. skippy, err := skipBep(dAtA[iNdEx:])
  6225. if err != nil {
  6226. return err
  6227. }
  6228. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6229. return ErrInvalidLengthBep
  6230. }
  6231. if (iNdEx + skippy) > l {
  6232. return io.ErrUnexpectedEOF
  6233. }
  6234. iNdEx += skippy
  6235. }
  6236. }
  6237. if iNdEx > l {
  6238. return io.ErrUnexpectedEOF
  6239. }
  6240. return nil
  6241. }
  6242. func (m *FileDownloadProgressUpdate) Unmarshal(dAtA []byte) error {
  6243. l := len(dAtA)
  6244. iNdEx := 0
  6245. for iNdEx < l {
  6246. preIndex := iNdEx
  6247. var wire uint64
  6248. for shift := uint(0); ; shift += 7 {
  6249. if shift >= 64 {
  6250. return ErrIntOverflowBep
  6251. }
  6252. if iNdEx >= l {
  6253. return io.ErrUnexpectedEOF
  6254. }
  6255. b := dAtA[iNdEx]
  6256. iNdEx++
  6257. wire |= uint64(b&0x7F) << shift
  6258. if b < 0x80 {
  6259. break
  6260. }
  6261. }
  6262. fieldNum := int32(wire >> 3)
  6263. wireType := int(wire & 0x7)
  6264. if wireType == 4 {
  6265. return fmt.Errorf("proto: FileDownloadProgressUpdate: wiretype end group for non-group")
  6266. }
  6267. if fieldNum <= 0 {
  6268. return fmt.Errorf("proto: FileDownloadProgressUpdate: illegal tag %d (wire type %d)", fieldNum, wire)
  6269. }
  6270. switch fieldNum {
  6271. case 1:
  6272. if wireType != 0 {
  6273. return fmt.Errorf("proto: wrong wireType = %d for field UpdateType", wireType)
  6274. }
  6275. m.UpdateType = 0
  6276. for shift := uint(0); ; shift += 7 {
  6277. if shift >= 64 {
  6278. return ErrIntOverflowBep
  6279. }
  6280. if iNdEx >= l {
  6281. return io.ErrUnexpectedEOF
  6282. }
  6283. b := dAtA[iNdEx]
  6284. iNdEx++
  6285. m.UpdateType |= FileDownloadProgressUpdateType(b&0x7F) << shift
  6286. if b < 0x80 {
  6287. break
  6288. }
  6289. }
  6290. case 2:
  6291. if wireType != 2 {
  6292. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  6293. }
  6294. var stringLen uint64
  6295. for shift := uint(0); ; shift += 7 {
  6296. if shift >= 64 {
  6297. return ErrIntOverflowBep
  6298. }
  6299. if iNdEx >= l {
  6300. return io.ErrUnexpectedEOF
  6301. }
  6302. b := dAtA[iNdEx]
  6303. iNdEx++
  6304. stringLen |= uint64(b&0x7F) << shift
  6305. if b < 0x80 {
  6306. break
  6307. }
  6308. }
  6309. intStringLen := int(stringLen)
  6310. if intStringLen < 0 {
  6311. return ErrInvalidLengthBep
  6312. }
  6313. postIndex := iNdEx + intStringLen
  6314. if postIndex < 0 {
  6315. return ErrInvalidLengthBep
  6316. }
  6317. if postIndex > l {
  6318. return io.ErrUnexpectedEOF
  6319. }
  6320. m.Name = string(dAtA[iNdEx:postIndex])
  6321. iNdEx = postIndex
  6322. case 3:
  6323. if wireType != 2 {
  6324. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  6325. }
  6326. var msglen int
  6327. for shift := uint(0); ; shift += 7 {
  6328. if shift >= 64 {
  6329. return ErrIntOverflowBep
  6330. }
  6331. if iNdEx >= l {
  6332. return io.ErrUnexpectedEOF
  6333. }
  6334. b := dAtA[iNdEx]
  6335. iNdEx++
  6336. msglen |= int(b&0x7F) << shift
  6337. if b < 0x80 {
  6338. break
  6339. }
  6340. }
  6341. if msglen < 0 {
  6342. return ErrInvalidLengthBep
  6343. }
  6344. postIndex := iNdEx + msglen
  6345. if postIndex < 0 {
  6346. return ErrInvalidLengthBep
  6347. }
  6348. if postIndex > l {
  6349. return io.ErrUnexpectedEOF
  6350. }
  6351. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6352. return err
  6353. }
  6354. iNdEx = postIndex
  6355. case 4:
  6356. if wireType == 0 {
  6357. var v int
  6358. for shift := uint(0); ; shift += 7 {
  6359. if shift >= 64 {
  6360. return ErrIntOverflowBep
  6361. }
  6362. if iNdEx >= l {
  6363. return io.ErrUnexpectedEOF
  6364. }
  6365. b := dAtA[iNdEx]
  6366. iNdEx++
  6367. v |= int(b&0x7F) << shift
  6368. if b < 0x80 {
  6369. break
  6370. }
  6371. }
  6372. m.BlockIndexes = append(m.BlockIndexes, v)
  6373. } else if wireType == 2 {
  6374. var packedLen int
  6375. for shift := uint(0); ; shift += 7 {
  6376. if shift >= 64 {
  6377. return ErrIntOverflowBep
  6378. }
  6379. if iNdEx >= l {
  6380. return io.ErrUnexpectedEOF
  6381. }
  6382. b := dAtA[iNdEx]
  6383. iNdEx++
  6384. packedLen |= int(b&0x7F) << shift
  6385. if b < 0x80 {
  6386. break
  6387. }
  6388. }
  6389. if packedLen < 0 {
  6390. return ErrInvalidLengthBep
  6391. }
  6392. postIndex := iNdEx + packedLen
  6393. if postIndex < 0 {
  6394. return ErrInvalidLengthBep
  6395. }
  6396. if postIndex > l {
  6397. return io.ErrUnexpectedEOF
  6398. }
  6399. var elementCount int
  6400. var count int
  6401. for _, integer := range dAtA[iNdEx:postIndex] {
  6402. if integer < 128 {
  6403. count++
  6404. }
  6405. }
  6406. elementCount = count
  6407. if elementCount != 0 && len(m.BlockIndexes) == 0 {
  6408. m.BlockIndexes = make([]int, 0, elementCount)
  6409. }
  6410. for iNdEx < postIndex {
  6411. var v int
  6412. for shift := uint(0); ; shift += 7 {
  6413. if shift >= 64 {
  6414. return ErrIntOverflowBep
  6415. }
  6416. if iNdEx >= l {
  6417. return io.ErrUnexpectedEOF
  6418. }
  6419. b := dAtA[iNdEx]
  6420. iNdEx++
  6421. v |= int(b&0x7F) << shift
  6422. if b < 0x80 {
  6423. break
  6424. }
  6425. }
  6426. m.BlockIndexes = append(m.BlockIndexes, v)
  6427. }
  6428. } else {
  6429. return fmt.Errorf("proto: wrong wireType = %d for field BlockIndexes", wireType)
  6430. }
  6431. case 5:
  6432. if wireType != 0 {
  6433. return fmt.Errorf("proto: wrong wireType = %d for field BlockSize", wireType)
  6434. }
  6435. m.BlockSize = 0
  6436. for shift := uint(0); ; shift += 7 {
  6437. if shift >= 64 {
  6438. return ErrIntOverflowBep
  6439. }
  6440. if iNdEx >= l {
  6441. return io.ErrUnexpectedEOF
  6442. }
  6443. b := dAtA[iNdEx]
  6444. iNdEx++
  6445. m.BlockSize |= int(b&0x7F) << shift
  6446. if b < 0x80 {
  6447. break
  6448. }
  6449. }
  6450. default:
  6451. iNdEx = preIndex
  6452. skippy, err := skipBep(dAtA[iNdEx:])
  6453. if err != nil {
  6454. return err
  6455. }
  6456. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6457. return ErrInvalidLengthBep
  6458. }
  6459. if (iNdEx + skippy) > l {
  6460. return io.ErrUnexpectedEOF
  6461. }
  6462. iNdEx += skippy
  6463. }
  6464. }
  6465. if iNdEx > l {
  6466. return io.ErrUnexpectedEOF
  6467. }
  6468. return nil
  6469. }
  6470. func (m *Ping) Unmarshal(dAtA []byte) error {
  6471. l := len(dAtA)
  6472. iNdEx := 0
  6473. for iNdEx < l {
  6474. preIndex := iNdEx
  6475. var wire uint64
  6476. for shift := uint(0); ; shift += 7 {
  6477. if shift >= 64 {
  6478. return ErrIntOverflowBep
  6479. }
  6480. if iNdEx >= l {
  6481. return io.ErrUnexpectedEOF
  6482. }
  6483. b := dAtA[iNdEx]
  6484. iNdEx++
  6485. wire |= uint64(b&0x7F) << shift
  6486. if b < 0x80 {
  6487. break
  6488. }
  6489. }
  6490. fieldNum := int32(wire >> 3)
  6491. wireType := int(wire & 0x7)
  6492. if wireType == 4 {
  6493. return fmt.Errorf("proto: Ping: wiretype end group for non-group")
  6494. }
  6495. if fieldNum <= 0 {
  6496. return fmt.Errorf("proto: Ping: illegal tag %d (wire type %d)", fieldNum, wire)
  6497. }
  6498. switch fieldNum {
  6499. default:
  6500. iNdEx = preIndex
  6501. skippy, err := skipBep(dAtA[iNdEx:])
  6502. if err != nil {
  6503. return err
  6504. }
  6505. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6506. return ErrInvalidLengthBep
  6507. }
  6508. if (iNdEx + skippy) > l {
  6509. return io.ErrUnexpectedEOF
  6510. }
  6511. iNdEx += skippy
  6512. }
  6513. }
  6514. if iNdEx > l {
  6515. return io.ErrUnexpectedEOF
  6516. }
  6517. return nil
  6518. }
  6519. func (m *Close) Unmarshal(dAtA []byte) error {
  6520. l := len(dAtA)
  6521. iNdEx := 0
  6522. for iNdEx < l {
  6523. preIndex := iNdEx
  6524. var wire uint64
  6525. for shift := uint(0); ; shift += 7 {
  6526. if shift >= 64 {
  6527. return ErrIntOverflowBep
  6528. }
  6529. if iNdEx >= l {
  6530. return io.ErrUnexpectedEOF
  6531. }
  6532. b := dAtA[iNdEx]
  6533. iNdEx++
  6534. wire |= uint64(b&0x7F) << shift
  6535. if b < 0x80 {
  6536. break
  6537. }
  6538. }
  6539. fieldNum := int32(wire >> 3)
  6540. wireType := int(wire & 0x7)
  6541. if wireType == 4 {
  6542. return fmt.Errorf("proto: Close: wiretype end group for non-group")
  6543. }
  6544. if fieldNum <= 0 {
  6545. return fmt.Errorf("proto: Close: illegal tag %d (wire type %d)", fieldNum, wire)
  6546. }
  6547. switch fieldNum {
  6548. case 1:
  6549. if wireType != 2 {
  6550. return fmt.Errorf("proto: wrong wireType = %d for field Reason", wireType)
  6551. }
  6552. var stringLen uint64
  6553. for shift := uint(0); ; shift += 7 {
  6554. if shift >= 64 {
  6555. return ErrIntOverflowBep
  6556. }
  6557. if iNdEx >= l {
  6558. return io.ErrUnexpectedEOF
  6559. }
  6560. b := dAtA[iNdEx]
  6561. iNdEx++
  6562. stringLen |= uint64(b&0x7F) << shift
  6563. if b < 0x80 {
  6564. break
  6565. }
  6566. }
  6567. intStringLen := int(stringLen)
  6568. if intStringLen < 0 {
  6569. return ErrInvalidLengthBep
  6570. }
  6571. postIndex := iNdEx + intStringLen
  6572. if postIndex < 0 {
  6573. return ErrInvalidLengthBep
  6574. }
  6575. if postIndex > l {
  6576. return io.ErrUnexpectedEOF
  6577. }
  6578. m.Reason = string(dAtA[iNdEx:postIndex])
  6579. iNdEx = postIndex
  6580. default:
  6581. iNdEx = preIndex
  6582. skippy, err := skipBep(dAtA[iNdEx:])
  6583. if err != nil {
  6584. return err
  6585. }
  6586. if (skippy < 0) || (iNdEx+skippy) < 0 {
  6587. return ErrInvalidLengthBep
  6588. }
  6589. if (iNdEx + skippy) > l {
  6590. return io.ErrUnexpectedEOF
  6591. }
  6592. iNdEx += skippy
  6593. }
  6594. }
  6595. if iNdEx > l {
  6596. return io.ErrUnexpectedEOF
  6597. }
  6598. return nil
  6599. }
  6600. func skipBep(dAtA []byte) (n int, err error) {
  6601. l := len(dAtA)
  6602. iNdEx := 0
  6603. depth := 0
  6604. for iNdEx < l {
  6605. var wire uint64
  6606. for shift := uint(0); ; shift += 7 {
  6607. if shift >= 64 {
  6608. return 0, ErrIntOverflowBep
  6609. }
  6610. if iNdEx >= l {
  6611. return 0, io.ErrUnexpectedEOF
  6612. }
  6613. b := dAtA[iNdEx]
  6614. iNdEx++
  6615. wire |= (uint64(b) & 0x7F) << shift
  6616. if b < 0x80 {
  6617. break
  6618. }
  6619. }
  6620. wireType := int(wire & 0x7)
  6621. switch wireType {
  6622. case 0:
  6623. for shift := uint(0); ; shift += 7 {
  6624. if shift >= 64 {
  6625. return 0, ErrIntOverflowBep
  6626. }
  6627. if iNdEx >= l {
  6628. return 0, io.ErrUnexpectedEOF
  6629. }
  6630. iNdEx++
  6631. if dAtA[iNdEx-1] < 0x80 {
  6632. break
  6633. }
  6634. }
  6635. case 1:
  6636. iNdEx += 8
  6637. case 2:
  6638. var length int
  6639. for shift := uint(0); ; shift += 7 {
  6640. if shift >= 64 {
  6641. return 0, ErrIntOverflowBep
  6642. }
  6643. if iNdEx >= l {
  6644. return 0, io.ErrUnexpectedEOF
  6645. }
  6646. b := dAtA[iNdEx]
  6647. iNdEx++
  6648. length |= (int(b) & 0x7F) << shift
  6649. if b < 0x80 {
  6650. break
  6651. }
  6652. }
  6653. if length < 0 {
  6654. return 0, ErrInvalidLengthBep
  6655. }
  6656. iNdEx += length
  6657. case 3:
  6658. depth++
  6659. case 4:
  6660. if depth == 0 {
  6661. return 0, ErrUnexpectedEndOfGroupBep
  6662. }
  6663. depth--
  6664. case 5:
  6665. iNdEx += 4
  6666. default:
  6667. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  6668. }
  6669. if iNdEx < 0 {
  6670. return 0, ErrInvalidLengthBep
  6671. }
  6672. if depth == 0 {
  6673. return iNdEx, nil
  6674. }
  6675. }
  6676. return 0, io.ErrUnexpectedEOF
  6677. }
  6678. var (
  6679. ErrInvalidLengthBep = fmt.Errorf("proto: negative length found during unmarshaling")
  6680. ErrIntOverflowBep = fmt.Errorf("proto: integer overflow")
  6681. ErrUnexpectedEndOfGroupBep = fmt.Errorf("proto: unexpected end of group")
  6682. )