bep.pb.go 104 KB

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