bep.pb.go 102 KB

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