folderconfiguration.pb.go 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921
  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 int `protobuf:"varint,9,opt,name=fs_watcher_delay_s,json=fsWatcherDelayS,proto3,casttype=int" json:"fsWatcherDelayS" xml:"fsWatcherDelayS,attr" default:"10"`
  70. IgnorePerms bool `protobuf:"varint,10,opt,name=ignore_perms,json=ignorePerms,proto3" json:"ignorePerms" xml:"ignorePerms,attr"`
  71. AutoNormalize bool `protobuf:"varint,11,opt,name=auto_normalize,json=autoNormalize,proto3" json:"autoNormalize" xml:"autoNormalize,attr" default:"true"`
  72. MinDiskFree Size `protobuf:"bytes,12,opt,name=min_disk_free,json=minDiskFree,proto3" json:"minDiskFree" xml:"minDiskFree" default:"1 %"`
  73. Versioning VersioningConfiguration `protobuf:"bytes,13,opt,name=versioning,proto3" json:"versioning" xml:"versioning"`
  74. Copiers int `protobuf:"varint,14,opt,name=copiers,proto3,casttype=int" json:"copiers" xml:"copiers"`
  75. PullerMaxPendingKiB int `protobuf:"varint,15,opt,name=puller_max_pending_kib,json=pullerMaxPendingKib,proto3,casttype=int" json:"pullerMaxPendingKiB" xml:"pullerMaxPendingKiB"`
  76. Hashers int `protobuf:"varint,16,opt,name=hashers,proto3,casttype=int" json:"hashers" xml:"hashers"`
  77. Order PullOrder `protobuf:"varint,17,opt,name=order,proto3,enum=config.PullOrder" json:"order" xml:"order"`
  78. IgnoreDelete bool `protobuf:"varint,18,opt,name=ignore_delete,json=ignoreDelete,proto3" json:"ignoreDelete" xml:"ignoreDelete"`
  79. ScanProgressIntervalS int `protobuf:"varint,19,opt,name=scan_progress_interval_s,json=scanProgressIntervalS,proto3,casttype=int" json:"scanProgressIntervalS" xml:"scanProgressIntervalS"`
  80. PullerPauseS int `protobuf:"varint,20,opt,name=puller_pause_s,json=pullerPauseS,proto3,casttype=int" json:"pullerPauseS" xml:"pullerPauseS"`
  81. MaxConflicts int `protobuf:"varint,21,opt,name=max_conflicts,json=maxConflicts,proto3,casttype=int" json:"maxConflicts" xml:"maxConflicts" default:"10"`
  82. DisableSparseFiles bool `protobuf:"varint,22,opt,name=disable_sparse_files,json=disableSparseFiles,proto3" json:"disableSparseFiles" xml:"disableSparseFiles"`
  83. DisableTempIndexes bool `protobuf:"varint,23,opt,name=disable_temp_indexes,json=disableTempIndexes,proto3" json:"disableTempIndexes" xml:"disableTempIndexes"`
  84. Paused bool `protobuf:"varint,24,opt,name=paused,proto3" json:"paused" xml:"paused"`
  85. WeakHashThresholdPct int `protobuf:"varint,25,opt,name=weak_hash_threshold_pct,json=weakHashThresholdPct,proto3,casttype=int" json:"weakHashThresholdPct" xml:"weakHashThresholdPct"`
  86. MarkerName string `protobuf:"bytes,26,opt,name=marker_name,json=markerName,proto3" json:"markerName" xml:"markerName"`
  87. CopyOwnershipFromParent bool `protobuf:"varint,27,opt,name=copy_ownership_from_parent,json=copyOwnershipFromParent,proto3" json:"copyOwnershipFromParent" xml:"copyOwnershipFromParent"`
  88. RawModTimeWindowS int `protobuf:"varint,28,opt,name=mod_time_window_s,json=modTimeWindowS,proto3,casttype=int" json:"modTimeWindowS" xml:"modTimeWindowS"`
  89. MaxConcurrentWrites int `protobuf:"varint,29,opt,name=max_concurrent_writes,json=maxConcurrentWrites,proto3,casttype=int" json:"maxConcurrentWrites" xml:"maxConcurrentWrites" default:"2"`
  90. DisableFsync bool `protobuf:"varint,30,opt,name=disable_fsync,json=disableFsync,proto3" json:"disableFsync" xml:"disableFsync"`
  91. BlockPullOrder BlockPullOrder `protobuf:"varint,31,opt,name=block_pull_order,json=blockPullOrder,proto3,enum=config.BlockPullOrder" json:"blockPullOrder" xml:"blockPullOrder"`
  92. CopyRangeMethod fs.CopyRangeMethod `protobuf:"varint,32,opt,name=copy_range_method,json=copyRangeMethod,proto3,enum=fs.CopyRangeMethod" json:"copyRangeMethod" xml:"copyRangeMethod" default:"standard"`
  93. CaseSensitiveFS bool `protobuf:"varint,33,opt,name=case_sensitive_fs,json=caseSensitiveFs,proto3" json:"caseSensitiveFS" xml:"caseSensitiveFS"`
  94. JunctionsAsDirs bool `protobuf:"varint,34,opt,name=follow_junctions,json=followJunctions,proto3" json:"junctionsAsDirs" xml:"junctionsAsDirs"`
  95. // Legacy deprecated
  96. DeprecatedReadOnly bool `protobuf:"varint,9000,opt,name=read_only,json=readOnly,proto3" json:"-" xml:"ro,attr,omitempty"` // Deprecated: Do not use.
  97. DeprecatedMinDiskFreePct float64 `protobuf:"fixed64,9001,opt,name=min_disk_free_pct,json=minDiskFreePct,proto3" json:"-" xml:"minDiskFreePct,omitempty"` // Deprecated: Do not use.
  98. DeprecatedPullers int `protobuf:"varint,9002,opt,name=pullers,proto3,casttype=int" json:"-" xml:"pullers,omitempty"` // Deprecated: Do not use.
  99. }
  100. func (m *FolderConfiguration) Reset() { *m = FolderConfiguration{} }
  101. func (m *FolderConfiguration) String() string { return proto.CompactTextString(m) }
  102. func (*FolderConfiguration) ProtoMessage() {}
  103. func (*FolderConfiguration) Descriptor() ([]byte, []int) {
  104. return fileDescriptor_44a9785876ed3afa, []int{1}
  105. }
  106. func (m *FolderConfiguration) XXX_Unmarshal(b []byte) error {
  107. return m.Unmarshal(b)
  108. }
  109. func (m *FolderConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  110. if deterministic {
  111. return xxx_messageInfo_FolderConfiguration.Marshal(b, m, deterministic)
  112. } else {
  113. b = b[:cap(b)]
  114. n, err := m.MarshalToSizedBuffer(b)
  115. if err != nil {
  116. return nil, err
  117. }
  118. return b[:n], nil
  119. }
  120. }
  121. func (m *FolderConfiguration) XXX_Merge(src proto.Message) {
  122. xxx_messageInfo_FolderConfiguration.Merge(m, src)
  123. }
  124. func (m *FolderConfiguration) XXX_Size() int {
  125. return m.ProtoSize()
  126. }
  127. func (m *FolderConfiguration) XXX_DiscardUnknown() {
  128. xxx_messageInfo_FolderConfiguration.DiscardUnknown(m)
  129. }
  130. var xxx_messageInfo_FolderConfiguration proto.InternalMessageInfo
  131. func init() {
  132. proto.RegisterType((*FolderDeviceConfiguration)(nil), "config.FolderDeviceConfiguration")
  133. proto.RegisterType((*FolderConfiguration)(nil), "config.FolderConfiguration")
  134. }
  135. func init() {
  136. proto.RegisterFile("lib/config/folderconfiguration.proto", fileDescriptor_44a9785876ed3afa)
  137. }
  138. var fileDescriptor_44a9785876ed3afa = []byte{
  139. // 2043 bytes of a gzipped FileDescriptorProto
  140. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x58, 0xcd, 0x6f, 0x24, 0x47,
  141. 0x15, 0x77, 0x7b, 0xbf, 0xec, 0xf2, 0x77, 0x79, 0xbd, 0xdb, 0xf1, 0x26, 0x53, 0x93, 0x66, 0x36,
  142. 0x38, 0x51, 0xe2, 0xdd, 0x75, 0x10, 0x12, 0x2b, 0x16, 0xc8, 0xd8, 0xb1, 0x58, 0x16, 0x67, 0x47,
  143. 0xed, 0x85, 0x15, 0x01, 0xa9, 0xe9, 0xe9, 0xae, 0x99, 0xa9, 0xb8, 0xbf, 0xa8, 0xea, 0x59, 0x7b,
  144. 0xf6, 0x10, 0x2d, 0x17, 0x04, 0x22, 0x07, 0x64, 0x0e, 0xdc, 0x50, 0x24, 0x10, 0x82, 0xfc, 0x03,
  145. 0x48, 0xfc, 0x05, 0x7b, 0x41, 0x9e, 0x13, 0x42, 0x1c, 0x4a, 0x8a, 0xf7, 0x36, 0xc7, 0x3e, 0xfa,
  146. 0x84, 0xaa, 0xaa, 0xbb, 0xa7, 0xbb, 0x67, 0x22, 0x21, 0x71, 0x9b, 0xfa, 0xfd, 0x5e, 0xbd, 0xf7,
  147. 0xeb, 0x57, 0xaf, 0x5e, 0xbf, 0x1e, 0xd0, 0xf0, 0x48, 0xfb, 0x8e, 0x13, 0x06, 0x1d, 0xd2, 0xbd,
  148. 0xd3, 0x09, 0x3d, 0x17, 0x53, 0xb5, 0xe8, 0x53, 0x3b, 0x26, 0x61, 0xb0, 0x1d, 0xd1, 0x30, 0x0e,
  149. 0xe1, 0x55, 0x05, 0x6e, 0xde, 0x9a, 0xb0, 0x8e, 0x07, 0x11, 0x56, 0x46, 0x9b, 0x1b, 0x05, 0x92,
  150. 0x91, 0xe7, 0x19, 0xbc, 0x59, 0x80, 0xa3, 0xbe, 0xe7, 0x85, 0xd4, 0xc5, 0x34, 0xe5, 0xb6, 0x0a,
  151. 0xdc, 0x33, 0x4c, 0x19, 0x09, 0x03, 0x12, 0x74, 0xa7, 0x28, 0xd8, 0x44, 0x05, 0xcb, 0xb6, 0x17,
  152. 0x3a, 0x47, 0x55, 0x57, 0x50, 0x18, 0x74, 0xd8, 0x1d, 0x21, 0x88, 0xa5, 0xd8, 0xeb, 0x29, 0xe6,
  153. 0x84, 0xd1, 0x80, 0xda, 0x41, 0x17, 0xfb, 0x38, 0xee, 0x85, 0x6e, 0xca, 0xce, 0xe3, 0x93, 0x58,
  154. 0xfd, 0x34, 0xfe, 0x75, 0x09, 0xbc, 0xb6, 0x2f, 0x9f, 0x67, 0x0f, 0x3f, 0x23, 0x0e, 0xde, 0x2d,
  155. 0x2a, 0x80, 0x5f, 0x68, 0x60, 0xde, 0x95, 0xb8, 0x45, 0x5c, 0x5d, 0xab, 0x6b, 0x5b, 0x8b, 0xcd,
  156. 0xcf, 0xb4, 0x97, 0x1c, 0xcd, 0xfc, 0x87, 0xa3, 0x6f, 0x74, 0x49, 0xdc, 0xeb, 0xb7, 0xb7, 0x9d,
  157. 0xd0, 0xbf, 0xc3, 0x06, 0x81, 0x13, 0xf7, 0x48, 0xd0, 0x2d, 0xfc, 0x12, 0x12, 0x64, 0x10, 0x27,
  158. 0xf4, 0xb6, 0x95, 0xf7, 0x87, 0x7b, 0xe7, 0x1c, 0xcd, 0x65, 0xbf, 0x47, 0x1c, 0xcd, 0xb9, 0xe9,
  159. 0xef, 0x84, 0xa3, 0xa5, 0x13, 0xdf, 0xbb, 0x6f, 0x10, 0xf7, 0x5d, 0x3b, 0x8e, 0xa9, 0x31, 0x3a,
  160. 0x6b, 0x5c, 0x4b, 0x7f, 0x27, 0x67, 0x8d, 0xdc, 0xee, 0xd7, 0xc3, 0x86, 0x76, 0x3a, 0x6c, 0xe4,
  161. 0x3e, 0xcc, 0x8c, 0x71, 0xe1, 0x5f, 0x34, 0xb0, 0x44, 0x82, 0x98, 0x86, 0x6e, 0xdf, 0xc1, 0xae,
  162. 0xd5, 0x1e, 0xe8, 0xb3, 0x52, 0xf0, 0x8b, 0xff, 0x4b, 0xf0, 0x88, 0xa3, 0xc5, 0xb1, 0xd7, 0xe6,
  163. 0x20, 0xe1, 0xe8, 0xa6, 0x12, 0x5a, 0x00, 0x73, 0xc9, 0x6b, 0x13, 0xa8, 0x10, 0x6c, 0x96, 0x3c,
  164. 0x40, 0x07, 0xac, 0xe3, 0xc0, 0xa1, 0x83, 0x48, 0xe4, 0xd8, 0x8a, 0x6c, 0xc6, 0x8e, 0x43, 0xea,
  165. 0xea, 0x97, 0xea, 0xda, 0xd6, 0x7c, 0x73, 0x67, 0xc4, 0x11, 0x1c, 0xd3, 0xad, 0x94, 0x4d, 0x38,
  166. 0xd2, 0x65, 0xd8, 0x49, 0xca, 0x30, 0xa7, 0xd8, 0x1b, 0x7f, 0xac, 0x83, 0x75, 0x75, 0xb0, 0xe5,
  167. 0x23, 0x3d, 0x04, 0xb3, 0xe9, 0x51, 0xce, 0x37, 0x77, 0xcf, 0x39, 0x9a, 0x95, 0x8f, 0x38, 0x4b,
  168. 0x44, 0x84, 0x5a, 0xe9, 0x04, 0xea, 0x41, 0xe8, 0xe2, 0x8e, 0xdd, 0xf7, 0xe2, 0xfb, 0x46, 0x4c,
  169. 0xfb, 0xb8, 0x78, 0x24, 0xa7, 0xc3, 0xc6, 0xec, 0xc3, 0xbd, 0xcf, 0xc5, 0xb3, 0xcd, 0x12, 0x17,
  170. 0xfe, 0x08, 0x5c, 0xf1, 0xec, 0x36, 0xf6, 0x64, 0xc6, 0xe7, 0x9b, 0xdf, 0x1d, 0x71, 0xa4, 0x80,
  171. 0x84, 0xa3, 0xba, 0x74, 0x2a, 0x57, 0xa9, 0x5f, 0x8a, 0x59, 0x6c, 0xd3, 0xf8, 0xbe, 0xd1, 0xb1,
  172. 0x3d, 0x26, 0xdd, 0x82, 0x31, 0xfd, 0x62, 0xd8, 0x98, 0x31, 0xd5, 0x66, 0xd8, 0x05, 0x2b, 0x1d,
  173. 0xe2, 0x61, 0x36, 0x60, 0x31, 0xf6, 0x2d, 0x51, 0xdf, 0x32, 0x49, 0xcb, 0x3b, 0x70, 0xbb, 0xc3,
  174. 0xb6, 0xf7, 0x73, 0xea, 0xc9, 0x20, 0xc2, 0xcd, 0x77, 0x46, 0x1c, 0x2d, 0x77, 0x4a, 0x58, 0xc2,
  175. 0xd1, 0x75, 0x19, 0xbd, 0x0c, 0x1b, 0x66, 0xc5, 0x0e, 0x1e, 0x80, 0xcb, 0x91, 0x1d, 0xf7, 0xf4,
  176. 0xcb, 0x52, 0xfe, 0xb7, 0x46, 0x1c, 0xc9, 0x75, 0xc2, 0xd1, 0x2d, 0xb9, 0x5f, 0x2c, 0x52, 0xf1,
  177. 0x79, 0x4a, 0x3e, 0x15, 0xc2, 0xe7, 0x73, 0xe6, 0xe2, 0xac, 0xa1, 0x7d, 0x6a, 0xca, 0x6d, 0xb0,
  178. 0x05, 0x2e, 0x4b, 0xb1, 0x57, 0x52, 0xb1, 0xea, 0xf6, 0x6e, 0xab, 0xe3, 0x90, 0x62, 0xb7, 0x44,
  179. 0x88, 0x58, 0x49, 0x5c, 0x91, 0x21, 0xc4, 0x22, 0x2f, 0xa3, 0xf9, 0x7c, 0x65, 0x4a, 0x2b, 0xf8,
  180. 0x33, 0x70, 0x4d, 0xd5, 0x39, 0xd3, 0xaf, 0xd6, 0x2f, 0x6d, 0x2d, 0xec, 0xbc, 0x59, 0x76, 0x3a,
  181. 0xe5, 0xf2, 0x36, 0x91, 0x28, 0xfb, 0x11, 0x47, 0xd9, 0xce, 0x84, 0xa3, 0x45, 0x19, 0x4a, 0xad,
  182. 0x0d, 0x33, 0x23, 0xe0, 0xef, 0x35, 0xb0, 0x46, 0x31, 0x73, 0xec, 0xc0, 0x22, 0x41, 0x8c, 0xe9,
  183. 0x33, 0xdb, 0xb3, 0x98, 0x7e, 0xad, 0xae, 0x6d, 0x5d, 0x69, 0x76, 0x47, 0x1c, 0xad, 0x28, 0xf2,
  184. 0x61, 0xca, 0x1d, 0x26, 0x1c, 0xbd, 0x2d, 0x3d, 0x55, 0xf0, 0x6a, 0x8a, 0xde, 0xff, 0xe6, 0xdd,
  185. 0xbb, 0xc6, 0x05, 0x47, 0x97, 0x48, 0x10, 0x8f, 0xce, 0x1a, 0xd7, 0xa7, 0x99, 0x5f, 0x9c, 0x35,
  186. 0x2e, 0x0b, 0x3b, 0xb3, 0x1a, 0x04, 0xfe, 0x43, 0x03, 0xb0, 0xc3, 0xac, 0x63, 0x3b, 0x76, 0x7a,
  187. 0x98, 0x5a, 0x38, 0xb0, 0xdb, 0x1e, 0x76, 0xf5, 0xb9, 0xba, 0xb6, 0x35, 0xd7, 0xfc, 0xad, 0x76,
  188. 0xce, 0xd1, 0xea, 0xfe, 0xe1, 0x53, 0xc5, 0x7e, 0xa8, 0xc8, 0x11, 0x47, 0xab, 0x1d, 0x56, 0xc6,
  189. 0x12, 0x8e, 0xde, 0x51, 0x45, 0x50, 0x21, 0xaa, 0x6a, 0xb3, 0x1a, 0xdf, 0x98, 0x6a, 0x28, 0x74,
  190. 0x0a, 0x8b, 0xd3, 0x61, 0x63, 0x22, 0xac, 0x39, 0x11, 0x14, 0xfe, 0xbd, 0x2c, 0xde, 0xc5, 0x9e,
  191. 0x3d, 0xb0, 0x98, 0x3e, 0x2f, 0x73, 0xfa, 0x1b, 0x21, 0x7e, 0x25, 0xf7, 0xb2, 0x27, 0xc8, 0x43,
  192. 0x91, 0xe7, 0xdc, 0x8d, 0x82, 0x12, 0x8e, 0xbe, 0x5e, 0x96, 0xae, 0xf0, 0xaa, 0xf2, 0x7b, 0xa5,
  193. 0x2c, 0x4f, 0x33, 0xbe, 0x38, 0x6b, 0xcc, 0xde, 0xbb, 0x7b, 0x3a, 0x6c, 0x54, 0xa3, 0x9a, 0xd5,
  194. 0x98, 0xf0, 0xe7, 0x60, 0x91, 0x74, 0x83, 0x90, 0x62, 0x2b, 0xc2, 0xd4, 0x67, 0x3a, 0x90, 0xf9,
  195. 0x7e, 0x30, 0xe2, 0x68, 0x41, 0xe1, 0x2d, 0x01, 0x27, 0x1c, 0xdd, 0x50, 0xdd, 0x62, 0x8c, 0xe5,
  196. 0xe5, 0xbb, 0x5a, 0x05, 0xcd, 0xe2, 0x56, 0xf8, 0x4b, 0x0d, 0x2c, 0xdb, 0xfd, 0x38, 0xb4, 0x82,
  197. 0x90, 0xfa, 0xb6, 0x47, 0x9e, 0x63, 0x7d, 0x41, 0x06, 0xf9, 0x78, 0xc4, 0xd1, 0x92, 0x60, 0x3e,
  198. 0xca, 0x88, 0x3c, 0x03, 0x25, 0xf4, 0xab, 0x4e, 0x0e, 0x4e, 0x5a, 0x65, 0xc7, 0x66, 0x96, 0xfd,
  199. 0xc2, 0x10, 0x2c, 0xf9, 0x24, 0xb0, 0x5c, 0xc2, 0x8e, 0xac, 0x0e, 0xc5, 0x58, 0x5f, 0xac, 0x6b,
  200. 0x5b, 0x0b, 0x3b, 0x8b, 0xd9, 0xb5, 0x3a, 0x24, 0xcf, 0x71, 0xf3, 0x41, 0x7a, 0x83, 0x16, 0x7c,
  201. 0x12, 0xec, 0x11, 0x76, 0xb4, 0x4f, 0xb1, 0x50, 0x84, 0xa4, 0xa2, 0x02, 0x56, 0x3c, 0x8a, 0xfa,
  202. 0x6d, 0xe3, 0xe2, 0xac, 0x71, 0xe9, 0x5e, 0xfd, 0xb6, 0x59, 0xdc, 0x06, 0xbb, 0x00, 0x8c, 0xdf,
  203. 0xf3, 0xfa, 0x92, 0x8c, 0x86, 0xb2, 0x68, 0x3f, 0xce, 0x99, 0xf2, 0x15, 0x7e, 0x2b, 0x15, 0x50,
  204. 0xd8, 0x9a, 0x70, 0xb4, 0x2a, 0xe3, 0x8f, 0x21, 0xc3, 0x2c, 0xf0, 0xf0, 0x01, 0xb8, 0xe6, 0x84,
  205. 0x11, 0xc1, 0x94, 0xe9, 0xcb, 0xb2, 0xda, 0xbe, 0x26, 0x7a, 0x40, 0x0a, 0xe5, 0xaf, 0xd9, 0x74,
  206. 0x9d, 0xd5, 0x8d, 0x99, 0x19, 0xc0, 0x7f, 0x6a, 0xe0, 0x86, 0x98, 0x30, 0x30, 0xb5, 0x7c, 0xfb,
  207. 0xc4, 0x8a, 0x70, 0xe0, 0x92, 0xa0, 0x6b, 0x1d, 0x91, 0xb6, 0xbe, 0x22, 0xdd, 0xfd, 0x41, 0x14,
  208. 0xef, 0x7a, 0x4b, 0x9a, 0x1c, 0xd8, 0x27, 0x2d, 0x65, 0xf0, 0x88, 0x34, 0x47, 0x1c, 0xad, 0x47,
  209. 0x93, 0x70, 0xc2, 0xd1, 0x6b, 0xaa, 0x89, 0x4e, 0x72, 0x85, 0xb2, 0x9d, 0xba, 0x75, 0x3a, 0x7c,
  210. 0x3a, 0x6c, 0x4c, 0x8b, 0x6f, 0x4e, 0xb1, 0x6d, 0x8b, 0x74, 0xf4, 0x6c, 0xd6, 0x13, 0xe9, 0x58,
  211. 0x1d, 0xa7, 0x23, 0x85, 0xf2, 0x74, 0xa4, 0xeb, 0x71, 0x3a, 0x52, 0x00, 0x7e, 0x00, 0xae, 0xc8,
  212. 0x59, 0x4b, 0x5f, 0x93, 0xbd, 0x7c, 0x2d, 0x3b, 0x31, 0x11, 0xff, 0xb1, 0x20, 0x9a, 0xba, 0x78,
  213. 0xd9, 0x49, 0x9b, 0x84, 0xa3, 0x05, 0xe9, 0x4d, 0xae, 0x0c, 0x53, 0xa1, 0xf0, 0x11, 0x58, 0x4a,
  214. 0x2f, 0x94, 0x8b, 0x3d, 0x1c, 0x63, 0x1d, 0xca, 0x62, 0x7f, 0x4b, 0x4e, 0x16, 0x92, 0xd8, 0x93,
  215. 0x78, 0xc2, 0x11, 0x2c, 0x5c, 0x29, 0x05, 0x1a, 0x66, 0xc9, 0x06, 0x9e, 0x00, 0x5d, 0xf6, 0xe9,
  216. 0x88, 0x86, 0x5d, 0x8a, 0x19, 0x2b, 0x36, 0xec, 0x75, 0xf9, 0x7c, 0xe2, 0xe5, 0xbb, 0x21, 0x6c,
  217. 0x5a, 0xa9, 0x49, 0xb1, 0x6d, 0xab, 0xd7, 0xd9, 0x54, 0x36, 0x7f, 0xf6, 0xe9, 0x9b, 0xe1, 0x21,
  218. 0x58, 0x4e, 0xeb, 0x22, 0xb2, 0xfb, 0x0c, 0x5b, 0x4c, 0xbf, 0x2e, 0xe3, 0xbd, 0x27, 0x9e, 0x43,
  219. 0x31, 0x2d, 0x41, 0x1c, 0xe6, 0xcf, 0x51, 0x04, 0x73, 0xef, 0x25, 0x53, 0x88, 0xc1, 0x92, 0xa8,
  220. 0x32, 0x91, 0x54, 0x8f, 0x38, 0x31, 0xd3, 0x37, 0xa4, 0xcf, 0xef, 0x09, 0x9f, 0xbe, 0x7d, 0xb2,
  221. 0x9b, 0xe1, 0xe3, 0x5b, 0x57, 0x00, 0xa7, 0x76, 0x40, 0xd5, 0xe9, 0xcc, 0xd2, 0x6e, 0xe8, 0x82,
  222. 0xeb, 0x2e, 0x61, 0xa2, 0x33, 0x5b, 0x2c, 0xb2, 0x29, 0xc3, 0x96, 0x1c, 0x00, 0xf4, 0x1b, 0xf2,
  223. 0x24, 0xe4, 0xc8, 0x95, 0xf2, 0x87, 0x92, 0x96, 0xa3, 0x45, 0x3e, 0x72, 0x4d, 0x52, 0x86, 0x39,
  224. 0xc5, 0xbe, 0x18, 0x25, 0xc6, 0x7e, 0x64, 0x91, 0xc0, 0xc5, 0x27, 0x98, 0xe9, 0x37, 0x27, 0xa2,
  225. 0x3c, 0xc1, 0x7e, 0xf4, 0x50, 0xb1, 0xd5, 0x28, 0x05, 0x6a, 0x1c, 0xa5, 0x00, 0xc2, 0x1d, 0x70,
  226. 0x55, 0x1e, 0x80, 0xab, 0xeb, 0xd2, 0xef, 0xe6, 0x88, 0xa3, 0x14, 0xc9, 0xdf, 0xf0, 0x6a, 0x69,
  227. 0x98, 0x29, 0x0e, 0x63, 0x70, 0xf3, 0x18, 0xdb, 0x47, 0x96, 0xa8, 0x6a, 0x2b, 0xee, 0x51, 0xcc,
  228. 0x7a, 0xa1, 0xe7, 0x5a, 0x91, 0x13, 0xeb, 0xaf, 0xc9, 0x84, 0x8b, 0xf6, 0x7e, 0x5d, 0x98, 0x7c,
  229. 0xdf, 0x66, 0xbd, 0x27, 0x99, 0x41, 0xcb, 0x89, 0x13, 0x8e, 0x36, 0xa5, 0xcb, 0x69, 0x64, 0x7e,
  230. 0xa8, 0x53, 0xb7, 0xc2, 0x5d, 0xb0, 0xe0, 0xdb, 0xf4, 0x08, 0x53, 0x2b, 0xb0, 0x7d, 0xac, 0x6f,
  231. 0xca, 0xe1, 0xca, 0x10, 0xed, 0x4c, 0xc1, 0x1f, 0xd9, 0x3e, 0xce, 0xdb, 0xd9, 0x18, 0x32, 0xcc,
  232. 0x02, 0x0f, 0x07, 0x60, 0x53, 0x7c, 0xc4, 0x58, 0xe1, 0x71, 0x80, 0x29, 0xeb, 0x91, 0xc8, 0xea,
  233. 0xd0, 0xd0, 0xb7, 0x22, 0x9b, 0xe2, 0x20, 0xd6, 0x6f, 0xc9, 0x14, 0x7c, 0x7b, 0xc4, 0xd1, 0x4d,
  234. 0x61, 0xf5, 0x38, 0x33, 0xda, 0xa7, 0xa1, 0xdf, 0x92, 0x26, 0x09, 0x47, 0x6f, 0x64, 0x1d, 0x6f,
  235. 0x1a, 0x6f, 0x98, 0x5f, 0xb5, 0x13, 0xfe, 0x4a, 0x03, 0x6b, 0x7e, 0xe8, 0x5a, 0x31, 0xf1, 0xb1,
  236. 0x75, 0x4c, 0x02, 0x37, 0x3c, 0xb6, 0x98, 0xfe, 0xba, 0x4c, 0xd8, 0x4f, 0xcf, 0x39, 0x5a, 0x33,
  237. 0xed, 0xe3, 0x83, 0xd0, 0x7d, 0x42, 0x7c, 0xfc, 0x54, 0xb2, 0xe2, 0x1d, 0xbe, 0xec, 0x97, 0x90,
  238. 0x7c, 0x04, 0x2d, 0xc3, 0x59, 0xe6, 0x4e, 0x87, 0x8d, 0x49, 0x2f, 0x66, 0xc5, 0x07, 0x7c, 0xa1,
  239. 0x81, 0x8d, 0xf4, 0x9a, 0x38, 0x7d, 0x2a, 0xb4, 0x59, 0xc7, 0x94, 0xc4, 0x98, 0xe9, 0x6f, 0x48,
  240. 0x31, 0x3f, 0x14, 0xad, 0x57, 0x15, 0x7c, 0xca, 0x3f, 0x95, 0x74, 0xc2, 0xd1, 0xed, 0xc2, 0xad,
  241. 0x29, 0x71, 0x85, 0xcb, 0xb3, 0x53, 0xb8, 0x3b, 0xda, 0x8e, 0x39, 0xcd, 0x93, 0x68, 0x62, 0x59,
  242. 0x6d, 0x77, 0xc4, 0x17, 0x93, 0x5e, 0x1b, 0x37, 0xb1, 0x94, 0xd8, 0x17, 0x78, 0x7e, 0xf9, 0x8b,
  243. 0xa0, 0x61, 0x96, 0x6c, 0xa0, 0x07, 0x56, 0xe5, 0x97, 0xac, 0x25, 0x7a, 0x81, 0xa5, 0xfa, 0x2b,
  244. 0x92, 0xfd, 0xf5, 0x46, 0xd6, 0x5f, 0x9b, 0x82, 0x1f, 0x37, 0x59, 0x39, 0xdc, 0xb7, 0x4b, 0x58,
  245. 0x9e, 0xd9, 0x32, 0x6c, 0x98, 0x15, 0x3b, 0xf8, 0x99, 0x06, 0xd6, 0x64, 0x09, 0xc9, 0x0f, 0x61,
  246. 0x4b, 0x7d, 0x09, 0xeb, 0x75, 0x19, 0x6f, 0x5d, 0x7c, 0x48, 0xec, 0x86, 0xd1, 0xc0, 0x14, 0xdc,
  247. 0x81, 0xa4, 0x9a, 0x8f, 0xc4, 0x28, 0xe6, 0x94, 0xc1, 0x84, 0xa3, 0xad, 0xbc, 0x8c, 0x0a, 0x78,
  248. 0x21, 0x8d, 0x2c, 0xb6, 0x03, 0xd7, 0xa6, 0xae, 0x78, 0xff, 0xcf, 0x65, 0x0b, 0xb3, 0xea, 0x08,
  249. 0xfe, 0x59, 0xc8, 0xb1, 0x45, 0x03, 0xc5, 0x01, 0x23, 0x31, 0x79, 0x26, 0x32, 0xaa, 0xbf, 0x29,
  250. 0xd3, 0x79, 0x22, 0xe6, 0xc2, 0x5d, 0x9b, 0xe1, 0xc3, 0x8c, 0xdb, 0x97, 0x73, 0xa1, 0x53, 0x86,
  251. 0x12, 0x8e, 0x36, 0x94, 0x98, 0x32, 0x2e, 0x66, 0xa0, 0x09, 0xdb, 0x49, 0x48, 0x8c, 0x81, 0x95,
  252. 0x20, 0x66, 0xc5, 0x86, 0xc1, 0x3f, 0x69, 0x60, 0xb5, 0x13, 0x7a, 0x5e, 0x78, 0x6c, 0x7d, 0xd2,
  253. 0x0f, 0x1c, 0x31, 0x8e, 0x30, 0xdd, 0x18, 0xab, 0xfc, 0x41, 0x06, 0x7e, 0xc0, 0xf6, 0x08, 0x65,
  254. 0x42, 0xe5, 0x27, 0x65, 0x28, 0x57, 0x59, 0xc1, 0xa5, 0xca, 0xaa, 0xed, 0x24, 0x24, 0x54, 0x56,
  255. 0x82, 0x98, 0x2b, 0x4a, 0x51, 0x0e, 0xc3, 0x23, 0x30, 0x4f, 0xb1, 0xed, 0x5a, 0x61, 0xe0, 0x0d,
  256. 0xf4, 0xbf, 0xee, 0x4b, 0x79, 0x07, 0xe7, 0x1c, 0xc1, 0x3d, 0x1c, 0x51, 0xec, 0xd8, 0x31, 0x76,
  257. 0x4d, 0x6c, 0xbb, 0x8f, 0x03, 0x6f, 0x30, 0xe2, 0x48, 0x7b, 0x2f, 0xff, 0x7a, 0xa7, 0xa1, 0x1c,
  258. 0x0f, 0xdf, 0x0d, 0x7d, 0x22, 0x7a, 0x75, 0x3c, 0x90, 0x5f, 0xef, 0x13, 0xa8, 0xae, 0x99, 0x73,
  259. 0x34, 0x75, 0x00, 0x7f, 0x01, 0xd6, 0x4a, 0x33, 0xa3, 0xec, 0x9f, 0x7f, 0x13, 0x41, 0xb5, 0xe6,
  260. 0x87, 0xe7, 0x1c, 0xe9, 0xe3, 0xa0, 0x07, 0xe3, 0xc9, 0xaf, 0xe5, 0xc4, 0x59, 0xe8, 0x5a, 0x75,
  261. 0x70, 0x6c, 0x39, 0x71, 0x41, 0x81, 0xae, 0x99, 0xcb, 0x65, 0x12, 0xfe, 0x04, 0x5c, 0x53, 0xef,
  262. 0x4b, 0xa6, 0x7f, 0xb1, 0x2f, 0xef, 0xfa, 0x77, 0x44, 0xe3, 0x19, 0x07, 0x52, 0x73, 0x10, 0x2b,
  263. 0x3f, 0x5c, 0xba, 0xa5, 0xe0, 0x3a, 0xbd, 0xe0, 0xba, 0x66, 0x66, 0xfe, 0x9a, 0x8f, 0x5e, 0x7e,
  264. 0x59, 0x9b, 0x19, 0x7e, 0x59, 0x9b, 0x79, 0x79, 0x5e, 0xd3, 0x86, 0xe7, 0x35, 0xed, 0x77, 0xaf,
  265. 0x6a, 0x33, 0x9f, 0xbf, 0xaa, 0x69, 0xc3, 0x57, 0xb5, 0x99, 0x7f, 0xbf, 0xaa, 0xcd, 0x7c, 0xfc,
  266. 0xf6, 0xff, 0xf0, 0x7f, 0x89, 0xba, 0xae, 0xed, 0xab, 0xf2, 0x7f, 0x93, 0xf7, 0xff, 0x1b, 0x00,
  267. 0x00, 0xff, 0xff, 0x3e, 0xb6, 0x85, 0xe6, 0x55, 0x13, 0x00, 0x00,
  268. }
  269. func (m *FolderDeviceConfiguration) Marshal() (dAtA []byte, err error) {
  270. size := m.ProtoSize()
  271. dAtA = make([]byte, size)
  272. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  273. if err != nil {
  274. return nil, err
  275. }
  276. return dAtA[:n], nil
  277. }
  278. func (m *FolderDeviceConfiguration) MarshalTo(dAtA []byte) (int, error) {
  279. size := m.ProtoSize()
  280. return m.MarshalToSizedBuffer(dAtA[:size])
  281. }
  282. func (m *FolderDeviceConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  283. i := len(dAtA)
  284. _ = i
  285. var l int
  286. _ = l
  287. if len(m.EncryptionPassword) > 0 {
  288. i -= len(m.EncryptionPassword)
  289. copy(dAtA[i:], m.EncryptionPassword)
  290. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.EncryptionPassword)))
  291. i--
  292. dAtA[i] = 0x1a
  293. }
  294. {
  295. size := m.IntroducedBy.ProtoSize()
  296. i -= size
  297. if _, err := m.IntroducedBy.MarshalTo(dAtA[i:]); err != nil {
  298. return 0, err
  299. }
  300. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  301. }
  302. i--
  303. dAtA[i] = 0x12
  304. {
  305. size := m.DeviceID.ProtoSize()
  306. i -= size
  307. if _, err := m.DeviceID.MarshalTo(dAtA[i:]); err != nil {
  308. return 0, err
  309. }
  310. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  311. }
  312. i--
  313. dAtA[i] = 0xa
  314. return len(dAtA) - i, nil
  315. }
  316. func (m *FolderConfiguration) Marshal() (dAtA []byte, err error) {
  317. size := m.ProtoSize()
  318. dAtA = make([]byte, size)
  319. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  320. if err != nil {
  321. return nil, err
  322. }
  323. return dAtA[:n], nil
  324. }
  325. func (m *FolderConfiguration) MarshalTo(dAtA []byte) (int, error) {
  326. size := m.ProtoSize()
  327. return m.MarshalToSizedBuffer(dAtA[:size])
  328. }
  329. func (m *FolderConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  330. i := len(dAtA)
  331. _ = i
  332. var l int
  333. _ = l
  334. if m.DeprecatedPullers != 0 {
  335. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.DeprecatedPullers))
  336. i--
  337. dAtA[i] = 0x4
  338. i--
  339. dAtA[i] = 0xb2
  340. i--
  341. dAtA[i] = 0xd0
  342. }
  343. if m.DeprecatedMinDiskFreePct != 0 {
  344. i -= 8
  345. encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.DeprecatedMinDiskFreePct))))
  346. i--
  347. dAtA[i] = 0x4
  348. i--
  349. dAtA[i] = 0xb2
  350. i--
  351. dAtA[i] = 0xc9
  352. }
  353. if m.DeprecatedReadOnly {
  354. i--
  355. if m.DeprecatedReadOnly {
  356. dAtA[i] = 1
  357. } else {
  358. dAtA[i] = 0
  359. }
  360. i--
  361. dAtA[i] = 0x4
  362. i--
  363. dAtA[i] = 0xb2
  364. i--
  365. dAtA[i] = 0xc0
  366. }
  367. if m.JunctionsAsDirs {
  368. i--
  369. if m.JunctionsAsDirs {
  370. dAtA[i] = 1
  371. } else {
  372. dAtA[i] = 0
  373. }
  374. i--
  375. dAtA[i] = 0x2
  376. i--
  377. dAtA[i] = 0x90
  378. }
  379. if m.CaseSensitiveFS {
  380. i--
  381. if m.CaseSensitiveFS {
  382. dAtA[i] = 1
  383. } else {
  384. dAtA[i] = 0
  385. }
  386. i--
  387. dAtA[i] = 0x2
  388. i--
  389. dAtA[i] = 0x88
  390. }
  391. if m.CopyRangeMethod != 0 {
  392. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.CopyRangeMethod))
  393. i--
  394. dAtA[i] = 0x2
  395. i--
  396. dAtA[i] = 0x80
  397. }
  398. if m.BlockPullOrder != 0 {
  399. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.BlockPullOrder))
  400. i--
  401. dAtA[i] = 0x1
  402. i--
  403. dAtA[i] = 0xf8
  404. }
  405. if m.DisableFsync {
  406. i--
  407. if m.DisableFsync {
  408. dAtA[i] = 1
  409. } else {
  410. dAtA[i] = 0
  411. }
  412. i--
  413. dAtA[i] = 0x1
  414. i--
  415. dAtA[i] = 0xf0
  416. }
  417. if m.MaxConcurrentWrites != 0 {
  418. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxConcurrentWrites))
  419. i--
  420. dAtA[i] = 0x1
  421. i--
  422. dAtA[i] = 0xe8
  423. }
  424. if m.RawModTimeWindowS != 0 {
  425. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.RawModTimeWindowS))
  426. i--
  427. dAtA[i] = 0x1
  428. i--
  429. dAtA[i] = 0xe0
  430. }
  431. if m.CopyOwnershipFromParent {
  432. i--
  433. if m.CopyOwnershipFromParent {
  434. dAtA[i] = 1
  435. } else {
  436. dAtA[i] = 0
  437. }
  438. i--
  439. dAtA[i] = 0x1
  440. i--
  441. dAtA[i] = 0xd8
  442. }
  443. if len(m.MarkerName) > 0 {
  444. i -= len(m.MarkerName)
  445. copy(dAtA[i:], m.MarkerName)
  446. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.MarkerName)))
  447. i--
  448. dAtA[i] = 0x1
  449. i--
  450. dAtA[i] = 0xd2
  451. }
  452. if m.WeakHashThresholdPct != 0 {
  453. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.WeakHashThresholdPct))
  454. i--
  455. dAtA[i] = 0x1
  456. i--
  457. dAtA[i] = 0xc8
  458. }
  459. if m.Paused {
  460. i--
  461. if m.Paused {
  462. dAtA[i] = 1
  463. } else {
  464. dAtA[i] = 0
  465. }
  466. i--
  467. dAtA[i] = 0x1
  468. i--
  469. dAtA[i] = 0xc0
  470. }
  471. if m.DisableTempIndexes {
  472. i--
  473. if m.DisableTempIndexes {
  474. dAtA[i] = 1
  475. } else {
  476. dAtA[i] = 0
  477. }
  478. i--
  479. dAtA[i] = 0x1
  480. i--
  481. dAtA[i] = 0xb8
  482. }
  483. if m.DisableSparseFiles {
  484. i--
  485. if m.DisableSparseFiles {
  486. dAtA[i] = 1
  487. } else {
  488. dAtA[i] = 0
  489. }
  490. i--
  491. dAtA[i] = 0x1
  492. i--
  493. dAtA[i] = 0xb0
  494. }
  495. if m.MaxConflicts != 0 {
  496. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.MaxConflicts))
  497. i--
  498. dAtA[i] = 0x1
  499. i--
  500. dAtA[i] = 0xa8
  501. }
  502. if m.PullerPauseS != 0 {
  503. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.PullerPauseS))
  504. i--
  505. dAtA[i] = 0x1
  506. i--
  507. dAtA[i] = 0xa0
  508. }
  509. if m.ScanProgressIntervalS != 0 {
  510. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.ScanProgressIntervalS))
  511. i--
  512. dAtA[i] = 0x1
  513. i--
  514. dAtA[i] = 0x98
  515. }
  516. if m.IgnoreDelete {
  517. i--
  518. if m.IgnoreDelete {
  519. dAtA[i] = 1
  520. } else {
  521. dAtA[i] = 0
  522. }
  523. i--
  524. dAtA[i] = 0x1
  525. i--
  526. dAtA[i] = 0x90
  527. }
  528. if m.Order != 0 {
  529. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Order))
  530. i--
  531. dAtA[i] = 0x1
  532. i--
  533. dAtA[i] = 0x88
  534. }
  535. if m.Hashers != 0 {
  536. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Hashers))
  537. i--
  538. dAtA[i] = 0x1
  539. i--
  540. dAtA[i] = 0x80
  541. }
  542. if m.PullerMaxPendingKiB != 0 {
  543. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.PullerMaxPendingKiB))
  544. i--
  545. dAtA[i] = 0x78
  546. }
  547. if m.Copiers != 0 {
  548. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Copiers))
  549. i--
  550. dAtA[i] = 0x70
  551. }
  552. {
  553. size, err := m.Versioning.MarshalToSizedBuffer(dAtA[:i])
  554. if err != nil {
  555. return 0, err
  556. }
  557. i -= size
  558. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  559. }
  560. i--
  561. dAtA[i] = 0x6a
  562. {
  563. size, err := m.MinDiskFree.MarshalToSizedBuffer(dAtA[:i])
  564. if err != nil {
  565. return 0, err
  566. }
  567. i -= size
  568. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  569. }
  570. i--
  571. dAtA[i] = 0x62
  572. if m.AutoNormalize {
  573. i--
  574. if m.AutoNormalize {
  575. dAtA[i] = 1
  576. } else {
  577. dAtA[i] = 0
  578. }
  579. i--
  580. dAtA[i] = 0x58
  581. }
  582. if m.IgnorePerms {
  583. i--
  584. if m.IgnorePerms {
  585. dAtA[i] = 1
  586. } else {
  587. dAtA[i] = 0
  588. }
  589. i--
  590. dAtA[i] = 0x50
  591. }
  592. if m.FSWatcherDelayS != 0 {
  593. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.FSWatcherDelayS))
  594. i--
  595. dAtA[i] = 0x48
  596. }
  597. if m.FSWatcherEnabled {
  598. i--
  599. if m.FSWatcherEnabled {
  600. dAtA[i] = 1
  601. } else {
  602. dAtA[i] = 0
  603. }
  604. i--
  605. dAtA[i] = 0x40
  606. }
  607. if m.RescanIntervalS != 0 {
  608. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.RescanIntervalS))
  609. i--
  610. dAtA[i] = 0x38
  611. }
  612. if len(m.Devices) > 0 {
  613. for iNdEx := len(m.Devices) - 1; iNdEx >= 0; iNdEx-- {
  614. {
  615. size, err := m.Devices[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  616. if err != nil {
  617. return 0, err
  618. }
  619. i -= size
  620. i = encodeVarintFolderconfiguration(dAtA, i, uint64(size))
  621. }
  622. i--
  623. dAtA[i] = 0x32
  624. }
  625. }
  626. if m.Type != 0 {
  627. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.Type))
  628. i--
  629. dAtA[i] = 0x28
  630. }
  631. if len(m.Path) > 0 {
  632. i -= len(m.Path)
  633. copy(dAtA[i:], m.Path)
  634. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.Path)))
  635. i--
  636. dAtA[i] = 0x22
  637. }
  638. if m.FilesystemType != 0 {
  639. i = encodeVarintFolderconfiguration(dAtA, i, uint64(m.FilesystemType))
  640. i--
  641. dAtA[i] = 0x18
  642. }
  643. if len(m.Label) > 0 {
  644. i -= len(m.Label)
  645. copy(dAtA[i:], m.Label)
  646. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.Label)))
  647. i--
  648. dAtA[i] = 0x12
  649. }
  650. if len(m.ID) > 0 {
  651. i -= len(m.ID)
  652. copy(dAtA[i:], m.ID)
  653. i = encodeVarintFolderconfiguration(dAtA, i, uint64(len(m.ID)))
  654. i--
  655. dAtA[i] = 0xa
  656. }
  657. return len(dAtA) - i, nil
  658. }
  659. func encodeVarintFolderconfiguration(dAtA []byte, offset int, v uint64) int {
  660. offset -= sovFolderconfiguration(v)
  661. base := offset
  662. for v >= 1<<7 {
  663. dAtA[offset] = uint8(v&0x7f | 0x80)
  664. v >>= 7
  665. offset++
  666. }
  667. dAtA[offset] = uint8(v)
  668. return base
  669. }
  670. func (m *FolderDeviceConfiguration) ProtoSize() (n int) {
  671. if m == nil {
  672. return 0
  673. }
  674. var l int
  675. _ = l
  676. l = m.DeviceID.ProtoSize()
  677. n += 1 + l + sovFolderconfiguration(uint64(l))
  678. l = m.IntroducedBy.ProtoSize()
  679. n += 1 + l + sovFolderconfiguration(uint64(l))
  680. l = len(m.EncryptionPassword)
  681. if l > 0 {
  682. n += 1 + l + sovFolderconfiguration(uint64(l))
  683. }
  684. return n
  685. }
  686. func (m *FolderConfiguration) ProtoSize() (n int) {
  687. if m == nil {
  688. return 0
  689. }
  690. var l int
  691. _ = l
  692. l = len(m.ID)
  693. if l > 0 {
  694. n += 1 + l + sovFolderconfiguration(uint64(l))
  695. }
  696. l = len(m.Label)
  697. if l > 0 {
  698. n += 1 + l + sovFolderconfiguration(uint64(l))
  699. }
  700. if m.FilesystemType != 0 {
  701. n += 1 + sovFolderconfiguration(uint64(m.FilesystemType))
  702. }
  703. l = len(m.Path)
  704. if l > 0 {
  705. n += 1 + l + sovFolderconfiguration(uint64(l))
  706. }
  707. if m.Type != 0 {
  708. n += 1 + sovFolderconfiguration(uint64(m.Type))
  709. }
  710. if len(m.Devices) > 0 {
  711. for _, e := range m.Devices {
  712. l = e.ProtoSize()
  713. n += 1 + l + sovFolderconfiguration(uint64(l))
  714. }
  715. }
  716. if m.RescanIntervalS != 0 {
  717. n += 1 + sovFolderconfiguration(uint64(m.RescanIntervalS))
  718. }
  719. if m.FSWatcherEnabled {
  720. n += 2
  721. }
  722. if m.FSWatcherDelayS != 0 {
  723. n += 1 + sovFolderconfiguration(uint64(m.FSWatcherDelayS))
  724. }
  725. if m.IgnorePerms {
  726. n += 2
  727. }
  728. if m.AutoNormalize {
  729. n += 2
  730. }
  731. l = m.MinDiskFree.ProtoSize()
  732. n += 1 + l + sovFolderconfiguration(uint64(l))
  733. l = m.Versioning.ProtoSize()
  734. n += 1 + l + sovFolderconfiguration(uint64(l))
  735. if m.Copiers != 0 {
  736. n += 1 + sovFolderconfiguration(uint64(m.Copiers))
  737. }
  738. if m.PullerMaxPendingKiB != 0 {
  739. n += 1 + sovFolderconfiguration(uint64(m.PullerMaxPendingKiB))
  740. }
  741. if m.Hashers != 0 {
  742. n += 2 + sovFolderconfiguration(uint64(m.Hashers))
  743. }
  744. if m.Order != 0 {
  745. n += 2 + sovFolderconfiguration(uint64(m.Order))
  746. }
  747. if m.IgnoreDelete {
  748. n += 3
  749. }
  750. if m.ScanProgressIntervalS != 0 {
  751. n += 2 + sovFolderconfiguration(uint64(m.ScanProgressIntervalS))
  752. }
  753. if m.PullerPauseS != 0 {
  754. n += 2 + sovFolderconfiguration(uint64(m.PullerPauseS))
  755. }
  756. if m.MaxConflicts != 0 {
  757. n += 2 + sovFolderconfiguration(uint64(m.MaxConflicts))
  758. }
  759. if m.DisableSparseFiles {
  760. n += 3
  761. }
  762. if m.DisableTempIndexes {
  763. n += 3
  764. }
  765. if m.Paused {
  766. n += 3
  767. }
  768. if m.WeakHashThresholdPct != 0 {
  769. n += 2 + sovFolderconfiguration(uint64(m.WeakHashThresholdPct))
  770. }
  771. l = len(m.MarkerName)
  772. if l > 0 {
  773. n += 2 + l + sovFolderconfiguration(uint64(l))
  774. }
  775. if m.CopyOwnershipFromParent {
  776. n += 3
  777. }
  778. if m.RawModTimeWindowS != 0 {
  779. n += 2 + sovFolderconfiguration(uint64(m.RawModTimeWindowS))
  780. }
  781. if m.MaxConcurrentWrites != 0 {
  782. n += 2 + sovFolderconfiguration(uint64(m.MaxConcurrentWrites))
  783. }
  784. if m.DisableFsync {
  785. n += 3
  786. }
  787. if m.BlockPullOrder != 0 {
  788. n += 2 + sovFolderconfiguration(uint64(m.BlockPullOrder))
  789. }
  790. if m.CopyRangeMethod != 0 {
  791. n += 2 + sovFolderconfiguration(uint64(m.CopyRangeMethod))
  792. }
  793. if m.CaseSensitiveFS {
  794. n += 3
  795. }
  796. if m.JunctionsAsDirs {
  797. n += 3
  798. }
  799. if m.DeprecatedReadOnly {
  800. n += 4
  801. }
  802. if m.DeprecatedMinDiskFreePct != 0 {
  803. n += 11
  804. }
  805. if m.DeprecatedPullers != 0 {
  806. n += 3 + sovFolderconfiguration(uint64(m.DeprecatedPullers))
  807. }
  808. return n
  809. }
  810. func sovFolderconfiguration(x uint64) (n int) {
  811. return (math_bits.Len64(x|1) + 6) / 7
  812. }
  813. func sozFolderconfiguration(x uint64) (n int) {
  814. return sovFolderconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  815. }
  816. func (m *FolderDeviceConfiguration) Unmarshal(dAtA []byte) error {
  817. l := len(dAtA)
  818. iNdEx := 0
  819. for iNdEx < l {
  820. preIndex := iNdEx
  821. var wire uint64
  822. for shift := uint(0); ; shift += 7 {
  823. if shift >= 64 {
  824. return ErrIntOverflowFolderconfiguration
  825. }
  826. if iNdEx >= l {
  827. return io.ErrUnexpectedEOF
  828. }
  829. b := dAtA[iNdEx]
  830. iNdEx++
  831. wire |= uint64(b&0x7F) << shift
  832. if b < 0x80 {
  833. break
  834. }
  835. }
  836. fieldNum := int32(wire >> 3)
  837. wireType := int(wire & 0x7)
  838. if wireType == 4 {
  839. return fmt.Errorf("proto: FolderDeviceConfiguration: wiretype end group for non-group")
  840. }
  841. if fieldNum <= 0 {
  842. return fmt.Errorf("proto: FolderDeviceConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  843. }
  844. switch fieldNum {
  845. case 1:
  846. if wireType != 2 {
  847. return fmt.Errorf("proto: wrong wireType = %d for field DeviceID", wireType)
  848. }
  849. var byteLen int
  850. for shift := uint(0); ; shift += 7 {
  851. if shift >= 64 {
  852. return ErrIntOverflowFolderconfiguration
  853. }
  854. if iNdEx >= l {
  855. return io.ErrUnexpectedEOF
  856. }
  857. b := dAtA[iNdEx]
  858. iNdEx++
  859. byteLen |= int(b&0x7F) << shift
  860. if b < 0x80 {
  861. break
  862. }
  863. }
  864. if byteLen < 0 {
  865. return ErrInvalidLengthFolderconfiguration
  866. }
  867. postIndex := iNdEx + byteLen
  868. if postIndex < 0 {
  869. return ErrInvalidLengthFolderconfiguration
  870. }
  871. if postIndex > l {
  872. return io.ErrUnexpectedEOF
  873. }
  874. if err := m.DeviceID.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  875. return err
  876. }
  877. iNdEx = postIndex
  878. case 2:
  879. if wireType != 2 {
  880. return fmt.Errorf("proto: wrong wireType = %d for field IntroducedBy", wireType)
  881. }
  882. var byteLen int
  883. for shift := uint(0); ; shift += 7 {
  884. if shift >= 64 {
  885. return ErrIntOverflowFolderconfiguration
  886. }
  887. if iNdEx >= l {
  888. return io.ErrUnexpectedEOF
  889. }
  890. b := dAtA[iNdEx]
  891. iNdEx++
  892. byteLen |= int(b&0x7F) << shift
  893. if b < 0x80 {
  894. break
  895. }
  896. }
  897. if byteLen < 0 {
  898. return ErrInvalidLengthFolderconfiguration
  899. }
  900. postIndex := iNdEx + byteLen
  901. if postIndex < 0 {
  902. return ErrInvalidLengthFolderconfiguration
  903. }
  904. if postIndex > l {
  905. return io.ErrUnexpectedEOF
  906. }
  907. if err := m.IntroducedBy.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  908. return err
  909. }
  910. iNdEx = postIndex
  911. case 3:
  912. if wireType != 2 {
  913. return fmt.Errorf("proto: wrong wireType = %d for field EncryptionPassword", wireType)
  914. }
  915. var stringLen uint64
  916. for shift := uint(0); ; shift += 7 {
  917. if shift >= 64 {
  918. return ErrIntOverflowFolderconfiguration
  919. }
  920. if iNdEx >= l {
  921. return io.ErrUnexpectedEOF
  922. }
  923. b := dAtA[iNdEx]
  924. iNdEx++
  925. stringLen |= uint64(b&0x7F) << shift
  926. if b < 0x80 {
  927. break
  928. }
  929. }
  930. intStringLen := int(stringLen)
  931. if intStringLen < 0 {
  932. return ErrInvalidLengthFolderconfiguration
  933. }
  934. postIndex := iNdEx + intStringLen
  935. if postIndex < 0 {
  936. return ErrInvalidLengthFolderconfiguration
  937. }
  938. if postIndex > l {
  939. return io.ErrUnexpectedEOF
  940. }
  941. m.EncryptionPassword = string(dAtA[iNdEx:postIndex])
  942. iNdEx = postIndex
  943. default:
  944. iNdEx = preIndex
  945. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  946. if err != nil {
  947. return err
  948. }
  949. if (skippy < 0) || (iNdEx+skippy) < 0 {
  950. return ErrInvalidLengthFolderconfiguration
  951. }
  952. if (iNdEx + skippy) > l {
  953. return io.ErrUnexpectedEOF
  954. }
  955. iNdEx += skippy
  956. }
  957. }
  958. if iNdEx > l {
  959. return io.ErrUnexpectedEOF
  960. }
  961. return nil
  962. }
  963. func (m *FolderConfiguration) Unmarshal(dAtA []byte) error {
  964. l := len(dAtA)
  965. iNdEx := 0
  966. for iNdEx < l {
  967. preIndex := iNdEx
  968. var wire uint64
  969. for shift := uint(0); ; shift += 7 {
  970. if shift >= 64 {
  971. return ErrIntOverflowFolderconfiguration
  972. }
  973. if iNdEx >= l {
  974. return io.ErrUnexpectedEOF
  975. }
  976. b := dAtA[iNdEx]
  977. iNdEx++
  978. wire |= uint64(b&0x7F) << shift
  979. if b < 0x80 {
  980. break
  981. }
  982. }
  983. fieldNum := int32(wire >> 3)
  984. wireType := int(wire & 0x7)
  985. if wireType == 4 {
  986. return fmt.Errorf("proto: FolderConfiguration: wiretype end group for non-group")
  987. }
  988. if fieldNum <= 0 {
  989. return fmt.Errorf("proto: FolderConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  990. }
  991. switch fieldNum {
  992. case 1:
  993. if wireType != 2 {
  994. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  995. }
  996. var stringLen uint64
  997. for shift := uint(0); ; shift += 7 {
  998. if shift >= 64 {
  999. return ErrIntOverflowFolderconfiguration
  1000. }
  1001. if iNdEx >= l {
  1002. return io.ErrUnexpectedEOF
  1003. }
  1004. b := dAtA[iNdEx]
  1005. iNdEx++
  1006. stringLen |= uint64(b&0x7F) << shift
  1007. if b < 0x80 {
  1008. break
  1009. }
  1010. }
  1011. intStringLen := int(stringLen)
  1012. if intStringLen < 0 {
  1013. return ErrInvalidLengthFolderconfiguration
  1014. }
  1015. postIndex := iNdEx + intStringLen
  1016. if postIndex < 0 {
  1017. return ErrInvalidLengthFolderconfiguration
  1018. }
  1019. if postIndex > l {
  1020. return io.ErrUnexpectedEOF
  1021. }
  1022. m.ID = string(dAtA[iNdEx:postIndex])
  1023. iNdEx = postIndex
  1024. case 2:
  1025. if wireType != 2 {
  1026. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  1027. }
  1028. var stringLen uint64
  1029. for shift := uint(0); ; shift += 7 {
  1030. if shift >= 64 {
  1031. return ErrIntOverflowFolderconfiguration
  1032. }
  1033. if iNdEx >= l {
  1034. return io.ErrUnexpectedEOF
  1035. }
  1036. b := dAtA[iNdEx]
  1037. iNdEx++
  1038. stringLen |= uint64(b&0x7F) << shift
  1039. if b < 0x80 {
  1040. break
  1041. }
  1042. }
  1043. intStringLen := int(stringLen)
  1044. if intStringLen < 0 {
  1045. return ErrInvalidLengthFolderconfiguration
  1046. }
  1047. postIndex := iNdEx + intStringLen
  1048. if postIndex < 0 {
  1049. return ErrInvalidLengthFolderconfiguration
  1050. }
  1051. if postIndex > l {
  1052. return io.ErrUnexpectedEOF
  1053. }
  1054. m.Label = string(dAtA[iNdEx:postIndex])
  1055. iNdEx = postIndex
  1056. case 3:
  1057. if wireType != 0 {
  1058. return fmt.Errorf("proto: wrong wireType = %d for field FilesystemType", wireType)
  1059. }
  1060. m.FilesystemType = 0
  1061. for shift := uint(0); ; shift += 7 {
  1062. if shift >= 64 {
  1063. return ErrIntOverflowFolderconfiguration
  1064. }
  1065. if iNdEx >= l {
  1066. return io.ErrUnexpectedEOF
  1067. }
  1068. b := dAtA[iNdEx]
  1069. iNdEx++
  1070. m.FilesystemType |= fs.FilesystemType(b&0x7F) << shift
  1071. if b < 0x80 {
  1072. break
  1073. }
  1074. }
  1075. case 4:
  1076. if wireType != 2 {
  1077. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  1078. }
  1079. var stringLen uint64
  1080. for shift := uint(0); ; shift += 7 {
  1081. if shift >= 64 {
  1082. return ErrIntOverflowFolderconfiguration
  1083. }
  1084. if iNdEx >= l {
  1085. return io.ErrUnexpectedEOF
  1086. }
  1087. b := dAtA[iNdEx]
  1088. iNdEx++
  1089. stringLen |= uint64(b&0x7F) << shift
  1090. if b < 0x80 {
  1091. break
  1092. }
  1093. }
  1094. intStringLen := int(stringLen)
  1095. if intStringLen < 0 {
  1096. return ErrInvalidLengthFolderconfiguration
  1097. }
  1098. postIndex := iNdEx + intStringLen
  1099. if postIndex < 0 {
  1100. return ErrInvalidLengthFolderconfiguration
  1101. }
  1102. if postIndex > l {
  1103. return io.ErrUnexpectedEOF
  1104. }
  1105. m.Path = string(dAtA[iNdEx:postIndex])
  1106. iNdEx = postIndex
  1107. case 5:
  1108. if wireType != 0 {
  1109. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1110. }
  1111. m.Type = 0
  1112. for shift := uint(0); ; shift += 7 {
  1113. if shift >= 64 {
  1114. return ErrIntOverflowFolderconfiguration
  1115. }
  1116. if iNdEx >= l {
  1117. return io.ErrUnexpectedEOF
  1118. }
  1119. b := dAtA[iNdEx]
  1120. iNdEx++
  1121. m.Type |= FolderType(b&0x7F) << shift
  1122. if b < 0x80 {
  1123. break
  1124. }
  1125. }
  1126. case 6:
  1127. if wireType != 2 {
  1128. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1129. }
  1130. var msglen int
  1131. for shift := uint(0); ; shift += 7 {
  1132. if shift >= 64 {
  1133. return ErrIntOverflowFolderconfiguration
  1134. }
  1135. if iNdEx >= l {
  1136. return io.ErrUnexpectedEOF
  1137. }
  1138. b := dAtA[iNdEx]
  1139. iNdEx++
  1140. msglen |= int(b&0x7F) << shift
  1141. if b < 0x80 {
  1142. break
  1143. }
  1144. }
  1145. if msglen < 0 {
  1146. return ErrInvalidLengthFolderconfiguration
  1147. }
  1148. postIndex := iNdEx + msglen
  1149. if postIndex < 0 {
  1150. return ErrInvalidLengthFolderconfiguration
  1151. }
  1152. if postIndex > l {
  1153. return io.ErrUnexpectedEOF
  1154. }
  1155. m.Devices = append(m.Devices, FolderDeviceConfiguration{})
  1156. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1157. return err
  1158. }
  1159. iNdEx = postIndex
  1160. case 7:
  1161. if wireType != 0 {
  1162. return fmt.Errorf("proto: wrong wireType = %d for field RescanIntervalS", wireType)
  1163. }
  1164. m.RescanIntervalS = 0
  1165. for shift := uint(0); ; shift += 7 {
  1166. if shift >= 64 {
  1167. return ErrIntOverflowFolderconfiguration
  1168. }
  1169. if iNdEx >= l {
  1170. return io.ErrUnexpectedEOF
  1171. }
  1172. b := dAtA[iNdEx]
  1173. iNdEx++
  1174. m.RescanIntervalS |= int(b&0x7F) << shift
  1175. if b < 0x80 {
  1176. break
  1177. }
  1178. }
  1179. case 8:
  1180. if wireType != 0 {
  1181. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherEnabled", wireType)
  1182. }
  1183. var v int
  1184. for shift := uint(0); ; shift += 7 {
  1185. if shift >= 64 {
  1186. return ErrIntOverflowFolderconfiguration
  1187. }
  1188. if iNdEx >= l {
  1189. return io.ErrUnexpectedEOF
  1190. }
  1191. b := dAtA[iNdEx]
  1192. iNdEx++
  1193. v |= int(b&0x7F) << shift
  1194. if b < 0x80 {
  1195. break
  1196. }
  1197. }
  1198. m.FSWatcherEnabled = bool(v != 0)
  1199. case 9:
  1200. if wireType != 0 {
  1201. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherDelayS", wireType)
  1202. }
  1203. m.FSWatcherDelayS = 0
  1204. for shift := uint(0); ; shift += 7 {
  1205. if shift >= 64 {
  1206. return ErrIntOverflowFolderconfiguration
  1207. }
  1208. if iNdEx >= l {
  1209. return io.ErrUnexpectedEOF
  1210. }
  1211. b := dAtA[iNdEx]
  1212. iNdEx++
  1213. m.FSWatcherDelayS |= int(b&0x7F) << shift
  1214. if b < 0x80 {
  1215. break
  1216. }
  1217. }
  1218. case 10:
  1219. if wireType != 0 {
  1220. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePerms", wireType)
  1221. }
  1222. var v int
  1223. for shift := uint(0); ; shift += 7 {
  1224. if shift >= 64 {
  1225. return ErrIntOverflowFolderconfiguration
  1226. }
  1227. if iNdEx >= l {
  1228. return io.ErrUnexpectedEOF
  1229. }
  1230. b := dAtA[iNdEx]
  1231. iNdEx++
  1232. v |= int(b&0x7F) << shift
  1233. if b < 0x80 {
  1234. break
  1235. }
  1236. }
  1237. m.IgnorePerms = bool(v != 0)
  1238. case 11:
  1239. if wireType != 0 {
  1240. return fmt.Errorf("proto: wrong wireType = %d for field AutoNormalize", wireType)
  1241. }
  1242. var v int
  1243. for shift := uint(0); ; shift += 7 {
  1244. if shift >= 64 {
  1245. return ErrIntOverflowFolderconfiguration
  1246. }
  1247. if iNdEx >= l {
  1248. return io.ErrUnexpectedEOF
  1249. }
  1250. b := dAtA[iNdEx]
  1251. iNdEx++
  1252. v |= int(b&0x7F) << shift
  1253. if b < 0x80 {
  1254. break
  1255. }
  1256. }
  1257. m.AutoNormalize = bool(v != 0)
  1258. case 12:
  1259. if wireType != 2 {
  1260. return fmt.Errorf("proto: wrong wireType = %d for field MinDiskFree", wireType)
  1261. }
  1262. var msglen int
  1263. for shift := uint(0); ; shift += 7 {
  1264. if shift >= 64 {
  1265. return ErrIntOverflowFolderconfiguration
  1266. }
  1267. if iNdEx >= l {
  1268. return io.ErrUnexpectedEOF
  1269. }
  1270. b := dAtA[iNdEx]
  1271. iNdEx++
  1272. msglen |= int(b&0x7F) << shift
  1273. if b < 0x80 {
  1274. break
  1275. }
  1276. }
  1277. if msglen < 0 {
  1278. return ErrInvalidLengthFolderconfiguration
  1279. }
  1280. postIndex := iNdEx + msglen
  1281. if postIndex < 0 {
  1282. return ErrInvalidLengthFolderconfiguration
  1283. }
  1284. if postIndex > l {
  1285. return io.ErrUnexpectedEOF
  1286. }
  1287. if err := m.MinDiskFree.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1288. return err
  1289. }
  1290. iNdEx = postIndex
  1291. case 13:
  1292. if wireType != 2 {
  1293. return fmt.Errorf("proto: wrong wireType = %d for field Versioning", wireType)
  1294. }
  1295. var msglen int
  1296. for shift := uint(0); ; shift += 7 {
  1297. if shift >= 64 {
  1298. return ErrIntOverflowFolderconfiguration
  1299. }
  1300. if iNdEx >= l {
  1301. return io.ErrUnexpectedEOF
  1302. }
  1303. b := dAtA[iNdEx]
  1304. iNdEx++
  1305. msglen |= int(b&0x7F) << shift
  1306. if b < 0x80 {
  1307. break
  1308. }
  1309. }
  1310. if msglen < 0 {
  1311. return ErrInvalidLengthFolderconfiguration
  1312. }
  1313. postIndex := iNdEx + msglen
  1314. if postIndex < 0 {
  1315. return ErrInvalidLengthFolderconfiguration
  1316. }
  1317. if postIndex > l {
  1318. return io.ErrUnexpectedEOF
  1319. }
  1320. if err := m.Versioning.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1321. return err
  1322. }
  1323. iNdEx = postIndex
  1324. case 14:
  1325. if wireType != 0 {
  1326. return fmt.Errorf("proto: wrong wireType = %d for field Copiers", wireType)
  1327. }
  1328. m.Copiers = 0
  1329. for shift := uint(0); ; shift += 7 {
  1330. if shift >= 64 {
  1331. return ErrIntOverflowFolderconfiguration
  1332. }
  1333. if iNdEx >= l {
  1334. return io.ErrUnexpectedEOF
  1335. }
  1336. b := dAtA[iNdEx]
  1337. iNdEx++
  1338. m.Copiers |= int(b&0x7F) << shift
  1339. if b < 0x80 {
  1340. break
  1341. }
  1342. }
  1343. case 15:
  1344. if wireType != 0 {
  1345. return fmt.Errorf("proto: wrong wireType = %d for field PullerMaxPendingKiB", wireType)
  1346. }
  1347. m.PullerMaxPendingKiB = 0
  1348. for shift := uint(0); ; shift += 7 {
  1349. if shift >= 64 {
  1350. return ErrIntOverflowFolderconfiguration
  1351. }
  1352. if iNdEx >= l {
  1353. return io.ErrUnexpectedEOF
  1354. }
  1355. b := dAtA[iNdEx]
  1356. iNdEx++
  1357. m.PullerMaxPendingKiB |= int(b&0x7F) << shift
  1358. if b < 0x80 {
  1359. break
  1360. }
  1361. }
  1362. case 16:
  1363. if wireType != 0 {
  1364. return fmt.Errorf("proto: wrong wireType = %d for field Hashers", wireType)
  1365. }
  1366. m.Hashers = 0
  1367. for shift := uint(0); ; shift += 7 {
  1368. if shift >= 64 {
  1369. return ErrIntOverflowFolderconfiguration
  1370. }
  1371. if iNdEx >= l {
  1372. return io.ErrUnexpectedEOF
  1373. }
  1374. b := dAtA[iNdEx]
  1375. iNdEx++
  1376. m.Hashers |= int(b&0x7F) << shift
  1377. if b < 0x80 {
  1378. break
  1379. }
  1380. }
  1381. case 17:
  1382. if wireType != 0 {
  1383. return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType)
  1384. }
  1385. m.Order = 0
  1386. for shift := uint(0); ; shift += 7 {
  1387. if shift >= 64 {
  1388. return ErrIntOverflowFolderconfiguration
  1389. }
  1390. if iNdEx >= l {
  1391. return io.ErrUnexpectedEOF
  1392. }
  1393. b := dAtA[iNdEx]
  1394. iNdEx++
  1395. m.Order |= PullOrder(b&0x7F) << shift
  1396. if b < 0x80 {
  1397. break
  1398. }
  1399. }
  1400. case 18:
  1401. if wireType != 0 {
  1402. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  1403. }
  1404. var v int
  1405. for shift := uint(0); ; shift += 7 {
  1406. if shift >= 64 {
  1407. return ErrIntOverflowFolderconfiguration
  1408. }
  1409. if iNdEx >= l {
  1410. return io.ErrUnexpectedEOF
  1411. }
  1412. b := dAtA[iNdEx]
  1413. iNdEx++
  1414. v |= int(b&0x7F) << shift
  1415. if b < 0x80 {
  1416. break
  1417. }
  1418. }
  1419. m.IgnoreDelete = bool(v != 0)
  1420. case 19:
  1421. if wireType != 0 {
  1422. return fmt.Errorf("proto: wrong wireType = %d for field ScanProgressIntervalS", wireType)
  1423. }
  1424. m.ScanProgressIntervalS = 0
  1425. for shift := uint(0); ; shift += 7 {
  1426. if shift >= 64 {
  1427. return ErrIntOverflowFolderconfiguration
  1428. }
  1429. if iNdEx >= l {
  1430. return io.ErrUnexpectedEOF
  1431. }
  1432. b := dAtA[iNdEx]
  1433. iNdEx++
  1434. m.ScanProgressIntervalS |= int(b&0x7F) << shift
  1435. if b < 0x80 {
  1436. break
  1437. }
  1438. }
  1439. case 20:
  1440. if wireType != 0 {
  1441. return fmt.Errorf("proto: wrong wireType = %d for field PullerPauseS", wireType)
  1442. }
  1443. m.PullerPauseS = 0
  1444. for shift := uint(0); ; shift += 7 {
  1445. if shift >= 64 {
  1446. return ErrIntOverflowFolderconfiguration
  1447. }
  1448. if iNdEx >= l {
  1449. return io.ErrUnexpectedEOF
  1450. }
  1451. b := dAtA[iNdEx]
  1452. iNdEx++
  1453. m.PullerPauseS |= int(b&0x7F) << shift
  1454. if b < 0x80 {
  1455. break
  1456. }
  1457. }
  1458. case 21:
  1459. if wireType != 0 {
  1460. return fmt.Errorf("proto: wrong wireType = %d for field MaxConflicts", wireType)
  1461. }
  1462. m.MaxConflicts = 0
  1463. for shift := uint(0); ; shift += 7 {
  1464. if shift >= 64 {
  1465. return ErrIntOverflowFolderconfiguration
  1466. }
  1467. if iNdEx >= l {
  1468. return io.ErrUnexpectedEOF
  1469. }
  1470. b := dAtA[iNdEx]
  1471. iNdEx++
  1472. m.MaxConflicts |= int(b&0x7F) << shift
  1473. if b < 0x80 {
  1474. break
  1475. }
  1476. }
  1477. case 22:
  1478. if wireType != 0 {
  1479. return fmt.Errorf("proto: wrong wireType = %d for field DisableSparseFiles", wireType)
  1480. }
  1481. var v int
  1482. for shift := uint(0); ; shift += 7 {
  1483. if shift >= 64 {
  1484. return ErrIntOverflowFolderconfiguration
  1485. }
  1486. if iNdEx >= l {
  1487. return io.ErrUnexpectedEOF
  1488. }
  1489. b := dAtA[iNdEx]
  1490. iNdEx++
  1491. v |= int(b&0x7F) << shift
  1492. if b < 0x80 {
  1493. break
  1494. }
  1495. }
  1496. m.DisableSparseFiles = bool(v != 0)
  1497. case 23:
  1498. if wireType != 0 {
  1499. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  1500. }
  1501. var v int
  1502. for shift := uint(0); ; shift += 7 {
  1503. if shift >= 64 {
  1504. return ErrIntOverflowFolderconfiguration
  1505. }
  1506. if iNdEx >= l {
  1507. return io.ErrUnexpectedEOF
  1508. }
  1509. b := dAtA[iNdEx]
  1510. iNdEx++
  1511. v |= int(b&0x7F) << shift
  1512. if b < 0x80 {
  1513. break
  1514. }
  1515. }
  1516. m.DisableTempIndexes = bool(v != 0)
  1517. case 24:
  1518. if wireType != 0 {
  1519. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  1520. }
  1521. var v int
  1522. for shift := uint(0); ; shift += 7 {
  1523. if shift >= 64 {
  1524. return ErrIntOverflowFolderconfiguration
  1525. }
  1526. if iNdEx >= l {
  1527. return io.ErrUnexpectedEOF
  1528. }
  1529. b := dAtA[iNdEx]
  1530. iNdEx++
  1531. v |= int(b&0x7F) << shift
  1532. if b < 0x80 {
  1533. break
  1534. }
  1535. }
  1536. m.Paused = bool(v != 0)
  1537. case 25:
  1538. if wireType != 0 {
  1539. return fmt.Errorf("proto: wrong wireType = %d for field WeakHashThresholdPct", wireType)
  1540. }
  1541. m.WeakHashThresholdPct = 0
  1542. for shift := uint(0); ; shift += 7 {
  1543. if shift >= 64 {
  1544. return ErrIntOverflowFolderconfiguration
  1545. }
  1546. if iNdEx >= l {
  1547. return io.ErrUnexpectedEOF
  1548. }
  1549. b := dAtA[iNdEx]
  1550. iNdEx++
  1551. m.WeakHashThresholdPct |= int(b&0x7F) << shift
  1552. if b < 0x80 {
  1553. break
  1554. }
  1555. }
  1556. case 26:
  1557. if wireType != 2 {
  1558. return fmt.Errorf("proto: wrong wireType = %d for field MarkerName", wireType)
  1559. }
  1560. var stringLen uint64
  1561. for shift := uint(0); ; shift += 7 {
  1562. if shift >= 64 {
  1563. return ErrIntOverflowFolderconfiguration
  1564. }
  1565. if iNdEx >= l {
  1566. return io.ErrUnexpectedEOF
  1567. }
  1568. b := dAtA[iNdEx]
  1569. iNdEx++
  1570. stringLen |= uint64(b&0x7F) << shift
  1571. if b < 0x80 {
  1572. break
  1573. }
  1574. }
  1575. intStringLen := int(stringLen)
  1576. if intStringLen < 0 {
  1577. return ErrInvalidLengthFolderconfiguration
  1578. }
  1579. postIndex := iNdEx + intStringLen
  1580. if postIndex < 0 {
  1581. return ErrInvalidLengthFolderconfiguration
  1582. }
  1583. if postIndex > l {
  1584. return io.ErrUnexpectedEOF
  1585. }
  1586. m.MarkerName = string(dAtA[iNdEx:postIndex])
  1587. iNdEx = postIndex
  1588. case 27:
  1589. if wireType != 0 {
  1590. return fmt.Errorf("proto: wrong wireType = %d for field CopyOwnershipFromParent", wireType)
  1591. }
  1592. var v int
  1593. for shift := uint(0); ; shift += 7 {
  1594. if shift >= 64 {
  1595. return ErrIntOverflowFolderconfiguration
  1596. }
  1597. if iNdEx >= l {
  1598. return io.ErrUnexpectedEOF
  1599. }
  1600. b := dAtA[iNdEx]
  1601. iNdEx++
  1602. v |= int(b&0x7F) << shift
  1603. if b < 0x80 {
  1604. break
  1605. }
  1606. }
  1607. m.CopyOwnershipFromParent = bool(v != 0)
  1608. case 28:
  1609. if wireType != 0 {
  1610. return fmt.Errorf("proto: wrong wireType = %d for field RawModTimeWindowS", wireType)
  1611. }
  1612. m.RawModTimeWindowS = 0
  1613. for shift := uint(0); ; shift += 7 {
  1614. if shift >= 64 {
  1615. return ErrIntOverflowFolderconfiguration
  1616. }
  1617. if iNdEx >= l {
  1618. return io.ErrUnexpectedEOF
  1619. }
  1620. b := dAtA[iNdEx]
  1621. iNdEx++
  1622. m.RawModTimeWindowS |= int(b&0x7F) << shift
  1623. if b < 0x80 {
  1624. break
  1625. }
  1626. }
  1627. case 29:
  1628. if wireType != 0 {
  1629. return fmt.Errorf("proto: wrong wireType = %d for field MaxConcurrentWrites", wireType)
  1630. }
  1631. m.MaxConcurrentWrites = 0
  1632. for shift := uint(0); ; shift += 7 {
  1633. if shift >= 64 {
  1634. return ErrIntOverflowFolderconfiguration
  1635. }
  1636. if iNdEx >= l {
  1637. return io.ErrUnexpectedEOF
  1638. }
  1639. b := dAtA[iNdEx]
  1640. iNdEx++
  1641. m.MaxConcurrentWrites |= int(b&0x7F) << shift
  1642. if b < 0x80 {
  1643. break
  1644. }
  1645. }
  1646. case 30:
  1647. if wireType != 0 {
  1648. return fmt.Errorf("proto: wrong wireType = %d for field DisableFsync", wireType)
  1649. }
  1650. var v int
  1651. for shift := uint(0); ; shift += 7 {
  1652. if shift >= 64 {
  1653. return ErrIntOverflowFolderconfiguration
  1654. }
  1655. if iNdEx >= l {
  1656. return io.ErrUnexpectedEOF
  1657. }
  1658. b := dAtA[iNdEx]
  1659. iNdEx++
  1660. v |= int(b&0x7F) << shift
  1661. if b < 0x80 {
  1662. break
  1663. }
  1664. }
  1665. m.DisableFsync = bool(v != 0)
  1666. case 31:
  1667. if wireType != 0 {
  1668. return fmt.Errorf("proto: wrong wireType = %d for field BlockPullOrder", wireType)
  1669. }
  1670. m.BlockPullOrder = 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.BlockPullOrder |= BlockPullOrder(b&0x7F) << shift
  1681. if b < 0x80 {
  1682. break
  1683. }
  1684. }
  1685. case 32:
  1686. if wireType != 0 {
  1687. return fmt.Errorf("proto: wrong wireType = %d for field CopyRangeMethod", wireType)
  1688. }
  1689. m.CopyRangeMethod = 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.CopyRangeMethod |= fs.CopyRangeMethod(b&0x7F) << shift
  1700. if b < 0x80 {
  1701. break
  1702. }
  1703. }
  1704. case 33:
  1705. if wireType != 0 {
  1706. return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitiveFS", wireType)
  1707. }
  1708. var v int
  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. v |= int(b&0x7F) << shift
  1719. if b < 0x80 {
  1720. break
  1721. }
  1722. }
  1723. m.CaseSensitiveFS = bool(v != 0)
  1724. case 34:
  1725. if wireType != 0 {
  1726. return fmt.Errorf("proto: wrong wireType = %d for field JunctionsAsDirs", wireType)
  1727. }
  1728. var v int
  1729. for shift := uint(0); ; shift += 7 {
  1730. if shift >= 64 {
  1731. return ErrIntOverflowFolderconfiguration
  1732. }
  1733. if iNdEx >= l {
  1734. return io.ErrUnexpectedEOF
  1735. }
  1736. b := dAtA[iNdEx]
  1737. iNdEx++
  1738. v |= int(b&0x7F) << shift
  1739. if b < 0x80 {
  1740. break
  1741. }
  1742. }
  1743. m.JunctionsAsDirs = bool(v != 0)
  1744. case 9000:
  1745. if wireType != 0 {
  1746. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedReadOnly", wireType)
  1747. }
  1748. var v int
  1749. for shift := uint(0); ; shift += 7 {
  1750. if shift >= 64 {
  1751. return ErrIntOverflowFolderconfiguration
  1752. }
  1753. if iNdEx >= l {
  1754. return io.ErrUnexpectedEOF
  1755. }
  1756. b := dAtA[iNdEx]
  1757. iNdEx++
  1758. v |= int(b&0x7F) << shift
  1759. if b < 0x80 {
  1760. break
  1761. }
  1762. }
  1763. m.DeprecatedReadOnly = bool(v != 0)
  1764. case 9001:
  1765. if wireType != 1 {
  1766. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedMinDiskFreePct", wireType)
  1767. }
  1768. var v uint64
  1769. if (iNdEx + 8) > l {
  1770. return io.ErrUnexpectedEOF
  1771. }
  1772. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1773. iNdEx += 8
  1774. m.DeprecatedMinDiskFreePct = float64(math.Float64frombits(v))
  1775. case 9002:
  1776. if wireType != 0 {
  1777. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedPullers", wireType)
  1778. }
  1779. m.DeprecatedPullers = 0
  1780. for shift := uint(0); ; shift += 7 {
  1781. if shift >= 64 {
  1782. return ErrIntOverflowFolderconfiguration
  1783. }
  1784. if iNdEx >= l {
  1785. return io.ErrUnexpectedEOF
  1786. }
  1787. b := dAtA[iNdEx]
  1788. iNdEx++
  1789. m.DeprecatedPullers |= int(b&0x7F) << shift
  1790. if b < 0x80 {
  1791. break
  1792. }
  1793. }
  1794. default:
  1795. iNdEx = preIndex
  1796. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  1797. if err != nil {
  1798. return err
  1799. }
  1800. if (skippy < 0) || (iNdEx+skippy) < 0 {
  1801. return ErrInvalidLengthFolderconfiguration
  1802. }
  1803. if (iNdEx + skippy) > l {
  1804. return io.ErrUnexpectedEOF
  1805. }
  1806. iNdEx += skippy
  1807. }
  1808. }
  1809. if iNdEx > l {
  1810. return io.ErrUnexpectedEOF
  1811. }
  1812. return nil
  1813. }
  1814. func skipFolderconfiguration(dAtA []byte) (n int, err error) {
  1815. l := len(dAtA)
  1816. iNdEx := 0
  1817. depth := 0
  1818. for iNdEx < l {
  1819. var wire uint64
  1820. for shift := uint(0); ; shift += 7 {
  1821. if shift >= 64 {
  1822. return 0, ErrIntOverflowFolderconfiguration
  1823. }
  1824. if iNdEx >= l {
  1825. return 0, io.ErrUnexpectedEOF
  1826. }
  1827. b := dAtA[iNdEx]
  1828. iNdEx++
  1829. wire |= (uint64(b) & 0x7F) << shift
  1830. if b < 0x80 {
  1831. break
  1832. }
  1833. }
  1834. wireType := int(wire & 0x7)
  1835. switch wireType {
  1836. case 0:
  1837. for shift := uint(0); ; shift += 7 {
  1838. if shift >= 64 {
  1839. return 0, ErrIntOverflowFolderconfiguration
  1840. }
  1841. if iNdEx >= l {
  1842. return 0, io.ErrUnexpectedEOF
  1843. }
  1844. iNdEx++
  1845. if dAtA[iNdEx-1] < 0x80 {
  1846. break
  1847. }
  1848. }
  1849. case 1:
  1850. iNdEx += 8
  1851. case 2:
  1852. var length int
  1853. for shift := uint(0); ; shift += 7 {
  1854. if shift >= 64 {
  1855. return 0, ErrIntOverflowFolderconfiguration
  1856. }
  1857. if iNdEx >= l {
  1858. return 0, io.ErrUnexpectedEOF
  1859. }
  1860. b := dAtA[iNdEx]
  1861. iNdEx++
  1862. length |= (int(b) & 0x7F) << shift
  1863. if b < 0x80 {
  1864. break
  1865. }
  1866. }
  1867. if length < 0 {
  1868. return 0, ErrInvalidLengthFolderconfiguration
  1869. }
  1870. iNdEx += length
  1871. case 3:
  1872. depth++
  1873. case 4:
  1874. if depth == 0 {
  1875. return 0, ErrUnexpectedEndOfGroupFolderconfiguration
  1876. }
  1877. depth--
  1878. case 5:
  1879. iNdEx += 4
  1880. default:
  1881. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1882. }
  1883. if iNdEx < 0 {
  1884. return 0, ErrInvalidLengthFolderconfiguration
  1885. }
  1886. if depth == 0 {
  1887. return iNdEx, nil
  1888. }
  1889. }
  1890. return 0, io.ErrUnexpectedEOF
  1891. }
  1892. var (
  1893. ErrInvalidLengthFolderconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  1894. ErrIntOverflowFolderconfiguration = fmt.Errorf("proto: integer overflow")
  1895. ErrUnexpectedEndOfGroupFolderconfiguration = fmt.Errorf("proto: unexpected end of group")
  1896. )