1
0

bep.pb.go 116 KB

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