bep.pb.go 102 KB

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