folderconfiguration.pb.go 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/folderconfiguration.proto
  3. package config
  4. import (
  5. encoding_binary "encoding/binary"
  6. fmt "fmt"
  7. proto "github.com/gogo/protobuf/proto"
  8. fs "github.com/syncthing/syncthing/lib/fs"
  9. github_com_syncthing_syncthing_lib_protocol "github.com/syncthing/syncthing/lib/protocol"
  10. _ "github.com/syncthing/syncthing/proto/ext"
  11. io "io"
  12. math "math"
  13. math_bits "math/bits"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // This is a compile-time assertion to ensure that this generated file
  20. // is compatible with the proto package it is being compiled against.
  21. // A compilation error at this line likely means your copy of the
  22. // proto package needs to be updated.
  23. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  24. type FolderDeviceConfiguration struct {
  25. DeviceID github_com_syncthing_syncthing_lib_protocol.DeviceID `protobuf:"bytes,1,opt,name=device_id,json=deviceId,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.DeviceID" json:"deviceID" xml:"id,attr"`
  26. IntroducedBy github_com_syncthing_syncthing_lib_protocol.DeviceID `protobuf:"bytes,2,opt,name=introduced_by,json=introducedBy,proto3,customtype=github.com/syncthing/syncthing/lib/protocol.DeviceID" json:"introducedBy" xml:"introducedBy,attr"`
  27. EncryptionPassword string `protobuf:"bytes,3,opt,name=encryption_password,json=encryptionPassword,proto3" json:"encryptionPassword" xml:"encryptionPassword"`
  28. }
  29. func (m *FolderDeviceConfiguration) Reset() { *m = FolderDeviceConfiguration{} }
  30. func (m *FolderDeviceConfiguration) String() string { return proto.CompactTextString(m) }
  31. func (*FolderDeviceConfiguration) ProtoMessage() {}
  32. func (*FolderDeviceConfiguration) Descriptor() ([]byte, []int) {
  33. return fileDescriptor_44a9785876ed3afa, []int{0}
  34. }
  35. func (m *FolderDeviceConfiguration) XXX_Unmarshal(b []byte) error {
  36. return m.Unmarshal(b)
  37. }
  38. func (m *FolderDeviceConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  39. if deterministic {
  40. return xxx_messageInfo_FolderDeviceConfiguration.Marshal(b, m, deterministic)
  41. } else {
  42. b = b[:cap(b)]
  43. n, err := m.MarshalToSizedBuffer(b)
  44. if err != nil {
  45. return nil, err
  46. }
  47. return b[:n], nil
  48. }
  49. }
  50. func (m *FolderDeviceConfiguration) XXX_Merge(src proto.Message) {
  51. xxx_messageInfo_FolderDeviceConfiguration.Merge(m, src)
  52. }
  53. func (m *FolderDeviceConfiguration) XXX_Size() int {
  54. return m.ProtoSize()
  55. }
  56. func (m *FolderDeviceConfiguration) XXX_DiscardUnknown() {
  57. xxx_messageInfo_FolderDeviceConfiguration.DiscardUnknown(m)
  58. }
  59. var xxx_messageInfo_FolderDeviceConfiguration proto.InternalMessageInfo
  60. type FolderConfiguration struct {
  61. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" xml:"id,attr" nodefault:"true"`
  62. Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label" xml:"label,attr" restart:"false"`
  63. FilesystemType fs.FilesystemType `protobuf:"varint,3,opt,name=filesystem_type,json=filesystemType,proto3,enum=fs.FilesystemType" json:"filesystemType" xml:"filesystemType"`
  64. Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path" xml:"path,attr" default:"~"`
  65. Type FolderType `protobuf:"varint,5,opt,name=type,proto3,enum=config.FolderType" json:"type" xml:"type,attr"`
  66. Devices []FolderDeviceConfiguration `protobuf:"bytes,6,rep,name=devices,proto3" json:"devices" xml:"device"`
  67. RescanIntervalS int `protobuf:"varint,7,opt,name=rescan_interval_s,json=rescanIntervalS,proto3,casttype=int" json:"rescanIntervalS" xml:"rescanIntervalS,attr" default:"3600"`
  68. FSWatcherEnabled bool `protobuf:"varint,8,opt,name=fs_watcher_enabled,json=fsWatcherEnabled,proto3" json:"fsWatcherEnabled" xml:"fsWatcherEnabled,attr" default:"true"`
  69. FSWatcherDelayS float64 `protobuf:"fixed64,9,opt,name=fs_watcher_delay_s,json=fsWatcherDelayS,proto3" json:"fsWatcherDelayS" xml:"fsWatcherDelayS,attr" default:"10"`
  70. FSWatcherTimeoutS float64 `protobuf:"fixed64,40,opt,name=fs_watcher_timeout_s,json=fsWatcherTimeoutS,proto3" json:"fsWatcherTimeoutS" xml:"fsWatcherTimeoutS,attr"`
  71. IgnorePerms bool `protobuf:"varint,10,opt,name=ignore_perms,json=ignorePerms,proto3" json:"ignorePerms" xml:"ignorePerms,attr"`
  72. AutoNormalize bool `protobuf:"varint,11,opt,name=auto_normalize,json=autoNormalize,proto3" json:"autoNormalize" xml:"autoNormalize,attr" default:"true"`
  73. MinDiskFree Size `protobuf:"bytes,12,opt,name=min_disk_free,json=minDiskFree,proto3" json:"minDiskFree" xml:"minDiskFree" default:"1 %"`
  74. Versioning VersioningConfiguration `protobuf:"bytes,13,opt,name=versioning,proto3" json:"versioning" xml:"versioning"`
  75. Copiers int `protobuf:"varint,14,opt,name=copiers,proto3,casttype=int" json:"copiers" xml:"copiers"`
  76. PullerMaxPendingKiB int `protobuf:"varint,15,opt,name=puller_max_pending_kib,json=pullerMaxPendingKib,proto3,casttype=int" json:"pullerMaxPendingKiB" xml:"pullerMaxPendingKiB"`
  77. Hashers int `protobuf:"varint,16,opt,name=hashers,proto3,casttype=int" json:"hashers" xml:"hashers"`
  78. Order PullOrder `protobuf:"varint,17,opt,name=order,proto3,enum=config.PullOrder" json:"order" xml:"order"`
  79. IgnoreDelete bool `protobuf:"varint,18,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignoreDelete" xml:"ignoreDelete"`
  80. ScanProgressIntervalS int `protobuf:"varint,19,opt,name=scan_progress_interval_s,json=scanProgressIntervalS,proto3,casttype=int" json:"scanProgressIntervalS" xml:"scanProgressIntervalS"`
  81. PullerPauseS int `protobuf:"varint,20,opt,name=puller_pause_s,json=pullerPauseS,proto3,casttype=int" json:"pullerPauseS" xml:"pullerPauseS"`
  82. MaxConflicts int `protobuf:"varint,21,opt,name=max_conflicts,json=maxConflicts,proto3,casttype=int" json:"maxConflicts" xml:"maxConflicts" default:"10"`
  83. DisableSparseFiles bool `protobuf:"varint,22,opt,name=disable_sparse_files,json=disableSparseFiles,proto3" json:"disableSparseFiles" xml:"disableSparseFiles"`
  84. DisableTempIndexes bool `protobuf:"varint,23,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disableTempIndexes" xml:"disableTempIndexes"`
  85. Paused bool `protobuf:"varint,24,opt,name=paused,proto3" json:"paused" xml:"paused"`
  86. WeakHashThresholdPct int `protobuf:"varint,25,opt,name=weak_hash_threshold_pct,json=weakHashThresholdPct,proto3,casttype=int" json:"weakHashThresholdPct" xml:"weakHashThresholdPct"`
  87. MarkerName string `protobuf:"bytes,26,opt,name=marker_name,json=markerName,proto3" json:"markerName" xml:"markerName"`
  88. CopyOwnershipFromParent bool `protobuf:"varint,27,opt,name=copy_ownership_from_parent,json=copyOwnershipFromParent,proto3" json:"copyOwnershipFromParent" xml:"copyOwnershipFromParent"`
  89. RawModTimeWindowS int `protobuf:"varint,28,opt,name=mod_time_window_s,json=modTimeWindowS,proto3,casttype=int" json:"modTimeWindowS" xml:"modTimeWindowS"`
  90. MaxConcurrentWrites int `protobuf:"varint,29,opt,name=max_concurrent_writes,json=maxConcurrentWrites,proto3,casttype=int" json:"maxConcurrentWrites" xml:"maxConcurrentWrites" default:"2"`
  91. DisableFsync bool `protobuf:"varint,30,opt,name=disable_fsync,json=disableFsync,proto3" json:"disableFsync" xml:"disableFsync"`
  92. BlockPullOrder BlockPullOrder `protobuf:"varint,31,opt,name=block_pull_order,json=blockPullOrder,proto3,enum=config.BlockPullOrder" json:"blockPullOrder" xml:"blockPullOrder"`
  93. CopyRangeMethod fs.CopyRangeMethod `protobuf:"varint,32,opt,name=copy_range_method,json=copyRangeMethod,proto3,enum=fs.CopyRangeMethod" json:"copyRangeMethod" xml:"copyRangeMethod" default:"standard"`
  94. CaseSensitiveFS bool `protobuf:"varint,33,opt,name=case_sensitive_fs,json=caseSensitiveFs,proto3" json:"caseSensitiveFS" xml:"caseSensitiveFS"`
  95. JunctionsAsDirs bool `protobuf:"varint,34,opt,name=follow_junctions,json=followJunctions,proto3" json:"junctionsAsDirs" xml:"junctionsAsDirs"`
  96. SyncOwnership bool `protobuf:"varint,35,opt,name=sync_ownership,json=syncOwnership,proto3" json:"syncOwnership" xml:"syncOwnership"`
  97. SendOwnership bool `protobuf:"varint,36,opt,name=send_ownership,json=sendOwnership,proto3" json:"sendOwnership" xml:"sendOwnership"`
  98. SyncXattrs bool `protobuf:"varint,37,opt,name=sync_xattrs,json=syncXattrs,proto3" json:"syncXattrs" xml:"syncXattrs"`
  99. SendXattrs bool `protobuf:"varint,38,opt,name=send_xattrs,json=sendXattrs,proto3" json:"sendXattrs" xml:"sendXattrs"`
  100. XattrFilter XattrFilter `protobuf:"bytes,39,opt,name=xattr_filter,json=xattrFilter,proto3" json:"xattrFilter" xml:"xattrFilter"`
  101. // Legacy deprecated
  102. DeprecatedReadOnly bool `protobuf:"varint,9000,opt,name=read_only,json=readOnly,proto3" json:"-" xml:"ro,attr,omitempty"` // Deprecated: Do not use.
  103. DeprecatedMinDiskFreePct float64 `protobuf:"fixed64,9001,opt,name=min_disk_free_pct,json=minDiskFreePct,proto3" json:"-" xml:"minDiskFreePct,omitempty"` // Deprecated: Do not use.
  104. DeprecatedPullers int `protobuf:"varint,9002,opt,name=pullers,proto3,casttype=int" json:"-" xml:"pullers,omitempty"` // Deprecated: Do not use.
  105. DeprecatedScanOwnership bool `protobuf:"varint,9003,opt,name=scan_ownership,json=scanOwnership,proto3" json:"-" xml:"scanOwnership,omitempty"` // Deprecated: Do not use.
  106. }
  107. func (m *FolderConfiguration) Reset() { *m = FolderConfiguration{} }
  108. func (m *FolderConfiguration) String() string { return proto.CompactTextString(m) }
  109. func (*FolderConfiguration) ProtoMessage() {}
  110. func (*FolderConfiguration) Descriptor() ([]byte, []int) {
  111. return fileDescriptor_44a9785876ed3afa, []int{1}
  112. }
  113. func (m *FolderConfiguration) XXX_Unmarshal(b []byte) error {
  114. return m.Unmarshal(b)
  115. }
  116. func (m *FolderConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  117. if deterministic {
  118. return xxx_messageInfo_FolderConfiguration.Marshal(b, m, deterministic)
  119. } else {
  120. b = b[:cap(b)]
  121. n, err := m.MarshalToSizedBuffer(b)
  122. if err != nil {
  123. return nil, err
  124. }
  125. return b[:n], nil
  126. }
  127. }
  128. func (m *FolderConfiguration) XXX_Merge(src proto.Message) {
  129. xxx_messageInfo_FolderConfiguration.Merge(m, src)
  130. }
  131. func (m *FolderConfiguration) XXX_Size() int {
  132. return m.ProtoSize()
  133. }
  134. func (m *FolderConfiguration) XXX_DiscardUnknown() {
  135. xxx_messageInfo_FolderConfiguration.DiscardUnknown(m)
  136. }
  137. var xxx_messageInfo_FolderConfiguration proto.InternalMessageInfo
  138. // Extended attribute filter. This is a list of patterns to match (glob
  139. // style), each with an action (permit or deny). First match is used. If the
  140. // filter is empty, all strings are permitted. If the filter is non-empty,
  141. // the default action becomes deny. To counter this, you can use the "*"
  142. // pattern to match all strings at the end of the filter. There are also
  143. // limits on the size of accepted attributes.
  144. type XattrFilter struct {
  145. Entries []XattrFilterEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries" xml:"entry"`
  146. MaxSingleEntrySize int `protobuf:"varint,2,opt,name=max_single_entry_size,json=maxSingleEntrySize,proto3,casttype=int" json:"maxSingleEntrySize" xml:"maxSingleEntrySize" default:"1024"`
  147. MaxTotalSize int `protobuf:"varint,3,opt,name=max_total_size,json=maxTotalSize,proto3,casttype=int" json:"maxTotalSize" xml:"maxTotalSize" default:"4096"`
  148. }
  149. func (m *XattrFilter) Reset() { *m = XattrFilter{} }
  150. func (m *XattrFilter) String() string { return proto.CompactTextString(m) }
  151. func (*XattrFilter) ProtoMessage() {}
  152. func (*XattrFilter) Descriptor() ([]byte, []int) {
  153. return fileDescriptor_44a9785876ed3afa, []int{2}
  154. }
  155. func (m *XattrFilter) XXX_Unmarshal(b []byte) error {
  156. return m.Unmarshal(b)
  157. }
  158. func (m *XattrFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  159. if deterministic {
  160. return xxx_messageInfo_XattrFilter.Marshal(b, m, deterministic)
  161. } else {
  162. b = b[:cap(b)]
  163. n, err := m.MarshalToSizedBuffer(b)
  164. if err != nil {
  165. return nil, err
  166. }
  167. return b[:n], nil
  168. }
  169. }
  170. func (m *XattrFilter) XXX_Merge(src proto.Message) {
  171. xxx_messageInfo_XattrFilter.Merge(m, src)
  172. }
  173. func (m *XattrFilter) XXX_Size() int {
  174. return m.ProtoSize()
  175. }
  176. func (m *XattrFilter) XXX_DiscardUnknown() {
  177. xxx_messageInfo_XattrFilter.DiscardUnknown(m)
  178. }
  179. var xxx_messageInfo_XattrFilter proto.InternalMessageInfo
  180. type XattrFilterEntry struct {
  181. Match string `protobuf:"bytes,1,opt,name=match,proto3" json:"match" xml:"match,attr"`
  182. Permit bool `protobuf:"varint,2,opt,name=permit,proto3" json:"permit" xml:"permit,attr"`
  183. }
  184. func (m *XattrFilterEntry) Reset() { *m = XattrFilterEntry{} }
  185. func (m *XattrFilterEntry) String() string { return proto.CompactTextString(m) }
  186. func (*XattrFilterEntry) ProtoMessage() {}
  187. func (*XattrFilterEntry) Descriptor() ([]byte, []int) {
  188. return fileDescriptor_44a9785876ed3afa, []int{3}
  189. }
  190. func (m *XattrFilterEntry) XXX_Unmarshal(b []byte) error {
  191. return m.Unmarshal(b)
  192. }
  193. func (m *XattrFilterEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  194. if deterministic {
  195. return xxx_messageInfo_XattrFilterEntry.Marshal(b, m, deterministic)
  196. } else {
  197. b = b[:cap(b)]
  198. n, err := m.MarshalToSizedBuffer(b)
  199. if err != nil {
  200. return nil, err
  201. }
  202. return b[:n], nil
  203. }
  204. }
  205. func (m *XattrFilterEntry) XXX_Merge(src proto.Message) {
  206. xxx_messageInfo_XattrFilterEntry.Merge(m, src)
  207. }
  208. func (m *XattrFilterEntry) XXX_Size() int {
  209. return m.ProtoSize()
  210. }
  211. func (m *XattrFilterEntry) XXX_DiscardUnknown() {
  212. xxx_messageInfo_XattrFilterEntry.DiscardUnknown(m)
  213. }
  214. var xxx_messageInfo_XattrFilterEntry proto.InternalMessageInfo
  215. func init() {
  216. proto.RegisterType((*FolderDeviceConfiguration)(nil), "config.FolderDeviceConfiguration")
  217. proto.RegisterType((*FolderConfiguration)(nil), "config.FolderConfiguration")
  218. proto.RegisterType((*XattrFilter)(nil), "config.XattrFilter")
  219. proto.RegisterType((*XattrFilterEntry)(nil), "config.XattrFilterEntry")
  220. }
  221. func init() {
  222. proto.RegisterFile("lib/config/folderconfiguration.proto", fileDescriptor_44a9785876ed3afa)
  223. }
  224. var fileDescriptor_44a9785876ed3afa = []byte{
  225. // 2460 bytes of a gzipped FileDescriptorProto
  226. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0x4d, 0x6c, 0x24, 0x47,
  227. 0x15, 0x76, 0xdb, 0xfb, 0x63, 0x97, 0xd7, 0x5e, 0xbb, 0x6c, 0xef, 0x76, 0x9c, 0xc4, 0x35, 0xe9,
  228. 0xcc, 0x26, 0x93, 0x90, 0x78, 0x37, 0x4e, 0x14, 0x29, 0x11, 0x01, 0x32, 0x76, 0x46, 0x2c, 0x8b,
  229. 0xb3, 0x56, 0x8f, 0x21, 0x90, 0x20, 0x35, 0xed, 0xee, 0x9a, 0x99, 0x8e, 0x7b, 0xba, 0x87, 0xae,
  230. 0xf6, 0xda, 0xb3, 0x87, 0x28, 0xe4, 0x80, 0x90, 0xc8, 0x01, 0x99, 0x03, 0xe2, 0x80, 0x14, 0x09,
  231. 0x84, 0x20, 0x5c, 0x38, 0x73, 0xe1, 0xba, 0x17, 0x64, 0x9f, 0x10, 0xe2, 0x50, 0x52, 0xbc, 0xb7,
  232. 0x39, 0xf6, 0x71, 0x4f, 0xe8, 0xbd, 0xfe, 0x99, 0xea, 0x99, 0x89, 0x84, 0xc4, 0x6d, 0xea, 0xfb,
  233. 0x5e, 0xbd, 0xf7, 0x75, 0xd5, 0xab, 0x57, 0xaf, 0x86, 0x54, 0x7d, 0xef, 0xe0, 0xb6, 0x13, 0x06,
  234. 0x2d, 0xaf, 0x7d, 0xbb, 0x15, 0xfa, 0x2e, 0x8f, 0xd2, 0xc1, 0x51, 0x64, 0xc7, 0x5e, 0x18, 0x6c,
  235. 0xf6, 0xa2, 0x30, 0x0e, 0xe9, 0x95, 0x14, 0x5c, 0x7f, 0x7a, 0xcc, 0x3a, 0xee, 0xf7, 0x78, 0x6a,
  236. 0xb4, 0xbe, 0xa6, 0x90, 0xc2, 0x7b, 0x98, 0xc3, 0xeb, 0x0a, 0xdc, 0x3b, 0xf2, 0xfd, 0x30, 0x72,
  237. 0x79, 0x94, 0x71, 0x35, 0x85, 0x7b, 0xc0, 0x23, 0xe1, 0x85, 0x81, 0x17, 0xb4, 0x27, 0x28, 0x58,
  238. 0x67, 0x8a, 0xe5, 0x81, 0x1f, 0x3a, 0x87, 0xa3, 0xae, 0x28, 0x18, 0xb4, 0xc4, 0x6d, 0x10, 0x24,
  239. 0x32, 0xec, 0x99, 0x0c, 0x73, 0xc2, 0x5e, 0x3f, 0xb2, 0x83, 0x36, 0xef, 0xf2, 0xb8, 0x13, 0xba,
  240. 0x19, 0x3b, 0xc7, 0x4f, 0xe2, 0xf4, 0xa7, 0xf1, 0xaf, 0x19, 0xf2, 0x54, 0x03, 0xbf, 0x67, 0x87,
  241. 0x3f, 0xf0, 0x1c, 0xbe, 0xad, 0x2a, 0xa0, 0x5f, 0x6a, 0x64, 0xce, 0x45, 0xdc, 0xf2, 0x5c, 0x5d,
  242. 0xab, 0x68, 0xb5, 0x6b, 0xf5, 0xcf, 0xb5, 0x47, 0x92, 0x4d, 0xfd, 0x47, 0xb2, 0x37, 0xda, 0x5e,
  243. 0xdc, 0x39, 0x3a, 0xd8, 0x74, 0xc2, 0xee, 0x6d, 0xd1, 0x0f, 0x9c, 0xb8, 0xe3, 0x05, 0x6d, 0xe5,
  244. 0x17, 0x48, 0xc0, 0x20, 0x4e, 0xe8, 0x6f, 0xa6, 0xde, 0xef, 0xee, 0x5c, 0x48, 0x36, 0x9b, 0xff,
  245. 0x1e, 0x48, 0x36, 0xeb, 0x66, 0xbf, 0x13, 0xc9, 0x16, 0x4e, 0xba, 0xfe, 0xdb, 0x86, 0xe7, 0xbe,
  246. 0x62, 0xc7, 0x71, 0x64, 0x0c, 0xce, 0xaa, 0x57, 0xb3, 0xdf, 0xc9, 0x59, 0xb5, 0xb0, 0xfb, 0xe5,
  247. 0x79, 0x55, 0x3b, 0x3d, 0xaf, 0x16, 0x3e, 0xcc, 0x9c, 0x71, 0xe9, 0x9f, 0x34, 0xb2, 0xe0, 0x05,
  248. 0x71, 0x14, 0xba, 0x47, 0x0e, 0x77, 0xad, 0x83, 0xbe, 0x3e, 0x8d, 0x82, 0x3f, 0xfd, 0xbf, 0x04,
  249. 0x0f, 0x24, 0xbb, 0x36, 0xf4, 0x5a, 0xef, 0x27, 0x92, 0xdd, 0x4c, 0x85, 0x2a, 0x60, 0x21, 0x79,
  250. 0x79, 0x0c, 0x05, 0xc1, 0x66, 0xc9, 0x03, 0x75, 0xc8, 0x0a, 0x0f, 0x9c, 0xa8, 0xdf, 0x83, 0x35,
  251. 0xb6, 0x7a, 0xb6, 0x10, 0xc7, 0x61, 0xe4, 0xea, 0x33, 0x15, 0xad, 0x36, 0x57, 0xdf, 0x1a, 0x48,
  252. 0x46, 0x87, 0xf4, 0x5e, 0xc6, 0x26, 0x92, 0xe9, 0x18, 0x76, 0x9c, 0x32, 0xcc, 0x09, 0xf6, 0xc6,
  253. 0x3f, 0x6e, 0x91, 0x95, 0x74, 0x63, 0xcb, 0x5b, 0xda, 0x24, 0xd3, 0xd9, 0x56, 0xce, 0xd5, 0xb7,
  254. 0x2f, 0x24, 0x9b, 0xc6, 0x4f, 0x9c, 0xf6, 0x20, 0xc2, 0x46, 0x69, 0x07, 0x2a, 0x41, 0xe8, 0xf2,
  255. 0x96, 0x7d, 0xe4, 0xc7, 0x6f, 0x1b, 0x71, 0x74, 0xc4, 0xd5, 0x2d, 0x39, 0x3d, 0xaf, 0x4e, 0xdf,
  256. 0xdd, 0xf9, 0x02, 0xbe, 0x6d, 0xda, 0x73, 0xe9, 0x0f, 0xc8, 0x65, 0xdf, 0x3e, 0xe0, 0x3e, 0xae,
  257. 0xf8, 0x5c, 0xfd, 0xdb, 0x03, 0xc9, 0x52, 0x20, 0x91, 0xac, 0x82, 0x4e, 0x71, 0x94, 0xf9, 0x8d,
  258. 0xb8, 0x88, 0xed, 0x28, 0x7e, 0xdb, 0x68, 0xd9, 0xbe, 0x40, 0xb7, 0x64, 0x48, 0x7f, 0x7a, 0x5e,
  259. 0x9d, 0x32, 0xd3, 0xc9, 0xb4, 0x4d, 0xae, 0xb7, 0x3c, 0x9f, 0x8b, 0xbe, 0x88, 0x79, 0xd7, 0x82,
  260. 0xfc, 0xc6, 0x45, 0x5a, 0xdc, 0xa2, 0x9b, 0x2d, 0xb1, 0xd9, 0x28, 0xa8, 0xfd, 0x7e, 0x8f, 0xd7,
  261. 0x5f, 0x1e, 0x48, 0xb6, 0xd8, 0x2a, 0x61, 0x89, 0x64, 0xab, 0x18, 0xbd, 0x0c, 0x1b, 0xe6, 0x88,
  262. 0x1d, 0xdd, 0x25, 0x97, 0x7a, 0x76, 0xdc, 0xd1, 0x2f, 0xa1, 0xfc, 0xb7, 0x06, 0x92, 0xe1, 0x38,
  263. 0x91, 0xec, 0x69, 0x9c, 0x0f, 0x83, 0x4c, 0x7c, 0xb1, 0x24, 0x9f, 0x80, 0xf0, 0xb9, 0x82, 0x79,
  264. 0x72, 0x56, 0xd5, 0x3e, 0x31, 0x71, 0x1a, 0xdd, 0x23, 0x97, 0x50, 0xec, 0xe5, 0x4c, 0x6c, 0x7a,
  265. 0x7a, 0x37, 0xd3, 0xed, 0x40, 0xb1, 0x35, 0x08, 0x11, 0xa7, 0x12, 0xaf, 0x63, 0x08, 0x18, 0x14,
  266. 0x69, 0x34, 0x57, 0x8c, 0x4c, 0xb4, 0xa2, 0x3f, 0x21, 0x57, 0xd3, 0x3c, 0x17, 0xfa, 0x95, 0xca,
  267. 0x4c, 0x6d, 0x7e, 0xeb, 0xb9, 0xb2, 0xd3, 0x09, 0x87, 0xb7, 0xce, 0x20, 0xed, 0x07, 0x92, 0xe5,
  268. 0x33, 0x13, 0xc9, 0xae, 0x61, 0xa8, 0x74, 0x6c, 0x98, 0x39, 0x41, 0x7f, 0xa3, 0x91, 0xe5, 0x88,
  269. 0x0b, 0xc7, 0x0e, 0x2c, 0x2f, 0x88, 0x79, 0xf4, 0xc0, 0xf6, 0x2d, 0xa1, 0x5f, 0xad, 0x68, 0xb5,
  270. 0xcb, 0xf5, 0xf6, 0x40, 0xb2, 0xeb, 0x29, 0x79, 0x37, 0xe3, 0x9a, 0x89, 0x64, 0x2f, 0xa1, 0xa7,
  271. 0x11, 0x7c, 0x74, 0x89, 0x5e, 0x7f, 0xf3, 0xce, 0x1d, 0xe3, 0x89, 0x64, 0x33, 0x5e, 0x10, 0x0f,
  272. 0xce, 0xaa, 0xab, 0x93, 0xcc, 0x9f, 0x9c, 0x55, 0x2f, 0x81, 0x9d, 0x39, 0x1a, 0x84, 0xfe, 0x5d,
  273. 0x23, 0xb4, 0x25, 0xac, 0x63, 0x3b, 0x76, 0x3a, 0x3c, 0xb2, 0x78, 0x60, 0x1f, 0xf8, 0xdc, 0xd5,
  274. 0x67, 0x2b, 0x5a, 0x6d, 0xb6, 0xfe, 0x2b, 0xed, 0x42, 0xb2, 0xa5, 0x46, 0xf3, 0x83, 0x94, 0x7d,
  275. 0x2f, 0x25, 0x07, 0x92, 0x2d, 0xb5, 0x44, 0x19, 0x4b, 0x24, 0x7b, 0x39, 0x4d, 0x82, 0x11, 0x62,
  276. 0x54, 0x6d, 0x9e, 0xe3, 0x6b, 0x13, 0x0d, 0x41, 0x27, 0x58, 0x9c, 0x9e, 0x57, 0xc7, 0xc2, 0x9a,
  277. 0x63, 0x41, 0xe9, 0xdf, 0xca, 0xe2, 0x5d, 0xee, 0xdb, 0x7d, 0x4b, 0xe8, 0x73, 0x15, 0xad, 0xa6,
  278. 0xd5, 0x3f, 0x03, 0xf1, 0xd7, 0x0b, 0x2f, 0x3b, 0x40, 0x36, 0x61, 0x9d, 0x0b, 0x37, 0x29, 0x94,
  279. 0x48, 0xf6, 0x62, 0x59, 0x7a, 0x8a, 0x8f, 0x2a, 0x7f, 0xed, 0x0e, 0xe8, 0x5e, 0x9d, 0x64, 0xf5,
  280. 0xe4, 0xac, 0x3a, 0xfd, 0xda, 0x9d, 0xd3, 0xf3, 0xea, 0x68, 0x38, 0x73, 0x34, 0x18, 0x14, 0xfb,
  281. 0x55, 0x45, 0x72, 0xec, 0x75, 0x79, 0x78, 0x14, 0x5b, 0x42, 0xaf, 0xa1, 0xe8, 0xfe, 0x85, 0x64,
  282. 0xcb, 0x85, 0x93, 0xfd, 0x94, 0x05, 0xd5, 0xcb, 0x85, 0xa3, 0x1c, 0x4c, 0x24, 0x7b, 0xa6, 0xac,
  283. 0x3b, 0x67, 0x8a, 0x0c, 0xbf, 0x31, 0x99, 0x3a, 0x3d, 0xaf, 0x8e, 0xc7, 0x30, 0xc7, 0x23, 0xd0,
  284. 0x9f, 0x92, 0x6b, 0x5e, 0x3b, 0x08, 0x23, 0x6e, 0xf5, 0x78, 0xd4, 0x15, 0x3a, 0xc1, 0xac, 0x78,
  285. 0x67, 0x20, 0xd9, 0x7c, 0x8a, 0xef, 0x01, 0x9c, 0x48, 0x76, 0x23, 0xad, 0x69, 0x43, 0xac, 0x90,
  286. 0xb0, 0x34, 0x0a, 0x9a, 0xea, 0x54, 0xfa, 0x73, 0x8d, 0x2c, 0xda, 0x47, 0x71, 0x68, 0x05, 0x61,
  287. 0xd4, 0xb5, 0x7d, 0xef, 0x21, 0xd7, 0xe7, 0x31, 0xc8, 0x87, 0x03, 0xc9, 0x16, 0x80, 0x79, 0x3f,
  288. 0x27, 0x8a, 0x7d, 0x2a, 0xa1, 0x5f, 0x97, 0x5f, 0x74, 0xdc, 0x2a, 0x4f, 0x2e, 0xb3, 0xec, 0x97,
  289. 0x86, 0x64, 0xa1, 0xeb, 0x05, 0x96, 0xeb, 0x89, 0x43, 0xab, 0x15, 0x71, 0xae, 0x5f, 0xab, 0x68,
  290. 0xb5, 0xf9, 0xad, 0x6b, 0xf9, 0xe1, 0x6f, 0x7a, 0x0f, 0x79, 0xfd, 0x9d, 0xec, 0x9c, 0xcf, 0x77,
  291. 0xbd, 0x60, 0xc7, 0x13, 0x87, 0x8d, 0x88, 0x83, 0x22, 0x86, 0x8a, 0x14, 0x4c, 0x4d, 0x98, 0xca,
  292. 0x2d, 0xe3, 0xc9, 0x59, 0x75, 0xe6, 0xb5, 0xca, 0x2d, 0x53, 0x9d, 0x46, 0xdb, 0x84, 0x0c, 0xbb,
  293. 0x11, 0x7d, 0x01, 0xa3, 0xb1, 0x3c, 0xda, 0x0f, 0x0b, 0xa6, 0x5c, 0x68, 0x5e, 0xc8, 0x04, 0x28,
  294. 0x53, 0x13, 0xc9, 0x96, 0x30, 0xfe, 0x10, 0x32, 0x4c, 0x85, 0xa7, 0xef, 0x90, 0xab, 0x4e, 0xd8,
  295. 0xf3, 0x78, 0x24, 0xf4, 0x45, 0xac, 0x33, 0xcf, 0x43, 0xa5, 0xca, 0xa0, 0xa2, 0x19, 0xc8, 0xc6,
  296. 0x79, 0x0d, 0x31, 0x73, 0x03, 0xfa, 0x4f, 0x8d, 0xdc, 0x80, 0x3e, 0x88, 0x47, 0x56, 0xd7, 0x3e,
  297. 0xb1, 0x7a, 0x3c, 0x70, 0xbd, 0xa0, 0x6d, 0x1d, 0x7a, 0x07, 0xfa, 0x75, 0x74, 0xf7, 0x5b, 0x38,
  298. 0x62, 0x2b, 0x7b, 0x68, 0xb2, 0x6b, 0x9f, 0xec, 0xa5, 0x06, 0xf7, 0xbc, 0xfa, 0x40, 0xb2, 0x95,
  299. 0xde, 0x38, 0x9c, 0x48, 0xf6, 0x54, 0x5a, 0xea, 0xc7, 0x39, 0xa5, 0x84, 0x4d, 0x9c, 0x3a, 0x19,
  300. 0x3e, 0x3d, 0xaf, 0x4e, 0x8a, 0x6f, 0x4e, 0xb0, 0x3d, 0x80, 0xe5, 0xe8, 0xd8, 0xa2, 0x03, 0xcb,
  301. 0xb1, 0x34, 0x5c, 0x8e, 0x0c, 0x2a, 0x96, 0x23, 0x1b, 0x0f, 0x97, 0x23, 0x03, 0xe8, 0xbb, 0xe4,
  302. 0x32, 0x76, 0x84, 0xfa, 0x32, 0xde, 0x38, 0xcb, 0xf9, 0x8e, 0x41, 0xfc, 0xfb, 0x40, 0xd4, 0x75,
  303. 0xb8, 0x92, 0xd1, 0x26, 0x91, 0x6c, 0x1e, 0xbd, 0xe1, 0xc8, 0x30, 0x53, 0x94, 0xde, 0x23, 0x0b,
  304. 0xd9, 0x81, 0x72, 0xb9, 0xcf, 0x63, 0xae, 0x53, 0x4c, 0xf6, 0x17, 0xb0, 0xff, 0x41, 0x62, 0x07,
  305. 0xf1, 0x44, 0x32, 0xaa, 0x1c, 0xa9, 0x14, 0x34, 0xcc, 0x92, 0x0d, 0x3d, 0x21, 0x3a, 0xde, 0x26,
  306. 0xbd, 0x28, 0x6c, 0x47, 0x5c, 0x08, 0xf5, 0x5a, 0x59, 0xc1, 0xef, 0x83, 0x16, 0x61, 0x0d, 0x6c,
  307. 0xf6, 0x32, 0x13, 0xf5, 0x72, 0x49, 0x2f, 0xdd, 0x89, 0x6c, 0xf1, 0xed, 0x93, 0x27, 0xd3, 0x26,
  308. 0x59, 0xcc, 0xf2, 0xa2, 0x67, 0x1f, 0x09, 0x6e, 0x09, 0x7d, 0x15, 0xe3, 0xbd, 0x0a, 0xdf, 0x91,
  309. 0x32, 0x7b, 0x40, 0x34, 0x8b, 0xef, 0x50, 0xc1, 0xc2, 0x7b, 0xc9, 0x94, 0x72, 0xb2, 0x00, 0x59,
  310. 0x06, 0x8b, 0xea, 0x7b, 0x4e, 0x2c, 0xf4, 0x35, 0xf4, 0xf9, 0x1d, 0xf0, 0xd9, 0xb5, 0x4f, 0xb6,
  311. 0x73, 0x7c, 0x78, 0xea, 0x14, 0xb0, 0x5c, 0xa7, 0xb3, 0x00, 0x69, 0x59, 0x36, 0x4b, 0xb3, 0xa9,
  312. 0x4b, 0x56, 0x5d, 0x4f, 0xc0, 0xfd, 0x61, 0x89, 0x9e, 0x1d, 0x09, 0x6e, 0x61, 0x9b, 0xa2, 0xdf,
  313. 0xc0, 0x9d, 0xc0, 0xc6, 0x30, 0xe3, 0x9b, 0x48, 0x63, 0x03, 0x54, 0x34, 0x86, 0xe3, 0x94, 0x61,
  314. 0x4e, 0xb0, 0x57, 0xa3, 0xc4, 0xbc, 0xdb, 0xb3, 0xbc, 0xc0, 0xe5, 0x27, 0x5c, 0xe8, 0x37, 0xc7,
  315. 0xa2, 0xec, 0xf3, 0x6e, 0xef, 0x6e, 0xca, 0x8e, 0x46, 0x51, 0xa8, 0x61, 0x14, 0x05, 0xa4, 0x5b,
  316. 0xe4, 0x0a, 0x6e, 0x80, 0xab, 0xeb, 0xe8, 0x77, 0x7d, 0x20, 0x59, 0x86, 0x14, 0x7d, 0x48, 0x3a,
  317. 0x34, 0xcc, 0x0c, 0xa7, 0x31, 0xb9, 0x79, 0xcc, 0xed, 0x43, 0x0b, 0xb2, 0xda, 0x8a, 0x3b, 0x11,
  318. 0x17, 0x9d, 0xd0, 0x77, 0xad, 0x9e, 0x13, 0xeb, 0x4f, 0xe1, 0x82, 0x43, 0x79, 0x5f, 0x05, 0x93,
  319. 0xef, 0xda, 0xa2, 0xb3, 0x9f, 0x1b, 0xec, 0x39, 0x71, 0x22, 0xd9, 0x3a, 0xba, 0x9c, 0x44, 0x16,
  320. 0x9b, 0x3a, 0x71, 0x2a, 0xdd, 0x26, 0xf3, 0x5d, 0x3b, 0x3a, 0xe4, 0x91, 0x15, 0xd8, 0x5d, 0xae,
  321. 0xaf, 0x63, 0x0b, 0x68, 0x40, 0x39, 0x4b, 0xe1, 0xf7, 0xed, 0x2e, 0x2f, 0xca, 0xd9, 0x10, 0x32,
  322. 0x4c, 0x85, 0xa7, 0x7d, 0xb2, 0x0e, 0x4f, 0x2d, 0x2b, 0x3c, 0x0e, 0x78, 0x24, 0x3a, 0x5e, 0xcf,
  323. 0x6a, 0x45, 0x61, 0xd7, 0xea, 0xd9, 0x11, 0x0f, 0x62, 0xfd, 0x69, 0x5c, 0x82, 0x6f, 0x0e, 0x24,
  324. 0xbb, 0x09, 0x56, 0xf7, 0x73, 0xa3, 0x46, 0x14, 0x76, 0xf7, 0xd0, 0x24, 0x91, 0xec, 0xd9, 0xbc,
  325. 0xe2, 0x4d, 0xe2, 0x0d, 0xf3, 0xeb, 0x66, 0xd2, 0x5f, 0x68, 0x64, 0xb9, 0x1b, 0xba, 0x78, 0x5f,
  326. 0x5b, 0xc7, 0x5e, 0xe0, 0x86, 0xc7, 0x96, 0xd0, 0x9f, 0xc1, 0x05, 0xfb, 0x08, 0xee, 0x6c, 0xd3,
  327. 0x3e, 0xde, 0x0d, 0x5d, 0xb8, 0x39, 0x3f, 0x40, 0x16, 0xee, 0xec, 0xc5, 0x6e, 0x09, 0x29, 0x1a,
  328. 0xe5, 0x32, 0x9c, 0xaf, 0x1c, 0xdc, 0xca, 0x63, 0x5e, 0xcc, 0x11, 0x1f, 0xf4, 0x53, 0x8d, 0xac,
  329. 0x65, 0xc7, 0xc4, 0x39, 0x8a, 0x40, 0x9b, 0x75, 0x1c, 0x79, 0x31, 0x17, 0xfa, 0xb3, 0x28, 0xe6,
  330. 0xfb, 0x50, 0x7a, 0xd3, 0x84, 0xcf, 0xf8, 0x0f, 0x90, 0x4e, 0x24, 0xbb, 0xa5, 0x9c, 0x9a, 0x12,
  331. 0xa7, 0x1c, 0x9e, 0x2d, 0xe5, 0xec, 0x68, 0x5b, 0xe6, 0x24, 0x4f, 0x50, 0xc4, 0xf2, 0xdc, 0x6e,
  332. 0xc1, 0xbb, 0x4e, 0xdf, 0x18, 0x16, 0xb1, 0x8c, 0x68, 0x00, 0x5e, 0x1c, 0x7e, 0x15, 0x34, 0xcc,
  333. 0x92, 0x0d, 0xf5, 0xc9, 0x12, 0xbe, 0xb7, 0x2d, 0xa8, 0x05, 0x56, 0x5a, 0x5f, 0x19, 0xd6, 0xd7,
  334. 0x1b, 0x79, 0x7d, 0xad, 0x03, 0x3f, 0x2c, 0xb2, 0xf8, 0x04, 0x39, 0x28, 0x61, 0xc5, 0xca, 0x96,
  335. 0x61, 0xc3, 0x1c, 0xb1, 0xa3, 0x9f, 0x6b, 0x64, 0x19, 0x53, 0x08, 0x9f, 0xeb, 0x56, 0xfa, 0x5e,
  336. 0xd7, 0x2b, 0x18, 0x6f, 0x05, 0x9e, 0x3b, 0xdb, 0x61, 0xaf, 0x6f, 0x02, 0xb7, 0x8b, 0x54, 0xfd,
  337. 0x1e, 0x34, 0x8c, 0x4e, 0x19, 0x4c, 0x24, 0xab, 0x15, 0x69, 0xa4, 0xe0, 0xca, 0x32, 0x8a, 0xd8,
  338. 0x0e, 0x5c, 0x3b, 0x72, 0xe1, 0xfe, 0x9f, 0xcd, 0x07, 0xe6, 0xa8, 0x23, 0xfa, 0x47, 0x90, 0x63,
  339. 0x43, 0x01, 0xe5, 0x81, 0xf0, 0x62, 0xef, 0x01, 0xac, 0xa8, 0xfe, 0x1c, 0x2e, 0xe7, 0x09, 0x74,
  340. 0xaf, 0xdb, 0xb6, 0xe0, 0xcd, 0x9c, 0x6b, 0x60, 0xf7, 0xea, 0x94, 0xa1, 0x44, 0xb2, 0xb5, 0x54,
  341. 0x4c, 0x19, 0x87, 0x1e, 0x68, 0xcc, 0x76, 0x1c, 0x82, 0x9e, 0x75, 0x24, 0x88, 0x39, 0x62, 0x23,
  342. 0xe8, 0x1f, 0x34, 0xb2, 0xd4, 0x0a, 0x7d, 0x3f, 0x3c, 0xb6, 0x3e, 0x3e, 0x0a, 0x1c, 0x68, 0x47,
  343. 0x84, 0x6e, 0x0c, 0x55, 0x7e, 0x2f, 0x07, 0xdf, 0x15, 0x3b, 0x5e, 0x24, 0x40, 0xe5, 0xc7, 0x65,
  344. 0xa8, 0x50, 0x39, 0x82, 0xa3, 0xca, 0x51, 0xdb, 0x71, 0x08, 0x54, 0x8e, 0x04, 0x31, 0xaf, 0xa7,
  345. 0x8a, 0x0a, 0x98, 0xde, 0x27, 0x8b, 0x90, 0x51, 0xc3, 0xea, 0xa0, 0x3f, 0x8f, 0x12, 0xe1, 0x15,
  346. 0xb8, 0x00, 0x4c, 0x71, 0xae, 0x13, 0xc9, 0x56, 0xd2, 0xcb, 0x4f, 0x45, 0x0d, 0xb3, 0x6c, 0x85,
  347. 0x0e, 0x79, 0xe0, 0x2a, 0x0e, 0xab, 0x8a, 0x43, 0x1e, 0xb8, 0x13, 0x1c, 0xaa, 0x28, 0x38, 0x54,
  348. 0xc7, 0x50, 0x04, 0x51, 0xe1, 0x09, 0x74, 0xa3, 0x42, 0xbf, 0x85, 0xde, 0xb0, 0x08, 0x02, 0xfc,
  349. 0x23, 0x44, 0x8b, 0x22, 0x38, 0x84, 0x0c, 0x53, 0xe1, 0xd1, 0x09, 0xa8, 0xca, 0x9c, 0xbc, 0xa0,
  350. 0x38, 0xe1, 0x81, 0x3b, 0xea, 0xa4, 0x80, 0xc0, 0x49, 0x31, 0x80, 0xc6, 0x1e, 0xe7, 0xc3, 0xdd,
  351. 0x17, 0xf3, 0x48, 0x7f, 0x11, 0x7b, 0xd0, 0x95, 0xfc, 0xc4, 0xa1, 0x55, 0x03, 0xa9, 0x7a, 0x2d,
  352. 0x6f, 0x7c, 0x4f, 0x86, 0x60, 0x22, 0xd9, 0x32, 0xfa, 0x57, 0x30, 0xc3, 0x54, 0x2d, 0xe8, 0x21,
  353. 0x99, 0x8b, 0xb8, 0xed, 0x5a, 0x61, 0xe0, 0xf7, 0xf5, 0x3f, 0x37, 0x50, 0xe5, 0xee, 0x85, 0x64,
  354. 0x74, 0x87, 0xf7, 0x22, 0xee, 0xd8, 0x31, 0x77, 0x4d, 0x6e, 0xbb, 0xf7, 0x03, 0xbf, 0x3f, 0x90,
  355. 0x4c, 0x7b, 0xb5, 0xf8, 0xc7, 0x27, 0x0a, 0xb1, 0x59, 0x7f, 0x25, 0xec, 0x7a, 0x70, 0x73, 0xc6,
  356. 0x7d, 0xfc, 0xc7, 0x67, 0x0c, 0xd5, 0x35, 0x73, 0x36, 0xca, 0x1c, 0xd0, 0x9f, 0x91, 0xe5, 0x52,
  357. 0x07, 0x8f, 0xb7, 0xd9, 0x5f, 0x1a, 0xf8, 0xa2, 0x7a, 0xef, 0x42, 0x32, 0x7d, 0x18, 0x74, 0x77,
  358. 0xd8, 0x87, 0xef, 0x39, 0x71, 0x1e, 0x7a, 0x63, 0xb4, 0x8d, 0xdf, 0x73, 0x62, 0x45, 0x81, 0xae,
  359. 0x99, 0x8b, 0x65, 0x92, 0xfe, 0x98, 0x5c, 0x4d, 0xbb, 0x17, 0xa1, 0x7f, 0xd9, 0xc0, 0xca, 0xfb,
  360. 0x2d, 0xb8, 0x06, 0x86, 0x81, 0xd2, 0xae, 0x54, 0x94, 0x3f, 0x2e, 0x9b, 0xa2, 0xb8, 0xce, 0xca,
  361. 0xad, 0xae, 0x99, 0xb9, 0x3f, 0x7a, 0x48, 0x16, 0xb1, 0xaf, 0x1b, 0xe6, 0xdd, 0x5f, 0xd3, 0xf5,
  362. 0xdb, 0xbe, 0x90, 0xec, 0xe6, 0x30, 0x42, 0xd3, 0xb1, 0x83, 0x22, 0xb9, 0xf2, 0x38, 0xcf, 0x16,
  363. 0x5d, 0x5d, 0x41, 0x95, 0x3f, 0x64, 0xa1, 0xc4, 0x19, 0x9f, 0xcd, 0x90, 0x79, 0x65, 0xbb, 0xe9,
  364. 0x47, 0xe4, 0x2a, 0x0f, 0xe2, 0xc8, 0xe3, 0x42, 0xd7, 0xf0, 0x3f, 0x10, 0x7d, 0x42, 0x52, 0xbc,
  365. 0x17, 0xc4, 0x51, 0xbf, 0xfe, 0x62, 0xfe, 0xd7, 0x47, 0x36, 0xa1, 0xe8, 0x79, 0x61, 0x8c, 0xdb,
  366. 0x76, 0x19, 0x7f, 0x99, 0xb9, 0x01, 0xfd, 0x5d, 0x76, 0x79, 0x09, 0x2f, 0x68, 0xfb, 0xdc, 0x42,
  367. 0xd6, 0x12, 0xf0, 0xe8, 0x9b, 0xc6, 0x25, 0x6c, 0x41, 0x5f, 0xd4, 0xb5, 0x4f, 0x9a, 0xc8, 0x63,
  368. 0x94, 0xa6, 0xfa, 0xf2, 0x1b, 0xa7, 0x4a, 0x7d, 0xdf, 0xd6, 0x1b, 0xca, 0x23, 0x62, 0x82, 0x1f,
  369. 0x78, 0x00, 0x82, 0x95, 0x39, 0x81, 0xa3, 0x0f, 0xc9, 0x22, 0x48, 0x8b, 0xc3, 0x18, 0x1a, 0x68,
  370. 0xd0, 0x34, 0x83, 0x9a, 0xf6, 0xb3, 0xfe, 0x73, 0x1f, 0x88, 0x4c, 0xcd, 0x73, 0xb9, 0x9a, 0x02,
  371. 0x54, 0x74, 0xbc, 0x71, 0xe7, 0xad, 0x37, 0x15, 0x1d, 0xa5, 0xb9, 0xa0, 0x00, 0x78, 0xb3, 0x84,
  372. 0x1a, 0xbf, 0xd7, 0xc8, 0xd2, 0xe8, 0xf2, 0xc2, 0x73, 0xa3, 0x0b, 0xef, 0xf1, 0xec, 0x6f, 0xc4,
  373. 0x6f, 0xc0, 0xdb, 0x02, 0x01, 0xa5, 0x4f, 0x8a, 0x9d, 0x4e, 0xf1, 0xd2, 0x26, 0xc3, 0xa1, 0x99,
  374. 0x1a, 0xd2, 0x06, 0xb9, 0x02, 0x0f, 0x77, 0x2f, 0xc6, 0xf5, 0x9d, 0xad, 0x6f, 0x62, 0x7f, 0x88,
  375. 0x48, 0x71, 0x84, 0xd3, 0x61, 0xe1, 0x65, 0x5e, 0x19, 0x9b, 0x99, 0x6d, 0xfd, 0xde, 0xa3, 0xaf,
  376. 0x36, 0xa6, 0xce, 0xbf, 0xda, 0x98, 0x7a, 0x74, 0xb1, 0xa1, 0x9d, 0x5f, 0x6c, 0x68, 0xbf, 0x7e,
  377. 0xbc, 0x31, 0xf5, 0xc5, 0xe3, 0x0d, 0xed, 0xfc, 0xf1, 0xc6, 0xd4, 0xbf, 0x1f, 0x6f, 0x4c, 0x7d,
  378. 0xf8, 0xd2, 0xff, 0xf0, 0xaf, 0x6f, 0x9a, 0x47, 0x07, 0x57, 0xf0, 0xdf, 0xdf, 0xd7, 0xff, 0x1b,
  379. 0x00, 0x00, 0xff, 0xff, 0x68, 0x19, 0x36, 0x63, 0x1b, 0x18, 0x00, 0x00,
  380. }
  381. func (m *FolderDeviceConfiguration) Marshal() (dAtA []byte, err error) {
  382. size := m.ProtoSize()
  383. dAtA = make([]byte, size)
  384. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  385. if err != nil {
  386. return nil, err
  387. }
  388. return dAtA[:n], nil
  389. }
  390. func (m *FolderDeviceConfiguration) MarshalTo(dAtA []byte) (int, error) {
  391. size := m.ProtoSize()
  392. return m.MarshalToSizedBuffer(dAtA[:size])
  393. }
  394. func (m *FolderDeviceConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  395. i := len(dAtA)
  396. _ = i
  397. var l int
  398. _ = l
  399. if len(m.EncryptionPassword) > 0 {
  400. i -= len(m.EncryptionPassword)
  401. copy(dAtA[i:], m.EncryptionPassword)
  402. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.EncryptionPassword)))
  403. i--
  404. dAtA[i] = 0x1a
  405. }
  406. {
  407. size := m.IntroducedBy.ProtoSize()
  408. i -= size
  409. if _, err := m.IntroducedBy.MarshalTo(dAtA[i:]); err != nil {
  410. return 0, err
  411. }
  412. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  413. }
  414. i--
  415. dAtA[i] = 0x12
  416. {
  417. size := m.DeviceID.ProtoSize()
  418. i -= size
  419. if _, err := m.DeviceID.MarshalTo(dAtA[i:]); err != nil {
  420. return 0, err
  421. }
  422. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  423. }
  424. i--
  425. dAtA[i] = 0xa
  426. return len(dAtA) - i, nil
  427. }
  428. func (m *FolderConfiguration) Marshal() (dAtA []byte, err error) {
  429. size := m.ProtoSize()
  430. dAtA = make([]byte, size)
  431. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  432. if err != nil {
  433. return nil, err
  434. }
  435. return dAtA[:n], nil
  436. }
  437. func (m *FolderConfiguration) MarshalTo(dAtA []byte) (int, error) {
  438. size := m.ProtoSize()
  439. return m.MarshalToSizedBuffer(dAtA[:size])
  440. }
  441. func (m *FolderConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  442. i := len(dAtA)
  443. _ = i
  444. var l int
  445. _ = l
  446. if m.DeprecatedScanOwnership {
  447. i--
  448. if m.DeprecatedScanOwnership {
  449. dAtA[i] = 1
  450. } else {
  451. dAtA[i] = 0
  452. }
  453. i--
  454. dAtA[i] = 0x4
  455. i--
  456. dAtA[i] = 0xb2
  457. i--
  458. dAtA[i] = 0xd8
  459. }
  460. if m.DeprecatedPullers != 0 {
  461. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.DeprecatedPullers))
  462. i--
  463. dAtA[i] = 0x4
  464. i--
  465. dAtA[i] = 0xb2
  466. i--
  467. dAtA[i] = 0xd0
  468. }
  469. if m.DeprecatedMinDiskFreePct != 0 {
  470. i -= 8
  471. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DeprecatedMinDiskFreePct))))
  472. i--
  473. dAtA[i] = 0x4
  474. i--
  475. dAtA[i] = 0xb2
  476. i--
  477. dAtA[i] = 0xc9
  478. }
  479. if m.DeprecatedReadOnly {
  480. i--
  481. if m.DeprecatedReadOnly {
  482. dAtA[i] = 1
  483. } else {
  484. dAtA[i] = 0
  485. }
  486. i--
  487. dAtA[i] = 0x4
  488. i--
  489. dAtA[i] = 0xb2
  490. i--
  491. dAtA[i] = 0xc0
  492. }
  493. if m.FSWatcherTimeoutS != 0 {
  494. i -= 8
  495. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FSWatcherTimeoutS))))
  496. i--
  497. dAtA[i] = 0x2
  498. i--
  499. dAtA[i] = 0xc1
  500. }
  501. {
  502. size, err := m.XattrFilter.MarshalToSizedBuffer(dAtA[:i])
  503. if err != nil {
  504. return 0, err
  505. }
  506. i -= size
  507. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  508. }
  509. i--
  510. dAtA[i] = 0x2
  511. i--
  512. dAtA[i] = 0xba
  513. if m.SendXattrs {
  514. i--
  515. if m.SendXattrs {
  516. dAtA[i] = 1
  517. } else {
  518. dAtA[i] = 0
  519. }
  520. i--
  521. dAtA[i] = 0x2
  522. i--
  523. dAtA[i] = 0xb0
  524. }
  525. if m.SyncXattrs {
  526. i--
  527. if m.SyncXattrs {
  528. dAtA[i] = 1
  529. } else {
  530. dAtA[i] = 0
  531. }
  532. i--
  533. dAtA[i] = 0x2
  534. i--
  535. dAtA[i] = 0xa8
  536. }
  537. if m.SendOwnership {
  538. i--
  539. if m.SendOwnership {
  540. dAtA[i] = 1
  541. } else {
  542. dAtA[i] = 0
  543. }
  544. i--
  545. dAtA[i] = 0x2
  546. i--
  547. dAtA[i] = 0xa0
  548. }
  549. if m.SyncOwnership {
  550. i--
  551. if m.SyncOwnership {
  552. dAtA[i] = 1
  553. } else {
  554. dAtA[i] = 0
  555. }
  556. i--
  557. dAtA[i] = 0x2
  558. i--
  559. dAtA[i] = 0x98
  560. }
  561. if m.JunctionsAsDirs {
  562. i--
  563. if m.JunctionsAsDirs {
  564. dAtA[i] = 1
  565. } else {
  566. dAtA[i] = 0
  567. }
  568. i--
  569. dAtA[i] = 0x2
  570. i--
  571. dAtA[i] = 0x90
  572. }
  573. if m.CaseSensitiveFS {
  574. i--
  575. if m.CaseSensitiveFS {
  576. dAtA[i] = 1
  577. } else {
  578. dAtA[i] = 0
  579. }
  580. i--
  581. dAtA[i] = 0x2
  582. i--
  583. dAtA[i] = 0x88
  584. }
  585. if m.CopyRangeMethod != 0 {
  586. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.CopyRangeMethod))
  587. i--
  588. dAtA[i] = 0x2
  589. i--
  590. dAtA[i] = 0x80
  591. }
  592. if m.BlockPullOrder != 0 {
  593. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.BlockPullOrder))
  594. i--
  595. dAtA[i] = 0x1
  596. i--
  597. dAtA[i] = 0xf8
  598. }
  599. if m.DisableFsync {
  600. i--
  601. if m.DisableFsync {
  602. dAtA[i] = 1
  603. } else {
  604. dAtA[i] = 0
  605. }
  606. i--
  607. dAtA[i] = 0x1
  608. i--
  609. dAtA[i] = 0xf0
  610. }
  611. if m.MaxConcurrentWrites != 0 {
  612. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxConcurrentWrites))
  613. i--
  614. dAtA[i] = 0x1
  615. i--
  616. dAtA[i] = 0xe8
  617. }
  618. if m.RawModTimeWindowS != 0 {
  619. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.RawModTimeWindowS))
  620. i--
  621. dAtA[i] = 0x1
  622. i--
  623. dAtA[i] = 0xe0
  624. }
  625. if m.CopyOwnershipFromParent {
  626. i--
  627. if m.CopyOwnershipFromParent {
  628. dAtA[i] = 1
  629. } else {
  630. dAtA[i] = 0
  631. }
  632. i--
  633. dAtA[i] = 0x1
  634. i--
  635. dAtA[i] = 0xd8
  636. }
  637. if len(m.MarkerName) > 0 {
  638. i -= len(m.MarkerName)
  639. copy(dAtA[i:], m.MarkerName)
  640. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.MarkerName)))
  641. i--
  642. dAtA[i] = 0x1
  643. i--
  644. dAtA[i] = 0xd2
  645. }
  646. if m.WeakHashThresholdPct != 0 {
  647. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.WeakHashThresholdPct))
  648. i--
  649. dAtA[i] = 0x1
  650. i--
  651. dAtA[i] = 0xc8
  652. }
  653. if m.Paused {
  654. i--
  655. if m.Paused {
  656. dAtA[i] = 1
  657. } else {
  658. dAtA[i] = 0
  659. }
  660. i--
  661. dAtA[i] = 0x1
  662. i--
  663. dAtA[i] = 0xc0
  664. }
  665. if m.DisableTempIndexes {
  666. i--
  667. if m.DisableTempIndexes {
  668. dAtA[i] = 1
  669. } else {
  670. dAtA[i] = 0
  671. }
  672. i--
  673. dAtA[i] = 0x1
  674. i--
  675. dAtA[i] = 0xb8
  676. }
  677. if m.DisableSparseFiles {
  678. i--
  679. if m.DisableSparseFiles {
  680. dAtA[i] = 1
  681. } else {
  682. dAtA[i] = 0
  683. }
  684. i--
  685. dAtA[i] = 0x1
  686. i--
  687. dAtA[i] = 0xb0
  688. }
  689. if m.MaxConflicts != 0 {
  690. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxConflicts))
  691. i--
  692. dAtA[i] = 0x1
  693. i--
  694. dAtA[i] = 0xa8
  695. }
  696. if m.PullerPauseS != 0 {
  697. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.PullerPauseS))
  698. i--
  699. dAtA[i] = 0x1
  700. i--
  701. dAtA[i] = 0xa0
  702. }
  703. if m.ScanProgressIntervalS != 0 {
  704. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.ScanProgressIntervalS))
  705. i--
  706. dAtA[i] = 0x1
  707. i--
  708. dAtA[i] = 0x98
  709. }
  710. if m.IgnoreDelete {
  711. i--
  712. if m.IgnoreDelete {
  713. dAtA[i] = 1
  714. } else {
  715. dAtA[i] = 0
  716. }
  717. i--
  718. dAtA[i] = 0x1
  719. i--
  720. dAtA[i] = 0x90
  721. }
  722. if m.Order != 0 {
  723. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Order))
  724. i--
  725. dAtA[i] = 0x1
  726. i--
  727. dAtA[i] = 0x88
  728. }
  729. if m.Hashers != 0 {
  730. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Hashers))
  731. i--
  732. dAtA[i] = 0x1
  733. i--
  734. dAtA[i] = 0x80
  735. }
  736. if m.PullerMaxPendingKiB != 0 {
  737. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.PullerMaxPendingKiB))
  738. i--
  739. dAtA[i] = 0x78
  740. }
  741. if m.Copiers != 0 {
  742. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Copiers))
  743. i--
  744. dAtA[i] = 0x70
  745. }
  746. {
  747. size, err := m.Versioning.MarshalToSizedBuffer(dAtA[:i])
  748. if err != nil {
  749. return 0, err
  750. }
  751. i -= size
  752. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  753. }
  754. i--
  755. dAtA[i] = 0x6a
  756. {
  757. size, err := m.MinDiskFree.MarshalToSizedBuffer(dAtA[:i])
  758. if err != nil {
  759. return 0, err
  760. }
  761. i -= size
  762. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  763. }
  764. i--
  765. dAtA[i] = 0x62
  766. if m.AutoNormalize {
  767. i--
  768. if m.AutoNormalize {
  769. dAtA[i] = 1
  770. } else {
  771. dAtA[i] = 0
  772. }
  773. i--
  774. dAtA[i] = 0x58
  775. }
  776. if m.IgnorePerms {
  777. i--
  778. if m.IgnorePerms {
  779. dAtA[i] = 1
  780. } else {
  781. dAtA[i] = 0
  782. }
  783. i--
  784. dAtA[i] = 0x50
  785. }
  786. if m.FSWatcherDelayS != 0 {
  787. i -= 8
  788. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.FSWatcherDelayS))))
  789. i--
  790. dAtA[i] = 0x49
  791. }
  792. if m.FSWatcherEnabled {
  793. i--
  794. if m.FSWatcherEnabled {
  795. dAtA[i] = 1
  796. } else {
  797. dAtA[i] = 0
  798. }
  799. i--
  800. dAtA[i] = 0x40
  801. }
  802. if m.RescanIntervalS != 0 {
  803. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.RescanIntervalS))
  804. i--
  805. dAtA[i] = 0x38
  806. }
  807. if len(m.Devices) > 0 {
  808. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  809. {
  810. size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  811. if err != nil {
  812. return 0, err
  813. }
  814. i -= size
  815. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  816. }
  817. i--
  818. dAtA[i] = 0x32
  819. }
  820. }
  821. if m.Type != 0 {
  822. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Type))
  823. i--
  824. dAtA[i] = 0x28
  825. }
  826. if len(m.Path) > 0 {
  827. i -= len(m.Path)
  828. copy(dAtA[i:], m.Path)
  829. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.Path)))
  830. i--
  831. dAtA[i] = 0x22
  832. }
  833. if m.FilesystemType != 0 {
  834. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.FilesystemType))
  835. i--
  836. dAtA[i] = 0x18
  837. }
  838. if len(m.Label) > 0 {
  839. i -= len(m.Label)
  840. copy(dAtA[i:], m.Label)
  841. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.Label)))
  842. i--
  843. dAtA[i] = 0x12
  844. }
  845. if len(m.ID) > 0 {
  846. i -= len(m.ID)
  847. copy(dAtA[i:], m.ID)
  848. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.ID)))
  849. i--
  850. dAtA[i] = 0xa
  851. }
  852. return len(dAtA) - i, nil
  853. }
  854. func (m *XattrFilter) Marshal() (dAtA []byte, err error) {
  855. size := m.ProtoSize()
  856. dAtA = make([]byte, size)
  857. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  858. if err != nil {
  859. return nil, err
  860. }
  861. return dAtA[:n], nil
  862. }
  863. func (m *XattrFilter) MarshalTo(dAtA []byte) (int, error) {
  864. size := m.ProtoSize()
  865. return m.MarshalToSizedBuffer(dAtA[:size])
  866. }
  867. func (m *XattrFilter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  868. i := len(dAtA)
  869. _ = i
  870. var l int
  871. _ = l
  872. if m.MaxTotalSize != 0 {
  873. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxTotalSize))
  874. i--
  875. dAtA[i] = 0x18
  876. }
  877. if m.MaxSingleEntrySize != 0 {
  878. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxSingleEntrySize))
  879. i--
  880. dAtA[i] = 0x10
  881. }
  882. if len(m.Entries) > 0 {
  883. for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- {
  884. {
  885. size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  886. if err != nil {
  887. return 0, err
  888. }
  889. i -= size
  890. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  891. }
  892. i--
  893. dAtA[i] = 0xa
  894. }
  895. }
  896. return len(dAtA) - i, nil
  897. }
  898. func (m *XattrFilterEntry) Marshal() (dAtA []byte, err error) {
  899. size := m.ProtoSize()
  900. dAtA = make([]byte, size)
  901. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  902. if err != nil {
  903. return nil, err
  904. }
  905. return dAtA[:n], nil
  906. }
  907. func (m *XattrFilterEntry) MarshalTo(dAtA []byte) (int, error) {
  908. size := m.ProtoSize()
  909. return m.MarshalToSizedBuffer(dAtA[:size])
  910. }
  911. func (m *XattrFilterEntry) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  912. i := len(dAtA)
  913. _ = i
  914. var l int
  915. _ = l
  916. if m.Permit {
  917. i--
  918. if m.Permit {
  919. dAtA[i] = 1
  920. } else {
  921. dAtA[i] = 0
  922. }
  923. i--
  924. dAtA[i] = 0x10
  925. }
  926. if len(m.Match) > 0 {
  927. i -= len(m.Match)
  928. copy(dAtA[i:], m.Match)
  929. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.Match)))
  930. i--
  931. dAtA[i] = 0xa
  932. }
  933. return len(dAtA) - i, nil
  934. }
  935. func encodeVarintFolderconfiguration(dAtA []byte, offset int, v uint64) int {
  936. offset -= sovFolderconfiguration(v)
  937. base := offset
  938. for v >= 1<<7 {
  939. dAtA[offset] = uint8(v&0x7f | 0x80)
  940. v >>= 7
  941. offset++
  942. }
  943. dAtA[offset] = uint8(v)
  944. return base
  945. }
  946. func (m *FolderDeviceConfiguration) ProtoSize() (n int) {
  947. if m == nil {
  948. return 0
  949. }
  950. var l int
  951. _ = l
  952. l = m.DeviceID.ProtoSize()
  953. n += 1 + l + sovFolderconfiguration(uint64(l))
  954. l = m.IntroducedBy.ProtoSize()
  955. n += 1 + l + sovFolderconfiguration(uint64(l))
  956. l = len(m.EncryptionPassword)
  957. if l > 0 {
  958. n += 1 + l + sovFolderconfiguration(uint64(l))
  959. }
  960. return n
  961. }
  962. func (m *FolderConfiguration) ProtoSize() (n int) {
  963. if m == nil {
  964. return 0
  965. }
  966. var l int
  967. _ = l
  968. l = len(m.ID)
  969. if l > 0 {
  970. n += 1 + l + sovFolderconfiguration(uint64(l))
  971. }
  972. l = len(m.Label)
  973. if l > 0 {
  974. n += 1 + l + sovFolderconfiguration(uint64(l))
  975. }
  976. if m.FilesystemType != 0 {
  977. n += 1 + sovFolderconfiguration(uint64(m.FilesystemType))
  978. }
  979. l = len(m.Path)
  980. if l > 0 {
  981. n += 1 + l + sovFolderconfiguration(uint64(l))
  982. }
  983. if m.Type != 0 {
  984. n += 1 + sovFolderconfiguration(uint64(m.Type))
  985. }
  986. if len(m.Devices) > 0 {
  987. for _, e := range m.Devices {
  988. l = e.ProtoSize()
  989. n += 1 + l + sovFolderconfiguration(uint64(l))
  990. }
  991. }
  992. if m.RescanIntervalS != 0 {
  993. n += 1 + sovFolderconfiguration(uint64(m.RescanIntervalS))
  994. }
  995. if m.FSWatcherEnabled {
  996. n += 2
  997. }
  998. if m.FSWatcherDelayS != 0 {
  999. n += 9
  1000. }
  1001. if m.IgnorePerms {
  1002. n += 2
  1003. }
  1004. if m.AutoNormalize {
  1005. n += 2
  1006. }
  1007. l = m.MinDiskFree.ProtoSize()
  1008. n += 1 + l + sovFolderconfiguration(uint64(l))
  1009. l = m.Versioning.ProtoSize()
  1010. n += 1 + l + sovFolderconfiguration(uint64(l))
  1011. if m.Copiers != 0 {
  1012. n += 1 + sovFolderconfiguration(uint64(m.Copiers))
  1013. }
  1014. if m.PullerMaxPendingKiB != 0 {
  1015. n += 1 + sovFolderconfiguration(uint64(m.PullerMaxPendingKiB))
  1016. }
  1017. if m.Hashers != 0 {
  1018. n += 2 + sovFolderconfiguration(uint64(m.Hashers))
  1019. }
  1020. if m.Order != 0 {
  1021. n += 2 + sovFolderconfiguration(uint64(m.Order))
  1022. }
  1023. if m.IgnoreDelete {
  1024. n += 3
  1025. }
  1026. if m.ScanProgressIntervalS != 0 {
  1027. n += 2 + sovFolderconfiguration(uint64(m.ScanProgressIntervalS))
  1028. }
  1029. if m.PullerPauseS != 0 {
  1030. n += 2 + sovFolderconfiguration(uint64(m.PullerPauseS))
  1031. }
  1032. if m.MaxConflicts != 0 {
  1033. n += 2 + sovFolderconfiguration(uint64(m.MaxConflicts))
  1034. }
  1035. if m.DisableSparseFiles {
  1036. n += 3
  1037. }
  1038. if m.DisableTempIndexes {
  1039. n += 3
  1040. }
  1041. if m.Paused {
  1042. n += 3
  1043. }
  1044. if m.WeakHashThresholdPct != 0 {
  1045. n += 2 + sovFolderconfiguration(uint64(m.WeakHashThresholdPct))
  1046. }
  1047. l = len(m.MarkerName)
  1048. if l > 0 {
  1049. n += 2 + l + sovFolderconfiguration(uint64(l))
  1050. }
  1051. if m.CopyOwnershipFromParent {
  1052. n += 3
  1053. }
  1054. if m.RawModTimeWindowS != 0 {
  1055. n += 2 + sovFolderconfiguration(uint64(m.RawModTimeWindowS))
  1056. }
  1057. if m.MaxConcurrentWrites != 0 {
  1058. n += 2 + sovFolderconfiguration(uint64(m.MaxConcurrentWrites))
  1059. }
  1060. if m.DisableFsync {
  1061. n += 3
  1062. }
  1063. if m.BlockPullOrder != 0 {
  1064. n += 2 + sovFolderconfiguration(uint64(m.BlockPullOrder))
  1065. }
  1066. if m.CopyRangeMethod != 0 {
  1067. n += 2 + sovFolderconfiguration(uint64(m.CopyRangeMethod))
  1068. }
  1069. if m.CaseSensitiveFS {
  1070. n += 3
  1071. }
  1072. if m.JunctionsAsDirs {
  1073. n += 3
  1074. }
  1075. if m.SyncOwnership {
  1076. n += 3
  1077. }
  1078. if m.SendOwnership {
  1079. n += 3
  1080. }
  1081. if m.SyncXattrs {
  1082. n += 3
  1083. }
  1084. if m.SendXattrs {
  1085. n += 3
  1086. }
  1087. l = m.XattrFilter.ProtoSize()
  1088. n += 2 + l + sovFolderconfiguration(uint64(l))
  1089. if m.FSWatcherTimeoutS != 0 {
  1090. n += 10
  1091. }
  1092. if m.DeprecatedReadOnly {
  1093. n += 4
  1094. }
  1095. if m.DeprecatedMinDiskFreePct != 0 {
  1096. n += 11
  1097. }
  1098. if m.DeprecatedPullers != 0 {
  1099. n += 3 + sovFolderconfiguration(uint64(m.DeprecatedPullers))
  1100. }
  1101. if m.DeprecatedScanOwnership {
  1102. n += 4
  1103. }
  1104. return n
  1105. }
  1106. func (m *XattrFilter) ProtoSize() (n int) {
  1107. if m == nil {
  1108. return 0
  1109. }
  1110. var l int
  1111. _ = l
  1112. if len(m.Entries) > 0 {
  1113. for _, e := range m.Entries {
  1114. l = e.ProtoSize()
  1115. n += 1 + l + sovFolderconfiguration(uint64(l))
  1116. }
  1117. }
  1118. if m.MaxSingleEntrySize != 0 {
  1119. n += 1 + sovFolderconfiguration(uint64(m.MaxSingleEntrySize))
  1120. }
  1121. if m.MaxTotalSize != 0 {
  1122. n += 1 + sovFolderconfiguration(uint64(m.MaxTotalSize))
  1123. }
  1124. return n
  1125. }
  1126. func (m *XattrFilterEntry) ProtoSize() (n int) {
  1127. if m == nil {
  1128. return 0
  1129. }
  1130. var l int
  1131. _ = l
  1132. l = len(m.Match)
  1133. if l > 0 {
  1134. n += 1 + l + sovFolderconfiguration(uint64(l))
  1135. }
  1136. if m.Permit {
  1137. n += 2
  1138. }
  1139. return n
  1140. }
  1141. func sovFolderconfiguration(x uint64) (n int) {
  1142. return (math_bits.Len64(x|1) + 6) / 7
  1143. }
  1144. func sozFolderconfiguration(x uint64) (n int) {
  1145. return sovFolderconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  1146. }
  1147. func (m *FolderDeviceConfiguration) Unmarshal(dAtA []byte) error {
  1148. l := len(dAtA)
  1149. iNdEx := 0
  1150. for iNdEx < l {
  1151. preIndex := iNdEx
  1152. var wire uint64
  1153. for shift := uint(0); ; shift += 7 {
  1154. if shift >= 64 {
  1155. return ErrIntOverflowFolderconfiguration
  1156. }
  1157. if iNdEx >= l {
  1158. return io.ErrUnexpectedEOF
  1159. }
  1160. b := dAtA[iNdEx]
  1161. iNdEx++
  1162. wire |= uint64(b&0x7F) << shift
  1163. if b < 0x80 {
  1164. break
  1165. }
  1166. }
  1167. fieldNum := int32(wire >> 3)
  1168. wireType := int(wire & 0x7)
  1169. if wireType == 4 {
  1170. return fmt.Errorf("proto: FolderDeviceConfiguration: wiretype end group for non-group")
  1171. }
  1172. if fieldNum <= 0 {
  1173. return fmt.Errorf("proto: FolderDeviceConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  1174. }
  1175. switch fieldNum {
  1176. case 1:
  1177. if wireType != 2 {
  1178. return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType)
  1179. }
  1180. var byteLen int
  1181. for shift := uint(0); ; shift += 7 {
  1182. if shift >= 64 {
  1183. return ErrIntOverflowFolderconfiguration
  1184. }
  1185. if iNdEx >= l {
  1186. return io.ErrUnexpectedEOF
  1187. }
  1188. b := dAtA[iNdEx]
  1189. iNdEx++
  1190. byteLen |= int(b&0x7F) << shift
  1191. if b < 0x80 {
  1192. break
  1193. }
  1194. }
  1195. if byteLen < 0 {
  1196. return ErrInvalidLengthFolderconfiguration
  1197. }
  1198. postIndex := iNdEx + byteLen
  1199. if postIndex < 0 {
  1200. return ErrInvalidLengthFolderconfiguration
  1201. }
  1202. if postIndex > l {
  1203. return io.ErrUnexpectedEOF
  1204. }
  1205. if err := m.DeviceID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1206. return err
  1207. }
  1208. iNdEx = postIndex
  1209. case 2:
  1210. if wireType != 2 {
  1211. return fmt.Errorf("proto: wrong wireType = %d for field IntroducedBy", wireType)
  1212. }
  1213. var byteLen int
  1214. for shift := uint(0); ; shift += 7 {
  1215. if shift >= 64 {
  1216. return ErrIntOverflowFolderconfiguration
  1217. }
  1218. if iNdEx >= l {
  1219. return io.ErrUnexpectedEOF
  1220. }
  1221. b := dAtA[iNdEx]
  1222. iNdEx++
  1223. byteLen |= int(b&0x7F) << shift
  1224. if b < 0x80 {
  1225. break
  1226. }
  1227. }
  1228. if byteLen < 0 {
  1229. return ErrInvalidLengthFolderconfiguration
  1230. }
  1231. postIndex := iNdEx + byteLen
  1232. if postIndex < 0 {
  1233. return ErrInvalidLengthFolderconfiguration
  1234. }
  1235. if postIndex > l {
  1236. return io.ErrUnexpectedEOF
  1237. }
  1238. if err := m.IntroducedBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1239. return err
  1240. }
  1241. iNdEx = postIndex
  1242. case 3:
  1243. if wireType != 2 {
  1244. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionPassword", wireType)
  1245. }
  1246. var stringLen uint64
  1247. for shift := uint(0); ; shift += 7 {
  1248. if shift >= 64 {
  1249. return ErrIntOverflowFolderconfiguration
  1250. }
  1251. if iNdEx >= l {
  1252. return io.ErrUnexpectedEOF
  1253. }
  1254. b := dAtA[iNdEx]
  1255. iNdEx++
  1256. stringLen |= uint64(b&0x7F) << shift
  1257. if b < 0x80 {
  1258. break
  1259. }
  1260. }
  1261. intStringLen := int(stringLen)
  1262. if intStringLen < 0 {
  1263. return ErrInvalidLengthFolderconfiguration
  1264. }
  1265. postIndex := iNdEx + intStringLen
  1266. if postIndex < 0 {
  1267. return ErrInvalidLengthFolderconfiguration
  1268. }
  1269. if postIndex > l {
  1270. return io.ErrUnexpectedEOF
  1271. }
  1272. m.EncryptionPassword = string(dAtA[iNdEx:postIndex])
  1273. iNdEx = postIndex
  1274. default:
  1275. iNdEx = preIndex
  1276. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  1277. if err != nil {
  1278. return err
  1279. }
  1280. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1281. return ErrInvalidLengthFolderconfiguration
  1282. }
  1283. if (iNdEx + skippy) > l {
  1284. return io.ErrUnexpectedEOF
  1285. }
  1286. iNdEx += skippy
  1287. }
  1288. }
  1289. if iNdEx > l {
  1290. return io.ErrUnexpectedEOF
  1291. }
  1292. return nil
  1293. }
  1294. func (m *FolderConfiguration) Unmarshal(dAtA []byte) error {
  1295. l := len(dAtA)
  1296. iNdEx := 0
  1297. for iNdEx < l {
  1298. preIndex := iNdEx
  1299. var wire uint64
  1300. for shift := uint(0); ; shift += 7 {
  1301. if shift >= 64 {
  1302. return ErrIntOverflowFolderconfiguration
  1303. }
  1304. if iNdEx >= l {
  1305. return io.ErrUnexpectedEOF
  1306. }
  1307. b := dAtA[iNdEx]
  1308. iNdEx++
  1309. wire |= uint64(b&0x7F) << shift
  1310. if b < 0x80 {
  1311. break
  1312. }
  1313. }
  1314. fieldNum := int32(wire >> 3)
  1315. wireType := int(wire & 0x7)
  1316. if wireType == 4 {
  1317. return fmt.Errorf("proto: FolderConfiguration: wiretype end group for non-group")
  1318. }
  1319. if fieldNum <= 0 {
  1320. return fmt.Errorf("proto: FolderConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  1321. }
  1322. switch fieldNum {
  1323. case 1:
  1324. if wireType != 2 {
  1325. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  1326. }
  1327. var stringLen uint64
  1328. for shift := uint(0); ; shift += 7 {
  1329. if shift >= 64 {
  1330. return ErrIntOverflowFolderconfiguration
  1331. }
  1332. if iNdEx >= l {
  1333. return io.ErrUnexpectedEOF
  1334. }
  1335. b := dAtA[iNdEx]
  1336. iNdEx++
  1337. stringLen |= uint64(b&0x7F) << shift
  1338. if b < 0x80 {
  1339. break
  1340. }
  1341. }
  1342. intStringLen := int(stringLen)
  1343. if intStringLen < 0 {
  1344. return ErrInvalidLengthFolderconfiguration
  1345. }
  1346. postIndex := iNdEx + intStringLen
  1347. if postIndex < 0 {
  1348. return ErrInvalidLengthFolderconfiguration
  1349. }
  1350. if postIndex > l {
  1351. return io.ErrUnexpectedEOF
  1352. }
  1353. m.ID = string(dAtA[iNdEx:postIndex])
  1354. iNdEx = postIndex
  1355. case 2:
  1356. if wireType != 2 {
  1357. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  1358. }
  1359. var stringLen uint64
  1360. for shift := uint(0); ; shift += 7 {
  1361. if shift >= 64 {
  1362. return ErrIntOverflowFolderconfiguration
  1363. }
  1364. if iNdEx >= l {
  1365. return io.ErrUnexpectedEOF
  1366. }
  1367. b := dAtA[iNdEx]
  1368. iNdEx++
  1369. stringLen |= uint64(b&0x7F) << shift
  1370. if b < 0x80 {
  1371. break
  1372. }
  1373. }
  1374. intStringLen := int(stringLen)
  1375. if intStringLen < 0 {
  1376. return ErrInvalidLengthFolderconfiguration
  1377. }
  1378. postIndex := iNdEx + intStringLen
  1379. if postIndex < 0 {
  1380. return ErrInvalidLengthFolderconfiguration
  1381. }
  1382. if postIndex > l {
  1383. return io.ErrUnexpectedEOF
  1384. }
  1385. m.Label = string(dAtA[iNdEx:postIndex])
  1386. iNdEx = postIndex
  1387. case 3:
  1388. if wireType != 0 {
  1389. return fmt.Errorf("proto: wrong wireType = %d for field FilesystemType", wireType)
  1390. }
  1391. m.FilesystemType = 0
  1392. for shift := uint(0); ; shift += 7 {
  1393. if shift >= 64 {
  1394. return ErrIntOverflowFolderconfiguration
  1395. }
  1396. if iNdEx >= l {
  1397. return io.ErrUnexpectedEOF
  1398. }
  1399. b := dAtA[iNdEx]
  1400. iNdEx++
  1401. m.FilesystemType |= fs.FilesystemType(b&0x7F) << shift
  1402. if b < 0x80 {
  1403. break
  1404. }
  1405. }
  1406. case 4:
  1407. if wireType != 2 {
  1408. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  1409. }
  1410. var stringLen uint64
  1411. for shift := uint(0); ; shift += 7 {
  1412. if shift >= 64 {
  1413. return ErrIntOverflowFolderconfiguration
  1414. }
  1415. if iNdEx >= l {
  1416. return io.ErrUnexpectedEOF
  1417. }
  1418. b := dAtA[iNdEx]
  1419. iNdEx++
  1420. stringLen |= uint64(b&0x7F) << shift
  1421. if b < 0x80 {
  1422. break
  1423. }
  1424. }
  1425. intStringLen := int(stringLen)
  1426. if intStringLen < 0 {
  1427. return ErrInvalidLengthFolderconfiguration
  1428. }
  1429. postIndex := iNdEx + intStringLen
  1430. if postIndex < 0 {
  1431. return ErrInvalidLengthFolderconfiguration
  1432. }
  1433. if postIndex > l {
  1434. return io.ErrUnexpectedEOF
  1435. }
  1436. m.Path = string(dAtA[iNdEx:postIndex])
  1437. iNdEx = postIndex
  1438. case 5:
  1439. if wireType != 0 {
  1440. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1441. }
  1442. m.Type = 0
  1443. for shift := uint(0); ; shift += 7 {
  1444. if shift >= 64 {
  1445. return ErrIntOverflowFolderconfiguration
  1446. }
  1447. if iNdEx >= l {
  1448. return io.ErrUnexpectedEOF
  1449. }
  1450. b := dAtA[iNdEx]
  1451. iNdEx++
  1452. m.Type |= FolderType(b&0x7F) << shift
  1453. if b < 0x80 {
  1454. break
  1455. }
  1456. }
  1457. case 6:
  1458. if wireType != 2 {
  1459. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1460. }
  1461. var msglen int
  1462. for shift := uint(0); ; shift += 7 {
  1463. if shift >= 64 {
  1464. return ErrIntOverflowFolderconfiguration
  1465. }
  1466. if iNdEx >= l {
  1467. return io.ErrUnexpectedEOF
  1468. }
  1469. b := dAtA[iNdEx]
  1470. iNdEx++
  1471. msglen |= int(b&0x7F) << shift
  1472. if b < 0x80 {
  1473. break
  1474. }
  1475. }
  1476. if msglen < 0 {
  1477. return ErrInvalidLengthFolderconfiguration
  1478. }
  1479. postIndex := iNdEx + msglen
  1480. if postIndex < 0 {
  1481. return ErrInvalidLengthFolderconfiguration
  1482. }
  1483. if postIndex > l {
  1484. return io.ErrUnexpectedEOF
  1485. }
  1486. m.Devices = append(m.Devices, FolderDeviceConfiguration{})
  1487. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1488. return err
  1489. }
  1490. iNdEx = postIndex
  1491. case 7:
  1492. if wireType != 0 {
  1493. return fmt.Errorf("proto: wrong wireType = %d for field RescanIntervalS", wireType)
  1494. }
  1495. m.RescanIntervalS = 0
  1496. for shift := uint(0); ; shift += 7 {
  1497. if shift >= 64 {
  1498. return ErrIntOverflowFolderconfiguration
  1499. }
  1500. if iNdEx >= l {
  1501. return io.ErrUnexpectedEOF
  1502. }
  1503. b := dAtA[iNdEx]
  1504. iNdEx++
  1505. m.RescanIntervalS |= int(b&0x7F) << shift
  1506. if b < 0x80 {
  1507. break
  1508. }
  1509. }
  1510. case 8:
  1511. if wireType != 0 {
  1512. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherEnabled", wireType)
  1513. }
  1514. var v int
  1515. for shift := uint(0); ; shift += 7 {
  1516. if shift >= 64 {
  1517. return ErrIntOverflowFolderconfiguration
  1518. }
  1519. if iNdEx >= l {
  1520. return io.ErrUnexpectedEOF
  1521. }
  1522. b := dAtA[iNdEx]
  1523. iNdEx++
  1524. v |= int(b&0x7F) << shift
  1525. if b < 0x80 {
  1526. break
  1527. }
  1528. }
  1529. m.FSWatcherEnabled = bool(v != 0)
  1530. case 9:
  1531. if wireType != 1 {
  1532. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherDelayS", wireType)
  1533. }
  1534. var v uint64
  1535. if (iNdEx + 8) > l {
  1536. return io.ErrUnexpectedEOF
  1537. }
  1538. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1539. iNdEx += 8
  1540. m.FSWatcherDelayS = float64(math.Float64frombits(v))
  1541. case 10:
  1542. if wireType != 0 {
  1543. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePerms", wireType)
  1544. }
  1545. var v int
  1546. for shift := uint(0); ; shift += 7 {
  1547. if shift >= 64 {
  1548. return ErrIntOverflowFolderconfiguration
  1549. }
  1550. if iNdEx >= l {
  1551. return io.ErrUnexpectedEOF
  1552. }
  1553. b := dAtA[iNdEx]
  1554. iNdEx++
  1555. v |= int(b&0x7F) << shift
  1556. if b < 0x80 {
  1557. break
  1558. }
  1559. }
  1560. m.IgnorePerms = bool(v != 0)
  1561. case 11:
  1562. if wireType != 0 {
  1563. return fmt.Errorf("proto: wrong wireType = %d for field AutoNormalize", wireType)
  1564. }
  1565. var v int
  1566. for shift := uint(0); ; shift += 7 {
  1567. if shift >= 64 {
  1568. return ErrIntOverflowFolderconfiguration
  1569. }
  1570. if iNdEx >= l {
  1571. return io.ErrUnexpectedEOF
  1572. }
  1573. b := dAtA[iNdEx]
  1574. iNdEx++
  1575. v |= int(b&0x7F) << shift
  1576. if b < 0x80 {
  1577. break
  1578. }
  1579. }
  1580. m.AutoNormalize = bool(v != 0)
  1581. case 12:
  1582. if wireType != 2 {
  1583. return fmt.Errorf("proto: wrong wireType = %d for field MinDiskFree", wireType)
  1584. }
  1585. var msglen int
  1586. for shift := uint(0); ; shift += 7 {
  1587. if shift >= 64 {
  1588. return ErrIntOverflowFolderconfiguration
  1589. }
  1590. if iNdEx >= l {
  1591. return io.ErrUnexpectedEOF
  1592. }
  1593. b := dAtA[iNdEx]
  1594. iNdEx++
  1595. msglen |= int(b&0x7F) << shift
  1596. if b < 0x80 {
  1597. break
  1598. }
  1599. }
  1600. if msglen < 0 {
  1601. return ErrInvalidLengthFolderconfiguration
  1602. }
  1603. postIndex := iNdEx + msglen
  1604. if postIndex < 0 {
  1605. return ErrInvalidLengthFolderconfiguration
  1606. }
  1607. if postIndex > l {
  1608. return io.ErrUnexpectedEOF
  1609. }
  1610. if err := m.MinDiskFree.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1611. return err
  1612. }
  1613. iNdEx = postIndex
  1614. case 13:
  1615. if wireType != 2 {
  1616. return fmt.Errorf("proto: wrong wireType = %d for field Versioning", wireType)
  1617. }
  1618. var msglen int
  1619. for shift := uint(0); ; shift += 7 {
  1620. if shift >= 64 {
  1621. return ErrIntOverflowFolderconfiguration
  1622. }
  1623. if iNdEx >= l {
  1624. return io.ErrUnexpectedEOF
  1625. }
  1626. b := dAtA[iNdEx]
  1627. iNdEx++
  1628. msglen |= int(b&0x7F) << shift
  1629. if b < 0x80 {
  1630. break
  1631. }
  1632. }
  1633. if msglen < 0 {
  1634. return ErrInvalidLengthFolderconfiguration
  1635. }
  1636. postIndex := iNdEx + msglen
  1637. if postIndex < 0 {
  1638. return ErrInvalidLengthFolderconfiguration
  1639. }
  1640. if postIndex > l {
  1641. return io.ErrUnexpectedEOF
  1642. }
  1643. if err := m.Versioning.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1644. return err
  1645. }
  1646. iNdEx = postIndex
  1647. case 14:
  1648. if wireType != 0 {
  1649. return fmt.Errorf("proto: wrong wireType = %d for field Copiers", wireType)
  1650. }
  1651. m.Copiers = 0
  1652. for shift := uint(0); ; shift += 7 {
  1653. if shift >= 64 {
  1654. return ErrIntOverflowFolderconfiguration
  1655. }
  1656. if iNdEx >= l {
  1657. return io.ErrUnexpectedEOF
  1658. }
  1659. b := dAtA[iNdEx]
  1660. iNdEx++
  1661. m.Copiers |= int(b&0x7F) << shift
  1662. if b < 0x80 {
  1663. break
  1664. }
  1665. }
  1666. case 15:
  1667. if wireType != 0 {
  1668. return fmt.Errorf("proto: wrong wireType = %d for field PullerMaxPendingKiB", wireType)
  1669. }
  1670. m.PullerMaxPendingKiB = 0
  1671. for shift := uint(0); ; shift += 7 {
  1672. if shift >= 64 {
  1673. return ErrIntOverflowFolderconfiguration
  1674. }
  1675. if iNdEx >= l {
  1676. return io.ErrUnexpectedEOF
  1677. }
  1678. b := dAtA[iNdEx]
  1679. iNdEx++
  1680. m.PullerMaxPendingKiB |= int(b&0x7F) << shift
  1681. if b < 0x80 {
  1682. break
  1683. }
  1684. }
  1685. case 16:
  1686. if wireType != 0 {
  1687. return fmt.Errorf("proto: wrong wireType = %d for field Hashers", wireType)
  1688. }
  1689. m.Hashers = 0
  1690. for shift := uint(0); ; shift += 7 {
  1691. if shift >= 64 {
  1692. return ErrIntOverflowFolderconfiguration
  1693. }
  1694. if iNdEx >= l {
  1695. return io.ErrUnexpectedEOF
  1696. }
  1697. b := dAtA[iNdEx]
  1698. iNdEx++
  1699. m.Hashers |= int(b&0x7F) << shift
  1700. if b < 0x80 {
  1701. break
  1702. }
  1703. }
  1704. case 17:
  1705. if wireType != 0 {
  1706. return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType)
  1707. }
  1708. m.Order = 0
  1709. for shift := uint(0); ; shift += 7 {
  1710. if shift >= 64 {
  1711. return ErrIntOverflowFolderconfiguration
  1712. }
  1713. if iNdEx >= l {
  1714. return io.ErrUnexpectedEOF
  1715. }
  1716. b := dAtA[iNdEx]
  1717. iNdEx++
  1718. m.Order |= PullOrder(b&0x7F) << shift
  1719. if b < 0x80 {
  1720. break
  1721. }
  1722. }
  1723. case 18:
  1724. if wireType != 0 {
  1725. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  1726. }
  1727. var v int
  1728. for shift := uint(0); ; shift += 7 {
  1729. if shift >= 64 {
  1730. return ErrIntOverflowFolderconfiguration
  1731. }
  1732. if iNdEx >= l {
  1733. return io.ErrUnexpectedEOF
  1734. }
  1735. b := dAtA[iNdEx]
  1736. iNdEx++
  1737. v |= int(b&0x7F) << shift
  1738. if b < 0x80 {
  1739. break
  1740. }
  1741. }
  1742. m.IgnoreDelete = bool(v != 0)
  1743. case 19:
  1744. if wireType != 0 {
  1745. return fmt.Errorf("proto: wrong wireType = %d for field ScanProgressIntervalS", wireType)
  1746. }
  1747. m.ScanProgressIntervalS = 0
  1748. for shift := uint(0); ; shift += 7 {
  1749. if shift >= 64 {
  1750. return ErrIntOverflowFolderconfiguration
  1751. }
  1752. if iNdEx >= l {
  1753. return io.ErrUnexpectedEOF
  1754. }
  1755. b := dAtA[iNdEx]
  1756. iNdEx++
  1757. m.ScanProgressIntervalS |= int(b&0x7F) << shift
  1758. if b < 0x80 {
  1759. break
  1760. }
  1761. }
  1762. case 20:
  1763. if wireType != 0 {
  1764. return fmt.Errorf("proto: wrong wireType = %d for field PullerPauseS", wireType)
  1765. }
  1766. m.PullerPauseS = 0
  1767. for shift := uint(0); ; shift += 7 {
  1768. if shift >= 64 {
  1769. return ErrIntOverflowFolderconfiguration
  1770. }
  1771. if iNdEx >= l {
  1772. return io.ErrUnexpectedEOF
  1773. }
  1774. b := dAtA[iNdEx]
  1775. iNdEx++
  1776. m.PullerPauseS |= int(b&0x7F) << shift
  1777. if b < 0x80 {
  1778. break
  1779. }
  1780. }
  1781. case 21:
  1782. if wireType != 0 {
  1783. return fmt.Errorf("proto: wrong wireType = %d for field MaxConflicts", wireType)
  1784. }
  1785. m.MaxConflicts = 0
  1786. for shift := uint(0); ; shift += 7 {
  1787. if shift >= 64 {
  1788. return ErrIntOverflowFolderconfiguration
  1789. }
  1790. if iNdEx >= l {
  1791. return io.ErrUnexpectedEOF
  1792. }
  1793. b := dAtA[iNdEx]
  1794. iNdEx++
  1795. m.MaxConflicts |= int(b&0x7F) << shift
  1796. if b < 0x80 {
  1797. break
  1798. }
  1799. }
  1800. case 22:
  1801. if wireType != 0 {
  1802. return fmt.Errorf("proto: wrong wireType = %d for field DisableSparseFiles", wireType)
  1803. }
  1804. var v int
  1805. for shift := uint(0); ; shift += 7 {
  1806. if shift >= 64 {
  1807. return ErrIntOverflowFolderconfiguration
  1808. }
  1809. if iNdEx >= l {
  1810. return io.ErrUnexpectedEOF
  1811. }
  1812. b := dAtA[iNdEx]
  1813. iNdEx++
  1814. v |= int(b&0x7F) << shift
  1815. if b < 0x80 {
  1816. break
  1817. }
  1818. }
  1819. m.DisableSparseFiles = bool(v != 0)
  1820. case 23:
  1821. if wireType != 0 {
  1822. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  1823. }
  1824. var v int
  1825. for shift := uint(0); ; shift += 7 {
  1826. if shift >= 64 {
  1827. return ErrIntOverflowFolderconfiguration
  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.DisableTempIndexes = bool(v != 0)
  1840. case 24:
  1841. if wireType != 0 {
  1842. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  1843. }
  1844. var v int
  1845. for shift := uint(0); ; shift += 7 {
  1846. if shift >= 64 {
  1847. return ErrIntOverflowFolderconfiguration
  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.Paused = bool(v != 0)
  1860. case 25:
  1861. if wireType != 0 {
  1862. return fmt.Errorf("proto: wrong wireType = %d for field WeakHashThresholdPct", wireType)
  1863. }
  1864. m.WeakHashThresholdPct = 0
  1865. for shift := uint(0); ; shift += 7 {
  1866. if shift >= 64 {
  1867. return ErrIntOverflowFolderconfiguration
  1868. }
  1869. if iNdEx >= l {
  1870. return io.ErrUnexpectedEOF
  1871. }
  1872. b := dAtA[iNdEx]
  1873. iNdEx++
  1874. m.WeakHashThresholdPct |= int(b&0x7F) << shift
  1875. if b < 0x80 {
  1876. break
  1877. }
  1878. }
  1879. case 26:
  1880. if wireType != 2 {
  1881. return fmt.Errorf("proto: wrong wireType = %d for field MarkerName", wireType)
  1882. }
  1883. var stringLen uint64
  1884. for shift := uint(0); ; shift += 7 {
  1885. if shift >= 64 {
  1886. return ErrIntOverflowFolderconfiguration
  1887. }
  1888. if iNdEx >= l {
  1889. return io.ErrUnexpectedEOF
  1890. }
  1891. b := dAtA[iNdEx]
  1892. iNdEx++
  1893. stringLen |= uint64(b&0x7F) << shift
  1894. if b < 0x80 {
  1895. break
  1896. }
  1897. }
  1898. intStringLen := int(stringLen)
  1899. if intStringLen < 0 {
  1900. return ErrInvalidLengthFolderconfiguration
  1901. }
  1902. postIndex := iNdEx + intStringLen
  1903. if postIndex < 0 {
  1904. return ErrInvalidLengthFolderconfiguration
  1905. }
  1906. if postIndex > l {
  1907. return io.ErrUnexpectedEOF
  1908. }
  1909. m.MarkerName = string(dAtA[iNdEx:postIndex])
  1910. iNdEx = postIndex
  1911. case 27:
  1912. if wireType != 0 {
  1913. return fmt.Errorf("proto: wrong wireType = %d for field CopyOwnershipFromParent", wireType)
  1914. }
  1915. var v int
  1916. for shift := uint(0); ; shift += 7 {
  1917. if shift >= 64 {
  1918. return ErrIntOverflowFolderconfiguration
  1919. }
  1920. if iNdEx >= l {
  1921. return io.ErrUnexpectedEOF
  1922. }
  1923. b := dAtA[iNdEx]
  1924. iNdEx++
  1925. v |= int(b&0x7F) << shift
  1926. if b < 0x80 {
  1927. break
  1928. }
  1929. }
  1930. m.CopyOwnershipFromParent = bool(v != 0)
  1931. case 28:
  1932. if wireType != 0 {
  1933. return fmt.Errorf("proto: wrong wireType = %d for field RawModTimeWindowS", wireType)
  1934. }
  1935. m.RawModTimeWindowS = 0
  1936. for shift := uint(0); ; shift += 7 {
  1937. if shift >= 64 {
  1938. return ErrIntOverflowFolderconfiguration
  1939. }
  1940. if iNdEx >= l {
  1941. return io.ErrUnexpectedEOF
  1942. }
  1943. b := dAtA[iNdEx]
  1944. iNdEx++
  1945. m.RawModTimeWindowS |= int(b&0x7F) << shift
  1946. if b < 0x80 {
  1947. break
  1948. }
  1949. }
  1950. case 29:
  1951. if wireType != 0 {
  1952. return fmt.Errorf("proto: wrong wireType = %d for field MaxConcurrentWrites", wireType)
  1953. }
  1954. m.MaxConcurrentWrites = 0
  1955. for shift := uint(0); ; shift += 7 {
  1956. if shift >= 64 {
  1957. return ErrIntOverflowFolderconfiguration
  1958. }
  1959. if iNdEx >= l {
  1960. return io.ErrUnexpectedEOF
  1961. }
  1962. b := dAtA[iNdEx]
  1963. iNdEx++
  1964. m.MaxConcurrentWrites |= int(b&0x7F) << shift
  1965. if b < 0x80 {
  1966. break
  1967. }
  1968. }
  1969. case 30:
  1970. if wireType != 0 {
  1971. return fmt.Errorf("proto: wrong wireType = %d for field DisableFsync", wireType)
  1972. }
  1973. var v int
  1974. for shift := uint(0); ; shift += 7 {
  1975. if shift >= 64 {
  1976. return ErrIntOverflowFolderconfiguration
  1977. }
  1978. if iNdEx >= l {
  1979. return io.ErrUnexpectedEOF
  1980. }
  1981. b := dAtA[iNdEx]
  1982. iNdEx++
  1983. v |= int(b&0x7F) << shift
  1984. if b < 0x80 {
  1985. break
  1986. }
  1987. }
  1988. m.DisableFsync = bool(v != 0)
  1989. case 31:
  1990. if wireType != 0 {
  1991. return fmt.Errorf("proto: wrong wireType = %d for field BlockPullOrder", wireType)
  1992. }
  1993. m.BlockPullOrder = 0
  1994. for shift := uint(0); ; shift += 7 {
  1995. if shift >= 64 {
  1996. return ErrIntOverflowFolderconfiguration
  1997. }
  1998. if iNdEx >= l {
  1999. return io.ErrUnexpectedEOF
  2000. }
  2001. b := dAtA[iNdEx]
  2002. iNdEx++
  2003. m.BlockPullOrder |= BlockPullOrder(b&0x7F) << shift
  2004. if b < 0x80 {
  2005. break
  2006. }
  2007. }
  2008. case 32:
  2009. if wireType != 0 {
  2010. return fmt.Errorf("proto: wrong wireType = %d for field CopyRangeMethod", wireType)
  2011. }
  2012. m.CopyRangeMethod = 0
  2013. for shift := uint(0); ; shift += 7 {
  2014. if shift >= 64 {
  2015. return ErrIntOverflowFolderconfiguration
  2016. }
  2017. if iNdEx >= l {
  2018. return io.ErrUnexpectedEOF
  2019. }
  2020. b := dAtA[iNdEx]
  2021. iNdEx++
  2022. m.CopyRangeMethod |= fs.CopyRangeMethod(b&0x7F) << shift
  2023. if b < 0x80 {
  2024. break
  2025. }
  2026. }
  2027. case 33:
  2028. if wireType != 0 {
  2029. return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitiveFS", wireType)
  2030. }
  2031. var v int
  2032. for shift := uint(0); ; shift += 7 {
  2033. if shift >= 64 {
  2034. return ErrIntOverflowFolderconfiguration
  2035. }
  2036. if iNdEx >= l {
  2037. return io.ErrUnexpectedEOF
  2038. }
  2039. b := dAtA[iNdEx]
  2040. iNdEx++
  2041. v |= int(b&0x7F) << shift
  2042. if b < 0x80 {
  2043. break
  2044. }
  2045. }
  2046. m.CaseSensitiveFS = bool(v != 0)
  2047. case 34:
  2048. if wireType != 0 {
  2049. return fmt.Errorf("proto: wrong wireType = %d for field JunctionsAsDirs", wireType)
  2050. }
  2051. var v int
  2052. for shift := uint(0); ; shift += 7 {
  2053. if shift >= 64 {
  2054. return ErrIntOverflowFolderconfiguration
  2055. }
  2056. if iNdEx >= l {
  2057. return io.ErrUnexpectedEOF
  2058. }
  2059. b := dAtA[iNdEx]
  2060. iNdEx++
  2061. v |= int(b&0x7F) << shift
  2062. if b < 0x80 {
  2063. break
  2064. }
  2065. }
  2066. m.JunctionsAsDirs = bool(v != 0)
  2067. case 35:
  2068. if wireType != 0 {
  2069. return fmt.Errorf("proto: wrong wireType = %d for field SyncOwnership", wireType)
  2070. }
  2071. var v int
  2072. for shift := uint(0); ; shift += 7 {
  2073. if shift >= 64 {
  2074. return ErrIntOverflowFolderconfiguration
  2075. }
  2076. if iNdEx >= l {
  2077. return io.ErrUnexpectedEOF
  2078. }
  2079. b := dAtA[iNdEx]
  2080. iNdEx++
  2081. v |= int(b&0x7F) << shift
  2082. if b < 0x80 {
  2083. break
  2084. }
  2085. }
  2086. m.SyncOwnership = bool(v != 0)
  2087. case 36:
  2088. if wireType != 0 {
  2089. return fmt.Errorf("proto: wrong wireType = %d for field SendOwnership", wireType)
  2090. }
  2091. var v int
  2092. for shift := uint(0); ; shift += 7 {
  2093. if shift >= 64 {
  2094. return ErrIntOverflowFolderconfiguration
  2095. }
  2096. if iNdEx >= l {
  2097. return io.ErrUnexpectedEOF
  2098. }
  2099. b := dAtA[iNdEx]
  2100. iNdEx++
  2101. v |= int(b&0x7F) << shift
  2102. if b < 0x80 {
  2103. break
  2104. }
  2105. }
  2106. m.SendOwnership = bool(v != 0)
  2107. case 37:
  2108. if wireType != 0 {
  2109. return fmt.Errorf("proto: wrong wireType = %d for field SyncXattrs", wireType)
  2110. }
  2111. var v int
  2112. for shift := uint(0); ; shift += 7 {
  2113. if shift >= 64 {
  2114. return ErrIntOverflowFolderconfiguration
  2115. }
  2116. if iNdEx >= l {
  2117. return io.ErrUnexpectedEOF
  2118. }
  2119. b := dAtA[iNdEx]
  2120. iNdEx++
  2121. v |= int(b&0x7F) << shift
  2122. if b < 0x80 {
  2123. break
  2124. }
  2125. }
  2126. m.SyncXattrs = bool(v != 0)
  2127. case 38:
  2128. if wireType != 0 {
  2129. return fmt.Errorf("proto: wrong wireType = %d for field SendXattrs", wireType)
  2130. }
  2131. var v int
  2132. for shift := uint(0); ; shift += 7 {
  2133. if shift >= 64 {
  2134. return ErrIntOverflowFolderconfiguration
  2135. }
  2136. if iNdEx >= l {
  2137. return io.ErrUnexpectedEOF
  2138. }
  2139. b := dAtA[iNdEx]
  2140. iNdEx++
  2141. v |= int(b&0x7F) << shift
  2142. if b < 0x80 {
  2143. break
  2144. }
  2145. }
  2146. m.SendXattrs = bool(v != 0)
  2147. case 39:
  2148. if wireType != 2 {
  2149. return fmt.Errorf("proto: wrong wireType = %d for field XattrFilter", wireType)
  2150. }
  2151. var msglen int
  2152. for shift := uint(0); ; shift += 7 {
  2153. if shift >= 64 {
  2154. return ErrIntOverflowFolderconfiguration
  2155. }
  2156. if iNdEx >= l {
  2157. return io.ErrUnexpectedEOF
  2158. }
  2159. b := dAtA[iNdEx]
  2160. iNdEx++
  2161. msglen |= int(b&0x7F) << shift
  2162. if b < 0x80 {
  2163. break
  2164. }
  2165. }
  2166. if msglen < 0 {
  2167. return ErrInvalidLengthFolderconfiguration
  2168. }
  2169. postIndex := iNdEx + msglen
  2170. if postIndex < 0 {
  2171. return ErrInvalidLengthFolderconfiguration
  2172. }
  2173. if postIndex > l {
  2174. return io.ErrUnexpectedEOF
  2175. }
  2176. if err := m.XattrFilter.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2177. return err
  2178. }
  2179. iNdEx = postIndex
  2180. case 40:
  2181. if wireType != 1 {
  2182. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherTimeoutS", wireType)
  2183. }
  2184. var v uint64
  2185. if (iNdEx + 8) > l {
  2186. return io.ErrUnexpectedEOF
  2187. }
  2188. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2189. iNdEx += 8
  2190. m.FSWatcherTimeoutS = float64(math.Float64frombits(v))
  2191. case 9000:
  2192. if wireType != 0 {
  2193. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedReadOnly", wireType)
  2194. }
  2195. var v int
  2196. for shift := uint(0); ; shift += 7 {
  2197. if shift >= 64 {
  2198. return ErrIntOverflowFolderconfiguration
  2199. }
  2200. if iNdEx >= l {
  2201. return io.ErrUnexpectedEOF
  2202. }
  2203. b := dAtA[iNdEx]
  2204. iNdEx++
  2205. v |= int(b&0x7F) << shift
  2206. if b < 0x80 {
  2207. break
  2208. }
  2209. }
  2210. m.DeprecatedReadOnly = bool(v != 0)
  2211. case 9001:
  2212. if wireType != 1 {
  2213. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedMinDiskFreePct", wireType)
  2214. }
  2215. var v uint64
  2216. if (iNdEx + 8) > l {
  2217. return io.ErrUnexpectedEOF
  2218. }
  2219. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  2220. iNdEx += 8
  2221. m.DeprecatedMinDiskFreePct = float64(math.Float64frombits(v))
  2222. case 9002:
  2223. if wireType != 0 {
  2224. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedPullers", wireType)
  2225. }
  2226. m.DeprecatedPullers = 0
  2227. for shift := uint(0); ; shift += 7 {
  2228. if shift >= 64 {
  2229. return ErrIntOverflowFolderconfiguration
  2230. }
  2231. if iNdEx >= l {
  2232. return io.ErrUnexpectedEOF
  2233. }
  2234. b := dAtA[iNdEx]
  2235. iNdEx++
  2236. m.DeprecatedPullers |= int(b&0x7F) << shift
  2237. if b < 0x80 {
  2238. break
  2239. }
  2240. }
  2241. case 9003:
  2242. if wireType != 0 {
  2243. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedScanOwnership", wireType)
  2244. }
  2245. var v int
  2246. for shift := uint(0); ; shift += 7 {
  2247. if shift >= 64 {
  2248. return ErrIntOverflowFolderconfiguration
  2249. }
  2250. if iNdEx >= l {
  2251. return io.ErrUnexpectedEOF
  2252. }
  2253. b := dAtA[iNdEx]
  2254. iNdEx++
  2255. v |= int(b&0x7F) << shift
  2256. if b < 0x80 {
  2257. break
  2258. }
  2259. }
  2260. m.DeprecatedScanOwnership = bool(v != 0)
  2261. default:
  2262. iNdEx = preIndex
  2263. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  2264. if err != nil {
  2265. return err
  2266. }
  2267. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2268. return ErrInvalidLengthFolderconfiguration
  2269. }
  2270. if (iNdEx + skippy) > l {
  2271. return io.ErrUnexpectedEOF
  2272. }
  2273. iNdEx += skippy
  2274. }
  2275. }
  2276. if iNdEx > l {
  2277. return io.ErrUnexpectedEOF
  2278. }
  2279. return nil
  2280. }
  2281. func (m *XattrFilter) Unmarshal(dAtA []byte) error {
  2282. l := len(dAtA)
  2283. iNdEx := 0
  2284. for iNdEx < l {
  2285. preIndex := iNdEx
  2286. var wire uint64
  2287. for shift := uint(0); ; shift += 7 {
  2288. if shift >= 64 {
  2289. return ErrIntOverflowFolderconfiguration
  2290. }
  2291. if iNdEx >= l {
  2292. return io.ErrUnexpectedEOF
  2293. }
  2294. b := dAtA[iNdEx]
  2295. iNdEx++
  2296. wire |= uint64(b&0x7F) << shift
  2297. if b < 0x80 {
  2298. break
  2299. }
  2300. }
  2301. fieldNum := int32(wire >> 3)
  2302. wireType := int(wire & 0x7)
  2303. if wireType == 4 {
  2304. return fmt.Errorf("proto: XattrFilter: wiretype end group for non-group")
  2305. }
  2306. if fieldNum <= 0 {
  2307. return fmt.Errorf("proto: XattrFilter: illegal tag %d (wire type %d)", fieldNum, wire)
  2308. }
  2309. switch fieldNum {
  2310. case 1:
  2311. if wireType != 2 {
  2312. return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType)
  2313. }
  2314. var msglen int
  2315. for shift := uint(0); ; shift += 7 {
  2316. if shift >= 64 {
  2317. return ErrIntOverflowFolderconfiguration
  2318. }
  2319. if iNdEx >= l {
  2320. return io.ErrUnexpectedEOF
  2321. }
  2322. b := dAtA[iNdEx]
  2323. iNdEx++
  2324. msglen |= int(b&0x7F) << shift
  2325. if b < 0x80 {
  2326. break
  2327. }
  2328. }
  2329. if msglen < 0 {
  2330. return ErrInvalidLengthFolderconfiguration
  2331. }
  2332. postIndex := iNdEx + msglen
  2333. if postIndex < 0 {
  2334. return ErrInvalidLengthFolderconfiguration
  2335. }
  2336. if postIndex > l {
  2337. return io.ErrUnexpectedEOF
  2338. }
  2339. m.Entries = append(m.Entries, XattrFilterEntry{})
  2340. if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  2341. return err
  2342. }
  2343. iNdEx = postIndex
  2344. case 2:
  2345. if wireType != 0 {
  2346. return fmt.Errorf("proto: wrong wireType = %d for field MaxSingleEntrySize", wireType)
  2347. }
  2348. m.MaxSingleEntrySize = 0
  2349. for shift := uint(0); ; shift += 7 {
  2350. if shift >= 64 {
  2351. return ErrIntOverflowFolderconfiguration
  2352. }
  2353. if iNdEx >= l {
  2354. return io.ErrUnexpectedEOF
  2355. }
  2356. b := dAtA[iNdEx]
  2357. iNdEx++
  2358. m.MaxSingleEntrySize |= int(b&0x7F) << shift
  2359. if b < 0x80 {
  2360. break
  2361. }
  2362. }
  2363. case 3:
  2364. if wireType != 0 {
  2365. return fmt.Errorf("proto: wrong wireType = %d for field MaxTotalSize", wireType)
  2366. }
  2367. m.MaxTotalSize = 0
  2368. for shift := uint(0); ; shift += 7 {
  2369. if shift >= 64 {
  2370. return ErrIntOverflowFolderconfiguration
  2371. }
  2372. if iNdEx >= l {
  2373. return io.ErrUnexpectedEOF
  2374. }
  2375. b := dAtA[iNdEx]
  2376. iNdEx++
  2377. m.MaxTotalSize |= int(b&0x7F) << shift
  2378. if b < 0x80 {
  2379. break
  2380. }
  2381. }
  2382. default:
  2383. iNdEx = preIndex
  2384. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  2385. if err != nil {
  2386. return err
  2387. }
  2388. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2389. return ErrInvalidLengthFolderconfiguration
  2390. }
  2391. if (iNdEx + skippy) > l {
  2392. return io.ErrUnexpectedEOF
  2393. }
  2394. iNdEx += skippy
  2395. }
  2396. }
  2397. if iNdEx > l {
  2398. return io.ErrUnexpectedEOF
  2399. }
  2400. return nil
  2401. }
  2402. func (m *XattrFilterEntry) Unmarshal(dAtA []byte) error {
  2403. l := len(dAtA)
  2404. iNdEx := 0
  2405. for iNdEx < l {
  2406. preIndex := iNdEx
  2407. var wire uint64
  2408. for shift := uint(0); ; shift += 7 {
  2409. if shift >= 64 {
  2410. return ErrIntOverflowFolderconfiguration
  2411. }
  2412. if iNdEx >= l {
  2413. return io.ErrUnexpectedEOF
  2414. }
  2415. b := dAtA[iNdEx]
  2416. iNdEx++
  2417. wire |= uint64(b&0x7F) << shift
  2418. if b < 0x80 {
  2419. break
  2420. }
  2421. }
  2422. fieldNum := int32(wire >> 3)
  2423. wireType := int(wire & 0x7)
  2424. if wireType == 4 {
  2425. return fmt.Errorf("proto: XattrFilterEntry: wiretype end group for non-group")
  2426. }
  2427. if fieldNum <= 0 {
  2428. return fmt.Errorf("proto: XattrFilterEntry: illegal tag %d (wire type %d)", fieldNum, wire)
  2429. }
  2430. switch fieldNum {
  2431. case 1:
  2432. if wireType != 2 {
  2433. return fmt.Errorf("proto: wrong wireType = %d for field Match", wireType)
  2434. }
  2435. var stringLen uint64
  2436. for shift := uint(0); ; shift += 7 {
  2437. if shift >= 64 {
  2438. return ErrIntOverflowFolderconfiguration
  2439. }
  2440. if iNdEx >= l {
  2441. return io.ErrUnexpectedEOF
  2442. }
  2443. b := dAtA[iNdEx]
  2444. iNdEx++
  2445. stringLen |= uint64(b&0x7F) << shift
  2446. if b < 0x80 {
  2447. break
  2448. }
  2449. }
  2450. intStringLen := int(stringLen)
  2451. if intStringLen < 0 {
  2452. return ErrInvalidLengthFolderconfiguration
  2453. }
  2454. postIndex := iNdEx + intStringLen
  2455. if postIndex < 0 {
  2456. return ErrInvalidLengthFolderconfiguration
  2457. }
  2458. if postIndex > l {
  2459. return io.ErrUnexpectedEOF
  2460. }
  2461. m.Match = string(dAtA[iNdEx:postIndex])
  2462. iNdEx = postIndex
  2463. case 2:
  2464. if wireType != 0 {
  2465. return fmt.Errorf("proto: wrong wireType = %d for field Permit", wireType)
  2466. }
  2467. var v int
  2468. for shift := uint(0); ; shift += 7 {
  2469. if shift >= 64 {
  2470. return ErrIntOverflowFolderconfiguration
  2471. }
  2472. if iNdEx >= l {
  2473. return io.ErrUnexpectedEOF
  2474. }
  2475. b := dAtA[iNdEx]
  2476. iNdEx++
  2477. v |= int(b&0x7F) << shift
  2478. if b < 0x80 {
  2479. break
  2480. }
  2481. }
  2482. m.Permit = bool(v != 0)
  2483. default:
  2484. iNdEx = preIndex
  2485. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  2486. if err != nil {
  2487. return err
  2488. }
  2489. if (skippy < 0) || (iNdEx+skippy) < 0 {
  2490. return ErrInvalidLengthFolderconfiguration
  2491. }
  2492. if (iNdEx + skippy) > l {
  2493. return io.ErrUnexpectedEOF
  2494. }
  2495. iNdEx += skippy
  2496. }
  2497. }
  2498. if iNdEx > l {
  2499. return io.ErrUnexpectedEOF
  2500. }
  2501. return nil
  2502. }
  2503. func skipFolderconfiguration(dAtA []byte) (n int, err error) {
  2504. l := len(dAtA)
  2505. iNdEx := 0
  2506. depth := 0
  2507. for iNdEx < l {
  2508. var wire uint64
  2509. for shift := uint(0); ; shift += 7 {
  2510. if shift >= 64 {
  2511. return 0, ErrIntOverflowFolderconfiguration
  2512. }
  2513. if iNdEx >= l {
  2514. return 0, io.ErrUnexpectedEOF
  2515. }
  2516. b := dAtA[iNdEx]
  2517. iNdEx++
  2518. wire |= (uint64(b) & 0x7F) << shift
  2519. if b < 0x80 {
  2520. break
  2521. }
  2522. }
  2523. wireType := int(wire & 0x7)
  2524. switch wireType {
  2525. case 0:
  2526. for shift := uint(0); ; shift += 7 {
  2527. if shift >= 64 {
  2528. return 0, ErrIntOverflowFolderconfiguration
  2529. }
  2530. if iNdEx >= l {
  2531. return 0, io.ErrUnexpectedEOF
  2532. }
  2533. iNdEx++
  2534. if dAtA[iNdEx-1] < 0x80 {
  2535. break
  2536. }
  2537. }
  2538. case 1:
  2539. iNdEx += 8
  2540. case 2:
  2541. var length int
  2542. for shift := uint(0); ; shift += 7 {
  2543. if shift >= 64 {
  2544. return 0, ErrIntOverflowFolderconfiguration
  2545. }
  2546. if iNdEx >= l {
  2547. return 0, io.ErrUnexpectedEOF
  2548. }
  2549. b := dAtA[iNdEx]
  2550. iNdEx++
  2551. length |= (int(b) & 0x7F) << shift
  2552. if b < 0x80 {
  2553. break
  2554. }
  2555. }
  2556. if length < 0 {
  2557. return 0, ErrInvalidLengthFolderconfiguration
  2558. }
  2559. iNdEx += length
  2560. case 3:
  2561. depth++
  2562. case 4:
  2563. if depth == 0 {
  2564. return 0, ErrUnexpectedEndOfGroupFolderconfiguration
  2565. }
  2566. depth--
  2567. case 5:
  2568. iNdEx += 4
  2569. default:
  2570. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  2571. }
  2572. if iNdEx < 0 {
  2573. return 0, ErrInvalidLengthFolderconfiguration
  2574. }
  2575. if depth == 0 {
  2576. return iNdEx, nil
  2577. }
  2578. }
  2579. return 0, io.ErrUnexpectedEOF
  2580. }
  2581. var (
  2582. ErrInvalidLengthFolderconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  2583. ErrIntOverflowFolderconfiguration = fmt.Errorf("proto: integer overflow")
  2584. ErrUnexpectedEndOfGroupFolderconfiguration = fmt.Errorf("proto: unexpected end of group")
  2585. )