bep.pb.go 102 KB

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