bep.pb.go 102 KB

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