github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/cmd/object-api-datatypes_gen.go (about) 1 package cmd 2 3 // Code generated by github.com/tinylib/msgp DO NOT EDIT. 4 5 import ( 6 "github.com/minio/minio/internal/bucket/replication" 7 "github.com/tinylib/msgp/msgp" 8 ) 9 10 // MarshalMsg implements msgp.Marshaler 11 func (z BackendType) MarshalMsg(b []byte) (o []byte, err error) { 12 o = msgp.Require(b, z.Msgsize()) 13 o = msgp.AppendInt(o, int(z)) 14 return 15 } 16 17 // UnmarshalMsg implements msgp.Unmarshaler 18 func (z *BackendType) UnmarshalMsg(bts []byte) (o []byte, err error) { 19 { 20 var zb0001 int 21 zb0001, bts, err = msgp.ReadIntBytes(bts) 22 if err != nil { 23 err = msgp.WrapError(err) 24 return 25 } 26 (*z) = BackendType(zb0001) 27 } 28 o = bts 29 return 30 } 31 32 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 33 func (z BackendType) Msgsize() (s int) { 34 s = msgp.IntSize 35 return 36 } 37 38 // MarshalMsg implements msgp.Marshaler 39 func (z *BucketInfo) MarshalMsg(b []byte) (o []byte, err error) { 40 o = msgp.Require(b, z.Msgsize()) 41 // map header, size 5 42 // string "Name" 43 o = append(o, 0x85, 0xa4, 0x4e, 0x61, 0x6d, 0x65) 44 o = msgp.AppendString(o, z.Name) 45 // string "Created" 46 o = append(o, 0xa7, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64) 47 o = msgp.AppendTime(o, z.Created) 48 // string "Deleted" 49 o = append(o, 0xa7, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64) 50 o = msgp.AppendTime(o, z.Deleted) 51 // string "Versioning" 52 o = append(o, 0xaa, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x67) 53 o = msgp.AppendBool(o, z.Versioning) 54 // string "ObjectLocking" 55 o = append(o, 0xad, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x63, 0x6b, 0x69, 0x6e, 0x67) 56 o = msgp.AppendBool(o, z.ObjectLocking) 57 return 58 } 59 60 // UnmarshalMsg implements msgp.Unmarshaler 61 func (z *BucketInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 62 var field []byte 63 _ = field 64 var zb0001 uint32 65 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 66 if err != nil { 67 err = msgp.WrapError(err) 68 return 69 } 70 for zb0001 > 0 { 71 zb0001-- 72 field, bts, err = msgp.ReadMapKeyZC(bts) 73 if err != nil { 74 err = msgp.WrapError(err) 75 return 76 } 77 switch msgp.UnsafeString(field) { 78 case "Name": 79 z.Name, bts, err = msgp.ReadStringBytes(bts) 80 if err != nil { 81 err = msgp.WrapError(err, "Name") 82 return 83 } 84 case "Created": 85 z.Created, bts, err = msgp.ReadTimeBytes(bts) 86 if err != nil { 87 err = msgp.WrapError(err, "Created") 88 return 89 } 90 case "Deleted": 91 z.Deleted, bts, err = msgp.ReadTimeBytes(bts) 92 if err != nil { 93 err = msgp.WrapError(err, "Deleted") 94 return 95 } 96 case "Versioning": 97 z.Versioning, bts, err = msgp.ReadBoolBytes(bts) 98 if err != nil { 99 err = msgp.WrapError(err, "Versioning") 100 return 101 } 102 case "ObjectLocking": 103 z.ObjectLocking, bts, err = msgp.ReadBoolBytes(bts) 104 if err != nil { 105 err = msgp.WrapError(err, "ObjectLocking") 106 return 107 } 108 default: 109 bts, err = msgp.Skip(bts) 110 if err != nil { 111 err = msgp.WrapError(err) 112 return 113 } 114 } 115 } 116 o = bts 117 return 118 } 119 120 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 121 func (z *BucketInfo) Msgsize() (s int) { 122 s = 1 + 5 + msgp.StringPrefixSize + len(z.Name) + 8 + msgp.TimeSize + 8 + msgp.TimeSize + 11 + msgp.BoolSize + 14 + msgp.BoolSize 123 return 124 } 125 126 // MarshalMsg implements msgp.Marshaler 127 func (z *CompleteMultipartUpload) MarshalMsg(b []byte) (o []byte, err error) { 128 o = msgp.Require(b, z.Msgsize()) 129 // map header, size 1 130 // string "Parts" 131 o = append(o, 0x81, 0xa5, 0x50, 0x61, 0x72, 0x74, 0x73) 132 o = msgp.AppendArrayHeader(o, uint32(len(z.Parts))) 133 for za0001 := range z.Parts { 134 o, err = z.Parts[za0001].MarshalMsg(o) 135 if err != nil { 136 err = msgp.WrapError(err, "Parts", za0001) 137 return 138 } 139 } 140 return 141 } 142 143 // UnmarshalMsg implements msgp.Unmarshaler 144 func (z *CompleteMultipartUpload) UnmarshalMsg(bts []byte) (o []byte, err error) { 145 var field []byte 146 _ = field 147 var zb0001 uint32 148 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 149 if err != nil { 150 err = msgp.WrapError(err) 151 return 152 } 153 for zb0001 > 0 { 154 zb0001-- 155 field, bts, err = msgp.ReadMapKeyZC(bts) 156 if err != nil { 157 err = msgp.WrapError(err) 158 return 159 } 160 switch msgp.UnsafeString(field) { 161 case "Parts": 162 var zb0002 uint32 163 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 164 if err != nil { 165 err = msgp.WrapError(err, "Parts") 166 return 167 } 168 if cap(z.Parts) >= int(zb0002) { 169 z.Parts = (z.Parts)[:zb0002] 170 } else { 171 z.Parts = make([]CompletePart, zb0002) 172 } 173 for za0001 := range z.Parts { 174 bts, err = z.Parts[za0001].UnmarshalMsg(bts) 175 if err != nil { 176 err = msgp.WrapError(err, "Parts", za0001) 177 return 178 } 179 } 180 default: 181 bts, err = msgp.Skip(bts) 182 if err != nil { 183 err = msgp.WrapError(err) 184 return 185 } 186 } 187 } 188 o = bts 189 return 190 } 191 192 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 193 func (z *CompleteMultipartUpload) Msgsize() (s int) { 194 s = 1 + 6 + msgp.ArrayHeaderSize 195 for za0001 := range z.Parts { 196 s += z.Parts[za0001].Msgsize() 197 } 198 return 199 } 200 201 // MarshalMsg implements msgp.Marshaler 202 func (z *CompletePart) MarshalMsg(b []byte) (o []byte, err error) { 203 o = msgp.Require(b, z.Msgsize()) 204 // map header, size 6 205 // string "PartNumber" 206 o = append(o, 0x86, 0xaa, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72) 207 o = msgp.AppendInt(o, z.PartNumber) 208 // string "ETag" 209 o = append(o, 0xa4, 0x45, 0x54, 0x61, 0x67) 210 o = msgp.AppendString(o, z.ETag) 211 // string "ChecksumCRC32" 212 o = append(o, 0xad, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x43, 0x52, 0x43, 0x33, 0x32) 213 o = msgp.AppendString(o, z.ChecksumCRC32) 214 // string "ChecksumCRC32C" 215 o = append(o, 0xae, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x43, 0x52, 0x43, 0x33, 0x32, 0x43) 216 o = msgp.AppendString(o, z.ChecksumCRC32C) 217 // string "ChecksumSHA1" 218 o = append(o, 0xac, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x53, 0x48, 0x41, 0x31) 219 o = msgp.AppendString(o, z.ChecksumSHA1) 220 // string "ChecksumSHA256" 221 o = append(o, 0xae, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36) 222 o = msgp.AppendString(o, z.ChecksumSHA256) 223 return 224 } 225 226 // UnmarshalMsg implements msgp.Unmarshaler 227 func (z *CompletePart) UnmarshalMsg(bts []byte) (o []byte, err error) { 228 var field []byte 229 _ = field 230 var zb0001 uint32 231 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 232 if err != nil { 233 err = msgp.WrapError(err) 234 return 235 } 236 for zb0001 > 0 { 237 zb0001-- 238 field, bts, err = msgp.ReadMapKeyZC(bts) 239 if err != nil { 240 err = msgp.WrapError(err) 241 return 242 } 243 switch msgp.UnsafeString(field) { 244 case "PartNumber": 245 z.PartNumber, bts, err = msgp.ReadIntBytes(bts) 246 if err != nil { 247 err = msgp.WrapError(err, "PartNumber") 248 return 249 } 250 case "ETag": 251 z.ETag, bts, err = msgp.ReadStringBytes(bts) 252 if err != nil { 253 err = msgp.WrapError(err, "ETag") 254 return 255 } 256 case "ChecksumCRC32": 257 z.ChecksumCRC32, bts, err = msgp.ReadStringBytes(bts) 258 if err != nil { 259 err = msgp.WrapError(err, "ChecksumCRC32") 260 return 261 } 262 case "ChecksumCRC32C": 263 z.ChecksumCRC32C, bts, err = msgp.ReadStringBytes(bts) 264 if err != nil { 265 err = msgp.WrapError(err, "ChecksumCRC32C") 266 return 267 } 268 case "ChecksumSHA1": 269 z.ChecksumSHA1, bts, err = msgp.ReadStringBytes(bts) 270 if err != nil { 271 err = msgp.WrapError(err, "ChecksumSHA1") 272 return 273 } 274 case "ChecksumSHA256": 275 z.ChecksumSHA256, bts, err = msgp.ReadStringBytes(bts) 276 if err != nil { 277 err = msgp.WrapError(err, "ChecksumSHA256") 278 return 279 } 280 default: 281 bts, err = msgp.Skip(bts) 282 if err != nil { 283 err = msgp.WrapError(err) 284 return 285 } 286 } 287 } 288 o = bts 289 return 290 } 291 292 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 293 func (z *CompletePart) Msgsize() (s int) { 294 s = 1 + 11 + msgp.IntSize + 5 + msgp.StringPrefixSize + len(z.ETag) + 14 + msgp.StringPrefixSize + len(z.ChecksumCRC32) + 15 + msgp.StringPrefixSize + len(z.ChecksumCRC32C) + 13 + msgp.StringPrefixSize + len(z.ChecksumSHA1) + 15 + msgp.StringPrefixSize + len(z.ChecksumSHA256) 295 return 296 } 297 298 // MarshalMsg implements msgp.Marshaler 299 func (z *DeletedObjectInfo) MarshalMsg(b []byte) (o []byte, err error) { 300 o = msgp.Require(b, z.Msgsize()) 301 // map header, size 5 302 // string "Bucket" 303 o = append(o, 0x85, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 304 o = msgp.AppendString(o, z.Bucket) 305 // string "Name" 306 o = append(o, 0xa4, 0x4e, 0x61, 0x6d, 0x65) 307 o = msgp.AppendString(o, z.Name) 308 // string "ModTime" 309 o = append(o, 0xa7, 0x4d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65) 310 o = msgp.AppendTime(o, z.ModTime) 311 // string "VersionID" 312 o = append(o, 0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44) 313 o = msgp.AppendString(o, z.VersionID) 314 // string "IsLatest" 315 o = append(o, 0xa8, 0x49, 0x73, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74) 316 o = msgp.AppendBool(o, z.IsLatest) 317 return 318 } 319 320 // UnmarshalMsg implements msgp.Unmarshaler 321 func (z *DeletedObjectInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 322 var field []byte 323 _ = field 324 var zb0001 uint32 325 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 326 if err != nil { 327 err = msgp.WrapError(err) 328 return 329 } 330 for zb0001 > 0 { 331 zb0001-- 332 field, bts, err = msgp.ReadMapKeyZC(bts) 333 if err != nil { 334 err = msgp.WrapError(err) 335 return 336 } 337 switch msgp.UnsafeString(field) { 338 case "Bucket": 339 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 340 if err != nil { 341 err = msgp.WrapError(err, "Bucket") 342 return 343 } 344 case "Name": 345 z.Name, bts, err = msgp.ReadStringBytes(bts) 346 if err != nil { 347 err = msgp.WrapError(err, "Name") 348 return 349 } 350 case "ModTime": 351 z.ModTime, bts, err = msgp.ReadTimeBytes(bts) 352 if err != nil { 353 err = msgp.WrapError(err, "ModTime") 354 return 355 } 356 case "VersionID": 357 z.VersionID, bts, err = msgp.ReadStringBytes(bts) 358 if err != nil { 359 err = msgp.WrapError(err, "VersionID") 360 return 361 } 362 case "IsLatest": 363 z.IsLatest, bts, err = msgp.ReadBoolBytes(bts) 364 if err != nil { 365 err = msgp.WrapError(err, "IsLatest") 366 return 367 } 368 default: 369 bts, err = msgp.Skip(bts) 370 if err != nil { 371 err = msgp.WrapError(err) 372 return 373 } 374 } 375 } 376 o = bts 377 return 378 } 379 380 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 381 func (z *DeletedObjectInfo) Msgsize() (s int) { 382 s = 1 + 7 + msgp.StringPrefixSize + len(z.Bucket) + 5 + msgp.StringPrefixSize + len(z.Name) + 8 + msgp.TimeSize + 10 + msgp.StringPrefixSize + len(z.VersionID) + 9 + msgp.BoolSize 383 return 384 } 385 386 // MarshalMsg implements msgp.Marshaler 387 func (z *ListMultipartsInfo) MarshalMsg(b []byte) (o []byte, err error) { 388 o = msgp.Require(b, z.Msgsize()) 389 // map header, size 11 390 // string "KeyMarker" 391 o = append(o, 0x8b, 0xa9, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 392 o = msgp.AppendString(o, z.KeyMarker) 393 // string "UploadIDMarker" 394 o = append(o, 0xae, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x44, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 395 o = msgp.AppendString(o, z.UploadIDMarker) 396 // string "NextKeyMarker" 397 o = append(o, 0xad, 0x4e, 0x65, 0x78, 0x74, 0x4b, 0x65, 0x79, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 398 o = msgp.AppendString(o, z.NextKeyMarker) 399 // string "NextUploadIDMarker" 400 o = append(o, 0xb2, 0x4e, 0x65, 0x78, 0x74, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x44, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 401 o = msgp.AppendString(o, z.NextUploadIDMarker) 402 // string "MaxUploads" 403 o = append(o, 0xaa, 0x4d, 0x61, 0x78, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73) 404 o = msgp.AppendInt(o, z.MaxUploads) 405 // string "IsTruncated" 406 o = append(o, 0xab, 0x49, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64) 407 o = msgp.AppendBool(o, z.IsTruncated) 408 // string "Uploads" 409 o = append(o, 0xa7, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x73) 410 o = msgp.AppendArrayHeader(o, uint32(len(z.Uploads))) 411 for za0001 := range z.Uploads { 412 o, err = z.Uploads[za0001].MarshalMsg(o) 413 if err != nil { 414 err = msgp.WrapError(err, "Uploads", za0001) 415 return 416 } 417 } 418 // string "Prefix" 419 o = append(o, 0xa6, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78) 420 o = msgp.AppendString(o, z.Prefix) 421 // string "Delimiter" 422 o = append(o, 0xa9, 0x44, 0x65, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x65, 0x72) 423 o = msgp.AppendString(o, z.Delimiter) 424 // string "CommonPrefixes" 425 o = append(o, 0xae, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73) 426 o = msgp.AppendArrayHeader(o, uint32(len(z.CommonPrefixes))) 427 for za0002 := range z.CommonPrefixes { 428 o = msgp.AppendString(o, z.CommonPrefixes[za0002]) 429 } 430 // string "EncodingType" 431 o = append(o, 0xac, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65) 432 o = msgp.AppendString(o, z.EncodingType) 433 return 434 } 435 436 // UnmarshalMsg implements msgp.Unmarshaler 437 func (z *ListMultipartsInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 438 var field []byte 439 _ = field 440 var zb0001 uint32 441 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 442 if err != nil { 443 err = msgp.WrapError(err) 444 return 445 } 446 for zb0001 > 0 { 447 zb0001-- 448 field, bts, err = msgp.ReadMapKeyZC(bts) 449 if err != nil { 450 err = msgp.WrapError(err) 451 return 452 } 453 switch msgp.UnsafeString(field) { 454 case "KeyMarker": 455 z.KeyMarker, bts, err = msgp.ReadStringBytes(bts) 456 if err != nil { 457 err = msgp.WrapError(err, "KeyMarker") 458 return 459 } 460 case "UploadIDMarker": 461 z.UploadIDMarker, bts, err = msgp.ReadStringBytes(bts) 462 if err != nil { 463 err = msgp.WrapError(err, "UploadIDMarker") 464 return 465 } 466 case "NextKeyMarker": 467 z.NextKeyMarker, bts, err = msgp.ReadStringBytes(bts) 468 if err != nil { 469 err = msgp.WrapError(err, "NextKeyMarker") 470 return 471 } 472 case "NextUploadIDMarker": 473 z.NextUploadIDMarker, bts, err = msgp.ReadStringBytes(bts) 474 if err != nil { 475 err = msgp.WrapError(err, "NextUploadIDMarker") 476 return 477 } 478 case "MaxUploads": 479 z.MaxUploads, bts, err = msgp.ReadIntBytes(bts) 480 if err != nil { 481 err = msgp.WrapError(err, "MaxUploads") 482 return 483 } 484 case "IsTruncated": 485 z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts) 486 if err != nil { 487 err = msgp.WrapError(err, "IsTruncated") 488 return 489 } 490 case "Uploads": 491 var zb0002 uint32 492 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 493 if err != nil { 494 err = msgp.WrapError(err, "Uploads") 495 return 496 } 497 if cap(z.Uploads) >= int(zb0002) { 498 z.Uploads = (z.Uploads)[:zb0002] 499 } else { 500 z.Uploads = make([]MultipartInfo, zb0002) 501 } 502 for za0001 := range z.Uploads { 503 bts, err = z.Uploads[za0001].UnmarshalMsg(bts) 504 if err != nil { 505 err = msgp.WrapError(err, "Uploads", za0001) 506 return 507 } 508 } 509 case "Prefix": 510 z.Prefix, bts, err = msgp.ReadStringBytes(bts) 511 if err != nil { 512 err = msgp.WrapError(err, "Prefix") 513 return 514 } 515 case "Delimiter": 516 z.Delimiter, bts, err = msgp.ReadStringBytes(bts) 517 if err != nil { 518 err = msgp.WrapError(err, "Delimiter") 519 return 520 } 521 case "CommonPrefixes": 522 var zb0003 uint32 523 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 524 if err != nil { 525 err = msgp.WrapError(err, "CommonPrefixes") 526 return 527 } 528 if cap(z.CommonPrefixes) >= int(zb0003) { 529 z.CommonPrefixes = (z.CommonPrefixes)[:zb0003] 530 } else { 531 z.CommonPrefixes = make([]string, zb0003) 532 } 533 for za0002 := range z.CommonPrefixes { 534 z.CommonPrefixes[za0002], bts, err = msgp.ReadStringBytes(bts) 535 if err != nil { 536 err = msgp.WrapError(err, "CommonPrefixes", za0002) 537 return 538 } 539 } 540 case "EncodingType": 541 z.EncodingType, bts, err = msgp.ReadStringBytes(bts) 542 if err != nil { 543 err = msgp.WrapError(err, "EncodingType") 544 return 545 } 546 default: 547 bts, err = msgp.Skip(bts) 548 if err != nil { 549 err = msgp.WrapError(err) 550 return 551 } 552 } 553 } 554 o = bts 555 return 556 } 557 558 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 559 func (z *ListMultipartsInfo) Msgsize() (s int) { 560 s = 1 + 10 + msgp.StringPrefixSize + len(z.KeyMarker) + 15 + msgp.StringPrefixSize + len(z.UploadIDMarker) + 14 + msgp.StringPrefixSize + len(z.NextKeyMarker) + 19 + msgp.StringPrefixSize + len(z.NextUploadIDMarker) + 11 + msgp.IntSize + 12 + msgp.BoolSize + 8 + msgp.ArrayHeaderSize 561 for za0001 := range z.Uploads { 562 s += z.Uploads[za0001].Msgsize() 563 } 564 s += 7 + msgp.StringPrefixSize + len(z.Prefix) + 10 + msgp.StringPrefixSize + len(z.Delimiter) + 15 + msgp.ArrayHeaderSize 565 for za0002 := range z.CommonPrefixes { 566 s += msgp.StringPrefixSize + len(z.CommonPrefixes[za0002]) 567 } 568 s += 13 + msgp.StringPrefixSize + len(z.EncodingType) 569 return 570 } 571 572 // MarshalMsg implements msgp.Marshaler 573 func (z *ListObjectVersionsInfo) MarshalMsg(b []byte) (o []byte, err error) { 574 o = msgp.Require(b, z.Msgsize()) 575 // map header, size 5 576 // string "IsTruncated" 577 o = append(o, 0x85, 0xab, 0x49, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64) 578 o = msgp.AppendBool(o, z.IsTruncated) 579 // string "NextMarker" 580 o = append(o, 0xaa, 0x4e, 0x65, 0x78, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 581 o = msgp.AppendString(o, z.NextMarker) 582 // string "NextVersionIDMarker" 583 o = append(o, 0xb3, 0x4e, 0x65, 0x78, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 584 o = msgp.AppendString(o, z.NextVersionIDMarker) 585 // string "Objects" 586 o = append(o, 0xa7, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73) 587 o = msgp.AppendArrayHeader(o, uint32(len(z.Objects))) 588 for za0001 := range z.Objects { 589 o, err = z.Objects[za0001].MarshalMsg(o) 590 if err != nil { 591 err = msgp.WrapError(err, "Objects", za0001) 592 return 593 } 594 } 595 // string "Prefixes" 596 o = append(o, 0xa8, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73) 597 o = msgp.AppendArrayHeader(o, uint32(len(z.Prefixes))) 598 for za0002 := range z.Prefixes { 599 o = msgp.AppendString(o, z.Prefixes[za0002]) 600 } 601 return 602 } 603 604 // UnmarshalMsg implements msgp.Unmarshaler 605 func (z *ListObjectVersionsInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 606 var field []byte 607 _ = field 608 var zb0001 uint32 609 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 610 if err != nil { 611 err = msgp.WrapError(err) 612 return 613 } 614 for zb0001 > 0 { 615 zb0001-- 616 field, bts, err = msgp.ReadMapKeyZC(bts) 617 if err != nil { 618 err = msgp.WrapError(err) 619 return 620 } 621 switch msgp.UnsafeString(field) { 622 case "IsTruncated": 623 z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts) 624 if err != nil { 625 err = msgp.WrapError(err, "IsTruncated") 626 return 627 } 628 case "NextMarker": 629 z.NextMarker, bts, err = msgp.ReadStringBytes(bts) 630 if err != nil { 631 err = msgp.WrapError(err, "NextMarker") 632 return 633 } 634 case "NextVersionIDMarker": 635 z.NextVersionIDMarker, bts, err = msgp.ReadStringBytes(bts) 636 if err != nil { 637 err = msgp.WrapError(err, "NextVersionIDMarker") 638 return 639 } 640 case "Objects": 641 var zb0002 uint32 642 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 643 if err != nil { 644 err = msgp.WrapError(err, "Objects") 645 return 646 } 647 if cap(z.Objects) >= int(zb0002) { 648 z.Objects = (z.Objects)[:zb0002] 649 } else { 650 z.Objects = make([]ObjectInfo, zb0002) 651 } 652 for za0001 := range z.Objects { 653 bts, err = z.Objects[za0001].UnmarshalMsg(bts) 654 if err != nil { 655 err = msgp.WrapError(err, "Objects", za0001) 656 return 657 } 658 } 659 case "Prefixes": 660 var zb0003 uint32 661 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 662 if err != nil { 663 err = msgp.WrapError(err, "Prefixes") 664 return 665 } 666 if cap(z.Prefixes) >= int(zb0003) { 667 z.Prefixes = (z.Prefixes)[:zb0003] 668 } else { 669 z.Prefixes = make([]string, zb0003) 670 } 671 for za0002 := range z.Prefixes { 672 z.Prefixes[za0002], bts, err = msgp.ReadStringBytes(bts) 673 if err != nil { 674 err = msgp.WrapError(err, "Prefixes", za0002) 675 return 676 } 677 } 678 default: 679 bts, err = msgp.Skip(bts) 680 if err != nil { 681 err = msgp.WrapError(err) 682 return 683 } 684 } 685 } 686 o = bts 687 return 688 } 689 690 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 691 func (z *ListObjectVersionsInfo) Msgsize() (s int) { 692 s = 1 + 12 + msgp.BoolSize + 11 + msgp.StringPrefixSize + len(z.NextMarker) + 20 + msgp.StringPrefixSize + len(z.NextVersionIDMarker) + 8 + msgp.ArrayHeaderSize 693 for za0001 := range z.Objects { 694 s += z.Objects[za0001].Msgsize() 695 } 696 s += 9 + msgp.ArrayHeaderSize 697 for za0002 := range z.Prefixes { 698 s += msgp.StringPrefixSize + len(z.Prefixes[za0002]) 699 } 700 return 701 } 702 703 // MarshalMsg implements msgp.Marshaler 704 func (z *ListObjectsInfo) MarshalMsg(b []byte) (o []byte, err error) { 705 o = msgp.Require(b, z.Msgsize()) 706 // map header, size 4 707 // string "IsTruncated" 708 o = append(o, 0x84, 0xab, 0x49, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64) 709 o = msgp.AppendBool(o, z.IsTruncated) 710 // string "NextMarker" 711 o = append(o, 0xaa, 0x4e, 0x65, 0x78, 0x74, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 712 o = msgp.AppendString(o, z.NextMarker) 713 // string "Objects" 714 o = append(o, 0xa7, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73) 715 o = msgp.AppendArrayHeader(o, uint32(len(z.Objects))) 716 for za0001 := range z.Objects { 717 o, err = z.Objects[za0001].MarshalMsg(o) 718 if err != nil { 719 err = msgp.WrapError(err, "Objects", za0001) 720 return 721 } 722 } 723 // string "Prefixes" 724 o = append(o, 0xa8, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73) 725 o = msgp.AppendArrayHeader(o, uint32(len(z.Prefixes))) 726 for za0002 := range z.Prefixes { 727 o = msgp.AppendString(o, z.Prefixes[za0002]) 728 } 729 return 730 } 731 732 // UnmarshalMsg implements msgp.Unmarshaler 733 func (z *ListObjectsInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 734 var field []byte 735 _ = field 736 var zb0001 uint32 737 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 738 if err != nil { 739 err = msgp.WrapError(err) 740 return 741 } 742 for zb0001 > 0 { 743 zb0001-- 744 field, bts, err = msgp.ReadMapKeyZC(bts) 745 if err != nil { 746 err = msgp.WrapError(err) 747 return 748 } 749 switch msgp.UnsafeString(field) { 750 case "IsTruncated": 751 z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts) 752 if err != nil { 753 err = msgp.WrapError(err, "IsTruncated") 754 return 755 } 756 case "NextMarker": 757 z.NextMarker, bts, err = msgp.ReadStringBytes(bts) 758 if err != nil { 759 err = msgp.WrapError(err, "NextMarker") 760 return 761 } 762 case "Objects": 763 var zb0002 uint32 764 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 765 if err != nil { 766 err = msgp.WrapError(err, "Objects") 767 return 768 } 769 if cap(z.Objects) >= int(zb0002) { 770 z.Objects = (z.Objects)[:zb0002] 771 } else { 772 z.Objects = make([]ObjectInfo, zb0002) 773 } 774 for za0001 := range z.Objects { 775 bts, err = z.Objects[za0001].UnmarshalMsg(bts) 776 if err != nil { 777 err = msgp.WrapError(err, "Objects", za0001) 778 return 779 } 780 } 781 case "Prefixes": 782 var zb0003 uint32 783 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 784 if err != nil { 785 err = msgp.WrapError(err, "Prefixes") 786 return 787 } 788 if cap(z.Prefixes) >= int(zb0003) { 789 z.Prefixes = (z.Prefixes)[:zb0003] 790 } else { 791 z.Prefixes = make([]string, zb0003) 792 } 793 for za0002 := range z.Prefixes { 794 z.Prefixes[za0002], bts, err = msgp.ReadStringBytes(bts) 795 if err != nil { 796 err = msgp.WrapError(err, "Prefixes", za0002) 797 return 798 } 799 } 800 default: 801 bts, err = msgp.Skip(bts) 802 if err != nil { 803 err = msgp.WrapError(err) 804 return 805 } 806 } 807 } 808 o = bts 809 return 810 } 811 812 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 813 func (z *ListObjectsInfo) Msgsize() (s int) { 814 s = 1 + 12 + msgp.BoolSize + 11 + msgp.StringPrefixSize + len(z.NextMarker) + 8 + msgp.ArrayHeaderSize 815 for za0001 := range z.Objects { 816 s += z.Objects[za0001].Msgsize() 817 } 818 s += 9 + msgp.ArrayHeaderSize 819 for za0002 := range z.Prefixes { 820 s += msgp.StringPrefixSize + len(z.Prefixes[za0002]) 821 } 822 return 823 } 824 825 // MarshalMsg implements msgp.Marshaler 826 func (z *ListObjectsV2Info) MarshalMsg(b []byte) (o []byte, err error) { 827 o = msgp.Require(b, z.Msgsize()) 828 // map header, size 5 829 // string "IsTruncated" 830 o = append(o, 0x85, 0xab, 0x49, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64) 831 o = msgp.AppendBool(o, z.IsTruncated) 832 // string "ContinuationToken" 833 o = append(o, 0xb1, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e) 834 o = msgp.AppendString(o, z.ContinuationToken) 835 // string "NextContinuationToken" 836 o = append(o, 0xb5, 0x4e, 0x65, 0x78, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x69, 0x6e, 0x75, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x6b, 0x65, 0x6e) 837 o = msgp.AppendString(o, z.NextContinuationToken) 838 // string "Objects" 839 o = append(o, 0xa7, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73) 840 o = msgp.AppendArrayHeader(o, uint32(len(z.Objects))) 841 for za0001 := range z.Objects { 842 o, err = z.Objects[za0001].MarshalMsg(o) 843 if err != nil { 844 err = msgp.WrapError(err, "Objects", za0001) 845 return 846 } 847 } 848 // string "Prefixes" 849 o = append(o, 0xa8, 0x50, 0x72, 0x65, 0x66, 0x69, 0x78, 0x65, 0x73) 850 o = msgp.AppendArrayHeader(o, uint32(len(z.Prefixes))) 851 for za0002 := range z.Prefixes { 852 o = msgp.AppendString(o, z.Prefixes[za0002]) 853 } 854 return 855 } 856 857 // UnmarshalMsg implements msgp.Unmarshaler 858 func (z *ListObjectsV2Info) UnmarshalMsg(bts []byte) (o []byte, err error) { 859 var field []byte 860 _ = field 861 var zb0001 uint32 862 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 863 if err != nil { 864 err = msgp.WrapError(err) 865 return 866 } 867 for zb0001 > 0 { 868 zb0001-- 869 field, bts, err = msgp.ReadMapKeyZC(bts) 870 if err != nil { 871 err = msgp.WrapError(err) 872 return 873 } 874 switch msgp.UnsafeString(field) { 875 case "IsTruncated": 876 z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts) 877 if err != nil { 878 err = msgp.WrapError(err, "IsTruncated") 879 return 880 } 881 case "ContinuationToken": 882 z.ContinuationToken, bts, err = msgp.ReadStringBytes(bts) 883 if err != nil { 884 err = msgp.WrapError(err, "ContinuationToken") 885 return 886 } 887 case "NextContinuationToken": 888 z.NextContinuationToken, bts, err = msgp.ReadStringBytes(bts) 889 if err != nil { 890 err = msgp.WrapError(err, "NextContinuationToken") 891 return 892 } 893 case "Objects": 894 var zb0002 uint32 895 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 896 if err != nil { 897 err = msgp.WrapError(err, "Objects") 898 return 899 } 900 if cap(z.Objects) >= int(zb0002) { 901 z.Objects = (z.Objects)[:zb0002] 902 } else { 903 z.Objects = make([]ObjectInfo, zb0002) 904 } 905 for za0001 := range z.Objects { 906 bts, err = z.Objects[za0001].UnmarshalMsg(bts) 907 if err != nil { 908 err = msgp.WrapError(err, "Objects", za0001) 909 return 910 } 911 } 912 case "Prefixes": 913 var zb0003 uint32 914 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 915 if err != nil { 916 err = msgp.WrapError(err, "Prefixes") 917 return 918 } 919 if cap(z.Prefixes) >= int(zb0003) { 920 z.Prefixes = (z.Prefixes)[:zb0003] 921 } else { 922 z.Prefixes = make([]string, zb0003) 923 } 924 for za0002 := range z.Prefixes { 925 z.Prefixes[za0002], bts, err = msgp.ReadStringBytes(bts) 926 if err != nil { 927 err = msgp.WrapError(err, "Prefixes", za0002) 928 return 929 } 930 } 931 default: 932 bts, err = msgp.Skip(bts) 933 if err != nil { 934 err = msgp.WrapError(err) 935 return 936 } 937 } 938 } 939 o = bts 940 return 941 } 942 943 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 944 func (z *ListObjectsV2Info) Msgsize() (s int) { 945 s = 1 + 12 + msgp.BoolSize + 18 + msgp.StringPrefixSize + len(z.ContinuationToken) + 22 + msgp.StringPrefixSize + len(z.NextContinuationToken) + 8 + msgp.ArrayHeaderSize 946 for za0001 := range z.Objects { 947 s += z.Objects[za0001].Msgsize() 948 } 949 s += 9 + msgp.ArrayHeaderSize 950 for za0002 := range z.Prefixes { 951 s += msgp.StringPrefixSize + len(z.Prefixes[za0002]) 952 } 953 return 954 } 955 956 // MarshalMsg implements msgp.Marshaler 957 func (z *ListPartsInfo) MarshalMsg(b []byte) (o []byte, err error) { 958 o = msgp.Require(b, z.Msgsize()) 959 // map header, size 11 960 // string "Bucket" 961 o = append(o, 0x8b, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 962 o = msgp.AppendString(o, z.Bucket) 963 // string "Object" 964 o = append(o, 0xa6, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74) 965 o = msgp.AppendString(o, z.Object) 966 // string "UploadID" 967 o = append(o, 0xa8, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x44) 968 o = msgp.AppendString(o, z.UploadID) 969 // string "StorageClass" 970 o = append(o, 0xac, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73) 971 o = msgp.AppendString(o, z.StorageClass) 972 // string "PartNumberMarker" 973 o = append(o, 0xb0, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 974 o = msgp.AppendInt(o, z.PartNumberMarker) 975 // string "NextPartNumberMarker" 976 o = append(o, 0xb4, 0x4e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 977 o = msgp.AppendInt(o, z.NextPartNumberMarker) 978 // string "MaxParts" 979 o = append(o, 0xa8, 0x4d, 0x61, 0x78, 0x50, 0x61, 0x72, 0x74, 0x73) 980 o = msgp.AppendInt(o, z.MaxParts) 981 // string "IsTruncated" 982 o = append(o, 0xab, 0x49, 0x73, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x64) 983 o = msgp.AppendBool(o, z.IsTruncated) 984 // string "Parts" 985 o = append(o, 0xa5, 0x50, 0x61, 0x72, 0x74, 0x73) 986 o = msgp.AppendArrayHeader(o, uint32(len(z.Parts))) 987 for za0001 := range z.Parts { 988 o, err = z.Parts[za0001].MarshalMsg(o) 989 if err != nil { 990 err = msgp.WrapError(err, "Parts", za0001) 991 return 992 } 993 } 994 // string "UserDefined" 995 o = append(o, 0xab, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64) 996 o = msgp.AppendMapHeader(o, uint32(len(z.UserDefined))) 997 for za0002, za0003 := range z.UserDefined { 998 o = msgp.AppendString(o, za0002) 999 o = msgp.AppendString(o, za0003) 1000 } 1001 // string "ChecksumAlgorithm" 1002 o = append(o, 0xb1, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x41, 0x6c, 0x67, 0x6f, 0x72, 0x69, 0x74, 0x68, 0x6d) 1003 o = msgp.AppendString(o, z.ChecksumAlgorithm) 1004 return 1005 } 1006 1007 // UnmarshalMsg implements msgp.Unmarshaler 1008 func (z *ListPartsInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 1009 var field []byte 1010 _ = field 1011 var zb0001 uint32 1012 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 1013 if err != nil { 1014 err = msgp.WrapError(err) 1015 return 1016 } 1017 for zb0001 > 0 { 1018 zb0001-- 1019 field, bts, err = msgp.ReadMapKeyZC(bts) 1020 if err != nil { 1021 err = msgp.WrapError(err) 1022 return 1023 } 1024 switch msgp.UnsafeString(field) { 1025 case "Bucket": 1026 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 1027 if err != nil { 1028 err = msgp.WrapError(err, "Bucket") 1029 return 1030 } 1031 case "Object": 1032 z.Object, bts, err = msgp.ReadStringBytes(bts) 1033 if err != nil { 1034 err = msgp.WrapError(err, "Object") 1035 return 1036 } 1037 case "UploadID": 1038 z.UploadID, bts, err = msgp.ReadStringBytes(bts) 1039 if err != nil { 1040 err = msgp.WrapError(err, "UploadID") 1041 return 1042 } 1043 case "StorageClass": 1044 z.StorageClass, bts, err = msgp.ReadStringBytes(bts) 1045 if err != nil { 1046 err = msgp.WrapError(err, "StorageClass") 1047 return 1048 } 1049 case "PartNumberMarker": 1050 z.PartNumberMarker, bts, err = msgp.ReadIntBytes(bts) 1051 if err != nil { 1052 err = msgp.WrapError(err, "PartNumberMarker") 1053 return 1054 } 1055 case "NextPartNumberMarker": 1056 z.NextPartNumberMarker, bts, err = msgp.ReadIntBytes(bts) 1057 if err != nil { 1058 err = msgp.WrapError(err, "NextPartNumberMarker") 1059 return 1060 } 1061 case "MaxParts": 1062 z.MaxParts, bts, err = msgp.ReadIntBytes(bts) 1063 if err != nil { 1064 err = msgp.WrapError(err, "MaxParts") 1065 return 1066 } 1067 case "IsTruncated": 1068 z.IsTruncated, bts, err = msgp.ReadBoolBytes(bts) 1069 if err != nil { 1070 err = msgp.WrapError(err, "IsTruncated") 1071 return 1072 } 1073 case "Parts": 1074 var zb0002 uint32 1075 zb0002, bts, err = msgp.ReadArrayHeaderBytes(bts) 1076 if err != nil { 1077 err = msgp.WrapError(err, "Parts") 1078 return 1079 } 1080 if cap(z.Parts) >= int(zb0002) { 1081 z.Parts = (z.Parts)[:zb0002] 1082 } else { 1083 z.Parts = make([]PartInfo, zb0002) 1084 } 1085 for za0001 := range z.Parts { 1086 bts, err = z.Parts[za0001].UnmarshalMsg(bts) 1087 if err != nil { 1088 err = msgp.WrapError(err, "Parts", za0001) 1089 return 1090 } 1091 } 1092 case "UserDefined": 1093 var zb0003 uint32 1094 zb0003, bts, err = msgp.ReadMapHeaderBytes(bts) 1095 if err != nil { 1096 err = msgp.WrapError(err, "UserDefined") 1097 return 1098 } 1099 if z.UserDefined == nil { 1100 z.UserDefined = make(map[string]string, zb0003) 1101 } else if len(z.UserDefined) > 0 { 1102 for key := range z.UserDefined { 1103 delete(z.UserDefined, key) 1104 } 1105 } 1106 for zb0003 > 0 { 1107 var za0002 string 1108 var za0003 string 1109 zb0003-- 1110 za0002, bts, err = msgp.ReadStringBytes(bts) 1111 if err != nil { 1112 err = msgp.WrapError(err, "UserDefined") 1113 return 1114 } 1115 za0003, bts, err = msgp.ReadStringBytes(bts) 1116 if err != nil { 1117 err = msgp.WrapError(err, "UserDefined", za0002) 1118 return 1119 } 1120 z.UserDefined[za0002] = za0003 1121 } 1122 case "ChecksumAlgorithm": 1123 z.ChecksumAlgorithm, bts, err = msgp.ReadStringBytes(bts) 1124 if err != nil { 1125 err = msgp.WrapError(err, "ChecksumAlgorithm") 1126 return 1127 } 1128 default: 1129 bts, err = msgp.Skip(bts) 1130 if err != nil { 1131 err = msgp.WrapError(err) 1132 return 1133 } 1134 } 1135 } 1136 o = bts 1137 return 1138 } 1139 1140 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 1141 func (z *ListPartsInfo) Msgsize() (s int) { 1142 s = 1 + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Object) + 9 + msgp.StringPrefixSize + len(z.UploadID) + 13 + msgp.StringPrefixSize + len(z.StorageClass) + 17 + msgp.IntSize + 21 + msgp.IntSize + 9 + msgp.IntSize + 12 + msgp.BoolSize + 6 + msgp.ArrayHeaderSize 1143 for za0001 := range z.Parts { 1144 s += z.Parts[za0001].Msgsize() 1145 } 1146 s += 12 + msgp.MapHeaderSize 1147 if z.UserDefined != nil { 1148 for za0002, za0003 := range z.UserDefined { 1149 _ = za0003 1150 s += msgp.StringPrefixSize + len(za0002) + msgp.StringPrefixSize + len(za0003) 1151 } 1152 } 1153 s += 18 + msgp.StringPrefixSize + len(z.ChecksumAlgorithm) 1154 return 1155 } 1156 1157 // MarshalMsg implements msgp.Marshaler 1158 func (z *MultipartInfo) MarshalMsg(b []byte) (o []byte, err error) { 1159 o = msgp.Require(b, z.Msgsize()) 1160 // map header, size 5 1161 // string "Bucket" 1162 o = append(o, 0x85, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 1163 o = msgp.AppendString(o, z.Bucket) 1164 // string "Object" 1165 o = append(o, 0xa6, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74) 1166 o = msgp.AppendString(o, z.Object) 1167 // string "UploadID" 1168 o = append(o, 0xa8, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x44) 1169 o = msgp.AppendString(o, z.UploadID) 1170 // string "Initiated" 1171 o = append(o, 0xa9, 0x49, 0x6e, 0x69, 0x74, 0x69, 0x61, 0x74, 0x65, 0x64) 1172 o = msgp.AppendTime(o, z.Initiated) 1173 // string "UserDefined" 1174 o = append(o, 0xab, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64) 1175 o = msgp.AppendMapHeader(o, uint32(len(z.UserDefined))) 1176 for za0001, za0002 := range z.UserDefined { 1177 o = msgp.AppendString(o, za0001) 1178 o = msgp.AppendString(o, za0002) 1179 } 1180 return 1181 } 1182 1183 // UnmarshalMsg implements msgp.Unmarshaler 1184 func (z *MultipartInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 1185 var field []byte 1186 _ = field 1187 var zb0001 uint32 1188 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 1189 if err != nil { 1190 err = msgp.WrapError(err) 1191 return 1192 } 1193 for zb0001 > 0 { 1194 zb0001-- 1195 field, bts, err = msgp.ReadMapKeyZC(bts) 1196 if err != nil { 1197 err = msgp.WrapError(err) 1198 return 1199 } 1200 switch msgp.UnsafeString(field) { 1201 case "Bucket": 1202 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 1203 if err != nil { 1204 err = msgp.WrapError(err, "Bucket") 1205 return 1206 } 1207 case "Object": 1208 z.Object, bts, err = msgp.ReadStringBytes(bts) 1209 if err != nil { 1210 err = msgp.WrapError(err, "Object") 1211 return 1212 } 1213 case "UploadID": 1214 z.UploadID, bts, err = msgp.ReadStringBytes(bts) 1215 if err != nil { 1216 err = msgp.WrapError(err, "UploadID") 1217 return 1218 } 1219 case "Initiated": 1220 z.Initiated, bts, err = msgp.ReadTimeBytes(bts) 1221 if err != nil { 1222 err = msgp.WrapError(err, "Initiated") 1223 return 1224 } 1225 case "UserDefined": 1226 var zb0002 uint32 1227 zb0002, bts, err = msgp.ReadMapHeaderBytes(bts) 1228 if err != nil { 1229 err = msgp.WrapError(err, "UserDefined") 1230 return 1231 } 1232 if z.UserDefined == nil { 1233 z.UserDefined = make(map[string]string, zb0002) 1234 } else if len(z.UserDefined) > 0 { 1235 for key := range z.UserDefined { 1236 delete(z.UserDefined, key) 1237 } 1238 } 1239 for zb0002 > 0 { 1240 var za0001 string 1241 var za0002 string 1242 zb0002-- 1243 za0001, bts, err = msgp.ReadStringBytes(bts) 1244 if err != nil { 1245 err = msgp.WrapError(err, "UserDefined") 1246 return 1247 } 1248 za0002, bts, err = msgp.ReadStringBytes(bts) 1249 if err != nil { 1250 err = msgp.WrapError(err, "UserDefined", za0001) 1251 return 1252 } 1253 z.UserDefined[za0001] = za0002 1254 } 1255 default: 1256 bts, err = msgp.Skip(bts) 1257 if err != nil { 1258 err = msgp.WrapError(err) 1259 return 1260 } 1261 } 1262 } 1263 o = bts 1264 return 1265 } 1266 1267 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 1268 func (z *MultipartInfo) Msgsize() (s int) { 1269 s = 1 + 7 + msgp.StringPrefixSize + len(z.Bucket) + 7 + msgp.StringPrefixSize + len(z.Object) + 9 + msgp.StringPrefixSize + len(z.UploadID) + 10 + msgp.TimeSize + 12 + msgp.MapHeaderSize 1270 if z.UserDefined != nil { 1271 for za0001, za0002 := range z.UserDefined { 1272 _ = za0002 1273 s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002) 1274 } 1275 } 1276 return 1277 } 1278 1279 // MarshalMsg implements msgp.Marshaler 1280 func (z NewMultipartUploadResult) MarshalMsg(b []byte) (o []byte, err error) { 1281 o = msgp.Require(b, z.Msgsize()) 1282 // map header, size 2 1283 // string "UploadID" 1284 o = append(o, 0x82, 0xa8, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x44) 1285 o = msgp.AppendString(o, z.UploadID) 1286 // string "ChecksumAlgo" 1287 o = append(o, 0xac, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x41, 0x6c, 0x67, 0x6f) 1288 o = msgp.AppendString(o, z.ChecksumAlgo) 1289 return 1290 } 1291 1292 // UnmarshalMsg implements msgp.Unmarshaler 1293 func (z *NewMultipartUploadResult) UnmarshalMsg(bts []byte) (o []byte, err error) { 1294 var field []byte 1295 _ = field 1296 var zb0001 uint32 1297 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 1298 if err != nil { 1299 err = msgp.WrapError(err) 1300 return 1301 } 1302 for zb0001 > 0 { 1303 zb0001-- 1304 field, bts, err = msgp.ReadMapKeyZC(bts) 1305 if err != nil { 1306 err = msgp.WrapError(err) 1307 return 1308 } 1309 switch msgp.UnsafeString(field) { 1310 case "UploadID": 1311 z.UploadID, bts, err = msgp.ReadStringBytes(bts) 1312 if err != nil { 1313 err = msgp.WrapError(err, "UploadID") 1314 return 1315 } 1316 case "ChecksumAlgo": 1317 z.ChecksumAlgo, bts, err = msgp.ReadStringBytes(bts) 1318 if err != nil { 1319 err = msgp.WrapError(err, "ChecksumAlgo") 1320 return 1321 } 1322 default: 1323 bts, err = msgp.Skip(bts) 1324 if err != nil { 1325 err = msgp.WrapError(err) 1326 return 1327 } 1328 } 1329 } 1330 o = bts 1331 return 1332 } 1333 1334 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 1335 func (z NewMultipartUploadResult) Msgsize() (s int) { 1336 s = 1 + 9 + msgp.StringPrefixSize + len(z.UploadID) + 13 + msgp.StringPrefixSize + len(z.ChecksumAlgo) 1337 return 1338 } 1339 1340 // MarshalMsg implements msgp.Marshaler 1341 func (z *ObjectInfo) MarshalMsg(b []byte) (o []byte, err error) { 1342 o = msgp.Require(b, z.Msgsize()) 1343 // map header, size 33 1344 // string "Bucket" 1345 o = append(o, 0xde, 0x0, 0x21, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 1346 o = msgp.AppendString(o, z.Bucket) 1347 // string "Name" 1348 o = append(o, 0xa4, 0x4e, 0x61, 0x6d, 0x65) 1349 o = msgp.AppendString(o, z.Name) 1350 // string "ModTime" 1351 o = append(o, 0xa7, 0x4d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65) 1352 o = msgp.AppendTime(o, z.ModTime) 1353 // string "Size" 1354 o = append(o, 0xa4, 0x53, 0x69, 0x7a, 0x65) 1355 o = msgp.AppendInt64(o, z.Size) 1356 // string "ActualSize" 1357 o = append(o, 0xaa, 0x41, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65) 1358 if z.ActualSize == nil { 1359 o = msgp.AppendNil(o) 1360 } else { 1361 o = msgp.AppendInt64(o, *z.ActualSize) 1362 } 1363 // string "IsDir" 1364 o = append(o, 0xa5, 0x49, 0x73, 0x44, 0x69, 0x72) 1365 o = msgp.AppendBool(o, z.IsDir) 1366 // string "ETag" 1367 o = append(o, 0xa4, 0x45, 0x54, 0x61, 0x67) 1368 o = msgp.AppendString(o, z.ETag) 1369 // string "VersionID" 1370 o = append(o, 0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44) 1371 o = msgp.AppendString(o, z.VersionID) 1372 // string "IsLatest" 1373 o = append(o, 0xa8, 0x49, 0x73, 0x4c, 0x61, 0x74, 0x65, 0x73, 0x74) 1374 o = msgp.AppendBool(o, z.IsLatest) 1375 // string "DeleteMarker" 1376 o = append(o, 0xac, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 1377 o = msgp.AppendBool(o, z.DeleteMarker) 1378 // string "TransitionedObject" 1379 o = append(o, 0xb2, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74) 1380 o, err = z.TransitionedObject.MarshalMsg(o) 1381 if err != nil { 1382 err = msgp.WrapError(err, "TransitionedObject") 1383 return 1384 } 1385 // string "RestoreExpires" 1386 o = append(o, 0xae, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73) 1387 o = msgp.AppendTime(o, z.RestoreExpires) 1388 // string "RestoreOngoing" 1389 o = append(o, 0xae, 0x52, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x4f, 0x6e, 0x67, 0x6f, 0x69, 0x6e, 0x67) 1390 o = msgp.AppendBool(o, z.RestoreOngoing) 1391 // string "ContentType" 1392 o = append(o, 0xab, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65) 1393 o = msgp.AppendString(o, z.ContentType) 1394 // string "ContentEncoding" 1395 o = append(o, 0xaf, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67) 1396 o = msgp.AppendString(o, z.ContentEncoding) 1397 // string "Expires" 1398 o = append(o, 0xa7, 0x45, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73) 1399 o = msgp.AppendTime(o, z.Expires) 1400 // string "CacheControl" 1401 o = append(o, 0xac, 0x43, 0x61, 0x63, 0x68, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c) 1402 o = msgp.AppendString(o, z.CacheControl) 1403 // string "StorageClass" 1404 o = append(o, 0xac, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73) 1405 o = msgp.AppendString(o, z.StorageClass) 1406 // string "ReplicationStatusInternal" 1407 o = append(o, 0xb9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c) 1408 o = msgp.AppendString(o, z.ReplicationStatusInternal) 1409 // string "ReplicationStatus" 1410 o = append(o, 0xb1, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73) 1411 o, err = z.ReplicationStatus.MarshalMsg(o) 1412 if err != nil { 1413 err = msgp.WrapError(err, "ReplicationStatus") 1414 return 1415 } 1416 // string "UserDefined" 1417 o = append(o, 0xab, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x64) 1418 o = msgp.AppendMapHeader(o, uint32(len(z.UserDefined))) 1419 for za0001, za0002 := range z.UserDefined { 1420 o = msgp.AppendString(o, za0001) 1421 o = msgp.AppendString(o, za0002) 1422 } 1423 // string "UserTags" 1424 o = append(o, 0xa8, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73) 1425 o = msgp.AppendString(o, z.UserTags) 1426 // string "Parts" 1427 o = append(o, 0xa5, 0x50, 0x61, 0x72, 0x74, 0x73) 1428 o = msgp.AppendArrayHeader(o, uint32(len(z.Parts))) 1429 for za0003 := range z.Parts { 1430 o, err = z.Parts[za0003].MarshalMsg(o) 1431 if err != nil { 1432 err = msgp.WrapError(err, "Parts", za0003) 1433 return 1434 } 1435 } 1436 // string "AccTime" 1437 o = append(o, 0xa7, 0x41, 0x63, 0x63, 0x54, 0x69, 0x6d, 0x65) 1438 o = msgp.AppendTime(o, z.AccTime) 1439 // string "Legacy" 1440 o = append(o, 0xa6, 0x4c, 0x65, 0x67, 0x61, 0x63, 0x79) 1441 o = msgp.AppendBool(o, z.Legacy) 1442 // string "VersionPurgeStatusInternal" 1443 o = append(o, 0xba, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c) 1444 o = msgp.AppendString(o, z.VersionPurgeStatusInternal) 1445 // string "VersionPurgeStatus" 1446 o = append(o, 0xb2, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73) 1447 o, err = z.VersionPurgeStatus.MarshalMsg(o) 1448 if err != nil { 1449 err = msgp.WrapError(err, "VersionPurgeStatus") 1450 return 1451 } 1452 // string "NumVersions" 1453 o = append(o, 0xab, 0x4e, 0x75, 0x6d, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x73) 1454 o = msgp.AppendInt(o, z.NumVersions) 1455 // string "SuccessorModTime" 1456 o = append(o, 0xb0, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x4d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65) 1457 o = msgp.AppendTime(o, z.SuccessorModTime) 1458 // string "Checksum" 1459 o = append(o, 0xa8, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d) 1460 o = msgp.AppendBytes(o, z.Checksum) 1461 // string "Inlined" 1462 o = append(o, 0xa7, 0x49, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x64) 1463 o = msgp.AppendBool(o, z.Inlined) 1464 // string "DataBlocks" 1465 o = append(o, 0xaa, 0x44, 0x61, 0x74, 0x61, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73) 1466 o = msgp.AppendInt(o, z.DataBlocks) 1467 // string "ParityBlocks" 1468 o = append(o, 0xac, 0x50, 0x61, 0x72, 0x69, 0x74, 0x79, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x73) 1469 o = msgp.AppendInt(o, z.ParityBlocks) 1470 return 1471 } 1472 1473 // UnmarshalMsg implements msgp.Unmarshaler 1474 func (z *ObjectInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 1475 var field []byte 1476 _ = field 1477 var zb0001 uint32 1478 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 1479 if err != nil { 1480 err = msgp.WrapError(err) 1481 return 1482 } 1483 for zb0001 > 0 { 1484 zb0001-- 1485 field, bts, err = msgp.ReadMapKeyZC(bts) 1486 if err != nil { 1487 err = msgp.WrapError(err) 1488 return 1489 } 1490 switch msgp.UnsafeString(field) { 1491 case "Bucket": 1492 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 1493 if err != nil { 1494 err = msgp.WrapError(err, "Bucket") 1495 return 1496 } 1497 case "Name": 1498 z.Name, bts, err = msgp.ReadStringBytes(bts) 1499 if err != nil { 1500 err = msgp.WrapError(err, "Name") 1501 return 1502 } 1503 case "ModTime": 1504 z.ModTime, bts, err = msgp.ReadTimeBytes(bts) 1505 if err != nil { 1506 err = msgp.WrapError(err, "ModTime") 1507 return 1508 } 1509 case "Size": 1510 z.Size, bts, err = msgp.ReadInt64Bytes(bts) 1511 if err != nil { 1512 err = msgp.WrapError(err, "Size") 1513 return 1514 } 1515 case "ActualSize": 1516 if msgp.IsNil(bts) { 1517 bts, err = msgp.ReadNilBytes(bts) 1518 if err != nil { 1519 return 1520 } 1521 z.ActualSize = nil 1522 } else { 1523 if z.ActualSize == nil { 1524 z.ActualSize = new(int64) 1525 } 1526 *z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts) 1527 if err != nil { 1528 err = msgp.WrapError(err, "ActualSize") 1529 return 1530 } 1531 } 1532 case "IsDir": 1533 z.IsDir, bts, err = msgp.ReadBoolBytes(bts) 1534 if err != nil { 1535 err = msgp.WrapError(err, "IsDir") 1536 return 1537 } 1538 case "ETag": 1539 z.ETag, bts, err = msgp.ReadStringBytes(bts) 1540 if err != nil { 1541 err = msgp.WrapError(err, "ETag") 1542 return 1543 } 1544 case "VersionID": 1545 z.VersionID, bts, err = msgp.ReadStringBytes(bts) 1546 if err != nil { 1547 err = msgp.WrapError(err, "VersionID") 1548 return 1549 } 1550 case "IsLatest": 1551 z.IsLatest, bts, err = msgp.ReadBoolBytes(bts) 1552 if err != nil { 1553 err = msgp.WrapError(err, "IsLatest") 1554 return 1555 } 1556 case "DeleteMarker": 1557 z.DeleteMarker, bts, err = msgp.ReadBoolBytes(bts) 1558 if err != nil { 1559 err = msgp.WrapError(err, "DeleteMarker") 1560 return 1561 } 1562 case "TransitionedObject": 1563 bts, err = z.TransitionedObject.UnmarshalMsg(bts) 1564 if err != nil { 1565 err = msgp.WrapError(err, "TransitionedObject") 1566 return 1567 } 1568 case "RestoreExpires": 1569 z.RestoreExpires, bts, err = msgp.ReadTimeBytes(bts) 1570 if err != nil { 1571 err = msgp.WrapError(err, "RestoreExpires") 1572 return 1573 } 1574 case "RestoreOngoing": 1575 z.RestoreOngoing, bts, err = msgp.ReadBoolBytes(bts) 1576 if err != nil { 1577 err = msgp.WrapError(err, "RestoreOngoing") 1578 return 1579 } 1580 case "ContentType": 1581 z.ContentType, bts, err = msgp.ReadStringBytes(bts) 1582 if err != nil { 1583 err = msgp.WrapError(err, "ContentType") 1584 return 1585 } 1586 case "ContentEncoding": 1587 z.ContentEncoding, bts, err = msgp.ReadStringBytes(bts) 1588 if err != nil { 1589 err = msgp.WrapError(err, "ContentEncoding") 1590 return 1591 } 1592 case "Expires": 1593 z.Expires, bts, err = msgp.ReadTimeBytes(bts) 1594 if err != nil { 1595 err = msgp.WrapError(err, "Expires") 1596 return 1597 } 1598 case "CacheControl": 1599 z.CacheControl, bts, err = msgp.ReadStringBytes(bts) 1600 if err != nil { 1601 err = msgp.WrapError(err, "CacheControl") 1602 return 1603 } 1604 case "StorageClass": 1605 z.StorageClass, bts, err = msgp.ReadStringBytes(bts) 1606 if err != nil { 1607 err = msgp.WrapError(err, "StorageClass") 1608 return 1609 } 1610 case "ReplicationStatusInternal": 1611 z.ReplicationStatusInternal, bts, err = msgp.ReadStringBytes(bts) 1612 if err != nil { 1613 err = msgp.WrapError(err, "ReplicationStatusInternal") 1614 return 1615 } 1616 case "ReplicationStatus": 1617 bts, err = z.ReplicationStatus.UnmarshalMsg(bts) 1618 if err != nil { 1619 err = msgp.WrapError(err, "ReplicationStatus") 1620 return 1621 } 1622 case "UserDefined": 1623 var zb0002 uint32 1624 zb0002, bts, err = msgp.ReadMapHeaderBytes(bts) 1625 if err != nil { 1626 err = msgp.WrapError(err, "UserDefined") 1627 return 1628 } 1629 if z.UserDefined == nil { 1630 z.UserDefined = make(map[string]string, zb0002) 1631 } else if len(z.UserDefined) > 0 { 1632 for key := range z.UserDefined { 1633 delete(z.UserDefined, key) 1634 } 1635 } 1636 for zb0002 > 0 { 1637 var za0001 string 1638 var za0002 string 1639 zb0002-- 1640 za0001, bts, err = msgp.ReadStringBytes(bts) 1641 if err != nil { 1642 err = msgp.WrapError(err, "UserDefined") 1643 return 1644 } 1645 za0002, bts, err = msgp.ReadStringBytes(bts) 1646 if err != nil { 1647 err = msgp.WrapError(err, "UserDefined", za0001) 1648 return 1649 } 1650 z.UserDefined[za0001] = za0002 1651 } 1652 case "UserTags": 1653 z.UserTags, bts, err = msgp.ReadStringBytes(bts) 1654 if err != nil { 1655 err = msgp.WrapError(err, "UserTags") 1656 return 1657 } 1658 case "Parts": 1659 var zb0003 uint32 1660 zb0003, bts, err = msgp.ReadArrayHeaderBytes(bts) 1661 if err != nil { 1662 err = msgp.WrapError(err, "Parts") 1663 return 1664 } 1665 if cap(z.Parts) >= int(zb0003) { 1666 z.Parts = (z.Parts)[:zb0003] 1667 } else { 1668 z.Parts = make([]ObjectPartInfo, zb0003) 1669 } 1670 for za0003 := range z.Parts { 1671 bts, err = z.Parts[za0003].UnmarshalMsg(bts) 1672 if err != nil { 1673 err = msgp.WrapError(err, "Parts", za0003) 1674 return 1675 } 1676 } 1677 case "AccTime": 1678 z.AccTime, bts, err = msgp.ReadTimeBytes(bts) 1679 if err != nil { 1680 err = msgp.WrapError(err, "AccTime") 1681 return 1682 } 1683 case "Legacy": 1684 z.Legacy, bts, err = msgp.ReadBoolBytes(bts) 1685 if err != nil { 1686 err = msgp.WrapError(err, "Legacy") 1687 return 1688 } 1689 case "VersionPurgeStatusInternal": 1690 z.VersionPurgeStatusInternal, bts, err = msgp.ReadStringBytes(bts) 1691 if err != nil { 1692 err = msgp.WrapError(err, "VersionPurgeStatusInternal") 1693 return 1694 } 1695 case "VersionPurgeStatus": 1696 bts, err = z.VersionPurgeStatus.UnmarshalMsg(bts) 1697 if err != nil { 1698 err = msgp.WrapError(err, "VersionPurgeStatus") 1699 return 1700 } 1701 case "NumVersions": 1702 z.NumVersions, bts, err = msgp.ReadIntBytes(bts) 1703 if err != nil { 1704 err = msgp.WrapError(err, "NumVersions") 1705 return 1706 } 1707 case "SuccessorModTime": 1708 z.SuccessorModTime, bts, err = msgp.ReadTimeBytes(bts) 1709 if err != nil { 1710 err = msgp.WrapError(err, "SuccessorModTime") 1711 return 1712 } 1713 case "Checksum": 1714 z.Checksum, bts, err = msgp.ReadBytesBytes(bts, z.Checksum) 1715 if err != nil { 1716 err = msgp.WrapError(err, "Checksum") 1717 return 1718 } 1719 case "Inlined": 1720 z.Inlined, bts, err = msgp.ReadBoolBytes(bts) 1721 if err != nil { 1722 err = msgp.WrapError(err, "Inlined") 1723 return 1724 } 1725 case "DataBlocks": 1726 z.DataBlocks, bts, err = msgp.ReadIntBytes(bts) 1727 if err != nil { 1728 err = msgp.WrapError(err, "DataBlocks") 1729 return 1730 } 1731 case "ParityBlocks": 1732 z.ParityBlocks, bts, err = msgp.ReadIntBytes(bts) 1733 if err != nil { 1734 err = msgp.WrapError(err, "ParityBlocks") 1735 return 1736 } 1737 default: 1738 bts, err = msgp.Skip(bts) 1739 if err != nil { 1740 err = msgp.WrapError(err) 1741 return 1742 } 1743 } 1744 } 1745 o = bts 1746 return 1747 } 1748 1749 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 1750 func (z *ObjectInfo) Msgsize() (s int) { 1751 s = 3 + 7 + msgp.StringPrefixSize + len(z.Bucket) + 5 + msgp.StringPrefixSize + len(z.Name) + 8 + msgp.TimeSize + 5 + msgp.Int64Size + 11 1752 if z.ActualSize == nil { 1753 s += msgp.NilSize 1754 } else { 1755 s += msgp.Int64Size 1756 } 1757 s += 6 + msgp.BoolSize + 5 + msgp.StringPrefixSize + len(z.ETag) + 10 + msgp.StringPrefixSize + len(z.VersionID) + 9 + msgp.BoolSize + 13 + msgp.BoolSize + 19 + z.TransitionedObject.Msgsize() + 15 + msgp.TimeSize + 15 + msgp.BoolSize + 12 + msgp.StringPrefixSize + len(z.ContentType) + 16 + msgp.StringPrefixSize + len(z.ContentEncoding) + 8 + msgp.TimeSize + 13 + msgp.StringPrefixSize + len(z.CacheControl) + 13 + msgp.StringPrefixSize + len(z.StorageClass) + 26 + msgp.StringPrefixSize + len(z.ReplicationStatusInternal) + 18 + z.ReplicationStatus.Msgsize() + 12 + msgp.MapHeaderSize 1758 if z.UserDefined != nil { 1759 for za0001, za0002 := range z.UserDefined { 1760 _ = za0002 1761 s += msgp.StringPrefixSize + len(za0001) + msgp.StringPrefixSize + len(za0002) 1762 } 1763 } 1764 s += 9 + msgp.StringPrefixSize + len(z.UserTags) + 6 + msgp.ArrayHeaderSize 1765 for za0003 := range z.Parts { 1766 s += z.Parts[za0003].Msgsize() 1767 } 1768 s += 8 + msgp.TimeSize + 7 + msgp.BoolSize + 27 + msgp.StringPrefixSize + len(z.VersionPurgeStatusInternal) + 19 + z.VersionPurgeStatus.Msgsize() + 12 + msgp.IntSize + 17 + msgp.TimeSize + 9 + msgp.BytesPrefixSize + len(z.Checksum) + 8 + msgp.BoolSize + 11 + msgp.IntSize + 13 + msgp.IntSize 1769 return 1770 } 1771 1772 // MarshalMsg implements msgp.Marshaler 1773 func (z *PartInfo) MarshalMsg(b []byte) (o []byte, err error) { 1774 o = msgp.Require(b, z.Msgsize()) 1775 // map header, size 9 1776 // string "PartNumber" 1777 o = append(o, 0x89, 0xaa, 0x50, 0x61, 0x72, 0x74, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72) 1778 o = msgp.AppendInt(o, z.PartNumber) 1779 // string "LastModified" 1780 o = append(o, 0xac, 0x4c, 0x61, 0x73, 0x74, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x69, 0x65, 0x64) 1781 o = msgp.AppendTime(o, z.LastModified) 1782 // string "ETag" 1783 o = append(o, 0xa4, 0x45, 0x54, 0x61, 0x67) 1784 o = msgp.AppendString(o, z.ETag) 1785 // string "Size" 1786 o = append(o, 0xa4, 0x53, 0x69, 0x7a, 0x65) 1787 o = msgp.AppendInt64(o, z.Size) 1788 // string "ActualSize" 1789 o = append(o, 0xaa, 0x41, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65) 1790 o = msgp.AppendInt64(o, z.ActualSize) 1791 // string "ChecksumCRC32" 1792 o = append(o, 0xad, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x43, 0x52, 0x43, 0x33, 0x32) 1793 o = msgp.AppendString(o, z.ChecksumCRC32) 1794 // string "ChecksumCRC32C" 1795 o = append(o, 0xae, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x43, 0x52, 0x43, 0x33, 0x32, 0x43) 1796 o = msgp.AppendString(o, z.ChecksumCRC32C) 1797 // string "ChecksumSHA1" 1798 o = append(o, 0xac, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x53, 0x48, 0x41, 0x31) 1799 o = msgp.AppendString(o, z.ChecksumSHA1) 1800 // string "ChecksumSHA256" 1801 o = append(o, 0xae, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x53, 0x48, 0x41, 0x32, 0x35, 0x36) 1802 o = msgp.AppendString(o, z.ChecksumSHA256) 1803 return 1804 } 1805 1806 // UnmarshalMsg implements msgp.Unmarshaler 1807 func (z *PartInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 1808 var field []byte 1809 _ = field 1810 var zb0001 uint32 1811 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 1812 if err != nil { 1813 err = msgp.WrapError(err) 1814 return 1815 } 1816 for zb0001 > 0 { 1817 zb0001-- 1818 field, bts, err = msgp.ReadMapKeyZC(bts) 1819 if err != nil { 1820 err = msgp.WrapError(err) 1821 return 1822 } 1823 switch msgp.UnsafeString(field) { 1824 case "PartNumber": 1825 z.PartNumber, bts, err = msgp.ReadIntBytes(bts) 1826 if err != nil { 1827 err = msgp.WrapError(err, "PartNumber") 1828 return 1829 } 1830 case "LastModified": 1831 z.LastModified, bts, err = msgp.ReadTimeBytes(bts) 1832 if err != nil { 1833 err = msgp.WrapError(err, "LastModified") 1834 return 1835 } 1836 case "ETag": 1837 z.ETag, bts, err = msgp.ReadStringBytes(bts) 1838 if err != nil { 1839 err = msgp.WrapError(err, "ETag") 1840 return 1841 } 1842 case "Size": 1843 z.Size, bts, err = msgp.ReadInt64Bytes(bts) 1844 if err != nil { 1845 err = msgp.WrapError(err, "Size") 1846 return 1847 } 1848 case "ActualSize": 1849 z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts) 1850 if err != nil { 1851 err = msgp.WrapError(err, "ActualSize") 1852 return 1853 } 1854 case "ChecksumCRC32": 1855 z.ChecksumCRC32, bts, err = msgp.ReadStringBytes(bts) 1856 if err != nil { 1857 err = msgp.WrapError(err, "ChecksumCRC32") 1858 return 1859 } 1860 case "ChecksumCRC32C": 1861 z.ChecksumCRC32C, bts, err = msgp.ReadStringBytes(bts) 1862 if err != nil { 1863 err = msgp.WrapError(err, "ChecksumCRC32C") 1864 return 1865 } 1866 case "ChecksumSHA1": 1867 z.ChecksumSHA1, bts, err = msgp.ReadStringBytes(bts) 1868 if err != nil { 1869 err = msgp.WrapError(err, "ChecksumSHA1") 1870 return 1871 } 1872 case "ChecksumSHA256": 1873 z.ChecksumSHA256, bts, err = msgp.ReadStringBytes(bts) 1874 if err != nil { 1875 err = msgp.WrapError(err, "ChecksumSHA256") 1876 return 1877 } 1878 default: 1879 bts, err = msgp.Skip(bts) 1880 if err != nil { 1881 err = msgp.WrapError(err) 1882 return 1883 } 1884 } 1885 } 1886 o = bts 1887 return 1888 } 1889 1890 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 1891 func (z *PartInfo) Msgsize() (s int) { 1892 s = 1 + 11 + msgp.IntSize + 13 + msgp.TimeSize + 5 + msgp.StringPrefixSize + len(z.ETag) + 5 + msgp.Int64Size + 11 + msgp.Int64Size + 14 + msgp.StringPrefixSize + len(z.ChecksumCRC32) + 15 + msgp.StringPrefixSize + len(z.ChecksumCRC32C) + 13 + msgp.StringPrefixSize + len(z.ChecksumSHA1) + 15 + msgp.StringPrefixSize + len(z.ChecksumSHA256) 1893 return 1894 } 1895 1896 // MarshalMsg implements msgp.Marshaler 1897 func (z *ReplicateObjectInfo) MarshalMsg(b []byte) (o []byte, err error) { 1898 o = msgp.Require(b, z.Msgsize()) 1899 // map header, size 25 1900 // string "Name" 1901 o = append(o, 0xde, 0x0, 0x19, 0xa4, 0x4e, 0x61, 0x6d, 0x65) 1902 o = msgp.AppendString(o, z.Name) 1903 // string "Bucket" 1904 o = append(o, 0xa6, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74) 1905 o = msgp.AppendString(o, z.Bucket) 1906 // string "VersionID" 1907 o = append(o, 0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44) 1908 o = msgp.AppendString(o, z.VersionID) 1909 // string "ETag" 1910 o = append(o, 0xa4, 0x45, 0x54, 0x61, 0x67) 1911 o = msgp.AppendString(o, z.ETag) 1912 // string "Size" 1913 o = append(o, 0xa4, 0x53, 0x69, 0x7a, 0x65) 1914 o = msgp.AppendInt64(o, z.Size) 1915 // string "ActualSize" 1916 o = append(o, 0xaa, 0x41, 0x63, 0x74, 0x75, 0x61, 0x6c, 0x53, 0x69, 0x7a, 0x65) 1917 o = msgp.AppendInt64(o, z.ActualSize) 1918 // string "ModTime" 1919 o = append(o, 0xa7, 0x4d, 0x6f, 0x64, 0x54, 0x69, 0x6d, 0x65) 1920 o = msgp.AppendTime(o, z.ModTime) 1921 // string "UserTags" 1922 o = append(o, 0xa8, 0x55, 0x73, 0x65, 0x72, 0x54, 0x61, 0x67, 0x73) 1923 o = msgp.AppendString(o, z.UserTags) 1924 // string "SSEC" 1925 o = append(o, 0xa4, 0x53, 0x53, 0x45, 0x43) 1926 o = msgp.AppendBool(o, z.SSEC) 1927 // string "ReplicationStatus" 1928 o = append(o, 0xb1, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73) 1929 o, err = z.ReplicationStatus.MarshalMsg(o) 1930 if err != nil { 1931 err = msgp.WrapError(err, "ReplicationStatus") 1932 return 1933 } 1934 // string "ReplicationStatusInternal" 1935 o = append(o, 0xb9, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c) 1936 o = msgp.AppendString(o, z.ReplicationStatusInternal) 1937 // string "VersionPurgeStatusInternal" 1938 o = append(o, 0xba, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c) 1939 o = msgp.AppendString(o, z.VersionPurgeStatusInternal) 1940 // string "VersionPurgeStatus" 1941 o = append(o, 0xb2, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73) 1942 o, err = z.VersionPurgeStatus.MarshalMsg(o) 1943 if err != nil { 1944 err = msgp.WrapError(err, "VersionPurgeStatus") 1945 return 1946 } 1947 // string "ReplicationState" 1948 o = append(o, 0xb0, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65) 1949 o, err = z.ReplicationState.MarshalMsg(o) 1950 if err != nil { 1951 err = msgp.WrapError(err, "ReplicationState") 1952 return 1953 } 1954 // string "DeleteMarker" 1955 o = append(o, 0xac, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4d, 0x61, 0x72, 0x6b, 0x65, 0x72) 1956 o = msgp.AppendBool(o, z.DeleteMarker) 1957 // string "OpType" 1958 o = append(o, 0xa6, 0x4f, 0x70, 0x54, 0x79, 0x70, 0x65) 1959 o, err = z.OpType.MarshalMsg(o) 1960 if err != nil { 1961 err = msgp.WrapError(err, "OpType") 1962 return 1963 } 1964 // string "EventType" 1965 o = append(o, 0xa9, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65) 1966 o = msgp.AppendString(o, z.EventType) 1967 // string "RetryCount" 1968 o = append(o, 0xaa, 0x52, 0x65, 0x74, 0x72, 0x79, 0x43, 0x6f, 0x75, 0x6e, 0x74) 1969 o = msgp.AppendUint32(o, z.RetryCount) 1970 // string "ResetID" 1971 o = append(o, 0xa7, 0x52, 0x65, 0x73, 0x65, 0x74, 0x49, 0x44) 1972 o = msgp.AppendString(o, z.ResetID) 1973 // string "Dsc" 1974 o = append(o, 0xa3, 0x44, 0x73, 0x63) 1975 o, err = z.Dsc.MarshalMsg(o) 1976 if err != nil { 1977 err = msgp.WrapError(err, "Dsc") 1978 return 1979 } 1980 // string "ExistingObjResync" 1981 o = append(o, 0xb1, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x4f, 0x62, 0x6a, 0x52, 0x65, 0x73, 0x79, 0x6e, 0x63) 1982 o, err = z.ExistingObjResync.MarshalMsg(o) 1983 if err != nil { 1984 err = msgp.WrapError(err, "ExistingObjResync") 1985 return 1986 } 1987 // string "TargetArn" 1988 o = append(o, 0xa9, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x72, 0x6e) 1989 o = msgp.AppendString(o, z.TargetArn) 1990 // string "TargetStatuses" 1991 o = append(o, 0xae, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73) 1992 o = msgp.AppendMapHeader(o, uint32(len(z.TargetStatuses))) 1993 for za0001, za0002 := range z.TargetStatuses { 1994 o = msgp.AppendString(o, za0001) 1995 o, err = za0002.MarshalMsg(o) 1996 if err != nil { 1997 err = msgp.WrapError(err, "TargetStatuses", za0001) 1998 return 1999 } 2000 } 2001 // string "TargetPurgeStatuses" 2002 o = append(o, 0xb3, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x75, 0x72, 0x67, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x65, 0x73) 2003 o = msgp.AppendMapHeader(o, uint32(len(z.TargetPurgeStatuses))) 2004 for za0003, za0004 := range z.TargetPurgeStatuses { 2005 o = msgp.AppendString(o, za0003) 2006 o, err = za0004.MarshalMsg(o) 2007 if err != nil { 2008 err = msgp.WrapError(err, "TargetPurgeStatuses", za0003) 2009 return 2010 } 2011 } 2012 // string "ReplicationTimestamp" 2013 o = append(o, 0xb4, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70) 2014 o = msgp.AppendTime(o, z.ReplicationTimestamp) 2015 return 2016 } 2017 2018 // UnmarshalMsg implements msgp.Unmarshaler 2019 func (z *ReplicateObjectInfo) UnmarshalMsg(bts []byte) (o []byte, err error) { 2020 var field []byte 2021 _ = field 2022 var zb0001 uint32 2023 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 2024 if err != nil { 2025 err = msgp.WrapError(err) 2026 return 2027 } 2028 for zb0001 > 0 { 2029 zb0001-- 2030 field, bts, err = msgp.ReadMapKeyZC(bts) 2031 if err != nil { 2032 err = msgp.WrapError(err) 2033 return 2034 } 2035 switch msgp.UnsafeString(field) { 2036 case "Name": 2037 z.Name, bts, err = msgp.ReadStringBytes(bts) 2038 if err != nil { 2039 err = msgp.WrapError(err, "Name") 2040 return 2041 } 2042 case "Bucket": 2043 z.Bucket, bts, err = msgp.ReadStringBytes(bts) 2044 if err != nil { 2045 err = msgp.WrapError(err, "Bucket") 2046 return 2047 } 2048 case "VersionID": 2049 z.VersionID, bts, err = msgp.ReadStringBytes(bts) 2050 if err != nil { 2051 err = msgp.WrapError(err, "VersionID") 2052 return 2053 } 2054 case "ETag": 2055 z.ETag, bts, err = msgp.ReadStringBytes(bts) 2056 if err != nil { 2057 err = msgp.WrapError(err, "ETag") 2058 return 2059 } 2060 case "Size": 2061 z.Size, bts, err = msgp.ReadInt64Bytes(bts) 2062 if err != nil { 2063 err = msgp.WrapError(err, "Size") 2064 return 2065 } 2066 case "ActualSize": 2067 z.ActualSize, bts, err = msgp.ReadInt64Bytes(bts) 2068 if err != nil { 2069 err = msgp.WrapError(err, "ActualSize") 2070 return 2071 } 2072 case "ModTime": 2073 z.ModTime, bts, err = msgp.ReadTimeBytes(bts) 2074 if err != nil { 2075 err = msgp.WrapError(err, "ModTime") 2076 return 2077 } 2078 case "UserTags": 2079 z.UserTags, bts, err = msgp.ReadStringBytes(bts) 2080 if err != nil { 2081 err = msgp.WrapError(err, "UserTags") 2082 return 2083 } 2084 case "SSEC": 2085 z.SSEC, bts, err = msgp.ReadBoolBytes(bts) 2086 if err != nil { 2087 err = msgp.WrapError(err, "SSEC") 2088 return 2089 } 2090 case "ReplicationStatus": 2091 bts, err = z.ReplicationStatus.UnmarshalMsg(bts) 2092 if err != nil { 2093 err = msgp.WrapError(err, "ReplicationStatus") 2094 return 2095 } 2096 case "ReplicationStatusInternal": 2097 z.ReplicationStatusInternal, bts, err = msgp.ReadStringBytes(bts) 2098 if err != nil { 2099 err = msgp.WrapError(err, "ReplicationStatusInternal") 2100 return 2101 } 2102 case "VersionPurgeStatusInternal": 2103 z.VersionPurgeStatusInternal, bts, err = msgp.ReadStringBytes(bts) 2104 if err != nil { 2105 err = msgp.WrapError(err, "VersionPurgeStatusInternal") 2106 return 2107 } 2108 case "VersionPurgeStatus": 2109 bts, err = z.VersionPurgeStatus.UnmarshalMsg(bts) 2110 if err != nil { 2111 err = msgp.WrapError(err, "VersionPurgeStatus") 2112 return 2113 } 2114 case "ReplicationState": 2115 bts, err = z.ReplicationState.UnmarshalMsg(bts) 2116 if err != nil { 2117 err = msgp.WrapError(err, "ReplicationState") 2118 return 2119 } 2120 case "DeleteMarker": 2121 z.DeleteMarker, bts, err = msgp.ReadBoolBytes(bts) 2122 if err != nil { 2123 err = msgp.WrapError(err, "DeleteMarker") 2124 return 2125 } 2126 case "OpType": 2127 bts, err = z.OpType.UnmarshalMsg(bts) 2128 if err != nil { 2129 err = msgp.WrapError(err, "OpType") 2130 return 2131 } 2132 case "EventType": 2133 z.EventType, bts, err = msgp.ReadStringBytes(bts) 2134 if err != nil { 2135 err = msgp.WrapError(err, "EventType") 2136 return 2137 } 2138 case "RetryCount": 2139 z.RetryCount, bts, err = msgp.ReadUint32Bytes(bts) 2140 if err != nil { 2141 err = msgp.WrapError(err, "RetryCount") 2142 return 2143 } 2144 case "ResetID": 2145 z.ResetID, bts, err = msgp.ReadStringBytes(bts) 2146 if err != nil { 2147 err = msgp.WrapError(err, "ResetID") 2148 return 2149 } 2150 case "Dsc": 2151 bts, err = z.Dsc.UnmarshalMsg(bts) 2152 if err != nil { 2153 err = msgp.WrapError(err, "Dsc") 2154 return 2155 } 2156 case "ExistingObjResync": 2157 bts, err = z.ExistingObjResync.UnmarshalMsg(bts) 2158 if err != nil { 2159 err = msgp.WrapError(err, "ExistingObjResync") 2160 return 2161 } 2162 case "TargetArn": 2163 z.TargetArn, bts, err = msgp.ReadStringBytes(bts) 2164 if err != nil { 2165 err = msgp.WrapError(err, "TargetArn") 2166 return 2167 } 2168 case "TargetStatuses": 2169 var zb0002 uint32 2170 zb0002, bts, err = msgp.ReadMapHeaderBytes(bts) 2171 if err != nil { 2172 err = msgp.WrapError(err, "TargetStatuses") 2173 return 2174 } 2175 if z.TargetStatuses == nil { 2176 z.TargetStatuses = make(map[string]replication.StatusType, zb0002) 2177 } else if len(z.TargetStatuses) > 0 { 2178 for key := range z.TargetStatuses { 2179 delete(z.TargetStatuses, key) 2180 } 2181 } 2182 for zb0002 > 0 { 2183 var za0001 string 2184 var za0002 replication.StatusType 2185 zb0002-- 2186 za0001, bts, err = msgp.ReadStringBytes(bts) 2187 if err != nil { 2188 err = msgp.WrapError(err, "TargetStatuses") 2189 return 2190 } 2191 bts, err = za0002.UnmarshalMsg(bts) 2192 if err != nil { 2193 err = msgp.WrapError(err, "TargetStatuses", za0001) 2194 return 2195 } 2196 z.TargetStatuses[za0001] = za0002 2197 } 2198 case "TargetPurgeStatuses": 2199 var zb0003 uint32 2200 zb0003, bts, err = msgp.ReadMapHeaderBytes(bts) 2201 if err != nil { 2202 err = msgp.WrapError(err, "TargetPurgeStatuses") 2203 return 2204 } 2205 if z.TargetPurgeStatuses == nil { 2206 z.TargetPurgeStatuses = make(map[string]VersionPurgeStatusType, zb0003) 2207 } else if len(z.TargetPurgeStatuses) > 0 { 2208 for key := range z.TargetPurgeStatuses { 2209 delete(z.TargetPurgeStatuses, key) 2210 } 2211 } 2212 for zb0003 > 0 { 2213 var za0003 string 2214 var za0004 VersionPurgeStatusType 2215 zb0003-- 2216 za0003, bts, err = msgp.ReadStringBytes(bts) 2217 if err != nil { 2218 err = msgp.WrapError(err, "TargetPurgeStatuses") 2219 return 2220 } 2221 bts, err = za0004.UnmarshalMsg(bts) 2222 if err != nil { 2223 err = msgp.WrapError(err, "TargetPurgeStatuses", za0003) 2224 return 2225 } 2226 z.TargetPurgeStatuses[za0003] = za0004 2227 } 2228 case "ReplicationTimestamp": 2229 z.ReplicationTimestamp, bts, err = msgp.ReadTimeBytes(bts) 2230 if err != nil { 2231 err = msgp.WrapError(err, "ReplicationTimestamp") 2232 return 2233 } 2234 default: 2235 bts, err = msgp.Skip(bts) 2236 if err != nil { 2237 err = msgp.WrapError(err) 2238 return 2239 } 2240 } 2241 } 2242 o = bts 2243 return 2244 } 2245 2246 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 2247 func (z *ReplicateObjectInfo) Msgsize() (s int) { 2248 s = 3 + 5 + msgp.StringPrefixSize + len(z.Name) + 7 + msgp.StringPrefixSize + len(z.Bucket) + 10 + msgp.StringPrefixSize + len(z.VersionID) + 5 + msgp.StringPrefixSize + len(z.ETag) + 5 + msgp.Int64Size + 11 + msgp.Int64Size + 8 + msgp.TimeSize + 9 + msgp.StringPrefixSize + len(z.UserTags) + 5 + msgp.BoolSize + 18 + z.ReplicationStatus.Msgsize() + 26 + msgp.StringPrefixSize + len(z.ReplicationStatusInternal) + 27 + msgp.StringPrefixSize + len(z.VersionPurgeStatusInternal) + 19 + z.VersionPurgeStatus.Msgsize() + 17 + z.ReplicationState.Msgsize() + 13 + msgp.BoolSize + 7 + z.OpType.Msgsize() + 10 + msgp.StringPrefixSize + len(z.EventType) + 11 + msgp.Uint32Size + 8 + msgp.StringPrefixSize + len(z.ResetID) + 4 + z.Dsc.Msgsize() + 18 + z.ExistingObjResync.Msgsize() + 10 + msgp.StringPrefixSize + len(z.TargetArn) + 15 + msgp.MapHeaderSize 2249 if z.TargetStatuses != nil { 2250 for za0001, za0002 := range z.TargetStatuses { 2251 _ = za0002 2252 s += msgp.StringPrefixSize + len(za0001) + za0002.Msgsize() 2253 } 2254 } 2255 s += 20 + msgp.MapHeaderSize 2256 if z.TargetPurgeStatuses != nil { 2257 for za0003, za0004 := range z.TargetPurgeStatuses { 2258 _ = za0004 2259 s += msgp.StringPrefixSize + len(za0003) + za0004.Msgsize() 2260 } 2261 } 2262 s += 21 + msgp.TimeSize 2263 return 2264 } 2265 2266 // MarshalMsg implements msgp.Marshaler 2267 func (z *TransitionedObject) MarshalMsg(b []byte) (o []byte, err error) { 2268 o = msgp.Require(b, z.Msgsize()) 2269 // map header, size 5 2270 // string "Name" 2271 o = append(o, 0x85, 0xa4, 0x4e, 0x61, 0x6d, 0x65) 2272 o = msgp.AppendString(o, z.Name) 2273 // string "VersionID" 2274 o = append(o, 0xa9, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x44) 2275 o = msgp.AppendString(o, z.VersionID) 2276 // string "Tier" 2277 o = append(o, 0xa4, 0x54, 0x69, 0x65, 0x72) 2278 o = msgp.AppendString(o, z.Tier) 2279 // string "FreeVersion" 2280 o = append(o, 0xab, 0x46, 0x72, 0x65, 0x65, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e) 2281 o = msgp.AppendBool(o, z.FreeVersion) 2282 // string "Status" 2283 o = append(o, 0xa6, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73) 2284 o = msgp.AppendString(o, z.Status) 2285 return 2286 } 2287 2288 // UnmarshalMsg implements msgp.Unmarshaler 2289 func (z *TransitionedObject) UnmarshalMsg(bts []byte) (o []byte, err error) { 2290 var field []byte 2291 _ = field 2292 var zb0001 uint32 2293 zb0001, bts, err = msgp.ReadMapHeaderBytes(bts) 2294 if err != nil { 2295 err = msgp.WrapError(err) 2296 return 2297 } 2298 for zb0001 > 0 { 2299 zb0001-- 2300 field, bts, err = msgp.ReadMapKeyZC(bts) 2301 if err != nil { 2302 err = msgp.WrapError(err) 2303 return 2304 } 2305 switch msgp.UnsafeString(field) { 2306 case "Name": 2307 z.Name, bts, err = msgp.ReadStringBytes(bts) 2308 if err != nil { 2309 err = msgp.WrapError(err, "Name") 2310 return 2311 } 2312 case "VersionID": 2313 z.VersionID, bts, err = msgp.ReadStringBytes(bts) 2314 if err != nil { 2315 err = msgp.WrapError(err, "VersionID") 2316 return 2317 } 2318 case "Tier": 2319 z.Tier, bts, err = msgp.ReadStringBytes(bts) 2320 if err != nil { 2321 err = msgp.WrapError(err, "Tier") 2322 return 2323 } 2324 case "FreeVersion": 2325 z.FreeVersion, bts, err = msgp.ReadBoolBytes(bts) 2326 if err != nil { 2327 err = msgp.WrapError(err, "FreeVersion") 2328 return 2329 } 2330 case "Status": 2331 z.Status, bts, err = msgp.ReadStringBytes(bts) 2332 if err != nil { 2333 err = msgp.WrapError(err, "Status") 2334 return 2335 } 2336 default: 2337 bts, err = msgp.Skip(bts) 2338 if err != nil { 2339 err = msgp.WrapError(err) 2340 return 2341 } 2342 } 2343 } 2344 o = bts 2345 return 2346 } 2347 2348 // Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message 2349 func (z *TransitionedObject) Msgsize() (s int) { 2350 s = 1 + 5 + msgp.StringPrefixSize + len(z.Name) + 10 + msgp.StringPrefixSize + len(z.VersionID) + 5 + msgp.StringPrefixSize + len(z.Tier) + 12 + msgp.BoolSize + 7 + msgp.StringPrefixSize + len(z.Status) 2351 return 2352 }