bep.pb.go 100 KB

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