folderconfiguration.pb.go 56 KB

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