github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/metacache-set_gen.go (about) 1 package cmd 2 3 // Code generated by github.com/tinylib/msgp DO NOT EDIT. 4 5 import ( 6 "github.com/tinylib/msgp/msgp" 7 ) 8 9 // DecodeMsg implements msgp.Decodable 10 func (z *listPathOptions) DecodeMsg(dc *msgp.Reader) (err error) { 11 var field []byte 12 _ = field 13 var zb0001 uint32 14 zb0001, err = dc.ReadMapHeader() 15 if err != nil { 16 err = msgp.WrapError(err) 17 return 18 } 19 for zb0001 > 0 { 20 zb0001-- 21 field, err = dc.ReadMapKeyPtr() 22 if err != nil { 23 err = msgp.WrapError(err) 24 return 25 } 26 switch msgp.UnsafeString(field) { 27 case "ID": 28 z.ID, err = dc.ReadString() 29 if err != nil { 30 err = msgp.WrapError(err, "ID") 31 return 32 } 33 case "Bucket": 34 z.Bucket, err = dc.ReadString() 35 if err != nil { 36 err = msgp.WrapError(err, "Bucket") 37 return 38 } 39 case "BaseDir": 40 z.BaseDir, err = dc.ReadString() 41 if err != nil { 42 err = msgp.WrapError(err, "BaseDir") 43 return 44 } 45 case "Prefix": 46 z.Prefix, err = dc.ReadString() 47 if err != nil { 48 err = msgp.WrapError(err, "Prefix") 49 return 50 } 51 case "FilterPrefix": 52 z.FilterPrefix, err = dc.ReadString() 53 if err != nil { 54 err = msgp.WrapError(err, "FilterPrefix") 55 return 56 } 57 case "Marker": 58 z.Marker, err = dc.ReadString() 59 if err != nil { 60 err = msgp.WrapError(err, "Marker") 61 return 62 } 63 case "Limit": 64 z.Limit, err = dc.ReadInt() 65 if err != nil { 66 err = msgp.WrapError(err, "Limit") 67 return 68 } 69 case "AskDisks": 70 z.AskDisks, err = dc.ReadString() 71 if err != nil { 72 err = msgp.WrapError(err, "AskDisks") 73 return 74 } 75 case "InclDeleted": 76 z.InclDeleted, err = dc.ReadBool() 77 if err != nil { 78 err = msgp.WrapError(err, "InclDeleted") 79 return 80 } 81 case "Recursive": 82 z.Recursive, err = dc.ReadBool() 83 if err != nil { 84 err = msgp.WrapError(err, "Recursive") 85 return 86 } 87 case "Separator": 88 z.Separator, err = dc.ReadString() 89 if err != nil { 90 err = msgp.WrapError(err, "Separator") 91 return 92 } 93 case "Create": 94 z.Create, err = dc.ReadBool() 95 if err != nil { 96 err = msgp.WrapError(err, "Create") 97 return 98 } 99 case "IncludeDirectories": 100 z.IncludeDirectories, err = dc.ReadBool() 101 if err != nil { 102 err = msgp.WrapError(err, "IncludeDirectories") 103 return 104 } 105 case "Transient": 106 z.Transient, err = dc.ReadBool() 107 if err != nil { 108 err = msgp.WrapError(err, "Transient") 109 return 110 } 111 case "Versioned": 112 z.Versioned, err = dc.ReadBool() 113 if err != nil { 114 err = msgp.WrapError(err, "Versioned") 115 return 116 } 117 case "V1": 118 z.V1, err = dc.ReadBool() 119 if err != nil { 120 err = msgp.WrapError(err, "V1") 121 return 122 } 123 case "StopDiskAtLimit": 124 z.StopDiskAtLimit, err = dc.ReadBool() 125 if err != nil { 126 err = msgp.WrapError(err, "StopDiskAtLimit") 127 return 128 } 129 case "pool": 130 z.pool, err = dc.ReadInt() 131 if err != nil { 132 err = msgp.WrapError(err, "pool") 133 return 134 } 135 case "set": 136 z.set, err = dc.ReadInt() 137 if err != nil { 138 err = msgp.WrapError(err, "set") 139 return 140 } 141 default: 142 err = dc.Skip() 143 if err != nil { 144 err = msgp.WrapError(err) 145 return 146 } 147 } 148 } 149 return 150 } 151 152 // EncodeMsg implements msgp.Encodable 153 func (z *listPathOptions) EncodeMsg(en *msgp.Writer) (err error) { 154 // map header, size 19 155 // write "ID" 156 err = en.Append(0xde, 0x0, 0x13, 0xa2, 0x49, 0x44) 157 if err != nil { 158 return 159 } 160 err = en.WriteString(z.ID) 161 if err != nil { 162 err = msgp.WrapError(err, "ID") 163 return 164 } 165 // write "Bucket" 166 err = en.Append(0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 167 if err != nil { 168 return 169 } 170 err = en.WriteString(z.Bucket) 171 if err != nil { 172 err = msgp.WrapError(err, "Bucket") 173 return 174 } 175 // write "BaseDir" 176 err = en.Append(0xa7, 0x42, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72) 177 if err != nil { 178 return 179 } 180 err = en.WriteString(z.BaseDir) 181 if err != nil { 182 err = msgp.WrapError(err, "BaseDir") 183 return 184 } 185 // write "Prefix" 186 err = en.Append(0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78) 187 if err != nil { 188 return 189 } 190 err = en.WriteString(z.Prefix) 191 if err != nil { 192 err = msgp.WrapError(err, "Prefix") 193 return 194 } 195 // write "FilterPrefix" 196 err = en.Append(0xac, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78) 197 if err != nil { 198 return 199 } 200 err = en.WriteString(z.FilterPrefix) 201 if err != nil { 202 err = msgp.WrapError(err, "FilterPrefix") 203 return 204 } 205 // write "Marker" 206 err = en.Append(0xa6, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 207 if err != nil { 208 return 209 } 210 err = en.WriteString(z.Marker) 211 if err != nil { 212 err = msgp.WrapError(err, "Marker") 213 return 214 } 215 // write "Limit" 216 err = en.Append(0xa5, 0x4c, 0x69, 0x6d, 0x69, 0x74) 217 if err != nil { 218 return 219 } 220 err = en.WriteInt(z.Limit) 221 if err != nil { 222 err = msgp.WrapError(err, "Limit") 223 return 224 } 225 // write "AskDisks" 226 err = en.Append(0xa8, 0x41, 0x73, 0x6b, 0x44, 0x69, 0x73, 0x6b, 0x73) 227 if err != nil { 228 return 229 } 230 err = en.WriteString(z.AskDisks) 231 if err != nil { 232 err = msgp.WrapError(err, "AskDisks") 233 return 234 } 235 // write "InclDeleted" 236 err = en.Append(0xab, 0x49, 0x6e, 0x63, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) 237 if err != nil { 238 return 239 } 240 err = en.WriteBool(z.InclDeleted) 241 if err != nil { 242 err = msgp.WrapError(err, "InclDeleted") 243 return 244 } 245 // write "Recursive" 246 err = en.Append(0xa9, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65) 247 if err != nil { 248 return 249 } 250 err = en.WriteBool(z.Recursive) 251 if err != nil { 252 err = msgp.WrapError(err, "Recursive") 253 return 254 } 255 // write "Separator" 256 err = en.Append(0xa9, 0x53, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72) 257 if err != nil { 258 return 259 } 260 err = en.WriteString(z.Separator) 261 if err != nil { 262 err = msgp.WrapError(err, "Separator") 263 return 264 } 265 // write "Create" 266 err = en.Append(0xa6, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65) 267 if err != nil { 268 return 269 } 270 err = en.WriteBool(z.Create) 271 if err != nil { 272 err = msgp.WrapError(err, "Create") 273 return 274 } 275 // write "IncludeDirectories" 276 err = en.Append(0xb2, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73) 277 if err != nil { 278 return 279 } 280 err = en.WriteBool(z.IncludeDirectories) 281 if err != nil { 282 err = msgp.WrapError(err, "IncludeDirectories") 283 return 284 } 285 // write "Transient" 286 err = en.Append(0xa9, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74) 287 if err != nil { 288 return 289 } 290 err = en.WriteBool(z.Transient) 291 if err != nil { 292 err = msgp.WrapError(err, "Transient") 293 return 294 } 295 // write "Versioned" 296 err = en.Append(0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64) 297 if err != nil { 298 return 299 } 300 err = en.WriteBool(z.Versioned) 301 if err != nil { 302 err = msgp.WrapError(err, "Versioned") 303 return 304 } 305 // write "V1" 306 err = en.Append(0xa2, 0x56, 0x31) 307 if err != nil { 308 return 309 } 310 err = en.WriteBool(z.V1) 311 if err != nil { 312 err = msgp.WrapError(err, "V1") 313 return 314 } 315 // write "StopDiskAtLimit" 316 err = en.Append(0xaf, 0x53, 0x74, 0x6f, 0x70, 0x44, 0x69, 0x73, 0x6b, 0x41, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74) 317 if err != nil { 318 return 319 } 320 err = en.WriteBool(z.StopDiskAtLimit) 321 if err != nil { 322 err = msgp.WrapError(err, "StopDiskAtLimit") 323 return 324 } 325 // write "pool" 326 err = en.Append(0xa4, 0x70, 0x6f, 0x6f, 0x6c) 327 if err != nil { 328 return 329 } 330 err = en.WriteInt(z.pool) 331 if err != nil { 332 err = msgp.WrapError(err, "pool") 333 return 334 } 335 // write "set" 336 err = en.Append(0xa3, 0x73, 0x65, 0x74) 337 if err != nil { 338 return 339 } 340 err = en.WriteInt(z.set) 341 if err != nil { 342 err = msgp.WrapError(err, "set") 343 return 344 } 345 return 346 } 347 348 // MarshalMsg implements msgp.Marshaler 349 func (z *listPathOptions) MarshalMsg(b []byte) (o []byte, err error) { 350 o = msgp.Require(b, z.Msgsize()) 351 // map header, size 19 352 // string "ID" 353 o = append(o, 0xde, 0x0, 0x13, 0xa2, 0x49, 0x44) 354 o = msgp.AppendString(o, z.ID) 355 // string "Bucket" 356 o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 357 o = msgp.AppendString(o, z.Bucket) 358 // string "BaseDir" 359 o = append(o, 0xa7, 0x42, 0x61, 0x73, 0x65, 0x44, 0x69, 0x72) 360 o = msgp.AppendString(o, z.BaseDir) 361 // string "Prefix" 362 o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78) 363 o = msgp.AppendString(o, z.Prefix) 364 // string "FilterPrefix" 365 o = append(o, 0xac, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78) 366 o = msgp.AppendString(o, z.FilterPrefix) 367 // string "Marker" 368 o = append(o, 0xa6, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 369 o = msgp.AppendString(o, z.Marker) 370 // string "Limit" 371 o = append(o, 0xa5, 0x4c, 0x69, 0x6d, 0x69, 0x74) 372 o = msgp.AppendInt(o, z.Limit) 373 // string "AskDisks" 374 o = append(o, 0xa8, 0x41, 0x73, 0x6b, 0x44, 0x69, 0x73, 0x6b, 0x73) 375 o = msgp.AppendString(o, z.AskDisks) 376 // string "InclDeleted" 377 o = append(o, 0xab, 0x49, 0x6e, 0x63, 0x6c, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) 378 o = msgp.AppendBool(o, z.InclDeleted) 379 // string "Recursive" 380 o = append(o, 0xa9, 0x52, 0x65, 0x63, 0x75, 0x72, 0x73, 0x69, 0x76, 0x65) 381 o = msgp.AppendBool(o, z.Recursive) 382 // string "Separator" 383 o = append(o, 0xa9, 0x53, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x6f, 0x72) 384 o = msgp.AppendString(o, z.Separator) 385 // string "Create" 386 o = append(o, 0xa6, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65) 387 o = msgp.AppendBool(o, z.Create) 388 // string "IncludeDirectories" 389 o = append(o, 0xb2, 0x49, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73) 390 o = msgp.AppendBool(o, z.IncludeDirectories) 391 // string "Transient" 392 o = append(o, 0xa9, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x65, 0x6e, 0x74) 393 o = msgp.AppendBool(o, z.Transient) 394 // string "Versioned" 395 o = append(o, 0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x65, 0x64) 396 o = msgp.AppendBool(o, z.Versioned) 397 // string "V1" 398 o = append(o, 0xa2, 0x56, 0x31) 399 o = msgp.AppendBool(o, z.V1) 400 // string "StopDiskAtLimit" 401 o = append(o, 0xaf, 0x53, 0x74, 0x6f, 0x70, 0x44, 0x69, 0x73, 0x6b, 0x41, 0x74, 0x4c, 0x69, 0x6d, 0x69, 0x74) 402 o = msgp.AppendBool(o, z.StopDiskAtLimit) 403 // string "pool" 404 o = append(o, 0xa4, 0x70, 0x6f, 0x6f, 0x6c) 405 o = msgp.AppendInt(o, z.pool) 406 // string "set" 407 o = append(o, 0xa3, 0x73, 0x65, 0x74) 408 o = msgp.AppendInt(o, z.set) 409 return 410 } 411 412 // UnmarshalMsg implements msgp.Unmarshaler 413 func (z *listPathOptions) UnmarshalMsg(bts []byte) (o []byte, err error) { 414 var field []byte 415 _ = field 416 var zb0001 uint32 417 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 418 if err != nil { 419 err = msgp.WrapError(err) 420 return 421 } 422 for zb0001 > 0 { 423 zb0001-- 424 field, bts, err = msgp.ReadMapKeyZC(bts) 425 if err != nil { 426 err = msgp.WrapError(err) 427 return 428 } 429 switch msgp.UnsafeString(field) { 430 case "ID": 431 z.ID, bts, err = msgp.ReadStringBytes(bts) 432 if err != nil { 433 err = msgp.WrapError(err, "ID") 434 return 435 } 436 case "Bucket": 437 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 438 if err != nil { 439 err = msgp.WrapError(err, "Bucket") 440 return 441 } 442 case "BaseDir": 443 z.BaseDir, bts, err = msgp.ReadStringBytes(bts) 444 if err != nil { 445 err = msgp.WrapError(err, "BaseDir") 446 return 447 } 448 case "Prefix": 449 z.Prefix, bts, err = msgp.ReadStringBytes(bts) 450 if err != nil { 451 err = msgp.WrapError(err, "Prefix") 452 return 453 } 454 case "FilterPrefix": 455 z.FilterPrefix, bts, err = msgp.ReadStringBytes(bts) 456 if err != nil { 457 err = msgp.WrapError(err, "FilterPrefix") 458 return 459 } 460 case "Marker": 461 z.Marker, bts, err = msgp.ReadStringBytes(bts) 462 if err != nil { 463 err = msgp.WrapError(err, "Marker") 464 return 465 } 466 case "Limit": 467 z.Limit, bts, err = msgp.ReadIntBytes(bts) 468 if err != nil { 469 err = msgp.WrapError(err, "Limit") 470 return 471 } 472 case "AskDisks": 473 z.AskDisks, bts, err = msgp.ReadStringBytes(bts) 474 if err != nil { 475 err = msgp.WrapError(err, "AskDisks") 476 return 477 } 478 case "InclDeleted": 479 z.InclDeleted, bts, err = msgp.ReadBoolBytes(bts) 480 if err != nil { 481 err = msgp.WrapError(err, "InclDeleted") 482 return 483 } 484 case "Recursive": 485 z.Recursive, bts, err = msgp.ReadBoolBytes(bts) 486 if err != nil { 487 err = msgp.WrapError(err, "Recursive") 488 return 489 } 490 case "Separator": 491 z.Separator, bts, err = msgp.ReadStringBytes(bts) 492 if err != nil { 493 err = msgp.WrapError(err, "Separator") 494 return 495 } 496 case "Create": 497 z.Create, bts, err = msgp.ReadBoolBytes(bts) 498 if err != nil { 499 err = msgp.WrapError(err, "Create") 500 return 501 } 502 case "IncludeDirectories": 503 z.IncludeDirectories, bts, err = msgp.ReadBoolBytes(bts) 504 if err != nil { 505 err = msgp.WrapError(err, "IncludeDirectories") 506 return 507 } 508 case "Transient": 509 z.Transient, bts, err = msgp.ReadBoolBytes(bts) 510 if err != nil { 511 err = msgp.WrapError(err, "Transient") 512 return 513 } 514 case "Versioned": 515 z.Versioned, bts, err = msgp.ReadBoolBytes(bts) 516 if err != nil { 517 err = msgp.WrapError(err, "Versioned") 518 return 519 } 520 case "V1": 521 z.V1, bts, err = msgp.ReadBoolBytes(bts) 522 if err != nil { 523 err = msgp.WrapError(err, "V1") 524 return 525 } 526 case "StopDiskAtLimit": 527 z.StopDiskAtLimit, bts, err = msgp.ReadBoolBytes(bts) 528 if err != nil { 529 err = msgp.WrapError(err, "StopDiskAtLimit") 530 return 531 } 532 case "pool": 533 z.pool, bts, err = msgp.ReadIntBytes(bts) 534 if err != nil { 535 err = msgp.WrapError(err, "pool") 536 return 537 } 538 case "set": 539 z.set, bts, err = msgp.ReadIntBytes(bts) 540 if err != nil { 541 err = msgp.WrapError(err, "set") 542 return 543 } 544 default: 545 bts, err = msgp.Skip(bts) 546 if err != nil { 547 err = msgp.WrapError(err) 548 return 549 } 550 } 551 } 552 o = bts 553 return 554 } 555 556 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 557 func (z *listPathOptions) Msgsize() (s int) { 558 s = 3 + 3 + msgp.StringPrefixSize + len(z.ID) + 7 + msgp.StringPrefixSize + len(z.Bucket) + 8 + msgp.StringPrefixSize + len(z.BaseDir) + 7 + msgp.StringPrefixSize + len(z.Prefix) + 13 + msgp.StringPrefixSize + len(z.FilterPrefix) + 7 + msgp.StringPrefixSize + len(z.Marker) + 6 + msgp.IntSize + 9 + msgp.StringPrefixSize + len(z.AskDisks) + 12 + msgp.BoolSize + 10 + msgp.BoolSize + 10 + msgp.StringPrefixSize + len(z.Separator) + 7 + msgp.BoolSize + 19 + msgp.BoolSize + 10 + msgp.BoolSize + 10 + msgp.BoolSize + 3 + msgp.BoolSize + 16 + msgp.BoolSize + 5 + msgp.IntSize + 4 + msgp.IntSize 559 return 560 }