You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

644 lines
19 KiB

  1. package cmd
  2. // Code generated by github.com/tinylib/msgp DO NOT EDIT.
  3. import (
  4. "github.com/tinylib/msgp/msgp"
  5. )
  6. // MarshalMsg implements msgp.Marshaler
  7. func (z *MetricDescription) MarshalMsg(b []byte) (o []byte, err error) {
  8. o = msgp.Require(b, z.Msgsize())
  9. // map header, size 5
  10. // string "Namespace"
  11. o = append(o, 0x85, 0xa9, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65)
  12. o = msgp.AppendString(o, string(z.Namespace))
  13. // string "Subsystem"
  14. o = append(o, 0xa9, 0x53, 0x75, 0x62, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d)
  15. o = msgp.AppendString(o, string(z.Subsystem))
  16. // string "Name"
  17. o = append(o, 0xa4, 0x4e, 0x61, 0x6d, 0x65)
  18. o = msgp.AppendString(o, string(z.Name))
  19. // string "Help"
  20. o = append(o, 0xa4, 0x48, 0x65, 0x6c, 0x70)
  21. o = msgp.AppendString(o, z.Help)
  22. // string "Type"
  23. o = append(o, 0xa4, 0x54, 0x79, 0x70, 0x65)
  24. o = msgp.AppendString(o, string(z.Type))
  25. return
  26. }
  27. // UnmarshalMsg implements msgp.Unmarshaler
  28. func (z *MetricDescription) UnmarshalMsg(bts []byte) (o []byte, err error) {
  29. var field []byte
  30. _ = field
  31. var zb0001 uint32
  32. zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  33. if err != nil {
  34. err = msgp.WrapError(err)
  35. return
  36. }
  37. for zb0001 > 0 {
  38. zb0001--
  39. field, bts, err = msgp.ReadMapKeyZC(bts)
  40. if err != nil {
  41. err = msgp.WrapError(err)
  42. return
  43. }
  44. switch msgp.UnsafeString(field) {
  45. case "Namespace":
  46. {
  47. var zb0002 string
  48. zb0002, bts, err = msgp.ReadStringBytes(bts)
  49. if err != nil {
  50. err = msgp.WrapError(err, "Namespace")
  51. return
  52. }
  53. z.Namespace = MetricNamespace(zb0002)
  54. }
  55. case "Subsystem":
  56. {
  57. var zb0003 string
  58. zb0003, bts, err = msgp.ReadStringBytes(bts)
  59. if err != nil {
  60. err = msgp.WrapError(err, "Subsystem")
  61. return
  62. }
  63. z.Subsystem = MetricSubsystem(zb0003)
  64. }
  65. case "Name":
  66. {
  67. var zb0004 string
  68. zb0004, bts, err = msgp.ReadStringBytes(bts)
  69. if err != nil {
  70. err = msgp.WrapError(err, "Name")
  71. return
  72. }
  73. z.Name = MetricName(zb0004)
  74. }
  75. case "Help":
  76. z.Help, bts, err = msgp.ReadStringBytes(bts)
  77. if err != nil {
  78. err = msgp.WrapError(err, "Help")
  79. return
  80. }
  81. case "Type":
  82. {
  83. var zb0005 string
  84. zb0005, bts, err = msgp.ReadStringBytes(bts)
  85. if err != nil {
  86. err = msgp.WrapError(err, "Type")
  87. return
  88. }
  89. z.Type = MetricTypeV2(zb0005)
  90. }
  91. default:
  92. bts, err = msgp.Skip(bts)
  93. if err != nil {
  94. err = msgp.WrapError(err)
  95. return
  96. }
  97. }
  98. }
  99. o = bts
  100. return
  101. }
  102. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  103. func (z *MetricDescription) Msgsize() (s int) {
  104. s = 1 + 10 + msgp.StringPrefixSize + len(string(z.Namespace)) + 10 + msgp.StringPrefixSize + len(string(z.Subsystem)) + 5 + msgp.StringPrefixSize + len(string(z.Name)) + 5 + msgp.StringPrefixSize + len(z.Help) + 5 + msgp.StringPrefixSize + len(string(z.Type))
  105. return
  106. }
  107. // MarshalMsg implements msgp.Marshaler
  108. func (z MetricName) MarshalMsg(b []byte) (o []byte, err error) {
  109. o = msgp.Require(b, z.Msgsize())
  110. o = msgp.AppendString(o, string(z))
  111. return
  112. }
  113. // UnmarshalMsg implements msgp.Unmarshaler
  114. func (z *MetricName) UnmarshalMsg(bts []byte) (o []byte, err error) {
  115. {
  116. var zb0001 string
  117. zb0001, bts, err = msgp.ReadStringBytes(bts)
  118. if err != nil {
  119. err = msgp.WrapError(err)
  120. return
  121. }
  122. (*z) = MetricName(zb0001)
  123. }
  124. o = bts
  125. return
  126. }
  127. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  128. func (z MetricName) Msgsize() (s int) {
  129. s = msgp.StringPrefixSize + len(string(z))
  130. return
  131. }
  132. // MarshalMsg implements msgp.Marshaler
  133. func (z MetricNamespace) MarshalMsg(b []byte) (o []byte, err error) {
  134. o = msgp.Require(b, z.Msgsize())
  135. o = msgp.AppendString(o, string(z))
  136. return
  137. }
  138. // UnmarshalMsg implements msgp.Unmarshaler
  139. func (z *MetricNamespace) UnmarshalMsg(bts []byte) (o []byte, err error) {
  140. {
  141. var zb0001 string
  142. zb0001, bts, err = msgp.ReadStringBytes(bts)
  143. if err != nil {
  144. err = msgp.WrapError(err)
  145. return
  146. }
  147. (*z) = MetricNamespace(zb0001)
  148. }
  149. o = bts
  150. return
  151. }
  152. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  153. func (z MetricNamespace) Msgsize() (s int) {
  154. s = msgp.StringPrefixSize + len(string(z))
  155. return
  156. }
  157. // MarshalMsg implements msgp.Marshaler
  158. func (z MetricSubsystem) MarshalMsg(b []byte) (o []byte, err error) {
  159. o = msgp.Require(b, z.Msgsize())
  160. o = msgp.AppendString(o, string(z))
  161. return
  162. }
  163. // UnmarshalMsg implements msgp.Unmarshaler
  164. func (z *MetricSubsystem) UnmarshalMsg(bts []byte) (o []byte, err error) {
  165. {
  166. var zb0001 string
  167. zb0001, bts, err = msgp.ReadStringBytes(bts)
  168. if err != nil {
  169. err = msgp.WrapError(err)
  170. return
  171. }
  172. (*z) = MetricSubsystem(zb0001)
  173. }
  174. o = bts
  175. return
  176. }
  177. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  178. func (z MetricSubsystem) Msgsize() (s int) {
  179. s = msgp.StringPrefixSize + len(string(z))
  180. return
  181. }
  182. // MarshalMsg implements msgp.Marshaler
  183. func (z MetricTypeV2) MarshalMsg(b []byte) (o []byte, err error) {
  184. o = msgp.Require(b, z.Msgsize())
  185. o = msgp.AppendString(o, string(z))
  186. return
  187. }
  188. // UnmarshalMsg implements msgp.Unmarshaler
  189. func (z *MetricTypeV2) UnmarshalMsg(bts []byte) (o []byte, err error) {
  190. {
  191. var zb0001 string
  192. zb0001, bts, err = msgp.ReadStringBytes(bts)
  193. if err != nil {
  194. err = msgp.WrapError(err)
  195. return
  196. }
  197. (*z) = MetricTypeV2(zb0001)
  198. }
  199. o = bts
  200. return
  201. }
  202. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  203. func (z MetricTypeV2) Msgsize() (s int) {
  204. s = msgp.StringPrefixSize + len(string(z))
  205. return
  206. }
  207. // MarshalMsg implements msgp.Marshaler
  208. func (z *MetricV2) MarshalMsg(b []byte) (o []byte, err error) {
  209. o = msgp.Require(b, z.Msgsize())
  210. // map header, size 6
  211. // string "Description"
  212. o = append(o, 0x86, 0xab, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e)
  213. o, err = z.Description.MarshalMsg(o)
  214. if err != nil {
  215. err = msgp.WrapError(err, "Description")
  216. return
  217. }
  218. // string "StaticLabels"
  219. o = append(o, 0xac, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73)
  220. o = msgp.AppendMapHeader(o, uint32(len(z.StaticLabels)))
  221. for za0001, za0002 := range z.StaticLabels {
  222. o = msgp.AppendString(o, za0001)
  223. o = msgp.AppendString(o, za0002)
  224. }
  225. // string "Value"
  226. o = append(o, 0xa5, 0x56, 0x61, 0x6c, 0x75, 0x65)
  227. o = msgp.AppendFloat64(o, z.Value)
  228. // string "VariableLabels"
  229. o = append(o, 0xae, 0x56, 0x61, 0x72, 0x69, 0x61, 0x62, 0x6c, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73)
  230. o = msgp.AppendMapHeader(o, uint32(len(z.VariableLabels)))
  231. for za0003, za0004 := range z.VariableLabels {
  232. o = msgp.AppendString(o, za0003)
  233. o = msgp.AppendString(o, za0004)
  234. }
  235. // string "HistogramBucketLabel"
  236. o = append(o, 0xb4, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4c, 0x61, 0x62, 0x65, 0x6c)
  237. o = msgp.AppendString(o, z.HistogramBucketLabel)
  238. // string "Histogram"
  239. o = append(o, 0xa9, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x67, 0x72, 0x61, 0x6d)
  240. o = msgp.AppendMapHeader(o, uint32(len(z.Histogram)))
  241. for za0005, za0006 := range z.Histogram {
  242. o = msgp.AppendString(o, za0005)
  243. o = msgp.AppendUint64(o, za0006)
  244. }
  245. return
  246. }
  247. // UnmarshalMsg implements msgp.Unmarshaler
  248. func (z *MetricV2) UnmarshalMsg(bts []byte) (o []byte, err error) {
  249. var field []byte
  250. _ = field
  251. var zb0001 uint32
  252. zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  253. if err != nil {
  254. err = msgp.WrapError(err)
  255. return
  256. }
  257. for zb0001 > 0 {
  258. zb0001--
  259. field, bts, err = msgp.ReadMapKeyZC(bts)
  260. if err != nil {
  261. err = msgp.WrapError(err)
  262. return
  263. }
  264. switch msgp.UnsafeString(field) {
  265. case "Description":
  266. bts, err = z.Description.UnmarshalMsg(bts)
  267. if err != nil {
  268. err = msgp.WrapError(err, "Description")
  269. return
  270. }
  271. case "StaticLabels":
  272. var zb0002 uint32
  273. zb0002, bts, err = msgp.ReadMapHeaderBytes(bts)
  274. if err != nil {
  275. err = msgp.WrapError(err, "StaticLabels")
  276. return
  277. }
  278. if z.StaticLabels == nil {
  279. z.StaticLabels = make(map[string]string, zb0002)
  280. } else if len(z.StaticLabels) > 0 {
  281. for key := range z.StaticLabels {
  282. delete(z.StaticLabels, key)
  283. }
  284. }
  285. for zb0002 > 0 {
  286. var za0001 string
  287. var za0002 string
  288. zb0002--
  289. za0001, bts, err = msgp.ReadStringBytes(bts)
  290. if err != nil {
  291. err = msgp.WrapError(err, "StaticLabels")
  292. return
  293. }
  294. za0002, bts, err = msgp.ReadStringBytes(bts)
  295. if err != nil {
  296. err = msgp.WrapError(err, "StaticLabels", za0001)
  297. return
  298. }
  299. z.StaticLabels[za0001] = za0002
  300. }
  301. case "Value":
  302. z.Value, bts, err = msgp.ReadFloat64Bytes(bts)
  303. if err != nil {
  304. err = msgp.WrapError(err, "Value")
  305. return
  306. }
  307. case "VariableLabels":
  308. var zb0003 uint32
  309. zb0003, bts, err = msgp.ReadMapHeaderBytes(bts)
  310. if err != nil {
  311. err = msgp.WrapError(err, "VariableLabels")
  312. return
  313. }
  314. if z.VariableLabels == nil {
  315. z.VariableLabels = make(map[string]string, zb0003)
  316. } else if len(z.VariableLabels) > 0 {
  317. for key := range z.VariableLabels {
  318. delete(z.VariableLabels, key)
  319. }
  320. }
  321. for zb0003 > 0 {
  322. var za0003 string
  323. var za0004 string
  324. zb0003--
  325. za0003, bts, err = msgp.ReadStringBytes(bts)
  326. if err != nil {
  327. err = msgp.WrapError(err, "VariableLabels")
  328. return
  329. }
  330. za0004, bts, err = msgp.ReadStringBytes(bts)
  331. if err != nil {
  332. err = msgp.WrapError(err, "VariableLabels", za0003)
  333. return
  334. }
  335. z.VariableLabels[za0003] = za0004
  336. }
  337. case "HistogramBucketLabel":
  338. z.HistogramBucketLabel, bts, err = msgp.ReadStringBytes(bts)
  339. if err != nil {
  340. err = msgp.WrapError(err, "HistogramBucketLabel")
  341. return
  342. }
  343. case "Histogram":
  344. var zb0004 uint32
  345. zb0004, bts, err = msgp.ReadMapHeaderBytes(bts)
  346. if err != nil {
  347. err = msgp.WrapError(err, "Histogram")
  348. return
  349. }
  350. if z.Histogram == nil {
  351. z.Histogram = make(map[string]uint64, zb0004)
  352. } else if len(z.Histogram) > 0 {
  353. for key := range z.Histogram {
  354. delete(z.Histogram, key)
  355. }
  356. }
  357. for zb0004 > 0 {
  358. var za0005 string
  359. var za0006 uint64
  360. zb0004--
  361. za0005, bts, err = msgp.ReadStringBytes(bts)
  362. if err != nil {
  363. err = msgp.WrapError(err, "Histogram")
  364. return
  365. }
  366. za0006, bts, err = msgp.ReadUint64Bytes(bts)
  367. if err != nil {
  368. err = msgp.WrapError(err, "Histogram", za0005)
  369. return
  370. }
  371. z.Histogram[za0005] = za0006
  372. }
  373. default:
  374. bts, err = msgp.Skip(bts)
  375. if err != nil {
  376. err = msgp.WrapError(err)
  377. return
  378. }
  379. }
  380. }
  381. o = bts
  382. return
  383. }
  384. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  385. func (z *MetricV2) Msgsize() (s int) {
  386. s = 1 + 12 + z.Description.Msgsize() + 13 + msgp.MapHeaderSize
  387. if z.StaticLabels != nil {
  388. for za0001, za0002 := range z.StaticLabels {
  389. _ = za0002
  390. s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002)
  391. }
  392. }
  393. s += 6 + msgp.Float64Size + 15 + msgp.MapHeaderSize
  394. if z.VariableLabels != nil {
  395. for za0003, za0004 := range z.VariableLabels {
  396. _ = za0004
  397. s += msgp.StringPrefixSize + len(za0003) + msgp.StringPrefixSize + len(za0004)
  398. }
  399. }
  400. s += 21 + msgp.StringPrefixSize + len(z.HistogramBucketLabel) + 10 + msgp.MapHeaderSize
  401. if z.Histogram != nil {
  402. for za0005, za0006 := range z.Histogram {
  403. _ = za0006
  404. s += msgp.StringPrefixSize + len(za0005) + msgp.Uint64Size
  405. }
  406. }
  407. return
  408. }
  409. // MarshalMsg implements msgp.Marshaler
  410. func (z *MetricsGroupOpts) MarshalMsg(b []byte) (o []byte, err error) {
  411. o = msgp.Require(b, z.Msgsize())
  412. // map header, size 12
  413. // string "dependGlobalObjectAPI"
  414. o = append(o, 0x8c, 0xb5, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x50, 0x49)
  415. o = msgp.AppendBool(o, z.dependGlobalObjectAPI)
  416. // string "dependGlobalAuthNPlugin"
  417. o = append(o, 0xb7, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x41, 0x75, 0x74, 0x68, 0x4e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e)
  418. o = msgp.AppendBool(o, z.dependGlobalAuthNPlugin)
  419. // string "dependGlobalSiteReplicationSys"
  420. o = append(o, 0xbe, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x53, 0x69, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x79, 0x73)
  421. o = msgp.AppendBool(o, z.dependGlobalSiteReplicationSys)
  422. // string "dependGlobalNotificationSys"
  423. o = append(o, 0xbb, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x79, 0x73)
  424. o = msgp.AppendBool(o, z.dependGlobalNotificationSys)
  425. // string "dependGlobalKMS"
  426. o = append(o, 0xaf, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4b, 0x4d, 0x53)
  427. o = msgp.AppendBool(o, z.dependGlobalKMS)
  428. // string "bucketOnly"
  429. o = append(o, 0xaa, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x4f, 0x6e, 0x6c, 0x79)
  430. o = msgp.AppendBool(o, z.bucketOnly)
  431. // string "dependGlobalLambdaTargetList"
  432. o = append(o, 0xbc, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4c, 0x61, 0x6d, 0x62, 0x64, 0x61, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74)
  433. o = msgp.AppendBool(o, z.dependGlobalLambdaTargetList)
  434. // string "dependGlobalIAMSys"
  435. o = append(o, 0xb2, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x49, 0x41, 0x4d, 0x53, 0x79, 0x73)
  436. o = msgp.AppendBool(o, z.dependGlobalIAMSys)
  437. // string "dependGlobalLockServer"
  438. o = append(o, 0xb6, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x4c, 0x6f, 0x63, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72)
  439. o = msgp.AppendBool(o, z.dependGlobalLockServer)
  440. // string "dependGlobalIsDistErasure"
  441. o = append(o, 0xb9, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x49, 0x73, 0x44, 0x69, 0x73, 0x74, 0x45, 0x72, 0x61, 0x73, 0x75, 0x72, 0x65)
  442. o = msgp.AppendBool(o, z.dependGlobalIsDistErasure)
  443. // string "dependGlobalBackgroundHealState"
  444. o = append(o, 0xbf, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x47, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x48, 0x65, 0x61, 0x6c, 0x53, 0x74, 0x61, 0x74, 0x65)
  445. o = msgp.AppendBool(o, z.dependGlobalBackgroundHealState)
  446. // string "dependBucketTargetSys"
  447. o = append(o, 0xb5, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x79, 0x73)
  448. o = msgp.AppendBool(o, z.dependBucketTargetSys)
  449. return
  450. }
  451. // UnmarshalMsg implements msgp.Unmarshaler
  452. func (z *MetricsGroupOpts) UnmarshalMsg(bts []byte) (o []byte, err error) {
  453. var field []byte
  454. _ = field
  455. var zb0001 uint32
  456. zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  457. if err != nil {
  458. err = msgp.WrapError(err)
  459. return
  460. }
  461. for zb0001 > 0 {
  462. zb0001--
  463. field, bts, err = msgp.ReadMapKeyZC(bts)
  464. if err != nil {
  465. err = msgp.WrapError(err)
  466. return
  467. }
  468. switch msgp.UnsafeString(field) {
  469. case "dependGlobalObjectAPI":
  470. z.dependGlobalObjectAPI, bts, err = msgp.ReadBoolBytes(bts)
  471. if err != nil {
  472. err = msgp.WrapError(err, "dependGlobalObjectAPI")
  473. return
  474. }
  475. case "dependGlobalAuthNPlugin":
  476. z.dependGlobalAuthNPlugin, bts, err = msgp.ReadBoolBytes(bts)
  477. if err != nil {
  478. err = msgp.WrapError(err, "dependGlobalAuthNPlugin")
  479. return
  480. }
  481. case "dependGlobalSiteReplicationSys":
  482. z.dependGlobalSiteReplicationSys, bts, err = msgp.ReadBoolBytes(bts)
  483. if err != nil {
  484. err = msgp.WrapError(err, "dependGlobalSiteReplicationSys")
  485. return
  486. }
  487. case "dependGlobalNotificationSys":
  488. z.dependGlobalNotificationSys, bts, err = msgp.ReadBoolBytes(bts)
  489. if err != nil {
  490. err = msgp.WrapError(err, "dependGlobalNotificationSys")
  491. return
  492. }
  493. case "dependGlobalKMS":
  494. z.dependGlobalKMS, bts, err = msgp.ReadBoolBytes(bts)
  495. if err != nil {
  496. err = msgp.WrapError(err, "dependGlobalKMS")
  497. return
  498. }
  499. case "bucketOnly":
  500. z.bucketOnly, bts, err = msgp.ReadBoolBytes(bts)
  501. if err != nil {
  502. err = msgp.WrapError(err, "bucketOnly")
  503. return
  504. }
  505. case "dependGlobalLambdaTargetList":
  506. z.dependGlobalLambdaTargetList, bts, err = msgp.ReadBoolBytes(bts)
  507. if err != nil {
  508. err = msgp.WrapError(err, "dependGlobalLambdaTargetList")
  509. return
  510. }
  511. case "dependGlobalIAMSys":
  512. z.dependGlobalIAMSys, bts, err = msgp.ReadBoolBytes(bts)
  513. if err != nil {
  514. err = msgp.WrapError(err, "dependGlobalIAMSys")
  515. return
  516. }
  517. case "dependGlobalLockServer":
  518. z.dependGlobalLockServer, bts, err = msgp.ReadBoolBytes(bts)
  519. if err != nil {
  520. err = msgp.WrapError(err, "dependGlobalLockServer")
  521. return
  522. }
  523. case "dependGlobalIsDistErasure":
  524. z.dependGlobalIsDistErasure, bts, err = msgp.ReadBoolBytes(bts)
  525. if err != nil {
  526. err = msgp.WrapError(err, "dependGlobalIsDistErasure")
  527. return
  528. }
  529. case "dependGlobalBackgroundHealState":
  530. z.dependGlobalBackgroundHealState, bts, err = msgp.ReadBoolBytes(bts)
  531. if err != nil {
  532. err = msgp.WrapError(err, "dependGlobalBackgroundHealState")
  533. return
  534. }
  535. case "dependBucketTargetSys":
  536. z.dependBucketTargetSys, bts, err = msgp.ReadBoolBytes(bts)
  537. if err != nil {
  538. err = msgp.WrapError(err, "dependBucketTargetSys")
  539. return
  540. }
  541. default:
  542. bts, err = msgp.Skip(bts)
  543. if err != nil {
  544. err = msgp.WrapError(err)
  545. return
  546. }
  547. }
  548. }
  549. o = bts
  550. return
  551. }
  552. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  553. func (z *MetricsGroupOpts) Msgsize() (s int) {
  554. s = 1 + 22 + msgp.BoolSize + 24 + msgp.BoolSize + 31 + msgp.BoolSize + 28 + msgp.BoolSize + 16 + msgp.BoolSize + 11 + msgp.BoolSize + 29 + msgp.BoolSize + 19 + msgp.BoolSize + 23 + msgp.BoolSize + 26 + msgp.BoolSize + 32 + msgp.BoolSize + 22 + msgp.BoolSize
  555. return
  556. }
  557. // MarshalMsg implements msgp.Marshaler
  558. func (z *MetricsGroupV2) MarshalMsg(b []byte) (o []byte, err error) {
  559. o = msgp.Require(b, z.Msgsize())
  560. // map header, size 2
  561. // string "cacheInterval"
  562. o = append(o, 0x82, 0xad, 0x63, 0x61, 0x63, 0x68, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c)
  563. o = msgp.AppendDuration(o, z.cacheInterval)
  564. // string "metricsGroupOpts"
  565. o = append(o, 0xb0, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4f, 0x70, 0x74, 0x73)
  566. o, err = z.metricsGroupOpts.MarshalMsg(o)
  567. if err != nil {
  568. err = msgp.WrapError(err, "metricsGroupOpts")
  569. return
  570. }
  571. return
  572. }
  573. // UnmarshalMsg implements msgp.Unmarshaler
  574. func (z *MetricsGroupV2) UnmarshalMsg(bts []byte) (o []byte, err error) {
  575. var field []byte
  576. _ = field
  577. var zb0001 uint32
  578. zb0001, bts, err = msgp.ReadMapHeaderBytes(bts)
  579. if err != nil {
  580. err = msgp.WrapError(err)
  581. return
  582. }
  583. for zb0001 > 0 {
  584. zb0001--
  585. field, bts, err = msgp.ReadMapKeyZC(bts)
  586. if err != nil {
  587. err = msgp.WrapError(err)
  588. return
  589. }
  590. switch msgp.UnsafeString(field) {
  591. case "cacheInterval":
  592. z.cacheInterval, bts, err = msgp.ReadDurationBytes(bts)
  593. if err != nil {
  594. err = msgp.WrapError(err, "cacheInterval")
  595. return
  596. }
  597. case "metricsGroupOpts":
  598. bts, err = z.metricsGroupOpts.UnmarshalMsg(bts)
  599. if err != nil {
  600. err = msgp.WrapError(err, "metricsGroupOpts")
  601. return
  602. }
  603. default:
  604. bts, err = msgp.Skip(bts)
  605. if err != nil {
  606. err = msgp.WrapError(err)
  607. return
  608. }
  609. }
  610. }
  611. o = bts
  612. return
  613. }
  614. // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
  615. func (z *MetricsGroupV2) Msgsize() (s int) {
  616. s = 1 + 14 + msgp.DurationSize + 17 + z.metricsGroupOpts.Msgsize()
  617. return
  618. }