folderconfiguration.pb.go 59 KB

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