structs.pb.go 85 KB

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