github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/batch-handlers_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 *BatchJobRequest) 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 "User": 34 z.User, err = dc.ReadString() 35 if err != nil { 36 err = msgp.WrapError(err, "User") 37 return 38 } 39 case "Started": 40 z.Started, err = dc.ReadTime() 41 if err != nil { 42 err = msgp.WrapError(err, "Started") 43 return 44 } 45 case "Replicate": 46 if dc.IsNil() { 47 err = dc.ReadNil() 48 if err != nil { 49 err = msgp.WrapError(err, "Replicate") 50 return 51 } 52 z.Replicate = nil 53 } else { 54 if z.Replicate == nil { 55 z.Replicate = new(BatchJobReplicateV1) 56 } 57 err = z.Replicate.DecodeMsg(dc) 58 if err != nil { 59 err = msgp.WrapError(err, "Replicate") 60 return 61 } 62 } 63 case "KeyRotate": 64 if dc.IsNil() { 65 err = dc.ReadNil() 66 if err != nil { 67 err = msgp.WrapError(err, "KeyRotate") 68 return 69 } 70 z.KeyRotate = nil 71 } else { 72 if z.KeyRotate == nil { 73 z.KeyRotate = new(BatchJobKeyRotateV1) 74 } 75 err = z.KeyRotate.DecodeMsg(dc) 76 if err != nil { 77 err = msgp.WrapError(err, "KeyRotate") 78 return 79 } 80 } 81 case "Expire": 82 if dc.IsNil() { 83 err = dc.ReadNil() 84 if err != nil { 85 err = msgp.WrapError(err, "Expire") 86 return 87 } 88 z.Expire = nil 89 } else { 90 if z.Expire == nil { 91 z.Expire = new(BatchJobExpire) 92 } 93 err = z.Expire.DecodeMsg(dc) 94 if err != nil { 95 err = msgp.WrapError(err, "Expire") 96 return 97 } 98 } 99 default: 100 err = dc.Skip() 101 if err != nil { 102 err = msgp.WrapError(err) 103 return 104 } 105 } 106 } 107 return 108 } 109 110 // EncodeMsg implements msgp.Encodable 111 func (z *BatchJobRequest) EncodeMsg(en *msgp.Writer) (err error) { 112 // map header, size 6 113 // write "ID" 114 err = en.Append(0x86, 0xa2, 0x49, 0x44) 115 if err != nil { 116 return 117 } 118 err = en.WriteString(z.ID) 119 if err != nil { 120 err = msgp.WrapError(err, "ID") 121 return 122 } 123 // write "User" 124 err = en.Append(0xa4, 0x55, 0x73, 0x65, 0x72) 125 if err != nil { 126 return 127 } 128 err = en.WriteString(z.User) 129 if err != nil { 130 err = msgp.WrapError(err, "User") 131 return 132 } 133 // write "Started" 134 err = en.Append(0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64) 135 if err != nil { 136 return 137 } 138 err = en.WriteTime(z.Started) 139 if err != nil { 140 err = msgp.WrapError(err, "Started") 141 return 142 } 143 // write "Replicate" 144 err = en.Append(0xa9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65) 145 if err != nil { 146 return 147 } 148 if z.Replicate == nil { 149 err = en.WriteNil() 150 if err != nil { 151 return 152 } 153 } else { 154 err = z.Replicate.EncodeMsg(en) 155 if err != nil { 156 err = msgp.WrapError(err, "Replicate") 157 return 158 } 159 } 160 // write "KeyRotate" 161 err = en.Append(0xa9, 0x4b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65) 162 if err != nil { 163 return 164 } 165 if z.KeyRotate == nil { 166 err = en.WriteNil() 167 if err != nil { 168 return 169 } 170 } else { 171 err = z.KeyRotate.EncodeMsg(en) 172 if err != nil { 173 err = msgp.WrapError(err, "KeyRotate") 174 return 175 } 176 } 177 // write "Expire" 178 err = en.Append(0xa6, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65) 179 if err != nil { 180 return 181 } 182 if z.Expire == nil { 183 err = en.WriteNil() 184 if err != nil { 185 return 186 } 187 } else { 188 err = z.Expire.EncodeMsg(en) 189 if err != nil { 190 err = msgp.WrapError(err, "Expire") 191 return 192 } 193 } 194 return 195 } 196 197 // MarshalMsg implements msgp.Marshaler 198 func (z *BatchJobRequest) MarshalMsg(b []byte) (o []byte, err error) { 199 o = msgp.Require(b, z.Msgsize()) 200 // map header, size 6 201 // string "ID" 202 o = append(o, 0x86, 0xa2, 0x49, 0x44) 203 o = msgp.AppendString(o, z.ID) 204 // string "User" 205 o = append(o, 0xa4, 0x55, 0x73, 0x65, 0x72) 206 o = msgp.AppendString(o, z.User) 207 // string "Started" 208 o = append(o, 0xa7, 0x53, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64) 209 o = msgp.AppendTime(o, z.Started) 210 // string "Replicate" 211 o = append(o, 0xa9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x65) 212 if z.Replicate == nil { 213 o = msgp.AppendNil(o) 214 } else { 215 o, err = z.Replicate.MarshalMsg(o) 216 if err != nil { 217 err = msgp.WrapError(err, "Replicate") 218 return 219 } 220 } 221 // string "KeyRotate" 222 o = append(o, 0xa9, 0x4b, 0x65, 0x79, 0x52, 0x6f, 0x74, 0x61, 0x74, 0x65) 223 if z.KeyRotate == nil { 224 o = msgp.AppendNil(o) 225 } else { 226 o, err = z.KeyRotate.MarshalMsg(o) 227 if err != nil { 228 err = msgp.WrapError(err, "KeyRotate") 229 return 230 } 231 } 232 // string "Expire" 233 o = append(o, 0xa6, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65) 234 if z.Expire == nil { 235 o = msgp.AppendNil(o) 236 } else { 237 o, err = z.Expire.MarshalMsg(o) 238 if err != nil { 239 err = msgp.WrapError(err, "Expire") 240 return 241 } 242 } 243 return 244 } 245 246 // UnmarshalMsg implements msgp.Unmarshaler 247 func (z *BatchJobRequest) UnmarshalMsg(bts []byte) (o []byte, err error) { 248 var field []byte 249 _ = field 250 var zb0001 uint32 251 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 252 if err != nil { 253 err = msgp.WrapError(err) 254 return 255 } 256 for zb0001 > 0 { 257 zb0001-- 258 field, bts, err = msgp.ReadMapKeyZC(bts) 259 if err != nil { 260 err = msgp.WrapError(err) 261 return 262 } 263 switch msgp.UnsafeString(field) { 264 case "ID": 265 z.ID, bts, err = msgp.ReadStringBytes(bts) 266 if err != nil { 267 err = msgp.WrapError(err, "ID") 268 return 269 } 270 case "User": 271 z.User, bts, err = msgp.ReadStringBytes(bts) 272 if err != nil { 273 err = msgp.WrapError(err, "User") 274 return 275 } 276 case "Started": 277 z.Started, bts, err = msgp.ReadTimeBytes(bts) 278 if err != nil { 279 err = msgp.WrapError(err, "Started") 280 return 281 } 282 case "Replicate": 283 if msgp.IsNil(bts) { 284 bts, err = msgp.ReadNilBytes(bts) 285 if err != nil { 286 return 287 } 288 z.Replicate = nil 289 } else { 290 if z.Replicate == nil { 291 z.Replicate = new(BatchJobReplicateV1) 292 } 293 bts, err = z.Replicate.UnmarshalMsg(bts) 294 if err != nil { 295 err = msgp.WrapError(err, "Replicate") 296 return 297 } 298 } 299 case "KeyRotate": 300 if msgp.IsNil(bts) { 301 bts, err = msgp.ReadNilBytes(bts) 302 if err != nil { 303 return 304 } 305 z.KeyRotate = nil 306 } else { 307 if z.KeyRotate == nil { 308 z.KeyRotate = new(BatchJobKeyRotateV1) 309 } 310 bts, err = z.KeyRotate.UnmarshalMsg(bts) 311 if err != nil { 312 err = msgp.WrapError(err, "KeyRotate") 313 return 314 } 315 } 316 case "Expire": 317 if msgp.IsNil(bts) { 318 bts, err = msgp.ReadNilBytes(bts) 319 if err != nil { 320 return 321 } 322 z.Expire = nil 323 } else { 324 if z.Expire == nil { 325 z.Expire = new(BatchJobExpire) 326 } 327 bts, err = z.Expire.UnmarshalMsg(bts) 328 if err != nil { 329 err = msgp.WrapError(err, "Expire") 330 return 331 } 332 } 333 default: 334 bts, err = msgp.Skip(bts) 335 if err != nil { 336 err = msgp.WrapError(err) 337 return 338 } 339 } 340 } 341 o = bts 342 return 343 } 344 345 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 346 func (z *BatchJobRequest) Msgsize() (s int) { 347 s = 1 + 3 + msgp.StringPrefixSize + len(z.ID) + 5 + msgp.StringPrefixSize + len(z.User) + 8 + msgp.TimeSize + 10 348 if z.Replicate == nil { 349 s += msgp.NilSize 350 } else { 351 s += z.Replicate.Msgsize() 352 } 353 s += 10 354 if z.KeyRotate == nil { 355 s += msgp.NilSize 356 } else { 357 s += z.KeyRotate.Msgsize() 358 } 359 s += 7 360 if z.Expire == nil { 361 s += msgp.NilSize 362 } else { 363 s += z.Expire.Msgsize() 364 } 365 return 366 } 367 368 // DecodeMsg implements msgp.Decodable 369 func (z *batchJobInfo) DecodeMsg(dc *msgp.Reader) (err error) { 370 var field []byte 371 _ = field 372 var zb0001 uint32 373 zb0001, err = dc.ReadMapHeader() 374 if err != nil { 375 err = msgp.WrapError(err) 376 return 377 } 378 for zb0001 > 0 { 379 zb0001-- 380 field, err = dc.ReadMapKeyPtr() 381 if err != nil { 382 err = msgp.WrapError(err) 383 return 384 } 385 switch msgp.UnsafeString(field) { 386 case "v": 387 z.Version, err = dc.ReadInt() 388 if err != nil { 389 err = msgp.WrapError(err, "Version") 390 return 391 } 392 case "jid": 393 z.JobID, err = dc.ReadString() 394 if err != nil { 395 err = msgp.WrapError(err, "JobID") 396 return 397 } 398 case "jt": 399 z.JobType, err = dc.ReadString() 400 if err != nil { 401 err = msgp.WrapError(err, "JobType") 402 return 403 } 404 case "st": 405 z.StartTime, err = dc.ReadTime() 406 if err != nil { 407 err = msgp.WrapError(err, "StartTime") 408 return 409 } 410 case "lu": 411 z.LastUpdate, err = dc.ReadTime() 412 if err != nil { 413 err = msgp.WrapError(err, "LastUpdate") 414 return 415 } 416 case "ra": 417 z.RetryAttempts, err = dc.ReadInt() 418 if err != nil { 419 err = msgp.WrapError(err, "RetryAttempts") 420 return 421 } 422 case "cmp": 423 z.Complete, err = dc.ReadBool() 424 if err != nil { 425 err = msgp.WrapError(err, "Complete") 426 return 427 } 428 case "fld": 429 z.Failed, err = dc.ReadBool() 430 if err != nil { 431 err = msgp.WrapError(err, "Failed") 432 return 433 } 434 case "lbkt": 435 z.Bucket, err = dc.ReadString() 436 if err != nil { 437 err = msgp.WrapError(err, "Bucket") 438 return 439 } 440 case "lobj": 441 z.Object, err = dc.ReadString() 442 if err != nil { 443 err = msgp.WrapError(err, "Object") 444 return 445 } 446 case "ob": 447 z.Objects, err = dc.ReadInt64() 448 if err != nil { 449 err = msgp.WrapError(err, "Objects") 450 return 451 } 452 case "dm": 453 z.DeleteMarkers, err = dc.ReadInt64() 454 if err != nil { 455 err = msgp.WrapError(err, "DeleteMarkers") 456 return 457 } 458 case "obf": 459 z.ObjectsFailed, err = dc.ReadInt64() 460 if err != nil { 461 err = msgp.WrapError(err, "ObjectsFailed") 462 return 463 } 464 case "dmf": 465 z.DeleteMarkersFailed, err = dc.ReadInt64() 466 if err != nil { 467 err = msgp.WrapError(err, "DeleteMarkersFailed") 468 return 469 } 470 case "bt": 471 z.BytesTransferred, err = dc.ReadInt64() 472 if err != nil { 473 err = msgp.WrapError(err, "BytesTransferred") 474 return 475 } 476 case "bf": 477 z.BytesFailed, err = dc.ReadInt64() 478 if err != nil { 479 err = msgp.WrapError(err, "BytesFailed") 480 return 481 } 482 default: 483 err = dc.Skip() 484 if err != nil { 485 err = msgp.WrapError(err) 486 return 487 } 488 } 489 } 490 return 491 } 492 493 // EncodeMsg implements msgp.Encodable 494 func (z *batchJobInfo) EncodeMsg(en *msgp.Writer) (err error) { 495 // map header, size 16 496 // write "v" 497 err = en.Append(0xde, 0x0, 0x10, 0xa1, 0x76) 498 if err != nil { 499 return 500 } 501 err = en.WriteInt(z.Version) 502 if err != nil { 503 err = msgp.WrapError(err, "Version") 504 return 505 } 506 // write "jid" 507 err = en.Append(0xa3, 0x6a, 0x69, 0x64) 508 if err != nil { 509 return 510 } 511 err = en.WriteString(z.JobID) 512 if err != nil { 513 err = msgp.WrapError(err, "JobID") 514 return 515 } 516 // write "jt" 517 err = en.Append(0xa2, 0x6a, 0x74) 518 if err != nil { 519 return 520 } 521 err = en.WriteString(z.JobType) 522 if err != nil { 523 err = msgp.WrapError(err, "JobType") 524 return 525 } 526 // write "st" 527 err = en.Append(0xa2, 0x73, 0x74) 528 if err != nil { 529 return 530 } 531 err = en.WriteTime(z.StartTime) 532 if err != nil { 533 err = msgp.WrapError(err, "StartTime") 534 return 535 } 536 // write "lu" 537 err = en.Append(0xa2, 0x6c, 0x75) 538 if err != nil { 539 return 540 } 541 err = en.WriteTime(z.LastUpdate) 542 if err != nil { 543 err = msgp.WrapError(err, "LastUpdate") 544 return 545 } 546 // write "ra" 547 err = en.Append(0xa2, 0x72, 0x61) 548 if err != nil { 549 return 550 } 551 err = en.WriteInt(z.RetryAttempts) 552 if err != nil { 553 err = msgp.WrapError(err, "RetryAttempts") 554 return 555 } 556 // write "cmp" 557 err = en.Append(0xa3, 0x63, 0x6d, 0x70) 558 if err != nil { 559 return 560 } 561 err = en.WriteBool(z.Complete) 562 if err != nil { 563 err = msgp.WrapError(err, "Complete") 564 return 565 } 566 // write "fld" 567 err = en.Append(0xa3, 0x66, 0x6c, 0x64) 568 if err != nil { 569 return 570 } 571 err = en.WriteBool(z.Failed) 572 if err != nil { 573 err = msgp.WrapError(err, "Failed") 574 return 575 } 576 // write "lbkt" 577 err = en.Append(0xa4, 0x6c, 0x62, 0x6b, 0x74) 578 if err != nil { 579 return 580 } 581 err = en.WriteString(z.Bucket) 582 if err != nil { 583 err = msgp.WrapError(err, "Bucket") 584 return 585 } 586 // write "lobj" 587 err = en.Append(0xa4, 0x6c, 0x6f, 0x62, 0x6a) 588 if err != nil { 589 return 590 } 591 err = en.WriteString(z.Object) 592 if err != nil { 593 err = msgp.WrapError(err, "Object") 594 return 595 } 596 // write "ob" 597 err = en.Append(0xa2, 0x6f, 0x62) 598 if err != nil { 599 return 600 } 601 err = en.WriteInt64(z.Objects) 602 if err != nil { 603 err = msgp.WrapError(err, "Objects") 604 return 605 } 606 // write "dm" 607 err = en.Append(0xa2, 0x64, 0x6d) 608 if err != nil { 609 return 610 } 611 err = en.WriteInt64(z.DeleteMarkers) 612 if err != nil { 613 err = msgp.WrapError(err, "DeleteMarkers") 614 return 615 } 616 // write "obf" 617 err = en.Append(0xa3, 0x6f, 0x62, 0x66) 618 if err != nil { 619 return 620 } 621 err = en.WriteInt64(z.ObjectsFailed) 622 if err != nil { 623 err = msgp.WrapError(err, "ObjectsFailed") 624 return 625 } 626 // write "dmf" 627 err = en.Append(0xa3, 0x64, 0x6d, 0x66) 628 if err != nil { 629 return 630 } 631 err = en.WriteInt64(z.DeleteMarkersFailed) 632 if err != nil { 633 err = msgp.WrapError(err, "DeleteMarkersFailed") 634 return 635 } 636 // write "bt" 637 err = en.Append(0xa2, 0x62, 0x74) 638 if err != nil { 639 return 640 } 641 err = en.WriteInt64(z.BytesTransferred) 642 if err != nil { 643 err = msgp.WrapError(err, "BytesTransferred") 644 return 645 } 646 // write "bf" 647 err = en.Append(0xa2, 0x62, 0x66) 648 if err != nil { 649 return 650 } 651 err = en.WriteInt64(z.BytesFailed) 652 if err != nil { 653 err = msgp.WrapError(err, "BytesFailed") 654 return 655 } 656 return 657 } 658 659 // MarshalMsg implements msgp.Marshaler 660 func (z *batchJobInfo) MarshalMsg(b []byte) (o []byte, err error) { 661 o = msgp.Require(b, z.Msgsize()) 662 // map header, size 16 663 // string "v" 664 o = append(o, 0xde, 0x0, 0x10, 0xa1, 0x76) 665 o = msgp.AppendInt(o, z.Version) 666 // string "jid" 667 o = append(o, 0xa3, 0x6a, 0x69, 0x64) 668 o = msgp.AppendString(o, z.JobID) 669 // string "jt" 670 o = append(o, 0xa2, 0x6a, 0x74) 671 o = msgp.AppendString(o, z.JobType) 672 // string "st" 673 o = append(o, 0xa2, 0x73, 0x74) 674 o = msgp.AppendTime(o, z.StartTime) 675 // string "lu" 676 o = append(o, 0xa2, 0x6c, 0x75) 677 o = msgp.AppendTime(o, z.LastUpdate) 678 // string "ra" 679 o = append(o, 0xa2, 0x72, 0x61) 680 o = msgp.AppendInt(o, z.RetryAttempts) 681 // string "cmp" 682 o = append(o, 0xa3, 0x63, 0x6d, 0x70) 683 o = msgp.AppendBool(o, z.Complete) 684 // string "fld" 685 o = append(o, 0xa3, 0x66, 0x6c, 0x64) 686 o = msgp.AppendBool(o, z.Failed) 687 // string "lbkt" 688 o = append(o, 0xa4, 0x6c, 0x62, 0x6b, 0x74) 689 o = msgp.AppendString(o, z.Bucket) 690 // string "lobj" 691 o = append(o, 0xa4, 0x6c, 0x6f, 0x62, 0x6a) 692 o = msgp.AppendString(o, z.Object) 693 // string "ob" 694 o = append(o, 0xa2, 0x6f, 0x62) 695 o = msgp.AppendInt64(o, z.Objects) 696 // string "dm" 697 o = append(o, 0xa2, 0x64, 0x6d) 698 o = msgp.AppendInt64(o, z.DeleteMarkers) 699 // string "obf" 700 o = append(o, 0xa3, 0x6f, 0x62, 0x66) 701 o = msgp.AppendInt64(o, z.ObjectsFailed) 702 // string "dmf" 703 o = append(o, 0xa3, 0x64, 0x6d, 0x66) 704 o = msgp.AppendInt64(o, z.DeleteMarkersFailed) 705 // string "bt" 706 o = append(o, 0xa2, 0x62, 0x74) 707 o = msgp.AppendInt64(o, z.BytesTransferred) 708 // string "bf" 709 o = append(o, 0xa2, 0x62, 0x66) 710 o = msgp.AppendInt64(o, z.BytesFailed) 711 return 712 } 713 714 // UnmarshalMsg implements msgp.Unmarshaler 715 func (z *batchJobInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 716 var field []byte 717 _ = field 718 var zb0001 uint32 719 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 720 if err != nil { 721 err = msgp.WrapError(err) 722 return 723 } 724 for zb0001 > 0 { 725 zb0001-- 726 field, bts, err = msgp.ReadMapKeyZC(bts) 727 if err != nil { 728 err = msgp.WrapError(err) 729 return 730 } 731 switch msgp.UnsafeString(field) { 732 case "v": 733 z.Version, bts, err = msgp.ReadIntBytes(bts) 734 if err != nil { 735 err = msgp.WrapError(err, "Version") 736 return 737 } 738 case "jid": 739 z.JobID, bts, err = msgp.ReadStringBytes(bts) 740 if err != nil { 741 err = msgp.WrapError(err, "JobID") 742 return 743 } 744 case "jt": 745 z.JobType, bts, err = msgp.ReadStringBytes(bts) 746 if err != nil { 747 err = msgp.WrapError(err, "JobType") 748 return 749 } 750 case "st": 751 z.StartTime, bts, err = msgp.ReadTimeBytes(bts) 752 if err != nil { 753 err = msgp.WrapError(err, "StartTime") 754 return 755 } 756 case "lu": 757 z.LastUpdate, bts, err = msgp.ReadTimeBytes(bts) 758 if err != nil { 759 err = msgp.WrapError(err, "LastUpdate") 760 return 761 } 762 case "ra": 763 z.RetryAttempts, bts, err = msgp.ReadIntBytes(bts) 764 if err != nil { 765 err = msgp.WrapError(err, "RetryAttempts") 766 return 767 } 768 case "cmp": 769 z.Complete, bts, err = msgp.ReadBoolBytes(bts) 770 if err != nil { 771 err = msgp.WrapError(err, "Complete") 772 return 773 } 774 case "fld": 775 z.Failed, bts, err = msgp.ReadBoolBytes(bts) 776 if err != nil { 777 err = msgp.WrapError(err, "Failed") 778 return 779 } 780 case "lbkt": 781 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 782 if err != nil { 783 err = msgp.WrapError(err, "Bucket") 784 return 785 } 786 case "lobj": 787 z.Object, bts, err = msgp.ReadStringBytes(bts) 788 if err != nil { 789 err = msgp.WrapError(err, "Object") 790 return 791 } 792 case "ob": 793 z.Objects, bts, err = msgp.ReadInt64Bytes(bts) 794 if err != nil { 795 err = msgp.WrapError(err, "Objects") 796 return 797 } 798 case "dm": 799 z.DeleteMarkers, bts, err = msgp.ReadInt64Bytes(bts) 800 if err != nil { 801 err = msgp.WrapError(err, "DeleteMarkers") 802 return 803 } 804 case "obf": 805 z.ObjectsFailed, bts, err = msgp.ReadInt64Bytes(bts) 806 if err != nil { 807 err = msgp.WrapError(err, "ObjectsFailed") 808 return 809 } 810 case "dmf": 811 z.DeleteMarkersFailed, bts, err = msgp.ReadInt64Bytes(bts) 812 if err != nil { 813 err = msgp.WrapError(err, "DeleteMarkersFailed") 814 return 815 } 816 case "bt": 817 z.BytesTransferred, bts, err = msgp.ReadInt64Bytes(bts) 818 if err != nil { 819 err = msgp.WrapError(err, "BytesTransferred") 820 return 821 } 822 case "bf": 823 z.BytesFailed, bts, err = msgp.ReadInt64Bytes(bts) 824 if err != nil { 825 err = msgp.WrapError(err, "BytesFailed") 826 return 827 } 828 default: 829 bts, err = msgp.Skip(bts) 830 if err != nil { 831 err = msgp.WrapError(err) 832 return 833 } 834 } 835 } 836 o = bts 837 return 838 } 839 840 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 841 func (z *batchJobInfo) Msgsize() (s int) { 842 s = 3 + 2 + msgp.IntSize + 4 + msgp.StringPrefixSize + len(z.JobID) + 3 + msgp.StringPrefixSize + len(z.JobType) + 3 + msgp.TimeSize + 3 + msgp.TimeSize + 3 + msgp.IntSize + 4 + msgp.BoolSize + 4 + msgp.BoolSize + 5 + msgp.StringPrefixSize + len(z.Bucket) + 5 + msgp.StringPrefixSize + len(z.Object) + 3 + msgp.Int64Size + 3 + msgp.Int64Size + 4 + msgp.Int64Size + 4 + msgp.Int64Size + 3 + msgp.Int64Size + 3 + msgp.Int64Size 843 return 844 }