bep.pb.go 98 KB

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