bep.pb.go 105 KB

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