folderconfiguration.pb.go 60 KB

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