bep.pb.go 173 KB

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