structs.pb.go 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/db/structs.proto
  3. package db
  4. import (
  5. fmt "fmt"
  6. _ "github.com/gogo/protobuf/gogoproto"
  7. proto "github.com/gogo/protobuf/proto"
  8. github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
  9. github_com_syncthing_syncthing_lib_protocol "github.com/syncthing/syncthing/lib/protocol"
  10. protocol "github.com/syncthing/syncthing/lib/protocol"
  11. _ "github.com/syncthing/syncthing/proto/ext"
  12. _ "google.golang.org/protobuf/types/known/timestamppb"
  13. io "io"
  14. math "math"
  15. math_bits "math/bits"
  16. time "time"
  17. )
  18. // Reference imports to suppress errors if they are not otherwise used.
  19. var _ = proto.Marshal
  20. var _ = fmt.Errorf
  21. var _ = math.Inf
  22. var _ = time.Kitchen
  23. // This is a compile-time assertion to ensure that this generated file
  24. // is compatible with the proto package it is being compiled against.
  25. // A compilation error at this line likely means your copy of the
  26. // proto package needs to be updated.
  27. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  28. type FileVersion struct {
  29. Version protocol.Vector `protobuf:"bytes,1,opt,name=version,proto3" json:"version" xml:"version"`
  30. Deleted bool `protobuf:"varint,2,opt,name=deleted,proto3" json:"deleted" xml:"deleted"`
  31. Devices [][]byte `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices" xml:"device"`
  32. InvalidDevices [][]byte `protobuf:"bytes,4,rep,name=invalid_devices,json=invalidDevices,proto3" json:"invalidDevices" xml:"invalidDevice"`
  33. }
  34. func (m *FileVersion) Reset() { *m = FileVersion{} }
  35. func (m *FileVersion) String() string { return proto.CompactTextString(m) }
  36. func (*FileVersion) ProtoMessage() {}
  37. func (*FileVersion) Descriptor() ([]byte, []int) {
  38. return fileDescriptor_5465d80e8cba02e3, []int{0}
  39. }
  40. func (m *FileVersion) XXX_Unmarshal(b []byte) error {
  41. return m.Unmarshal(b)
  42. }
  43. func (m *FileVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  44. if deterministic {
  45. return xxx_messageInfo_FileVersion.Marshal(b, m, deterministic)
  46. } else {
  47. b = b[:cap(b)]
  48. n, err := m.MarshalToSizedBuffer(b)
  49. if err != nil {
  50. return nil, err
  51. }
  52. return b[:n], nil
  53. }
  54. }
  55. func (m *FileVersion) XXX_Merge(src proto.Message) {
  56. xxx_messageInfo_FileVersion.Merge(m, src)
  57. }
  58. func (m *FileVersion) XXX_Size() int {
  59. return m.ProtoSize()
  60. }
  61. func (m *FileVersion) XXX_DiscardUnknown() {
  62. xxx_messageInfo_FileVersion.DiscardUnknown(m)
  63. }
  64. var xxx_messageInfo_FileVersion proto.InternalMessageInfo
  65. type VersionList struct {
  66. RawVersions []FileVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions" xml:"version"`
  67. }
  68. func (m *VersionList) Reset() { *m = VersionList{} }
  69. func (*VersionList) ProtoMessage() {}
  70. func (*VersionList) Descriptor() ([]byte, []int) {
  71. return fileDescriptor_5465d80e8cba02e3, []int{1}
  72. }
  73. func (m *VersionList) XXX_Unmarshal(b []byte) error {
  74. return m.Unmarshal(b)
  75. }
  76. func (m *VersionList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  77. if deterministic {
  78. return xxx_messageInfo_VersionList.Marshal(b, m, deterministic)
  79. } else {
  80. b = b[:cap(b)]
  81. n, err := m.MarshalToSizedBuffer(b)
  82. if err != nil {
  83. return nil, err
  84. }
  85. return b[:n], nil
  86. }
  87. }
  88. func (m *VersionList) XXX_Merge(src proto.Message) {
  89. xxx_messageInfo_VersionList.Merge(m, src)
  90. }
  91. func (m *VersionList) XXX_Size() int {
  92. return m.ProtoSize()
  93. }
  94. func (m *VersionList) XXX_DiscardUnknown() {
  95. xxx_messageInfo_VersionList.DiscardUnknown(m)
  96. }
  97. var xxx_messageInfo_VersionList proto.InternalMessageInfo
  98. // Must be the same as FileInfo but without the blocks field
  99. type FileInfoTruncated struct {
  100. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" xml:"name"`
  101. Size int64 `protobuf:"varint,3,opt,name=size,proto3" json:"size" xml:"size"`
  102. ModifiedS int64 `protobuf:"varint,5,opt,name=modified_s,json=modifiedS,proto3" json:"modifiedS" xml:"modifiedS"`
  103. ModifiedBy github_com_syncthing_syncthing_lib_protocol.ShortID `protobuf:"varint,12,opt,name=modified_by,json=modifiedBy,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.ShortID" json:"modifiedBy" xml:"modifiedBy"`
  104. Version protocol.Vector `protobuf:"bytes,9,opt,name=version,proto3" json:"version" xml:"version"`
  105. Sequence int64 `protobuf:"varint,10,opt,name=sequence,proto3" json:"sequence" xml:"sequence"`
  106. // repeated BlockInfo Blocks = 16
  107. SymlinkTarget string `protobuf:"bytes,17,opt,name=symlink_target,json=symlinkTarget,proto3" json:"symlinkTarget" xml:"symlinkTarget"`
  108. BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocksHash" xml:"blocksHash"`
  109. Encrypted []byte `protobuf:"bytes,19,opt,name=encrypted,proto3" json:"encrypted" xml:"encrypted"`
  110. Type protocol.FileInfoType `protobuf:"varint,2,opt,name=type,proto3,enum=protocol.FileInfoType" json:"type" xml:"type"`
  111. Permissions uint32 `protobuf:"varint,4,opt,name=permissions,proto3" json:"permissions" xml:"permissions"`
  112. ModifiedNs int `protobuf:"varint,11,opt,name=modified_ns,json=modifiedNs,proto3,casttype=int" json:"modifiedNs" xml:"modifiedNs"`
  113. RawBlockSize int `protobuf:"varint,13,opt,name=block_size,json=blockSize,proto3,casttype=int" json:"blockSize" xml:"blockSize"`
  114. // see bep.proto
  115. LocalFlags uint32 `protobuf:"varint,1000,opt,name=local_flags,json=localFlags,proto3" json:"localFlags" xml:"localFlags"`
  116. VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"versionHash" xml:"versionHash"`
  117. Deleted bool `protobuf:"varint,6,opt,name=deleted,proto3" json:"deleted" xml:"deleted"`
  118. RawInvalid bool `protobuf:"varint,7,opt,name=invalid,proto3" json:"invalid" xml:"invalid"`
  119. NoPermissions bool `protobuf:"varint,8,opt,name=no_permissions,json=noPermissions,proto3" json:"noPermissions" xml:"noPermissions"`
  120. }
  121. func (m *FileInfoTruncated) Reset() { *m = FileInfoTruncated{} }
  122. func (*FileInfoTruncated) ProtoMessage() {}
  123. func (*FileInfoTruncated) Descriptor() ([]byte, []int) {
  124. return fileDescriptor_5465d80e8cba02e3, []int{2}
  125. }
  126. func (m *FileInfoTruncated) XXX_Unmarshal(b []byte) error {
  127. return m.Unmarshal(b)
  128. }
  129. func (m *FileInfoTruncated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  130. if deterministic {
  131. return xxx_messageInfo_FileInfoTruncated.Marshal(b, m, deterministic)
  132. } else {
  133. b = b[:cap(b)]
  134. n, err := m.MarshalToSizedBuffer(b)
  135. if err != nil {
  136. return nil, err
  137. }
  138. return b[:n], nil
  139. }
  140. }
  141. func (m *FileInfoTruncated) XXX_Merge(src proto.Message) {
  142. xxx_messageInfo_FileInfoTruncated.Merge(m, src)
  143. }
  144. func (m *FileInfoTruncated) XXX_Size() int {
  145. return m.ProtoSize()
  146. }
  147. func (m *FileInfoTruncated) XXX_DiscardUnknown() {
  148. xxx_messageInfo_FileInfoTruncated.DiscardUnknown(m)
  149. }
  150. var xxx_messageInfo_FileInfoTruncated proto.InternalMessageInfo
  151. // BlockList is the structure used to store block lists
  152. type BlockList struct {
  153. Blocks []protocol.BlockInfo `protobuf:"bytes,1,rep,name=blocks,proto3" json:"blocks" xml:"block"`
  154. }
  155. func (m *BlockList) Reset() { *m = BlockList{} }
  156. func (m *BlockList) String() string { return proto.CompactTextString(m) }
  157. func (*BlockList) ProtoMessage() {}
  158. func (*BlockList) Descriptor() ([]byte, []int) {
  159. return fileDescriptor_5465d80e8cba02e3, []int{3}
  160. }
  161. func (m *BlockList) XXX_Unmarshal(b []byte) error {
  162. return m.Unmarshal(b)
  163. }
  164. func (m *BlockList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  165. if deterministic {
  166. return xxx_messageInfo_BlockList.Marshal(b, m, deterministic)
  167. } else {
  168. b = b[:cap(b)]
  169. n, err := m.MarshalToSizedBuffer(b)
  170. if err != nil {
  171. return nil, err
  172. }
  173. return b[:n], nil
  174. }
  175. }
  176. func (m *BlockList) XXX_Merge(src proto.Message) {
  177. xxx_messageInfo_BlockList.Merge(m, src)
  178. }
  179. func (m *BlockList) XXX_Size() int {
  180. return m.ProtoSize()
  181. }
  182. func (m *BlockList) XXX_DiscardUnknown() {
  183. xxx_messageInfo_BlockList.DiscardUnknown(m)
  184. }
  185. var xxx_messageInfo_BlockList proto.InternalMessageInfo
  186. // IndirectionHashesOnly is used to only unmarshal the indirection hashes
  187. // from a FileInfo
  188. type IndirectionHashesOnly struct {
  189. BlocksHash []byte `protobuf:"bytes,18,opt,name=blocks_hash,json=blocksHash,proto3" json:"blocksHash" xml:"blocksHash"`
  190. VersionHash []byte `protobuf:"bytes,1001,opt,name=version_hash,json=versionHash,proto3" json:"versionHash" xml:"versionHash"`
  191. }
  192. func (m *IndirectionHashesOnly) Reset() { *m = IndirectionHashesOnly{} }
  193. func (m *IndirectionHashesOnly) String() string { return proto.CompactTextString(m) }
  194. func (*IndirectionHashesOnly) ProtoMessage() {}
  195. func (*IndirectionHashesOnly) Descriptor() ([]byte, []int) {
  196. return fileDescriptor_5465d80e8cba02e3, []int{4}
  197. }
  198. func (m *IndirectionHashesOnly) XXX_Unmarshal(b []byte) error {
  199. return m.Unmarshal(b)
  200. }
  201. func (m *IndirectionHashesOnly) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  202. if deterministic {
  203. return xxx_messageInfo_IndirectionHashesOnly.Marshal(b, m, deterministic)
  204. } else {
  205. b = b[:cap(b)]
  206. n, err := m.MarshalToSizedBuffer(b)
  207. if err != nil {
  208. return nil, err
  209. }
  210. return b[:n], nil
  211. }
  212. }
  213. func (m *IndirectionHashesOnly) XXX_Merge(src proto.Message) {
  214. xxx_messageInfo_IndirectionHashesOnly.Merge(m, src)
  215. }
  216. func (m *IndirectionHashesOnly) XXX_Size() int {
  217. return m.ProtoSize()
  218. }
  219. func (m *IndirectionHashesOnly) XXX_DiscardUnknown() {
  220. xxx_messageInfo_IndirectionHashesOnly.DiscardUnknown(m)
  221. }
  222. var xxx_messageInfo_IndirectionHashesOnly proto.InternalMessageInfo
  223. // For each folder and device we keep one of these to track the current
  224. // counts and sequence. We also keep one for the global state of the folder.
  225. type Counts struct {
  226. Files int `protobuf:"varint,1,opt,name=files,proto3,casttype=int" json:"files" xml:"files"`
  227. Directories int `protobuf:"varint,2,opt,name=directories,proto3,casttype=int" json:"directories" xml:"directories"`
  228. Symlinks int `protobuf:"varint,3,opt,name=symlinks,proto3,casttype=int" json:"symlinks" xml:"symlinks"`
  229. Deleted int `protobuf:"varint,4,opt,name=deleted,proto3,casttype=int" json:"deleted" xml:"deleted"`
  230. Bytes int64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes" xml:"bytes"`
  231. Sequence int64 `protobuf:"varint,6,opt,name=sequence,proto3" json:"sequence" xml:"sequence"`
  232. DeviceID []byte `protobuf:"bytes,17,opt,name=device_id,json=deviceId,proto3" json:"deviceId" xml:"deviceId"`
  233. LocalFlags uint32 `protobuf:"varint,18,opt,name=local_flags,json=localFlags,proto3" json:"localFlags" xml:"localFlags"`
  234. }
  235. func (m *Counts) Reset() { *m = Counts{} }
  236. func (*Counts) ProtoMessage() {}
  237. func (*Counts) Descriptor() ([]byte, []int) {
  238. return fileDescriptor_5465d80e8cba02e3, []int{5}
  239. }
  240. func (m *Counts) XXX_Unmarshal(b []byte) error {
  241. return m.Unmarshal(b)
  242. }
  243. func (m *Counts) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  244. if deterministic {
  245. return xxx_messageInfo_Counts.Marshal(b, m, deterministic)
  246. } else {
  247. b = b[:cap(b)]
  248. n, err := m.MarshalToSizedBuffer(b)
  249. if err != nil {
  250. return nil, err
  251. }
  252. return b[:n], nil
  253. }
  254. }
  255. func (m *Counts) XXX_Merge(src proto.Message) {
  256. xxx_messageInfo_Counts.Merge(m, src)
  257. }
  258. func (m *Counts) XXX_Size() int {
  259. return m.ProtoSize()
  260. }
  261. func (m *Counts) XXX_DiscardUnknown() {
  262. xxx_messageInfo_Counts.DiscardUnknown(m)
  263. }
  264. var xxx_messageInfo_Counts proto.InternalMessageInfo
  265. type CountsSet struct {
  266. Counts []Counts `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts" xml:"count"`
  267. Created int64 `protobuf:"varint,2,opt,name=created,proto3" json:"created" xml:"created"`
  268. }
  269. func (m *CountsSet) Reset() { *m = CountsSet{} }
  270. func (m *CountsSet) String() string { return proto.CompactTextString(m) }
  271. func (*CountsSet) ProtoMessage() {}
  272. func (*CountsSet) Descriptor() ([]byte, []int) {
  273. return fileDescriptor_5465d80e8cba02e3, []int{6}
  274. }
  275. func (m *CountsSet) XXX_Unmarshal(b []byte) error {
  276. return m.Unmarshal(b)
  277. }
  278. func (m *CountsSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  279. if deterministic {
  280. return xxx_messageInfo_CountsSet.Marshal(b, m, deterministic)
  281. } else {
  282. b = b[:cap(b)]
  283. n, err := m.MarshalToSizedBuffer(b)
  284. if err != nil {
  285. return nil, err
  286. }
  287. return b[:n], nil
  288. }
  289. }
  290. func (m *CountsSet) XXX_Merge(src proto.Message) {
  291. xxx_messageInfo_CountsSet.Merge(m, src)
  292. }
  293. func (m *CountsSet) XXX_Size() int {
  294. return m.ProtoSize()
  295. }
  296. func (m *CountsSet) XXX_DiscardUnknown() {
  297. xxx_messageInfo_CountsSet.DiscardUnknown(m)
  298. }
  299. var xxx_messageInfo_CountsSet proto.InternalMessageInfo
  300. type FileVersionDeprecated struct {
  301. Version protocol.Vector `protobuf:"bytes,1,opt,name=version,proto3" json:"version" xml:"version"`
  302. Device []byte `protobuf:"bytes,2,opt,name=device,proto3" json:"device" xml:"device"`
  303. Invalid bool `protobuf:"varint,3,opt,name=invalid,proto3" json:"invalid" xml:"invalid"`
  304. Deleted bool `protobuf:"varint,4,opt,name=deleted,proto3" json:"deleted" xml:"deleted"`
  305. }
  306. func (m *FileVersionDeprecated) Reset() { *m = FileVersionDeprecated{} }
  307. func (m *FileVersionDeprecated) String() string { return proto.CompactTextString(m) }
  308. func (*FileVersionDeprecated) ProtoMessage() {}
  309. func (*FileVersionDeprecated) Descriptor() ([]byte, []int) {
  310. return fileDescriptor_5465d80e8cba02e3, []int{7}
  311. }
  312. func (m *FileVersionDeprecated) XXX_Unmarshal(b []byte) error {
  313. return m.Unmarshal(b)
  314. }
  315. func (m *FileVersionDeprecated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  316. if deterministic {
  317. return xxx_messageInfo_FileVersionDeprecated.Marshal(b, m, deterministic)
  318. } else {
  319. b = b[:cap(b)]
  320. n, err := m.MarshalToSizedBuffer(b)
  321. if err != nil {
  322. return nil, err
  323. }
  324. return b[:n], nil
  325. }
  326. }
  327. func (m *FileVersionDeprecated) XXX_Merge(src proto.Message) {
  328. xxx_messageInfo_FileVersionDeprecated.Merge(m, src)
  329. }
  330. func (m *FileVersionDeprecated) XXX_Size() int {
  331. return m.ProtoSize()
  332. }
  333. func (m *FileVersionDeprecated) XXX_DiscardUnknown() {
  334. xxx_messageInfo_FileVersionDeprecated.DiscardUnknown(m)
  335. }
  336. var xxx_messageInfo_FileVersionDeprecated proto.InternalMessageInfo
  337. type VersionListDeprecated struct {
  338. Versions []FileVersionDeprecated `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions" xml:"version"`
  339. }
  340. func (m *VersionListDeprecated) Reset() { *m = VersionListDeprecated{} }
  341. func (*VersionListDeprecated) ProtoMessage() {}
  342. func (*VersionListDeprecated) Descriptor() ([]byte, []int) {
  343. return fileDescriptor_5465d80e8cba02e3, []int{8}
  344. }
  345. func (m *VersionListDeprecated) XXX_Unmarshal(b []byte) error {
  346. return m.Unmarshal(b)
  347. }
  348. func (m *VersionListDeprecated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  349. if deterministic {
  350. return xxx_messageInfo_VersionListDeprecated.Marshal(b, m, deterministic)
  351. } else {
  352. b = b[:cap(b)]
  353. n, err := m.MarshalToSizedBuffer(b)
  354. if err != nil {
  355. return nil, err
  356. }
  357. return b[:n], nil
  358. }
  359. }
  360. func (m *VersionListDeprecated) XXX_Merge(src proto.Message) {
  361. xxx_messageInfo_VersionListDeprecated.Merge(m, src)
  362. }
  363. func (m *VersionListDeprecated) XXX_Size() int {
  364. return m.ProtoSize()
  365. }
  366. func (m *VersionListDeprecated) XXX_DiscardUnknown() {
  367. xxx_messageInfo_VersionListDeprecated.DiscardUnknown(m)
  368. }
  369. var xxx_messageInfo_VersionListDeprecated proto.InternalMessageInfo
  370. type ObservedFolder struct {
  371. Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time" xml:"time"`
  372. Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label" xml:"label"`
  373. ReceiveEncrypted bool `protobuf:"varint,3,opt,name=receive_encrypted,json=receiveEncrypted,proto3" json:"receiveEncrypted" xml:"receiveEncrypted"`
  374. }
  375. func (m *ObservedFolder) Reset() { *m = ObservedFolder{} }
  376. func (m *ObservedFolder) String() string { return proto.CompactTextString(m) }
  377. func (*ObservedFolder) ProtoMessage() {}
  378. func (*ObservedFolder) Descriptor() ([]byte, []int) {
  379. return fileDescriptor_5465d80e8cba02e3, []int{9}
  380. }
  381. func (m *ObservedFolder) XXX_Unmarshal(b []byte) error {
  382. return m.Unmarshal(b)
  383. }
  384. func (m *ObservedFolder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  385. if deterministic {
  386. return xxx_messageInfo_ObservedFolder.Marshal(b, m, deterministic)
  387. } else {
  388. b = b[:cap(b)]
  389. n, err := m.MarshalToSizedBuffer(b)
  390. if err != nil {
  391. return nil, err
  392. }
  393. return b[:n], nil
  394. }
  395. }
  396. func (m *ObservedFolder) XXX_Merge(src proto.Message) {
  397. xxx_messageInfo_ObservedFolder.Merge(m, src)
  398. }
  399. func (m *ObservedFolder) XXX_Size() int {
  400. return m.ProtoSize()
  401. }
  402. func (m *ObservedFolder) XXX_DiscardUnknown() {
  403. xxx_messageInfo_ObservedFolder.DiscardUnknown(m)
  404. }
  405. var xxx_messageInfo_ObservedFolder proto.InternalMessageInfo
  406. type ObservedDevice struct {
  407. Time time.Time `protobuf:"bytes,1,opt,name=time,proto3,stdtime" json:"time" xml:"time"`
  408. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" xml:"name"`
  409. Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address" xml:"address"`
  410. }
  411. func (m *ObservedDevice) Reset() { *m = ObservedDevice{} }
  412. func (m *ObservedDevice) String() string { return proto.CompactTextString(m) }
  413. func (*ObservedDevice) ProtoMessage() {}
  414. func (*ObservedDevice) Descriptor() ([]byte, []int) {
  415. return fileDescriptor_5465d80e8cba02e3, []int{10}
  416. }
  417. func (m *ObservedDevice) XXX_Unmarshal(b []byte) error {
  418. return m.Unmarshal(b)
  419. }
  420. func (m *ObservedDevice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  421. if deterministic {
  422. return xxx_messageInfo_ObservedDevice.Marshal(b, m, deterministic)
  423. } else {
  424. b = b[:cap(b)]
  425. n, err := m.MarshalToSizedBuffer(b)
  426. if err != nil {
  427. return nil, err
  428. }
  429. return b[:n], nil
  430. }
  431. }
  432. func (m *ObservedDevice) XXX_Merge(src proto.Message) {
  433. xxx_messageInfo_ObservedDevice.Merge(m, src)
  434. }
  435. func (m *ObservedDevice) XXX_Size() int {
  436. return m.ProtoSize()
  437. }
  438. func (m *ObservedDevice) XXX_DiscardUnknown() {
  439. xxx_messageInfo_ObservedDevice.DiscardUnknown(m)
  440. }
  441. var xxx_messageInfo_ObservedDevice proto.InternalMessageInfo
  442. func init() {
  443. proto.RegisterType((*FileVersion)(nil), "db.FileVersion")
  444. proto.RegisterType((*VersionList)(nil), "db.VersionList")
  445. proto.RegisterType((*FileInfoTruncated)(nil), "db.FileInfoTruncated")
  446. proto.RegisterType((*BlockList)(nil), "db.BlockList")
  447. proto.RegisterType((*IndirectionHashesOnly)(nil), "db.IndirectionHashesOnly")
  448. proto.RegisterType((*Counts)(nil), "db.Counts")
  449. proto.RegisterType((*CountsSet)(nil), "db.CountsSet")
  450. proto.RegisterType((*FileVersionDeprecated)(nil), "db.FileVersionDeprecated")
  451. proto.RegisterType((*VersionListDeprecated)(nil), "db.VersionListDeprecated")
  452. proto.RegisterType((*ObservedFolder)(nil), "db.ObservedFolder")
  453. proto.RegisterType((*ObservedDevice)(nil), "db.ObservedDevice")
  454. }
  455. func init() { proto.RegisterFile("lib/db/structs.proto", fileDescriptor_5465d80e8cba02e3) }
  456. var fileDescriptor_5465d80e8cba02e3 = []byte{
  457. // 1445 bytes of a gzipped FileDescriptorProto
  458. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x57, 0xcf, 0x6f, 0x1b, 0x45,
  459. 0x14, 0xce, 0xc6, 0xce, 0x0f, 0x8f, 0x9d, 0xb4, 0xd9, 0xd2, 0xc8, 0x04, 0xf0, 0x98, 0x69, 0x2a,
  460. 0x19, 0x90, 0x1c, 0x29, 0x55, 0x23, 0x54, 0x09, 0xaa, 0x6e, 0x43, 0xda, 0x54, 0xa5, 0x45, 0x93,
  461. 0xaa, 0x20, 0x38, 0x58, 0xfb, 0x63, 0xe2, 0xac, 0xba, 0xde, 0x35, 0x3b, 0x9b, 0xa4, 0xee, 0x8d,
  462. 0x0b, 0x12, 0xb7, 0xaa, 0xe2, 0x80, 0x10, 0x42, 0x3d, 0xf1, 0x27, 0xf0, 0x17, 0x70, 0xe8, 0x31,
  463. 0x47, 0xc4, 0x61, 0x51, 0x93, 0x0b, 0x58, 0xe2, 0xe2, 0x13, 0xe2, 0x84, 0xe6, 0xcd, 0xec, 0xec,
  464. 0xba, 0x51, 0x51, 0x5b, 0x72, 0xdb, 0xf7, 0xbd, 0xef, 0x3d, 0xef, 0xbc, 0xf9, 0xde, 0xdb, 0x67,
  465. 0xf4, 0x5a, 0xe0, 0x3b, 0x2b, 0x9e, 0xb3, 0xc2, 0x93, 0x78, 0xd7, 0x4d, 0x78, 0xbb, 0x1f, 0x47,
  466. 0x49, 0x64, 0x4e, 0x7a, 0xce, 0xd2, 0xb9, 0x98, 0xf5, 0x23, 0xbe, 0x02, 0x80, 0xb3, 0xbb, 0xbd,
  467. 0xd2, 0x8d, 0xba, 0x11, 0x18, 0xf0, 0x24, 0x89, 0x4b, 0xb8, 0x1b, 0x45, 0xdd, 0x80, 0xe5, 0xac,
  468. 0xc4, 0xef, 0x31, 0x9e, 0xd8, 0xbd, 0xbe, 0x22, 0x2c, 0x8a, 0xfc, 0xf0, 0xe8, 0x46, 0xc1, 0x8a,
  469. 0xc3, 0x32, 0xbc, 0xc2, 0xee, 0x27, 0xf2, 0x91, 0xfc, 0x38, 0x89, 0xaa, 0x1b, 0x7e, 0xc0, 0xee,
  470. 0xb2, 0x98, 0xfb, 0x51, 0x68, 0xde, 0x44, 0x33, 0x7b, 0xf2, 0xb1, 0x6e, 0x34, 0x8d, 0x56, 0x75,
  471. 0xf5, 0x74, 0x3b, 0x4b, 0xd0, 0xbe, 0xcb, 0xdc, 0x24, 0x8a, 0xad, 0xe6, 0x93, 0x14, 0x4f, 0x0c,
  472. 0x53, 0x9c, 0x11, 0x47, 0x29, 0x9e, 0xbb, 0xdf, 0x0b, 0x2e, 0x11, 0x65, 0x13, 0x9a, 0x79, 0xcc,
  473. 0x35, 0x34, 0xe3, 0xb1, 0x80, 0x25, 0xcc, 0xab, 0x4f, 0x36, 0x8d, 0xd6, 0xac, 0xf5, 0xa6, 0x88,
  474. 0x53, 0x90, 0x8e, 0x53, 0x36, 0xa1, 0x99, 0xc7, 0xbc, 0x28, 0xe2, 0xf6, 0x7c, 0x97, 0xf1, 0x7a,
  475. 0xa9, 0x59, 0x6a, 0xd5, 0xac, 0x37, 0x64, 0x1c, 0x40, 0xa3, 0x14, 0xd7, 0x54, 0x9c, 0xb0, 0x21,
  476. 0x0c, 0x1c, 0x26, 0x45, 0xa7, 0xfc, 0x70, 0xcf, 0x0e, 0x7c, 0xaf, 0x93, 0x85, 0x97, 0x21, 0xfc,
  477. 0x9d, 0x61, 0x8a, 0xe7, 0x95, 0x6b, 0x5d, 0x67, 0x39, 0x03, 0x59, 0xc6, 0x60, 0x42, 0x9f, 0xa1,
  478. 0x91, 0xaf, 0x0c, 0x54, 0x55, 0xc5, 0xb9, 0xe9, 0xf3, 0xc4, 0x0c, 0xd0, 0xac, 0x3a, 0x1d, 0xaf,
  479. 0x1b, 0xcd, 0x52, 0xab, 0xba, 0x7a, 0xaa, 0xed, 0x39, 0xed, 0x42, 0x0d, 0xad, 0xcb, 0xa2, 0x40,
  480. 0x87, 0x29, 0xae, 0x52, 0x7b, 0x5f, 0x61, 0x7c, 0x98, 0x62, 0x1d, 0x77, 0xac, 0x60, 0x8f, 0x0e,
  481. 0x96, 0x8b, 0x5c, 0xaa, 0x99, 0x97, 0xca, 0xdf, 0x3d, 0xc6, 0x13, 0xe4, 0x6f, 0x84, 0x16, 0xc4,
  482. 0x0f, 0x6c, 0x86, 0xdb, 0xd1, 0x9d, 0x78, 0x37, 0x74, 0x6d, 0x51, 0xa4, 0x77, 0x51, 0x39, 0xb4,
  483. 0x7b, 0x0c, 0xee, 0xa9, 0x62, 0x2d, 0x0e, 0x53, 0x0c, 0xf6, 0x28, 0xc5, 0x08, 0xb2, 0x0b, 0x83,
  484. 0x50, 0xc0, 0x04, 0x97, 0xfb, 0x0f, 0x58, 0xbd, 0xd4, 0x34, 0x5a, 0x25, 0xc9, 0x15, 0xb6, 0xe6,
  485. 0x0a, 0x83, 0x50, 0xc0, 0xcc, 0xcb, 0x08, 0xf5, 0x22, 0xcf, 0xdf, 0xf6, 0x99, 0xd7, 0xe1, 0xf5,
  486. 0x29, 0x88, 0x68, 0x0e, 0x53, 0x5c, 0xc9, 0xd0, 0xad, 0x51, 0x8a, 0x4f, 0x41, 0x98, 0x46, 0x08,
  487. 0xcd, 0xbd, 0xe6, 0xcf, 0x06, 0xaa, 0xea, 0x0c, 0xce, 0xa0, 0x5e, 0x6b, 0x1a, 0xad, 0xb2, 0xf5,
  488. 0xad, 0x21, 0xca, 0xf2, 0x5b, 0x8a, 0x2f, 0x74, 0xfd, 0x64, 0x67, 0xd7, 0x69, 0xbb, 0x51, 0x6f,
  489. 0x85, 0x0f, 0x42, 0x37, 0xd9, 0xf1, 0xc3, 0x6e, 0xe1, 0xa9, 0x28, 0xda, 0xf6, 0xd6, 0x4e, 0x14,
  490. 0x27, 0x9b, 0xeb, 0xc3, 0x14, 0xeb, 0x97, 0xb2, 0x06, 0xa3, 0x14, 0x9f, 0x1e, 0xfb, 0x7d, 0x6b,
  491. 0x40, 0xbe, 0x3f, 0x58, 0x7e, 0x95, 0xc4, 0xb4, 0x90, 0xb6, 0x28, 0xfe, 0xca, 0xff, 0x17, 0xff,
  492. 0x25, 0x34, 0xcb, 0xd9, 0x97, 0xbb, 0x2c, 0x74, 0x59, 0x1d, 0x41, 0x15, 0x1b, 0x42, 0x05, 0x19,
  493. 0x36, 0x4a, 0xf1, 0xbc, 0xac, 0xbd, 0x02, 0x08, 0xd5, 0x3e, 0xf3, 0x36, 0x9a, 0xe7, 0x83, 0x5e,
  494. 0xe0, 0x87, 0xf7, 0x3a, 0x89, 0x1d, 0x77, 0x59, 0x52, 0x5f, 0x80, 0x5b, 0x6e, 0x0d, 0x53, 0x3c,
  495. 0xa7, 0x3c, 0x77, 0xc0, 0xa1, 0x75, 0x3c, 0x86, 0x12, 0x3a, 0xce, 0x32, 0xaf, 0xa2, 0xaa, 0x13,
  496. 0x44, 0xee, 0x3d, 0xde, 0xd9, 0xb1, 0xf9, 0x4e, 0xdd, 0x6c, 0x1a, 0xad, 0x9a, 0x45, 0x44, 0x59,
  497. 0x25, 0x7c, 0xdd, 0xe6, 0x3b, 0xba, 0xac, 0x39, 0x44, 0x68, 0xc1, 0x6f, 0x7e, 0x88, 0x2a, 0x2c,
  498. 0x74, 0xe3, 0x41, 0x5f, 0x34, 0xf4, 0x19, 0x48, 0x01, 0xc2, 0xd0, 0xa0, 0x16, 0x86, 0x46, 0x08,
  499. 0xcd, 0xbd, 0xa6, 0x85, 0xca, 0xc9, 0xa0, 0xcf, 0x60, 0x16, 0xcc, 0xaf, 0x2e, 0xe6, 0xc5, 0xd5,
  500. 0xe2, 0x1e, 0xf4, 0x99, 0x54, 0xa7, 0xe0, 0x69, 0x75, 0x0a, 0x83, 0x50, 0xc0, 0xcc, 0x0d, 0x54,
  501. 0xed, 0xb3, 0xb8, 0xe7, 0x73, 0xd9, 0x82, 0xe5, 0xa6, 0xd1, 0x9a, 0xb3, 0x96, 0x87, 0x29, 0x2e,
  502. 0xc2, 0xa3, 0x14, 0x2f, 0x40, 0x64, 0x01, 0x23, 0xb4, 0xc8, 0x30, 0x6f, 0x14, 0x34, 0x1a, 0xf2,
  503. 0x7a, 0xb5, 0x69, 0xb4, 0xa6, 0x60, 0x4e, 0x68, 0x41, 0xdc, 0xe2, 0xc7, 0x74, 0x76, 0x8b, 0x93,
  504. 0x7f, 0x52, 0x5c, 0xf2, 0xc3, 0x84, 0x16, 0x68, 0xe6, 0x36, 0x92, 0x55, 0xea, 0x40, 0x8f, 0xcd,
  505. 0x41, 0xaa, 0x6b, 0x87, 0x29, 0xae, 0x51, 0x7b, 0xdf, 0x12, 0x8e, 0x2d, 0xff, 0x01, 0x13, 0x85,
  506. 0x72, 0x32, 0x43, 0x17, 0x4a, 0x23, 0x59, 0xe2, 0x47, 0x07, 0xcb, 0x63, 0x61, 0x34, 0x0f, 0x32,
  507. 0xd7, 0x51, 0x35, 0x88, 0x5c, 0x3b, 0xe8, 0x6c, 0x07, 0x76, 0x97, 0xd7, 0xff, 0x98, 0x81, 0xc3,
  508. 0xc3, 0x2d, 0x02, 0xbe, 0x21, 0x60, 0xfd, 0xd2, 0x39, 0x44, 0x68, 0xc1, 0x6f, 0x5e, 0x47, 0x35,
  509. 0x25, 0x51, 0xa9, 0x85, 0x3f, 0x67, 0xe0, 0x26, 0xa1, 0x86, 0xca, 0xa1, 0xd4, 0xb0, 0x50, 0x54,
  510. 0xb6, 0x94, 0x43, 0x91, 0x51, 0x1c, 0xef, 0xd3, 0x2f, 0x33, 0xde, 0x29, 0x9a, 0x51, 0x53, 0xb6,
  511. 0x3e, 0x03, 0x71, 0xef, 0x1f, 0xa6, 0x18, 0x51, 0x7b, 0x7f, 0x53, 0xa2, 0x22, 0x8b, 0x22, 0xe8,
  512. 0x2c, 0xca, 0x16, 0xb3, 0xb2, 0xc0, 0xa4, 0x19, 0x4f, 0x74, 0x4c, 0x18, 0x75, 0x8a, 0xd2, 0x98,
  513. 0x85, 0xd4, 0xd0, 0x31, 0x61, 0xf4, 0xc9, 0x98, 0x38, 0x64, 0xc7, 0x8c, 0xa1, 0x84, 0x8e, 0xb3,
  514. 0xd4, 0xe8, 0xfd, 0x14, 0x55, 0xe0, 0x2a, 0x60, 0xf6, 0xdf, 0x40, 0xd3, 0xb2, 0x1b, 0xd4, 0xe4,
  515. 0x3f, 0x93, 0x2b, 0x18, 0x48, 0x42, 0xc2, 0xd6, 0x5b, 0x6a, 0x42, 0x28, 0xea, 0x28, 0xc5, 0xd5,
  516. 0xfc, 0xa6, 0x09, 0x55, 0x30, 0xf9, 0xc9, 0x40, 0x67, 0x37, 0x43, 0xcf, 0x8f, 0x99, 0x9b, 0xa8,
  517. 0x7a, 0x32, 0x7e, 0x3b, 0x0c, 0x06, 0x27, 0xd3, 0xaa, 0x27, 0x76, 0xc9, 0xe4, 0x87, 0x32, 0x9a,
  518. 0xbe, 0x1a, 0xed, 0x86, 0x09, 0x37, 0x2f, 0xa2, 0xa9, 0x6d, 0x3f, 0x60, 0x1c, 0x3e, 0x39, 0x53,
  519. 0x16, 0x1e, 0xa6, 0x58, 0x02, 0xfa, 0x90, 0x60, 0xe9, 0x1e, 0x91, 0x4e, 0xf3, 0x63, 0x54, 0x95,
  520. 0xe7, 0x8c, 0x62, 0x9f, 0x71, 0xe8, 0xfe, 0x29, 0xeb, 0x3d, 0xf1, 0x26, 0x05, 0x58, 0xbf, 0x49,
  521. 0x01, 0xd3, 0x89, 0x8a, 0x44, 0xf3, 0x0a, 0x9a, 0x55, 0xb3, 0x8d, 0xc3, 0xf7, 0x6c, 0xca, 0x3a,
  522. 0x0f, 0x73, 0x55, 0x61, 0xf9, 0x5c, 0x55, 0x80, 0xce, 0xa2, 0x29, 0xe6, 0x07, 0xb9, 0x70, 0xcb,
  523. 0x90, 0xe1, 0xdc, 0x7f, 0x09, 0x37, 0x8b, 0xd7, 0xfa, 0x6d, 0xa3, 0x29, 0x67, 0x90, 0xb0, 0xec,
  524. 0xe3, 0x58, 0x17, 0x75, 0x00, 0x20, 0xbf, 0x6c, 0x61, 0x11, 0x2a, 0xd1, 0xb1, 0x2f, 0xc1, 0xf4,
  525. 0x4b, 0x7e, 0x09, 0xb6, 0x50, 0x45, 0xee, 0x32, 0x1d, 0xdf, 0x83, 0x8f, 0x40, 0xcd, 0x5a, 0x3b,
  526. 0x4c, 0xf1, 0xac, 0xdc, 0x4f, 0xe0, 0xcb, 0x38, 0x2b, 0x09, 0x9b, 0x9e, 0x4e, 0x94, 0x01, 0xa2,
  527. 0x5b, 0x34, 0x93, 0x6a, 0x9e, 0x90, 0x58, 0x71, 0x90, 0x98, 0xaf, 0x32, 0x47, 0x54, 0x83, 0x7c,
  528. 0x6d, 0xa0, 0x8a, 0x94, 0xc7, 0x16, 0x4b, 0xcc, 0x2b, 0x68, 0xda, 0x05, 0x43, 0x75, 0x08, 0x12,
  529. 0xbb, 0x91, 0x74, 0xe7, 0x8d, 0x21, 0x19, 0xba, 0x56, 0x60, 0x12, 0xaa, 0x60, 0x31, 0x54, 0xdc,
  530. 0x98, 0xd9, 0xd9, 0xce, 0x58, 0x92, 0x43, 0x45, 0x41, 0xfa, 0x6e, 0x94, 0x4d, 0x68, 0xe6, 0x21,
  531. 0xdf, 0x4c, 0xa2, 0xb3, 0x85, 0x2d, 0x6c, 0x9d, 0xf5, 0x63, 0x26, 0x17, 0xa5, 0x93, 0xdd, 0x69,
  532. 0x57, 0xd1, 0xb4, 0xac, 0x23, 0xbc, 0x5e, 0xcd, 0x5a, 0x12, 0x47, 0x92, 0xc8, 0xb1, 0xcd, 0x54,
  533. 0xe1, 0xe2, 0x4c, 0xd9, 0xc0, 0x2b, 0xe5, 0x83, 0xf2, 0x79, 0x23, 0x2e, 0x1f, 0x6a, 0x6b, 0xe3,
  534. 0x3a, 0x7d, 0xd1, 0x01, 0x4b, 0xf6, 0xd1, 0xd9, 0xc2, 0xce, 0x5a, 0x28, 0xc5, 0x67, 0xc7, 0xb6,
  535. 0xd7, 0xd7, 0x9f, 0xd9, 0x5e, 0x73, 0xb2, 0xf5, 0xb6, 0x2a, 0xca, 0xf3, 0x17, 0xd7, 0x63, 0x9b,
  536. 0xea, 0x5f, 0x06, 0x9a, 0xbf, 0xed, 0x70, 0x16, 0xef, 0x31, 0x6f, 0x23, 0x0a, 0x3c, 0x16, 0x9b,
  537. 0xb7, 0x50, 0x59, 0xfc, 0x2f, 0x51, 0xa5, 0x5f, 0x6a, 0xcb, 0x3f, 0x2d, 0xed, 0xec, 0x4f, 0x4b,
  538. 0xfb, 0x4e, 0xf6, 0xa7, 0xc5, 0x6a, 0xa8, 0xdf, 0x03, 0x7e, 0xfe, 0xf1, 0xf7, 0x7b, 0x8c, 0x3c,
  539. 0xfc, 0x1d, 0x1b, 0x14, 0x70, 0xd1, 0x7c, 0x81, 0xed, 0xb0, 0x00, 0xca, 0x5f, 0x91, 0xcd, 0x07,
  540. 0x80, 0x16, 0x14, 0x58, 0x84, 0x4a, 0xd4, 0xfc, 0x02, 0x2d, 0xc4, 0xcc, 0x65, 0xfe, 0x1e, 0xeb,
  541. 0xe4, 0xcb, 0x8b, 0xbc, 0x85, 0xf6, 0x30, 0xc5, 0xa7, 0x95, 0xf3, 0xa3, 0xc2, 0x0e, 0xb3, 0x08,
  542. 0x69, 0x9e, 0x75, 0x10, 0x7a, 0x8c, 0x4b, 0x7e, 0x29, 0x9c, 0x57, 0xf6, 0xd9, 0x89, 0x9f, 0x37,
  543. 0x5b, 0xf3, 0x27, 0x5f, 0x60, 0xcd, 0x5f, 0x43, 0x33, 0xb6, 0xe7, 0xc5, 0x8c, 0xcb, 0xc9, 0x58,
  544. 0x91, 0x7a, 0x51, 0x90, 0xbe, 0x3d, 0x65, 0x13, 0x9a, 0x79, 0xac, 0x6b, 0x4f, 0x9e, 0x36, 0x26,
  545. 0x0e, 0x9e, 0x36, 0x26, 0x9e, 0x1c, 0x36, 0x8c, 0x83, 0xc3, 0x86, 0xf1, 0xf0, 0xa8, 0x31, 0xf1,
  546. 0xf8, 0xa8, 0x61, 0x1c, 0x1c, 0x35, 0x26, 0x7e, 0x3d, 0x6a, 0x4c, 0x7c, 0x7e, 0xfe, 0x05, 0x76,
  547. 0x6b, 0xcf, 0x71, 0xa6, 0xe1, 0x98, 0x17, 0xfe, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x3c, 0x81,
  548. 0x94, 0xda, 0x0e, 0x00, 0x00,
  549. }
  550. func (m *FileVersion) Marshal() (dAtA []byte, err error) {
  551. size := m.ProtoSize()
  552. dAtA = make([]byte, size)
  553. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  554. if err != nil {
  555. return nil, err
  556. }
  557. return dAtA[:n], nil
  558. }
  559. func (m *FileVersion) MarshalTo(dAtA []byte) (int, error) {
  560. size := m.ProtoSize()
  561. return m.MarshalToSizedBuffer(dAtA[:size])
  562. }
  563. func (m *FileVersion) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  564. i := len(dAtA)
  565. _ = i
  566. var l int
  567. _ = l
  568. if len(m.InvalidDevices) > 0 {
  569. for iNdEx := len(m.InvalidDevices) - 1; iNdEx >= 0; iNdEx-- {
  570. i -= len(m.InvalidDevices[iNdEx])
  571. copy(dAtA[i:], m.InvalidDevices[iNdEx])
  572. i = encodeVarintStructs(dAtA, i, uint64(len(m.InvalidDevices[iNdEx])))
  573. i--
  574. dAtA[i] = 0x22
  575. }
  576. }
  577. if len(m.Devices) > 0 {
  578. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  579. i -= len(m.Devices[iNdEx])
  580. copy(dAtA[i:], m.Devices[iNdEx])
  581. i = encodeVarintStructs(dAtA, i, uint64(len(m.Devices[iNdEx])))
  582. i--
  583. dAtA[i] = 0x1a
  584. }
  585. }
  586. if m.Deleted {
  587. i--
  588. if m.Deleted {
  589. dAtA[i] = 1
  590. } else {
  591. dAtA[i] = 0
  592. }
  593. i--
  594. dAtA[i] = 0x10
  595. }
  596. {
  597. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  598. if err != nil {
  599. return 0, err
  600. }
  601. i -= size
  602. i = encodeVarintStructs(dAtA, i, uint64(size))
  603. }
  604. i--
  605. dAtA[i] = 0xa
  606. return len(dAtA) - i, nil
  607. }
  608. func (m *VersionList) Marshal() (dAtA []byte, err error) {
  609. size := m.ProtoSize()
  610. dAtA = make([]byte, size)
  611. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  612. if err != nil {
  613. return nil, err
  614. }
  615. return dAtA[:n], nil
  616. }
  617. func (m *VersionList) MarshalTo(dAtA []byte) (int, error) {
  618. size := m.ProtoSize()
  619. return m.MarshalToSizedBuffer(dAtA[:size])
  620. }
  621. func (m *VersionList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  622. i := len(dAtA)
  623. _ = i
  624. var l int
  625. _ = l
  626. if len(m.RawVersions) > 0 {
  627. for iNdEx := len(m.RawVersions) - 1; iNdEx >= 0; iNdEx-- {
  628. {
  629. size, err := m.RawVersions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  630. if err != nil {
  631. return 0, err
  632. }
  633. i -= size
  634. i = encodeVarintStructs(dAtA, i, uint64(size))
  635. }
  636. i--
  637. dAtA[i] = 0xa
  638. }
  639. }
  640. return len(dAtA) - i, nil
  641. }
  642. func (m *FileInfoTruncated) Marshal() (dAtA []byte, err error) {
  643. size := m.ProtoSize()
  644. dAtA = make([]byte, size)
  645. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  646. if err != nil {
  647. return nil, err
  648. }
  649. return dAtA[:n], nil
  650. }
  651. func (m *FileInfoTruncated) MarshalTo(dAtA []byte) (int, error) {
  652. size := m.ProtoSize()
  653. return m.MarshalToSizedBuffer(dAtA[:size])
  654. }
  655. func (m *FileInfoTruncated) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  656. i := len(dAtA)
  657. _ = i
  658. var l int
  659. _ = l
  660. if len(m.VersionHash) > 0 {
  661. i -= len(m.VersionHash)
  662. copy(dAtA[i:], m.VersionHash)
  663. i = encodeVarintStructs(dAtA, i, uint64(len(m.VersionHash)))
  664. i--
  665. dAtA[i] = 0x3e
  666. i--
  667. dAtA[i] = 0xca
  668. }
  669. if m.LocalFlags != 0 {
  670. i = encodeVarintStructs(dAtA, i, uint64(m.LocalFlags))
  671. i--
  672. dAtA[i] = 0x3e
  673. i--
  674. dAtA[i] = 0xc0
  675. }
  676. if len(m.Encrypted) > 0 {
  677. i -= len(m.Encrypted)
  678. copy(dAtA[i:], m.Encrypted)
  679. i = encodeVarintStructs(dAtA, i, uint64(len(m.Encrypted)))
  680. i--
  681. dAtA[i] = 0x1
  682. i--
  683. dAtA[i] = 0x9a
  684. }
  685. if len(m.BlocksHash) > 0 {
  686. i -= len(m.BlocksHash)
  687. copy(dAtA[i:], m.BlocksHash)
  688. i = encodeVarintStructs(dAtA, i, uint64(len(m.BlocksHash)))
  689. i--
  690. dAtA[i] = 0x1
  691. i--
  692. dAtA[i] = 0x92
  693. }
  694. if len(m.SymlinkTarget) > 0 {
  695. i -= len(m.SymlinkTarget)
  696. copy(dAtA[i:], m.SymlinkTarget)
  697. i = encodeVarintStructs(dAtA, i, uint64(len(m.SymlinkTarget)))
  698. i--
  699. dAtA[i] = 0x1
  700. i--
  701. dAtA[i] = 0x8a
  702. }
  703. if m.RawBlockSize != 0 {
  704. i = encodeVarintStructs(dAtA, i, uint64(m.RawBlockSize))
  705. i--
  706. dAtA[i] = 0x68
  707. }
  708. if m.ModifiedBy != 0 {
  709. i = encodeVarintStructs(dAtA, i, uint64(m.ModifiedBy))
  710. i--
  711. dAtA[i] = 0x60
  712. }
  713. if m.ModifiedNs != 0 {
  714. i = encodeVarintStructs(dAtA, i, uint64(m.ModifiedNs))
  715. i--
  716. dAtA[i] = 0x58
  717. }
  718. if m.Sequence != 0 {
  719. i = encodeVarintStructs(dAtA, i, uint64(m.Sequence))
  720. i--
  721. dAtA[i] = 0x50
  722. }
  723. {
  724. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  725. if err != nil {
  726. return 0, err
  727. }
  728. i -= size
  729. i = encodeVarintStructs(dAtA, i, uint64(size))
  730. }
  731. i--
  732. dAtA[i] = 0x4a
  733. if m.NoPermissions {
  734. i--
  735. if m.NoPermissions {
  736. dAtA[i] = 1
  737. } else {
  738. dAtA[i] = 0
  739. }
  740. i--
  741. dAtA[i] = 0x40
  742. }
  743. if m.RawInvalid {
  744. i--
  745. if m.RawInvalid {
  746. dAtA[i] = 1
  747. } else {
  748. dAtA[i] = 0
  749. }
  750. i--
  751. dAtA[i] = 0x38
  752. }
  753. if m.Deleted {
  754. i--
  755. if m.Deleted {
  756. dAtA[i] = 1
  757. } else {
  758. dAtA[i] = 0
  759. }
  760. i--
  761. dAtA[i] = 0x30
  762. }
  763. if m.ModifiedS != 0 {
  764. i = encodeVarintStructs(dAtA, i, uint64(m.ModifiedS))
  765. i--
  766. dAtA[i] = 0x28
  767. }
  768. if m.Permissions != 0 {
  769. i = encodeVarintStructs(dAtA, i, uint64(m.Permissions))
  770. i--
  771. dAtA[i] = 0x20
  772. }
  773. if m.Size != 0 {
  774. i = encodeVarintStructs(dAtA, i, uint64(m.Size))
  775. i--
  776. dAtA[i] = 0x18
  777. }
  778. if m.Type != 0 {
  779. i = encodeVarintStructs(dAtA, i, uint64(m.Type))
  780. i--
  781. dAtA[i] = 0x10
  782. }
  783. if len(m.Name) > 0 {
  784. i -= len(m.Name)
  785. copy(dAtA[i:], m.Name)
  786. i = encodeVarintStructs(dAtA, i, uint64(len(m.Name)))
  787. i--
  788. dAtA[i] = 0xa
  789. }
  790. return len(dAtA) - i, nil
  791. }
  792. func (m *BlockList) Marshal() (dAtA []byte, err error) {
  793. size := m.ProtoSize()
  794. dAtA = make([]byte, size)
  795. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  796. if err != nil {
  797. return nil, err
  798. }
  799. return dAtA[:n], nil
  800. }
  801. func (m *BlockList) MarshalTo(dAtA []byte) (int, error) {
  802. size := m.ProtoSize()
  803. return m.MarshalToSizedBuffer(dAtA[:size])
  804. }
  805. func (m *BlockList) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  806. i := len(dAtA)
  807. _ = i
  808. var l int
  809. _ = l
  810. if len(m.Blocks) > 0 {
  811. for iNdEx := len(m.Blocks) - 1; iNdEx >= 0; iNdEx-- {
  812. {
  813. size, err := m.Blocks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  814. if err != nil {
  815. return 0, err
  816. }
  817. i -= size
  818. i = encodeVarintStructs(dAtA, i, uint64(size))
  819. }
  820. i--
  821. dAtA[i] = 0xa
  822. }
  823. }
  824. return len(dAtA) - i, nil
  825. }
  826. func (m *IndirectionHashesOnly) Marshal() (dAtA []byte, err error) {
  827. size := m.ProtoSize()
  828. dAtA = make([]byte, size)
  829. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  830. if err != nil {
  831. return nil, err
  832. }
  833. return dAtA[:n], nil
  834. }
  835. func (m *IndirectionHashesOnly) MarshalTo(dAtA []byte) (int, error) {
  836. size := m.ProtoSize()
  837. return m.MarshalToSizedBuffer(dAtA[:size])
  838. }
  839. func (m *IndirectionHashesOnly) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  840. i := len(dAtA)
  841. _ = i
  842. var l int
  843. _ = l
  844. if len(m.VersionHash) > 0 {
  845. i -= len(m.VersionHash)
  846. copy(dAtA[i:], m.VersionHash)
  847. i = encodeVarintStructs(dAtA, i, uint64(len(m.VersionHash)))
  848. i--
  849. dAtA[i] = 0x3e
  850. i--
  851. dAtA[i] = 0xca
  852. }
  853. if len(m.BlocksHash) > 0 {
  854. i -= len(m.BlocksHash)
  855. copy(dAtA[i:], m.BlocksHash)
  856. i = encodeVarintStructs(dAtA, i, uint64(len(m.BlocksHash)))
  857. i--
  858. dAtA[i] = 0x1
  859. i--
  860. dAtA[i] = 0x92
  861. }
  862. return len(dAtA) - i, nil
  863. }
  864. func (m *Counts) Marshal() (dAtA []byte, err error) {
  865. size := m.ProtoSize()
  866. dAtA = make([]byte, size)
  867. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  868. if err != nil {
  869. return nil, err
  870. }
  871. return dAtA[:n], nil
  872. }
  873. func (m *Counts) MarshalTo(dAtA []byte) (int, error) {
  874. size := m.ProtoSize()
  875. return m.MarshalToSizedBuffer(dAtA[:size])
  876. }
  877. func (m *Counts) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  878. i := len(dAtA)
  879. _ = i
  880. var l int
  881. _ = l
  882. if m.LocalFlags != 0 {
  883. i = encodeVarintStructs(dAtA, i, uint64(m.LocalFlags))
  884. i--
  885. dAtA[i] = 0x1
  886. i--
  887. dAtA[i] = 0x90
  888. }
  889. if len(m.DeviceID) > 0 {
  890. i -= len(m.DeviceID)
  891. copy(dAtA[i:], m.DeviceID)
  892. i = encodeVarintStructs(dAtA, i, uint64(len(m.DeviceID)))
  893. i--
  894. dAtA[i] = 0x1
  895. i--
  896. dAtA[i] = 0x8a
  897. }
  898. if m.Sequence != 0 {
  899. i = encodeVarintStructs(dAtA, i, uint64(m.Sequence))
  900. i--
  901. dAtA[i] = 0x30
  902. }
  903. if m.Bytes != 0 {
  904. i = encodeVarintStructs(dAtA, i, uint64(m.Bytes))
  905. i--
  906. dAtA[i] = 0x28
  907. }
  908. if m.Deleted != 0 {
  909. i = encodeVarintStructs(dAtA, i, uint64(m.Deleted))
  910. i--
  911. dAtA[i] = 0x20
  912. }
  913. if m.Symlinks != 0 {
  914. i = encodeVarintStructs(dAtA, i, uint64(m.Symlinks))
  915. i--
  916. dAtA[i] = 0x18
  917. }
  918. if m.Directories != 0 {
  919. i = encodeVarintStructs(dAtA, i, uint64(m.Directories))
  920. i--
  921. dAtA[i] = 0x10
  922. }
  923. if m.Files != 0 {
  924. i = encodeVarintStructs(dAtA, i, uint64(m.Files))
  925. i--
  926. dAtA[i] = 0x8
  927. }
  928. return len(dAtA) - i, nil
  929. }
  930. func (m *CountsSet) Marshal() (dAtA []byte, err error) {
  931. size := m.ProtoSize()
  932. dAtA = make([]byte, size)
  933. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  934. if err != nil {
  935. return nil, err
  936. }
  937. return dAtA[:n], nil
  938. }
  939. func (m *CountsSet) MarshalTo(dAtA []byte) (int, error) {
  940. size := m.ProtoSize()
  941. return m.MarshalToSizedBuffer(dAtA[:size])
  942. }
  943. func (m *CountsSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  944. i := len(dAtA)
  945. _ = i
  946. var l int
  947. _ = l
  948. if m.Created != 0 {
  949. i = encodeVarintStructs(dAtA, i, uint64(m.Created))
  950. i--
  951. dAtA[i] = 0x10
  952. }
  953. if len(m.Counts) > 0 {
  954. for iNdEx := len(m.Counts) - 1; iNdEx >= 0; iNdEx-- {
  955. {
  956. size, err := m.Counts[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  957. if err != nil {
  958. return 0, err
  959. }
  960. i -= size
  961. i = encodeVarintStructs(dAtA, i, uint64(size))
  962. }
  963. i--
  964. dAtA[i] = 0xa
  965. }
  966. }
  967. return len(dAtA) - i, nil
  968. }
  969. func (m *FileVersionDeprecated) Marshal() (dAtA []byte, err error) {
  970. size := m.ProtoSize()
  971. dAtA = make([]byte, size)
  972. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  973. if err != nil {
  974. return nil, err
  975. }
  976. return dAtA[:n], nil
  977. }
  978. func (m *FileVersionDeprecated) MarshalTo(dAtA []byte) (int, error) {
  979. size := m.ProtoSize()
  980. return m.MarshalToSizedBuffer(dAtA[:size])
  981. }
  982. func (m *FileVersionDeprecated) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  983. i := len(dAtA)
  984. _ = i
  985. var l int
  986. _ = l
  987. if m.Deleted {
  988. i--
  989. if m.Deleted {
  990. dAtA[i] = 1
  991. } else {
  992. dAtA[i] = 0
  993. }
  994. i--
  995. dAtA[i] = 0x20
  996. }
  997. if m.Invalid {
  998. i--
  999. if m.Invalid {
  1000. dAtA[i] = 1
  1001. } else {
  1002. dAtA[i] = 0
  1003. }
  1004. i--
  1005. dAtA[i] = 0x18
  1006. }
  1007. if len(m.Device) > 0 {
  1008. i -= len(m.Device)
  1009. copy(dAtA[i:], m.Device)
  1010. i = encodeVarintStructs(dAtA, i, uint64(len(m.Device)))
  1011. i--
  1012. dAtA[i] = 0x12
  1013. }
  1014. {
  1015. size, err := m.Version.MarshalToSizedBuffer(dAtA[:i])
  1016. if err != nil {
  1017. return 0, err
  1018. }
  1019. i -= size
  1020. i = encodeVarintStructs(dAtA, i, uint64(size))
  1021. }
  1022. i--
  1023. dAtA[i] = 0xa
  1024. return len(dAtA) - i, nil
  1025. }
  1026. func (m *VersionListDeprecated) Marshal() (dAtA []byte, err error) {
  1027. size := m.ProtoSize()
  1028. dAtA = make([]byte, size)
  1029. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1030. if err != nil {
  1031. return nil, err
  1032. }
  1033. return dAtA[:n], nil
  1034. }
  1035. func (m *VersionListDeprecated) MarshalTo(dAtA []byte) (int, error) {
  1036. size := m.ProtoSize()
  1037. return m.MarshalToSizedBuffer(dAtA[:size])
  1038. }
  1039. func (m *VersionListDeprecated) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1040. i := len(dAtA)
  1041. _ = i
  1042. var l int
  1043. _ = l
  1044. if len(m.Versions) > 0 {
  1045. for iNdEx := len(m.Versions) - 1; iNdEx >= 0; iNdEx-- {
  1046. {
  1047. size, err := m.Versions[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  1048. if err != nil {
  1049. return 0, err
  1050. }
  1051. i -= size
  1052. i = encodeVarintStructs(dAtA, i, uint64(size))
  1053. }
  1054. i--
  1055. dAtA[i] = 0xa
  1056. }
  1057. }
  1058. return len(dAtA) - i, nil
  1059. }
  1060. func (m *ObservedFolder) Marshal() (dAtA []byte, err error) {
  1061. size := m.ProtoSize()
  1062. dAtA = make([]byte, size)
  1063. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1064. if err != nil {
  1065. return nil, err
  1066. }
  1067. return dAtA[:n], nil
  1068. }
  1069. func (m *ObservedFolder) MarshalTo(dAtA []byte) (int, error) {
  1070. size := m.ProtoSize()
  1071. return m.MarshalToSizedBuffer(dAtA[:size])
  1072. }
  1073. func (m *ObservedFolder) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1074. i := len(dAtA)
  1075. _ = i
  1076. var l int
  1077. _ = l
  1078. if m.ReceiveEncrypted {
  1079. i--
  1080. if m.ReceiveEncrypted {
  1081. dAtA[i] = 1
  1082. } else {
  1083. dAtA[i] = 0
  1084. }
  1085. i--
  1086. dAtA[i] = 0x18
  1087. }
  1088. if len(m.Label) > 0 {
  1089. i -= len(m.Label)
  1090. copy(dAtA[i:], m.Label)
  1091. i = encodeVarintStructs(dAtA, i, uint64(len(m.Label)))
  1092. i--
  1093. dAtA[i] = 0x12
  1094. }
  1095. n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
  1096. if err4 != nil {
  1097. return 0, err4
  1098. }
  1099. i -= n4
  1100. i = encodeVarintStructs(dAtA, i, uint64(n4))
  1101. i--
  1102. dAtA[i] = 0xa
  1103. return len(dAtA) - i, nil
  1104. }
  1105. func (m *ObservedDevice) Marshal() (dAtA []byte, err error) {
  1106. size := m.ProtoSize()
  1107. dAtA = make([]byte, size)
  1108. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  1109. if err != nil {
  1110. return nil, err
  1111. }
  1112. return dAtA[:n], nil
  1113. }
  1114. func (m *ObservedDevice) MarshalTo(dAtA []byte) (int, error) {
  1115. size := m.ProtoSize()
  1116. return m.MarshalToSizedBuffer(dAtA[:size])
  1117. }
  1118. func (m *ObservedDevice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  1119. i := len(dAtA)
  1120. _ = i
  1121. var l int
  1122. _ = l
  1123. if len(m.Address) > 0 {
  1124. i -= len(m.Address)
  1125. copy(dAtA[i:], m.Address)
  1126. i = encodeVarintStructs(dAtA, i, uint64(len(m.Address)))
  1127. i--
  1128. dAtA[i] = 0x1a
  1129. }
  1130. if len(m.Name) > 0 {
  1131. i -= len(m.Name)
  1132. copy(dAtA[i:], m.Name)
  1133. i = encodeVarintStructs(dAtA, i, uint64(len(m.Name)))
  1134. i--
  1135. dAtA[i] = 0x12
  1136. }
  1137. n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Time, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Time):])
  1138. if err5 != nil {
  1139. return 0, err5
  1140. }
  1141. i -= n5
  1142. i = encodeVarintStructs(dAtA, i, uint64(n5))
  1143. i--
  1144. dAtA[i] = 0xa
  1145. return len(dAtA) - i, nil
  1146. }
  1147. func encodeVarintStructs(dAtA []byte, offset int, v uint64) int {
  1148. offset -= sovStructs(v)
  1149. base := offset
  1150. for v >= 1<<7 {
  1151. dAtA[offset] = uint8(v&0x7f | 0x80)
  1152. v >>= 7
  1153. offset++
  1154. }
  1155. dAtA[offset] = uint8(v)
  1156. return base
  1157. }
  1158. func (m *FileVersion) ProtoSize() (n int) {
  1159. if m == nil {
  1160. return 0
  1161. }
  1162. var l int
  1163. _ = l
  1164. l = m.Version.ProtoSize()
  1165. n += 1 + l + sovStructs(uint64(l))
  1166. if m.Deleted {
  1167. n += 2
  1168. }
  1169. if len(m.Devices) > 0 {
  1170. for _, b := range m.Devices {
  1171. l = len(b)
  1172. n += 1 + l + sovStructs(uint64(l))
  1173. }
  1174. }
  1175. if len(m.InvalidDevices) > 0 {
  1176. for _, b := range m.InvalidDevices {
  1177. l = len(b)
  1178. n += 1 + l + sovStructs(uint64(l))
  1179. }
  1180. }
  1181. return n
  1182. }
  1183. func (m *VersionList) ProtoSize() (n int) {
  1184. if m == nil {
  1185. return 0
  1186. }
  1187. var l int
  1188. _ = l
  1189. if len(m.RawVersions) > 0 {
  1190. for _, e := range m.RawVersions {
  1191. l = e.ProtoSize()
  1192. n += 1 + l + sovStructs(uint64(l))
  1193. }
  1194. }
  1195. return n
  1196. }
  1197. func (m *FileInfoTruncated) ProtoSize() (n int) {
  1198. if m == nil {
  1199. return 0
  1200. }
  1201. var l int
  1202. _ = l
  1203. l = len(m.Name)
  1204. if l > 0 {
  1205. n += 1 + l + sovStructs(uint64(l))
  1206. }
  1207. if m.Type != 0 {
  1208. n += 1 + sovStructs(uint64(m.Type))
  1209. }
  1210. if m.Size != 0 {
  1211. n += 1 + sovStructs(uint64(m.Size))
  1212. }
  1213. if m.Permissions != 0 {
  1214. n += 1 + sovStructs(uint64(m.Permissions))
  1215. }
  1216. if m.ModifiedS != 0 {
  1217. n += 1 + sovStructs(uint64(m.ModifiedS))
  1218. }
  1219. if m.Deleted {
  1220. n += 2
  1221. }
  1222. if m.RawInvalid {
  1223. n += 2
  1224. }
  1225. if m.NoPermissions {
  1226. n += 2
  1227. }
  1228. l = m.Version.ProtoSize()
  1229. n += 1 + l + sovStructs(uint64(l))
  1230. if m.Sequence != 0 {
  1231. n += 1 + sovStructs(uint64(m.Sequence))
  1232. }
  1233. if m.ModifiedNs != 0 {
  1234. n += 1 + sovStructs(uint64(m.ModifiedNs))
  1235. }
  1236. if m.ModifiedBy != 0 {
  1237. n += 1 + sovStructs(uint64(m.ModifiedBy))
  1238. }
  1239. if m.RawBlockSize != 0 {
  1240. n += 1 + sovStructs(uint64(m.RawBlockSize))
  1241. }
  1242. l = len(m.SymlinkTarget)
  1243. if l > 0 {
  1244. n += 2 + l + sovStructs(uint64(l))
  1245. }
  1246. l = len(m.BlocksHash)
  1247. if l > 0 {
  1248. n += 2 + l + sovStructs(uint64(l))
  1249. }
  1250. l = len(m.Encrypted)
  1251. if l > 0 {
  1252. n += 2 + l + sovStructs(uint64(l))
  1253. }
  1254. if m.LocalFlags != 0 {
  1255. n += 2 + sovStructs(uint64(m.LocalFlags))
  1256. }
  1257. l = len(m.VersionHash)
  1258. if l > 0 {
  1259. n += 2 + l + sovStructs(uint64(l))
  1260. }
  1261. return n
  1262. }
  1263. func (m *BlockList) ProtoSize() (n int) {
  1264. if m == nil {
  1265. return 0
  1266. }
  1267. var l int
  1268. _ = l
  1269. if len(m.Blocks) > 0 {
  1270. for _, e := range m.Blocks {
  1271. l = e.ProtoSize()
  1272. n += 1 + l + sovStructs(uint64(l))
  1273. }
  1274. }
  1275. return n
  1276. }
  1277. func (m *IndirectionHashesOnly) ProtoSize() (n int) {
  1278. if m == nil {
  1279. return 0
  1280. }
  1281. var l int
  1282. _ = l
  1283. l = len(m.BlocksHash)
  1284. if l > 0 {
  1285. n += 2 + l + sovStructs(uint64(l))
  1286. }
  1287. l = len(m.VersionHash)
  1288. if l > 0 {
  1289. n += 2 + l + sovStructs(uint64(l))
  1290. }
  1291. return n
  1292. }
  1293. func (m *Counts) ProtoSize() (n int) {
  1294. if m == nil {
  1295. return 0
  1296. }
  1297. var l int
  1298. _ = l
  1299. if m.Files != 0 {
  1300. n += 1 + sovStructs(uint64(m.Files))
  1301. }
  1302. if m.Directories != 0 {
  1303. n += 1 + sovStructs(uint64(m.Directories))
  1304. }
  1305. if m.Symlinks != 0 {
  1306. n += 1 + sovStructs(uint64(m.Symlinks))
  1307. }
  1308. if m.Deleted != 0 {
  1309. n += 1 + sovStructs(uint64(m.Deleted))
  1310. }
  1311. if m.Bytes != 0 {
  1312. n += 1 + sovStructs(uint64(m.Bytes))
  1313. }
  1314. if m.Sequence != 0 {
  1315. n += 1 + sovStructs(uint64(m.Sequence))
  1316. }
  1317. l = len(m.DeviceID)
  1318. if l > 0 {
  1319. n += 2 + l + sovStructs(uint64(l))
  1320. }
  1321. if m.LocalFlags != 0 {
  1322. n += 2 + sovStructs(uint64(m.LocalFlags))
  1323. }
  1324. return n
  1325. }
  1326. func (m *CountsSet) ProtoSize() (n int) {
  1327. if m == nil {
  1328. return 0
  1329. }
  1330. var l int
  1331. _ = l
  1332. if len(m.Counts) > 0 {
  1333. for _, e := range m.Counts {
  1334. l = e.ProtoSize()
  1335. n += 1 + l + sovStructs(uint64(l))
  1336. }
  1337. }
  1338. if m.Created != 0 {
  1339. n += 1 + sovStructs(uint64(m.Created))
  1340. }
  1341. return n
  1342. }
  1343. func (m *FileVersionDeprecated) ProtoSize() (n int) {
  1344. if m == nil {
  1345. return 0
  1346. }
  1347. var l int
  1348. _ = l
  1349. l = m.Version.ProtoSize()
  1350. n += 1 + l + sovStructs(uint64(l))
  1351. l = len(m.Device)
  1352. if l > 0 {
  1353. n += 1 + l + sovStructs(uint64(l))
  1354. }
  1355. if m.Invalid {
  1356. n += 2
  1357. }
  1358. if m.Deleted {
  1359. n += 2
  1360. }
  1361. return n
  1362. }
  1363. func (m *VersionListDeprecated) ProtoSize() (n int) {
  1364. if m == nil {
  1365. return 0
  1366. }
  1367. var l int
  1368. _ = l
  1369. if len(m.Versions) > 0 {
  1370. for _, e := range m.Versions {
  1371. l = e.ProtoSize()
  1372. n += 1 + l + sovStructs(uint64(l))
  1373. }
  1374. }
  1375. return n
  1376. }
  1377. func (m *ObservedFolder) ProtoSize() (n int) {
  1378. if m == nil {
  1379. return 0
  1380. }
  1381. var l int
  1382. _ = l
  1383. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  1384. n += 1 + l + sovStructs(uint64(l))
  1385. l = len(m.Label)
  1386. if l > 0 {
  1387. n += 1 + l + sovStructs(uint64(l))
  1388. }
  1389. if m.ReceiveEncrypted {
  1390. n += 2
  1391. }
  1392. return n
  1393. }
  1394. func (m *ObservedDevice) ProtoSize() (n int) {
  1395. if m == nil {
  1396. return 0
  1397. }
  1398. var l int
  1399. _ = l
  1400. l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Time)
  1401. n += 1 + l + sovStructs(uint64(l))
  1402. l = len(m.Name)
  1403. if l > 0 {
  1404. n += 1 + l + sovStructs(uint64(l))
  1405. }
  1406. l = len(m.Address)
  1407. if l > 0 {
  1408. n += 1 + l + sovStructs(uint64(l))
  1409. }
  1410. return n
  1411. }
  1412. func sovStructs(x uint64) (n int) {
  1413. return (math_bits.Len64(x|1) + 6) / 7
  1414. }
  1415. func sozStructs(x uint64) (n int) {
  1416. return sovStructs(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1417. }
  1418. func (m *FileVersion) Unmarshal(dAtA []byte) error {
  1419. l := len(dAtA)
  1420. iNdEx := 0
  1421. for iNdEx < l {
  1422. preIndex := iNdEx
  1423. var wire uint64
  1424. for shift := uint(0); ; shift += 7 {
  1425. if shift >= 64 {
  1426. return ErrIntOverflowStructs
  1427. }
  1428. if iNdEx >= l {
  1429. return io.ErrUnexpectedEOF
  1430. }
  1431. b := dAtA[iNdEx]
  1432. iNdEx++
  1433. wire |= uint64(b&0x7F) << shift
  1434. if b < 0x80 {
  1435. break
  1436. }
  1437. }
  1438. fieldNum := int32(wire >> 3)
  1439. wireType := int(wire & 0x7)
  1440. if wireType == 4 {
  1441. return fmt.Errorf("proto: FileVersion: wiretype end group for non-group")
  1442. }
  1443. if fieldNum <= 0 {
  1444. return fmt.Errorf("proto: FileVersion: illegal tag %d (wire type %d)", fieldNum, wire)
  1445. }
  1446. switch fieldNum {
  1447. case 1:
  1448. if wireType != 2 {
  1449. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1450. }
  1451. var msglen int
  1452. for shift := uint(0); ; shift += 7 {
  1453. if shift >= 64 {
  1454. return ErrIntOverflowStructs
  1455. }
  1456. if iNdEx >= l {
  1457. return io.ErrUnexpectedEOF
  1458. }
  1459. b := dAtA[iNdEx]
  1460. iNdEx++
  1461. msglen |= int(b&0x7F) << shift
  1462. if b < 0x80 {
  1463. break
  1464. }
  1465. }
  1466. if msglen < 0 {
  1467. return ErrInvalidLengthStructs
  1468. }
  1469. postIndex := iNdEx + msglen
  1470. if postIndex < 0 {
  1471. return ErrInvalidLengthStructs
  1472. }
  1473. if postIndex > l {
  1474. return io.ErrUnexpectedEOF
  1475. }
  1476. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1477. return err
  1478. }
  1479. iNdEx = postIndex
  1480. case 2:
  1481. if wireType != 0 {
  1482. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  1483. }
  1484. var v int
  1485. for shift := uint(0); ; shift += 7 {
  1486. if shift >= 64 {
  1487. return ErrIntOverflowStructs
  1488. }
  1489. if iNdEx >= l {
  1490. return io.ErrUnexpectedEOF
  1491. }
  1492. b := dAtA[iNdEx]
  1493. iNdEx++
  1494. v |= int(b&0x7F) << shift
  1495. if b < 0x80 {
  1496. break
  1497. }
  1498. }
  1499. m.Deleted = bool(v != 0)
  1500. case 3:
  1501. if wireType != 2 {
  1502. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1503. }
  1504. var byteLen int
  1505. for shift := uint(0); ; shift += 7 {
  1506. if shift >= 64 {
  1507. return ErrIntOverflowStructs
  1508. }
  1509. if iNdEx >= l {
  1510. return io.ErrUnexpectedEOF
  1511. }
  1512. b := dAtA[iNdEx]
  1513. iNdEx++
  1514. byteLen |= int(b&0x7F) << shift
  1515. if b < 0x80 {
  1516. break
  1517. }
  1518. }
  1519. if byteLen < 0 {
  1520. return ErrInvalidLengthStructs
  1521. }
  1522. postIndex := iNdEx + byteLen
  1523. if postIndex < 0 {
  1524. return ErrInvalidLengthStructs
  1525. }
  1526. if postIndex > l {
  1527. return io.ErrUnexpectedEOF
  1528. }
  1529. m.Devices = append(m.Devices, make([]byte, postIndex-iNdEx))
  1530. copy(m.Devices[len(m.Devices)-1], dAtA[iNdEx:postIndex])
  1531. iNdEx = postIndex
  1532. case 4:
  1533. if wireType != 2 {
  1534. return fmt.Errorf("proto: wrong wireType = %d for field InvalidDevices", wireType)
  1535. }
  1536. var byteLen int
  1537. for shift := uint(0); ; shift += 7 {
  1538. if shift >= 64 {
  1539. return ErrIntOverflowStructs
  1540. }
  1541. if iNdEx >= l {
  1542. return io.ErrUnexpectedEOF
  1543. }
  1544. b := dAtA[iNdEx]
  1545. iNdEx++
  1546. byteLen |= int(b&0x7F) << shift
  1547. if b < 0x80 {
  1548. break
  1549. }
  1550. }
  1551. if byteLen < 0 {
  1552. return ErrInvalidLengthStructs
  1553. }
  1554. postIndex := iNdEx + byteLen
  1555. if postIndex < 0 {
  1556. return ErrInvalidLengthStructs
  1557. }
  1558. if postIndex > l {
  1559. return io.ErrUnexpectedEOF
  1560. }
  1561. m.InvalidDevices = append(m.InvalidDevices, make([]byte, postIndex-iNdEx))
  1562. copy(m.InvalidDevices[len(m.InvalidDevices)-1], dAtA[iNdEx:postIndex])
  1563. iNdEx = postIndex
  1564. default:
  1565. iNdEx = preIndex
  1566. skippy, err := skipStructs(dAtA[iNdEx:])
  1567. if err != nil {
  1568. return err
  1569. }
  1570. if skippy < 0 {
  1571. return ErrInvalidLengthStructs
  1572. }
  1573. if (iNdEx + skippy) < 0 {
  1574. return ErrInvalidLengthStructs
  1575. }
  1576. if (iNdEx + skippy) > l {
  1577. return io.ErrUnexpectedEOF
  1578. }
  1579. iNdEx += skippy
  1580. }
  1581. }
  1582. if iNdEx > l {
  1583. return io.ErrUnexpectedEOF
  1584. }
  1585. return nil
  1586. }
  1587. func (m *VersionList) Unmarshal(dAtA []byte) error {
  1588. l := len(dAtA)
  1589. iNdEx := 0
  1590. for iNdEx < l {
  1591. preIndex := iNdEx
  1592. var wire uint64
  1593. for shift := uint(0); ; shift += 7 {
  1594. if shift >= 64 {
  1595. return ErrIntOverflowStructs
  1596. }
  1597. if iNdEx >= l {
  1598. return io.ErrUnexpectedEOF
  1599. }
  1600. b := dAtA[iNdEx]
  1601. iNdEx++
  1602. wire |= uint64(b&0x7F) << shift
  1603. if b < 0x80 {
  1604. break
  1605. }
  1606. }
  1607. fieldNum := int32(wire >> 3)
  1608. wireType := int(wire & 0x7)
  1609. if wireType == 4 {
  1610. return fmt.Errorf("proto: VersionList: wiretype end group for non-group")
  1611. }
  1612. if fieldNum <= 0 {
  1613. return fmt.Errorf("proto: VersionList: illegal tag %d (wire type %d)", fieldNum, wire)
  1614. }
  1615. switch fieldNum {
  1616. case 1:
  1617. if wireType != 2 {
  1618. return fmt.Errorf("proto: wrong wireType = %d for field RawVersions", wireType)
  1619. }
  1620. var msglen int
  1621. for shift := uint(0); ; shift += 7 {
  1622. if shift >= 64 {
  1623. return ErrIntOverflowStructs
  1624. }
  1625. if iNdEx >= l {
  1626. return io.ErrUnexpectedEOF
  1627. }
  1628. b := dAtA[iNdEx]
  1629. iNdEx++
  1630. msglen |= int(b&0x7F) << shift
  1631. if b < 0x80 {
  1632. break
  1633. }
  1634. }
  1635. if msglen < 0 {
  1636. return ErrInvalidLengthStructs
  1637. }
  1638. postIndex := iNdEx + msglen
  1639. if postIndex < 0 {
  1640. return ErrInvalidLengthStructs
  1641. }
  1642. if postIndex > l {
  1643. return io.ErrUnexpectedEOF
  1644. }
  1645. m.RawVersions = append(m.RawVersions, FileVersion{})
  1646. if err := m.RawVersions[len(m.RawVersions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1647. return err
  1648. }
  1649. iNdEx = postIndex
  1650. default:
  1651. iNdEx = preIndex
  1652. skippy, err := skipStructs(dAtA[iNdEx:])
  1653. if err != nil {
  1654. return err
  1655. }
  1656. if skippy < 0 {
  1657. return ErrInvalidLengthStructs
  1658. }
  1659. if (iNdEx + skippy) < 0 {
  1660. return ErrInvalidLengthStructs
  1661. }
  1662. if (iNdEx + skippy) > l {
  1663. return io.ErrUnexpectedEOF
  1664. }
  1665. iNdEx += skippy
  1666. }
  1667. }
  1668. if iNdEx > l {
  1669. return io.ErrUnexpectedEOF
  1670. }
  1671. return nil
  1672. }
  1673. func (m *FileInfoTruncated) Unmarshal(dAtA []byte) error {
  1674. l := len(dAtA)
  1675. iNdEx := 0
  1676. for iNdEx < l {
  1677. preIndex := iNdEx
  1678. var wire uint64
  1679. for shift := uint(0); ; shift += 7 {
  1680. if shift >= 64 {
  1681. return ErrIntOverflowStructs
  1682. }
  1683. if iNdEx >= l {
  1684. return io.ErrUnexpectedEOF
  1685. }
  1686. b := dAtA[iNdEx]
  1687. iNdEx++
  1688. wire |= uint64(b&0x7F) << shift
  1689. if b < 0x80 {
  1690. break
  1691. }
  1692. }
  1693. fieldNum := int32(wire >> 3)
  1694. wireType := int(wire & 0x7)
  1695. if wireType == 4 {
  1696. return fmt.Errorf("proto: FileInfoTruncated: wiretype end group for non-group")
  1697. }
  1698. if fieldNum <= 0 {
  1699. return fmt.Errorf("proto: FileInfoTruncated: illegal tag %d (wire type %d)", fieldNum, wire)
  1700. }
  1701. switch fieldNum {
  1702. case 1:
  1703. if wireType != 2 {
  1704. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  1705. }
  1706. var stringLen uint64
  1707. for shift := uint(0); ; shift += 7 {
  1708. if shift >= 64 {
  1709. return ErrIntOverflowStructs
  1710. }
  1711. if iNdEx >= l {
  1712. return io.ErrUnexpectedEOF
  1713. }
  1714. b := dAtA[iNdEx]
  1715. iNdEx++
  1716. stringLen |= uint64(b&0x7F) << shift
  1717. if b < 0x80 {
  1718. break
  1719. }
  1720. }
  1721. intStringLen := int(stringLen)
  1722. if intStringLen < 0 {
  1723. return ErrInvalidLengthStructs
  1724. }
  1725. postIndex := iNdEx + intStringLen
  1726. if postIndex < 0 {
  1727. return ErrInvalidLengthStructs
  1728. }
  1729. if postIndex > l {
  1730. return io.ErrUnexpectedEOF
  1731. }
  1732. m.Name = string(dAtA[iNdEx:postIndex])
  1733. iNdEx = postIndex
  1734. case 2:
  1735. if wireType != 0 {
  1736. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1737. }
  1738. m.Type = 0
  1739. for shift := uint(0); ; shift += 7 {
  1740. if shift >= 64 {
  1741. return ErrIntOverflowStructs
  1742. }
  1743. if iNdEx >= l {
  1744. return io.ErrUnexpectedEOF
  1745. }
  1746. b := dAtA[iNdEx]
  1747. iNdEx++
  1748. m.Type |= protocol.FileInfoType(b&0x7F) << shift
  1749. if b < 0x80 {
  1750. break
  1751. }
  1752. }
  1753. case 3:
  1754. if wireType != 0 {
  1755. return fmt.Errorf("proto: wrong wireType = %d for field Size", wireType)
  1756. }
  1757. m.Size = 0
  1758. for shift := uint(0); ; shift += 7 {
  1759. if shift >= 64 {
  1760. return ErrIntOverflowStructs
  1761. }
  1762. if iNdEx >= l {
  1763. return io.ErrUnexpectedEOF
  1764. }
  1765. b := dAtA[iNdEx]
  1766. iNdEx++
  1767. m.Size |= int64(b&0x7F) << shift
  1768. if b < 0x80 {
  1769. break
  1770. }
  1771. }
  1772. case 4:
  1773. if wireType != 0 {
  1774. return fmt.Errorf("proto: wrong wireType = %d for field Permissions", wireType)
  1775. }
  1776. m.Permissions = 0
  1777. for shift := uint(0); ; shift += 7 {
  1778. if shift >= 64 {
  1779. return ErrIntOverflowStructs
  1780. }
  1781. if iNdEx >= l {
  1782. return io.ErrUnexpectedEOF
  1783. }
  1784. b := dAtA[iNdEx]
  1785. iNdEx++
  1786. m.Permissions |= uint32(b&0x7F) << shift
  1787. if b < 0x80 {
  1788. break
  1789. }
  1790. }
  1791. case 5:
  1792. if wireType != 0 {
  1793. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedS", wireType)
  1794. }
  1795. m.ModifiedS = 0
  1796. for shift := uint(0); ; shift += 7 {
  1797. if shift >= 64 {
  1798. return ErrIntOverflowStructs
  1799. }
  1800. if iNdEx >= l {
  1801. return io.ErrUnexpectedEOF
  1802. }
  1803. b := dAtA[iNdEx]
  1804. iNdEx++
  1805. m.ModifiedS |= int64(b&0x7F) << shift
  1806. if b < 0x80 {
  1807. break
  1808. }
  1809. }
  1810. case 6:
  1811. if wireType != 0 {
  1812. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  1813. }
  1814. var v int
  1815. for shift := uint(0); ; shift += 7 {
  1816. if shift >= 64 {
  1817. return ErrIntOverflowStructs
  1818. }
  1819. if iNdEx >= l {
  1820. return io.ErrUnexpectedEOF
  1821. }
  1822. b := dAtA[iNdEx]
  1823. iNdEx++
  1824. v |= int(b&0x7F) << shift
  1825. if b < 0x80 {
  1826. break
  1827. }
  1828. }
  1829. m.Deleted = bool(v != 0)
  1830. case 7:
  1831. if wireType != 0 {
  1832. return fmt.Errorf("proto: wrong wireType = %d for field RawInvalid", wireType)
  1833. }
  1834. var v int
  1835. for shift := uint(0); ; shift += 7 {
  1836. if shift >= 64 {
  1837. return ErrIntOverflowStructs
  1838. }
  1839. if iNdEx >= l {
  1840. return io.ErrUnexpectedEOF
  1841. }
  1842. b := dAtA[iNdEx]
  1843. iNdEx++
  1844. v |= int(b&0x7F) << shift
  1845. if b < 0x80 {
  1846. break
  1847. }
  1848. }
  1849. m.RawInvalid = bool(v != 0)
  1850. case 8:
  1851. if wireType != 0 {
  1852. return fmt.Errorf("proto: wrong wireType = %d for field NoPermissions", wireType)
  1853. }
  1854. var v int
  1855. for shift := uint(0); ; shift += 7 {
  1856. if shift >= 64 {
  1857. return ErrIntOverflowStructs
  1858. }
  1859. if iNdEx >= l {
  1860. return io.ErrUnexpectedEOF
  1861. }
  1862. b := dAtA[iNdEx]
  1863. iNdEx++
  1864. v |= int(b&0x7F) << shift
  1865. if b < 0x80 {
  1866. break
  1867. }
  1868. }
  1869. m.NoPermissions = bool(v != 0)
  1870. case 9:
  1871. if wireType != 2 {
  1872. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  1873. }
  1874. var msglen int
  1875. for shift := uint(0); ; shift += 7 {
  1876. if shift >= 64 {
  1877. return ErrIntOverflowStructs
  1878. }
  1879. if iNdEx >= l {
  1880. return io.ErrUnexpectedEOF
  1881. }
  1882. b := dAtA[iNdEx]
  1883. iNdEx++
  1884. msglen |= int(b&0x7F) << shift
  1885. if b < 0x80 {
  1886. break
  1887. }
  1888. }
  1889. if msglen < 0 {
  1890. return ErrInvalidLengthStructs
  1891. }
  1892. postIndex := iNdEx + msglen
  1893. if postIndex < 0 {
  1894. return ErrInvalidLengthStructs
  1895. }
  1896. if postIndex > l {
  1897. return io.ErrUnexpectedEOF
  1898. }
  1899. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1900. return err
  1901. }
  1902. iNdEx = postIndex
  1903. case 10:
  1904. if wireType != 0 {
  1905. return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  1906. }
  1907. m.Sequence = 0
  1908. for shift := uint(0); ; shift += 7 {
  1909. if shift >= 64 {
  1910. return ErrIntOverflowStructs
  1911. }
  1912. if iNdEx >= l {
  1913. return io.ErrUnexpectedEOF
  1914. }
  1915. b := dAtA[iNdEx]
  1916. iNdEx++
  1917. m.Sequence |= int64(b&0x7F) << shift
  1918. if b < 0x80 {
  1919. break
  1920. }
  1921. }
  1922. case 11:
  1923. if wireType != 0 {
  1924. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedNs", wireType)
  1925. }
  1926. m.ModifiedNs = 0
  1927. for shift := uint(0); ; shift += 7 {
  1928. if shift >= 64 {
  1929. return ErrIntOverflowStructs
  1930. }
  1931. if iNdEx >= l {
  1932. return io.ErrUnexpectedEOF
  1933. }
  1934. b := dAtA[iNdEx]
  1935. iNdEx++
  1936. m.ModifiedNs |= int(b&0x7F) << shift
  1937. if b < 0x80 {
  1938. break
  1939. }
  1940. }
  1941. case 12:
  1942. if wireType != 0 {
  1943. return fmt.Errorf("proto: wrong wireType = %d for field ModifiedBy", wireType)
  1944. }
  1945. m.ModifiedBy = 0
  1946. for shift := uint(0); ; shift += 7 {
  1947. if shift >= 64 {
  1948. return ErrIntOverflowStructs
  1949. }
  1950. if iNdEx >= l {
  1951. return io.ErrUnexpectedEOF
  1952. }
  1953. b := dAtA[iNdEx]
  1954. iNdEx++
  1955. m.ModifiedBy |= github_com_syncthing_syncthing_lib_protocol.ShortID(b&0x7F) << shift
  1956. if b < 0x80 {
  1957. break
  1958. }
  1959. }
  1960. case 13:
  1961. if wireType != 0 {
  1962. return fmt.Errorf("proto: wrong wireType = %d for field RawBlockSize", wireType)
  1963. }
  1964. m.RawBlockSize = 0
  1965. for shift := uint(0); ; shift += 7 {
  1966. if shift >= 64 {
  1967. return ErrIntOverflowStructs
  1968. }
  1969. if iNdEx >= l {
  1970. return io.ErrUnexpectedEOF
  1971. }
  1972. b := dAtA[iNdEx]
  1973. iNdEx++
  1974. m.RawBlockSize |= int(b&0x7F) << shift
  1975. if b < 0x80 {
  1976. break
  1977. }
  1978. }
  1979. case 17:
  1980. if wireType != 2 {
  1981. return fmt.Errorf("proto: wrong wireType = %d for field SymlinkTarget", wireType)
  1982. }
  1983. var stringLen uint64
  1984. for shift := uint(0); ; shift += 7 {
  1985. if shift >= 64 {
  1986. return ErrIntOverflowStructs
  1987. }
  1988. if iNdEx >= l {
  1989. return io.ErrUnexpectedEOF
  1990. }
  1991. b := dAtA[iNdEx]
  1992. iNdEx++
  1993. stringLen |= uint64(b&0x7F) << shift
  1994. if b < 0x80 {
  1995. break
  1996. }
  1997. }
  1998. intStringLen := int(stringLen)
  1999. if intStringLen < 0 {
  2000. return ErrInvalidLengthStructs
  2001. }
  2002. postIndex := iNdEx + intStringLen
  2003. if postIndex < 0 {
  2004. return ErrInvalidLengthStructs
  2005. }
  2006. if postIndex > l {
  2007. return io.ErrUnexpectedEOF
  2008. }
  2009. m.SymlinkTarget = string(dAtA[iNdEx:postIndex])
  2010. iNdEx = postIndex
  2011. case 18:
  2012. if wireType != 2 {
  2013. return fmt.Errorf("proto: wrong wireType = %d for field BlocksHash", wireType)
  2014. }
  2015. var byteLen int
  2016. for shift := uint(0); ; shift += 7 {
  2017. if shift >= 64 {
  2018. return ErrIntOverflowStructs
  2019. }
  2020. if iNdEx >= l {
  2021. return io.ErrUnexpectedEOF
  2022. }
  2023. b := dAtA[iNdEx]
  2024. iNdEx++
  2025. byteLen |= int(b&0x7F) << shift
  2026. if b < 0x80 {
  2027. break
  2028. }
  2029. }
  2030. if byteLen < 0 {
  2031. return ErrInvalidLengthStructs
  2032. }
  2033. postIndex := iNdEx + byteLen
  2034. if postIndex < 0 {
  2035. return ErrInvalidLengthStructs
  2036. }
  2037. if postIndex > l {
  2038. return io.ErrUnexpectedEOF
  2039. }
  2040. m.BlocksHash = append(m.BlocksHash[:0], dAtA[iNdEx:postIndex]...)
  2041. if m.BlocksHash == nil {
  2042. m.BlocksHash = []byte{}
  2043. }
  2044. iNdEx = postIndex
  2045. case 19:
  2046. if wireType != 2 {
  2047. return fmt.Errorf("proto: wrong wireType = %d for field Encrypted", wireType)
  2048. }
  2049. var byteLen int
  2050. for shift := uint(0); ; shift += 7 {
  2051. if shift >= 64 {
  2052. return ErrIntOverflowStructs
  2053. }
  2054. if iNdEx >= l {
  2055. return io.ErrUnexpectedEOF
  2056. }
  2057. b := dAtA[iNdEx]
  2058. iNdEx++
  2059. byteLen |= int(b&0x7F) << shift
  2060. if b < 0x80 {
  2061. break
  2062. }
  2063. }
  2064. if byteLen < 0 {
  2065. return ErrInvalidLengthStructs
  2066. }
  2067. postIndex := iNdEx + byteLen
  2068. if postIndex < 0 {
  2069. return ErrInvalidLengthStructs
  2070. }
  2071. if postIndex > l {
  2072. return io.ErrUnexpectedEOF
  2073. }
  2074. m.Encrypted = append(m.Encrypted[:0], dAtA[iNdEx:postIndex]...)
  2075. if m.Encrypted == nil {
  2076. m.Encrypted = []byte{}
  2077. }
  2078. iNdEx = postIndex
  2079. case 1000:
  2080. if wireType != 0 {
  2081. return fmt.Errorf("proto: wrong wireType = %d for field LocalFlags", wireType)
  2082. }
  2083. m.LocalFlags = 0
  2084. for shift := uint(0); ; shift += 7 {
  2085. if shift >= 64 {
  2086. return ErrIntOverflowStructs
  2087. }
  2088. if iNdEx >= l {
  2089. return io.ErrUnexpectedEOF
  2090. }
  2091. b := dAtA[iNdEx]
  2092. iNdEx++
  2093. m.LocalFlags |= uint32(b&0x7F) << shift
  2094. if b < 0x80 {
  2095. break
  2096. }
  2097. }
  2098. case 1001:
  2099. if wireType != 2 {
  2100. return fmt.Errorf("proto: wrong wireType = %d for field VersionHash", wireType)
  2101. }
  2102. var byteLen int
  2103. for shift := uint(0); ; shift += 7 {
  2104. if shift >= 64 {
  2105. return ErrIntOverflowStructs
  2106. }
  2107. if iNdEx >= l {
  2108. return io.ErrUnexpectedEOF
  2109. }
  2110. b := dAtA[iNdEx]
  2111. iNdEx++
  2112. byteLen |= int(b&0x7F) << shift
  2113. if b < 0x80 {
  2114. break
  2115. }
  2116. }
  2117. if byteLen < 0 {
  2118. return ErrInvalidLengthStructs
  2119. }
  2120. postIndex := iNdEx + byteLen
  2121. if postIndex < 0 {
  2122. return ErrInvalidLengthStructs
  2123. }
  2124. if postIndex > l {
  2125. return io.ErrUnexpectedEOF
  2126. }
  2127. m.VersionHash = append(m.VersionHash[:0], dAtA[iNdEx:postIndex]...)
  2128. if m.VersionHash == nil {
  2129. m.VersionHash = []byte{}
  2130. }
  2131. iNdEx = postIndex
  2132. default:
  2133. iNdEx = preIndex
  2134. skippy, err := skipStructs(dAtA[iNdEx:])
  2135. if err != nil {
  2136. return err
  2137. }
  2138. if skippy < 0 {
  2139. return ErrInvalidLengthStructs
  2140. }
  2141. if (iNdEx + skippy) < 0 {
  2142. return ErrInvalidLengthStructs
  2143. }
  2144. if (iNdEx + skippy) > l {
  2145. return io.ErrUnexpectedEOF
  2146. }
  2147. iNdEx += skippy
  2148. }
  2149. }
  2150. if iNdEx > l {
  2151. return io.ErrUnexpectedEOF
  2152. }
  2153. return nil
  2154. }
  2155. func (m *BlockList) Unmarshal(dAtA []byte) error {
  2156. l := len(dAtA)
  2157. iNdEx := 0
  2158. for iNdEx < l {
  2159. preIndex := iNdEx
  2160. var wire uint64
  2161. for shift := uint(0); ; shift += 7 {
  2162. if shift >= 64 {
  2163. return ErrIntOverflowStructs
  2164. }
  2165. if iNdEx >= l {
  2166. return io.ErrUnexpectedEOF
  2167. }
  2168. b := dAtA[iNdEx]
  2169. iNdEx++
  2170. wire |= uint64(b&0x7F) << shift
  2171. if b < 0x80 {
  2172. break
  2173. }
  2174. }
  2175. fieldNum := int32(wire >> 3)
  2176. wireType := int(wire & 0x7)
  2177. if wireType == 4 {
  2178. return fmt.Errorf("proto: BlockList: wiretype end group for non-group")
  2179. }
  2180. if fieldNum <= 0 {
  2181. return fmt.Errorf("proto: BlockList: illegal tag %d (wire type %d)", fieldNum, wire)
  2182. }
  2183. switch fieldNum {
  2184. case 1:
  2185. if wireType != 2 {
  2186. return fmt.Errorf("proto: wrong wireType = %d for field Blocks", wireType)
  2187. }
  2188. var msglen int
  2189. for shift := uint(0); ; shift += 7 {
  2190. if shift >= 64 {
  2191. return ErrIntOverflowStructs
  2192. }
  2193. if iNdEx >= l {
  2194. return io.ErrUnexpectedEOF
  2195. }
  2196. b := dAtA[iNdEx]
  2197. iNdEx++
  2198. msglen |= int(b&0x7F) << shift
  2199. if b < 0x80 {
  2200. break
  2201. }
  2202. }
  2203. if msglen < 0 {
  2204. return ErrInvalidLengthStructs
  2205. }
  2206. postIndex := iNdEx + msglen
  2207. if postIndex < 0 {
  2208. return ErrInvalidLengthStructs
  2209. }
  2210. if postIndex > l {
  2211. return io.ErrUnexpectedEOF
  2212. }
  2213. m.Blocks = append(m.Blocks, protocol.BlockInfo{})
  2214. if err := m.Blocks[len(m.Blocks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2215. return err
  2216. }
  2217. iNdEx = postIndex
  2218. default:
  2219. iNdEx = preIndex
  2220. skippy, err := skipStructs(dAtA[iNdEx:])
  2221. if err != nil {
  2222. return err
  2223. }
  2224. if skippy < 0 {
  2225. return ErrInvalidLengthStructs
  2226. }
  2227. if (iNdEx + skippy) < 0 {
  2228. return ErrInvalidLengthStructs
  2229. }
  2230. if (iNdEx + skippy) > l {
  2231. return io.ErrUnexpectedEOF
  2232. }
  2233. iNdEx += skippy
  2234. }
  2235. }
  2236. if iNdEx > l {
  2237. return io.ErrUnexpectedEOF
  2238. }
  2239. return nil
  2240. }
  2241. func (m *IndirectionHashesOnly) Unmarshal(dAtA []byte) error {
  2242. l := len(dAtA)
  2243. iNdEx := 0
  2244. for iNdEx < l {
  2245. preIndex := iNdEx
  2246. var wire uint64
  2247. for shift := uint(0); ; shift += 7 {
  2248. if shift >= 64 {
  2249. return ErrIntOverflowStructs
  2250. }
  2251. if iNdEx >= l {
  2252. return io.ErrUnexpectedEOF
  2253. }
  2254. b := dAtA[iNdEx]
  2255. iNdEx++
  2256. wire |= uint64(b&0x7F) << shift
  2257. if b < 0x80 {
  2258. break
  2259. }
  2260. }
  2261. fieldNum := int32(wire >> 3)
  2262. wireType := int(wire & 0x7)
  2263. if wireType == 4 {
  2264. return fmt.Errorf("proto: IndirectionHashesOnly: wiretype end group for non-group")
  2265. }
  2266. if fieldNum <= 0 {
  2267. return fmt.Errorf("proto: IndirectionHashesOnly: illegal tag %d (wire type %d)", fieldNum, wire)
  2268. }
  2269. switch fieldNum {
  2270. case 18:
  2271. if wireType != 2 {
  2272. return fmt.Errorf("proto: wrong wireType = %d for field BlocksHash", wireType)
  2273. }
  2274. var byteLen int
  2275. for shift := uint(0); ; shift += 7 {
  2276. if shift >= 64 {
  2277. return ErrIntOverflowStructs
  2278. }
  2279. if iNdEx >= l {
  2280. return io.ErrUnexpectedEOF
  2281. }
  2282. b := dAtA[iNdEx]
  2283. iNdEx++
  2284. byteLen |= int(b&0x7F) << shift
  2285. if b < 0x80 {
  2286. break
  2287. }
  2288. }
  2289. if byteLen < 0 {
  2290. return ErrInvalidLengthStructs
  2291. }
  2292. postIndex := iNdEx + byteLen
  2293. if postIndex < 0 {
  2294. return ErrInvalidLengthStructs
  2295. }
  2296. if postIndex > l {
  2297. return io.ErrUnexpectedEOF
  2298. }
  2299. m.BlocksHash = append(m.BlocksHash[:0], dAtA[iNdEx:postIndex]...)
  2300. if m.BlocksHash == nil {
  2301. m.BlocksHash = []byte{}
  2302. }
  2303. iNdEx = postIndex
  2304. case 1001:
  2305. if wireType != 2 {
  2306. return fmt.Errorf("proto: wrong wireType = %d for field VersionHash", wireType)
  2307. }
  2308. var byteLen int
  2309. for shift := uint(0); ; shift += 7 {
  2310. if shift >= 64 {
  2311. return ErrIntOverflowStructs
  2312. }
  2313. if iNdEx >= l {
  2314. return io.ErrUnexpectedEOF
  2315. }
  2316. b := dAtA[iNdEx]
  2317. iNdEx++
  2318. byteLen |= int(b&0x7F) << shift
  2319. if b < 0x80 {
  2320. break
  2321. }
  2322. }
  2323. if byteLen < 0 {
  2324. return ErrInvalidLengthStructs
  2325. }
  2326. postIndex := iNdEx + byteLen
  2327. if postIndex < 0 {
  2328. return ErrInvalidLengthStructs
  2329. }
  2330. if postIndex > l {
  2331. return io.ErrUnexpectedEOF
  2332. }
  2333. m.VersionHash = append(m.VersionHash[:0], dAtA[iNdEx:postIndex]...)
  2334. if m.VersionHash == nil {
  2335. m.VersionHash = []byte{}
  2336. }
  2337. iNdEx = postIndex
  2338. default:
  2339. iNdEx = preIndex
  2340. skippy, err := skipStructs(dAtA[iNdEx:])
  2341. if err != nil {
  2342. return err
  2343. }
  2344. if skippy < 0 {
  2345. return ErrInvalidLengthStructs
  2346. }
  2347. if (iNdEx + skippy) < 0 {
  2348. return ErrInvalidLengthStructs
  2349. }
  2350. if (iNdEx + skippy) > l {
  2351. return io.ErrUnexpectedEOF
  2352. }
  2353. iNdEx += skippy
  2354. }
  2355. }
  2356. if iNdEx > l {
  2357. return io.ErrUnexpectedEOF
  2358. }
  2359. return nil
  2360. }
  2361. func (m *Counts) Unmarshal(dAtA []byte) error {
  2362. l := len(dAtA)
  2363. iNdEx := 0
  2364. for iNdEx < l {
  2365. preIndex := iNdEx
  2366. var wire uint64
  2367. for shift := uint(0); ; shift += 7 {
  2368. if shift >= 64 {
  2369. return ErrIntOverflowStructs
  2370. }
  2371. if iNdEx >= l {
  2372. return io.ErrUnexpectedEOF
  2373. }
  2374. b := dAtA[iNdEx]
  2375. iNdEx++
  2376. wire |= uint64(b&0x7F) << shift
  2377. if b < 0x80 {
  2378. break
  2379. }
  2380. }
  2381. fieldNum := int32(wire >> 3)
  2382. wireType := int(wire & 0x7)
  2383. if wireType == 4 {
  2384. return fmt.Errorf("proto: Counts: wiretype end group for non-group")
  2385. }
  2386. if fieldNum <= 0 {
  2387. return fmt.Errorf("proto: Counts: illegal tag %d (wire type %d)", fieldNum, wire)
  2388. }
  2389. switch fieldNum {
  2390. case 1:
  2391. if wireType != 0 {
  2392. return fmt.Errorf("proto: wrong wireType = %d for field Files", wireType)
  2393. }
  2394. m.Files = 0
  2395. for shift := uint(0); ; shift += 7 {
  2396. if shift >= 64 {
  2397. return ErrIntOverflowStructs
  2398. }
  2399. if iNdEx >= l {
  2400. return io.ErrUnexpectedEOF
  2401. }
  2402. b := dAtA[iNdEx]
  2403. iNdEx++
  2404. m.Files |= int(b&0x7F) << shift
  2405. if b < 0x80 {
  2406. break
  2407. }
  2408. }
  2409. case 2:
  2410. if wireType != 0 {
  2411. return fmt.Errorf("proto: wrong wireType = %d for field Directories", wireType)
  2412. }
  2413. m.Directories = 0
  2414. for shift := uint(0); ; shift += 7 {
  2415. if shift >= 64 {
  2416. return ErrIntOverflowStructs
  2417. }
  2418. if iNdEx >= l {
  2419. return io.ErrUnexpectedEOF
  2420. }
  2421. b := dAtA[iNdEx]
  2422. iNdEx++
  2423. m.Directories |= int(b&0x7F) << shift
  2424. if b < 0x80 {
  2425. break
  2426. }
  2427. }
  2428. case 3:
  2429. if wireType != 0 {
  2430. return fmt.Errorf("proto: wrong wireType = %d for field Symlinks", wireType)
  2431. }
  2432. m.Symlinks = 0
  2433. for shift := uint(0); ; shift += 7 {
  2434. if shift >= 64 {
  2435. return ErrIntOverflowStructs
  2436. }
  2437. if iNdEx >= l {
  2438. return io.ErrUnexpectedEOF
  2439. }
  2440. b := dAtA[iNdEx]
  2441. iNdEx++
  2442. m.Symlinks |= int(b&0x7F) << shift
  2443. if b < 0x80 {
  2444. break
  2445. }
  2446. }
  2447. case 4:
  2448. if wireType != 0 {
  2449. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  2450. }
  2451. m.Deleted = 0
  2452. for shift := uint(0); ; shift += 7 {
  2453. if shift >= 64 {
  2454. return ErrIntOverflowStructs
  2455. }
  2456. if iNdEx >= l {
  2457. return io.ErrUnexpectedEOF
  2458. }
  2459. b := dAtA[iNdEx]
  2460. iNdEx++
  2461. m.Deleted |= int(b&0x7F) << shift
  2462. if b < 0x80 {
  2463. break
  2464. }
  2465. }
  2466. case 5:
  2467. if wireType != 0 {
  2468. return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType)
  2469. }
  2470. m.Bytes = 0
  2471. for shift := uint(0); ; shift += 7 {
  2472. if shift >= 64 {
  2473. return ErrIntOverflowStructs
  2474. }
  2475. if iNdEx >= l {
  2476. return io.ErrUnexpectedEOF
  2477. }
  2478. b := dAtA[iNdEx]
  2479. iNdEx++
  2480. m.Bytes |= int64(b&0x7F) << shift
  2481. if b < 0x80 {
  2482. break
  2483. }
  2484. }
  2485. case 6:
  2486. if wireType != 0 {
  2487. return fmt.Errorf("proto: wrong wireType = %d for field Sequence", wireType)
  2488. }
  2489. m.Sequence = 0
  2490. for shift := uint(0); ; shift += 7 {
  2491. if shift >= 64 {
  2492. return ErrIntOverflowStructs
  2493. }
  2494. if iNdEx >= l {
  2495. return io.ErrUnexpectedEOF
  2496. }
  2497. b := dAtA[iNdEx]
  2498. iNdEx++
  2499. m.Sequence |= int64(b&0x7F) << shift
  2500. if b < 0x80 {
  2501. break
  2502. }
  2503. }
  2504. case 17:
  2505. if wireType != 2 {
  2506. return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType)
  2507. }
  2508. var byteLen int
  2509. for shift := uint(0); ; shift += 7 {
  2510. if shift >= 64 {
  2511. return ErrIntOverflowStructs
  2512. }
  2513. if iNdEx >= l {
  2514. return io.ErrUnexpectedEOF
  2515. }
  2516. b := dAtA[iNdEx]
  2517. iNdEx++
  2518. byteLen |= int(b&0x7F) << shift
  2519. if b < 0x80 {
  2520. break
  2521. }
  2522. }
  2523. if byteLen < 0 {
  2524. return ErrInvalidLengthStructs
  2525. }
  2526. postIndex := iNdEx + byteLen
  2527. if postIndex < 0 {
  2528. return ErrInvalidLengthStructs
  2529. }
  2530. if postIndex > l {
  2531. return io.ErrUnexpectedEOF
  2532. }
  2533. m.DeviceID = append(m.DeviceID[:0], dAtA[iNdEx:postIndex]...)
  2534. if m.DeviceID == nil {
  2535. m.DeviceID = []byte{}
  2536. }
  2537. iNdEx = postIndex
  2538. case 18:
  2539. if wireType != 0 {
  2540. return fmt.Errorf("proto: wrong wireType = %d for field LocalFlags", wireType)
  2541. }
  2542. m.LocalFlags = 0
  2543. for shift := uint(0); ; shift += 7 {
  2544. if shift >= 64 {
  2545. return ErrIntOverflowStructs
  2546. }
  2547. if iNdEx >= l {
  2548. return io.ErrUnexpectedEOF
  2549. }
  2550. b := dAtA[iNdEx]
  2551. iNdEx++
  2552. m.LocalFlags |= uint32(b&0x7F) << shift
  2553. if b < 0x80 {
  2554. break
  2555. }
  2556. }
  2557. default:
  2558. iNdEx = preIndex
  2559. skippy, err := skipStructs(dAtA[iNdEx:])
  2560. if err != nil {
  2561. return err
  2562. }
  2563. if skippy < 0 {
  2564. return ErrInvalidLengthStructs
  2565. }
  2566. if (iNdEx + skippy) < 0 {
  2567. return ErrInvalidLengthStructs
  2568. }
  2569. if (iNdEx + skippy) > l {
  2570. return io.ErrUnexpectedEOF
  2571. }
  2572. iNdEx += skippy
  2573. }
  2574. }
  2575. if iNdEx > l {
  2576. return io.ErrUnexpectedEOF
  2577. }
  2578. return nil
  2579. }
  2580. func (m *CountsSet) Unmarshal(dAtA []byte) error {
  2581. l := len(dAtA)
  2582. iNdEx := 0
  2583. for iNdEx < l {
  2584. preIndex := iNdEx
  2585. var wire uint64
  2586. for shift := uint(0); ; shift += 7 {
  2587. if shift >= 64 {
  2588. return ErrIntOverflowStructs
  2589. }
  2590. if iNdEx >= l {
  2591. return io.ErrUnexpectedEOF
  2592. }
  2593. b := dAtA[iNdEx]
  2594. iNdEx++
  2595. wire |= uint64(b&0x7F) << shift
  2596. if b < 0x80 {
  2597. break
  2598. }
  2599. }
  2600. fieldNum := int32(wire >> 3)
  2601. wireType := int(wire & 0x7)
  2602. if wireType == 4 {
  2603. return fmt.Errorf("proto: CountsSet: wiretype end group for non-group")
  2604. }
  2605. if fieldNum <= 0 {
  2606. return fmt.Errorf("proto: CountsSet: illegal tag %d (wire type %d)", fieldNum, wire)
  2607. }
  2608. switch fieldNum {
  2609. case 1:
  2610. if wireType != 2 {
  2611. return fmt.Errorf("proto: wrong wireType = %d for field Counts", wireType)
  2612. }
  2613. var msglen int
  2614. for shift := uint(0); ; shift += 7 {
  2615. if shift >= 64 {
  2616. return ErrIntOverflowStructs
  2617. }
  2618. if iNdEx >= l {
  2619. return io.ErrUnexpectedEOF
  2620. }
  2621. b := dAtA[iNdEx]
  2622. iNdEx++
  2623. msglen |= int(b&0x7F) << shift
  2624. if b < 0x80 {
  2625. break
  2626. }
  2627. }
  2628. if msglen < 0 {
  2629. return ErrInvalidLengthStructs
  2630. }
  2631. postIndex := iNdEx + msglen
  2632. if postIndex < 0 {
  2633. return ErrInvalidLengthStructs
  2634. }
  2635. if postIndex > l {
  2636. return io.ErrUnexpectedEOF
  2637. }
  2638. m.Counts = append(m.Counts, Counts{})
  2639. if err := m.Counts[len(m.Counts)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2640. return err
  2641. }
  2642. iNdEx = postIndex
  2643. case 2:
  2644. if wireType != 0 {
  2645. return fmt.Errorf("proto: wrong wireType = %d for field Created", wireType)
  2646. }
  2647. m.Created = 0
  2648. for shift := uint(0); ; shift += 7 {
  2649. if shift >= 64 {
  2650. return ErrIntOverflowStructs
  2651. }
  2652. if iNdEx >= l {
  2653. return io.ErrUnexpectedEOF
  2654. }
  2655. b := dAtA[iNdEx]
  2656. iNdEx++
  2657. m.Created |= int64(b&0x7F) << shift
  2658. if b < 0x80 {
  2659. break
  2660. }
  2661. }
  2662. default:
  2663. iNdEx = preIndex
  2664. skippy, err := skipStructs(dAtA[iNdEx:])
  2665. if err != nil {
  2666. return err
  2667. }
  2668. if skippy < 0 {
  2669. return ErrInvalidLengthStructs
  2670. }
  2671. if (iNdEx + skippy) < 0 {
  2672. return ErrInvalidLengthStructs
  2673. }
  2674. if (iNdEx + skippy) > l {
  2675. return io.ErrUnexpectedEOF
  2676. }
  2677. iNdEx += skippy
  2678. }
  2679. }
  2680. if iNdEx > l {
  2681. return io.ErrUnexpectedEOF
  2682. }
  2683. return nil
  2684. }
  2685. func (m *FileVersionDeprecated) Unmarshal(dAtA []byte) error {
  2686. l := len(dAtA)
  2687. iNdEx := 0
  2688. for iNdEx < l {
  2689. preIndex := iNdEx
  2690. var wire uint64
  2691. for shift := uint(0); ; shift += 7 {
  2692. if shift >= 64 {
  2693. return ErrIntOverflowStructs
  2694. }
  2695. if iNdEx >= l {
  2696. return io.ErrUnexpectedEOF
  2697. }
  2698. b := dAtA[iNdEx]
  2699. iNdEx++
  2700. wire |= uint64(b&0x7F) << shift
  2701. if b < 0x80 {
  2702. break
  2703. }
  2704. }
  2705. fieldNum := int32(wire >> 3)
  2706. wireType := int(wire & 0x7)
  2707. if wireType == 4 {
  2708. return fmt.Errorf("proto: FileVersionDeprecated: wiretype end group for non-group")
  2709. }
  2710. if fieldNum <= 0 {
  2711. return fmt.Errorf("proto: FileVersionDeprecated: illegal tag %d (wire type %d)", fieldNum, wire)
  2712. }
  2713. switch fieldNum {
  2714. case 1:
  2715. if wireType != 2 {
  2716. return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  2717. }
  2718. var msglen int
  2719. for shift := uint(0); ; shift += 7 {
  2720. if shift >= 64 {
  2721. return ErrIntOverflowStructs
  2722. }
  2723. if iNdEx >= l {
  2724. return io.ErrUnexpectedEOF
  2725. }
  2726. b := dAtA[iNdEx]
  2727. iNdEx++
  2728. msglen |= int(b&0x7F) << shift
  2729. if b < 0x80 {
  2730. break
  2731. }
  2732. }
  2733. if msglen < 0 {
  2734. return ErrInvalidLengthStructs
  2735. }
  2736. postIndex := iNdEx + msglen
  2737. if postIndex < 0 {
  2738. return ErrInvalidLengthStructs
  2739. }
  2740. if postIndex > l {
  2741. return io.ErrUnexpectedEOF
  2742. }
  2743. if err := m.Version.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2744. return err
  2745. }
  2746. iNdEx = postIndex
  2747. case 2:
  2748. if wireType != 2 {
  2749. return fmt.Errorf("proto: wrong wireType = %d for field Device", wireType)
  2750. }
  2751. var byteLen int
  2752. for shift := uint(0); ; shift += 7 {
  2753. if shift >= 64 {
  2754. return ErrIntOverflowStructs
  2755. }
  2756. if iNdEx >= l {
  2757. return io.ErrUnexpectedEOF
  2758. }
  2759. b := dAtA[iNdEx]
  2760. iNdEx++
  2761. byteLen |= int(b&0x7F) << shift
  2762. if b < 0x80 {
  2763. break
  2764. }
  2765. }
  2766. if byteLen < 0 {
  2767. return ErrInvalidLengthStructs
  2768. }
  2769. postIndex := iNdEx + byteLen
  2770. if postIndex < 0 {
  2771. return ErrInvalidLengthStructs
  2772. }
  2773. if postIndex > l {
  2774. return io.ErrUnexpectedEOF
  2775. }
  2776. m.Device = append(m.Device[:0], dAtA[iNdEx:postIndex]...)
  2777. if m.Device == nil {
  2778. m.Device = []byte{}
  2779. }
  2780. iNdEx = postIndex
  2781. case 3:
  2782. if wireType != 0 {
  2783. return fmt.Errorf("proto: wrong wireType = %d for field Invalid", wireType)
  2784. }
  2785. var v int
  2786. for shift := uint(0); ; shift += 7 {
  2787. if shift >= 64 {
  2788. return ErrIntOverflowStructs
  2789. }
  2790. if iNdEx >= l {
  2791. return io.ErrUnexpectedEOF
  2792. }
  2793. b := dAtA[iNdEx]
  2794. iNdEx++
  2795. v |= int(b&0x7F) << shift
  2796. if b < 0x80 {
  2797. break
  2798. }
  2799. }
  2800. m.Invalid = bool(v != 0)
  2801. case 4:
  2802. if wireType != 0 {
  2803. return fmt.Errorf("proto: wrong wireType = %d for field Deleted", wireType)
  2804. }
  2805. var v int
  2806. for shift := uint(0); ; shift += 7 {
  2807. if shift >= 64 {
  2808. return ErrIntOverflowStructs
  2809. }
  2810. if iNdEx >= l {
  2811. return io.ErrUnexpectedEOF
  2812. }
  2813. b := dAtA[iNdEx]
  2814. iNdEx++
  2815. v |= int(b&0x7F) << shift
  2816. if b < 0x80 {
  2817. break
  2818. }
  2819. }
  2820. m.Deleted = bool(v != 0)
  2821. default:
  2822. iNdEx = preIndex
  2823. skippy, err := skipStructs(dAtA[iNdEx:])
  2824. if err != nil {
  2825. return err
  2826. }
  2827. if skippy < 0 {
  2828. return ErrInvalidLengthStructs
  2829. }
  2830. if (iNdEx + skippy) < 0 {
  2831. return ErrInvalidLengthStructs
  2832. }
  2833. if (iNdEx + skippy) > l {
  2834. return io.ErrUnexpectedEOF
  2835. }
  2836. iNdEx += skippy
  2837. }
  2838. }
  2839. if iNdEx > l {
  2840. return io.ErrUnexpectedEOF
  2841. }
  2842. return nil
  2843. }
  2844. func (m *VersionListDeprecated) Unmarshal(dAtA []byte) error {
  2845. l := len(dAtA)
  2846. iNdEx := 0
  2847. for iNdEx < l {
  2848. preIndex := iNdEx
  2849. var wire uint64
  2850. for shift := uint(0); ; shift += 7 {
  2851. if shift >= 64 {
  2852. return ErrIntOverflowStructs
  2853. }
  2854. if iNdEx >= l {
  2855. return io.ErrUnexpectedEOF
  2856. }
  2857. b := dAtA[iNdEx]
  2858. iNdEx++
  2859. wire |= uint64(b&0x7F) << shift
  2860. if b < 0x80 {
  2861. break
  2862. }
  2863. }
  2864. fieldNum := int32(wire >> 3)
  2865. wireType := int(wire & 0x7)
  2866. if wireType == 4 {
  2867. return fmt.Errorf("proto: VersionListDeprecated: wiretype end group for non-group")
  2868. }
  2869. if fieldNum <= 0 {
  2870. return fmt.Errorf("proto: VersionListDeprecated: illegal tag %d (wire type %d)", fieldNum, wire)
  2871. }
  2872. switch fieldNum {
  2873. case 1:
  2874. if wireType != 2 {
  2875. return fmt.Errorf("proto: wrong wireType = %d for field Versions", wireType)
  2876. }
  2877. var msglen int
  2878. for shift := uint(0); ; shift += 7 {
  2879. if shift >= 64 {
  2880. return ErrIntOverflowStructs
  2881. }
  2882. if iNdEx >= l {
  2883. return io.ErrUnexpectedEOF
  2884. }
  2885. b := dAtA[iNdEx]
  2886. iNdEx++
  2887. msglen |= int(b&0x7F) << shift
  2888. if b < 0x80 {
  2889. break
  2890. }
  2891. }
  2892. if msglen < 0 {
  2893. return ErrInvalidLengthStructs
  2894. }
  2895. postIndex := iNdEx + msglen
  2896. if postIndex < 0 {
  2897. return ErrInvalidLengthStructs
  2898. }
  2899. if postIndex > l {
  2900. return io.ErrUnexpectedEOF
  2901. }
  2902. m.Versions = append(m.Versions, FileVersionDeprecated{})
  2903. if err := m.Versions[len(m.Versions)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2904. return err
  2905. }
  2906. iNdEx = postIndex
  2907. default:
  2908. iNdEx = preIndex
  2909. skippy, err := skipStructs(dAtA[iNdEx:])
  2910. if err != nil {
  2911. return err
  2912. }
  2913. if skippy < 0 {
  2914. return ErrInvalidLengthStructs
  2915. }
  2916. if (iNdEx + skippy) < 0 {
  2917. return ErrInvalidLengthStructs
  2918. }
  2919. if (iNdEx + skippy) > l {
  2920. return io.ErrUnexpectedEOF
  2921. }
  2922. iNdEx += skippy
  2923. }
  2924. }
  2925. if iNdEx > l {
  2926. return io.ErrUnexpectedEOF
  2927. }
  2928. return nil
  2929. }
  2930. func (m *ObservedFolder) Unmarshal(dAtA []byte) error {
  2931. l := len(dAtA)
  2932. iNdEx := 0
  2933. for iNdEx < l {
  2934. preIndex := iNdEx
  2935. var wire uint64
  2936. for shift := uint(0); ; shift += 7 {
  2937. if shift >= 64 {
  2938. return ErrIntOverflowStructs
  2939. }
  2940. if iNdEx >= l {
  2941. return io.ErrUnexpectedEOF
  2942. }
  2943. b := dAtA[iNdEx]
  2944. iNdEx++
  2945. wire |= uint64(b&0x7F) << shift
  2946. if b < 0x80 {
  2947. break
  2948. }
  2949. }
  2950. fieldNum := int32(wire >> 3)
  2951. wireType := int(wire & 0x7)
  2952. if wireType == 4 {
  2953. return fmt.Errorf("proto: ObservedFolder: wiretype end group for non-group")
  2954. }
  2955. if fieldNum <= 0 {
  2956. return fmt.Errorf("proto: ObservedFolder: illegal tag %d (wire type %d)", fieldNum, wire)
  2957. }
  2958. switch fieldNum {
  2959. case 1:
  2960. if wireType != 2 {
  2961. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  2962. }
  2963. var msglen int
  2964. for shift := uint(0); ; shift += 7 {
  2965. if shift >= 64 {
  2966. return ErrIntOverflowStructs
  2967. }
  2968. if iNdEx >= l {
  2969. return io.ErrUnexpectedEOF
  2970. }
  2971. b := dAtA[iNdEx]
  2972. iNdEx++
  2973. msglen |= int(b&0x7F) << shift
  2974. if b < 0x80 {
  2975. break
  2976. }
  2977. }
  2978. if msglen < 0 {
  2979. return ErrInvalidLengthStructs
  2980. }
  2981. postIndex := iNdEx + msglen
  2982. if postIndex < 0 {
  2983. return ErrInvalidLengthStructs
  2984. }
  2985. if postIndex > l {
  2986. return io.ErrUnexpectedEOF
  2987. }
  2988. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  2989. return err
  2990. }
  2991. iNdEx = postIndex
  2992. case 2:
  2993. if wireType != 2 {
  2994. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  2995. }
  2996. var stringLen uint64
  2997. for shift := uint(0); ; shift += 7 {
  2998. if shift >= 64 {
  2999. return ErrIntOverflowStructs
  3000. }
  3001. if iNdEx >= l {
  3002. return io.ErrUnexpectedEOF
  3003. }
  3004. b := dAtA[iNdEx]
  3005. iNdEx++
  3006. stringLen |= uint64(b&0x7F) << shift
  3007. if b < 0x80 {
  3008. break
  3009. }
  3010. }
  3011. intStringLen := int(stringLen)
  3012. if intStringLen < 0 {
  3013. return ErrInvalidLengthStructs
  3014. }
  3015. postIndex := iNdEx + intStringLen
  3016. if postIndex < 0 {
  3017. return ErrInvalidLengthStructs
  3018. }
  3019. if postIndex > l {
  3020. return io.ErrUnexpectedEOF
  3021. }
  3022. m.Label = string(dAtA[iNdEx:postIndex])
  3023. iNdEx = postIndex
  3024. case 3:
  3025. if wireType != 0 {
  3026. return fmt.Errorf("proto: wrong wireType = %d for field ReceiveEncrypted", wireType)
  3027. }
  3028. var v int
  3029. for shift := uint(0); ; shift += 7 {
  3030. if shift >= 64 {
  3031. return ErrIntOverflowStructs
  3032. }
  3033. if iNdEx >= l {
  3034. return io.ErrUnexpectedEOF
  3035. }
  3036. b := dAtA[iNdEx]
  3037. iNdEx++
  3038. v |= int(b&0x7F) << shift
  3039. if b < 0x80 {
  3040. break
  3041. }
  3042. }
  3043. m.ReceiveEncrypted = bool(v != 0)
  3044. default:
  3045. iNdEx = preIndex
  3046. skippy, err := skipStructs(dAtA[iNdEx:])
  3047. if err != nil {
  3048. return err
  3049. }
  3050. if skippy < 0 {
  3051. return ErrInvalidLengthStructs
  3052. }
  3053. if (iNdEx + skippy) < 0 {
  3054. return ErrInvalidLengthStructs
  3055. }
  3056. if (iNdEx + skippy) > l {
  3057. return io.ErrUnexpectedEOF
  3058. }
  3059. iNdEx += skippy
  3060. }
  3061. }
  3062. if iNdEx > l {
  3063. return io.ErrUnexpectedEOF
  3064. }
  3065. return nil
  3066. }
  3067. func (m *ObservedDevice) Unmarshal(dAtA []byte) error {
  3068. l := len(dAtA)
  3069. iNdEx := 0
  3070. for iNdEx < l {
  3071. preIndex := iNdEx
  3072. var wire uint64
  3073. for shift := uint(0); ; shift += 7 {
  3074. if shift >= 64 {
  3075. return ErrIntOverflowStructs
  3076. }
  3077. if iNdEx >= l {
  3078. return io.ErrUnexpectedEOF
  3079. }
  3080. b := dAtA[iNdEx]
  3081. iNdEx++
  3082. wire |= uint64(b&0x7F) << shift
  3083. if b < 0x80 {
  3084. break
  3085. }
  3086. }
  3087. fieldNum := int32(wire >> 3)
  3088. wireType := int(wire & 0x7)
  3089. if wireType == 4 {
  3090. return fmt.Errorf("proto: ObservedDevice: wiretype end group for non-group")
  3091. }
  3092. if fieldNum <= 0 {
  3093. return fmt.Errorf("proto: ObservedDevice: illegal tag %d (wire type %d)", fieldNum, wire)
  3094. }
  3095. switch fieldNum {
  3096. case 1:
  3097. if wireType != 2 {
  3098. return fmt.Errorf("proto: wrong wireType = %d for field Time", wireType)
  3099. }
  3100. var msglen int
  3101. for shift := uint(0); ; shift += 7 {
  3102. if shift >= 64 {
  3103. return ErrIntOverflowStructs
  3104. }
  3105. if iNdEx >= l {
  3106. return io.ErrUnexpectedEOF
  3107. }
  3108. b := dAtA[iNdEx]
  3109. iNdEx++
  3110. msglen |= int(b&0x7F) << shift
  3111. if b < 0x80 {
  3112. break
  3113. }
  3114. }
  3115. if msglen < 0 {
  3116. return ErrInvalidLengthStructs
  3117. }
  3118. postIndex := iNdEx + msglen
  3119. if postIndex < 0 {
  3120. return ErrInvalidLengthStructs
  3121. }
  3122. if postIndex > l {
  3123. return io.ErrUnexpectedEOF
  3124. }
  3125. if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Time, dAtA[iNdEx:postIndex]); err != nil {
  3126. return err
  3127. }
  3128. iNdEx = postIndex
  3129. case 2:
  3130. if wireType != 2 {
  3131. return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  3132. }
  3133. var stringLen uint64
  3134. for shift := uint(0); ; shift += 7 {
  3135. if shift >= 64 {
  3136. return ErrIntOverflowStructs
  3137. }
  3138. if iNdEx >= l {
  3139. return io.ErrUnexpectedEOF
  3140. }
  3141. b := dAtA[iNdEx]
  3142. iNdEx++
  3143. stringLen |= uint64(b&0x7F) << shift
  3144. if b < 0x80 {
  3145. break
  3146. }
  3147. }
  3148. intStringLen := int(stringLen)
  3149. if intStringLen < 0 {
  3150. return ErrInvalidLengthStructs
  3151. }
  3152. postIndex := iNdEx + intStringLen
  3153. if postIndex < 0 {
  3154. return ErrInvalidLengthStructs
  3155. }
  3156. if postIndex > l {
  3157. return io.ErrUnexpectedEOF
  3158. }
  3159. m.Name = string(dAtA[iNdEx:postIndex])
  3160. iNdEx = postIndex
  3161. case 3:
  3162. if wireType != 2 {
  3163. return fmt.Errorf("proto: wrong wireType = %d for field Address", wireType)
  3164. }
  3165. var stringLen uint64
  3166. for shift := uint(0); ; shift += 7 {
  3167. if shift >= 64 {
  3168. return ErrIntOverflowStructs
  3169. }
  3170. if iNdEx >= l {
  3171. return io.ErrUnexpectedEOF
  3172. }
  3173. b := dAtA[iNdEx]
  3174. iNdEx++
  3175. stringLen |= uint64(b&0x7F) << shift
  3176. if b < 0x80 {
  3177. break
  3178. }
  3179. }
  3180. intStringLen := int(stringLen)
  3181. if intStringLen < 0 {
  3182. return ErrInvalidLengthStructs
  3183. }
  3184. postIndex := iNdEx + intStringLen
  3185. if postIndex < 0 {
  3186. return ErrInvalidLengthStructs
  3187. }
  3188. if postIndex > l {
  3189. return io.ErrUnexpectedEOF
  3190. }
  3191. m.Address = string(dAtA[iNdEx:postIndex])
  3192. iNdEx = postIndex
  3193. default:
  3194. iNdEx = preIndex
  3195. skippy, err := skipStructs(dAtA[iNdEx:])
  3196. if err != nil {
  3197. return err
  3198. }
  3199. if skippy < 0 {
  3200. return ErrInvalidLengthStructs
  3201. }
  3202. if (iNdEx + skippy) < 0 {
  3203. return ErrInvalidLengthStructs
  3204. }
  3205. if (iNdEx + skippy) > l {
  3206. return io.ErrUnexpectedEOF
  3207. }
  3208. iNdEx += skippy
  3209. }
  3210. }
  3211. if iNdEx > l {
  3212. return io.ErrUnexpectedEOF
  3213. }
  3214. return nil
  3215. }
  3216. func skipStructs(dAtA []byte) (n int, err error) {
  3217. l := len(dAtA)
  3218. iNdEx := 0
  3219. depth := 0
  3220. for iNdEx < l {
  3221. var wire uint64
  3222. for shift := uint(0); ; shift += 7 {
  3223. if shift >= 64 {
  3224. return 0, ErrIntOverflowStructs
  3225. }
  3226. if iNdEx >= l {
  3227. return 0, io.ErrUnexpectedEOF
  3228. }
  3229. b := dAtA[iNdEx]
  3230. iNdEx++
  3231. wire |= (uint64(b) & 0x7F) << shift
  3232. if b < 0x80 {
  3233. break
  3234. }
  3235. }
  3236. wireType := int(wire & 0x7)
  3237. switch wireType {
  3238. case 0:
  3239. for shift := uint(0); ; shift += 7 {
  3240. if shift >= 64 {
  3241. return 0, ErrIntOverflowStructs
  3242. }
  3243. if iNdEx >= l {
  3244. return 0, io.ErrUnexpectedEOF
  3245. }
  3246. iNdEx++
  3247. if dAtA[iNdEx-1] < 0x80 {
  3248. break
  3249. }
  3250. }
  3251. case 1:
  3252. iNdEx += 8
  3253. case 2:
  3254. var length int
  3255. for shift := uint(0); ; shift += 7 {
  3256. if shift >= 64 {
  3257. return 0, ErrIntOverflowStructs
  3258. }
  3259. if iNdEx >= l {
  3260. return 0, io.ErrUnexpectedEOF
  3261. }
  3262. b := dAtA[iNdEx]
  3263. iNdEx++
  3264. length |= (int(b) & 0x7F) << shift
  3265. if b < 0x80 {
  3266. break
  3267. }
  3268. }
  3269. if length < 0 {
  3270. return 0, ErrInvalidLengthStructs
  3271. }
  3272. iNdEx += length
  3273. case 3:
  3274. depth++
  3275. case 4:
  3276. if depth == 0 {
  3277. return 0, ErrUnexpectedEndOfGroupStructs
  3278. }
  3279. depth--
  3280. case 5:
  3281. iNdEx += 4
  3282. default:
  3283. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  3284. }
  3285. if iNdEx < 0 {
  3286. return 0, ErrInvalidLengthStructs
  3287. }
  3288. if depth == 0 {
  3289. return iNdEx, nil
  3290. }
  3291. }
  3292. return 0, io.ErrUnexpectedEOF
  3293. }
  3294. var (
  3295. ErrInvalidLengthStructs = fmt.Errorf("proto: negative length found during unmarshaling")
  3296. ErrIntOverflowStructs = fmt.Errorf("proto: integer overflow")
  3297. ErrUnexpectedEndOfGroupStructs = fmt.Errorf("proto: unexpected end of group")
  3298. )