bep.pb.go 134 KB

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