bep.pb.go 168 KB

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