folderconfiguration.pb.go 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927
  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 {
  950. return ErrInvalidLengthFolderconfiguration
  951. }
  952. if (iNdEx + skippy) < 0 {
  953. return ErrInvalidLengthFolderconfiguration
  954. }
  955. if (iNdEx + skippy) > l {
  956. return io.ErrUnexpectedEOF
  957. }
  958. iNdEx += skippy
  959. }
  960. }
  961. if iNdEx > l {
  962. return io.ErrUnexpectedEOF
  963. }
  964. return nil
  965. }
  966. func (m *FolderConfiguration) Unmarshal(dAtA []byte) error {
  967. l := len(dAtA)
  968. iNdEx := 0
  969. for iNdEx < l {
  970. preIndex := iNdEx
  971. var wire uint64
  972. for shift := uint(0); ; shift += 7 {
  973. if shift >= 64 {
  974. return ErrIntOverflowFolderconfiguration
  975. }
  976. if iNdEx >= l {
  977. return io.ErrUnexpectedEOF
  978. }
  979. b := dAtA[iNdEx]
  980. iNdEx++
  981. wire |= uint64(b&0x7F) << shift
  982. if b < 0x80 {
  983. break
  984. }
  985. }
  986. fieldNum := int32(wire >> 3)
  987. wireType := int(wire & 0x7)
  988. if wireType == 4 {
  989. return fmt.Errorf("proto: FolderConfiguration: wiretype end group for non-group")
  990. }
  991. if fieldNum <= 0 {
  992. return fmt.Errorf("proto: FolderConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  993. }
  994. switch fieldNum {
  995. case 1:
  996. if wireType != 2 {
  997. return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType)
  998. }
  999. var stringLen uint64
  1000. for shift := uint(0); ; shift += 7 {
  1001. if shift >= 64 {
  1002. return ErrIntOverflowFolderconfiguration
  1003. }
  1004. if iNdEx >= l {
  1005. return io.ErrUnexpectedEOF
  1006. }
  1007. b := dAtA[iNdEx]
  1008. iNdEx++
  1009. stringLen |= uint64(b&0x7F) << shift
  1010. if b < 0x80 {
  1011. break
  1012. }
  1013. }
  1014. intStringLen := int(stringLen)
  1015. if intStringLen < 0 {
  1016. return ErrInvalidLengthFolderconfiguration
  1017. }
  1018. postIndex := iNdEx + intStringLen
  1019. if postIndex < 0 {
  1020. return ErrInvalidLengthFolderconfiguration
  1021. }
  1022. if postIndex > l {
  1023. return io.ErrUnexpectedEOF
  1024. }
  1025. m.ID = string(dAtA[iNdEx:postIndex])
  1026. iNdEx = postIndex
  1027. case 2:
  1028. if wireType != 2 {
  1029. return fmt.Errorf("proto: wrong wireType = %d for field Label", wireType)
  1030. }
  1031. var stringLen uint64
  1032. for shift := uint(0); ; shift += 7 {
  1033. if shift >= 64 {
  1034. return ErrIntOverflowFolderconfiguration
  1035. }
  1036. if iNdEx >= l {
  1037. return io.ErrUnexpectedEOF
  1038. }
  1039. b := dAtA[iNdEx]
  1040. iNdEx++
  1041. stringLen |= uint64(b&0x7F) << shift
  1042. if b < 0x80 {
  1043. break
  1044. }
  1045. }
  1046. intStringLen := int(stringLen)
  1047. if intStringLen < 0 {
  1048. return ErrInvalidLengthFolderconfiguration
  1049. }
  1050. postIndex := iNdEx + intStringLen
  1051. if postIndex < 0 {
  1052. return ErrInvalidLengthFolderconfiguration
  1053. }
  1054. if postIndex > l {
  1055. return io.ErrUnexpectedEOF
  1056. }
  1057. m.Label = string(dAtA[iNdEx:postIndex])
  1058. iNdEx = postIndex
  1059. case 3:
  1060. if wireType != 0 {
  1061. return fmt.Errorf("proto: wrong wireType = %d for field FilesystemType", wireType)
  1062. }
  1063. m.FilesystemType = 0
  1064. for shift := uint(0); ; shift += 7 {
  1065. if shift >= 64 {
  1066. return ErrIntOverflowFolderconfiguration
  1067. }
  1068. if iNdEx >= l {
  1069. return io.ErrUnexpectedEOF
  1070. }
  1071. b := dAtA[iNdEx]
  1072. iNdEx++
  1073. m.FilesystemType |= fs.FilesystemType(b&0x7F) << shift
  1074. if b < 0x80 {
  1075. break
  1076. }
  1077. }
  1078. case 4:
  1079. if wireType != 2 {
  1080. return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType)
  1081. }
  1082. var stringLen uint64
  1083. for shift := uint(0); ; shift += 7 {
  1084. if shift >= 64 {
  1085. return ErrIntOverflowFolderconfiguration
  1086. }
  1087. if iNdEx >= l {
  1088. return io.ErrUnexpectedEOF
  1089. }
  1090. b := dAtA[iNdEx]
  1091. iNdEx++
  1092. stringLen |= uint64(b&0x7F) << shift
  1093. if b < 0x80 {
  1094. break
  1095. }
  1096. }
  1097. intStringLen := int(stringLen)
  1098. if intStringLen < 0 {
  1099. return ErrInvalidLengthFolderconfiguration
  1100. }
  1101. postIndex := iNdEx + intStringLen
  1102. if postIndex < 0 {
  1103. return ErrInvalidLengthFolderconfiguration
  1104. }
  1105. if postIndex > l {
  1106. return io.ErrUnexpectedEOF
  1107. }
  1108. m.Path = string(dAtA[iNdEx:postIndex])
  1109. iNdEx = postIndex
  1110. case 5:
  1111. if wireType != 0 {
  1112. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  1113. }
  1114. m.Type = 0
  1115. for shift := uint(0); ; shift += 7 {
  1116. if shift >= 64 {
  1117. return ErrIntOverflowFolderconfiguration
  1118. }
  1119. if iNdEx >= l {
  1120. return io.ErrUnexpectedEOF
  1121. }
  1122. b := dAtA[iNdEx]
  1123. iNdEx++
  1124. m.Type |= FolderType(b&0x7F) << shift
  1125. if b < 0x80 {
  1126. break
  1127. }
  1128. }
  1129. case 6:
  1130. if wireType != 2 {
  1131. return fmt.Errorf("proto: wrong wireType = %d for field Devices", wireType)
  1132. }
  1133. var msglen int
  1134. for shift := uint(0); ; shift += 7 {
  1135. if shift >= 64 {
  1136. return ErrIntOverflowFolderconfiguration
  1137. }
  1138. if iNdEx >= l {
  1139. return io.ErrUnexpectedEOF
  1140. }
  1141. b := dAtA[iNdEx]
  1142. iNdEx++
  1143. msglen |= int(b&0x7F) << shift
  1144. if b < 0x80 {
  1145. break
  1146. }
  1147. }
  1148. if msglen < 0 {
  1149. return ErrInvalidLengthFolderconfiguration
  1150. }
  1151. postIndex := iNdEx + msglen
  1152. if postIndex < 0 {
  1153. return ErrInvalidLengthFolderconfiguration
  1154. }
  1155. if postIndex > l {
  1156. return io.ErrUnexpectedEOF
  1157. }
  1158. m.Devices = append(m.Devices, FolderDeviceConfiguration{})
  1159. if err := m.Devices[len(m.Devices)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1160. return err
  1161. }
  1162. iNdEx = postIndex
  1163. case 7:
  1164. if wireType != 0 {
  1165. return fmt.Errorf("proto: wrong wireType = %d for field RescanIntervalS", wireType)
  1166. }
  1167. m.RescanIntervalS = 0
  1168. for shift := uint(0); ; shift += 7 {
  1169. if shift >= 64 {
  1170. return ErrIntOverflowFolderconfiguration
  1171. }
  1172. if iNdEx >= l {
  1173. return io.ErrUnexpectedEOF
  1174. }
  1175. b := dAtA[iNdEx]
  1176. iNdEx++
  1177. m.RescanIntervalS |= int(b&0x7F) << shift
  1178. if b < 0x80 {
  1179. break
  1180. }
  1181. }
  1182. case 8:
  1183. if wireType != 0 {
  1184. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherEnabled", wireType)
  1185. }
  1186. var v int
  1187. for shift := uint(0); ; shift += 7 {
  1188. if shift >= 64 {
  1189. return ErrIntOverflowFolderconfiguration
  1190. }
  1191. if iNdEx >= l {
  1192. return io.ErrUnexpectedEOF
  1193. }
  1194. b := dAtA[iNdEx]
  1195. iNdEx++
  1196. v |= int(b&0x7F) << shift
  1197. if b < 0x80 {
  1198. break
  1199. }
  1200. }
  1201. m.FSWatcherEnabled = bool(v != 0)
  1202. case 9:
  1203. if wireType != 0 {
  1204. return fmt.Errorf("proto: wrong wireType = %d for field FSWatcherDelayS", wireType)
  1205. }
  1206. m.FSWatcherDelayS = 0
  1207. for shift := uint(0); ; shift += 7 {
  1208. if shift >= 64 {
  1209. return ErrIntOverflowFolderconfiguration
  1210. }
  1211. if iNdEx >= l {
  1212. return io.ErrUnexpectedEOF
  1213. }
  1214. b := dAtA[iNdEx]
  1215. iNdEx++
  1216. m.FSWatcherDelayS |= int(b&0x7F) << shift
  1217. if b < 0x80 {
  1218. break
  1219. }
  1220. }
  1221. case 10:
  1222. if wireType != 0 {
  1223. return fmt.Errorf("proto: wrong wireType = %d for field IgnorePerms", wireType)
  1224. }
  1225. var v int
  1226. for shift := uint(0); ; shift += 7 {
  1227. if shift >= 64 {
  1228. return ErrIntOverflowFolderconfiguration
  1229. }
  1230. if iNdEx >= l {
  1231. return io.ErrUnexpectedEOF
  1232. }
  1233. b := dAtA[iNdEx]
  1234. iNdEx++
  1235. v |= int(b&0x7F) << shift
  1236. if b < 0x80 {
  1237. break
  1238. }
  1239. }
  1240. m.IgnorePerms = bool(v != 0)
  1241. case 11:
  1242. if wireType != 0 {
  1243. return fmt.Errorf("proto: wrong wireType = %d for field AutoNormalize", wireType)
  1244. }
  1245. var v int
  1246. for shift := uint(0); ; shift += 7 {
  1247. if shift >= 64 {
  1248. return ErrIntOverflowFolderconfiguration
  1249. }
  1250. if iNdEx >= l {
  1251. return io.ErrUnexpectedEOF
  1252. }
  1253. b := dAtA[iNdEx]
  1254. iNdEx++
  1255. v |= int(b&0x7F) << shift
  1256. if b < 0x80 {
  1257. break
  1258. }
  1259. }
  1260. m.AutoNormalize = bool(v != 0)
  1261. case 12:
  1262. if wireType != 2 {
  1263. return fmt.Errorf("proto: wrong wireType = %d for field MinDiskFree", wireType)
  1264. }
  1265. var msglen int
  1266. for shift := uint(0); ; shift += 7 {
  1267. if shift >= 64 {
  1268. return ErrIntOverflowFolderconfiguration
  1269. }
  1270. if iNdEx >= l {
  1271. return io.ErrUnexpectedEOF
  1272. }
  1273. b := dAtA[iNdEx]
  1274. iNdEx++
  1275. msglen |= int(b&0x7F) << shift
  1276. if b < 0x80 {
  1277. break
  1278. }
  1279. }
  1280. if msglen < 0 {
  1281. return ErrInvalidLengthFolderconfiguration
  1282. }
  1283. postIndex := iNdEx + msglen
  1284. if postIndex < 0 {
  1285. return ErrInvalidLengthFolderconfiguration
  1286. }
  1287. if postIndex > l {
  1288. return io.ErrUnexpectedEOF
  1289. }
  1290. if err := m.MinDiskFree.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1291. return err
  1292. }
  1293. iNdEx = postIndex
  1294. case 13:
  1295. if wireType != 2 {
  1296. return fmt.Errorf("proto: wrong wireType = %d for field Versioning", wireType)
  1297. }
  1298. var msglen int
  1299. for shift := uint(0); ; shift += 7 {
  1300. if shift >= 64 {
  1301. return ErrIntOverflowFolderconfiguration
  1302. }
  1303. if iNdEx >= l {
  1304. return io.ErrUnexpectedEOF
  1305. }
  1306. b := dAtA[iNdEx]
  1307. iNdEx++
  1308. msglen |= int(b&0x7F) << shift
  1309. if b < 0x80 {
  1310. break
  1311. }
  1312. }
  1313. if msglen < 0 {
  1314. return ErrInvalidLengthFolderconfiguration
  1315. }
  1316. postIndex := iNdEx + msglen
  1317. if postIndex < 0 {
  1318. return ErrInvalidLengthFolderconfiguration
  1319. }
  1320. if postIndex > l {
  1321. return io.ErrUnexpectedEOF
  1322. }
  1323. if err := m.Versioning.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1324. return err
  1325. }
  1326. iNdEx = postIndex
  1327. case 14:
  1328. if wireType != 0 {
  1329. return fmt.Errorf("proto: wrong wireType = %d for field Copiers", wireType)
  1330. }
  1331. m.Copiers = 0
  1332. for shift := uint(0); ; shift += 7 {
  1333. if shift >= 64 {
  1334. return ErrIntOverflowFolderconfiguration
  1335. }
  1336. if iNdEx >= l {
  1337. return io.ErrUnexpectedEOF
  1338. }
  1339. b := dAtA[iNdEx]
  1340. iNdEx++
  1341. m.Copiers |= int(b&0x7F) << shift
  1342. if b < 0x80 {
  1343. break
  1344. }
  1345. }
  1346. case 15:
  1347. if wireType != 0 {
  1348. return fmt.Errorf("proto: wrong wireType = %d for field PullerMaxPendingKiB", wireType)
  1349. }
  1350. m.PullerMaxPendingKiB = 0
  1351. for shift := uint(0); ; shift += 7 {
  1352. if shift >= 64 {
  1353. return ErrIntOverflowFolderconfiguration
  1354. }
  1355. if iNdEx >= l {
  1356. return io.ErrUnexpectedEOF
  1357. }
  1358. b := dAtA[iNdEx]
  1359. iNdEx++
  1360. m.PullerMaxPendingKiB |= int(b&0x7F) << shift
  1361. if b < 0x80 {
  1362. break
  1363. }
  1364. }
  1365. case 16:
  1366. if wireType != 0 {
  1367. return fmt.Errorf("proto: wrong wireType = %d for field Hashers", wireType)
  1368. }
  1369. m.Hashers = 0
  1370. for shift := uint(0); ; shift += 7 {
  1371. if shift >= 64 {
  1372. return ErrIntOverflowFolderconfiguration
  1373. }
  1374. if iNdEx >= l {
  1375. return io.ErrUnexpectedEOF
  1376. }
  1377. b := dAtA[iNdEx]
  1378. iNdEx++
  1379. m.Hashers |= int(b&0x7F) << shift
  1380. if b < 0x80 {
  1381. break
  1382. }
  1383. }
  1384. case 17:
  1385. if wireType != 0 {
  1386. return fmt.Errorf("proto: wrong wireType = %d for field Order", wireType)
  1387. }
  1388. m.Order = 0
  1389. for shift := uint(0); ; shift += 7 {
  1390. if shift >= 64 {
  1391. return ErrIntOverflowFolderconfiguration
  1392. }
  1393. if iNdEx >= l {
  1394. return io.ErrUnexpectedEOF
  1395. }
  1396. b := dAtA[iNdEx]
  1397. iNdEx++
  1398. m.Order |= PullOrder(b&0x7F) << shift
  1399. if b < 0x80 {
  1400. break
  1401. }
  1402. }
  1403. case 18:
  1404. if wireType != 0 {
  1405. return fmt.Errorf("proto: wrong wireType = %d for field IgnoreDelete", wireType)
  1406. }
  1407. var v int
  1408. for shift := uint(0); ; shift += 7 {
  1409. if shift >= 64 {
  1410. return ErrIntOverflowFolderconfiguration
  1411. }
  1412. if iNdEx >= l {
  1413. return io.ErrUnexpectedEOF
  1414. }
  1415. b := dAtA[iNdEx]
  1416. iNdEx++
  1417. v |= int(b&0x7F) << shift
  1418. if b < 0x80 {
  1419. break
  1420. }
  1421. }
  1422. m.IgnoreDelete = bool(v != 0)
  1423. case 19:
  1424. if wireType != 0 {
  1425. return fmt.Errorf("proto: wrong wireType = %d for field ScanProgressIntervalS", wireType)
  1426. }
  1427. m.ScanProgressIntervalS = 0
  1428. for shift := uint(0); ; shift += 7 {
  1429. if shift >= 64 {
  1430. return ErrIntOverflowFolderconfiguration
  1431. }
  1432. if iNdEx >= l {
  1433. return io.ErrUnexpectedEOF
  1434. }
  1435. b := dAtA[iNdEx]
  1436. iNdEx++
  1437. m.ScanProgressIntervalS |= int(b&0x7F) << shift
  1438. if b < 0x80 {
  1439. break
  1440. }
  1441. }
  1442. case 20:
  1443. if wireType != 0 {
  1444. return fmt.Errorf("proto: wrong wireType = %d for field PullerPauseS", wireType)
  1445. }
  1446. m.PullerPauseS = 0
  1447. for shift := uint(0); ; shift += 7 {
  1448. if shift >= 64 {
  1449. return ErrIntOverflowFolderconfiguration
  1450. }
  1451. if iNdEx >= l {
  1452. return io.ErrUnexpectedEOF
  1453. }
  1454. b := dAtA[iNdEx]
  1455. iNdEx++
  1456. m.PullerPauseS |= int(b&0x7F) << shift
  1457. if b < 0x80 {
  1458. break
  1459. }
  1460. }
  1461. case 21:
  1462. if wireType != 0 {
  1463. return fmt.Errorf("proto: wrong wireType = %d for field MaxConflicts", wireType)
  1464. }
  1465. m.MaxConflicts = 0
  1466. for shift := uint(0); ; shift += 7 {
  1467. if shift >= 64 {
  1468. return ErrIntOverflowFolderconfiguration
  1469. }
  1470. if iNdEx >= l {
  1471. return io.ErrUnexpectedEOF
  1472. }
  1473. b := dAtA[iNdEx]
  1474. iNdEx++
  1475. m.MaxConflicts |= int(b&0x7F) << shift
  1476. if b < 0x80 {
  1477. break
  1478. }
  1479. }
  1480. case 22:
  1481. if wireType != 0 {
  1482. return fmt.Errorf("proto: wrong wireType = %d for field DisableSparseFiles", wireType)
  1483. }
  1484. var v int
  1485. for shift := uint(0); ; shift += 7 {
  1486. if shift >= 64 {
  1487. return ErrIntOverflowFolderconfiguration
  1488. }
  1489. if iNdEx >= l {
  1490. return io.ErrUnexpectedEOF
  1491. }
  1492. b := dAtA[iNdEx]
  1493. iNdEx++
  1494. v |= int(b&0x7F) << shift
  1495. if b < 0x80 {
  1496. break
  1497. }
  1498. }
  1499. m.DisableSparseFiles = bool(v != 0)
  1500. case 23:
  1501. if wireType != 0 {
  1502. return fmt.Errorf("proto: wrong wireType = %d for field DisableTempIndexes", wireType)
  1503. }
  1504. var v int
  1505. for shift := uint(0); ; shift += 7 {
  1506. if shift >= 64 {
  1507. return ErrIntOverflowFolderconfiguration
  1508. }
  1509. if iNdEx >= l {
  1510. return io.ErrUnexpectedEOF
  1511. }
  1512. b := dAtA[iNdEx]
  1513. iNdEx++
  1514. v |= int(b&0x7F) << shift
  1515. if b < 0x80 {
  1516. break
  1517. }
  1518. }
  1519. m.DisableTempIndexes = bool(v != 0)
  1520. case 24:
  1521. if wireType != 0 {
  1522. return fmt.Errorf("proto: wrong wireType = %d for field Paused", wireType)
  1523. }
  1524. var v int
  1525. for shift := uint(0); ; shift += 7 {
  1526. if shift >= 64 {
  1527. return ErrIntOverflowFolderconfiguration
  1528. }
  1529. if iNdEx >= l {
  1530. return io.ErrUnexpectedEOF
  1531. }
  1532. b := dAtA[iNdEx]
  1533. iNdEx++
  1534. v |= int(b&0x7F) << shift
  1535. if b < 0x80 {
  1536. break
  1537. }
  1538. }
  1539. m.Paused = bool(v != 0)
  1540. case 25:
  1541. if wireType != 0 {
  1542. return fmt.Errorf("proto: wrong wireType = %d for field WeakHashThresholdPct", wireType)
  1543. }
  1544. m.WeakHashThresholdPct = 0
  1545. for shift := uint(0); ; shift += 7 {
  1546. if shift >= 64 {
  1547. return ErrIntOverflowFolderconfiguration
  1548. }
  1549. if iNdEx >= l {
  1550. return io.ErrUnexpectedEOF
  1551. }
  1552. b := dAtA[iNdEx]
  1553. iNdEx++
  1554. m.WeakHashThresholdPct |= int(b&0x7F) << shift
  1555. if b < 0x80 {
  1556. break
  1557. }
  1558. }
  1559. case 26:
  1560. if wireType != 2 {
  1561. return fmt.Errorf("proto: wrong wireType = %d for field MarkerName", wireType)
  1562. }
  1563. var stringLen uint64
  1564. for shift := uint(0); ; shift += 7 {
  1565. if shift >= 64 {
  1566. return ErrIntOverflowFolderconfiguration
  1567. }
  1568. if iNdEx >= l {
  1569. return io.ErrUnexpectedEOF
  1570. }
  1571. b := dAtA[iNdEx]
  1572. iNdEx++
  1573. stringLen |= uint64(b&0x7F) << shift
  1574. if b < 0x80 {
  1575. break
  1576. }
  1577. }
  1578. intStringLen := int(stringLen)
  1579. if intStringLen < 0 {
  1580. return ErrInvalidLengthFolderconfiguration
  1581. }
  1582. postIndex := iNdEx + intStringLen
  1583. if postIndex < 0 {
  1584. return ErrInvalidLengthFolderconfiguration
  1585. }
  1586. if postIndex > l {
  1587. return io.ErrUnexpectedEOF
  1588. }
  1589. m.MarkerName = string(dAtA[iNdEx:postIndex])
  1590. iNdEx = postIndex
  1591. case 27:
  1592. if wireType != 0 {
  1593. return fmt.Errorf("proto: wrong wireType = %d for field CopyOwnershipFromParent", wireType)
  1594. }
  1595. var v int
  1596. for shift := uint(0); ; shift += 7 {
  1597. if shift >= 64 {
  1598. return ErrIntOverflowFolderconfiguration
  1599. }
  1600. if iNdEx >= l {
  1601. return io.ErrUnexpectedEOF
  1602. }
  1603. b := dAtA[iNdEx]
  1604. iNdEx++
  1605. v |= int(b&0x7F) << shift
  1606. if b < 0x80 {
  1607. break
  1608. }
  1609. }
  1610. m.CopyOwnershipFromParent = bool(v != 0)
  1611. case 28:
  1612. if wireType != 0 {
  1613. return fmt.Errorf("proto: wrong wireType = %d for field RawModTimeWindowS", wireType)
  1614. }
  1615. m.RawModTimeWindowS = 0
  1616. for shift := uint(0); ; shift += 7 {
  1617. if shift >= 64 {
  1618. return ErrIntOverflowFolderconfiguration
  1619. }
  1620. if iNdEx >= l {
  1621. return io.ErrUnexpectedEOF
  1622. }
  1623. b := dAtA[iNdEx]
  1624. iNdEx++
  1625. m.RawModTimeWindowS |= int(b&0x7F) << shift
  1626. if b < 0x80 {
  1627. break
  1628. }
  1629. }
  1630. case 29:
  1631. if wireType != 0 {
  1632. return fmt.Errorf("proto: wrong wireType = %d for field MaxConcurrentWrites", wireType)
  1633. }
  1634. m.MaxConcurrentWrites = 0
  1635. for shift := uint(0); ; shift += 7 {
  1636. if shift >= 64 {
  1637. return ErrIntOverflowFolderconfiguration
  1638. }
  1639. if iNdEx >= l {
  1640. return io.ErrUnexpectedEOF
  1641. }
  1642. b := dAtA[iNdEx]
  1643. iNdEx++
  1644. m.MaxConcurrentWrites |= int(b&0x7F) << shift
  1645. if b < 0x80 {
  1646. break
  1647. }
  1648. }
  1649. case 30:
  1650. if wireType != 0 {
  1651. return fmt.Errorf("proto: wrong wireType = %d for field DisableFsync", wireType)
  1652. }
  1653. var v int
  1654. for shift := uint(0); ; shift += 7 {
  1655. if shift >= 64 {
  1656. return ErrIntOverflowFolderconfiguration
  1657. }
  1658. if iNdEx >= l {
  1659. return io.ErrUnexpectedEOF
  1660. }
  1661. b := dAtA[iNdEx]
  1662. iNdEx++
  1663. v |= int(b&0x7F) << shift
  1664. if b < 0x80 {
  1665. break
  1666. }
  1667. }
  1668. m.DisableFsync = bool(v != 0)
  1669. case 31:
  1670. if wireType != 0 {
  1671. return fmt.Errorf("proto: wrong wireType = %d for field BlockPullOrder", wireType)
  1672. }
  1673. m.BlockPullOrder = 0
  1674. for shift := uint(0); ; shift += 7 {
  1675. if shift >= 64 {
  1676. return ErrIntOverflowFolderconfiguration
  1677. }
  1678. if iNdEx >= l {
  1679. return io.ErrUnexpectedEOF
  1680. }
  1681. b := dAtA[iNdEx]
  1682. iNdEx++
  1683. m.BlockPullOrder |= BlockPullOrder(b&0x7F) << shift
  1684. if b < 0x80 {
  1685. break
  1686. }
  1687. }
  1688. case 32:
  1689. if wireType != 0 {
  1690. return fmt.Errorf("proto: wrong wireType = %d for field CopyRangeMethod", wireType)
  1691. }
  1692. m.CopyRangeMethod = 0
  1693. for shift := uint(0); ; shift += 7 {
  1694. if shift >= 64 {
  1695. return ErrIntOverflowFolderconfiguration
  1696. }
  1697. if iNdEx >= l {
  1698. return io.ErrUnexpectedEOF
  1699. }
  1700. b := dAtA[iNdEx]
  1701. iNdEx++
  1702. m.CopyRangeMethod |= fs.CopyRangeMethod(b&0x7F) << shift
  1703. if b < 0x80 {
  1704. break
  1705. }
  1706. }
  1707. case 33:
  1708. if wireType != 0 {
  1709. return fmt.Errorf("proto: wrong wireType = %d for field CaseSensitiveFS", wireType)
  1710. }
  1711. var v int
  1712. for shift := uint(0); ; shift += 7 {
  1713. if shift >= 64 {
  1714. return ErrIntOverflowFolderconfiguration
  1715. }
  1716. if iNdEx >= l {
  1717. return io.ErrUnexpectedEOF
  1718. }
  1719. b := dAtA[iNdEx]
  1720. iNdEx++
  1721. v |= int(b&0x7F) << shift
  1722. if b < 0x80 {
  1723. break
  1724. }
  1725. }
  1726. m.CaseSensitiveFS = bool(v != 0)
  1727. case 34:
  1728. if wireType != 0 {
  1729. return fmt.Errorf("proto: wrong wireType = %d for field JunctionsAsDirs", wireType)
  1730. }
  1731. var v int
  1732. for shift := uint(0); ; shift += 7 {
  1733. if shift >= 64 {
  1734. return ErrIntOverflowFolderconfiguration
  1735. }
  1736. if iNdEx >= l {
  1737. return io.ErrUnexpectedEOF
  1738. }
  1739. b := dAtA[iNdEx]
  1740. iNdEx++
  1741. v |= int(b&0x7F) << shift
  1742. if b < 0x80 {
  1743. break
  1744. }
  1745. }
  1746. m.JunctionsAsDirs = bool(v != 0)
  1747. case 9000:
  1748. if wireType != 0 {
  1749. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedReadOnly", wireType)
  1750. }
  1751. var v int
  1752. for shift := uint(0); ; shift += 7 {
  1753. if shift >= 64 {
  1754. return ErrIntOverflowFolderconfiguration
  1755. }
  1756. if iNdEx >= l {
  1757. return io.ErrUnexpectedEOF
  1758. }
  1759. b := dAtA[iNdEx]
  1760. iNdEx++
  1761. v |= int(b&0x7F) << shift
  1762. if b < 0x80 {
  1763. break
  1764. }
  1765. }
  1766. m.DeprecatedReadOnly = bool(v != 0)
  1767. case 9001:
  1768. if wireType != 1 {
  1769. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedMinDiskFreePct", wireType)
  1770. }
  1771. var v uint64
  1772. if (iNdEx + 8) > l {
  1773. return io.ErrUnexpectedEOF
  1774. }
  1775. v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  1776. iNdEx += 8
  1777. m.DeprecatedMinDiskFreePct = float64(math.Float64frombits(v))
  1778. case 9002:
  1779. if wireType != 0 {
  1780. return fmt.Errorf("proto: wrong wireType = %d for field DeprecatedPullers", wireType)
  1781. }
  1782. m.DeprecatedPullers = 0
  1783. for shift := uint(0); ; shift += 7 {
  1784. if shift >= 64 {
  1785. return ErrIntOverflowFolderconfiguration
  1786. }
  1787. if iNdEx >= l {
  1788. return io.ErrUnexpectedEOF
  1789. }
  1790. b := dAtA[iNdEx]
  1791. iNdEx++
  1792. m.DeprecatedPullers |= int(b&0x7F) << shift
  1793. if b < 0x80 {
  1794. break
  1795. }
  1796. }
  1797. default:
  1798. iNdEx = preIndex
  1799. skippy, err := skipFolderconfiguration(dAtA[iNdEx:])
  1800. if err != nil {
  1801. return err
  1802. }
  1803. if skippy < 0 {
  1804. return ErrInvalidLengthFolderconfiguration
  1805. }
  1806. if (iNdEx + skippy) < 0 {
  1807. return ErrInvalidLengthFolderconfiguration
  1808. }
  1809. if (iNdEx + skippy) > l {
  1810. return io.ErrUnexpectedEOF
  1811. }
  1812. iNdEx += skippy
  1813. }
  1814. }
  1815. if iNdEx > l {
  1816. return io.ErrUnexpectedEOF
  1817. }
  1818. return nil
  1819. }
  1820. func skipFolderconfiguration(dAtA []byte) (n int, err error) {
  1821. l := len(dAtA)
  1822. iNdEx := 0
  1823. depth := 0
  1824. for iNdEx < l {
  1825. var wire uint64
  1826. for shift := uint(0); ; shift += 7 {
  1827. if shift >= 64 {
  1828. return 0, ErrIntOverflowFolderconfiguration
  1829. }
  1830. if iNdEx >= l {
  1831. return 0, io.ErrUnexpectedEOF
  1832. }
  1833. b := dAtA[iNdEx]
  1834. iNdEx++
  1835. wire |= (uint64(b) & 0x7F) << shift
  1836. if b < 0x80 {
  1837. break
  1838. }
  1839. }
  1840. wireType := int(wire & 0x7)
  1841. switch wireType {
  1842. case 0:
  1843. for shift := uint(0); ; shift += 7 {
  1844. if shift >= 64 {
  1845. return 0, ErrIntOverflowFolderconfiguration
  1846. }
  1847. if iNdEx >= l {
  1848. return 0, io.ErrUnexpectedEOF
  1849. }
  1850. iNdEx++
  1851. if dAtA[iNdEx-1] < 0x80 {
  1852. break
  1853. }
  1854. }
  1855. case 1:
  1856. iNdEx += 8
  1857. case 2:
  1858. var length int
  1859. for shift := uint(0); ; shift += 7 {
  1860. if shift >= 64 {
  1861. return 0, ErrIntOverflowFolderconfiguration
  1862. }
  1863. if iNdEx >= l {
  1864. return 0, io.ErrUnexpectedEOF
  1865. }
  1866. b := dAtA[iNdEx]
  1867. iNdEx++
  1868. length |= (int(b) & 0x7F) << shift
  1869. if b < 0x80 {
  1870. break
  1871. }
  1872. }
  1873. if length < 0 {
  1874. return 0, ErrInvalidLengthFolderconfiguration
  1875. }
  1876. iNdEx += length
  1877. case 3:
  1878. depth++
  1879. case 4:
  1880. if depth == 0 {
  1881. return 0, ErrUnexpectedEndOfGroupFolderconfiguration
  1882. }
  1883. depth--
  1884. case 5:
  1885. iNdEx += 4
  1886. default:
  1887. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1888. }
  1889. if iNdEx < 0 {
  1890. return 0, ErrInvalidLengthFolderconfiguration
  1891. }
  1892. if depth == 0 {
  1893. return iNdEx, nil
  1894. }
  1895. }
  1896. return 0, io.ErrUnexpectedEOF
  1897. }
  1898. var (
  1899. ErrInvalidLengthFolderconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  1900. ErrIntOverflowFolderconfiguration = fmt.Errorf("proto: integer overflow")
  1901. ErrUnexpectedEndOfGroupFolderconfiguration = fmt.Errorf("proto: unexpected end of group")
  1902. )