bep.pb.go 167 KB

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