bep.pb.go 152 KB

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