versioningconfiguration.pb.go 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592
  1. // Code generated by protoc-gen-gogo. DO NOT EDIT.
  2. // source: lib/config/versioningconfiguration.proto
  3. package config
  4. import (
  5. fmt "fmt"
  6. proto "github.com/gogo/protobuf/proto"
  7. fs "github.com/syncthing/syncthing/lib/fs"
  8. _ "github.com/syncthing/syncthing/proto/ext"
  9. io "io"
  10. math "math"
  11. math_bits "math/bits"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
  22. // VersioningConfiguration is used in the code and for JSON serialization
  23. type VersioningConfiguration struct {
  24. Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type" xml:"type,attr"`
  25. Params map[string]string `protobuf:"bytes,2,rep,name=parameters,proto3" json:"params" xml:"parameter" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  26. CleanupIntervalS int `protobuf:"varint,3,opt,name=cleanup_interval_s,json=cleanupIntervalS,proto3,casttype=int" json:"cleanupIntervalS" xml:"cleanupIntervalS" default:"3600"`
  27. FSPath string `protobuf:"bytes,4,opt,name=fs_path,json=fsPath,proto3" json:"fsPath" xml:"fsPath"`
  28. FSType fs.FilesystemType `protobuf:"varint,5,opt,name=fs_type,json=fsType,proto3,enum=fs.FilesystemType" json:"fsType" xml:"fsType"`
  29. }
  30. func (m *VersioningConfiguration) Reset() { *m = VersioningConfiguration{} }
  31. func (m *VersioningConfiguration) String() string { return proto.CompactTextString(m) }
  32. func (*VersioningConfiguration) ProtoMessage() {}
  33. func (*VersioningConfiguration) Descriptor() ([]byte, []int) {
  34. return fileDescriptor_95ba6bdb22ffea81, []int{0}
  35. }
  36. func (m *VersioningConfiguration) XXX_Unmarshal(b []byte) error {
  37. return m.Unmarshal(b)
  38. }
  39. func (m *VersioningConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  40. if deterministic {
  41. return xxx_messageInfo_VersioningConfiguration.Marshal(b, m, deterministic)
  42. } else {
  43. b = b[:cap(b)]
  44. n, err := m.MarshalToSizedBuffer(b)
  45. if err != nil {
  46. return nil, err
  47. }
  48. return b[:n], nil
  49. }
  50. }
  51. func (m *VersioningConfiguration) XXX_Merge(src proto.Message) {
  52. xxx_messageInfo_VersioningConfiguration.Merge(m, src)
  53. }
  54. func (m *VersioningConfiguration) XXX_Size() int {
  55. return m.ProtoSize()
  56. }
  57. func (m *VersioningConfiguration) XXX_DiscardUnknown() {
  58. xxx_messageInfo_VersioningConfiguration.DiscardUnknown(m)
  59. }
  60. var xxx_messageInfo_VersioningConfiguration proto.InternalMessageInfo
  61. func init() {
  62. proto.RegisterType((*VersioningConfiguration)(nil), "config.VersioningConfiguration")
  63. proto.RegisterMapType((map[string]string)(nil), "config.VersioningConfiguration.ParametersEntry")
  64. }
  65. func init() {
  66. proto.RegisterFile("lib/config/versioningconfiguration.proto", fileDescriptor_95ba6bdb22ffea81)
  67. }
  68. var fileDescriptor_95ba6bdb22ffea81 = []byte{
  69. // 514 bytes of a gzipped FileDescriptorProto
  70. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x53, 0x4f, 0x6b, 0xdb, 0x4e,
  71. 0x10, 0x95, 0xfc, 0xef, 0x87, 0x95, 0x1f, 0x4d, 0x59, 0x0a, 0x15, 0x3e, 0x68, 0x8d, 0x70, 0x8b,
  72. 0x0a, 0x45, 0x0e, 0x09, 0x94, 0x62, 0x0a, 0x05, 0x97, 0xa6, 0x94, 0xf6, 0x10, 0x94, 0xd0, 0x43,
  73. 0x7b, 0x30, 0x6b, 0x77, 0x65, 0x2f, 0x91, 0x57, 0x42, 0xbb, 0x36, 0x51, 0x3f, 0x45, 0xe8, 0x27,
  74. 0xe8, 0xc7, 0xf1, 0xcd, 0x3e, 0xf6, 0xb4, 0x10, 0xfb, 0xa6, 0xa3, 0x8e, 0xe9, 0xa5, 0xec, 0xae,
  75. 0xa2, 0x9a, 0x94, 0xde, 0xe6, 0xcd, 0x7b, 0xf3, 0x66, 0x46, 0xb3, 0xb2, 0xbc, 0x88, 0x8c, 0xfb,
  76. 0x93, 0x98, 0x86, 0x64, 0xda, 0x5f, 0xe2, 0x94, 0x91, 0x98, 0x12, 0x3a, 0xd5, 0x89, 0x45, 0x8a,
  77. 0x38, 0x89, 0xa9, 0x9f, 0xa4, 0x31, 0x8f, 0x41, 0x4b, 0x27, 0x3b, 0x40, 0x56, 0x84, 0xac, 0xcf,
  78. 0xb3, 0x04, 0x33, 0xcd, 0x75, 0xda, 0xf8, 0x8a, 0xeb, 0xd0, 0xfd, 0xd5, 0xb0, 0x1e, 0x7f, 0xaa,
  79. 0x8c, 0xde, 0xec, 0x1b, 0x81, 0x57, 0x56, 0x43, 0x56, 0xd9, 0x66, 0xd7, 0xf4, 0xda, 0x43, 0x2f,
  80. 0x17, 0x50, 0xe1, 0x42, 0xc0, 0xc3, 0xab, 0x79, 0x34, 0x70, 0x25, 0x78, 0x8e, 0x38, 0x4f, 0xdd,
  81. 0x7c, 0xdd, 0x6b, 0x57, 0x28, 0x50, 0x2a, 0x70, 0x6d, 0x5a, 0x56, 0x82, 0x52, 0x34, 0xc7, 0x1c,
  82. 0xa7, 0xcc, 0xae, 0x75, 0xeb, 0xde, 0xc1, 0x71, 0xdf, 0xd7, 0x63, 0xf9, 0xff, 0xe8, 0xe9, 0x9f,
  83. 0x55, 0x15, 0x6f, 0x29, 0x4f, 0xb3, 0xe1, 0xeb, 0x95, 0x80, 0xc6, 0x56, 0xc0, 0x96, 0x22, 0x58,
  84. 0x2e, 0x60, 0x4b, 0x99, 0xb2, 0x6a, 0x8a, 0xaa, 0x87, 0x5b, 0xac, 0x7b, 0x25, 0xf9, 0x7d, 0xd3,
  85. 0x2b, 0x0b, 0x82, 0xbd, 0x19, 0xc0, 0x37, 0x0b, 0x4c, 0x22, 0x8c, 0xe8, 0x22, 0x19, 0x11, 0xca,
  86. 0x71, 0xba, 0x44, 0xd1, 0x88, 0xd9, 0xf5, 0xae, 0xe9, 0x35, 0x87, 0x1f, 0x73, 0x01, 0x1f, 0x96,
  87. 0xec, 0xfb, 0x92, 0x3c, 0x2f, 0x04, 0x7c, 0xa2, 0x9a, 0xdc, 0x27, 0xdc, 0xee, 0x57, 0x1c, 0xa2,
  88. 0x45, 0xc4, 0x07, 0xee, 0xc9, 0x8b, 0xa3, 0x23, 0xf7, 0x56, 0xc0, 0x3a, 0xa1, 0xfc, 0x76, 0xdd,
  89. 0x6b, 0x48, 0x1c, 0xfc, 0xe5, 0x04, 0xde, 0x59, 0xff, 0x85, 0x6c, 0x94, 0x20, 0x3e, 0xb3, 0x1b,
  90. 0xea, 0x7b, 0xfa, 0x72, 0xab, 0xd3, 0xf3, 0x33, 0xc4, 0x67, 0x72, 0xab, 0x90, 0xc9, 0xa8, 0x10,
  91. 0xf0, 0x7f, 0xd5, 0x50, 0x43, 0x57, 0x2e, 0xa2, 0x35, 0x41, 0xa9, 0x00, 0x5f, 0x94, 0x91, 0x3a,
  92. 0x4c, 0xb3, 0x6b, 0x7a, 0x0f, 0x8e, 0x81, 0x1f, 0x32, 0xff, 0x94, 0x44, 0x98, 0x65, 0x8c, 0xe3,
  93. 0xf9, 0x45, 0x96, 0xe0, 0x3b, 0x73, 0x19, 0x6b, 0xf3, 0x0b, 0x7d, 0xb8, 0x3b, 0x73, 0x09, 0x4b,
  94. 0x73, 0x19, 0x06, 0xa5, 0xa2, 0x33, 0xb7, 0x0e, 0xef, 0x5d, 0x00, 0x3c, 0xb5, 0xea, 0x97, 0x38,
  95. 0x2b, 0x1f, 0xc1, 0xa3, 0x5c, 0x40, 0x09, 0x0b, 0x01, 0xdb, 0xca, 0xea, 0x12, 0x67, 0x6e, 0x20,
  96. 0x33, 0xc0, 0xb7, 0x9a, 0x4b, 0x14, 0x2d, 0xb0, 0x5d, 0x53, 0x4a, 0x3b, 0x17, 0x50, 0x27, 0x0a,
  97. 0x01, 0x0f, 0x94, 0x56, 0x21, 0x37, 0xd0, 0xd9, 0x41, 0xed, 0xa5, 0x39, 0xfc, 0xb0, 0xba, 0x71,
  98. 0x8c, 0xcd, 0x8d, 0x63, 0xac, 0xb6, 0x8e, 0xb9, 0xd9, 0x3a, 0xe6, 0xf5, 0xce, 0x31, 0x7e, 0xec,
  99. 0x1c, 0x73, 0xb3, 0x73, 0x8c, 0x9f, 0x3b, 0xc7, 0xf8, 0xfc, 0x6c, 0x4a, 0xf8, 0x6c, 0x31, 0xf6,
  100. 0x27, 0xf1, 0xbc, 0xcf, 0x32, 0x3a, 0xe1, 0x33, 0x42, 0xa7, 0x7b, 0xd1, 0x9f, 0xff, 0x61, 0xdc,
  101. 0x52, 0x2f, 0xfa, 0xe4, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd1, 0x04, 0xd0, 0xd5, 0x24, 0x03,
  102. 0x00, 0x00,
  103. }
  104. func (m *VersioningConfiguration) Marshal() (dAtA []byte, err error) {
  105. size := m.ProtoSize()
  106. dAtA = make([]byte, size)
  107. n, err := m.MarshalToSizedBuffer(dAtA[:size])
  108. if err != nil {
  109. return nil, err
  110. }
  111. return dAtA[:n], nil
  112. }
  113. func (m *VersioningConfiguration) MarshalTo(dAtA []byte) (int, error) {
  114. size := m.ProtoSize()
  115. return m.MarshalToSizedBuffer(dAtA[:size])
  116. }
  117. func (m *VersioningConfiguration) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  118. i := len(dAtA)
  119. _ = i
  120. var l int
  121. _ = l
  122. if m.FSType != 0 {
  123. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(m.FSType))
  124. i--
  125. dAtA[i] = 0x28
  126. }
  127. if len(m.FSPath) > 0 {
  128. i -= len(m.FSPath)
  129. copy(dAtA[i:], m.FSPath)
  130. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(len(m.FSPath)))
  131. i--
  132. dAtA[i] = 0x22
  133. }
  134. if m.CleanupIntervalS != 0 {
  135. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(m.CleanupIntervalS))
  136. i--
  137. dAtA[i] = 0x18
  138. }
  139. if len(m.Params) > 0 {
  140. for k := range m.Params {
  141. v := m.Params[k]
  142. baseI := i
  143. i -= len(v)
  144. copy(dAtA[i:], v)
  145. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(len(v)))
  146. i--
  147. dAtA[i] = 0x12
  148. i -= len(k)
  149. copy(dAtA[i:], k)
  150. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(len(k)))
  151. i--
  152. dAtA[i] = 0xa
  153. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(baseI-i))
  154. i--
  155. dAtA[i] = 0x12
  156. }
  157. }
  158. if len(m.Type) > 0 {
  159. i -= len(m.Type)
  160. copy(dAtA[i:], m.Type)
  161. i = encodeVarintVersioningconfiguration(dAtA, i, uint64(len(m.Type)))
  162. i--
  163. dAtA[i] = 0xa
  164. }
  165. return len(dAtA) - i, nil
  166. }
  167. func encodeVarintVersioningconfiguration(dAtA []byte, offset int, v uint64) int {
  168. offset -= sovVersioningconfiguration(v)
  169. base := offset
  170. for v >= 1<<7 {
  171. dAtA[offset] = uint8(v&0x7f | 0x80)
  172. v >>= 7
  173. offset++
  174. }
  175. dAtA[offset] = uint8(v)
  176. return base
  177. }
  178. func (m *VersioningConfiguration) ProtoSize() (n int) {
  179. if m == nil {
  180. return 0
  181. }
  182. var l int
  183. _ = l
  184. l = len(m.Type)
  185. if l > 0 {
  186. n += 1 + l + sovVersioningconfiguration(uint64(l))
  187. }
  188. if len(m.Params) > 0 {
  189. for k, v := range m.Params {
  190. _ = k
  191. _ = v
  192. mapEntrySize := 1 + len(k) + sovVersioningconfiguration(uint64(len(k))) + 1 + len(v) + sovVersioningconfiguration(uint64(len(v)))
  193. n += mapEntrySize + 1 + sovVersioningconfiguration(uint64(mapEntrySize))
  194. }
  195. }
  196. if m.CleanupIntervalS != 0 {
  197. n += 1 + sovVersioningconfiguration(uint64(m.CleanupIntervalS))
  198. }
  199. l = len(m.FSPath)
  200. if l > 0 {
  201. n += 1 + l + sovVersioningconfiguration(uint64(l))
  202. }
  203. if m.FSType != 0 {
  204. n += 1 + sovVersioningconfiguration(uint64(m.FSType))
  205. }
  206. return n
  207. }
  208. func sovVersioningconfiguration(x uint64) (n int) {
  209. return (math_bits.Len64(x|1) + 6) / 7
  210. }
  211. func sozVersioningconfiguration(x uint64) (n int) {
  212. return sovVersioningconfiguration(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  213. }
  214. func (m *VersioningConfiguration) Unmarshal(dAtA []byte) error {
  215. l := len(dAtA)
  216. iNdEx := 0
  217. for iNdEx < l {
  218. preIndex := iNdEx
  219. var wire uint64
  220. for shift := uint(0); ; shift += 7 {
  221. if shift >= 64 {
  222. return ErrIntOverflowVersioningconfiguration
  223. }
  224. if iNdEx >= l {
  225. return io.ErrUnexpectedEOF
  226. }
  227. b := dAtA[iNdEx]
  228. iNdEx++
  229. wire |= uint64(b&0x7F) << shift
  230. if b < 0x80 {
  231. break
  232. }
  233. }
  234. fieldNum := int32(wire >> 3)
  235. wireType := int(wire & 0x7)
  236. if wireType == 4 {
  237. return fmt.Errorf("proto: VersioningConfiguration: wiretype end group for non-group")
  238. }
  239. if fieldNum <= 0 {
  240. return fmt.Errorf("proto: VersioningConfiguration: illegal tag %d (wire type %d)", fieldNum, wire)
  241. }
  242. switch fieldNum {
  243. case 1:
  244. if wireType != 2 {
  245. return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  246. }
  247. var stringLen uint64
  248. for shift := uint(0); ; shift += 7 {
  249. if shift >= 64 {
  250. return ErrIntOverflowVersioningconfiguration
  251. }
  252. if iNdEx >= l {
  253. return io.ErrUnexpectedEOF
  254. }
  255. b := dAtA[iNdEx]
  256. iNdEx++
  257. stringLen |= uint64(b&0x7F) << shift
  258. if b < 0x80 {
  259. break
  260. }
  261. }
  262. intStringLen := int(stringLen)
  263. if intStringLen < 0 {
  264. return ErrInvalidLengthVersioningconfiguration
  265. }
  266. postIndex := iNdEx + intStringLen
  267. if postIndex < 0 {
  268. return ErrInvalidLengthVersioningconfiguration
  269. }
  270. if postIndex > l {
  271. return io.ErrUnexpectedEOF
  272. }
  273. m.Type = string(dAtA[iNdEx:postIndex])
  274. iNdEx = postIndex
  275. case 2:
  276. if wireType != 2 {
  277. return fmt.Errorf("proto: wrong wireType = %d for field Params", wireType)
  278. }
  279. var msglen int
  280. for shift := uint(0); ; shift += 7 {
  281. if shift >= 64 {
  282. return ErrIntOverflowVersioningconfiguration
  283. }
  284. if iNdEx >= l {
  285. return io.ErrUnexpectedEOF
  286. }
  287. b := dAtA[iNdEx]
  288. iNdEx++
  289. msglen |= int(b&0x7F) << shift
  290. if b < 0x80 {
  291. break
  292. }
  293. }
  294. if msglen < 0 {
  295. return ErrInvalidLengthVersioningconfiguration
  296. }
  297. postIndex := iNdEx + msglen
  298. if postIndex < 0 {
  299. return ErrInvalidLengthVersioningconfiguration
  300. }
  301. if postIndex > l {
  302. return io.ErrUnexpectedEOF
  303. }
  304. if m.Params == nil {
  305. m.Params = make(map[string]string)
  306. }
  307. var mapkey string
  308. var mapvalue string
  309. for iNdEx < postIndex {
  310. entryPreIndex := iNdEx
  311. var wire uint64
  312. for shift := uint(0); ; shift += 7 {
  313. if shift >= 64 {
  314. return ErrIntOverflowVersioningconfiguration
  315. }
  316. if iNdEx >= l {
  317. return io.ErrUnexpectedEOF
  318. }
  319. b := dAtA[iNdEx]
  320. iNdEx++
  321. wire |= uint64(b&0x7F) << shift
  322. if b < 0x80 {
  323. break
  324. }
  325. }
  326. fieldNum := int32(wire >> 3)
  327. if fieldNum == 1 {
  328. var stringLenmapkey uint64
  329. for shift := uint(0); ; shift += 7 {
  330. if shift >= 64 {
  331. return ErrIntOverflowVersioningconfiguration
  332. }
  333. if iNdEx >= l {
  334. return io.ErrUnexpectedEOF
  335. }
  336. b := dAtA[iNdEx]
  337. iNdEx++
  338. stringLenmapkey |= uint64(b&0x7F) << shift
  339. if b < 0x80 {
  340. break
  341. }
  342. }
  343. intStringLenmapkey := int(stringLenmapkey)
  344. if intStringLenmapkey < 0 {
  345. return ErrInvalidLengthVersioningconfiguration
  346. }
  347. postStringIndexmapkey := iNdEx + intStringLenmapkey
  348. if postStringIndexmapkey < 0 {
  349. return ErrInvalidLengthVersioningconfiguration
  350. }
  351. if postStringIndexmapkey > l {
  352. return io.ErrUnexpectedEOF
  353. }
  354. mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  355. iNdEx = postStringIndexmapkey
  356. } else if fieldNum == 2 {
  357. var stringLenmapvalue uint64
  358. for shift := uint(0); ; shift += 7 {
  359. if shift >= 64 {
  360. return ErrIntOverflowVersioningconfiguration
  361. }
  362. if iNdEx >= l {
  363. return io.ErrUnexpectedEOF
  364. }
  365. b := dAtA[iNdEx]
  366. iNdEx++
  367. stringLenmapvalue |= uint64(b&0x7F) << shift
  368. if b < 0x80 {
  369. break
  370. }
  371. }
  372. intStringLenmapvalue := int(stringLenmapvalue)
  373. if intStringLenmapvalue < 0 {
  374. return ErrInvalidLengthVersioningconfiguration
  375. }
  376. postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  377. if postStringIndexmapvalue < 0 {
  378. return ErrInvalidLengthVersioningconfiguration
  379. }
  380. if postStringIndexmapvalue > l {
  381. return io.ErrUnexpectedEOF
  382. }
  383. mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  384. iNdEx = postStringIndexmapvalue
  385. } else {
  386. iNdEx = entryPreIndex
  387. skippy, err := skipVersioningconfiguration(dAtA[iNdEx:])
  388. if err != nil {
  389. return err
  390. }
  391. if (skippy < 0) || (iNdEx+skippy) < 0 {
  392. return ErrInvalidLengthVersioningconfiguration
  393. }
  394. if (iNdEx + skippy) > postIndex {
  395. return io.ErrUnexpectedEOF
  396. }
  397. iNdEx += skippy
  398. }
  399. }
  400. m.Params[mapkey] = mapvalue
  401. iNdEx = postIndex
  402. case 3:
  403. if wireType != 0 {
  404. return fmt.Errorf("proto: wrong wireType = %d for field CleanupIntervalS", wireType)
  405. }
  406. m.CleanupIntervalS = 0
  407. for shift := uint(0); ; shift += 7 {
  408. if shift >= 64 {
  409. return ErrIntOverflowVersioningconfiguration
  410. }
  411. if iNdEx >= l {
  412. return io.ErrUnexpectedEOF
  413. }
  414. b := dAtA[iNdEx]
  415. iNdEx++
  416. m.CleanupIntervalS |= int(b&0x7F) << shift
  417. if b < 0x80 {
  418. break
  419. }
  420. }
  421. case 4:
  422. if wireType != 2 {
  423. return fmt.Errorf("proto: wrong wireType = %d for field FSPath", wireType)
  424. }
  425. var stringLen uint64
  426. for shift := uint(0); ; shift += 7 {
  427. if shift >= 64 {
  428. return ErrIntOverflowVersioningconfiguration
  429. }
  430. if iNdEx >= l {
  431. return io.ErrUnexpectedEOF
  432. }
  433. b := dAtA[iNdEx]
  434. iNdEx++
  435. stringLen |= uint64(b&0x7F) << shift
  436. if b < 0x80 {
  437. break
  438. }
  439. }
  440. intStringLen := int(stringLen)
  441. if intStringLen < 0 {
  442. return ErrInvalidLengthVersioningconfiguration
  443. }
  444. postIndex := iNdEx + intStringLen
  445. if postIndex < 0 {
  446. return ErrInvalidLengthVersioningconfiguration
  447. }
  448. if postIndex > l {
  449. return io.ErrUnexpectedEOF
  450. }
  451. m.FSPath = string(dAtA[iNdEx:postIndex])
  452. iNdEx = postIndex
  453. case 5:
  454. if wireType != 0 {
  455. return fmt.Errorf("proto: wrong wireType = %d for field FSType", wireType)
  456. }
  457. m.FSType = 0
  458. for shift := uint(0); ; shift += 7 {
  459. if shift >= 64 {
  460. return ErrIntOverflowVersioningconfiguration
  461. }
  462. if iNdEx >= l {
  463. return io.ErrUnexpectedEOF
  464. }
  465. b := dAtA[iNdEx]
  466. iNdEx++
  467. m.FSType |= fs.FilesystemType(b&0x7F) << shift
  468. if b < 0x80 {
  469. break
  470. }
  471. }
  472. default:
  473. iNdEx = preIndex
  474. skippy, err := skipVersioningconfiguration(dAtA[iNdEx:])
  475. if err != nil {
  476. return err
  477. }
  478. if (skippy < 0) || (iNdEx+skippy) < 0 {
  479. return ErrInvalidLengthVersioningconfiguration
  480. }
  481. if (iNdEx + skippy) > l {
  482. return io.ErrUnexpectedEOF
  483. }
  484. iNdEx += skippy
  485. }
  486. }
  487. if iNdEx > l {
  488. return io.ErrUnexpectedEOF
  489. }
  490. return nil
  491. }
  492. func skipVersioningconfiguration(dAtA []byte) (n int, err error) {
  493. l := len(dAtA)
  494. iNdEx := 0
  495. depth := 0
  496. for iNdEx < l {
  497. var wire uint64
  498. for shift := uint(0); ; shift += 7 {
  499. if shift >= 64 {
  500. return 0, ErrIntOverflowVersioningconfiguration
  501. }
  502. if iNdEx >= l {
  503. return 0, io.ErrUnexpectedEOF
  504. }
  505. b := dAtA[iNdEx]
  506. iNdEx++
  507. wire |= (uint64(b) & 0x7F) << shift
  508. if b < 0x80 {
  509. break
  510. }
  511. }
  512. wireType := int(wire & 0x7)
  513. switch wireType {
  514. case 0:
  515. for shift := uint(0); ; shift += 7 {
  516. if shift >= 64 {
  517. return 0, ErrIntOverflowVersioningconfiguration
  518. }
  519. if iNdEx >= l {
  520. return 0, io.ErrUnexpectedEOF
  521. }
  522. iNdEx++
  523. if dAtA[iNdEx-1] < 0x80 {
  524. break
  525. }
  526. }
  527. case 1:
  528. iNdEx += 8
  529. case 2:
  530. var length int
  531. for shift := uint(0); ; shift += 7 {
  532. if shift >= 64 {
  533. return 0, ErrIntOverflowVersioningconfiguration
  534. }
  535. if iNdEx >= l {
  536. return 0, io.ErrUnexpectedEOF
  537. }
  538. b := dAtA[iNdEx]
  539. iNdEx++
  540. length |= (int(b) & 0x7F) << shift
  541. if b < 0x80 {
  542. break
  543. }
  544. }
  545. if length < 0 {
  546. return 0, ErrInvalidLengthVersioningconfiguration
  547. }
  548. iNdEx += length
  549. case 3:
  550. depth++
  551. case 4:
  552. if depth == 0 {
  553. return 0, ErrUnexpectedEndOfGroupVersioningconfiguration
  554. }
  555. depth--
  556. case 5:
  557. iNdEx += 4
  558. default:
  559. return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  560. }
  561. if iNdEx < 0 {
  562. return 0, ErrInvalidLengthVersioningconfiguration
  563. }
  564. if depth == 0 {
  565. return iNdEx, nil
  566. }
  567. }
  568. return 0, io.ErrUnexpectedEOF
  569. }
  570. var (
  571. ErrInvalidLengthVersioningconfiguration = fmt.Errorf("proto: negative length found during unmarshaling")
  572. ErrIntOverflowVersioningconfiguration = fmt.Errorf("proto: integer overflow")
  573. ErrUnexpectedEndOfGroupVersioningconfiguration = fmt.Errorf("proto: unexpected end of group")
  574. )