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