folderconfiguration.pb.go 58 KB

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