github.com/uchennaokeke444/nomad@v0.11.8/nomad/structs/structs.generated.go (about) 1 // +build codegen_generated 2 3 // Code generated by codecgen - DO NOT EDIT. 4 5 package structs 6 7 import ( 8 "errors" 9 codec1978 "github.com/hashicorp/go-msgpack/codec" 10 pkg4_acl "github.com/hashicorp/nomad/acl" 11 pkg3_pprof "github.com/hashicorp/nomad/command/agent/pprof" 12 pkg1_structs "github.com/hashicorp/nomad/plugins/shared/structs" 13 pkg2_raft "github.com/hashicorp/raft" 14 "net" 15 "runtime" 16 "strconv" 17 "time" 18 ) 19 20 const ( 21 // ----- content types ---- 22 codecSelferCcUTF8100 = 1 23 codecSelferCcRAW100 = 255 24 // ----- value types used ---- 25 codecSelferValueTypeArray100 = 10 26 codecSelferValueTypeMap100 = 9 27 codecSelferValueTypeString100 = 6 28 codecSelferValueTypeInt100 = 2 29 codecSelferValueTypeUint100 = 3 30 codecSelferValueTypeFloat100 = 4 31 codecSelferBitsize100 = uint8(32 << (^uint(0) >> 63)) 32 ) 33 34 var ( 35 errCodecSelferOnlyMapOrArrayEncodeToStruct100 = errors.New(`only encoded map or array can be decoded into a struct`) 36 ) 37 38 type codecSelfer100 struct{} 39 40 func init() { 41 if codec1978.GenVersion != 10 { 42 _, file, _, _ := runtime.Caller(0) 43 panic("codecgen version mismatch: current: 10, need " + strconv.FormatInt(int64(codec1978.GenVersion), 10) + ". Re-generate file: " + file) 44 } 45 if false { 46 var _ byte = 0 // reference the types, but skip this branch at build/run time 47 var v0 pkg4_acl.Policy 48 var v1 pkg3_pprof.ReqType 49 var v2 pkg1_structs.Attribute 50 var v3 pkg2_raft.ServerID 51 var v4 net.IP 52 var v5 time.Duration 53 _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5 54 } 55 } 56 57 func (x *BatchFuture) CodecEncodeSelf(e *codec1978.Encoder) { 58 var h codecSelfer100 59 z, r := codec1978.GenHelperEncoder(e) 60 _, _, _ = h, z, r 61 if x == nil { 62 r.EncodeNil() 63 } else { 64 if false { 65 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66 z.EncExtension(x, yyxt1) 67 } else { 68 yysep2 := !z.EncBinary() 69 yy2arr2 := z.EncBasicHandle().StructToArray 70 _, _ = yysep2, yy2arr2 71 const yyr2 bool = false // struct tag has 'toArray' 72 if yyr2 || yy2arr2 { 73 r.WriteArrayStart(0) 74 } else { 75 r.WriteMapStart(0) 76 } 77 if yyr2 || yy2arr2 { 78 r.WriteArrayEnd() 79 } else { 80 r.WriteMapEnd() 81 } 82 } 83 } 84 } 85 86 func (x *BatchFuture) CodecDecodeSelf(d *codec1978.Decoder) { 87 var h codecSelfer100 88 z, r := codec1978.GenHelperDecoder(d) 89 _, _, _ = h, z, r 90 if false { 91 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92 z.DecExtension(x, yyxt1) 93 } else { 94 yyct2 := r.ContainerType() 95 if yyct2 == codecSelferValueTypeMap100 { 96 yyl2 := r.ReadMapStart() 97 if yyl2 == 0 { 98 r.ReadMapEnd() 99 } else { 100 x.codecDecodeSelfFromMap(yyl2, d) 101 } 102 } else if yyct2 == codecSelferValueTypeArray100 { 103 yyl2 := r.ReadArrayStart() 104 if yyl2 == 0 { 105 r.ReadArrayEnd() 106 } else { 107 x.codecDecodeSelfFromArray(yyl2, d) 108 } 109 } else { 110 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111 } 112 } 113 } 114 115 func (x *BatchFuture) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116 var h codecSelfer100 117 z, r := codec1978.GenHelperDecoder(d) 118 _, _, _ = h, z, r 119 var yyhl3 bool = l >= 0 120 for yyj3 := 0; ; yyj3++ { 121 if yyhl3 { 122 if yyj3 >= l { 123 break 124 } 125 } else { 126 if r.CheckBreak() { 127 break 128 } 129 } 130 r.ReadMapElemKey() 131 yys3 := z.StringView(r.DecodeStringAsBytes()) 132 r.ReadMapElemValue() 133 switch yys3 { 134 default: 135 z.DecStructFieldNotFound(-1, yys3) 136 } // end switch yys3 137 } // end for yyj3 138 r.ReadMapEnd() 139 } 140 141 func (x *BatchFuture) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 142 var h codecSelfer100 143 z, r := codec1978.GenHelperDecoder(d) 144 _, _, _ = h, z, r 145 var yyj4 int 146 var yyb4 bool 147 var yyhl4 bool = l >= 0 148 for { 149 yyj4++ 150 if yyhl4 { 151 yyb4 = yyj4 > l 152 } else { 153 yyb4 = r.CheckBreak() 154 } 155 if yyb4 { 156 break 157 } 158 r.ReadArrayElem() 159 z.DecStructFieldNotFound(yyj4-1, "") 160 } 161 r.ReadArrayEnd() 162 } 163 164 func (x Bitmap) CodecEncodeSelf(e *codec1978.Encoder) { 165 var h codecSelfer100 166 z, r := codec1978.GenHelperEncoder(e) 167 _, _, _ = h, z, r 168 if x == nil { 169 r.EncodeNil() 170 } else { 171 if false { 172 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 173 z.EncExtension(x, yyxt1) 174 } else { 175 h.encBitmap((Bitmap)(x), e) 176 } 177 } 178 } 179 180 func (x *Bitmap) CodecDecodeSelf(d *codec1978.Decoder) { 181 var h codecSelfer100 182 z, r := codec1978.GenHelperDecoder(d) 183 _, _, _ = h, z, r 184 if false { 185 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 186 z.DecExtension(x, yyxt1) 187 } else { 188 h.decBitmap((*Bitmap)(x), d) 189 } 190 } 191 192 func (x CSIPluginType) CodecEncodeSelf(e *codec1978.Encoder) { 193 var h codecSelfer100 194 z, r := codec1978.GenHelperEncoder(e) 195 _, _, _ = h, z, r 196 if false { 197 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 198 z.EncExtension(x, yyxt1) 199 } else { 200 if z.EncBasicHandle().StringToRaw { 201 r.EncodeStringBytesRaw(z.BytesView(string(x))) 202 } else { 203 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 204 } 205 } 206 } 207 208 func (x *CSIPluginType) CodecDecodeSelf(d *codec1978.Decoder) { 209 var h codecSelfer100 210 z, r := codec1978.GenHelperDecoder(d) 211 _, _, _ = h, z, r 212 if false { 213 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 214 z.DecExtension(x, yyxt1) 215 } else { 216 *x = (CSIPluginType)(r.DecodeString()) 217 } 218 } 219 220 func (x *TaskCSIPluginConfig) CodecEncodeSelf(e *codec1978.Encoder) { 221 var h codecSelfer100 222 z, r := codec1978.GenHelperEncoder(e) 223 _, _, _ = h, z, r 224 if x == nil { 225 r.EncodeNil() 226 } else { 227 if false { 228 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 229 z.EncExtension(x, yyxt1) 230 } else { 231 yysep2 := !z.EncBinary() 232 yy2arr2 := z.EncBasicHandle().StructToArray 233 _, _ = yysep2, yy2arr2 234 const yyr2 bool = false // struct tag has 'toArray' 235 if yyr2 || yy2arr2 { 236 r.WriteArrayStart(3) 237 } else { 238 r.WriteMapStart(3) 239 } 240 if yyr2 || yy2arr2 { 241 r.WriteArrayElem() 242 if false { 243 } else { 244 if z.EncBasicHandle().StringToRaw { 245 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 246 } else { 247 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 248 } 249 } 250 } else { 251 r.WriteMapElemKey() 252 if z.IsJSONHandle() { 253 z.WriteStr("\"ID\"") 254 } else { 255 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 256 } 257 r.WriteMapElemValue() 258 if false { 259 } else { 260 if z.EncBasicHandle().StringToRaw { 261 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 262 } else { 263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 264 } 265 } 266 } 267 if yyr2 || yy2arr2 { 268 r.WriteArrayElem() 269 x.Type.CodecEncodeSelf(e) 270 } else { 271 r.WriteMapElemKey() 272 if z.IsJSONHandle() { 273 z.WriteStr("\"Type\"") 274 } else { 275 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 276 } 277 r.WriteMapElemValue() 278 x.Type.CodecEncodeSelf(e) 279 } 280 if yyr2 || yy2arr2 { 281 r.WriteArrayElem() 282 if false { 283 } else { 284 if z.EncBasicHandle().StringToRaw { 285 r.EncodeStringBytesRaw(z.BytesView(string(x.MountDir))) 286 } else { 287 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MountDir)) 288 } 289 } 290 } else { 291 r.WriteMapElemKey() 292 if z.IsJSONHandle() { 293 z.WriteStr("\"MountDir\"") 294 } else { 295 r.EncodeStringEnc(codecSelferCcUTF8100, `MountDir`) 296 } 297 r.WriteMapElemValue() 298 if false { 299 } else { 300 if z.EncBasicHandle().StringToRaw { 301 r.EncodeStringBytesRaw(z.BytesView(string(x.MountDir))) 302 } else { 303 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.MountDir)) 304 } 305 } 306 } 307 if yyr2 || yy2arr2 { 308 r.WriteArrayEnd() 309 } else { 310 r.WriteMapEnd() 311 } 312 } 313 } 314 } 315 316 func (x *TaskCSIPluginConfig) CodecDecodeSelf(d *codec1978.Decoder) { 317 var h codecSelfer100 318 z, r := codec1978.GenHelperDecoder(d) 319 _, _, _ = h, z, r 320 if false { 321 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 322 z.DecExtension(x, yyxt1) 323 } else { 324 yyct2 := r.ContainerType() 325 if yyct2 == codecSelferValueTypeMap100 { 326 yyl2 := r.ReadMapStart() 327 if yyl2 == 0 { 328 r.ReadMapEnd() 329 } else { 330 x.codecDecodeSelfFromMap(yyl2, d) 331 } 332 } else if yyct2 == codecSelferValueTypeArray100 { 333 yyl2 := r.ReadArrayStart() 334 if yyl2 == 0 { 335 r.ReadArrayEnd() 336 } else { 337 x.codecDecodeSelfFromArray(yyl2, d) 338 } 339 } else { 340 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 341 } 342 } 343 } 344 345 func (x *TaskCSIPluginConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 346 var h codecSelfer100 347 z, r := codec1978.GenHelperDecoder(d) 348 _, _, _ = h, z, r 349 var yyhl3 bool = l >= 0 350 for yyj3 := 0; ; yyj3++ { 351 if yyhl3 { 352 if yyj3 >= l { 353 break 354 } 355 } else { 356 if r.CheckBreak() { 357 break 358 } 359 } 360 r.ReadMapElemKey() 361 yys3 := z.StringView(r.DecodeStringAsBytes()) 362 r.ReadMapElemValue() 363 switch yys3 { 364 case "ID": 365 if r.TryDecodeAsNil() { 366 x.ID = "" 367 } else { 368 x.ID = (string)(r.DecodeString()) 369 } 370 case "Type": 371 if r.TryDecodeAsNil() { 372 x.Type = "" 373 } else { 374 x.Type.CodecDecodeSelf(d) 375 } 376 case "MountDir": 377 if r.TryDecodeAsNil() { 378 x.MountDir = "" 379 } else { 380 x.MountDir = (string)(r.DecodeString()) 381 } 382 default: 383 z.DecStructFieldNotFound(-1, yys3) 384 } // end switch yys3 385 } // end for yyj3 386 r.ReadMapEnd() 387 } 388 389 func (x *TaskCSIPluginConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 390 var h codecSelfer100 391 z, r := codec1978.GenHelperDecoder(d) 392 _, _, _ = h, z, r 393 var yyj7 int 394 var yyb7 bool 395 var yyhl7 bool = l >= 0 396 yyj7++ 397 if yyhl7 { 398 yyb7 = yyj7 > l 399 } else { 400 yyb7 = r.CheckBreak() 401 } 402 if yyb7 { 403 r.ReadArrayEnd() 404 return 405 } 406 r.ReadArrayElem() 407 if r.TryDecodeAsNil() { 408 x.ID = "" 409 } else { 410 x.ID = (string)(r.DecodeString()) 411 } 412 yyj7++ 413 if yyhl7 { 414 yyb7 = yyj7 > l 415 } else { 416 yyb7 = r.CheckBreak() 417 } 418 if yyb7 { 419 r.ReadArrayEnd() 420 return 421 } 422 r.ReadArrayElem() 423 if r.TryDecodeAsNil() { 424 x.Type = "" 425 } else { 426 x.Type.CodecDecodeSelf(d) 427 } 428 yyj7++ 429 if yyhl7 { 430 yyb7 = yyj7 > l 431 } else { 432 yyb7 = r.CheckBreak() 433 } 434 if yyb7 { 435 r.ReadArrayEnd() 436 return 437 } 438 r.ReadArrayElem() 439 if r.TryDecodeAsNil() { 440 x.MountDir = "" 441 } else { 442 x.MountDir = (string)(r.DecodeString()) 443 } 444 for { 445 yyj7++ 446 if yyhl7 { 447 yyb7 = yyj7 > l 448 } else { 449 yyb7 = r.CheckBreak() 450 } 451 if yyb7 { 452 break 453 } 454 r.ReadArrayElem() 455 z.DecStructFieldNotFound(yyj7-1, "") 456 } 457 r.ReadArrayEnd() 458 } 459 460 func (x CSIVolumeAttachmentMode) CodecEncodeSelf(e *codec1978.Encoder) { 461 var h codecSelfer100 462 z, r := codec1978.GenHelperEncoder(e) 463 _, _, _ = h, z, r 464 if false { 465 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 466 z.EncExtension(x, yyxt1) 467 } else { 468 if z.EncBasicHandle().StringToRaw { 469 r.EncodeStringBytesRaw(z.BytesView(string(x))) 470 } else { 471 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 472 } 473 } 474 } 475 476 func (x *CSIVolumeAttachmentMode) CodecDecodeSelf(d *codec1978.Decoder) { 477 var h codecSelfer100 478 z, r := codec1978.GenHelperDecoder(d) 479 _, _, _ = h, z, r 480 if false { 481 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 482 z.DecExtension(x, yyxt1) 483 } else { 484 *x = (CSIVolumeAttachmentMode)(r.DecodeString()) 485 } 486 } 487 488 func (x CSIVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { 489 var h codecSelfer100 490 z, r := codec1978.GenHelperEncoder(e) 491 _, _, _ = h, z, r 492 if false { 493 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 494 z.EncExtension(x, yyxt1) 495 } else { 496 if z.EncBasicHandle().StringToRaw { 497 r.EncodeStringBytesRaw(z.BytesView(string(x))) 498 } else { 499 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 500 } 501 } 502 } 503 504 func (x *CSIVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { 505 var h codecSelfer100 506 z, r := codec1978.GenHelperDecoder(d) 507 _, _, _ = h, z, r 508 if false { 509 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 510 z.DecExtension(x, yyxt1) 511 } else { 512 *x = (CSIVolumeAccessMode)(r.DecodeString()) 513 } 514 } 515 516 func (x *CSIMountOptions) CodecEncodeSelf(e *codec1978.Encoder) { 517 var h codecSelfer100 518 z, r := codec1978.GenHelperEncoder(e) 519 _, _, _ = h, z, r 520 if x == nil { 521 r.EncodeNil() 522 } else { 523 if false { 524 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 525 z.EncExtension(x, yyxt1) 526 } else { 527 yysep2 := !z.EncBinary() 528 yy2arr2 := z.EncBasicHandle().StructToArray 529 _, _ = yysep2, yy2arr2 530 const yyr2 bool = false // struct tag has 'toArray' 531 if yyr2 || yy2arr2 { 532 r.WriteArrayStart(2) 533 } else { 534 r.WriteMapStart(2) 535 } 536 if yyr2 || yy2arr2 { 537 r.WriteArrayElem() 538 if false { 539 } else { 540 if z.EncBasicHandle().StringToRaw { 541 r.EncodeStringBytesRaw(z.BytesView(string(x.FSType))) 542 } else { 543 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FSType)) 544 } 545 } 546 } else { 547 r.WriteMapElemKey() 548 if z.IsJSONHandle() { 549 z.WriteStr("\"FSType\"") 550 } else { 551 r.EncodeStringEnc(codecSelferCcUTF8100, `FSType`) 552 } 553 r.WriteMapElemValue() 554 if false { 555 } else { 556 if z.EncBasicHandle().StringToRaw { 557 r.EncodeStringBytesRaw(z.BytesView(string(x.FSType))) 558 } else { 559 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FSType)) 560 } 561 } 562 } 563 if yyr2 || yy2arr2 { 564 r.WriteArrayElem() 565 if x.MountFlags == nil { 566 r.EncodeNil() 567 } else { 568 if false { 569 } else { 570 z.F.EncSliceStringV(x.MountFlags, e) 571 } 572 } 573 } else { 574 r.WriteMapElemKey() 575 if z.IsJSONHandle() { 576 z.WriteStr("\"MountFlags\"") 577 } else { 578 r.EncodeStringEnc(codecSelferCcUTF8100, `MountFlags`) 579 } 580 r.WriteMapElemValue() 581 if x.MountFlags == nil { 582 r.EncodeNil() 583 } else { 584 if false { 585 } else { 586 z.F.EncSliceStringV(x.MountFlags, e) 587 } 588 } 589 } 590 if yyr2 || yy2arr2 { 591 r.WriteArrayEnd() 592 } else { 593 r.WriteMapEnd() 594 } 595 } 596 } 597 } 598 599 func (x *CSIMountOptions) CodecDecodeSelf(d *codec1978.Decoder) { 600 var h codecSelfer100 601 z, r := codec1978.GenHelperDecoder(d) 602 _, _, _ = h, z, r 603 if false { 604 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 605 z.DecExtension(x, yyxt1) 606 } else { 607 yyct2 := r.ContainerType() 608 if yyct2 == codecSelferValueTypeMap100 { 609 yyl2 := r.ReadMapStart() 610 if yyl2 == 0 { 611 r.ReadMapEnd() 612 } else { 613 x.codecDecodeSelfFromMap(yyl2, d) 614 } 615 } else if yyct2 == codecSelferValueTypeArray100 { 616 yyl2 := r.ReadArrayStart() 617 if yyl2 == 0 { 618 r.ReadArrayEnd() 619 } else { 620 x.codecDecodeSelfFromArray(yyl2, d) 621 } 622 } else { 623 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 624 } 625 } 626 } 627 628 func (x *CSIMountOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 629 var h codecSelfer100 630 z, r := codec1978.GenHelperDecoder(d) 631 _, _, _ = h, z, r 632 var yyhl3 bool = l >= 0 633 for yyj3 := 0; ; yyj3++ { 634 if yyhl3 { 635 if yyj3 >= l { 636 break 637 } 638 } else { 639 if r.CheckBreak() { 640 break 641 } 642 } 643 r.ReadMapElemKey() 644 yys3 := z.StringView(r.DecodeStringAsBytes()) 645 r.ReadMapElemValue() 646 switch yys3 { 647 case "FSType": 648 if r.TryDecodeAsNil() { 649 x.FSType = "" 650 } else { 651 x.FSType = (string)(r.DecodeString()) 652 } 653 case "MountFlags": 654 if r.TryDecodeAsNil() { 655 x.MountFlags = nil 656 } else { 657 if false { 658 } else { 659 z.F.DecSliceStringX(&x.MountFlags, d) 660 } 661 } 662 default: 663 z.DecStructFieldNotFound(-1, yys3) 664 } // end switch yys3 665 } // end for yyj3 666 r.ReadMapEnd() 667 } 668 669 func (x *CSIMountOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 670 var h codecSelfer100 671 z, r := codec1978.GenHelperDecoder(d) 672 _, _, _ = h, z, r 673 var yyj7 int 674 var yyb7 bool 675 var yyhl7 bool = l >= 0 676 yyj7++ 677 if yyhl7 { 678 yyb7 = yyj7 > l 679 } else { 680 yyb7 = r.CheckBreak() 681 } 682 if yyb7 { 683 r.ReadArrayEnd() 684 return 685 } 686 r.ReadArrayElem() 687 if r.TryDecodeAsNil() { 688 x.FSType = "" 689 } else { 690 x.FSType = (string)(r.DecodeString()) 691 } 692 yyj7++ 693 if yyhl7 { 694 yyb7 = yyj7 > l 695 } else { 696 yyb7 = r.CheckBreak() 697 } 698 if yyb7 { 699 r.ReadArrayEnd() 700 return 701 } 702 r.ReadArrayElem() 703 if r.TryDecodeAsNil() { 704 x.MountFlags = nil 705 } else { 706 if false { 707 } else { 708 z.F.DecSliceStringX(&x.MountFlags, d) 709 } 710 } 711 for { 712 yyj7++ 713 if yyhl7 { 714 yyb7 = yyj7 > l 715 } else { 716 yyb7 = r.CheckBreak() 717 } 718 if yyb7 { 719 break 720 } 721 r.ReadArrayElem() 722 z.DecStructFieldNotFound(yyj7-1, "") 723 } 724 r.ReadArrayEnd() 725 } 726 727 func (x CSISecrets) CodecEncodeSelf(e *codec1978.Encoder) { 728 var h codecSelfer100 729 z, r := codec1978.GenHelperEncoder(e) 730 _, _, _ = h, z, r 731 if x == nil { 732 r.EncodeNil() 733 } else { 734 if false { 735 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 736 z.EncExtension(x, yyxt1) 737 } else { 738 h.encCSISecrets((CSISecrets)(x), e) 739 } 740 } 741 } 742 743 func (x *CSISecrets) CodecDecodeSelf(d *codec1978.Decoder) { 744 var h codecSelfer100 745 z, r := codec1978.GenHelperDecoder(d) 746 _, _, _ = h, z, r 747 if false { 748 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 749 z.DecExtension(x, yyxt1) 750 } else { 751 h.decCSISecrets((*CSISecrets)(x), d) 752 } 753 } 754 755 func (x *CSIVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { 756 var h codecSelfer100 757 z, r := codec1978.GenHelperEncoder(e) 758 _, _, _ = h, z, r 759 if x == nil { 760 r.EncodeNil() 761 } else { 762 if false { 763 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 764 z.EncExtension(x, yyxt1) 765 } else { 766 yysep2 := !z.EncBinary() 767 yy2arr2 := z.EncBasicHandle().StructToArray 768 _, _ = yysep2, yy2arr2 769 const yyr2 bool = false // struct tag has 'toArray' 770 if yyr2 || yy2arr2 { 771 r.WriteArrayStart(4) 772 } else { 773 r.WriteMapStart(4) 774 } 775 if yyr2 || yy2arr2 { 776 r.WriteArrayElem() 777 if false { 778 } else { 779 if z.EncBasicHandle().StringToRaw { 780 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 781 } else { 782 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 783 } 784 } 785 } else { 786 r.WriteMapElemKey() 787 if z.IsJSONHandle() { 788 z.WriteStr("\"AllocationID\"") 789 } else { 790 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationID`) 791 } 792 r.WriteMapElemValue() 793 if false { 794 } else { 795 if z.EncBasicHandle().StringToRaw { 796 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 797 } else { 798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 799 } 800 } 801 } 802 if yyr2 || yy2arr2 { 803 r.WriteArrayElem() 804 if false { 805 } else { 806 if z.EncBasicHandle().StringToRaw { 807 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 808 } else { 809 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 810 } 811 } 812 } else { 813 r.WriteMapElemKey() 814 if z.IsJSONHandle() { 815 z.WriteStr("\"NodeID\"") 816 } else { 817 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 818 } 819 r.WriteMapElemValue() 820 if false { 821 } else { 822 if z.EncBasicHandle().StringToRaw { 823 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 824 } else { 825 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 826 } 827 } 828 } 829 if yyr2 || yy2arr2 { 830 r.WriteArrayElem() 831 x.Mode.CodecEncodeSelf(e) 832 } else { 833 r.WriteMapElemKey() 834 if z.IsJSONHandle() { 835 z.WriteStr("\"Mode\"") 836 } else { 837 r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) 838 } 839 r.WriteMapElemValue() 840 x.Mode.CodecEncodeSelf(e) 841 } 842 if yyr2 || yy2arr2 { 843 r.WriteArrayElem() 844 x.State.CodecEncodeSelf(e) 845 } else { 846 r.WriteMapElemKey() 847 if z.IsJSONHandle() { 848 z.WriteStr("\"State\"") 849 } else { 850 r.EncodeStringEnc(codecSelferCcUTF8100, `State`) 851 } 852 r.WriteMapElemValue() 853 x.State.CodecEncodeSelf(e) 854 } 855 if yyr2 || yy2arr2 { 856 r.WriteArrayEnd() 857 } else { 858 r.WriteMapEnd() 859 } 860 } 861 } 862 } 863 864 func (x *CSIVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { 865 var h codecSelfer100 866 z, r := codec1978.GenHelperDecoder(d) 867 _, _, _ = h, z, r 868 if false { 869 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 870 z.DecExtension(x, yyxt1) 871 } else { 872 yyct2 := r.ContainerType() 873 if yyct2 == codecSelferValueTypeMap100 { 874 yyl2 := r.ReadMapStart() 875 if yyl2 == 0 { 876 r.ReadMapEnd() 877 } else { 878 x.codecDecodeSelfFromMap(yyl2, d) 879 } 880 } else if yyct2 == codecSelferValueTypeArray100 { 881 yyl2 := r.ReadArrayStart() 882 if yyl2 == 0 { 883 r.ReadArrayEnd() 884 } else { 885 x.codecDecodeSelfFromArray(yyl2, d) 886 } 887 } else { 888 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 889 } 890 } 891 } 892 893 func (x *CSIVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 894 var h codecSelfer100 895 z, r := codec1978.GenHelperDecoder(d) 896 _, _, _ = h, z, r 897 var yyhl3 bool = l >= 0 898 for yyj3 := 0; ; yyj3++ { 899 if yyhl3 { 900 if yyj3 >= l { 901 break 902 } 903 } else { 904 if r.CheckBreak() { 905 break 906 } 907 } 908 r.ReadMapElemKey() 909 yys3 := z.StringView(r.DecodeStringAsBytes()) 910 r.ReadMapElemValue() 911 switch yys3 { 912 case "AllocationID": 913 if r.TryDecodeAsNil() { 914 x.AllocationID = "" 915 } else { 916 x.AllocationID = (string)(r.DecodeString()) 917 } 918 case "NodeID": 919 if r.TryDecodeAsNil() { 920 x.NodeID = "" 921 } else { 922 x.NodeID = (string)(r.DecodeString()) 923 } 924 case "Mode": 925 if r.TryDecodeAsNil() { 926 x.Mode = 0 927 } else { 928 x.Mode.CodecDecodeSelf(d) 929 } 930 case "State": 931 if r.TryDecodeAsNil() { 932 x.State = 0 933 } else { 934 x.State.CodecDecodeSelf(d) 935 } 936 default: 937 z.DecStructFieldNotFound(-1, yys3) 938 } // end switch yys3 939 } // end for yyj3 940 r.ReadMapEnd() 941 } 942 943 func (x *CSIVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 944 var h codecSelfer100 945 z, r := codec1978.GenHelperDecoder(d) 946 _, _, _ = h, z, r 947 var yyj8 int 948 var yyb8 bool 949 var yyhl8 bool = l >= 0 950 yyj8++ 951 if yyhl8 { 952 yyb8 = yyj8 > l 953 } else { 954 yyb8 = r.CheckBreak() 955 } 956 if yyb8 { 957 r.ReadArrayEnd() 958 return 959 } 960 r.ReadArrayElem() 961 if r.TryDecodeAsNil() { 962 x.AllocationID = "" 963 } else { 964 x.AllocationID = (string)(r.DecodeString()) 965 } 966 yyj8++ 967 if yyhl8 { 968 yyb8 = yyj8 > l 969 } else { 970 yyb8 = r.CheckBreak() 971 } 972 if yyb8 { 973 r.ReadArrayEnd() 974 return 975 } 976 r.ReadArrayElem() 977 if r.TryDecodeAsNil() { 978 x.NodeID = "" 979 } else { 980 x.NodeID = (string)(r.DecodeString()) 981 } 982 yyj8++ 983 if yyhl8 { 984 yyb8 = yyj8 > l 985 } else { 986 yyb8 = r.CheckBreak() 987 } 988 if yyb8 { 989 r.ReadArrayEnd() 990 return 991 } 992 r.ReadArrayElem() 993 if r.TryDecodeAsNil() { 994 x.Mode = 0 995 } else { 996 x.Mode.CodecDecodeSelf(d) 997 } 998 yyj8++ 999 if yyhl8 { 1000 yyb8 = yyj8 > l 1001 } else { 1002 yyb8 = r.CheckBreak() 1003 } 1004 if yyb8 { 1005 r.ReadArrayEnd() 1006 return 1007 } 1008 r.ReadArrayElem() 1009 if r.TryDecodeAsNil() { 1010 x.State = 0 1011 } else { 1012 x.State.CodecDecodeSelf(d) 1013 } 1014 for { 1015 yyj8++ 1016 if yyhl8 { 1017 yyb8 = yyj8 > l 1018 } else { 1019 yyb8 = r.CheckBreak() 1020 } 1021 if yyb8 { 1022 break 1023 } 1024 r.ReadArrayElem() 1025 z.DecStructFieldNotFound(yyj8-1, "") 1026 } 1027 r.ReadArrayEnd() 1028 } 1029 1030 func (x CSIVolumeClaimState) CodecEncodeSelf(e *codec1978.Encoder) { 1031 var h codecSelfer100 1032 z, r := codec1978.GenHelperEncoder(e) 1033 _, _, _ = h, z, r 1034 if false { 1035 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1036 z.EncExtension(x, yyxt1) 1037 } else { 1038 r.EncodeInt(int64(x)) 1039 } 1040 } 1041 1042 func (x *CSIVolumeClaimState) CodecDecodeSelf(d *codec1978.Decoder) { 1043 var h codecSelfer100 1044 z, r := codec1978.GenHelperDecoder(d) 1045 _, _, _ = h, z, r 1046 if false { 1047 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1048 z.DecExtension(x, yyxt1) 1049 } else { 1050 *x = (CSIVolumeClaimState)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1051 } 1052 } 1053 1054 func (x *CSIVolume) CodecEncodeSelf(e *codec1978.Encoder) { 1055 var h codecSelfer100 1056 z, r := codec1978.GenHelperEncoder(e) 1057 _, _, _ = h, z, r 1058 if x == nil { 1059 r.EncodeNil() 1060 } else { 1061 if false { 1062 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1063 z.EncExtension(x, yyxt1) 1064 } else { 1065 yysep2 := !z.EncBinary() 1066 yy2arr2 := z.EncBasicHandle().StructToArray 1067 _, _ = yysep2, yy2arr2 1068 const yyr2 bool = false // struct tag has 'toArray' 1069 if yyr2 || yy2arr2 { 1070 r.WriteArrayStart(28) 1071 } else { 1072 r.WriteMapStart(28) 1073 } 1074 if yyr2 || yy2arr2 { 1075 r.WriteArrayElem() 1076 if false { 1077 } else { 1078 if z.EncBasicHandle().StringToRaw { 1079 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 1080 } else { 1081 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 1082 } 1083 } 1084 } else { 1085 r.WriteMapElemKey() 1086 if z.IsJSONHandle() { 1087 z.WriteStr("\"ID\"") 1088 } else { 1089 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 1090 } 1091 r.WriteMapElemValue() 1092 if false { 1093 } else { 1094 if z.EncBasicHandle().StringToRaw { 1095 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 1096 } else { 1097 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 1098 } 1099 } 1100 } 1101 if yyr2 || yy2arr2 { 1102 r.WriteArrayElem() 1103 if false { 1104 } else { 1105 if z.EncBasicHandle().StringToRaw { 1106 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 1107 } else { 1108 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 1109 } 1110 } 1111 } else { 1112 r.WriteMapElemKey() 1113 if z.IsJSONHandle() { 1114 z.WriteStr("\"Name\"") 1115 } else { 1116 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 1117 } 1118 r.WriteMapElemValue() 1119 if false { 1120 } else { 1121 if z.EncBasicHandle().StringToRaw { 1122 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 1123 } else { 1124 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 1125 } 1126 } 1127 } 1128 if yyr2 || yy2arr2 { 1129 r.WriteArrayElem() 1130 if false { 1131 } else { 1132 if z.EncBasicHandle().StringToRaw { 1133 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 1134 } else { 1135 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 1136 } 1137 } 1138 } else { 1139 r.WriteMapElemKey() 1140 if z.IsJSONHandle() { 1141 z.WriteStr("\"ExternalID\"") 1142 } else { 1143 r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) 1144 } 1145 r.WriteMapElemValue() 1146 if false { 1147 } else { 1148 if z.EncBasicHandle().StringToRaw { 1149 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 1150 } else { 1151 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 1152 } 1153 } 1154 } 1155 if yyr2 || yy2arr2 { 1156 r.WriteArrayElem() 1157 if false { 1158 } else { 1159 if z.EncBasicHandle().StringToRaw { 1160 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 1161 } else { 1162 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 1163 } 1164 } 1165 } else { 1166 r.WriteMapElemKey() 1167 if z.IsJSONHandle() { 1168 z.WriteStr("\"Namespace\"") 1169 } else { 1170 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 1171 } 1172 r.WriteMapElemValue() 1173 if false { 1174 } else { 1175 if z.EncBasicHandle().StringToRaw { 1176 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 1177 } else { 1178 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 1179 } 1180 } 1181 } 1182 if yyr2 || yy2arr2 { 1183 r.WriteArrayElem() 1184 if x.Topologies == nil { 1185 r.EncodeNil() 1186 } else { 1187 if false { 1188 } else { 1189 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 1190 } 1191 } 1192 } else { 1193 r.WriteMapElemKey() 1194 if z.IsJSONHandle() { 1195 z.WriteStr("\"Topologies\"") 1196 } else { 1197 r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) 1198 } 1199 r.WriteMapElemValue() 1200 if x.Topologies == nil { 1201 r.EncodeNil() 1202 } else { 1203 if false { 1204 } else { 1205 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 1206 } 1207 } 1208 } 1209 if yyr2 || yy2arr2 { 1210 r.WriteArrayElem() 1211 x.AccessMode.CodecEncodeSelf(e) 1212 } else { 1213 r.WriteMapElemKey() 1214 if z.IsJSONHandle() { 1215 z.WriteStr("\"AccessMode\"") 1216 } else { 1217 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) 1218 } 1219 r.WriteMapElemValue() 1220 x.AccessMode.CodecEncodeSelf(e) 1221 } 1222 if yyr2 || yy2arr2 { 1223 r.WriteArrayElem() 1224 x.AttachmentMode.CodecEncodeSelf(e) 1225 } else { 1226 r.WriteMapElemKey() 1227 if z.IsJSONHandle() { 1228 z.WriteStr("\"AttachmentMode\"") 1229 } else { 1230 r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) 1231 } 1232 r.WriteMapElemValue() 1233 x.AttachmentMode.CodecEncodeSelf(e) 1234 } 1235 var yyn24 bool 1236 if x.MountOptions == nil { 1237 yyn24 = true 1238 goto LABEL24 1239 } 1240 LABEL24: 1241 if yyr2 || yy2arr2 { 1242 if yyn24 { 1243 r.WriteArrayElem() 1244 r.EncodeNil() 1245 } else { 1246 r.WriteArrayElem() 1247 if x.MountOptions == nil { 1248 r.EncodeNil() 1249 } else { 1250 x.MountOptions.CodecEncodeSelf(e) 1251 } 1252 } 1253 } else { 1254 r.WriteMapElemKey() 1255 if z.IsJSONHandle() { 1256 z.WriteStr("\"MountOptions\"") 1257 } else { 1258 r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) 1259 } 1260 r.WriteMapElemValue() 1261 if yyn24 { 1262 r.EncodeNil() 1263 } else { 1264 if x.MountOptions == nil { 1265 r.EncodeNil() 1266 } else { 1267 x.MountOptions.CodecEncodeSelf(e) 1268 } 1269 } 1270 } 1271 if yyr2 || yy2arr2 { 1272 r.WriteArrayElem() 1273 if x.Secrets == nil { 1274 r.EncodeNil() 1275 } else { 1276 x.Secrets.CodecEncodeSelf(e) 1277 } 1278 } else { 1279 r.WriteMapElemKey() 1280 if z.IsJSONHandle() { 1281 z.WriteStr("\"Secrets\"") 1282 } else { 1283 r.EncodeStringEnc(codecSelferCcUTF8100, `Secrets`) 1284 } 1285 r.WriteMapElemValue() 1286 if x.Secrets == nil { 1287 r.EncodeNil() 1288 } else { 1289 x.Secrets.CodecEncodeSelf(e) 1290 } 1291 } 1292 if yyr2 || yy2arr2 { 1293 r.WriteArrayElem() 1294 if x.Parameters == nil { 1295 r.EncodeNil() 1296 } else { 1297 if false { 1298 } else { 1299 z.F.EncMapStringStringV(x.Parameters, e) 1300 } 1301 } 1302 } else { 1303 r.WriteMapElemKey() 1304 if z.IsJSONHandle() { 1305 z.WriteStr("\"Parameters\"") 1306 } else { 1307 r.EncodeStringEnc(codecSelferCcUTF8100, `Parameters`) 1308 } 1309 r.WriteMapElemValue() 1310 if x.Parameters == nil { 1311 r.EncodeNil() 1312 } else { 1313 if false { 1314 } else { 1315 z.F.EncMapStringStringV(x.Parameters, e) 1316 } 1317 } 1318 } 1319 if yyr2 || yy2arr2 { 1320 r.WriteArrayElem() 1321 if x.Context == nil { 1322 r.EncodeNil() 1323 } else { 1324 if false { 1325 } else { 1326 z.F.EncMapStringStringV(x.Context, e) 1327 } 1328 } 1329 } else { 1330 r.WriteMapElemKey() 1331 if z.IsJSONHandle() { 1332 z.WriteStr("\"Context\"") 1333 } else { 1334 r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) 1335 } 1336 r.WriteMapElemValue() 1337 if x.Context == nil { 1338 r.EncodeNil() 1339 } else { 1340 if false { 1341 } else { 1342 z.F.EncMapStringStringV(x.Context, e) 1343 } 1344 } 1345 } 1346 if yyr2 || yy2arr2 { 1347 r.WriteArrayElem() 1348 if x.ReadAllocs == nil { 1349 r.EncodeNil() 1350 } else { 1351 if false { 1352 } else { 1353 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) 1354 } 1355 } 1356 } else { 1357 r.WriteMapElemKey() 1358 if z.IsJSONHandle() { 1359 z.WriteStr("\"ReadAllocs\"") 1360 } else { 1361 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadAllocs`) 1362 } 1363 r.WriteMapElemValue() 1364 if x.ReadAllocs == nil { 1365 r.EncodeNil() 1366 } else { 1367 if false { 1368 } else { 1369 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.ReadAllocs), e) 1370 } 1371 } 1372 } 1373 if yyr2 || yy2arr2 { 1374 r.WriteArrayElem() 1375 if x.WriteAllocs == nil { 1376 r.EncodeNil() 1377 } else { 1378 if false { 1379 } else { 1380 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) 1381 } 1382 } 1383 } else { 1384 r.WriteMapElemKey() 1385 if z.IsJSONHandle() { 1386 z.WriteStr("\"WriteAllocs\"") 1387 } else { 1388 r.EncodeStringEnc(codecSelferCcUTF8100, `WriteAllocs`) 1389 } 1390 r.WriteMapElemValue() 1391 if x.WriteAllocs == nil { 1392 r.EncodeNil() 1393 } else { 1394 if false { 1395 } else { 1396 h.encMapstringPtrtoAllocation((map[string]*Allocation)(x.WriteAllocs), e) 1397 } 1398 } 1399 } 1400 if yyr2 || yy2arr2 { 1401 r.WriteArrayElem() 1402 if x.ReadClaims == nil { 1403 r.EncodeNil() 1404 } else { 1405 if false { 1406 } else { 1407 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.ReadClaims), e) 1408 } 1409 } 1410 } else { 1411 r.WriteMapElemKey() 1412 if z.IsJSONHandle() { 1413 z.WriteStr("\"ReadClaims\"") 1414 } else { 1415 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadClaims`) 1416 } 1417 r.WriteMapElemValue() 1418 if x.ReadClaims == nil { 1419 r.EncodeNil() 1420 } else { 1421 if false { 1422 } else { 1423 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.ReadClaims), e) 1424 } 1425 } 1426 } 1427 if yyr2 || yy2arr2 { 1428 r.WriteArrayElem() 1429 if x.WriteClaims == nil { 1430 r.EncodeNil() 1431 } else { 1432 if false { 1433 } else { 1434 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.WriteClaims), e) 1435 } 1436 } 1437 } else { 1438 r.WriteMapElemKey() 1439 if z.IsJSONHandle() { 1440 z.WriteStr("\"WriteClaims\"") 1441 } else { 1442 r.EncodeStringEnc(codecSelferCcUTF8100, `WriteClaims`) 1443 } 1444 r.WriteMapElemValue() 1445 if x.WriteClaims == nil { 1446 r.EncodeNil() 1447 } else { 1448 if false { 1449 } else { 1450 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.WriteClaims), e) 1451 } 1452 } 1453 } 1454 if yyr2 || yy2arr2 { 1455 r.WriteArrayElem() 1456 if x.PastClaims == nil { 1457 r.EncodeNil() 1458 } else { 1459 if false { 1460 } else { 1461 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.PastClaims), e) 1462 } 1463 } 1464 } else { 1465 r.WriteMapElemKey() 1466 if z.IsJSONHandle() { 1467 z.WriteStr("\"PastClaims\"") 1468 } else { 1469 r.EncodeStringEnc(codecSelferCcUTF8100, `PastClaims`) 1470 } 1471 r.WriteMapElemValue() 1472 if x.PastClaims == nil { 1473 r.EncodeNil() 1474 } else { 1475 if false { 1476 } else { 1477 h.encMapstringPtrtoCSIVolumeClaim((map[string]*CSIVolumeClaim)(x.PastClaims), e) 1478 } 1479 } 1480 } 1481 if yyr2 || yy2arr2 { 1482 r.WriteArrayElem() 1483 if false { 1484 } else { 1485 r.EncodeBool(bool(x.Schedulable)) 1486 } 1487 } else { 1488 r.WriteMapElemKey() 1489 if z.IsJSONHandle() { 1490 z.WriteStr("\"Schedulable\"") 1491 } else { 1492 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) 1493 } 1494 r.WriteMapElemValue() 1495 if false { 1496 } else { 1497 r.EncodeBool(bool(x.Schedulable)) 1498 } 1499 } 1500 if yyr2 || yy2arr2 { 1501 r.WriteArrayElem() 1502 if false { 1503 } else { 1504 if z.EncBasicHandle().StringToRaw { 1505 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 1506 } else { 1507 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 1508 } 1509 } 1510 } else { 1511 r.WriteMapElemKey() 1512 if z.IsJSONHandle() { 1513 z.WriteStr("\"PluginID\"") 1514 } else { 1515 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 1516 } 1517 r.WriteMapElemValue() 1518 if false { 1519 } else { 1520 if z.EncBasicHandle().StringToRaw { 1521 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 1522 } else { 1523 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 1524 } 1525 } 1526 } 1527 if yyr2 || yy2arr2 { 1528 r.WriteArrayElem() 1529 if false { 1530 } else { 1531 if z.EncBasicHandle().StringToRaw { 1532 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 1533 } else { 1534 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 1535 } 1536 } 1537 } else { 1538 r.WriteMapElemKey() 1539 if z.IsJSONHandle() { 1540 z.WriteStr("\"Provider\"") 1541 } else { 1542 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 1543 } 1544 r.WriteMapElemValue() 1545 if false { 1546 } else { 1547 if z.EncBasicHandle().StringToRaw { 1548 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 1549 } else { 1550 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 1551 } 1552 } 1553 } 1554 if yyr2 || yy2arr2 { 1555 r.WriteArrayElem() 1556 if false { 1557 } else { 1558 if z.EncBasicHandle().StringToRaw { 1559 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 1560 } else { 1561 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 1562 } 1563 } 1564 } else { 1565 r.WriteMapElemKey() 1566 if z.IsJSONHandle() { 1567 z.WriteStr("\"ProviderVersion\"") 1568 } else { 1569 r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) 1570 } 1571 r.WriteMapElemValue() 1572 if false { 1573 } else { 1574 if z.EncBasicHandle().StringToRaw { 1575 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 1576 } else { 1577 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 1578 } 1579 } 1580 } 1581 if yyr2 || yy2arr2 { 1582 r.WriteArrayElem() 1583 if false { 1584 } else { 1585 r.EncodeBool(bool(x.ControllerRequired)) 1586 } 1587 } else { 1588 r.WriteMapElemKey() 1589 if z.IsJSONHandle() { 1590 z.WriteStr("\"ControllerRequired\"") 1591 } else { 1592 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 1593 } 1594 r.WriteMapElemValue() 1595 if false { 1596 } else { 1597 r.EncodeBool(bool(x.ControllerRequired)) 1598 } 1599 } 1600 if yyr2 || yy2arr2 { 1601 r.WriteArrayElem() 1602 if false { 1603 } else { 1604 r.EncodeInt(int64(x.ControllersHealthy)) 1605 } 1606 } else { 1607 r.WriteMapElemKey() 1608 if z.IsJSONHandle() { 1609 z.WriteStr("\"ControllersHealthy\"") 1610 } else { 1611 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 1612 } 1613 r.WriteMapElemValue() 1614 if false { 1615 } else { 1616 r.EncodeInt(int64(x.ControllersHealthy)) 1617 } 1618 } 1619 if yyr2 || yy2arr2 { 1620 r.WriteArrayElem() 1621 if false { 1622 } else { 1623 r.EncodeInt(int64(x.ControllersExpected)) 1624 } 1625 } else { 1626 r.WriteMapElemKey() 1627 if z.IsJSONHandle() { 1628 z.WriteStr("\"ControllersExpected\"") 1629 } else { 1630 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 1631 } 1632 r.WriteMapElemValue() 1633 if false { 1634 } else { 1635 r.EncodeInt(int64(x.ControllersExpected)) 1636 } 1637 } 1638 if yyr2 || yy2arr2 { 1639 r.WriteArrayElem() 1640 if false { 1641 } else { 1642 r.EncodeInt(int64(x.NodesHealthy)) 1643 } 1644 } else { 1645 r.WriteMapElemKey() 1646 if z.IsJSONHandle() { 1647 z.WriteStr("\"NodesHealthy\"") 1648 } else { 1649 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 1650 } 1651 r.WriteMapElemValue() 1652 if false { 1653 } else { 1654 r.EncodeInt(int64(x.NodesHealthy)) 1655 } 1656 } 1657 if yyr2 || yy2arr2 { 1658 r.WriteArrayElem() 1659 if false { 1660 } else { 1661 r.EncodeInt(int64(x.NodesExpected)) 1662 } 1663 } else { 1664 r.WriteMapElemKey() 1665 if z.IsJSONHandle() { 1666 z.WriteStr("\"NodesExpected\"") 1667 } else { 1668 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 1669 } 1670 r.WriteMapElemValue() 1671 if false { 1672 } else { 1673 r.EncodeInt(int64(x.NodesExpected)) 1674 } 1675 } 1676 if yyr2 || yy2arr2 { 1677 r.WriteArrayElem() 1678 if false { 1679 } else if !z.EncBasicHandle().TimeNotBuiltin { 1680 r.EncodeTime(x.ResourceExhausted) 1681 } else if yyxt79 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt79 != nil { 1682 z.EncExtension(x.ResourceExhausted, yyxt79) 1683 } else if z.EncBinary() { 1684 z.EncBinaryMarshal(x.ResourceExhausted) 1685 } else if !z.EncBinary() && z.IsJSONHandle() { 1686 z.EncJSONMarshal(x.ResourceExhausted) 1687 } else { 1688 z.EncFallback(x.ResourceExhausted) 1689 } 1690 } else { 1691 r.WriteMapElemKey() 1692 if z.IsJSONHandle() { 1693 z.WriteStr("\"ResourceExhausted\"") 1694 } else { 1695 r.EncodeStringEnc(codecSelferCcUTF8100, `ResourceExhausted`) 1696 } 1697 r.WriteMapElemValue() 1698 if false { 1699 } else if !z.EncBasicHandle().TimeNotBuiltin { 1700 r.EncodeTime(x.ResourceExhausted) 1701 } else if yyxt80 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt80 != nil { 1702 z.EncExtension(x.ResourceExhausted, yyxt80) 1703 } else if z.EncBinary() { 1704 z.EncBinaryMarshal(x.ResourceExhausted) 1705 } else if !z.EncBinary() && z.IsJSONHandle() { 1706 z.EncJSONMarshal(x.ResourceExhausted) 1707 } else { 1708 z.EncFallback(x.ResourceExhausted) 1709 } 1710 } 1711 if yyr2 || yy2arr2 { 1712 r.WriteArrayElem() 1713 if false { 1714 } else { 1715 r.EncodeUint(uint64(x.CreateIndex)) 1716 } 1717 } else { 1718 r.WriteMapElemKey() 1719 if z.IsJSONHandle() { 1720 z.WriteStr("\"CreateIndex\"") 1721 } else { 1722 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 1723 } 1724 r.WriteMapElemValue() 1725 if false { 1726 } else { 1727 r.EncodeUint(uint64(x.CreateIndex)) 1728 } 1729 } 1730 if yyr2 || yy2arr2 { 1731 r.WriteArrayElem() 1732 if false { 1733 } else { 1734 r.EncodeUint(uint64(x.ModifyIndex)) 1735 } 1736 } else { 1737 r.WriteMapElemKey() 1738 if z.IsJSONHandle() { 1739 z.WriteStr("\"ModifyIndex\"") 1740 } else { 1741 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 1742 } 1743 r.WriteMapElemValue() 1744 if false { 1745 } else { 1746 r.EncodeUint(uint64(x.ModifyIndex)) 1747 } 1748 } 1749 if yyr2 || yy2arr2 { 1750 r.WriteArrayEnd() 1751 } else { 1752 r.WriteMapEnd() 1753 } 1754 } 1755 } 1756 } 1757 1758 func (x *CSIVolume) CodecDecodeSelf(d *codec1978.Decoder) { 1759 var h codecSelfer100 1760 z, r := codec1978.GenHelperDecoder(d) 1761 _, _, _ = h, z, r 1762 if false { 1763 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 1764 z.DecExtension(x, yyxt1) 1765 } else { 1766 yyct2 := r.ContainerType() 1767 if yyct2 == codecSelferValueTypeMap100 { 1768 yyl2 := r.ReadMapStart() 1769 if yyl2 == 0 { 1770 r.ReadMapEnd() 1771 } else { 1772 x.codecDecodeSelfFromMap(yyl2, d) 1773 } 1774 } else if yyct2 == codecSelferValueTypeArray100 { 1775 yyl2 := r.ReadArrayStart() 1776 if yyl2 == 0 { 1777 r.ReadArrayEnd() 1778 } else { 1779 x.codecDecodeSelfFromArray(yyl2, d) 1780 } 1781 } else { 1782 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 1783 } 1784 } 1785 } 1786 1787 func (x *CSIVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 1788 var h codecSelfer100 1789 z, r := codec1978.GenHelperDecoder(d) 1790 _, _, _ = h, z, r 1791 var yyhl3 bool = l >= 0 1792 for yyj3 := 0; ; yyj3++ { 1793 if yyhl3 { 1794 if yyj3 >= l { 1795 break 1796 } 1797 } else { 1798 if r.CheckBreak() { 1799 break 1800 } 1801 } 1802 r.ReadMapElemKey() 1803 yys3 := z.StringView(r.DecodeStringAsBytes()) 1804 r.ReadMapElemValue() 1805 switch yys3 { 1806 case "ID": 1807 if r.TryDecodeAsNil() { 1808 x.ID = "" 1809 } else { 1810 x.ID = (string)(r.DecodeString()) 1811 } 1812 case "Name": 1813 if r.TryDecodeAsNil() { 1814 x.Name = "" 1815 } else { 1816 x.Name = (string)(r.DecodeString()) 1817 } 1818 case "ExternalID": 1819 if r.TryDecodeAsNil() { 1820 x.ExternalID = "" 1821 } else { 1822 x.ExternalID = (string)(r.DecodeString()) 1823 } 1824 case "Namespace": 1825 if r.TryDecodeAsNil() { 1826 x.Namespace = "" 1827 } else { 1828 x.Namespace = (string)(r.DecodeString()) 1829 } 1830 case "Topologies": 1831 if r.TryDecodeAsNil() { 1832 x.Topologies = nil 1833 } else { 1834 if false { 1835 } else { 1836 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 1837 } 1838 } 1839 case "AccessMode": 1840 if r.TryDecodeAsNil() { 1841 x.AccessMode = "" 1842 } else { 1843 x.AccessMode.CodecDecodeSelf(d) 1844 } 1845 case "AttachmentMode": 1846 if r.TryDecodeAsNil() { 1847 x.AttachmentMode = "" 1848 } else { 1849 x.AttachmentMode.CodecDecodeSelf(d) 1850 } 1851 case "MountOptions": 1852 if r.TryDecodeAsNil() { 1853 if true && x.MountOptions != nil { 1854 x.MountOptions = nil 1855 } 1856 } else { 1857 if x.MountOptions == nil { 1858 x.MountOptions = new(CSIMountOptions) 1859 } 1860 1861 x.MountOptions.CodecDecodeSelf(d) 1862 } 1863 case "Secrets": 1864 if r.TryDecodeAsNil() { 1865 x.Secrets = nil 1866 } else { 1867 x.Secrets.CodecDecodeSelf(d) 1868 } 1869 case "Parameters": 1870 if r.TryDecodeAsNil() { 1871 x.Parameters = nil 1872 } else { 1873 if false { 1874 } else { 1875 z.F.DecMapStringStringX(&x.Parameters, d) 1876 } 1877 } 1878 case "Context": 1879 if r.TryDecodeAsNil() { 1880 x.Context = nil 1881 } else { 1882 if false { 1883 } else { 1884 z.F.DecMapStringStringX(&x.Context, d) 1885 } 1886 } 1887 case "ReadAllocs": 1888 if r.TryDecodeAsNil() { 1889 x.ReadAllocs = nil 1890 } else { 1891 if false { 1892 } else { 1893 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) 1894 } 1895 } 1896 case "WriteAllocs": 1897 if r.TryDecodeAsNil() { 1898 x.WriteAllocs = nil 1899 } else { 1900 if false { 1901 } else { 1902 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) 1903 } 1904 } 1905 case "ReadClaims": 1906 if r.TryDecodeAsNil() { 1907 x.ReadClaims = nil 1908 } else { 1909 if false { 1910 } else { 1911 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.ReadClaims), d) 1912 } 1913 } 1914 case "WriteClaims": 1915 if r.TryDecodeAsNil() { 1916 x.WriteClaims = nil 1917 } else { 1918 if false { 1919 } else { 1920 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.WriteClaims), d) 1921 } 1922 } 1923 case "PastClaims": 1924 if r.TryDecodeAsNil() { 1925 x.PastClaims = nil 1926 } else { 1927 if false { 1928 } else { 1929 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.PastClaims), d) 1930 } 1931 } 1932 case "Schedulable": 1933 if r.TryDecodeAsNil() { 1934 x.Schedulable = false 1935 } else { 1936 x.Schedulable = (bool)(r.DecodeBool()) 1937 } 1938 case "PluginID": 1939 if r.TryDecodeAsNil() { 1940 x.PluginID = "" 1941 } else { 1942 x.PluginID = (string)(r.DecodeString()) 1943 } 1944 case "Provider": 1945 if r.TryDecodeAsNil() { 1946 x.Provider = "" 1947 } else { 1948 x.Provider = (string)(r.DecodeString()) 1949 } 1950 case "ProviderVersion": 1951 if r.TryDecodeAsNil() { 1952 x.ProviderVersion = "" 1953 } else { 1954 x.ProviderVersion = (string)(r.DecodeString()) 1955 } 1956 case "ControllerRequired": 1957 if r.TryDecodeAsNil() { 1958 x.ControllerRequired = false 1959 } else { 1960 x.ControllerRequired = (bool)(r.DecodeBool()) 1961 } 1962 case "ControllersHealthy": 1963 if r.TryDecodeAsNil() { 1964 x.ControllersHealthy = 0 1965 } else { 1966 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1967 } 1968 case "ControllersExpected": 1969 if r.TryDecodeAsNil() { 1970 x.ControllersExpected = 0 1971 } else { 1972 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1973 } 1974 case "NodesHealthy": 1975 if r.TryDecodeAsNil() { 1976 x.NodesHealthy = 0 1977 } else { 1978 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1979 } 1980 case "NodesExpected": 1981 if r.TryDecodeAsNil() { 1982 x.NodesExpected = 0 1983 } else { 1984 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 1985 } 1986 case "ResourceExhausted": 1987 if r.TryDecodeAsNil() { 1988 x.ResourceExhausted = time.Time{} 1989 } else { 1990 if false { 1991 } else if !z.DecBasicHandle().TimeNotBuiltin { 1992 x.ResourceExhausted = r.DecodeTime() 1993 } else if yyxt38 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt38 != nil { 1994 z.DecExtension(x.ResourceExhausted, yyxt38) 1995 } else if z.DecBinary() { 1996 z.DecBinaryUnmarshal(&x.ResourceExhausted) 1997 } else if !z.DecBinary() && z.IsJSONHandle() { 1998 z.DecJSONUnmarshal(&x.ResourceExhausted) 1999 } else { 2000 z.DecFallback(&x.ResourceExhausted, false) 2001 } 2002 } 2003 case "CreateIndex": 2004 if r.TryDecodeAsNil() { 2005 x.CreateIndex = 0 2006 } else { 2007 x.CreateIndex = (uint64)(r.DecodeUint64()) 2008 } 2009 case "ModifyIndex": 2010 if r.TryDecodeAsNil() { 2011 x.ModifyIndex = 0 2012 } else { 2013 x.ModifyIndex = (uint64)(r.DecodeUint64()) 2014 } 2015 default: 2016 z.DecStructFieldNotFound(-1, yys3) 2017 } // end switch yys3 2018 } // end for yyj3 2019 r.ReadMapEnd() 2020 } 2021 2022 func (x *CSIVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 2023 var h codecSelfer100 2024 z, r := codec1978.GenHelperDecoder(d) 2025 _, _, _ = h, z, r 2026 var yyj41 int 2027 var yyb41 bool 2028 var yyhl41 bool = l >= 0 2029 yyj41++ 2030 if yyhl41 { 2031 yyb41 = yyj41 > l 2032 } else { 2033 yyb41 = r.CheckBreak() 2034 } 2035 if yyb41 { 2036 r.ReadArrayEnd() 2037 return 2038 } 2039 r.ReadArrayElem() 2040 if r.TryDecodeAsNil() { 2041 x.ID = "" 2042 } else { 2043 x.ID = (string)(r.DecodeString()) 2044 } 2045 yyj41++ 2046 if yyhl41 { 2047 yyb41 = yyj41 > l 2048 } else { 2049 yyb41 = r.CheckBreak() 2050 } 2051 if yyb41 { 2052 r.ReadArrayEnd() 2053 return 2054 } 2055 r.ReadArrayElem() 2056 if r.TryDecodeAsNil() { 2057 x.Name = "" 2058 } else { 2059 x.Name = (string)(r.DecodeString()) 2060 } 2061 yyj41++ 2062 if yyhl41 { 2063 yyb41 = yyj41 > l 2064 } else { 2065 yyb41 = r.CheckBreak() 2066 } 2067 if yyb41 { 2068 r.ReadArrayEnd() 2069 return 2070 } 2071 r.ReadArrayElem() 2072 if r.TryDecodeAsNil() { 2073 x.ExternalID = "" 2074 } else { 2075 x.ExternalID = (string)(r.DecodeString()) 2076 } 2077 yyj41++ 2078 if yyhl41 { 2079 yyb41 = yyj41 > l 2080 } else { 2081 yyb41 = r.CheckBreak() 2082 } 2083 if yyb41 { 2084 r.ReadArrayEnd() 2085 return 2086 } 2087 r.ReadArrayElem() 2088 if r.TryDecodeAsNil() { 2089 x.Namespace = "" 2090 } else { 2091 x.Namespace = (string)(r.DecodeString()) 2092 } 2093 yyj41++ 2094 if yyhl41 { 2095 yyb41 = yyj41 > l 2096 } else { 2097 yyb41 = r.CheckBreak() 2098 } 2099 if yyb41 { 2100 r.ReadArrayEnd() 2101 return 2102 } 2103 r.ReadArrayElem() 2104 if r.TryDecodeAsNil() { 2105 x.Topologies = nil 2106 } else { 2107 if false { 2108 } else { 2109 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 2110 } 2111 } 2112 yyj41++ 2113 if yyhl41 { 2114 yyb41 = yyj41 > l 2115 } else { 2116 yyb41 = r.CheckBreak() 2117 } 2118 if yyb41 { 2119 r.ReadArrayEnd() 2120 return 2121 } 2122 r.ReadArrayElem() 2123 if r.TryDecodeAsNil() { 2124 x.AccessMode = "" 2125 } else { 2126 x.AccessMode.CodecDecodeSelf(d) 2127 } 2128 yyj41++ 2129 if yyhl41 { 2130 yyb41 = yyj41 > l 2131 } else { 2132 yyb41 = r.CheckBreak() 2133 } 2134 if yyb41 { 2135 r.ReadArrayEnd() 2136 return 2137 } 2138 r.ReadArrayElem() 2139 if r.TryDecodeAsNil() { 2140 x.AttachmentMode = "" 2141 } else { 2142 x.AttachmentMode.CodecDecodeSelf(d) 2143 } 2144 yyj41++ 2145 if yyhl41 { 2146 yyb41 = yyj41 > l 2147 } else { 2148 yyb41 = r.CheckBreak() 2149 } 2150 if yyb41 { 2151 r.ReadArrayEnd() 2152 return 2153 } 2154 r.ReadArrayElem() 2155 if r.TryDecodeAsNil() { 2156 if true && x.MountOptions != nil { 2157 x.MountOptions = nil 2158 } 2159 } else { 2160 if x.MountOptions == nil { 2161 x.MountOptions = new(CSIMountOptions) 2162 } 2163 2164 x.MountOptions.CodecDecodeSelf(d) 2165 } 2166 yyj41++ 2167 if yyhl41 { 2168 yyb41 = yyj41 > l 2169 } else { 2170 yyb41 = r.CheckBreak() 2171 } 2172 if yyb41 { 2173 r.ReadArrayEnd() 2174 return 2175 } 2176 r.ReadArrayElem() 2177 if r.TryDecodeAsNil() { 2178 x.Secrets = nil 2179 } else { 2180 x.Secrets.CodecDecodeSelf(d) 2181 } 2182 yyj41++ 2183 if yyhl41 { 2184 yyb41 = yyj41 > l 2185 } else { 2186 yyb41 = r.CheckBreak() 2187 } 2188 if yyb41 { 2189 r.ReadArrayEnd() 2190 return 2191 } 2192 r.ReadArrayElem() 2193 if r.TryDecodeAsNil() { 2194 x.Parameters = nil 2195 } else { 2196 if false { 2197 } else { 2198 z.F.DecMapStringStringX(&x.Parameters, d) 2199 } 2200 } 2201 yyj41++ 2202 if yyhl41 { 2203 yyb41 = yyj41 > l 2204 } else { 2205 yyb41 = r.CheckBreak() 2206 } 2207 if yyb41 { 2208 r.ReadArrayEnd() 2209 return 2210 } 2211 r.ReadArrayElem() 2212 if r.TryDecodeAsNil() { 2213 x.Context = nil 2214 } else { 2215 if false { 2216 } else { 2217 z.F.DecMapStringStringX(&x.Context, d) 2218 } 2219 } 2220 yyj41++ 2221 if yyhl41 { 2222 yyb41 = yyj41 > l 2223 } else { 2224 yyb41 = r.CheckBreak() 2225 } 2226 if yyb41 { 2227 r.ReadArrayEnd() 2228 return 2229 } 2230 r.ReadArrayElem() 2231 if r.TryDecodeAsNil() { 2232 x.ReadAllocs = nil 2233 } else { 2234 if false { 2235 } else { 2236 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.ReadAllocs), d) 2237 } 2238 } 2239 yyj41++ 2240 if yyhl41 { 2241 yyb41 = yyj41 > l 2242 } else { 2243 yyb41 = r.CheckBreak() 2244 } 2245 if yyb41 { 2246 r.ReadArrayEnd() 2247 return 2248 } 2249 r.ReadArrayElem() 2250 if r.TryDecodeAsNil() { 2251 x.WriteAllocs = nil 2252 } else { 2253 if false { 2254 } else { 2255 h.decMapstringPtrtoAllocation((*map[string]*Allocation)(&x.WriteAllocs), d) 2256 } 2257 } 2258 yyj41++ 2259 if yyhl41 { 2260 yyb41 = yyj41 > l 2261 } else { 2262 yyb41 = r.CheckBreak() 2263 } 2264 if yyb41 { 2265 r.ReadArrayEnd() 2266 return 2267 } 2268 r.ReadArrayElem() 2269 if r.TryDecodeAsNil() { 2270 x.ReadClaims = nil 2271 } else { 2272 if false { 2273 } else { 2274 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.ReadClaims), d) 2275 } 2276 } 2277 yyj41++ 2278 if yyhl41 { 2279 yyb41 = yyj41 > l 2280 } else { 2281 yyb41 = r.CheckBreak() 2282 } 2283 if yyb41 { 2284 r.ReadArrayEnd() 2285 return 2286 } 2287 r.ReadArrayElem() 2288 if r.TryDecodeAsNil() { 2289 x.WriteClaims = nil 2290 } else { 2291 if false { 2292 } else { 2293 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.WriteClaims), d) 2294 } 2295 } 2296 yyj41++ 2297 if yyhl41 { 2298 yyb41 = yyj41 > l 2299 } else { 2300 yyb41 = r.CheckBreak() 2301 } 2302 if yyb41 { 2303 r.ReadArrayEnd() 2304 return 2305 } 2306 r.ReadArrayElem() 2307 if r.TryDecodeAsNil() { 2308 x.PastClaims = nil 2309 } else { 2310 if false { 2311 } else { 2312 h.decMapstringPtrtoCSIVolumeClaim((*map[string]*CSIVolumeClaim)(&x.PastClaims), d) 2313 } 2314 } 2315 yyj41++ 2316 if yyhl41 { 2317 yyb41 = yyj41 > l 2318 } else { 2319 yyb41 = r.CheckBreak() 2320 } 2321 if yyb41 { 2322 r.ReadArrayEnd() 2323 return 2324 } 2325 r.ReadArrayElem() 2326 if r.TryDecodeAsNil() { 2327 x.Schedulable = false 2328 } else { 2329 x.Schedulable = (bool)(r.DecodeBool()) 2330 } 2331 yyj41++ 2332 if yyhl41 { 2333 yyb41 = yyj41 > l 2334 } else { 2335 yyb41 = r.CheckBreak() 2336 } 2337 if yyb41 { 2338 r.ReadArrayEnd() 2339 return 2340 } 2341 r.ReadArrayElem() 2342 if r.TryDecodeAsNil() { 2343 x.PluginID = "" 2344 } else { 2345 x.PluginID = (string)(r.DecodeString()) 2346 } 2347 yyj41++ 2348 if yyhl41 { 2349 yyb41 = yyj41 > l 2350 } else { 2351 yyb41 = r.CheckBreak() 2352 } 2353 if yyb41 { 2354 r.ReadArrayEnd() 2355 return 2356 } 2357 r.ReadArrayElem() 2358 if r.TryDecodeAsNil() { 2359 x.Provider = "" 2360 } else { 2361 x.Provider = (string)(r.DecodeString()) 2362 } 2363 yyj41++ 2364 if yyhl41 { 2365 yyb41 = yyj41 > l 2366 } else { 2367 yyb41 = r.CheckBreak() 2368 } 2369 if yyb41 { 2370 r.ReadArrayEnd() 2371 return 2372 } 2373 r.ReadArrayElem() 2374 if r.TryDecodeAsNil() { 2375 x.ProviderVersion = "" 2376 } else { 2377 x.ProviderVersion = (string)(r.DecodeString()) 2378 } 2379 yyj41++ 2380 if yyhl41 { 2381 yyb41 = yyj41 > l 2382 } else { 2383 yyb41 = r.CheckBreak() 2384 } 2385 if yyb41 { 2386 r.ReadArrayEnd() 2387 return 2388 } 2389 r.ReadArrayElem() 2390 if r.TryDecodeAsNil() { 2391 x.ControllerRequired = false 2392 } else { 2393 x.ControllerRequired = (bool)(r.DecodeBool()) 2394 } 2395 yyj41++ 2396 if yyhl41 { 2397 yyb41 = yyj41 > l 2398 } else { 2399 yyb41 = r.CheckBreak() 2400 } 2401 if yyb41 { 2402 r.ReadArrayEnd() 2403 return 2404 } 2405 r.ReadArrayElem() 2406 if r.TryDecodeAsNil() { 2407 x.ControllersHealthy = 0 2408 } else { 2409 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2410 } 2411 yyj41++ 2412 if yyhl41 { 2413 yyb41 = yyj41 > l 2414 } else { 2415 yyb41 = r.CheckBreak() 2416 } 2417 if yyb41 { 2418 r.ReadArrayEnd() 2419 return 2420 } 2421 r.ReadArrayElem() 2422 if r.TryDecodeAsNil() { 2423 x.ControllersExpected = 0 2424 } else { 2425 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2426 } 2427 yyj41++ 2428 if yyhl41 { 2429 yyb41 = yyj41 > l 2430 } else { 2431 yyb41 = r.CheckBreak() 2432 } 2433 if yyb41 { 2434 r.ReadArrayEnd() 2435 return 2436 } 2437 r.ReadArrayElem() 2438 if r.TryDecodeAsNil() { 2439 x.NodesHealthy = 0 2440 } else { 2441 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2442 } 2443 yyj41++ 2444 if yyhl41 { 2445 yyb41 = yyj41 > l 2446 } else { 2447 yyb41 = r.CheckBreak() 2448 } 2449 if yyb41 { 2450 r.ReadArrayEnd() 2451 return 2452 } 2453 r.ReadArrayElem() 2454 if r.TryDecodeAsNil() { 2455 x.NodesExpected = 0 2456 } else { 2457 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 2458 } 2459 yyj41++ 2460 if yyhl41 { 2461 yyb41 = yyj41 > l 2462 } else { 2463 yyb41 = r.CheckBreak() 2464 } 2465 if yyb41 { 2466 r.ReadArrayEnd() 2467 return 2468 } 2469 r.ReadArrayElem() 2470 if r.TryDecodeAsNil() { 2471 x.ResourceExhausted = time.Time{} 2472 } else { 2473 if false { 2474 } else if !z.DecBasicHandle().TimeNotBuiltin { 2475 x.ResourceExhausted = r.DecodeTime() 2476 } else if yyxt76 := z.Extension(z.I2Rtid(x.ResourceExhausted)); yyxt76 != nil { 2477 z.DecExtension(x.ResourceExhausted, yyxt76) 2478 } else if z.DecBinary() { 2479 z.DecBinaryUnmarshal(&x.ResourceExhausted) 2480 } else if !z.DecBinary() && z.IsJSONHandle() { 2481 z.DecJSONUnmarshal(&x.ResourceExhausted) 2482 } else { 2483 z.DecFallback(&x.ResourceExhausted, false) 2484 } 2485 } 2486 yyj41++ 2487 if yyhl41 { 2488 yyb41 = yyj41 > l 2489 } else { 2490 yyb41 = r.CheckBreak() 2491 } 2492 if yyb41 { 2493 r.ReadArrayEnd() 2494 return 2495 } 2496 r.ReadArrayElem() 2497 if r.TryDecodeAsNil() { 2498 x.CreateIndex = 0 2499 } else { 2500 x.CreateIndex = (uint64)(r.DecodeUint64()) 2501 } 2502 yyj41++ 2503 if yyhl41 { 2504 yyb41 = yyj41 > l 2505 } else { 2506 yyb41 = r.CheckBreak() 2507 } 2508 if yyb41 { 2509 r.ReadArrayEnd() 2510 return 2511 } 2512 r.ReadArrayElem() 2513 if r.TryDecodeAsNil() { 2514 x.ModifyIndex = 0 2515 } else { 2516 x.ModifyIndex = (uint64)(r.DecodeUint64()) 2517 } 2518 for { 2519 yyj41++ 2520 if yyhl41 { 2521 yyb41 = yyj41 > l 2522 } else { 2523 yyb41 = r.CheckBreak() 2524 } 2525 if yyb41 { 2526 break 2527 } 2528 r.ReadArrayElem() 2529 z.DecStructFieldNotFound(yyj41-1, "") 2530 } 2531 r.ReadArrayEnd() 2532 } 2533 2534 func (x *CSIVolListStub) CodecEncodeSelf(e *codec1978.Encoder) { 2535 var h codecSelfer100 2536 z, r := codec1978.GenHelperEncoder(e) 2537 _, _, _ = h, z, r 2538 if x == nil { 2539 r.EncodeNil() 2540 } else { 2541 if false { 2542 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 2543 z.EncExtension(x, yyxt1) 2544 } else { 2545 yysep2 := !z.EncBinary() 2546 yy2arr2 := z.EncBasicHandle().StructToArray 2547 _, _ = yysep2, yy2arr2 2548 const yyr2 bool = false // struct tag has 'toArray' 2549 if yyr2 || yy2arr2 { 2550 r.WriteArrayStart(18) 2551 } else { 2552 r.WriteMapStart(18) 2553 } 2554 if yyr2 || yy2arr2 { 2555 r.WriteArrayElem() 2556 if false { 2557 } else { 2558 if z.EncBasicHandle().StringToRaw { 2559 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 2560 } else { 2561 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 2562 } 2563 } 2564 } else { 2565 r.WriteMapElemKey() 2566 if z.IsJSONHandle() { 2567 z.WriteStr("\"ID\"") 2568 } else { 2569 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 2570 } 2571 r.WriteMapElemValue() 2572 if false { 2573 } else { 2574 if z.EncBasicHandle().StringToRaw { 2575 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 2576 } else { 2577 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 2578 } 2579 } 2580 } 2581 if yyr2 || yy2arr2 { 2582 r.WriteArrayElem() 2583 if false { 2584 } else { 2585 if z.EncBasicHandle().StringToRaw { 2586 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 2587 } else { 2588 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 2589 } 2590 } 2591 } else { 2592 r.WriteMapElemKey() 2593 if z.IsJSONHandle() { 2594 z.WriteStr("\"Namespace\"") 2595 } else { 2596 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 2597 } 2598 r.WriteMapElemValue() 2599 if false { 2600 } else { 2601 if z.EncBasicHandle().StringToRaw { 2602 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 2603 } else { 2604 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 2605 } 2606 } 2607 } 2608 if yyr2 || yy2arr2 { 2609 r.WriteArrayElem() 2610 if false { 2611 } else { 2612 if z.EncBasicHandle().StringToRaw { 2613 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 2614 } else { 2615 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 2616 } 2617 } 2618 } else { 2619 r.WriteMapElemKey() 2620 if z.IsJSONHandle() { 2621 z.WriteStr("\"Name\"") 2622 } else { 2623 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 2624 } 2625 r.WriteMapElemValue() 2626 if false { 2627 } else { 2628 if z.EncBasicHandle().StringToRaw { 2629 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 2630 } else { 2631 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 2632 } 2633 } 2634 } 2635 if yyr2 || yy2arr2 { 2636 r.WriteArrayElem() 2637 if false { 2638 } else { 2639 if z.EncBasicHandle().StringToRaw { 2640 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 2641 } else { 2642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 2643 } 2644 } 2645 } else { 2646 r.WriteMapElemKey() 2647 if z.IsJSONHandle() { 2648 z.WriteStr("\"ExternalID\"") 2649 } else { 2650 r.EncodeStringEnc(codecSelferCcUTF8100, `ExternalID`) 2651 } 2652 r.WriteMapElemValue() 2653 if false { 2654 } else { 2655 if z.EncBasicHandle().StringToRaw { 2656 r.EncodeStringBytesRaw(z.BytesView(string(x.ExternalID))) 2657 } else { 2658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ExternalID)) 2659 } 2660 } 2661 } 2662 if yyr2 || yy2arr2 { 2663 r.WriteArrayElem() 2664 if x.Topologies == nil { 2665 r.EncodeNil() 2666 } else { 2667 if false { 2668 } else { 2669 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 2670 } 2671 } 2672 } else { 2673 r.WriteMapElemKey() 2674 if z.IsJSONHandle() { 2675 z.WriteStr("\"Topologies\"") 2676 } else { 2677 r.EncodeStringEnc(codecSelferCcUTF8100, `Topologies`) 2678 } 2679 r.WriteMapElemValue() 2680 if x.Topologies == nil { 2681 r.EncodeNil() 2682 } else { 2683 if false { 2684 } else { 2685 h.encSlicePtrtoCSITopology(([]*CSITopology)(x.Topologies), e) 2686 } 2687 } 2688 } 2689 if yyr2 || yy2arr2 { 2690 r.WriteArrayElem() 2691 x.AccessMode.CodecEncodeSelf(e) 2692 } else { 2693 r.WriteMapElemKey() 2694 if z.IsJSONHandle() { 2695 z.WriteStr("\"AccessMode\"") 2696 } else { 2697 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessMode`) 2698 } 2699 r.WriteMapElemValue() 2700 x.AccessMode.CodecEncodeSelf(e) 2701 } 2702 if yyr2 || yy2arr2 { 2703 r.WriteArrayElem() 2704 x.AttachmentMode.CodecEncodeSelf(e) 2705 } else { 2706 r.WriteMapElemKey() 2707 if z.IsJSONHandle() { 2708 z.WriteStr("\"AttachmentMode\"") 2709 } else { 2710 r.EncodeStringEnc(codecSelferCcUTF8100, `AttachmentMode`) 2711 } 2712 r.WriteMapElemValue() 2713 x.AttachmentMode.CodecEncodeSelf(e) 2714 } 2715 if yyr2 || yy2arr2 { 2716 r.WriteArrayElem() 2717 if false { 2718 } else { 2719 r.EncodeInt(int64(x.CurrentReaders)) 2720 } 2721 } else { 2722 r.WriteMapElemKey() 2723 if z.IsJSONHandle() { 2724 z.WriteStr("\"CurrentReaders\"") 2725 } else { 2726 r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentReaders`) 2727 } 2728 r.WriteMapElemValue() 2729 if false { 2730 } else { 2731 r.EncodeInt(int64(x.CurrentReaders)) 2732 } 2733 } 2734 if yyr2 || yy2arr2 { 2735 r.WriteArrayElem() 2736 if false { 2737 } else { 2738 r.EncodeInt(int64(x.CurrentWriters)) 2739 } 2740 } else { 2741 r.WriteMapElemKey() 2742 if z.IsJSONHandle() { 2743 z.WriteStr("\"CurrentWriters\"") 2744 } else { 2745 r.EncodeStringEnc(codecSelferCcUTF8100, `CurrentWriters`) 2746 } 2747 r.WriteMapElemValue() 2748 if false { 2749 } else { 2750 r.EncodeInt(int64(x.CurrentWriters)) 2751 } 2752 } 2753 if yyr2 || yy2arr2 { 2754 r.WriteArrayElem() 2755 if false { 2756 } else { 2757 r.EncodeBool(bool(x.Schedulable)) 2758 } 2759 } else { 2760 r.WriteMapElemKey() 2761 if z.IsJSONHandle() { 2762 z.WriteStr("\"Schedulable\"") 2763 } else { 2764 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulable`) 2765 } 2766 r.WriteMapElemValue() 2767 if false { 2768 } else { 2769 r.EncodeBool(bool(x.Schedulable)) 2770 } 2771 } 2772 if yyr2 || yy2arr2 { 2773 r.WriteArrayElem() 2774 if false { 2775 } else { 2776 if z.EncBasicHandle().StringToRaw { 2777 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 2778 } else { 2779 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 2780 } 2781 } 2782 } else { 2783 r.WriteMapElemKey() 2784 if z.IsJSONHandle() { 2785 z.WriteStr("\"PluginID\"") 2786 } else { 2787 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 2788 } 2789 r.WriteMapElemValue() 2790 if false { 2791 } else { 2792 if z.EncBasicHandle().StringToRaw { 2793 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 2794 } else { 2795 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 2796 } 2797 } 2798 } 2799 if yyr2 || yy2arr2 { 2800 r.WriteArrayElem() 2801 if false { 2802 } else { 2803 if z.EncBasicHandle().StringToRaw { 2804 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 2805 } else { 2806 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 2807 } 2808 } 2809 } else { 2810 r.WriteMapElemKey() 2811 if z.IsJSONHandle() { 2812 z.WriteStr("\"Provider\"") 2813 } else { 2814 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 2815 } 2816 r.WriteMapElemValue() 2817 if false { 2818 } else { 2819 if z.EncBasicHandle().StringToRaw { 2820 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 2821 } else { 2822 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 2823 } 2824 } 2825 } 2826 if yyr2 || yy2arr2 { 2827 r.WriteArrayElem() 2828 if false { 2829 } else { 2830 r.EncodeInt(int64(x.ControllersHealthy)) 2831 } 2832 } else { 2833 r.WriteMapElemKey() 2834 if z.IsJSONHandle() { 2835 z.WriteStr("\"ControllersHealthy\"") 2836 } else { 2837 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 2838 } 2839 r.WriteMapElemValue() 2840 if false { 2841 } else { 2842 r.EncodeInt(int64(x.ControllersHealthy)) 2843 } 2844 } 2845 if yyr2 || yy2arr2 { 2846 r.WriteArrayElem() 2847 if false { 2848 } else { 2849 r.EncodeInt(int64(x.ControllersExpected)) 2850 } 2851 } else { 2852 r.WriteMapElemKey() 2853 if z.IsJSONHandle() { 2854 z.WriteStr("\"ControllersExpected\"") 2855 } else { 2856 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 2857 } 2858 r.WriteMapElemValue() 2859 if false { 2860 } else { 2861 r.EncodeInt(int64(x.ControllersExpected)) 2862 } 2863 } 2864 if yyr2 || yy2arr2 { 2865 r.WriteArrayElem() 2866 if false { 2867 } else { 2868 r.EncodeInt(int64(x.NodesHealthy)) 2869 } 2870 } else { 2871 r.WriteMapElemKey() 2872 if z.IsJSONHandle() { 2873 z.WriteStr("\"NodesHealthy\"") 2874 } else { 2875 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 2876 } 2877 r.WriteMapElemValue() 2878 if false { 2879 } else { 2880 r.EncodeInt(int64(x.NodesHealthy)) 2881 } 2882 } 2883 if yyr2 || yy2arr2 { 2884 r.WriteArrayElem() 2885 if false { 2886 } else { 2887 r.EncodeInt(int64(x.NodesExpected)) 2888 } 2889 } else { 2890 r.WriteMapElemKey() 2891 if z.IsJSONHandle() { 2892 z.WriteStr("\"NodesExpected\"") 2893 } else { 2894 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 2895 } 2896 r.WriteMapElemValue() 2897 if false { 2898 } else { 2899 r.EncodeInt(int64(x.NodesExpected)) 2900 } 2901 } 2902 if yyr2 || yy2arr2 { 2903 r.WriteArrayElem() 2904 if false { 2905 } else { 2906 r.EncodeUint(uint64(x.CreateIndex)) 2907 } 2908 } else { 2909 r.WriteMapElemKey() 2910 if z.IsJSONHandle() { 2911 z.WriteStr("\"CreateIndex\"") 2912 } else { 2913 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 2914 } 2915 r.WriteMapElemValue() 2916 if false { 2917 } else { 2918 r.EncodeUint(uint64(x.CreateIndex)) 2919 } 2920 } 2921 if yyr2 || yy2arr2 { 2922 r.WriteArrayElem() 2923 if false { 2924 } else { 2925 r.EncodeUint(uint64(x.ModifyIndex)) 2926 } 2927 } else { 2928 r.WriteMapElemKey() 2929 if z.IsJSONHandle() { 2930 z.WriteStr("\"ModifyIndex\"") 2931 } else { 2932 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 2933 } 2934 r.WriteMapElemValue() 2935 if false { 2936 } else { 2937 r.EncodeUint(uint64(x.ModifyIndex)) 2938 } 2939 } 2940 if yyr2 || yy2arr2 { 2941 r.WriteArrayEnd() 2942 } else { 2943 r.WriteMapEnd() 2944 } 2945 } 2946 } 2947 } 2948 2949 func (x *CSIVolListStub) CodecDecodeSelf(d *codec1978.Decoder) { 2950 var h codecSelfer100 2951 z, r := codec1978.GenHelperDecoder(d) 2952 _, _, _ = h, z, r 2953 if false { 2954 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 2955 z.DecExtension(x, yyxt1) 2956 } else { 2957 yyct2 := r.ContainerType() 2958 if yyct2 == codecSelferValueTypeMap100 { 2959 yyl2 := r.ReadMapStart() 2960 if yyl2 == 0 { 2961 r.ReadMapEnd() 2962 } else { 2963 x.codecDecodeSelfFromMap(yyl2, d) 2964 } 2965 } else if yyct2 == codecSelferValueTypeArray100 { 2966 yyl2 := r.ReadArrayStart() 2967 if yyl2 == 0 { 2968 r.ReadArrayEnd() 2969 } else { 2970 x.codecDecodeSelfFromArray(yyl2, d) 2971 } 2972 } else { 2973 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 2974 } 2975 } 2976 } 2977 2978 func (x *CSIVolListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 2979 var h codecSelfer100 2980 z, r := codec1978.GenHelperDecoder(d) 2981 _, _, _ = h, z, r 2982 var yyhl3 bool = l >= 0 2983 for yyj3 := 0; ; yyj3++ { 2984 if yyhl3 { 2985 if yyj3 >= l { 2986 break 2987 } 2988 } else { 2989 if r.CheckBreak() { 2990 break 2991 } 2992 } 2993 r.ReadMapElemKey() 2994 yys3 := z.StringView(r.DecodeStringAsBytes()) 2995 r.ReadMapElemValue() 2996 switch yys3 { 2997 case "ID": 2998 if r.TryDecodeAsNil() { 2999 x.ID = "" 3000 } else { 3001 x.ID = (string)(r.DecodeString()) 3002 } 3003 case "Namespace": 3004 if r.TryDecodeAsNil() { 3005 x.Namespace = "" 3006 } else { 3007 x.Namespace = (string)(r.DecodeString()) 3008 } 3009 case "Name": 3010 if r.TryDecodeAsNil() { 3011 x.Name = "" 3012 } else { 3013 x.Name = (string)(r.DecodeString()) 3014 } 3015 case "ExternalID": 3016 if r.TryDecodeAsNil() { 3017 x.ExternalID = "" 3018 } else { 3019 x.ExternalID = (string)(r.DecodeString()) 3020 } 3021 case "Topologies": 3022 if r.TryDecodeAsNil() { 3023 x.Topologies = nil 3024 } else { 3025 if false { 3026 } else { 3027 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 3028 } 3029 } 3030 case "AccessMode": 3031 if r.TryDecodeAsNil() { 3032 x.AccessMode = "" 3033 } else { 3034 x.AccessMode.CodecDecodeSelf(d) 3035 } 3036 case "AttachmentMode": 3037 if r.TryDecodeAsNil() { 3038 x.AttachmentMode = "" 3039 } else { 3040 x.AttachmentMode.CodecDecodeSelf(d) 3041 } 3042 case "CurrentReaders": 3043 if r.TryDecodeAsNil() { 3044 x.CurrentReaders = 0 3045 } else { 3046 x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3047 } 3048 case "CurrentWriters": 3049 if r.TryDecodeAsNil() { 3050 x.CurrentWriters = 0 3051 } else { 3052 x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3053 } 3054 case "Schedulable": 3055 if r.TryDecodeAsNil() { 3056 x.Schedulable = false 3057 } else { 3058 x.Schedulable = (bool)(r.DecodeBool()) 3059 } 3060 case "PluginID": 3061 if r.TryDecodeAsNil() { 3062 x.PluginID = "" 3063 } else { 3064 x.PluginID = (string)(r.DecodeString()) 3065 } 3066 case "Provider": 3067 if r.TryDecodeAsNil() { 3068 x.Provider = "" 3069 } else { 3070 x.Provider = (string)(r.DecodeString()) 3071 } 3072 case "ControllersHealthy": 3073 if r.TryDecodeAsNil() { 3074 x.ControllersHealthy = 0 3075 } else { 3076 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3077 } 3078 case "ControllersExpected": 3079 if r.TryDecodeAsNil() { 3080 x.ControllersExpected = 0 3081 } else { 3082 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3083 } 3084 case "NodesHealthy": 3085 if r.TryDecodeAsNil() { 3086 x.NodesHealthy = 0 3087 } else { 3088 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3089 } 3090 case "NodesExpected": 3091 if r.TryDecodeAsNil() { 3092 x.NodesExpected = 0 3093 } else { 3094 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3095 } 3096 case "CreateIndex": 3097 if r.TryDecodeAsNil() { 3098 x.CreateIndex = 0 3099 } else { 3100 x.CreateIndex = (uint64)(r.DecodeUint64()) 3101 } 3102 case "ModifyIndex": 3103 if r.TryDecodeAsNil() { 3104 x.ModifyIndex = 0 3105 } else { 3106 x.ModifyIndex = (uint64)(r.DecodeUint64()) 3107 } 3108 default: 3109 z.DecStructFieldNotFound(-1, yys3) 3110 } // end switch yys3 3111 } // end for yyj3 3112 r.ReadMapEnd() 3113 } 3114 3115 func (x *CSIVolListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3116 var h codecSelfer100 3117 z, r := codec1978.GenHelperDecoder(d) 3118 _, _, _ = h, z, r 3119 var yyj23 int 3120 var yyb23 bool 3121 var yyhl23 bool = l >= 0 3122 yyj23++ 3123 if yyhl23 { 3124 yyb23 = yyj23 > l 3125 } else { 3126 yyb23 = r.CheckBreak() 3127 } 3128 if yyb23 { 3129 r.ReadArrayEnd() 3130 return 3131 } 3132 r.ReadArrayElem() 3133 if r.TryDecodeAsNil() { 3134 x.ID = "" 3135 } else { 3136 x.ID = (string)(r.DecodeString()) 3137 } 3138 yyj23++ 3139 if yyhl23 { 3140 yyb23 = yyj23 > l 3141 } else { 3142 yyb23 = r.CheckBreak() 3143 } 3144 if yyb23 { 3145 r.ReadArrayEnd() 3146 return 3147 } 3148 r.ReadArrayElem() 3149 if r.TryDecodeAsNil() { 3150 x.Namespace = "" 3151 } else { 3152 x.Namespace = (string)(r.DecodeString()) 3153 } 3154 yyj23++ 3155 if yyhl23 { 3156 yyb23 = yyj23 > l 3157 } else { 3158 yyb23 = r.CheckBreak() 3159 } 3160 if yyb23 { 3161 r.ReadArrayEnd() 3162 return 3163 } 3164 r.ReadArrayElem() 3165 if r.TryDecodeAsNil() { 3166 x.Name = "" 3167 } else { 3168 x.Name = (string)(r.DecodeString()) 3169 } 3170 yyj23++ 3171 if yyhl23 { 3172 yyb23 = yyj23 > l 3173 } else { 3174 yyb23 = r.CheckBreak() 3175 } 3176 if yyb23 { 3177 r.ReadArrayEnd() 3178 return 3179 } 3180 r.ReadArrayElem() 3181 if r.TryDecodeAsNil() { 3182 x.ExternalID = "" 3183 } else { 3184 x.ExternalID = (string)(r.DecodeString()) 3185 } 3186 yyj23++ 3187 if yyhl23 { 3188 yyb23 = yyj23 > l 3189 } else { 3190 yyb23 = r.CheckBreak() 3191 } 3192 if yyb23 { 3193 r.ReadArrayEnd() 3194 return 3195 } 3196 r.ReadArrayElem() 3197 if r.TryDecodeAsNil() { 3198 x.Topologies = nil 3199 } else { 3200 if false { 3201 } else { 3202 h.decSlicePtrtoCSITopology((*[]*CSITopology)(&x.Topologies), d) 3203 } 3204 } 3205 yyj23++ 3206 if yyhl23 { 3207 yyb23 = yyj23 > l 3208 } else { 3209 yyb23 = r.CheckBreak() 3210 } 3211 if yyb23 { 3212 r.ReadArrayEnd() 3213 return 3214 } 3215 r.ReadArrayElem() 3216 if r.TryDecodeAsNil() { 3217 x.AccessMode = "" 3218 } else { 3219 x.AccessMode.CodecDecodeSelf(d) 3220 } 3221 yyj23++ 3222 if yyhl23 { 3223 yyb23 = yyj23 > l 3224 } else { 3225 yyb23 = r.CheckBreak() 3226 } 3227 if yyb23 { 3228 r.ReadArrayEnd() 3229 return 3230 } 3231 r.ReadArrayElem() 3232 if r.TryDecodeAsNil() { 3233 x.AttachmentMode = "" 3234 } else { 3235 x.AttachmentMode.CodecDecodeSelf(d) 3236 } 3237 yyj23++ 3238 if yyhl23 { 3239 yyb23 = yyj23 > l 3240 } else { 3241 yyb23 = r.CheckBreak() 3242 } 3243 if yyb23 { 3244 r.ReadArrayEnd() 3245 return 3246 } 3247 r.ReadArrayElem() 3248 if r.TryDecodeAsNil() { 3249 x.CurrentReaders = 0 3250 } else { 3251 x.CurrentReaders = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3252 } 3253 yyj23++ 3254 if yyhl23 { 3255 yyb23 = yyj23 > l 3256 } else { 3257 yyb23 = r.CheckBreak() 3258 } 3259 if yyb23 { 3260 r.ReadArrayEnd() 3261 return 3262 } 3263 r.ReadArrayElem() 3264 if r.TryDecodeAsNil() { 3265 x.CurrentWriters = 0 3266 } else { 3267 x.CurrentWriters = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3268 } 3269 yyj23++ 3270 if yyhl23 { 3271 yyb23 = yyj23 > l 3272 } else { 3273 yyb23 = r.CheckBreak() 3274 } 3275 if yyb23 { 3276 r.ReadArrayEnd() 3277 return 3278 } 3279 r.ReadArrayElem() 3280 if r.TryDecodeAsNil() { 3281 x.Schedulable = false 3282 } else { 3283 x.Schedulable = (bool)(r.DecodeBool()) 3284 } 3285 yyj23++ 3286 if yyhl23 { 3287 yyb23 = yyj23 > l 3288 } else { 3289 yyb23 = r.CheckBreak() 3290 } 3291 if yyb23 { 3292 r.ReadArrayEnd() 3293 return 3294 } 3295 r.ReadArrayElem() 3296 if r.TryDecodeAsNil() { 3297 x.PluginID = "" 3298 } else { 3299 x.PluginID = (string)(r.DecodeString()) 3300 } 3301 yyj23++ 3302 if yyhl23 { 3303 yyb23 = yyj23 > l 3304 } else { 3305 yyb23 = r.CheckBreak() 3306 } 3307 if yyb23 { 3308 r.ReadArrayEnd() 3309 return 3310 } 3311 r.ReadArrayElem() 3312 if r.TryDecodeAsNil() { 3313 x.Provider = "" 3314 } else { 3315 x.Provider = (string)(r.DecodeString()) 3316 } 3317 yyj23++ 3318 if yyhl23 { 3319 yyb23 = yyj23 > l 3320 } else { 3321 yyb23 = r.CheckBreak() 3322 } 3323 if yyb23 { 3324 r.ReadArrayEnd() 3325 return 3326 } 3327 r.ReadArrayElem() 3328 if r.TryDecodeAsNil() { 3329 x.ControllersHealthy = 0 3330 } else { 3331 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3332 } 3333 yyj23++ 3334 if yyhl23 { 3335 yyb23 = yyj23 > l 3336 } else { 3337 yyb23 = r.CheckBreak() 3338 } 3339 if yyb23 { 3340 r.ReadArrayEnd() 3341 return 3342 } 3343 r.ReadArrayElem() 3344 if r.TryDecodeAsNil() { 3345 x.ControllersExpected = 0 3346 } else { 3347 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3348 } 3349 yyj23++ 3350 if yyhl23 { 3351 yyb23 = yyj23 > l 3352 } else { 3353 yyb23 = r.CheckBreak() 3354 } 3355 if yyb23 { 3356 r.ReadArrayEnd() 3357 return 3358 } 3359 r.ReadArrayElem() 3360 if r.TryDecodeAsNil() { 3361 x.NodesHealthy = 0 3362 } else { 3363 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3364 } 3365 yyj23++ 3366 if yyhl23 { 3367 yyb23 = yyj23 > l 3368 } else { 3369 yyb23 = r.CheckBreak() 3370 } 3371 if yyb23 { 3372 r.ReadArrayEnd() 3373 return 3374 } 3375 r.ReadArrayElem() 3376 if r.TryDecodeAsNil() { 3377 x.NodesExpected = 0 3378 } else { 3379 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 3380 } 3381 yyj23++ 3382 if yyhl23 { 3383 yyb23 = yyj23 > l 3384 } else { 3385 yyb23 = r.CheckBreak() 3386 } 3387 if yyb23 { 3388 r.ReadArrayEnd() 3389 return 3390 } 3391 r.ReadArrayElem() 3392 if r.TryDecodeAsNil() { 3393 x.CreateIndex = 0 3394 } else { 3395 x.CreateIndex = (uint64)(r.DecodeUint64()) 3396 } 3397 yyj23++ 3398 if yyhl23 { 3399 yyb23 = yyj23 > l 3400 } else { 3401 yyb23 = r.CheckBreak() 3402 } 3403 if yyb23 { 3404 r.ReadArrayEnd() 3405 return 3406 } 3407 r.ReadArrayElem() 3408 if r.TryDecodeAsNil() { 3409 x.ModifyIndex = 0 3410 } else { 3411 x.ModifyIndex = (uint64)(r.DecodeUint64()) 3412 } 3413 for { 3414 yyj23++ 3415 if yyhl23 { 3416 yyb23 = yyj23 > l 3417 } else { 3418 yyb23 = r.CheckBreak() 3419 } 3420 if yyb23 { 3421 break 3422 } 3423 r.ReadArrayElem() 3424 z.DecStructFieldNotFound(yyj23-1, "") 3425 } 3426 r.ReadArrayEnd() 3427 } 3428 3429 func (x *CSIVolumeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 3430 var h codecSelfer100 3431 z, r := codec1978.GenHelperEncoder(e) 3432 _, _, _ = h, z, r 3433 if x == nil { 3434 r.EncodeNil() 3435 } else { 3436 if false { 3437 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3438 z.EncExtension(x, yyxt1) 3439 } else { 3440 yysep2 := !z.EncBinary() 3441 yy2arr2 := z.EncBasicHandle().StructToArray 3442 _, _ = yysep2, yy2arr2 3443 const yyr2 bool = false // struct tag has 'toArray' 3444 if yyr2 || yy2arr2 { 3445 r.WriteArrayStart(5) 3446 } else { 3447 r.WriteMapStart(5) 3448 } 3449 if yyr2 || yy2arr2 { 3450 r.WriteArrayElem() 3451 if x.Volumes == nil { 3452 r.EncodeNil() 3453 } else { 3454 if false { 3455 } else { 3456 h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) 3457 } 3458 } 3459 } else { 3460 r.WriteMapElemKey() 3461 if z.IsJSONHandle() { 3462 z.WriteStr("\"Volumes\"") 3463 } else { 3464 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 3465 } 3466 r.WriteMapElemValue() 3467 if x.Volumes == nil { 3468 r.EncodeNil() 3469 } else { 3470 if false { 3471 } else { 3472 h.encSlicePtrtoCSIVolume(([]*CSIVolume)(x.Volumes), e) 3473 } 3474 } 3475 } 3476 if yyr2 || yy2arr2 { 3477 r.WriteArrayElem() 3478 if false { 3479 } else { 3480 if z.EncBasicHandle().StringToRaw { 3481 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 3482 } else { 3483 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 3484 } 3485 } 3486 } else { 3487 r.WriteMapElemKey() 3488 if z.IsJSONHandle() { 3489 z.WriteStr("\"Region\"") 3490 } else { 3491 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 3492 } 3493 r.WriteMapElemValue() 3494 if false { 3495 } else { 3496 if z.EncBasicHandle().StringToRaw { 3497 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 3498 } else { 3499 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 3500 } 3501 } 3502 } 3503 if yyr2 || yy2arr2 { 3504 r.WriteArrayElem() 3505 if false { 3506 } else { 3507 if z.EncBasicHandle().StringToRaw { 3508 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 3509 } else { 3510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 3511 } 3512 } 3513 } else { 3514 r.WriteMapElemKey() 3515 if z.IsJSONHandle() { 3516 z.WriteStr("\"Namespace\"") 3517 } else { 3518 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 3519 } 3520 r.WriteMapElemValue() 3521 if false { 3522 } else { 3523 if z.EncBasicHandle().StringToRaw { 3524 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 3525 } else { 3526 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 3527 } 3528 } 3529 } 3530 if yyr2 || yy2arr2 { 3531 r.WriteArrayElem() 3532 if false { 3533 } else { 3534 if z.EncBasicHandle().StringToRaw { 3535 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 3536 } else { 3537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 3538 } 3539 } 3540 } else { 3541 r.WriteMapElemKey() 3542 if z.IsJSONHandle() { 3543 z.WriteStr("\"AuthToken\"") 3544 } else { 3545 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 3546 } 3547 r.WriteMapElemValue() 3548 if false { 3549 } else { 3550 if z.EncBasicHandle().StringToRaw { 3551 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 3552 } else { 3553 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 3554 } 3555 } 3556 } 3557 if yyr2 || yy2arr2 { 3558 r.WriteArrayElem() 3559 if false { 3560 } else { 3561 r.EncodeBool(bool(x.Forwarded)) 3562 } 3563 } else { 3564 r.WriteMapElemKey() 3565 if z.IsJSONHandle() { 3566 z.WriteStr("\"Forwarded\"") 3567 } else { 3568 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 3569 } 3570 r.WriteMapElemValue() 3571 if false { 3572 } else { 3573 r.EncodeBool(bool(x.Forwarded)) 3574 } 3575 } 3576 if yyr2 || yy2arr2 { 3577 r.WriteArrayEnd() 3578 } else { 3579 r.WriteMapEnd() 3580 } 3581 } 3582 } 3583 } 3584 3585 func (x *CSIVolumeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 3586 var h codecSelfer100 3587 z, r := codec1978.GenHelperDecoder(d) 3588 _, _, _ = h, z, r 3589 if false { 3590 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3591 z.DecExtension(x, yyxt1) 3592 } else { 3593 yyct2 := r.ContainerType() 3594 if yyct2 == codecSelferValueTypeMap100 { 3595 yyl2 := r.ReadMapStart() 3596 if yyl2 == 0 { 3597 r.ReadMapEnd() 3598 } else { 3599 x.codecDecodeSelfFromMap(yyl2, d) 3600 } 3601 } else if yyct2 == codecSelferValueTypeArray100 { 3602 yyl2 := r.ReadArrayStart() 3603 if yyl2 == 0 { 3604 r.ReadArrayEnd() 3605 } else { 3606 x.codecDecodeSelfFromArray(yyl2, d) 3607 } 3608 } else { 3609 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3610 } 3611 } 3612 } 3613 3614 func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3615 var h codecSelfer100 3616 z, r := codec1978.GenHelperDecoder(d) 3617 _, _, _ = h, z, r 3618 var yyhl3 bool = l >= 0 3619 for yyj3 := 0; ; yyj3++ { 3620 if yyhl3 { 3621 if yyj3 >= l { 3622 break 3623 } 3624 } else { 3625 if r.CheckBreak() { 3626 break 3627 } 3628 } 3629 r.ReadMapElemKey() 3630 yys3 := z.StringView(r.DecodeStringAsBytes()) 3631 r.ReadMapElemValue() 3632 switch yys3 { 3633 case "Volumes": 3634 if r.TryDecodeAsNil() { 3635 x.Volumes = nil 3636 } else { 3637 if false { 3638 } else { 3639 h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) 3640 } 3641 } 3642 case "Region": 3643 if r.TryDecodeAsNil() { 3644 x.WriteRequest.Region = "" 3645 } else { 3646 x.Region = (string)(r.DecodeString()) 3647 } 3648 case "Namespace": 3649 if r.TryDecodeAsNil() { 3650 x.WriteRequest.Namespace = "" 3651 } else { 3652 x.Namespace = (string)(r.DecodeString()) 3653 } 3654 case "AuthToken": 3655 if r.TryDecodeAsNil() { 3656 x.WriteRequest.AuthToken = "" 3657 } else { 3658 x.AuthToken = (string)(r.DecodeString()) 3659 } 3660 case "Forwarded": 3661 if r.TryDecodeAsNil() { 3662 x.WriteRequest.InternalRpcInfo.Forwarded = false 3663 } else { 3664 x.Forwarded = (bool)(r.DecodeBool()) 3665 } 3666 default: 3667 z.DecStructFieldNotFound(-1, yys3) 3668 } // end switch yys3 3669 } // end for yyj3 3670 r.ReadMapEnd() 3671 } 3672 3673 func (x *CSIVolumeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3674 var h codecSelfer100 3675 z, r := codec1978.GenHelperDecoder(d) 3676 _, _, _ = h, z, r 3677 var yyj10 int 3678 var yyb10 bool 3679 var yyhl10 bool = l >= 0 3680 yyj10++ 3681 if yyhl10 { 3682 yyb10 = yyj10 > l 3683 } else { 3684 yyb10 = r.CheckBreak() 3685 } 3686 if yyb10 { 3687 r.ReadArrayEnd() 3688 return 3689 } 3690 r.ReadArrayElem() 3691 if r.TryDecodeAsNil() { 3692 x.Volumes = nil 3693 } else { 3694 if false { 3695 } else { 3696 h.decSlicePtrtoCSIVolume((*[]*CSIVolume)(&x.Volumes), d) 3697 } 3698 } 3699 yyj10++ 3700 if yyhl10 { 3701 yyb10 = yyj10 > l 3702 } else { 3703 yyb10 = r.CheckBreak() 3704 } 3705 if yyb10 { 3706 r.ReadArrayEnd() 3707 return 3708 } 3709 r.ReadArrayElem() 3710 if r.TryDecodeAsNil() { 3711 x.WriteRequest.Region = "" 3712 } else { 3713 x.Region = (string)(r.DecodeString()) 3714 } 3715 yyj10++ 3716 if yyhl10 { 3717 yyb10 = yyj10 > l 3718 } else { 3719 yyb10 = r.CheckBreak() 3720 } 3721 if yyb10 { 3722 r.ReadArrayEnd() 3723 return 3724 } 3725 r.ReadArrayElem() 3726 if r.TryDecodeAsNil() { 3727 x.WriteRequest.Namespace = "" 3728 } else { 3729 x.Namespace = (string)(r.DecodeString()) 3730 } 3731 yyj10++ 3732 if yyhl10 { 3733 yyb10 = yyj10 > l 3734 } else { 3735 yyb10 = r.CheckBreak() 3736 } 3737 if yyb10 { 3738 r.ReadArrayEnd() 3739 return 3740 } 3741 r.ReadArrayElem() 3742 if r.TryDecodeAsNil() { 3743 x.WriteRequest.AuthToken = "" 3744 } else { 3745 x.AuthToken = (string)(r.DecodeString()) 3746 } 3747 yyj10++ 3748 if yyhl10 { 3749 yyb10 = yyj10 > l 3750 } else { 3751 yyb10 = r.CheckBreak() 3752 } 3753 if yyb10 { 3754 r.ReadArrayEnd() 3755 return 3756 } 3757 r.ReadArrayElem() 3758 if r.TryDecodeAsNil() { 3759 x.WriteRequest.InternalRpcInfo.Forwarded = false 3760 } else { 3761 x.Forwarded = (bool)(r.DecodeBool()) 3762 } 3763 for { 3764 yyj10++ 3765 if yyhl10 { 3766 yyb10 = yyj10 > l 3767 } else { 3768 yyb10 = r.CheckBreak() 3769 } 3770 if yyb10 { 3771 break 3772 } 3773 r.ReadArrayElem() 3774 z.DecStructFieldNotFound(yyj10-1, "") 3775 } 3776 r.ReadArrayEnd() 3777 } 3778 3779 func (x *CSIVolumeRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 3780 var h codecSelfer100 3781 z, r := codec1978.GenHelperEncoder(e) 3782 _, _, _ = h, z, r 3783 if x == nil { 3784 r.EncodeNil() 3785 } else { 3786 if false { 3787 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3788 z.EncExtension(x, yyxt1) 3789 } else { 3790 yysep2 := !z.EncBinary() 3791 yy2arr2 := z.EncBasicHandle().StructToArray 3792 _, _ = yysep2, yy2arr2 3793 const yyr2 bool = false // struct tag has 'toArray' 3794 if yyr2 || yy2arr2 { 3795 r.WriteArrayStart(3) 3796 } else { 3797 r.WriteMapStart(3) 3798 } 3799 if yyr2 || yy2arr2 { 3800 r.WriteArrayElem() 3801 if false { 3802 } else { 3803 r.EncodeUint(uint64(x.Index)) 3804 } 3805 } else { 3806 r.WriteMapElemKey() 3807 if z.IsJSONHandle() { 3808 z.WriteStr("\"Index\"") 3809 } else { 3810 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 3811 } 3812 r.WriteMapElemValue() 3813 if false { 3814 } else { 3815 r.EncodeUint(uint64(x.Index)) 3816 } 3817 } 3818 if yyr2 || yy2arr2 { 3819 r.WriteArrayElem() 3820 if false { 3821 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 3822 z.EncExtension(x.LastContact, yyxt7) 3823 } else { 3824 r.EncodeInt(int64(x.LastContact)) 3825 } 3826 } else { 3827 r.WriteMapElemKey() 3828 if z.IsJSONHandle() { 3829 z.WriteStr("\"LastContact\"") 3830 } else { 3831 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 3832 } 3833 r.WriteMapElemValue() 3834 if false { 3835 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 3836 z.EncExtension(x.LastContact, yyxt8) 3837 } else { 3838 r.EncodeInt(int64(x.LastContact)) 3839 } 3840 } 3841 if yyr2 || yy2arr2 { 3842 r.WriteArrayElem() 3843 if false { 3844 } else { 3845 r.EncodeBool(bool(x.KnownLeader)) 3846 } 3847 } else { 3848 r.WriteMapElemKey() 3849 if z.IsJSONHandle() { 3850 z.WriteStr("\"KnownLeader\"") 3851 } else { 3852 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 3853 } 3854 r.WriteMapElemValue() 3855 if false { 3856 } else { 3857 r.EncodeBool(bool(x.KnownLeader)) 3858 } 3859 } 3860 if yyr2 || yy2arr2 { 3861 r.WriteArrayEnd() 3862 } else { 3863 r.WriteMapEnd() 3864 } 3865 } 3866 } 3867 } 3868 3869 func (x *CSIVolumeRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 3870 var h codecSelfer100 3871 z, r := codec1978.GenHelperDecoder(d) 3872 _, _, _ = h, z, r 3873 if false { 3874 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 3875 z.DecExtension(x, yyxt1) 3876 } else { 3877 yyct2 := r.ContainerType() 3878 if yyct2 == codecSelferValueTypeMap100 { 3879 yyl2 := r.ReadMapStart() 3880 if yyl2 == 0 { 3881 r.ReadMapEnd() 3882 } else { 3883 x.codecDecodeSelfFromMap(yyl2, d) 3884 } 3885 } else if yyct2 == codecSelferValueTypeArray100 { 3886 yyl2 := r.ReadArrayStart() 3887 if yyl2 == 0 { 3888 r.ReadArrayEnd() 3889 } else { 3890 x.codecDecodeSelfFromArray(yyl2, d) 3891 } 3892 } else { 3893 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 3894 } 3895 } 3896 } 3897 3898 func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 3899 var h codecSelfer100 3900 z, r := codec1978.GenHelperDecoder(d) 3901 _, _, _ = h, z, r 3902 var yyhl3 bool = l >= 0 3903 for yyj3 := 0; ; yyj3++ { 3904 if yyhl3 { 3905 if yyj3 >= l { 3906 break 3907 } 3908 } else { 3909 if r.CheckBreak() { 3910 break 3911 } 3912 } 3913 r.ReadMapElemKey() 3914 yys3 := z.StringView(r.DecodeStringAsBytes()) 3915 r.ReadMapElemValue() 3916 switch yys3 { 3917 case "Index": 3918 if r.TryDecodeAsNil() { 3919 x.QueryMeta.Index = 0 3920 } else { 3921 x.Index = (uint64)(r.DecodeUint64()) 3922 } 3923 case "LastContact": 3924 if r.TryDecodeAsNil() { 3925 x.QueryMeta.LastContact = 0 3926 } else { 3927 if false { 3928 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 3929 z.DecExtension(x.LastContact, yyxt6) 3930 } else { 3931 x.LastContact = (time.Duration)(r.DecodeInt64()) 3932 } 3933 } 3934 case "KnownLeader": 3935 if r.TryDecodeAsNil() { 3936 x.QueryMeta.KnownLeader = false 3937 } else { 3938 x.KnownLeader = (bool)(r.DecodeBool()) 3939 } 3940 default: 3941 z.DecStructFieldNotFound(-1, yys3) 3942 } // end switch yys3 3943 } // end for yyj3 3944 r.ReadMapEnd() 3945 } 3946 3947 func (x *CSIVolumeRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 3948 var h codecSelfer100 3949 z, r := codec1978.GenHelperDecoder(d) 3950 _, _, _ = h, z, r 3951 var yyj8 int 3952 var yyb8 bool 3953 var yyhl8 bool = l >= 0 3954 yyj8++ 3955 if yyhl8 { 3956 yyb8 = yyj8 > l 3957 } else { 3958 yyb8 = r.CheckBreak() 3959 } 3960 if yyb8 { 3961 r.ReadArrayEnd() 3962 return 3963 } 3964 r.ReadArrayElem() 3965 if r.TryDecodeAsNil() { 3966 x.QueryMeta.Index = 0 3967 } else { 3968 x.Index = (uint64)(r.DecodeUint64()) 3969 } 3970 yyj8++ 3971 if yyhl8 { 3972 yyb8 = yyj8 > l 3973 } else { 3974 yyb8 = r.CheckBreak() 3975 } 3976 if yyb8 { 3977 r.ReadArrayEnd() 3978 return 3979 } 3980 r.ReadArrayElem() 3981 if r.TryDecodeAsNil() { 3982 x.QueryMeta.LastContact = 0 3983 } else { 3984 if false { 3985 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 3986 z.DecExtension(x.LastContact, yyxt11) 3987 } else { 3988 x.LastContact = (time.Duration)(r.DecodeInt64()) 3989 } 3990 } 3991 yyj8++ 3992 if yyhl8 { 3993 yyb8 = yyj8 > l 3994 } else { 3995 yyb8 = r.CheckBreak() 3996 } 3997 if yyb8 { 3998 r.ReadArrayEnd() 3999 return 4000 } 4001 r.ReadArrayElem() 4002 if r.TryDecodeAsNil() { 4003 x.QueryMeta.KnownLeader = false 4004 } else { 4005 x.KnownLeader = (bool)(r.DecodeBool()) 4006 } 4007 for { 4008 yyj8++ 4009 if yyhl8 { 4010 yyb8 = yyj8 > l 4011 } else { 4012 yyb8 = r.CheckBreak() 4013 } 4014 if yyb8 { 4015 break 4016 } 4017 r.ReadArrayElem() 4018 z.DecStructFieldNotFound(yyj8-1, "") 4019 } 4020 r.ReadArrayEnd() 4021 } 4022 4023 func (x *CSIVolumeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 4024 var h codecSelfer100 4025 z, r := codec1978.GenHelperEncoder(e) 4026 _, _, _ = h, z, r 4027 if x == nil { 4028 r.EncodeNil() 4029 } else { 4030 if false { 4031 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4032 z.EncExtension(x, yyxt1) 4033 } else { 4034 yysep2 := !z.EncBinary() 4035 yy2arr2 := z.EncBasicHandle().StructToArray 4036 _, _ = yysep2, yy2arr2 4037 const yyr2 bool = false // struct tag has 'toArray' 4038 if yyr2 || yy2arr2 { 4039 r.WriteArrayStart(5) 4040 } else { 4041 r.WriteMapStart(5) 4042 } 4043 if yyr2 || yy2arr2 { 4044 r.WriteArrayElem() 4045 if x.VolumeIDs == nil { 4046 r.EncodeNil() 4047 } else { 4048 if false { 4049 } else { 4050 z.F.EncSliceStringV(x.VolumeIDs, e) 4051 } 4052 } 4053 } else { 4054 r.WriteMapElemKey() 4055 if z.IsJSONHandle() { 4056 z.WriteStr("\"VolumeIDs\"") 4057 } else { 4058 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeIDs`) 4059 } 4060 r.WriteMapElemValue() 4061 if x.VolumeIDs == nil { 4062 r.EncodeNil() 4063 } else { 4064 if false { 4065 } else { 4066 z.F.EncSliceStringV(x.VolumeIDs, e) 4067 } 4068 } 4069 } 4070 if yyr2 || yy2arr2 { 4071 r.WriteArrayElem() 4072 if false { 4073 } else { 4074 if z.EncBasicHandle().StringToRaw { 4075 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4076 } else { 4077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4078 } 4079 } 4080 } else { 4081 r.WriteMapElemKey() 4082 if z.IsJSONHandle() { 4083 z.WriteStr("\"Region\"") 4084 } else { 4085 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 4086 } 4087 r.WriteMapElemValue() 4088 if false { 4089 } else { 4090 if z.EncBasicHandle().StringToRaw { 4091 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4092 } else { 4093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4094 } 4095 } 4096 } 4097 if yyr2 || yy2arr2 { 4098 r.WriteArrayElem() 4099 if false { 4100 } else { 4101 if z.EncBasicHandle().StringToRaw { 4102 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4103 } else { 4104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4105 } 4106 } 4107 } else { 4108 r.WriteMapElemKey() 4109 if z.IsJSONHandle() { 4110 z.WriteStr("\"Namespace\"") 4111 } else { 4112 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 4113 } 4114 r.WriteMapElemValue() 4115 if false { 4116 } else { 4117 if z.EncBasicHandle().StringToRaw { 4118 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4119 } else { 4120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4121 } 4122 } 4123 } 4124 if yyr2 || yy2arr2 { 4125 r.WriteArrayElem() 4126 if false { 4127 } else { 4128 if z.EncBasicHandle().StringToRaw { 4129 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 4130 } else { 4131 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 4132 } 4133 } 4134 } else { 4135 r.WriteMapElemKey() 4136 if z.IsJSONHandle() { 4137 z.WriteStr("\"AuthToken\"") 4138 } else { 4139 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 4140 } 4141 r.WriteMapElemValue() 4142 if false { 4143 } else { 4144 if z.EncBasicHandle().StringToRaw { 4145 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 4146 } else { 4147 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 4148 } 4149 } 4150 } 4151 if yyr2 || yy2arr2 { 4152 r.WriteArrayElem() 4153 if false { 4154 } else { 4155 r.EncodeBool(bool(x.Forwarded)) 4156 } 4157 } else { 4158 r.WriteMapElemKey() 4159 if z.IsJSONHandle() { 4160 z.WriteStr("\"Forwarded\"") 4161 } else { 4162 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 4163 } 4164 r.WriteMapElemValue() 4165 if false { 4166 } else { 4167 r.EncodeBool(bool(x.Forwarded)) 4168 } 4169 } 4170 if yyr2 || yy2arr2 { 4171 r.WriteArrayEnd() 4172 } else { 4173 r.WriteMapEnd() 4174 } 4175 } 4176 } 4177 } 4178 4179 func (x *CSIVolumeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 4180 var h codecSelfer100 4181 z, r := codec1978.GenHelperDecoder(d) 4182 _, _, _ = h, z, r 4183 if false { 4184 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4185 z.DecExtension(x, yyxt1) 4186 } else { 4187 yyct2 := r.ContainerType() 4188 if yyct2 == codecSelferValueTypeMap100 { 4189 yyl2 := r.ReadMapStart() 4190 if yyl2 == 0 { 4191 r.ReadMapEnd() 4192 } else { 4193 x.codecDecodeSelfFromMap(yyl2, d) 4194 } 4195 } else if yyct2 == codecSelferValueTypeArray100 { 4196 yyl2 := r.ReadArrayStart() 4197 if yyl2 == 0 { 4198 r.ReadArrayEnd() 4199 } else { 4200 x.codecDecodeSelfFromArray(yyl2, d) 4201 } 4202 } else { 4203 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 4204 } 4205 } 4206 } 4207 4208 func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 4209 var h codecSelfer100 4210 z, r := codec1978.GenHelperDecoder(d) 4211 _, _, _ = h, z, r 4212 var yyhl3 bool = l >= 0 4213 for yyj3 := 0; ; yyj3++ { 4214 if yyhl3 { 4215 if yyj3 >= l { 4216 break 4217 } 4218 } else { 4219 if r.CheckBreak() { 4220 break 4221 } 4222 } 4223 r.ReadMapElemKey() 4224 yys3 := z.StringView(r.DecodeStringAsBytes()) 4225 r.ReadMapElemValue() 4226 switch yys3 { 4227 case "VolumeIDs": 4228 if r.TryDecodeAsNil() { 4229 x.VolumeIDs = nil 4230 } else { 4231 if false { 4232 } else { 4233 z.F.DecSliceStringX(&x.VolumeIDs, d) 4234 } 4235 } 4236 case "Region": 4237 if r.TryDecodeAsNil() { 4238 x.WriteRequest.Region = "" 4239 } else { 4240 x.Region = (string)(r.DecodeString()) 4241 } 4242 case "Namespace": 4243 if r.TryDecodeAsNil() { 4244 x.WriteRequest.Namespace = "" 4245 } else { 4246 x.Namespace = (string)(r.DecodeString()) 4247 } 4248 case "AuthToken": 4249 if r.TryDecodeAsNil() { 4250 x.WriteRequest.AuthToken = "" 4251 } else { 4252 x.AuthToken = (string)(r.DecodeString()) 4253 } 4254 case "Forwarded": 4255 if r.TryDecodeAsNil() { 4256 x.WriteRequest.InternalRpcInfo.Forwarded = false 4257 } else { 4258 x.Forwarded = (bool)(r.DecodeBool()) 4259 } 4260 default: 4261 z.DecStructFieldNotFound(-1, yys3) 4262 } // end switch yys3 4263 } // end for yyj3 4264 r.ReadMapEnd() 4265 } 4266 4267 func (x *CSIVolumeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 4268 var h codecSelfer100 4269 z, r := codec1978.GenHelperDecoder(d) 4270 _, _, _ = h, z, r 4271 var yyj10 int 4272 var yyb10 bool 4273 var yyhl10 bool = l >= 0 4274 yyj10++ 4275 if yyhl10 { 4276 yyb10 = yyj10 > l 4277 } else { 4278 yyb10 = r.CheckBreak() 4279 } 4280 if yyb10 { 4281 r.ReadArrayEnd() 4282 return 4283 } 4284 r.ReadArrayElem() 4285 if r.TryDecodeAsNil() { 4286 x.VolumeIDs = nil 4287 } else { 4288 if false { 4289 } else { 4290 z.F.DecSliceStringX(&x.VolumeIDs, d) 4291 } 4292 } 4293 yyj10++ 4294 if yyhl10 { 4295 yyb10 = yyj10 > l 4296 } else { 4297 yyb10 = r.CheckBreak() 4298 } 4299 if yyb10 { 4300 r.ReadArrayEnd() 4301 return 4302 } 4303 r.ReadArrayElem() 4304 if r.TryDecodeAsNil() { 4305 x.WriteRequest.Region = "" 4306 } else { 4307 x.Region = (string)(r.DecodeString()) 4308 } 4309 yyj10++ 4310 if yyhl10 { 4311 yyb10 = yyj10 > l 4312 } else { 4313 yyb10 = r.CheckBreak() 4314 } 4315 if yyb10 { 4316 r.ReadArrayEnd() 4317 return 4318 } 4319 r.ReadArrayElem() 4320 if r.TryDecodeAsNil() { 4321 x.WriteRequest.Namespace = "" 4322 } else { 4323 x.Namespace = (string)(r.DecodeString()) 4324 } 4325 yyj10++ 4326 if yyhl10 { 4327 yyb10 = yyj10 > l 4328 } else { 4329 yyb10 = r.CheckBreak() 4330 } 4331 if yyb10 { 4332 r.ReadArrayEnd() 4333 return 4334 } 4335 r.ReadArrayElem() 4336 if r.TryDecodeAsNil() { 4337 x.WriteRequest.AuthToken = "" 4338 } else { 4339 x.AuthToken = (string)(r.DecodeString()) 4340 } 4341 yyj10++ 4342 if yyhl10 { 4343 yyb10 = yyj10 > l 4344 } else { 4345 yyb10 = r.CheckBreak() 4346 } 4347 if yyb10 { 4348 r.ReadArrayEnd() 4349 return 4350 } 4351 r.ReadArrayElem() 4352 if r.TryDecodeAsNil() { 4353 x.WriteRequest.InternalRpcInfo.Forwarded = false 4354 } else { 4355 x.Forwarded = (bool)(r.DecodeBool()) 4356 } 4357 for { 4358 yyj10++ 4359 if yyhl10 { 4360 yyb10 = yyj10 > l 4361 } else { 4362 yyb10 = r.CheckBreak() 4363 } 4364 if yyb10 { 4365 break 4366 } 4367 r.ReadArrayElem() 4368 z.DecStructFieldNotFound(yyj10-1, "") 4369 } 4370 r.ReadArrayEnd() 4371 } 4372 4373 func (x *CSIVolumeDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 4374 var h codecSelfer100 4375 z, r := codec1978.GenHelperEncoder(e) 4376 _, _, _ = h, z, r 4377 if x == nil { 4378 r.EncodeNil() 4379 } else { 4380 if false { 4381 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4382 z.EncExtension(x, yyxt1) 4383 } else { 4384 yysep2 := !z.EncBinary() 4385 yy2arr2 := z.EncBasicHandle().StructToArray 4386 _, _ = yysep2, yy2arr2 4387 const yyr2 bool = false // struct tag has 'toArray' 4388 if yyr2 || yy2arr2 { 4389 r.WriteArrayStart(3) 4390 } else { 4391 r.WriteMapStart(3) 4392 } 4393 if yyr2 || yy2arr2 { 4394 r.WriteArrayElem() 4395 if false { 4396 } else { 4397 r.EncodeUint(uint64(x.Index)) 4398 } 4399 } else { 4400 r.WriteMapElemKey() 4401 if z.IsJSONHandle() { 4402 z.WriteStr("\"Index\"") 4403 } else { 4404 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 4405 } 4406 r.WriteMapElemValue() 4407 if false { 4408 } else { 4409 r.EncodeUint(uint64(x.Index)) 4410 } 4411 } 4412 if yyr2 || yy2arr2 { 4413 r.WriteArrayElem() 4414 if false { 4415 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 4416 z.EncExtension(x.LastContact, yyxt7) 4417 } else { 4418 r.EncodeInt(int64(x.LastContact)) 4419 } 4420 } else { 4421 r.WriteMapElemKey() 4422 if z.IsJSONHandle() { 4423 z.WriteStr("\"LastContact\"") 4424 } else { 4425 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 4426 } 4427 r.WriteMapElemValue() 4428 if false { 4429 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 4430 z.EncExtension(x.LastContact, yyxt8) 4431 } else { 4432 r.EncodeInt(int64(x.LastContact)) 4433 } 4434 } 4435 if yyr2 || yy2arr2 { 4436 r.WriteArrayElem() 4437 if false { 4438 } else { 4439 r.EncodeBool(bool(x.KnownLeader)) 4440 } 4441 } else { 4442 r.WriteMapElemKey() 4443 if z.IsJSONHandle() { 4444 z.WriteStr("\"KnownLeader\"") 4445 } else { 4446 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 4447 } 4448 r.WriteMapElemValue() 4449 if false { 4450 } else { 4451 r.EncodeBool(bool(x.KnownLeader)) 4452 } 4453 } 4454 if yyr2 || yy2arr2 { 4455 r.WriteArrayEnd() 4456 } else { 4457 r.WriteMapEnd() 4458 } 4459 } 4460 } 4461 } 4462 4463 func (x *CSIVolumeDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 4464 var h codecSelfer100 4465 z, r := codec1978.GenHelperDecoder(d) 4466 _, _, _ = h, z, r 4467 if false { 4468 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4469 z.DecExtension(x, yyxt1) 4470 } else { 4471 yyct2 := r.ContainerType() 4472 if yyct2 == codecSelferValueTypeMap100 { 4473 yyl2 := r.ReadMapStart() 4474 if yyl2 == 0 { 4475 r.ReadMapEnd() 4476 } else { 4477 x.codecDecodeSelfFromMap(yyl2, d) 4478 } 4479 } else if yyct2 == codecSelferValueTypeArray100 { 4480 yyl2 := r.ReadArrayStart() 4481 if yyl2 == 0 { 4482 r.ReadArrayEnd() 4483 } else { 4484 x.codecDecodeSelfFromArray(yyl2, d) 4485 } 4486 } else { 4487 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 4488 } 4489 } 4490 } 4491 4492 func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 4493 var h codecSelfer100 4494 z, r := codec1978.GenHelperDecoder(d) 4495 _, _, _ = h, z, r 4496 var yyhl3 bool = l >= 0 4497 for yyj3 := 0; ; yyj3++ { 4498 if yyhl3 { 4499 if yyj3 >= l { 4500 break 4501 } 4502 } else { 4503 if r.CheckBreak() { 4504 break 4505 } 4506 } 4507 r.ReadMapElemKey() 4508 yys3 := z.StringView(r.DecodeStringAsBytes()) 4509 r.ReadMapElemValue() 4510 switch yys3 { 4511 case "Index": 4512 if r.TryDecodeAsNil() { 4513 x.QueryMeta.Index = 0 4514 } else { 4515 x.Index = (uint64)(r.DecodeUint64()) 4516 } 4517 case "LastContact": 4518 if r.TryDecodeAsNil() { 4519 x.QueryMeta.LastContact = 0 4520 } else { 4521 if false { 4522 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 4523 z.DecExtension(x.LastContact, yyxt6) 4524 } else { 4525 x.LastContact = (time.Duration)(r.DecodeInt64()) 4526 } 4527 } 4528 case "KnownLeader": 4529 if r.TryDecodeAsNil() { 4530 x.QueryMeta.KnownLeader = false 4531 } else { 4532 x.KnownLeader = (bool)(r.DecodeBool()) 4533 } 4534 default: 4535 z.DecStructFieldNotFound(-1, yys3) 4536 } // end switch yys3 4537 } // end for yyj3 4538 r.ReadMapEnd() 4539 } 4540 4541 func (x *CSIVolumeDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 4542 var h codecSelfer100 4543 z, r := codec1978.GenHelperDecoder(d) 4544 _, _, _ = h, z, r 4545 var yyj8 int 4546 var yyb8 bool 4547 var yyhl8 bool = l >= 0 4548 yyj8++ 4549 if yyhl8 { 4550 yyb8 = yyj8 > l 4551 } else { 4552 yyb8 = r.CheckBreak() 4553 } 4554 if yyb8 { 4555 r.ReadArrayEnd() 4556 return 4557 } 4558 r.ReadArrayElem() 4559 if r.TryDecodeAsNil() { 4560 x.QueryMeta.Index = 0 4561 } else { 4562 x.Index = (uint64)(r.DecodeUint64()) 4563 } 4564 yyj8++ 4565 if yyhl8 { 4566 yyb8 = yyj8 > l 4567 } else { 4568 yyb8 = r.CheckBreak() 4569 } 4570 if yyb8 { 4571 r.ReadArrayEnd() 4572 return 4573 } 4574 r.ReadArrayElem() 4575 if r.TryDecodeAsNil() { 4576 x.QueryMeta.LastContact = 0 4577 } else { 4578 if false { 4579 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 4580 z.DecExtension(x.LastContact, yyxt11) 4581 } else { 4582 x.LastContact = (time.Duration)(r.DecodeInt64()) 4583 } 4584 } 4585 yyj8++ 4586 if yyhl8 { 4587 yyb8 = yyj8 > l 4588 } else { 4589 yyb8 = r.CheckBreak() 4590 } 4591 if yyb8 { 4592 r.ReadArrayEnd() 4593 return 4594 } 4595 r.ReadArrayElem() 4596 if r.TryDecodeAsNil() { 4597 x.QueryMeta.KnownLeader = false 4598 } else { 4599 x.KnownLeader = (bool)(r.DecodeBool()) 4600 } 4601 for { 4602 yyj8++ 4603 if yyhl8 { 4604 yyb8 = yyj8 > l 4605 } else { 4606 yyb8 = r.CheckBreak() 4607 } 4608 if yyb8 { 4609 break 4610 } 4611 r.ReadArrayElem() 4612 z.DecStructFieldNotFound(yyj8-1, "") 4613 } 4614 r.ReadArrayEnd() 4615 } 4616 4617 func (x CSIVolumeClaimMode) CodecEncodeSelf(e *codec1978.Encoder) { 4618 var h codecSelfer100 4619 z, r := codec1978.GenHelperEncoder(e) 4620 _, _, _ = h, z, r 4621 if false { 4622 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4623 z.EncExtension(x, yyxt1) 4624 } else { 4625 r.EncodeInt(int64(x)) 4626 } 4627 } 4628 4629 func (x *CSIVolumeClaimMode) CodecDecodeSelf(d *codec1978.Decoder) { 4630 var h codecSelfer100 4631 z, r := codec1978.GenHelperDecoder(d) 4632 _, _, _ = h, z, r 4633 if false { 4634 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4635 z.DecExtension(x, yyxt1) 4636 } else { 4637 *x = (CSIVolumeClaimMode)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 4638 } 4639 } 4640 4641 func (x *CSIVolumeClaimBatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { 4642 var h codecSelfer100 4643 z, r := codec1978.GenHelperEncoder(e) 4644 _, _, _ = h, z, r 4645 if x == nil { 4646 r.EncodeNil() 4647 } else { 4648 if false { 4649 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4650 z.EncExtension(x, yyxt1) 4651 } else { 4652 yysep2 := !z.EncBinary() 4653 yy2arr2 := z.EncBasicHandle().StructToArray 4654 _, _ = yysep2, yy2arr2 4655 const yyr2 bool = false // struct tag has 'toArray' 4656 if yyr2 || yy2arr2 { 4657 r.WriteArrayStart(1) 4658 } else { 4659 r.WriteMapStart(1) 4660 } 4661 if yyr2 || yy2arr2 { 4662 r.WriteArrayElem() 4663 if x.Claims == nil { 4664 r.EncodeNil() 4665 } else { 4666 if false { 4667 } else { 4668 h.encSliceCSIVolumeClaimRequest(([]CSIVolumeClaimRequest)(x.Claims), e) 4669 } 4670 } 4671 } else { 4672 r.WriteMapElemKey() 4673 if z.IsJSONHandle() { 4674 z.WriteStr("\"Claims\"") 4675 } else { 4676 r.EncodeStringEnc(codecSelferCcUTF8100, `Claims`) 4677 } 4678 r.WriteMapElemValue() 4679 if x.Claims == nil { 4680 r.EncodeNil() 4681 } else { 4682 if false { 4683 } else { 4684 h.encSliceCSIVolumeClaimRequest(([]CSIVolumeClaimRequest)(x.Claims), e) 4685 } 4686 } 4687 } 4688 if yyr2 || yy2arr2 { 4689 r.WriteArrayEnd() 4690 } else { 4691 r.WriteMapEnd() 4692 } 4693 } 4694 } 4695 } 4696 4697 func (x *CSIVolumeClaimBatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { 4698 var h codecSelfer100 4699 z, r := codec1978.GenHelperDecoder(d) 4700 _, _, _ = h, z, r 4701 if false { 4702 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4703 z.DecExtension(x, yyxt1) 4704 } else { 4705 yyct2 := r.ContainerType() 4706 if yyct2 == codecSelferValueTypeMap100 { 4707 yyl2 := r.ReadMapStart() 4708 if yyl2 == 0 { 4709 r.ReadMapEnd() 4710 } else { 4711 x.codecDecodeSelfFromMap(yyl2, d) 4712 } 4713 } else if yyct2 == codecSelferValueTypeArray100 { 4714 yyl2 := r.ReadArrayStart() 4715 if yyl2 == 0 { 4716 r.ReadArrayEnd() 4717 } else { 4718 x.codecDecodeSelfFromArray(yyl2, d) 4719 } 4720 } else { 4721 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 4722 } 4723 } 4724 } 4725 4726 func (x *CSIVolumeClaimBatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 4727 var h codecSelfer100 4728 z, r := codec1978.GenHelperDecoder(d) 4729 _, _, _ = h, z, r 4730 var yyhl3 bool = l >= 0 4731 for yyj3 := 0; ; yyj3++ { 4732 if yyhl3 { 4733 if yyj3 >= l { 4734 break 4735 } 4736 } else { 4737 if r.CheckBreak() { 4738 break 4739 } 4740 } 4741 r.ReadMapElemKey() 4742 yys3 := z.StringView(r.DecodeStringAsBytes()) 4743 r.ReadMapElemValue() 4744 switch yys3 { 4745 case "Claims": 4746 if r.TryDecodeAsNil() { 4747 x.Claims = nil 4748 } else { 4749 if false { 4750 } else { 4751 h.decSliceCSIVolumeClaimRequest((*[]CSIVolumeClaimRequest)(&x.Claims), d) 4752 } 4753 } 4754 default: 4755 z.DecStructFieldNotFound(-1, yys3) 4756 } // end switch yys3 4757 } // end for yyj3 4758 r.ReadMapEnd() 4759 } 4760 4761 func (x *CSIVolumeClaimBatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 4762 var h codecSelfer100 4763 z, r := codec1978.GenHelperDecoder(d) 4764 _, _, _ = h, z, r 4765 var yyj6 int 4766 var yyb6 bool 4767 var yyhl6 bool = l >= 0 4768 yyj6++ 4769 if yyhl6 { 4770 yyb6 = yyj6 > l 4771 } else { 4772 yyb6 = r.CheckBreak() 4773 } 4774 if yyb6 { 4775 r.ReadArrayEnd() 4776 return 4777 } 4778 r.ReadArrayElem() 4779 if r.TryDecodeAsNil() { 4780 x.Claims = nil 4781 } else { 4782 if false { 4783 } else { 4784 h.decSliceCSIVolumeClaimRequest((*[]CSIVolumeClaimRequest)(&x.Claims), d) 4785 } 4786 } 4787 for { 4788 yyj6++ 4789 if yyhl6 { 4790 yyb6 = yyj6 > l 4791 } else { 4792 yyb6 = r.CheckBreak() 4793 } 4794 if yyb6 { 4795 break 4796 } 4797 r.ReadArrayElem() 4798 z.DecStructFieldNotFound(yyj6-1, "") 4799 } 4800 r.ReadArrayEnd() 4801 } 4802 4803 func (x *CSIVolumeClaimRequest) CodecEncodeSelf(e *codec1978.Encoder) { 4804 var h codecSelfer100 4805 z, r := codec1978.GenHelperEncoder(e) 4806 _, _, _ = h, z, r 4807 if x == nil { 4808 r.EncodeNil() 4809 } else { 4810 if false { 4811 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 4812 z.EncExtension(x, yyxt1) 4813 } else { 4814 yysep2 := !z.EncBinary() 4815 yy2arr2 := z.EncBasicHandle().StructToArray 4816 _, _ = yysep2, yy2arr2 4817 const yyr2 bool = false // struct tag has 'toArray' 4818 if yyr2 || yy2arr2 { 4819 r.WriteArrayStart(9) 4820 } else { 4821 r.WriteMapStart(9) 4822 } 4823 if yyr2 || yy2arr2 { 4824 r.WriteArrayElem() 4825 if false { 4826 } else { 4827 if z.EncBasicHandle().StringToRaw { 4828 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) 4829 } else { 4830 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) 4831 } 4832 } 4833 } else { 4834 r.WriteMapElemKey() 4835 if z.IsJSONHandle() { 4836 z.WriteStr("\"VolumeID\"") 4837 } else { 4838 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeID`) 4839 } 4840 r.WriteMapElemValue() 4841 if false { 4842 } else { 4843 if z.EncBasicHandle().StringToRaw { 4844 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeID))) 4845 } else { 4846 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeID)) 4847 } 4848 } 4849 } 4850 if yyr2 || yy2arr2 { 4851 r.WriteArrayElem() 4852 if false { 4853 } else { 4854 if z.EncBasicHandle().StringToRaw { 4855 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 4856 } else { 4857 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 4858 } 4859 } 4860 } else { 4861 r.WriteMapElemKey() 4862 if z.IsJSONHandle() { 4863 z.WriteStr("\"AllocationID\"") 4864 } else { 4865 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationID`) 4866 } 4867 r.WriteMapElemValue() 4868 if false { 4869 } else { 4870 if z.EncBasicHandle().StringToRaw { 4871 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocationID))) 4872 } else { 4873 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocationID)) 4874 } 4875 } 4876 } 4877 if yyr2 || yy2arr2 { 4878 r.WriteArrayElem() 4879 if false { 4880 } else { 4881 if z.EncBasicHandle().StringToRaw { 4882 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 4883 } else { 4884 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 4885 } 4886 } 4887 } else { 4888 r.WriteMapElemKey() 4889 if z.IsJSONHandle() { 4890 z.WriteStr("\"NodeID\"") 4891 } else { 4892 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 4893 } 4894 r.WriteMapElemValue() 4895 if false { 4896 } else { 4897 if z.EncBasicHandle().StringToRaw { 4898 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 4899 } else { 4900 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 4901 } 4902 } 4903 } 4904 if yyr2 || yy2arr2 { 4905 r.WriteArrayElem() 4906 x.Claim.CodecEncodeSelf(e) 4907 } else { 4908 r.WriteMapElemKey() 4909 if z.IsJSONHandle() { 4910 z.WriteStr("\"Claim\"") 4911 } else { 4912 r.EncodeStringEnc(codecSelferCcUTF8100, `Claim`) 4913 } 4914 r.WriteMapElemValue() 4915 x.Claim.CodecEncodeSelf(e) 4916 } 4917 if yyr2 || yy2arr2 { 4918 r.WriteArrayElem() 4919 x.State.CodecEncodeSelf(e) 4920 } else { 4921 r.WriteMapElemKey() 4922 if z.IsJSONHandle() { 4923 z.WriteStr("\"State\"") 4924 } else { 4925 r.EncodeStringEnc(codecSelferCcUTF8100, `State`) 4926 } 4927 r.WriteMapElemValue() 4928 x.State.CodecEncodeSelf(e) 4929 } 4930 if yyr2 || yy2arr2 { 4931 r.WriteArrayElem() 4932 if false { 4933 } else { 4934 if z.EncBasicHandle().StringToRaw { 4935 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4936 } else { 4937 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4938 } 4939 } 4940 } else { 4941 r.WriteMapElemKey() 4942 if z.IsJSONHandle() { 4943 z.WriteStr("\"Region\"") 4944 } else { 4945 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 4946 } 4947 r.WriteMapElemValue() 4948 if false { 4949 } else { 4950 if z.EncBasicHandle().StringToRaw { 4951 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 4952 } else { 4953 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 4954 } 4955 } 4956 } 4957 if yyr2 || yy2arr2 { 4958 r.WriteArrayElem() 4959 if false { 4960 } else { 4961 if z.EncBasicHandle().StringToRaw { 4962 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4963 } else { 4964 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4965 } 4966 } 4967 } else { 4968 r.WriteMapElemKey() 4969 if z.IsJSONHandle() { 4970 z.WriteStr("\"Namespace\"") 4971 } else { 4972 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 4973 } 4974 r.WriteMapElemValue() 4975 if false { 4976 } else { 4977 if z.EncBasicHandle().StringToRaw { 4978 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 4979 } else { 4980 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 4981 } 4982 } 4983 } 4984 if yyr2 || yy2arr2 { 4985 r.WriteArrayElem() 4986 if false { 4987 } else { 4988 if z.EncBasicHandle().StringToRaw { 4989 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 4990 } else { 4991 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 4992 } 4993 } 4994 } else { 4995 r.WriteMapElemKey() 4996 if z.IsJSONHandle() { 4997 z.WriteStr("\"AuthToken\"") 4998 } else { 4999 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 5000 } 5001 r.WriteMapElemValue() 5002 if false { 5003 } else { 5004 if z.EncBasicHandle().StringToRaw { 5005 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5006 } else { 5007 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5008 } 5009 } 5010 } 5011 if yyr2 || yy2arr2 { 5012 r.WriteArrayElem() 5013 if false { 5014 } else { 5015 r.EncodeBool(bool(x.Forwarded)) 5016 } 5017 } else { 5018 r.WriteMapElemKey() 5019 if z.IsJSONHandle() { 5020 z.WriteStr("\"Forwarded\"") 5021 } else { 5022 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 5023 } 5024 r.WriteMapElemValue() 5025 if false { 5026 } else { 5027 r.EncodeBool(bool(x.Forwarded)) 5028 } 5029 } 5030 if yyr2 || yy2arr2 { 5031 r.WriteArrayEnd() 5032 } else { 5033 r.WriteMapEnd() 5034 } 5035 } 5036 } 5037 } 5038 5039 func (x *CSIVolumeClaimRequest) CodecDecodeSelf(d *codec1978.Decoder) { 5040 var h codecSelfer100 5041 z, r := codec1978.GenHelperDecoder(d) 5042 _, _, _ = h, z, r 5043 if false { 5044 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5045 z.DecExtension(x, yyxt1) 5046 } else { 5047 yyct2 := r.ContainerType() 5048 if yyct2 == codecSelferValueTypeMap100 { 5049 yyl2 := r.ReadMapStart() 5050 if yyl2 == 0 { 5051 r.ReadMapEnd() 5052 } else { 5053 x.codecDecodeSelfFromMap(yyl2, d) 5054 } 5055 } else if yyct2 == codecSelferValueTypeArray100 { 5056 yyl2 := r.ReadArrayStart() 5057 if yyl2 == 0 { 5058 r.ReadArrayEnd() 5059 } else { 5060 x.codecDecodeSelfFromArray(yyl2, d) 5061 } 5062 } else { 5063 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 5064 } 5065 } 5066 } 5067 5068 func (x *CSIVolumeClaimRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 5069 var h codecSelfer100 5070 z, r := codec1978.GenHelperDecoder(d) 5071 _, _, _ = h, z, r 5072 var yyhl3 bool = l >= 0 5073 for yyj3 := 0; ; yyj3++ { 5074 if yyhl3 { 5075 if yyj3 >= l { 5076 break 5077 } 5078 } else { 5079 if r.CheckBreak() { 5080 break 5081 } 5082 } 5083 r.ReadMapElemKey() 5084 yys3 := z.StringView(r.DecodeStringAsBytes()) 5085 r.ReadMapElemValue() 5086 switch yys3 { 5087 case "VolumeID": 5088 if r.TryDecodeAsNil() { 5089 x.VolumeID = "" 5090 } else { 5091 x.VolumeID = (string)(r.DecodeString()) 5092 } 5093 case "AllocationID": 5094 if r.TryDecodeAsNil() { 5095 x.AllocationID = "" 5096 } else { 5097 x.AllocationID = (string)(r.DecodeString()) 5098 } 5099 case "NodeID": 5100 if r.TryDecodeAsNil() { 5101 x.NodeID = "" 5102 } else { 5103 x.NodeID = (string)(r.DecodeString()) 5104 } 5105 case "Claim": 5106 if r.TryDecodeAsNil() { 5107 x.Claim = 0 5108 } else { 5109 x.Claim.CodecDecodeSelf(d) 5110 } 5111 case "State": 5112 if r.TryDecodeAsNil() { 5113 x.State = 0 5114 } else { 5115 x.State.CodecDecodeSelf(d) 5116 } 5117 case "Region": 5118 if r.TryDecodeAsNil() { 5119 x.WriteRequest.Region = "" 5120 } else { 5121 x.Region = (string)(r.DecodeString()) 5122 } 5123 case "Namespace": 5124 if r.TryDecodeAsNil() { 5125 x.WriteRequest.Namespace = "" 5126 } else { 5127 x.Namespace = (string)(r.DecodeString()) 5128 } 5129 case "AuthToken": 5130 if r.TryDecodeAsNil() { 5131 x.WriteRequest.AuthToken = "" 5132 } else { 5133 x.AuthToken = (string)(r.DecodeString()) 5134 } 5135 case "Forwarded": 5136 if r.TryDecodeAsNil() { 5137 x.WriteRequest.InternalRpcInfo.Forwarded = false 5138 } else { 5139 x.Forwarded = (bool)(r.DecodeBool()) 5140 } 5141 default: 5142 z.DecStructFieldNotFound(-1, yys3) 5143 } // end switch yys3 5144 } // end for yyj3 5145 r.ReadMapEnd() 5146 } 5147 5148 func (x *CSIVolumeClaimRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 5149 var h codecSelfer100 5150 z, r := codec1978.GenHelperDecoder(d) 5151 _, _, _ = h, z, r 5152 var yyj13 int 5153 var yyb13 bool 5154 var yyhl13 bool = l >= 0 5155 yyj13++ 5156 if yyhl13 { 5157 yyb13 = yyj13 > l 5158 } else { 5159 yyb13 = r.CheckBreak() 5160 } 5161 if yyb13 { 5162 r.ReadArrayEnd() 5163 return 5164 } 5165 r.ReadArrayElem() 5166 if r.TryDecodeAsNil() { 5167 x.VolumeID = "" 5168 } else { 5169 x.VolumeID = (string)(r.DecodeString()) 5170 } 5171 yyj13++ 5172 if yyhl13 { 5173 yyb13 = yyj13 > l 5174 } else { 5175 yyb13 = r.CheckBreak() 5176 } 5177 if yyb13 { 5178 r.ReadArrayEnd() 5179 return 5180 } 5181 r.ReadArrayElem() 5182 if r.TryDecodeAsNil() { 5183 x.AllocationID = "" 5184 } else { 5185 x.AllocationID = (string)(r.DecodeString()) 5186 } 5187 yyj13++ 5188 if yyhl13 { 5189 yyb13 = yyj13 > l 5190 } else { 5191 yyb13 = r.CheckBreak() 5192 } 5193 if yyb13 { 5194 r.ReadArrayEnd() 5195 return 5196 } 5197 r.ReadArrayElem() 5198 if r.TryDecodeAsNil() { 5199 x.NodeID = "" 5200 } else { 5201 x.NodeID = (string)(r.DecodeString()) 5202 } 5203 yyj13++ 5204 if yyhl13 { 5205 yyb13 = yyj13 > l 5206 } else { 5207 yyb13 = r.CheckBreak() 5208 } 5209 if yyb13 { 5210 r.ReadArrayEnd() 5211 return 5212 } 5213 r.ReadArrayElem() 5214 if r.TryDecodeAsNil() { 5215 x.Claim = 0 5216 } else { 5217 x.Claim.CodecDecodeSelf(d) 5218 } 5219 yyj13++ 5220 if yyhl13 { 5221 yyb13 = yyj13 > l 5222 } else { 5223 yyb13 = r.CheckBreak() 5224 } 5225 if yyb13 { 5226 r.ReadArrayEnd() 5227 return 5228 } 5229 r.ReadArrayElem() 5230 if r.TryDecodeAsNil() { 5231 x.State = 0 5232 } else { 5233 x.State.CodecDecodeSelf(d) 5234 } 5235 yyj13++ 5236 if yyhl13 { 5237 yyb13 = yyj13 > l 5238 } else { 5239 yyb13 = r.CheckBreak() 5240 } 5241 if yyb13 { 5242 r.ReadArrayEnd() 5243 return 5244 } 5245 r.ReadArrayElem() 5246 if r.TryDecodeAsNil() { 5247 x.WriteRequest.Region = "" 5248 } else { 5249 x.Region = (string)(r.DecodeString()) 5250 } 5251 yyj13++ 5252 if yyhl13 { 5253 yyb13 = yyj13 > l 5254 } else { 5255 yyb13 = r.CheckBreak() 5256 } 5257 if yyb13 { 5258 r.ReadArrayEnd() 5259 return 5260 } 5261 r.ReadArrayElem() 5262 if r.TryDecodeAsNil() { 5263 x.WriteRequest.Namespace = "" 5264 } else { 5265 x.Namespace = (string)(r.DecodeString()) 5266 } 5267 yyj13++ 5268 if yyhl13 { 5269 yyb13 = yyj13 > l 5270 } else { 5271 yyb13 = r.CheckBreak() 5272 } 5273 if yyb13 { 5274 r.ReadArrayEnd() 5275 return 5276 } 5277 r.ReadArrayElem() 5278 if r.TryDecodeAsNil() { 5279 x.WriteRequest.AuthToken = "" 5280 } else { 5281 x.AuthToken = (string)(r.DecodeString()) 5282 } 5283 yyj13++ 5284 if yyhl13 { 5285 yyb13 = yyj13 > l 5286 } else { 5287 yyb13 = r.CheckBreak() 5288 } 5289 if yyb13 { 5290 r.ReadArrayEnd() 5291 return 5292 } 5293 r.ReadArrayElem() 5294 if r.TryDecodeAsNil() { 5295 x.WriteRequest.InternalRpcInfo.Forwarded = false 5296 } else { 5297 x.Forwarded = (bool)(r.DecodeBool()) 5298 } 5299 for { 5300 yyj13++ 5301 if yyhl13 { 5302 yyb13 = yyj13 > l 5303 } else { 5304 yyb13 = r.CheckBreak() 5305 } 5306 if yyb13 { 5307 break 5308 } 5309 r.ReadArrayElem() 5310 z.DecStructFieldNotFound(yyj13-1, "") 5311 } 5312 r.ReadArrayEnd() 5313 } 5314 5315 func (x *CSIVolumeClaimResponse) CodecEncodeSelf(e *codec1978.Encoder) { 5316 var h codecSelfer100 5317 z, r := codec1978.GenHelperEncoder(e) 5318 _, _, _ = h, z, r 5319 if x == nil { 5320 r.EncodeNil() 5321 } else { 5322 if false { 5323 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5324 z.EncExtension(x, yyxt1) 5325 } else { 5326 yysep2 := !z.EncBinary() 5327 yy2arr2 := z.EncBasicHandle().StructToArray 5328 _, _ = yysep2, yy2arr2 5329 const yyr2 bool = false // struct tag has 'toArray' 5330 if yyr2 || yy2arr2 { 5331 r.WriteArrayStart(5) 5332 } else { 5333 r.WriteMapStart(5) 5334 } 5335 if yyr2 || yy2arr2 { 5336 r.WriteArrayElem() 5337 if x.PublishContext == nil { 5338 r.EncodeNil() 5339 } else { 5340 if false { 5341 } else { 5342 z.F.EncMapStringStringV(x.PublishContext, e) 5343 } 5344 } 5345 } else { 5346 r.WriteMapElemKey() 5347 if z.IsJSONHandle() { 5348 z.WriteStr("\"PublishContext\"") 5349 } else { 5350 r.EncodeStringEnc(codecSelferCcUTF8100, `PublishContext`) 5351 } 5352 r.WriteMapElemValue() 5353 if x.PublishContext == nil { 5354 r.EncodeNil() 5355 } else { 5356 if false { 5357 } else { 5358 z.F.EncMapStringStringV(x.PublishContext, e) 5359 } 5360 } 5361 } 5362 var yyn6 bool 5363 if x.Volume == nil { 5364 yyn6 = true 5365 goto LABEL6 5366 } 5367 LABEL6: 5368 if yyr2 || yy2arr2 { 5369 if yyn6 { 5370 r.WriteArrayElem() 5371 r.EncodeNil() 5372 } else { 5373 r.WriteArrayElem() 5374 if x.Volume == nil { 5375 r.EncodeNil() 5376 } else { 5377 x.Volume.CodecEncodeSelf(e) 5378 } 5379 } 5380 } else { 5381 r.WriteMapElemKey() 5382 if z.IsJSONHandle() { 5383 z.WriteStr("\"Volume\"") 5384 } else { 5385 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 5386 } 5387 r.WriteMapElemValue() 5388 if yyn6 { 5389 r.EncodeNil() 5390 } else { 5391 if x.Volume == nil { 5392 r.EncodeNil() 5393 } else { 5394 x.Volume.CodecEncodeSelf(e) 5395 } 5396 } 5397 } 5398 if yyr2 || yy2arr2 { 5399 r.WriteArrayElem() 5400 if false { 5401 } else { 5402 r.EncodeUint(uint64(x.Index)) 5403 } 5404 } else { 5405 r.WriteMapElemKey() 5406 if z.IsJSONHandle() { 5407 z.WriteStr("\"Index\"") 5408 } else { 5409 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 5410 } 5411 r.WriteMapElemValue() 5412 if false { 5413 } else { 5414 r.EncodeUint(uint64(x.Index)) 5415 } 5416 } 5417 if yyr2 || yy2arr2 { 5418 r.WriteArrayElem() 5419 if false { 5420 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 5421 z.EncExtension(x.LastContact, yyxt13) 5422 } else { 5423 r.EncodeInt(int64(x.LastContact)) 5424 } 5425 } else { 5426 r.WriteMapElemKey() 5427 if z.IsJSONHandle() { 5428 z.WriteStr("\"LastContact\"") 5429 } else { 5430 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 5431 } 5432 r.WriteMapElemValue() 5433 if false { 5434 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 5435 z.EncExtension(x.LastContact, yyxt14) 5436 } else { 5437 r.EncodeInt(int64(x.LastContact)) 5438 } 5439 } 5440 if yyr2 || yy2arr2 { 5441 r.WriteArrayElem() 5442 if false { 5443 } else { 5444 r.EncodeBool(bool(x.KnownLeader)) 5445 } 5446 } else { 5447 r.WriteMapElemKey() 5448 if z.IsJSONHandle() { 5449 z.WriteStr("\"KnownLeader\"") 5450 } else { 5451 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 5452 } 5453 r.WriteMapElemValue() 5454 if false { 5455 } else { 5456 r.EncodeBool(bool(x.KnownLeader)) 5457 } 5458 } 5459 if yyr2 || yy2arr2 { 5460 r.WriteArrayEnd() 5461 } else { 5462 r.WriteMapEnd() 5463 } 5464 } 5465 } 5466 } 5467 5468 func (x *CSIVolumeClaimResponse) CodecDecodeSelf(d *codec1978.Decoder) { 5469 var h codecSelfer100 5470 z, r := codec1978.GenHelperDecoder(d) 5471 _, _, _ = h, z, r 5472 if false { 5473 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5474 z.DecExtension(x, yyxt1) 5475 } else { 5476 yyct2 := r.ContainerType() 5477 if yyct2 == codecSelferValueTypeMap100 { 5478 yyl2 := r.ReadMapStart() 5479 if yyl2 == 0 { 5480 r.ReadMapEnd() 5481 } else { 5482 x.codecDecodeSelfFromMap(yyl2, d) 5483 } 5484 } else if yyct2 == codecSelferValueTypeArray100 { 5485 yyl2 := r.ReadArrayStart() 5486 if yyl2 == 0 { 5487 r.ReadArrayEnd() 5488 } else { 5489 x.codecDecodeSelfFromArray(yyl2, d) 5490 } 5491 } else { 5492 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 5493 } 5494 } 5495 } 5496 5497 func (x *CSIVolumeClaimResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 5498 var h codecSelfer100 5499 z, r := codec1978.GenHelperDecoder(d) 5500 _, _, _ = h, z, r 5501 var yyhl3 bool = l >= 0 5502 for yyj3 := 0; ; yyj3++ { 5503 if yyhl3 { 5504 if yyj3 >= l { 5505 break 5506 } 5507 } else { 5508 if r.CheckBreak() { 5509 break 5510 } 5511 } 5512 r.ReadMapElemKey() 5513 yys3 := z.StringView(r.DecodeStringAsBytes()) 5514 r.ReadMapElemValue() 5515 switch yys3 { 5516 case "PublishContext": 5517 if r.TryDecodeAsNil() { 5518 x.PublishContext = nil 5519 } else { 5520 if false { 5521 } else { 5522 z.F.DecMapStringStringX(&x.PublishContext, d) 5523 } 5524 } 5525 case "Volume": 5526 if r.TryDecodeAsNil() { 5527 if true && x.Volume != nil { 5528 x.Volume = nil 5529 } 5530 } else { 5531 if x.Volume == nil { 5532 x.Volume = new(CSIVolume) 5533 } 5534 5535 x.Volume.CodecDecodeSelf(d) 5536 } 5537 case "Index": 5538 if r.TryDecodeAsNil() { 5539 x.QueryMeta.Index = 0 5540 } else { 5541 x.Index = (uint64)(r.DecodeUint64()) 5542 } 5543 case "LastContact": 5544 if r.TryDecodeAsNil() { 5545 x.QueryMeta.LastContact = 0 5546 } else { 5547 if false { 5548 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 5549 z.DecExtension(x.LastContact, yyxt9) 5550 } else { 5551 x.LastContact = (time.Duration)(r.DecodeInt64()) 5552 } 5553 } 5554 case "KnownLeader": 5555 if r.TryDecodeAsNil() { 5556 x.QueryMeta.KnownLeader = false 5557 } else { 5558 x.KnownLeader = (bool)(r.DecodeBool()) 5559 } 5560 default: 5561 z.DecStructFieldNotFound(-1, yys3) 5562 } // end switch yys3 5563 } // end for yyj3 5564 r.ReadMapEnd() 5565 } 5566 5567 func (x *CSIVolumeClaimResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 5568 var h codecSelfer100 5569 z, r := codec1978.GenHelperDecoder(d) 5570 _, _, _ = h, z, r 5571 var yyj11 int 5572 var yyb11 bool 5573 var yyhl11 bool = l >= 0 5574 yyj11++ 5575 if yyhl11 { 5576 yyb11 = yyj11 > l 5577 } else { 5578 yyb11 = r.CheckBreak() 5579 } 5580 if yyb11 { 5581 r.ReadArrayEnd() 5582 return 5583 } 5584 r.ReadArrayElem() 5585 if r.TryDecodeAsNil() { 5586 x.PublishContext = nil 5587 } else { 5588 if false { 5589 } else { 5590 z.F.DecMapStringStringX(&x.PublishContext, d) 5591 } 5592 } 5593 yyj11++ 5594 if yyhl11 { 5595 yyb11 = yyj11 > l 5596 } else { 5597 yyb11 = r.CheckBreak() 5598 } 5599 if yyb11 { 5600 r.ReadArrayEnd() 5601 return 5602 } 5603 r.ReadArrayElem() 5604 if r.TryDecodeAsNil() { 5605 if true && x.Volume != nil { 5606 x.Volume = nil 5607 } 5608 } else { 5609 if x.Volume == nil { 5610 x.Volume = new(CSIVolume) 5611 } 5612 5613 x.Volume.CodecDecodeSelf(d) 5614 } 5615 yyj11++ 5616 if yyhl11 { 5617 yyb11 = yyj11 > l 5618 } else { 5619 yyb11 = r.CheckBreak() 5620 } 5621 if yyb11 { 5622 r.ReadArrayEnd() 5623 return 5624 } 5625 r.ReadArrayElem() 5626 if r.TryDecodeAsNil() { 5627 x.QueryMeta.Index = 0 5628 } else { 5629 x.Index = (uint64)(r.DecodeUint64()) 5630 } 5631 yyj11++ 5632 if yyhl11 { 5633 yyb11 = yyj11 > l 5634 } else { 5635 yyb11 = r.CheckBreak() 5636 } 5637 if yyb11 { 5638 r.ReadArrayEnd() 5639 return 5640 } 5641 r.ReadArrayElem() 5642 if r.TryDecodeAsNil() { 5643 x.QueryMeta.LastContact = 0 5644 } else { 5645 if false { 5646 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 5647 z.DecExtension(x.LastContact, yyxt17) 5648 } else { 5649 x.LastContact = (time.Duration)(r.DecodeInt64()) 5650 } 5651 } 5652 yyj11++ 5653 if yyhl11 { 5654 yyb11 = yyj11 > l 5655 } else { 5656 yyb11 = r.CheckBreak() 5657 } 5658 if yyb11 { 5659 r.ReadArrayEnd() 5660 return 5661 } 5662 r.ReadArrayElem() 5663 if r.TryDecodeAsNil() { 5664 x.QueryMeta.KnownLeader = false 5665 } else { 5666 x.KnownLeader = (bool)(r.DecodeBool()) 5667 } 5668 for { 5669 yyj11++ 5670 if yyhl11 { 5671 yyb11 = yyj11 > l 5672 } else { 5673 yyb11 = r.CheckBreak() 5674 } 5675 if yyb11 { 5676 break 5677 } 5678 r.ReadArrayElem() 5679 z.DecStructFieldNotFound(yyj11-1, "") 5680 } 5681 r.ReadArrayEnd() 5682 } 5683 5684 func (x *CSIVolumeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 5685 var h codecSelfer100 5686 z, r := codec1978.GenHelperEncoder(e) 5687 _, _, _ = h, z, r 5688 if x == nil { 5689 r.EncodeNil() 5690 } else { 5691 if false { 5692 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5693 z.EncExtension(x, yyxt1) 5694 } else { 5695 yysep2 := !z.EncBinary() 5696 yy2arr2 := z.EncBasicHandle().StructToArray 5697 _, _ = yysep2, yy2arr2 5698 const yyr2 bool = false // struct tag has 'toArray' 5699 if yyr2 || yy2arr2 { 5700 r.WriteArrayStart(10) 5701 } else { 5702 r.WriteMapStart(10) 5703 } 5704 if yyr2 || yy2arr2 { 5705 r.WriteArrayElem() 5706 if false { 5707 } else { 5708 if z.EncBasicHandle().StringToRaw { 5709 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 5710 } else { 5711 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 5712 } 5713 } 5714 } else { 5715 r.WriteMapElemKey() 5716 if z.IsJSONHandle() { 5717 z.WriteStr("\"PluginID\"") 5718 } else { 5719 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 5720 } 5721 r.WriteMapElemValue() 5722 if false { 5723 } else { 5724 if z.EncBasicHandle().StringToRaw { 5725 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 5726 } else { 5727 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 5728 } 5729 } 5730 } 5731 if yyr2 || yy2arr2 { 5732 r.WriteArrayElem() 5733 if false { 5734 } else { 5735 if z.EncBasicHandle().StringToRaw { 5736 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 5737 } else { 5738 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 5739 } 5740 } 5741 } else { 5742 r.WriteMapElemKey() 5743 if z.IsJSONHandle() { 5744 z.WriteStr("\"NodeID\"") 5745 } else { 5746 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 5747 } 5748 r.WriteMapElemValue() 5749 if false { 5750 } else { 5751 if z.EncBasicHandle().StringToRaw { 5752 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 5753 } else { 5754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 5755 } 5756 } 5757 } 5758 if yyr2 || yy2arr2 { 5759 r.WriteArrayElem() 5760 if false { 5761 } else { 5762 if z.EncBasicHandle().StringToRaw { 5763 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 5764 } else { 5765 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 5766 } 5767 } 5768 } else { 5769 r.WriteMapElemKey() 5770 if z.IsJSONHandle() { 5771 z.WriteStr("\"Region\"") 5772 } else { 5773 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 5774 } 5775 r.WriteMapElemValue() 5776 if false { 5777 } else { 5778 if z.EncBasicHandle().StringToRaw { 5779 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 5780 } else { 5781 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 5782 } 5783 } 5784 } 5785 if yyr2 || yy2arr2 { 5786 r.WriteArrayElem() 5787 if false { 5788 } else { 5789 if z.EncBasicHandle().StringToRaw { 5790 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 5791 } else { 5792 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 5793 } 5794 } 5795 } else { 5796 r.WriteMapElemKey() 5797 if z.IsJSONHandle() { 5798 z.WriteStr("\"Namespace\"") 5799 } else { 5800 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 5801 } 5802 r.WriteMapElemValue() 5803 if false { 5804 } else { 5805 if z.EncBasicHandle().StringToRaw { 5806 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 5807 } else { 5808 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 5809 } 5810 } 5811 } 5812 if yyr2 || yy2arr2 { 5813 r.WriteArrayElem() 5814 if false { 5815 } else { 5816 r.EncodeUint(uint64(x.MinQueryIndex)) 5817 } 5818 } else { 5819 r.WriteMapElemKey() 5820 if z.IsJSONHandle() { 5821 z.WriteStr("\"MinQueryIndex\"") 5822 } else { 5823 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 5824 } 5825 r.WriteMapElemValue() 5826 if false { 5827 } else { 5828 r.EncodeUint(uint64(x.MinQueryIndex)) 5829 } 5830 } 5831 if yyr2 || yy2arr2 { 5832 r.WriteArrayElem() 5833 if false { 5834 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 5835 z.EncExtension(x.MaxQueryTime, yyxt19) 5836 } else { 5837 r.EncodeInt(int64(x.MaxQueryTime)) 5838 } 5839 } else { 5840 r.WriteMapElemKey() 5841 if z.IsJSONHandle() { 5842 z.WriteStr("\"MaxQueryTime\"") 5843 } else { 5844 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 5845 } 5846 r.WriteMapElemValue() 5847 if false { 5848 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 5849 z.EncExtension(x.MaxQueryTime, yyxt20) 5850 } else { 5851 r.EncodeInt(int64(x.MaxQueryTime)) 5852 } 5853 } 5854 if yyr2 || yy2arr2 { 5855 r.WriteArrayElem() 5856 if false { 5857 } else { 5858 r.EncodeBool(bool(x.AllowStale)) 5859 } 5860 } else { 5861 r.WriteMapElemKey() 5862 if z.IsJSONHandle() { 5863 z.WriteStr("\"AllowStale\"") 5864 } else { 5865 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 5866 } 5867 r.WriteMapElemValue() 5868 if false { 5869 } else { 5870 r.EncodeBool(bool(x.AllowStale)) 5871 } 5872 } 5873 if yyr2 || yy2arr2 { 5874 r.WriteArrayElem() 5875 if false { 5876 } else { 5877 if z.EncBasicHandle().StringToRaw { 5878 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5879 } else { 5880 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5881 } 5882 } 5883 } else { 5884 r.WriteMapElemKey() 5885 if z.IsJSONHandle() { 5886 z.WriteStr("\"Prefix\"") 5887 } else { 5888 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 5889 } 5890 r.WriteMapElemValue() 5891 if false { 5892 } else { 5893 if z.EncBasicHandle().StringToRaw { 5894 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 5895 } else { 5896 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 5897 } 5898 } 5899 } 5900 if yyr2 || yy2arr2 { 5901 r.WriteArrayElem() 5902 if false { 5903 } else { 5904 if z.EncBasicHandle().StringToRaw { 5905 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5906 } else { 5907 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5908 } 5909 } 5910 } else { 5911 r.WriteMapElemKey() 5912 if z.IsJSONHandle() { 5913 z.WriteStr("\"AuthToken\"") 5914 } else { 5915 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 5916 } 5917 r.WriteMapElemValue() 5918 if false { 5919 } else { 5920 if z.EncBasicHandle().StringToRaw { 5921 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 5922 } else { 5923 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 5924 } 5925 } 5926 } 5927 if yyr2 || yy2arr2 { 5928 r.WriteArrayElem() 5929 if false { 5930 } else { 5931 r.EncodeBool(bool(x.Forwarded)) 5932 } 5933 } else { 5934 r.WriteMapElemKey() 5935 if z.IsJSONHandle() { 5936 z.WriteStr("\"Forwarded\"") 5937 } else { 5938 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 5939 } 5940 r.WriteMapElemValue() 5941 if false { 5942 } else { 5943 r.EncodeBool(bool(x.Forwarded)) 5944 } 5945 } 5946 if yyr2 || yy2arr2 { 5947 r.WriteArrayEnd() 5948 } else { 5949 r.WriteMapEnd() 5950 } 5951 } 5952 } 5953 } 5954 5955 func (x *CSIVolumeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 5956 var h codecSelfer100 5957 z, r := codec1978.GenHelperDecoder(d) 5958 _, _, _ = h, z, r 5959 if false { 5960 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 5961 z.DecExtension(x, yyxt1) 5962 } else { 5963 yyct2 := r.ContainerType() 5964 if yyct2 == codecSelferValueTypeMap100 { 5965 yyl2 := r.ReadMapStart() 5966 if yyl2 == 0 { 5967 r.ReadMapEnd() 5968 } else { 5969 x.codecDecodeSelfFromMap(yyl2, d) 5970 } 5971 } else if yyct2 == codecSelferValueTypeArray100 { 5972 yyl2 := r.ReadArrayStart() 5973 if yyl2 == 0 { 5974 r.ReadArrayEnd() 5975 } else { 5976 x.codecDecodeSelfFromArray(yyl2, d) 5977 } 5978 } else { 5979 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 5980 } 5981 } 5982 } 5983 5984 func (x *CSIVolumeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 5985 var h codecSelfer100 5986 z, r := codec1978.GenHelperDecoder(d) 5987 _, _, _ = h, z, r 5988 var yyhl3 bool = l >= 0 5989 for yyj3 := 0; ; yyj3++ { 5990 if yyhl3 { 5991 if yyj3 >= l { 5992 break 5993 } 5994 } else { 5995 if r.CheckBreak() { 5996 break 5997 } 5998 } 5999 r.ReadMapElemKey() 6000 yys3 := z.StringView(r.DecodeStringAsBytes()) 6001 r.ReadMapElemValue() 6002 switch yys3 { 6003 case "PluginID": 6004 if r.TryDecodeAsNil() { 6005 x.PluginID = "" 6006 } else { 6007 x.PluginID = (string)(r.DecodeString()) 6008 } 6009 case "NodeID": 6010 if r.TryDecodeAsNil() { 6011 x.NodeID = "" 6012 } else { 6013 x.NodeID = (string)(r.DecodeString()) 6014 } 6015 case "Region": 6016 if r.TryDecodeAsNil() { 6017 x.QueryOptions.Region = "" 6018 } else { 6019 x.Region = (string)(r.DecodeString()) 6020 } 6021 case "Namespace": 6022 if r.TryDecodeAsNil() { 6023 x.QueryOptions.Namespace = "" 6024 } else { 6025 x.Namespace = (string)(r.DecodeString()) 6026 } 6027 case "MinQueryIndex": 6028 if r.TryDecodeAsNil() { 6029 x.QueryOptions.MinQueryIndex = 0 6030 } else { 6031 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6032 } 6033 case "MaxQueryTime": 6034 if r.TryDecodeAsNil() { 6035 x.QueryOptions.MaxQueryTime = 0 6036 } else { 6037 if false { 6038 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 6039 z.DecExtension(x.MaxQueryTime, yyxt10) 6040 } else { 6041 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 6042 } 6043 } 6044 case "AllowStale": 6045 if r.TryDecodeAsNil() { 6046 x.QueryOptions.AllowStale = false 6047 } else { 6048 x.AllowStale = (bool)(r.DecodeBool()) 6049 } 6050 case "Prefix": 6051 if r.TryDecodeAsNil() { 6052 x.QueryOptions.Prefix = "" 6053 } else { 6054 x.Prefix = (string)(r.DecodeString()) 6055 } 6056 case "AuthToken": 6057 if r.TryDecodeAsNil() { 6058 x.QueryOptions.AuthToken = "" 6059 } else { 6060 x.AuthToken = (string)(r.DecodeString()) 6061 } 6062 case "Forwarded": 6063 if r.TryDecodeAsNil() { 6064 x.QueryOptions.InternalRpcInfo.Forwarded = false 6065 } else { 6066 x.Forwarded = (bool)(r.DecodeBool()) 6067 } 6068 default: 6069 z.DecStructFieldNotFound(-1, yys3) 6070 } // end switch yys3 6071 } // end for yyj3 6072 r.ReadMapEnd() 6073 } 6074 6075 func (x *CSIVolumeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 6076 var h codecSelfer100 6077 z, r := codec1978.GenHelperDecoder(d) 6078 _, _, _ = h, z, r 6079 var yyj15 int 6080 var yyb15 bool 6081 var yyhl15 bool = l >= 0 6082 yyj15++ 6083 if yyhl15 { 6084 yyb15 = yyj15 > l 6085 } else { 6086 yyb15 = r.CheckBreak() 6087 } 6088 if yyb15 { 6089 r.ReadArrayEnd() 6090 return 6091 } 6092 r.ReadArrayElem() 6093 if r.TryDecodeAsNil() { 6094 x.PluginID = "" 6095 } else { 6096 x.PluginID = (string)(r.DecodeString()) 6097 } 6098 yyj15++ 6099 if yyhl15 { 6100 yyb15 = yyj15 > l 6101 } else { 6102 yyb15 = r.CheckBreak() 6103 } 6104 if yyb15 { 6105 r.ReadArrayEnd() 6106 return 6107 } 6108 r.ReadArrayElem() 6109 if r.TryDecodeAsNil() { 6110 x.NodeID = "" 6111 } else { 6112 x.NodeID = (string)(r.DecodeString()) 6113 } 6114 yyj15++ 6115 if yyhl15 { 6116 yyb15 = yyj15 > l 6117 } else { 6118 yyb15 = r.CheckBreak() 6119 } 6120 if yyb15 { 6121 r.ReadArrayEnd() 6122 return 6123 } 6124 r.ReadArrayElem() 6125 if r.TryDecodeAsNil() { 6126 x.QueryOptions.Region = "" 6127 } else { 6128 x.Region = (string)(r.DecodeString()) 6129 } 6130 yyj15++ 6131 if yyhl15 { 6132 yyb15 = yyj15 > l 6133 } else { 6134 yyb15 = r.CheckBreak() 6135 } 6136 if yyb15 { 6137 r.ReadArrayEnd() 6138 return 6139 } 6140 r.ReadArrayElem() 6141 if r.TryDecodeAsNil() { 6142 x.QueryOptions.Namespace = "" 6143 } else { 6144 x.Namespace = (string)(r.DecodeString()) 6145 } 6146 yyj15++ 6147 if yyhl15 { 6148 yyb15 = yyj15 > l 6149 } else { 6150 yyb15 = r.CheckBreak() 6151 } 6152 if yyb15 { 6153 r.ReadArrayEnd() 6154 return 6155 } 6156 r.ReadArrayElem() 6157 if r.TryDecodeAsNil() { 6158 x.QueryOptions.MinQueryIndex = 0 6159 } else { 6160 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6161 } 6162 yyj15++ 6163 if yyhl15 { 6164 yyb15 = yyj15 > l 6165 } else { 6166 yyb15 = r.CheckBreak() 6167 } 6168 if yyb15 { 6169 r.ReadArrayEnd() 6170 return 6171 } 6172 r.ReadArrayElem() 6173 if r.TryDecodeAsNil() { 6174 x.QueryOptions.MaxQueryTime = 0 6175 } else { 6176 if false { 6177 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 6178 z.DecExtension(x.MaxQueryTime, yyxt22) 6179 } else { 6180 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 6181 } 6182 } 6183 yyj15++ 6184 if yyhl15 { 6185 yyb15 = yyj15 > l 6186 } else { 6187 yyb15 = r.CheckBreak() 6188 } 6189 if yyb15 { 6190 r.ReadArrayEnd() 6191 return 6192 } 6193 r.ReadArrayElem() 6194 if r.TryDecodeAsNil() { 6195 x.QueryOptions.AllowStale = false 6196 } else { 6197 x.AllowStale = (bool)(r.DecodeBool()) 6198 } 6199 yyj15++ 6200 if yyhl15 { 6201 yyb15 = yyj15 > l 6202 } else { 6203 yyb15 = r.CheckBreak() 6204 } 6205 if yyb15 { 6206 r.ReadArrayEnd() 6207 return 6208 } 6209 r.ReadArrayElem() 6210 if r.TryDecodeAsNil() { 6211 x.QueryOptions.Prefix = "" 6212 } else { 6213 x.Prefix = (string)(r.DecodeString()) 6214 } 6215 yyj15++ 6216 if yyhl15 { 6217 yyb15 = yyj15 > l 6218 } else { 6219 yyb15 = r.CheckBreak() 6220 } 6221 if yyb15 { 6222 r.ReadArrayEnd() 6223 return 6224 } 6225 r.ReadArrayElem() 6226 if r.TryDecodeAsNil() { 6227 x.QueryOptions.AuthToken = "" 6228 } else { 6229 x.AuthToken = (string)(r.DecodeString()) 6230 } 6231 yyj15++ 6232 if yyhl15 { 6233 yyb15 = yyj15 > l 6234 } else { 6235 yyb15 = r.CheckBreak() 6236 } 6237 if yyb15 { 6238 r.ReadArrayEnd() 6239 return 6240 } 6241 r.ReadArrayElem() 6242 if r.TryDecodeAsNil() { 6243 x.QueryOptions.InternalRpcInfo.Forwarded = false 6244 } else { 6245 x.Forwarded = (bool)(r.DecodeBool()) 6246 } 6247 for { 6248 yyj15++ 6249 if yyhl15 { 6250 yyb15 = yyj15 > l 6251 } else { 6252 yyb15 = r.CheckBreak() 6253 } 6254 if yyb15 { 6255 break 6256 } 6257 r.ReadArrayElem() 6258 z.DecStructFieldNotFound(yyj15-1, "") 6259 } 6260 r.ReadArrayEnd() 6261 } 6262 6263 func (x *CSIVolumeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 6264 var h codecSelfer100 6265 z, r := codec1978.GenHelperEncoder(e) 6266 _, _, _ = h, z, r 6267 if x == nil { 6268 r.EncodeNil() 6269 } else { 6270 if false { 6271 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6272 z.EncExtension(x, yyxt1) 6273 } else { 6274 yysep2 := !z.EncBinary() 6275 yy2arr2 := z.EncBasicHandle().StructToArray 6276 _, _ = yysep2, yy2arr2 6277 const yyr2 bool = false // struct tag has 'toArray' 6278 if yyr2 || yy2arr2 { 6279 r.WriteArrayStart(4) 6280 } else { 6281 r.WriteMapStart(4) 6282 } 6283 if yyr2 || yy2arr2 { 6284 r.WriteArrayElem() 6285 if x.Volumes == nil { 6286 r.EncodeNil() 6287 } else { 6288 if false { 6289 } else { 6290 h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) 6291 } 6292 } 6293 } else { 6294 r.WriteMapElemKey() 6295 if z.IsJSONHandle() { 6296 z.WriteStr("\"Volumes\"") 6297 } else { 6298 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 6299 } 6300 r.WriteMapElemValue() 6301 if x.Volumes == nil { 6302 r.EncodeNil() 6303 } else { 6304 if false { 6305 } else { 6306 h.encSlicePtrtoCSIVolListStub(([]*CSIVolListStub)(x.Volumes), e) 6307 } 6308 } 6309 } 6310 if yyr2 || yy2arr2 { 6311 r.WriteArrayElem() 6312 if false { 6313 } else { 6314 r.EncodeUint(uint64(x.Index)) 6315 } 6316 } else { 6317 r.WriteMapElemKey() 6318 if z.IsJSONHandle() { 6319 z.WriteStr("\"Index\"") 6320 } else { 6321 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 6322 } 6323 r.WriteMapElemValue() 6324 if false { 6325 } else { 6326 r.EncodeUint(uint64(x.Index)) 6327 } 6328 } 6329 if yyr2 || yy2arr2 { 6330 r.WriteArrayElem() 6331 if false { 6332 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 6333 z.EncExtension(x.LastContact, yyxt10) 6334 } else { 6335 r.EncodeInt(int64(x.LastContact)) 6336 } 6337 } else { 6338 r.WriteMapElemKey() 6339 if z.IsJSONHandle() { 6340 z.WriteStr("\"LastContact\"") 6341 } else { 6342 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 6343 } 6344 r.WriteMapElemValue() 6345 if false { 6346 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 6347 z.EncExtension(x.LastContact, yyxt11) 6348 } else { 6349 r.EncodeInt(int64(x.LastContact)) 6350 } 6351 } 6352 if yyr2 || yy2arr2 { 6353 r.WriteArrayElem() 6354 if false { 6355 } else { 6356 r.EncodeBool(bool(x.KnownLeader)) 6357 } 6358 } else { 6359 r.WriteMapElemKey() 6360 if z.IsJSONHandle() { 6361 z.WriteStr("\"KnownLeader\"") 6362 } else { 6363 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 6364 } 6365 r.WriteMapElemValue() 6366 if false { 6367 } else { 6368 r.EncodeBool(bool(x.KnownLeader)) 6369 } 6370 } 6371 if yyr2 || yy2arr2 { 6372 r.WriteArrayEnd() 6373 } else { 6374 r.WriteMapEnd() 6375 } 6376 } 6377 } 6378 } 6379 6380 func (x *CSIVolumeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 6381 var h codecSelfer100 6382 z, r := codec1978.GenHelperDecoder(d) 6383 _, _, _ = h, z, r 6384 if false { 6385 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6386 z.DecExtension(x, yyxt1) 6387 } else { 6388 yyct2 := r.ContainerType() 6389 if yyct2 == codecSelferValueTypeMap100 { 6390 yyl2 := r.ReadMapStart() 6391 if yyl2 == 0 { 6392 r.ReadMapEnd() 6393 } else { 6394 x.codecDecodeSelfFromMap(yyl2, d) 6395 } 6396 } else if yyct2 == codecSelferValueTypeArray100 { 6397 yyl2 := r.ReadArrayStart() 6398 if yyl2 == 0 { 6399 r.ReadArrayEnd() 6400 } else { 6401 x.codecDecodeSelfFromArray(yyl2, d) 6402 } 6403 } else { 6404 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 6405 } 6406 } 6407 } 6408 6409 func (x *CSIVolumeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 6410 var h codecSelfer100 6411 z, r := codec1978.GenHelperDecoder(d) 6412 _, _, _ = h, z, r 6413 var yyhl3 bool = l >= 0 6414 for yyj3 := 0; ; yyj3++ { 6415 if yyhl3 { 6416 if yyj3 >= l { 6417 break 6418 } 6419 } else { 6420 if r.CheckBreak() { 6421 break 6422 } 6423 } 6424 r.ReadMapElemKey() 6425 yys3 := z.StringView(r.DecodeStringAsBytes()) 6426 r.ReadMapElemValue() 6427 switch yys3 { 6428 case "Volumes": 6429 if r.TryDecodeAsNil() { 6430 x.Volumes = nil 6431 } else { 6432 if false { 6433 } else { 6434 h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) 6435 } 6436 } 6437 case "Index": 6438 if r.TryDecodeAsNil() { 6439 x.QueryMeta.Index = 0 6440 } else { 6441 x.Index = (uint64)(r.DecodeUint64()) 6442 } 6443 case "LastContact": 6444 if r.TryDecodeAsNil() { 6445 x.QueryMeta.LastContact = 0 6446 } else { 6447 if false { 6448 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 6449 z.DecExtension(x.LastContact, yyxt8) 6450 } else { 6451 x.LastContact = (time.Duration)(r.DecodeInt64()) 6452 } 6453 } 6454 case "KnownLeader": 6455 if r.TryDecodeAsNil() { 6456 x.QueryMeta.KnownLeader = false 6457 } else { 6458 x.KnownLeader = (bool)(r.DecodeBool()) 6459 } 6460 default: 6461 z.DecStructFieldNotFound(-1, yys3) 6462 } // end switch yys3 6463 } // end for yyj3 6464 r.ReadMapEnd() 6465 } 6466 6467 func (x *CSIVolumeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 6468 var h codecSelfer100 6469 z, r := codec1978.GenHelperDecoder(d) 6470 _, _, _ = h, z, r 6471 var yyj10 int 6472 var yyb10 bool 6473 var yyhl10 bool = l >= 0 6474 yyj10++ 6475 if yyhl10 { 6476 yyb10 = yyj10 > l 6477 } else { 6478 yyb10 = r.CheckBreak() 6479 } 6480 if yyb10 { 6481 r.ReadArrayEnd() 6482 return 6483 } 6484 r.ReadArrayElem() 6485 if r.TryDecodeAsNil() { 6486 x.Volumes = nil 6487 } else { 6488 if false { 6489 } else { 6490 h.decSlicePtrtoCSIVolListStub((*[]*CSIVolListStub)(&x.Volumes), d) 6491 } 6492 } 6493 yyj10++ 6494 if yyhl10 { 6495 yyb10 = yyj10 > l 6496 } else { 6497 yyb10 = r.CheckBreak() 6498 } 6499 if yyb10 { 6500 r.ReadArrayEnd() 6501 return 6502 } 6503 r.ReadArrayElem() 6504 if r.TryDecodeAsNil() { 6505 x.QueryMeta.Index = 0 6506 } else { 6507 x.Index = (uint64)(r.DecodeUint64()) 6508 } 6509 yyj10++ 6510 if yyhl10 { 6511 yyb10 = yyj10 > l 6512 } else { 6513 yyb10 = r.CheckBreak() 6514 } 6515 if yyb10 { 6516 r.ReadArrayEnd() 6517 return 6518 } 6519 r.ReadArrayElem() 6520 if r.TryDecodeAsNil() { 6521 x.QueryMeta.LastContact = 0 6522 } else { 6523 if false { 6524 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 6525 z.DecExtension(x.LastContact, yyxt15) 6526 } else { 6527 x.LastContact = (time.Duration)(r.DecodeInt64()) 6528 } 6529 } 6530 yyj10++ 6531 if yyhl10 { 6532 yyb10 = yyj10 > l 6533 } else { 6534 yyb10 = r.CheckBreak() 6535 } 6536 if yyb10 { 6537 r.ReadArrayEnd() 6538 return 6539 } 6540 r.ReadArrayElem() 6541 if r.TryDecodeAsNil() { 6542 x.QueryMeta.KnownLeader = false 6543 } else { 6544 x.KnownLeader = (bool)(r.DecodeBool()) 6545 } 6546 for { 6547 yyj10++ 6548 if yyhl10 { 6549 yyb10 = yyj10 > l 6550 } else { 6551 yyb10 = r.CheckBreak() 6552 } 6553 if yyb10 { 6554 break 6555 } 6556 r.ReadArrayElem() 6557 z.DecStructFieldNotFound(yyj10-1, "") 6558 } 6559 r.ReadArrayEnd() 6560 } 6561 6562 func (x *CSIVolumeGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 6563 var h codecSelfer100 6564 z, r := codec1978.GenHelperEncoder(e) 6565 _, _, _ = h, z, r 6566 if x == nil { 6567 r.EncodeNil() 6568 } else { 6569 if false { 6570 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6571 z.EncExtension(x, yyxt1) 6572 } else { 6573 yysep2 := !z.EncBinary() 6574 yy2arr2 := z.EncBasicHandle().StructToArray 6575 _, _ = yysep2, yy2arr2 6576 const yyr2 bool = false // struct tag has 'toArray' 6577 if yyr2 || yy2arr2 { 6578 r.WriteArrayStart(9) 6579 } else { 6580 r.WriteMapStart(9) 6581 } 6582 if yyr2 || yy2arr2 { 6583 r.WriteArrayElem() 6584 if false { 6585 } else { 6586 if z.EncBasicHandle().StringToRaw { 6587 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 6588 } else { 6589 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 6590 } 6591 } 6592 } else { 6593 r.WriteMapElemKey() 6594 if z.IsJSONHandle() { 6595 z.WriteStr("\"ID\"") 6596 } else { 6597 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 6598 } 6599 r.WriteMapElemValue() 6600 if false { 6601 } else { 6602 if z.EncBasicHandle().StringToRaw { 6603 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 6604 } else { 6605 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 6606 } 6607 } 6608 } 6609 if yyr2 || yy2arr2 { 6610 r.WriteArrayElem() 6611 if false { 6612 } else { 6613 if z.EncBasicHandle().StringToRaw { 6614 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 6615 } else { 6616 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 6617 } 6618 } 6619 } else { 6620 r.WriteMapElemKey() 6621 if z.IsJSONHandle() { 6622 z.WriteStr("\"Region\"") 6623 } else { 6624 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 6625 } 6626 r.WriteMapElemValue() 6627 if false { 6628 } else { 6629 if z.EncBasicHandle().StringToRaw { 6630 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 6631 } else { 6632 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 6633 } 6634 } 6635 } 6636 if yyr2 || yy2arr2 { 6637 r.WriteArrayElem() 6638 if false { 6639 } else { 6640 if z.EncBasicHandle().StringToRaw { 6641 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 6642 } else { 6643 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 6644 } 6645 } 6646 } else { 6647 r.WriteMapElemKey() 6648 if z.IsJSONHandle() { 6649 z.WriteStr("\"Namespace\"") 6650 } else { 6651 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 6652 } 6653 r.WriteMapElemValue() 6654 if false { 6655 } else { 6656 if z.EncBasicHandle().StringToRaw { 6657 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 6658 } else { 6659 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 6660 } 6661 } 6662 } 6663 if yyr2 || yy2arr2 { 6664 r.WriteArrayElem() 6665 if false { 6666 } else { 6667 r.EncodeUint(uint64(x.MinQueryIndex)) 6668 } 6669 } else { 6670 r.WriteMapElemKey() 6671 if z.IsJSONHandle() { 6672 z.WriteStr("\"MinQueryIndex\"") 6673 } else { 6674 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 6675 } 6676 r.WriteMapElemValue() 6677 if false { 6678 } else { 6679 r.EncodeUint(uint64(x.MinQueryIndex)) 6680 } 6681 } 6682 if yyr2 || yy2arr2 { 6683 r.WriteArrayElem() 6684 if false { 6685 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 6686 z.EncExtension(x.MaxQueryTime, yyxt16) 6687 } else { 6688 r.EncodeInt(int64(x.MaxQueryTime)) 6689 } 6690 } else { 6691 r.WriteMapElemKey() 6692 if z.IsJSONHandle() { 6693 z.WriteStr("\"MaxQueryTime\"") 6694 } else { 6695 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 6696 } 6697 r.WriteMapElemValue() 6698 if false { 6699 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 6700 z.EncExtension(x.MaxQueryTime, yyxt17) 6701 } else { 6702 r.EncodeInt(int64(x.MaxQueryTime)) 6703 } 6704 } 6705 if yyr2 || yy2arr2 { 6706 r.WriteArrayElem() 6707 if false { 6708 } else { 6709 r.EncodeBool(bool(x.AllowStale)) 6710 } 6711 } else { 6712 r.WriteMapElemKey() 6713 if z.IsJSONHandle() { 6714 z.WriteStr("\"AllowStale\"") 6715 } else { 6716 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 6717 } 6718 r.WriteMapElemValue() 6719 if false { 6720 } else { 6721 r.EncodeBool(bool(x.AllowStale)) 6722 } 6723 } 6724 if yyr2 || yy2arr2 { 6725 r.WriteArrayElem() 6726 if false { 6727 } else { 6728 if z.EncBasicHandle().StringToRaw { 6729 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 6730 } else { 6731 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 6732 } 6733 } 6734 } else { 6735 r.WriteMapElemKey() 6736 if z.IsJSONHandle() { 6737 z.WriteStr("\"Prefix\"") 6738 } else { 6739 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 6740 } 6741 r.WriteMapElemValue() 6742 if false { 6743 } else { 6744 if z.EncBasicHandle().StringToRaw { 6745 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 6746 } else { 6747 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 6748 } 6749 } 6750 } 6751 if yyr2 || yy2arr2 { 6752 r.WriteArrayElem() 6753 if false { 6754 } else { 6755 if z.EncBasicHandle().StringToRaw { 6756 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 6757 } else { 6758 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 6759 } 6760 } 6761 } else { 6762 r.WriteMapElemKey() 6763 if z.IsJSONHandle() { 6764 z.WriteStr("\"AuthToken\"") 6765 } else { 6766 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 6767 } 6768 r.WriteMapElemValue() 6769 if false { 6770 } else { 6771 if z.EncBasicHandle().StringToRaw { 6772 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 6773 } else { 6774 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 6775 } 6776 } 6777 } 6778 if yyr2 || yy2arr2 { 6779 r.WriteArrayElem() 6780 if false { 6781 } else { 6782 r.EncodeBool(bool(x.Forwarded)) 6783 } 6784 } else { 6785 r.WriteMapElemKey() 6786 if z.IsJSONHandle() { 6787 z.WriteStr("\"Forwarded\"") 6788 } else { 6789 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 6790 } 6791 r.WriteMapElemValue() 6792 if false { 6793 } else { 6794 r.EncodeBool(bool(x.Forwarded)) 6795 } 6796 } 6797 if yyr2 || yy2arr2 { 6798 r.WriteArrayEnd() 6799 } else { 6800 r.WriteMapEnd() 6801 } 6802 } 6803 } 6804 } 6805 6806 func (x *CSIVolumeGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 6807 var h codecSelfer100 6808 z, r := codec1978.GenHelperDecoder(d) 6809 _, _, _ = h, z, r 6810 if false { 6811 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 6812 z.DecExtension(x, yyxt1) 6813 } else { 6814 yyct2 := r.ContainerType() 6815 if yyct2 == codecSelferValueTypeMap100 { 6816 yyl2 := r.ReadMapStart() 6817 if yyl2 == 0 { 6818 r.ReadMapEnd() 6819 } else { 6820 x.codecDecodeSelfFromMap(yyl2, d) 6821 } 6822 } else if yyct2 == codecSelferValueTypeArray100 { 6823 yyl2 := r.ReadArrayStart() 6824 if yyl2 == 0 { 6825 r.ReadArrayEnd() 6826 } else { 6827 x.codecDecodeSelfFromArray(yyl2, d) 6828 } 6829 } else { 6830 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 6831 } 6832 } 6833 } 6834 6835 func (x *CSIVolumeGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 6836 var h codecSelfer100 6837 z, r := codec1978.GenHelperDecoder(d) 6838 _, _, _ = h, z, r 6839 var yyhl3 bool = l >= 0 6840 for yyj3 := 0; ; yyj3++ { 6841 if yyhl3 { 6842 if yyj3 >= l { 6843 break 6844 } 6845 } else { 6846 if r.CheckBreak() { 6847 break 6848 } 6849 } 6850 r.ReadMapElemKey() 6851 yys3 := z.StringView(r.DecodeStringAsBytes()) 6852 r.ReadMapElemValue() 6853 switch yys3 { 6854 case "ID": 6855 if r.TryDecodeAsNil() { 6856 x.ID = "" 6857 } else { 6858 x.ID = (string)(r.DecodeString()) 6859 } 6860 case "Region": 6861 if r.TryDecodeAsNil() { 6862 x.QueryOptions.Region = "" 6863 } else { 6864 x.Region = (string)(r.DecodeString()) 6865 } 6866 case "Namespace": 6867 if r.TryDecodeAsNil() { 6868 x.QueryOptions.Namespace = "" 6869 } else { 6870 x.Namespace = (string)(r.DecodeString()) 6871 } 6872 case "MinQueryIndex": 6873 if r.TryDecodeAsNil() { 6874 x.QueryOptions.MinQueryIndex = 0 6875 } else { 6876 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6877 } 6878 case "MaxQueryTime": 6879 if r.TryDecodeAsNil() { 6880 x.QueryOptions.MaxQueryTime = 0 6881 } else { 6882 if false { 6883 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 6884 z.DecExtension(x.MaxQueryTime, yyxt9) 6885 } else { 6886 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 6887 } 6888 } 6889 case "AllowStale": 6890 if r.TryDecodeAsNil() { 6891 x.QueryOptions.AllowStale = false 6892 } else { 6893 x.AllowStale = (bool)(r.DecodeBool()) 6894 } 6895 case "Prefix": 6896 if r.TryDecodeAsNil() { 6897 x.QueryOptions.Prefix = "" 6898 } else { 6899 x.Prefix = (string)(r.DecodeString()) 6900 } 6901 case "AuthToken": 6902 if r.TryDecodeAsNil() { 6903 x.QueryOptions.AuthToken = "" 6904 } else { 6905 x.AuthToken = (string)(r.DecodeString()) 6906 } 6907 case "Forwarded": 6908 if r.TryDecodeAsNil() { 6909 x.QueryOptions.InternalRpcInfo.Forwarded = false 6910 } else { 6911 x.Forwarded = (bool)(r.DecodeBool()) 6912 } 6913 default: 6914 z.DecStructFieldNotFound(-1, yys3) 6915 } // end switch yys3 6916 } // end for yyj3 6917 r.ReadMapEnd() 6918 } 6919 6920 func (x *CSIVolumeGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 6921 var h codecSelfer100 6922 z, r := codec1978.GenHelperDecoder(d) 6923 _, _, _ = h, z, r 6924 var yyj14 int 6925 var yyb14 bool 6926 var yyhl14 bool = l >= 0 6927 yyj14++ 6928 if yyhl14 { 6929 yyb14 = yyj14 > l 6930 } else { 6931 yyb14 = r.CheckBreak() 6932 } 6933 if yyb14 { 6934 r.ReadArrayEnd() 6935 return 6936 } 6937 r.ReadArrayElem() 6938 if r.TryDecodeAsNil() { 6939 x.ID = "" 6940 } else { 6941 x.ID = (string)(r.DecodeString()) 6942 } 6943 yyj14++ 6944 if yyhl14 { 6945 yyb14 = yyj14 > l 6946 } else { 6947 yyb14 = r.CheckBreak() 6948 } 6949 if yyb14 { 6950 r.ReadArrayEnd() 6951 return 6952 } 6953 r.ReadArrayElem() 6954 if r.TryDecodeAsNil() { 6955 x.QueryOptions.Region = "" 6956 } else { 6957 x.Region = (string)(r.DecodeString()) 6958 } 6959 yyj14++ 6960 if yyhl14 { 6961 yyb14 = yyj14 > l 6962 } else { 6963 yyb14 = r.CheckBreak() 6964 } 6965 if yyb14 { 6966 r.ReadArrayEnd() 6967 return 6968 } 6969 r.ReadArrayElem() 6970 if r.TryDecodeAsNil() { 6971 x.QueryOptions.Namespace = "" 6972 } else { 6973 x.Namespace = (string)(r.DecodeString()) 6974 } 6975 yyj14++ 6976 if yyhl14 { 6977 yyb14 = yyj14 > l 6978 } else { 6979 yyb14 = r.CheckBreak() 6980 } 6981 if yyb14 { 6982 r.ReadArrayEnd() 6983 return 6984 } 6985 r.ReadArrayElem() 6986 if r.TryDecodeAsNil() { 6987 x.QueryOptions.MinQueryIndex = 0 6988 } else { 6989 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 6990 } 6991 yyj14++ 6992 if yyhl14 { 6993 yyb14 = yyj14 > l 6994 } else { 6995 yyb14 = r.CheckBreak() 6996 } 6997 if yyb14 { 6998 r.ReadArrayEnd() 6999 return 7000 } 7001 r.ReadArrayElem() 7002 if r.TryDecodeAsNil() { 7003 x.QueryOptions.MaxQueryTime = 0 7004 } else { 7005 if false { 7006 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 7007 z.DecExtension(x.MaxQueryTime, yyxt20) 7008 } else { 7009 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 7010 } 7011 } 7012 yyj14++ 7013 if yyhl14 { 7014 yyb14 = yyj14 > l 7015 } else { 7016 yyb14 = r.CheckBreak() 7017 } 7018 if yyb14 { 7019 r.ReadArrayEnd() 7020 return 7021 } 7022 r.ReadArrayElem() 7023 if r.TryDecodeAsNil() { 7024 x.QueryOptions.AllowStale = false 7025 } else { 7026 x.AllowStale = (bool)(r.DecodeBool()) 7027 } 7028 yyj14++ 7029 if yyhl14 { 7030 yyb14 = yyj14 > l 7031 } else { 7032 yyb14 = r.CheckBreak() 7033 } 7034 if yyb14 { 7035 r.ReadArrayEnd() 7036 return 7037 } 7038 r.ReadArrayElem() 7039 if r.TryDecodeAsNil() { 7040 x.QueryOptions.Prefix = "" 7041 } else { 7042 x.Prefix = (string)(r.DecodeString()) 7043 } 7044 yyj14++ 7045 if yyhl14 { 7046 yyb14 = yyj14 > l 7047 } else { 7048 yyb14 = r.CheckBreak() 7049 } 7050 if yyb14 { 7051 r.ReadArrayEnd() 7052 return 7053 } 7054 r.ReadArrayElem() 7055 if r.TryDecodeAsNil() { 7056 x.QueryOptions.AuthToken = "" 7057 } else { 7058 x.AuthToken = (string)(r.DecodeString()) 7059 } 7060 yyj14++ 7061 if yyhl14 { 7062 yyb14 = yyj14 > l 7063 } else { 7064 yyb14 = r.CheckBreak() 7065 } 7066 if yyb14 { 7067 r.ReadArrayEnd() 7068 return 7069 } 7070 r.ReadArrayElem() 7071 if r.TryDecodeAsNil() { 7072 x.QueryOptions.InternalRpcInfo.Forwarded = false 7073 } else { 7074 x.Forwarded = (bool)(r.DecodeBool()) 7075 } 7076 for { 7077 yyj14++ 7078 if yyhl14 { 7079 yyb14 = yyj14 > l 7080 } else { 7081 yyb14 = r.CheckBreak() 7082 } 7083 if yyb14 { 7084 break 7085 } 7086 r.ReadArrayElem() 7087 z.DecStructFieldNotFound(yyj14-1, "") 7088 } 7089 r.ReadArrayEnd() 7090 } 7091 7092 func (x *CSIVolumeGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 7093 var h codecSelfer100 7094 z, r := codec1978.GenHelperEncoder(e) 7095 _, _, _ = h, z, r 7096 if x == nil { 7097 r.EncodeNil() 7098 } else { 7099 if false { 7100 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7101 z.EncExtension(x, yyxt1) 7102 } else { 7103 yysep2 := !z.EncBinary() 7104 yy2arr2 := z.EncBasicHandle().StructToArray 7105 _, _ = yysep2, yy2arr2 7106 const yyr2 bool = false // struct tag has 'toArray' 7107 if yyr2 || yy2arr2 { 7108 r.WriteArrayStart(4) 7109 } else { 7110 r.WriteMapStart(4) 7111 } 7112 var yyn3 bool 7113 if x.Volume == nil { 7114 yyn3 = true 7115 goto LABEL3 7116 } 7117 LABEL3: 7118 if yyr2 || yy2arr2 { 7119 if yyn3 { 7120 r.WriteArrayElem() 7121 r.EncodeNil() 7122 } else { 7123 r.WriteArrayElem() 7124 if x.Volume == nil { 7125 r.EncodeNil() 7126 } else { 7127 x.Volume.CodecEncodeSelf(e) 7128 } 7129 } 7130 } else { 7131 r.WriteMapElemKey() 7132 if z.IsJSONHandle() { 7133 z.WriteStr("\"Volume\"") 7134 } else { 7135 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 7136 } 7137 r.WriteMapElemValue() 7138 if yyn3 { 7139 r.EncodeNil() 7140 } else { 7141 if x.Volume == nil { 7142 r.EncodeNil() 7143 } else { 7144 x.Volume.CodecEncodeSelf(e) 7145 } 7146 } 7147 } 7148 if yyr2 || yy2arr2 { 7149 r.WriteArrayElem() 7150 if false { 7151 } else { 7152 r.EncodeUint(uint64(x.Index)) 7153 } 7154 } else { 7155 r.WriteMapElemKey() 7156 if z.IsJSONHandle() { 7157 z.WriteStr("\"Index\"") 7158 } else { 7159 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 7160 } 7161 r.WriteMapElemValue() 7162 if false { 7163 } else { 7164 r.EncodeUint(uint64(x.Index)) 7165 } 7166 } 7167 if yyr2 || yy2arr2 { 7168 r.WriteArrayElem() 7169 if false { 7170 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 7171 z.EncExtension(x.LastContact, yyxt10) 7172 } else { 7173 r.EncodeInt(int64(x.LastContact)) 7174 } 7175 } else { 7176 r.WriteMapElemKey() 7177 if z.IsJSONHandle() { 7178 z.WriteStr("\"LastContact\"") 7179 } else { 7180 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 7181 } 7182 r.WriteMapElemValue() 7183 if false { 7184 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 7185 z.EncExtension(x.LastContact, yyxt11) 7186 } else { 7187 r.EncodeInt(int64(x.LastContact)) 7188 } 7189 } 7190 if yyr2 || yy2arr2 { 7191 r.WriteArrayElem() 7192 if false { 7193 } else { 7194 r.EncodeBool(bool(x.KnownLeader)) 7195 } 7196 } else { 7197 r.WriteMapElemKey() 7198 if z.IsJSONHandle() { 7199 z.WriteStr("\"KnownLeader\"") 7200 } else { 7201 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 7202 } 7203 r.WriteMapElemValue() 7204 if false { 7205 } else { 7206 r.EncodeBool(bool(x.KnownLeader)) 7207 } 7208 } 7209 if yyr2 || yy2arr2 { 7210 r.WriteArrayEnd() 7211 } else { 7212 r.WriteMapEnd() 7213 } 7214 } 7215 } 7216 } 7217 7218 func (x *CSIVolumeGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 7219 var h codecSelfer100 7220 z, r := codec1978.GenHelperDecoder(d) 7221 _, _, _ = h, z, r 7222 if false { 7223 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7224 z.DecExtension(x, yyxt1) 7225 } else { 7226 yyct2 := r.ContainerType() 7227 if yyct2 == codecSelferValueTypeMap100 { 7228 yyl2 := r.ReadMapStart() 7229 if yyl2 == 0 { 7230 r.ReadMapEnd() 7231 } else { 7232 x.codecDecodeSelfFromMap(yyl2, d) 7233 } 7234 } else if yyct2 == codecSelferValueTypeArray100 { 7235 yyl2 := r.ReadArrayStart() 7236 if yyl2 == 0 { 7237 r.ReadArrayEnd() 7238 } else { 7239 x.codecDecodeSelfFromArray(yyl2, d) 7240 } 7241 } else { 7242 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 7243 } 7244 } 7245 } 7246 7247 func (x *CSIVolumeGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 7248 var h codecSelfer100 7249 z, r := codec1978.GenHelperDecoder(d) 7250 _, _, _ = h, z, r 7251 var yyhl3 bool = l >= 0 7252 for yyj3 := 0; ; yyj3++ { 7253 if yyhl3 { 7254 if yyj3 >= l { 7255 break 7256 } 7257 } else { 7258 if r.CheckBreak() { 7259 break 7260 } 7261 } 7262 r.ReadMapElemKey() 7263 yys3 := z.StringView(r.DecodeStringAsBytes()) 7264 r.ReadMapElemValue() 7265 switch yys3 { 7266 case "Volume": 7267 if r.TryDecodeAsNil() { 7268 if true && x.Volume != nil { 7269 x.Volume = nil 7270 } 7271 } else { 7272 if x.Volume == nil { 7273 x.Volume = new(CSIVolume) 7274 } 7275 7276 x.Volume.CodecDecodeSelf(d) 7277 } 7278 case "Index": 7279 if r.TryDecodeAsNil() { 7280 x.QueryMeta.Index = 0 7281 } else { 7282 x.Index = (uint64)(r.DecodeUint64()) 7283 } 7284 case "LastContact": 7285 if r.TryDecodeAsNil() { 7286 x.QueryMeta.LastContact = 0 7287 } else { 7288 if false { 7289 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 7290 z.DecExtension(x.LastContact, yyxt7) 7291 } else { 7292 x.LastContact = (time.Duration)(r.DecodeInt64()) 7293 } 7294 } 7295 case "KnownLeader": 7296 if r.TryDecodeAsNil() { 7297 x.QueryMeta.KnownLeader = false 7298 } else { 7299 x.KnownLeader = (bool)(r.DecodeBool()) 7300 } 7301 default: 7302 z.DecStructFieldNotFound(-1, yys3) 7303 } // end switch yys3 7304 } // end for yyj3 7305 r.ReadMapEnd() 7306 } 7307 7308 func (x *CSIVolumeGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 7309 var h codecSelfer100 7310 z, r := codec1978.GenHelperDecoder(d) 7311 _, _, _ = h, z, r 7312 var yyj9 int 7313 var yyb9 bool 7314 var yyhl9 bool = l >= 0 7315 yyj9++ 7316 if yyhl9 { 7317 yyb9 = yyj9 > l 7318 } else { 7319 yyb9 = r.CheckBreak() 7320 } 7321 if yyb9 { 7322 r.ReadArrayEnd() 7323 return 7324 } 7325 r.ReadArrayElem() 7326 if r.TryDecodeAsNil() { 7327 if true && x.Volume != nil { 7328 x.Volume = nil 7329 } 7330 } else { 7331 if x.Volume == nil { 7332 x.Volume = new(CSIVolume) 7333 } 7334 7335 x.Volume.CodecDecodeSelf(d) 7336 } 7337 yyj9++ 7338 if yyhl9 { 7339 yyb9 = yyj9 > l 7340 } else { 7341 yyb9 = r.CheckBreak() 7342 } 7343 if yyb9 { 7344 r.ReadArrayEnd() 7345 return 7346 } 7347 r.ReadArrayElem() 7348 if r.TryDecodeAsNil() { 7349 x.QueryMeta.Index = 0 7350 } else { 7351 x.Index = (uint64)(r.DecodeUint64()) 7352 } 7353 yyj9++ 7354 if yyhl9 { 7355 yyb9 = yyj9 > l 7356 } else { 7357 yyb9 = r.CheckBreak() 7358 } 7359 if yyb9 { 7360 r.ReadArrayEnd() 7361 return 7362 } 7363 r.ReadArrayElem() 7364 if r.TryDecodeAsNil() { 7365 x.QueryMeta.LastContact = 0 7366 } else { 7367 if false { 7368 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 7369 z.DecExtension(x.LastContact, yyxt13) 7370 } else { 7371 x.LastContact = (time.Duration)(r.DecodeInt64()) 7372 } 7373 } 7374 yyj9++ 7375 if yyhl9 { 7376 yyb9 = yyj9 > l 7377 } else { 7378 yyb9 = r.CheckBreak() 7379 } 7380 if yyb9 { 7381 r.ReadArrayEnd() 7382 return 7383 } 7384 r.ReadArrayElem() 7385 if r.TryDecodeAsNil() { 7386 x.QueryMeta.KnownLeader = false 7387 } else { 7388 x.KnownLeader = (bool)(r.DecodeBool()) 7389 } 7390 for { 7391 yyj9++ 7392 if yyhl9 { 7393 yyb9 = yyj9 > l 7394 } else { 7395 yyb9 = r.CheckBreak() 7396 } 7397 if yyb9 { 7398 break 7399 } 7400 r.ReadArrayElem() 7401 z.DecStructFieldNotFound(yyj9-1, "") 7402 } 7403 r.ReadArrayEnd() 7404 } 7405 7406 func (x *CSIPlugin) CodecEncodeSelf(e *codec1978.Encoder) { 7407 var h codecSelfer100 7408 z, r := codec1978.GenHelperEncoder(e) 7409 _, _, _ = h, z, r 7410 if x == nil { 7411 r.EncodeNil() 7412 } else { 7413 if false { 7414 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7415 z.EncExtension(x, yyxt1) 7416 } else { 7417 yysep2 := !z.EncBinary() 7418 yy2arr2 := z.EncBasicHandle().StructToArray 7419 _, _ = yysep2, yy2arr2 7420 const yyr2 bool = false // struct tag has 'toArray' 7421 if yyr2 || yy2arr2 { 7422 r.WriteArrayStart(11) 7423 } else { 7424 r.WriteMapStart(11) 7425 } 7426 if yyr2 || yy2arr2 { 7427 r.WriteArrayElem() 7428 if false { 7429 } else { 7430 if z.EncBasicHandle().StringToRaw { 7431 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 7432 } else { 7433 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 7434 } 7435 } 7436 } else { 7437 r.WriteMapElemKey() 7438 if z.IsJSONHandle() { 7439 z.WriteStr("\"ID\"") 7440 } else { 7441 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 7442 } 7443 r.WriteMapElemValue() 7444 if false { 7445 } else { 7446 if z.EncBasicHandle().StringToRaw { 7447 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 7448 } else { 7449 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 7450 } 7451 } 7452 } 7453 if yyr2 || yy2arr2 { 7454 r.WriteArrayElem() 7455 if false { 7456 } else { 7457 if z.EncBasicHandle().StringToRaw { 7458 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 7459 } else { 7460 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 7461 } 7462 } 7463 } else { 7464 r.WriteMapElemKey() 7465 if z.IsJSONHandle() { 7466 z.WriteStr("\"Provider\"") 7467 } else { 7468 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 7469 } 7470 r.WriteMapElemValue() 7471 if false { 7472 } else { 7473 if z.EncBasicHandle().StringToRaw { 7474 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 7475 } else { 7476 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 7477 } 7478 } 7479 } 7480 if yyr2 || yy2arr2 { 7481 r.WriteArrayElem() 7482 if false { 7483 } else { 7484 if z.EncBasicHandle().StringToRaw { 7485 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 7486 } else { 7487 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 7488 } 7489 } 7490 } else { 7491 r.WriteMapElemKey() 7492 if z.IsJSONHandle() { 7493 z.WriteStr("\"Version\"") 7494 } else { 7495 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 7496 } 7497 r.WriteMapElemValue() 7498 if false { 7499 } else { 7500 if z.EncBasicHandle().StringToRaw { 7501 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 7502 } else { 7503 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 7504 } 7505 } 7506 } 7507 if yyr2 || yy2arr2 { 7508 r.WriteArrayElem() 7509 if false { 7510 } else { 7511 r.EncodeBool(bool(x.ControllerRequired)) 7512 } 7513 } else { 7514 r.WriteMapElemKey() 7515 if z.IsJSONHandle() { 7516 z.WriteStr("\"ControllerRequired\"") 7517 } else { 7518 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 7519 } 7520 r.WriteMapElemValue() 7521 if false { 7522 } else { 7523 r.EncodeBool(bool(x.ControllerRequired)) 7524 } 7525 } 7526 if yyr2 || yy2arr2 { 7527 r.WriteArrayElem() 7528 if x.Controllers == nil { 7529 r.EncodeNil() 7530 } else { 7531 if false { 7532 } else { 7533 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) 7534 } 7535 } 7536 } else { 7537 r.WriteMapElemKey() 7538 if z.IsJSONHandle() { 7539 z.WriteStr("\"Controllers\"") 7540 } else { 7541 r.EncodeStringEnc(codecSelferCcUTF8100, `Controllers`) 7542 } 7543 r.WriteMapElemValue() 7544 if x.Controllers == nil { 7545 r.EncodeNil() 7546 } else { 7547 if false { 7548 } else { 7549 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Controllers), e) 7550 } 7551 } 7552 } 7553 if yyr2 || yy2arr2 { 7554 r.WriteArrayElem() 7555 if x.Nodes == nil { 7556 r.EncodeNil() 7557 } else { 7558 if false { 7559 } else { 7560 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) 7561 } 7562 } 7563 } else { 7564 r.WriteMapElemKey() 7565 if z.IsJSONHandle() { 7566 z.WriteStr("\"Nodes\"") 7567 } else { 7568 r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) 7569 } 7570 r.WriteMapElemValue() 7571 if x.Nodes == nil { 7572 r.EncodeNil() 7573 } else { 7574 if false { 7575 } else { 7576 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.Nodes), e) 7577 } 7578 } 7579 } 7580 if yyr2 || yy2arr2 { 7581 r.WriteArrayElem() 7582 if x.Allocations == nil { 7583 r.EncodeNil() 7584 } else { 7585 if false { 7586 } else { 7587 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 7588 } 7589 } 7590 } else { 7591 r.WriteMapElemKey() 7592 if z.IsJSONHandle() { 7593 z.WriteStr("\"Allocations\"") 7594 } else { 7595 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 7596 } 7597 r.WriteMapElemValue() 7598 if x.Allocations == nil { 7599 r.EncodeNil() 7600 } else { 7601 if false { 7602 } else { 7603 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 7604 } 7605 } 7606 } 7607 if yyr2 || yy2arr2 { 7608 r.WriteArrayElem() 7609 if false { 7610 } else { 7611 r.EncodeInt(int64(x.ControllersHealthy)) 7612 } 7613 } else { 7614 r.WriteMapElemKey() 7615 if z.IsJSONHandle() { 7616 z.WriteStr("\"ControllersHealthy\"") 7617 } else { 7618 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 7619 } 7620 r.WriteMapElemValue() 7621 if false { 7622 } else { 7623 r.EncodeInt(int64(x.ControllersHealthy)) 7624 } 7625 } 7626 if yyr2 || yy2arr2 { 7627 r.WriteArrayElem() 7628 if false { 7629 } else { 7630 r.EncodeInt(int64(x.NodesHealthy)) 7631 } 7632 } else { 7633 r.WriteMapElemKey() 7634 if z.IsJSONHandle() { 7635 z.WriteStr("\"NodesHealthy\"") 7636 } else { 7637 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 7638 } 7639 r.WriteMapElemValue() 7640 if false { 7641 } else { 7642 r.EncodeInt(int64(x.NodesHealthy)) 7643 } 7644 } 7645 if yyr2 || yy2arr2 { 7646 r.WriteArrayElem() 7647 if false { 7648 } else { 7649 r.EncodeUint(uint64(x.CreateIndex)) 7650 } 7651 } else { 7652 r.WriteMapElemKey() 7653 if z.IsJSONHandle() { 7654 z.WriteStr("\"CreateIndex\"") 7655 } else { 7656 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 7657 } 7658 r.WriteMapElemValue() 7659 if false { 7660 } else { 7661 r.EncodeUint(uint64(x.CreateIndex)) 7662 } 7663 } 7664 if yyr2 || yy2arr2 { 7665 r.WriteArrayElem() 7666 if false { 7667 } else { 7668 r.EncodeUint(uint64(x.ModifyIndex)) 7669 } 7670 } else { 7671 r.WriteMapElemKey() 7672 if z.IsJSONHandle() { 7673 z.WriteStr("\"ModifyIndex\"") 7674 } else { 7675 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 7676 } 7677 r.WriteMapElemValue() 7678 if false { 7679 } else { 7680 r.EncodeUint(uint64(x.ModifyIndex)) 7681 } 7682 } 7683 if yyr2 || yy2arr2 { 7684 r.WriteArrayEnd() 7685 } else { 7686 r.WriteMapEnd() 7687 } 7688 } 7689 } 7690 } 7691 7692 func (x *CSIPlugin) CodecDecodeSelf(d *codec1978.Decoder) { 7693 var h codecSelfer100 7694 z, r := codec1978.GenHelperDecoder(d) 7695 _, _, _ = h, z, r 7696 if false { 7697 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 7698 z.DecExtension(x, yyxt1) 7699 } else { 7700 yyct2 := r.ContainerType() 7701 if yyct2 == codecSelferValueTypeMap100 { 7702 yyl2 := r.ReadMapStart() 7703 if yyl2 == 0 { 7704 r.ReadMapEnd() 7705 } else { 7706 x.codecDecodeSelfFromMap(yyl2, d) 7707 } 7708 } else if yyct2 == codecSelferValueTypeArray100 { 7709 yyl2 := r.ReadArrayStart() 7710 if yyl2 == 0 { 7711 r.ReadArrayEnd() 7712 } else { 7713 x.codecDecodeSelfFromArray(yyl2, d) 7714 } 7715 } else { 7716 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 7717 } 7718 } 7719 } 7720 7721 func (x *CSIPlugin) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 7722 var h codecSelfer100 7723 z, r := codec1978.GenHelperDecoder(d) 7724 _, _, _ = h, z, r 7725 var yyhl3 bool = l >= 0 7726 for yyj3 := 0; ; yyj3++ { 7727 if yyhl3 { 7728 if yyj3 >= l { 7729 break 7730 } 7731 } else { 7732 if r.CheckBreak() { 7733 break 7734 } 7735 } 7736 r.ReadMapElemKey() 7737 yys3 := z.StringView(r.DecodeStringAsBytes()) 7738 r.ReadMapElemValue() 7739 switch yys3 { 7740 case "ID": 7741 if r.TryDecodeAsNil() { 7742 x.ID = "" 7743 } else { 7744 x.ID = (string)(r.DecodeString()) 7745 } 7746 case "Provider": 7747 if r.TryDecodeAsNil() { 7748 x.Provider = "" 7749 } else { 7750 x.Provider = (string)(r.DecodeString()) 7751 } 7752 case "Version": 7753 if r.TryDecodeAsNil() { 7754 x.Version = "" 7755 } else { 7756 x.Version = (string)(r.DecodeString()) 7757 } 7758 case "ControllerRequired": 7759 if r.TryDecodeAsNil() { 7760 x.ControllerRequired = false 7761 } else { 7762 x.ControllerRequired = (bool)(r.DecodeBool()) 7763 } 7764 case "Controllers": 7765 if r.TryDecodeAsNil() { 7766 x.Controllers = nil 7767 } else { 7768 if false { 7769 } else { 7770 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) 7771 } 7772 } 7773 case "Nodes": 7774 if r.TryDecodeAsNil() { 7775 x.Nodes = nil 7776 } else { 7777 if false { 7778 } else { 7779 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) 7780 } 7781 } 7782 case "Allocations": 7783 if r.TryDecodeAsNil() { 7784 x.Allocations = nil 7785 } else { 7786 if false { 7787 } else { 7788 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 7789 } 7790 } 7791 case "ControllersHealthy": 7792 if r.TryDecodeAsNil() { 7793 x.ControllersHealthy = 0 7794 } else { 7795 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7796 } 7797 case "NodesHealthy": 7798 if r.TryDecodeAsNil() { 7799 x.NodesHealthy = 0 7800 } else { 7801 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7802 } 7803 case "CreateIndex": 7804 if r.TryDecodeAsNil() { 7805 x.CreateIndex = 0 7806 } else { 7807 x.CreateIndex = (uint64)(r.DecodeUint64()) 7808 } 7809 case "ModifyIndex": 7810 if r.TryDecodeAsNil() { 7811 x.ModifyIndex = 0 7812 } else { 7813 x.ModifyIndex = (uint64)(r.DecodeUint64()) 7814 } 7815 default: 7816 z.DecStructFieldNotFound(-1, yys3) 7817 } // end switch yys3 7818 } // end for yyj3 7819 r.ReadMapEnd() 7820 } 7821 7822 func (x *CSIPlugin) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 7823 var h codecSelfer100 7824 z, r := codec1978.GenHelperDecoder(d) 7825 _, _, _ = h, z, r 7826 var yyj18 int 7827 var yyb18 bool 7828 var yyhl18 bool = l >= 0 7829 yyj18++ 7830 if yyhl18 { 7831 yyb18 = yyj18 > l 7832 } else { 7833 yyb18 = r.CheckBreak() 7834 } 7835 if yyb18 { 7836 r.ReadArrayEnd() 7837 return 7838 } 7839 r.ReadArrayElem() 7840 if r.TryDecodeAsNil() { 7841 x.ID = "" 7842 } else { 7843 x.ID = (string)(r.DecodeString()) 7844 } 7845 yyj18++ 7846 if yyhl18 { 7847 yyb18 = yyj18 > l 7848 } else { 7849 yyb18 = r.CheckBreak() 7850 } 7851 if yyb18 { 7852 r.ReadArrayEnd() 7853 return 7854 } 7855 r.ReadArrayElem() 7856 if r.TryDecodeAsNil() { 7857 x.Provider = "" 7858 } else { 7859 x.Provider = (string)(r.DecodeString()) 7860 } 7861 yyj18++ 7862 if yyhl18 { 7863 yyb18 = yyj18 > l 7864 } else { 7865 yyb18 = r.CheckBreak() 7866 } 7867 if yyb18 { 7868 r.ReadArrayEnd() 7869 return 7870 } 7871 r.ReadArrayElem() 7872 if r.TryDecodeAsNil() { 7873 x.Version = "" 7874 } else { 7875 x.Version = (string)(r.DecodeString()) 7876 } 7877 yyj18++ 7878 if yyhl18 { 7879 yyb18 = yyj18 > l 7880 } else { 7881 yyb18 = r.CheckBreak() 7882 } 7883 if yyb18 { 7884 r.ReadArrayEnd() 7885 return 7886 } 7887 r.ReadArrayElem() 7888 if r.TryDecodeAsNil() { 7889 x.ControllerRequired = false 7890 } else { 7891 x.ControllerRequired = (bool)(r.DecodeBool()) 7892 } 7893 yyj18++ 7894 if yyhl18 { 7895 yyb18 = yyj18 > l 7896 } else { 7897 yyb18 = r.CheckBreak() 7898 } 7899 if yyb18 { 7900 r.ReadArrayEnd() 7901 return 7902 } 7903 r.ReadArrayElem() 7904 if r.TryDecodeAsNil() { 7905 x.Controllers = nil 7906 } else { 7907 if false { 7908 } else { 7909 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Controllers), d) 7910 } 7911 } 7912 yyj18++ 7913 if yyhl18 { 7914 yyb18 = yyj18 > l 7915 } else { 7916 yyb18 = r.CheckBreak() 7917 } 7918 if yyb18 { 7919 r.ReadArrayEnd() 7920 return 7921 } 7922 r.ReadArrayElem() 7923 if r.TryDecodeAsNil() { 7924 x.Nodes = nil 7925 } else { 7926 if false { 7927 } else { 7928 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.Nodes), d) 7929 } 7930 } 7931 yyj18++ 7932 if yyhl18 { 7933 yyb18 = yyj18 > l 7934 } else { 7935 yyb18 = r.CheckBreak() 7936 } 7937 if yyb18 { 7938 r.ReadArrayEnd() 7939 return 7940 } 7941 r.ReadArrayElem() 7942 if r.TryDecodeAsNil() { 7943 x.Allocations = nil 7944 } else { 7945 if false { 7946 } else { 7947 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 7948 } 7949 } 7950 yyj18++ 7951 if yyhl18 { 7952 yyb18 = yyj18 > l 7953 } else { 7954 yyb18 = r.CheckBreak() 7955 } 7956 if yyb18 { 7957 r.ReadArrayEnd() 7958 return 7959 } 7960 r.ReadArrayElem() 7961 if r.TryDecodeAsNil() { 7962 x.ControllersHealthy = 0 7963 } else { 7964 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7965 } 7966 yyj18++ 7967 if yyhl18 { 7968 yyb18 = yyj18 > l 7969 } else { 7970 yyb18 = r.CheckBreak() 7971 } 7972 if yyb18 { 7973 r.ReadArrayEnd() 7974 return 7975 } 7976 r.ReadArrayElem() 7977 if r.TryDecodeAsNil() { 7978 x.NodesHealthy = 0 7979 } else { 7980 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 7981 } 7982 yyj18++ 7983 if yyhl18 { 7984 yyb18 = yyj18 > l 7985 } else { 7986 yyb18 = r.CheckBreak() 7987 } 7988 if yyb18 { 7989 r.ReadArrayEnd() 7990 return 7991 } 7992 r.ReadArrayElem() 7993 if r.TryDecodeAsNil() { 7994 x.CreateIndex = 0 7995 } else { 7996 x.CreateIndex = (uint64)(r.DecodeUint64()) 7997 } 7998 yyj18++ 7999 if yyhl18 { 8000 yyb18 = yyj18 > l 8001 } else { 8002 yyb18 = r.CheckBreak() 8003 } 8004 if yyb18 { 8005 r.ReadArrayEnd() 8006 return 8007 } 8008 r.ReadArrayElem() 8009 if r.TryDecodeAsNil() { 8010 x.ModifyIndex = 0 8011 } else { 8012 x.ModifyIndex = (uint64)(r.DecodeUint64()) 8013 } 8014 for { 8015 yyj18++ 8016 if yyhl18 { 8017 yyb18 = yyj18 > l 8018 } else { 8019 yyb18 = r.CheckBreak() 8020 } 8021 if yyb18 { 8022 break 8023 } 8024 r.ReadArrayElem() 8025 z.DecStructFieldNotFound(yyj18-1, "") 8026 } 8027 r.ReadArrayEnd() 8028 } 8029 8030 func (x *CSIPluginListStub) CodecEncodeSelf(e *codec1978.Encoder) { 8031 var h codecSelfer100 8032 z, r := codec1978.GenHelperEncoder(e) 8033 _, _, _ = h, z, r 8034 if x == nil { 8035 r.EncodeNil() 8036 } else { 8037 if false { 8038 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8039 z.EncExtension(x, yyxt1) 8040 } else { 8041 yysep2 := !z.EncBinary() 8042 yy2arr2 := z.EncBasicHandle().StructToArray 8043 _, _ = yysep2, yy2arr2 8044 const yyr2 bool = false // struct tag has 'toArray' 8045 if yyr2 || yy2arr2 { 8046 r.WriteArrayStart(9) 8047 } else { 8048 r.WriteMapStart(9) 8049 } 8050 if yyr2 || yy2arr2 { 8051 r.WriteArrayElem() 8052 if false { 8053 } else { 8054 if z.EncBasicHandle().StringToRaw { 8055 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 8056 } else { 8057 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 8058 } 8059 } 8060 } else { 8061 r.WriteMapElemKey() 8062 if z.IsJSONHandle() { 8063 z.WriteStr("\"ID\"") 8064 } else { 8065 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 8066 } 8067 r.WriteMapElemValue() 8068 if false { 8069 } else { 8070 if z.EncBasicHandle().StringToRaw { 8071 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 8072 } else { 8073 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 8074 } 8075 } 8076 } 8077 if yyr2 || yy2arr2 { 8078 r.WriteArrayElem() 8079 if false { 8080 } else { 8081 if z.EncBasicHandle().StringToRaw { 8082 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 8083 } else { 8084 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 8085 } 8086 } 8087 } else { 8088 r.WriteMapElemKey() 8089 if z.IsJSONHandle() { 8090 z.WriteStr("\"Provider\"") 8091 } else { 8092 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 8093 } 8094 r.WriteMapElemValue() 8095 if false { 8096 } else { 8097 if z.EncBasicHandle().StringToRaw { 8098 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 8099 } else { 8100 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 8101 } 8102 } 8103 } 8104 if yyr2 || yy2arr2 { 8105 r.WriteArrayElem() 8106 if false { 8107 } else { 8108 r.EncodeBool(bool(x.ControllerRequired)) 8109 } 8110 } else { 8111 r.WriteMapElemKey() 8112 if z.IsJSONHandle() { 8113 z.WriteStr("\"ControllerRequired\"") 8114 } else { 8115 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerRequired`) 8116 } 8117 r.WriteMapElemValue() 8118 if false { 8119 } else { 8120 r.EncodeBool(bool(x.ControllerRequired)) 8121 } 8122 } 8123 if yyr2 || yy2arr2 { 8124 r.WriteArrayElem() 8125 if false { 8126 } else { 8127 r.EncodeInt(int64(x.ControllersHealthy)) 8128 } 8129 } else { 8130 r.WriteMapElemKey() 8131 if z.IsJSONHandle() { 8132 z.WriteStr("\"ControllersHealthy\"") 8133 } else { 8134 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersHealthy`) 8135 } 8136 r.WriteMapElemValue() 8137 if false { 8138 } else { 8139 r.EncodeInt(int64(x.ControllersHealthy)) 8140 } 8141 } 8142 if yyr2 || yy2arr2 { 8143 r.WriteArrayElem() 8144 if false { 8145 } else { 8146 r.EncodeInt(int64(x.ControllersExpected)) 8147 } 8148 } else { 8149 r.WriteMapElemKey() 8150 if z.IsJSONHandle() { 8151 z.WriteStr("\"ControllersExpected\"") 8152 } else { 8153 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllersExpected`) 8154 } 8155 r.WriteMapElemValue() 8156 if false { 8157 } else { 8158 r.EncodeInt(int64(x.ControllersExpected)) 8159 } 8160 } 8161 if yyr2 || yy2arr2 { 8162 r.WriteArrayElem() 8163 if false { 8164 } else { 8165 r.EncodeInt(int64(x.NodesHealthy)) 8166 } 8167 } else { 8168 r.WriteMapElemKey() 8169 if z.IsJSONHandle() { 8170 z.WriteStr("\"NodesHealthy\"") 8171 } else { 8172 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesHealthy`) 8173 } 8174 r.WriteMapElemValue() 8175 if false { 8176 } else { 8177 r.EncodeInt(int64(x.NodesHealthy)) 8178 } 8179 } 8180 if yyr2 || yy2arr2 { 8181 r.WriteArrayElem() 8182 if false { 8183 } else { 8184 r.EncodeInt(int64(x.NodesExpected)) 8185 } 8186 } else { 8187 r.WriteMapElemKey() 8188 if z.IsJSONHandle() { 8189 z.WriteStr("\"NodesExpected\"") 8190 } else { 8191 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExpected`) 8192 } 8193 r.WriteMapElemValue() 8194 if false { 8195 } else { 8196 r.EncodeInt(int64(x.NodesExpected)) 8197 } 8198 } 8199 if yyr2 || yy2arr2 { 8200 r.WriteArrayElem() 8201 if false { 8202 } else { 8203 r.EncodeUint(uint64(x.CreateIndex)) 8204 } 8205 } else { 8206 r.WriteMapElemKey() 8207 if z.IsJSONHandle() { 8208 z.WriteStr("\"CreateIndex\"") 8209 } else { 8210 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 8211 } 8212 r.WriteMapElemValue() 8213 if false { 8214 } else { 8215 r.EncodeUint(uint64(x.CreateIndex)) 8216 } 8217 } 8218 if yyr2 || yy2arr2 { 8219 r.WriteArrayElem() 8220 if false { 8221 } else { 8222 r.EncodeUint(uint64(x.ModifyIndex)) 8223 } 8224 } else { 8225 r.WriteMapElemKey() 8226 if z.IsJSONHandle() { 8227 z.WriteStr("\"ModifyIndex\"") 8228 } else { 8229 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 8230 } 8231 r.WriteMapElemValue() 8232 if false { 8233 } else { 8234 r.EncodeUint(uint64(x.ModifyIndex)) 8235 } 8236 } 8237 if yyr2 || yy2arr2 { 8238 r.WriteArrayEnd() 8239 } else { 8240 r.WriteMapEnd() 8241 } 8242 } 8243 } 8244 } 8245 8246 func (x *CSIPluginListStub) CodecDecodeSelf(d *codec1978.Decoder) { 8247 var h codecSelfer100 8248 z, r := codec1978.GenHelperDecoder(d) 8249 _, _, _ = h, z, r 8250 if false { 8251 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8252 z.DecExtension(x, yyxt1) 8253 } else { 8254 yyct2 := r.ContainerType() 8255 if yyct2 == codecSelferValueTypeMap100 { 8256 yyl2 := r.ReadMapStart() 8257 if yyl2 == 0 { 8258 r.ReadMapEnd() 8259 } else { 8260 x.codecDecodeSelfFromMap(yyl2, d) 8261 } 8262 } else if yyct2 == codecSelferValueTypeArray100 { 8263 yyl2 := r.ReadArrayStart() 8264 if yyl2 == 0 { 8265 r.ReadArrayEnd() 8266 } else { 8267 x.codecDecodeSelfFromArray(yyl2, d) 8268 } 8269 } else { 8270 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 8271 } 8272 } 8273 } 8274 8275 func (x *CSIPluginListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 8276 var h codecSelfer100 8277 z, r := codec1978.GenHelperDecoder(d) 8278 _, _, _ = h, z, r 8279 var yyhl3 bool = l >= 0 8280 for yyj3 := 0; ; yyj3++ { 8281 if yyhl3 { 8282 if yyj3 >= l { 8283 break 8284 } 8285 } else { 8286 if r.CheckBreak() { 8287 break 8288 } 8289 } 8290 r.ReadMapElemKey() 8291 yys3 := z.StringView(r.DecodeStringAsBytes()) 8292 r.ReadMapElemValue() 8293 switch yys3 { 8294 case "ID": 8295 if r.TryDecodeAsNil() { 8296 x.ID = "" 8297 } else { 8298 x.ID = (string)(r.DecodeString()) 8299 } 8300 case "Provider": 8301 if r.TryDecodeAsNil() { 8302 x.Provider = "" 8303 } else { 8304 x.Provider = (string)(r.DecodeString()) 8305 } 8306 case "ControllerRequired": 8307 if r.TryDecodeAsNil() { 8308 x.ControllerRequired = false 8309 } else { 8310 x.ControllerRequired = (bool)(r.DecodeBool()) 8311 } 8312 case "ControllersHealthy": 8313 if r.TryDecodeAsNil() { 8314 x.ControllersHealthy = 0 8315 } else { 8316 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8317 } 8318 case "ControllersExpected": 8319 if r.TryDecodeAsNil() { 8320 x.ControllersExpected = 0 8321 } else { 8322 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8323 } 8324 case "NodesHealthy": 8325 if r.TryDecodeAsNil() { 8326 x.NodesHealthy = 0 8327 } else { 8328 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8329 } 8330 case "NodesExpected": 8331 if r.TryDecodeAsNil() { 8332 x.NodesExpected = 0 8333 } else { 8334 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8335 } 8336 case "CreateIndex": 8337 if r.TryDecodeAsNil() { 8338 x.CreateIndex = 0 8339 } else { 8340 x.CreateIndex = (uint64)(r.DecodeUint64()) 8341 } 8342 case "ModifyIndex": 8343 if r.TryDecodeAsNil() { 8344 x.ModifyIndex = 0 8345 } else { 8346 x.ModifyIndex = (uint64)(r.DecodeUint64()) 8347 } 8348 default: 8349 z.DecStructFieldNotFound(-1, yys3) 8350 } // end switch yys3 8351 } // end for yyj3 8352 r.ReadMapEnd() 8353 } 8354 8355 func (x *CSIPluginListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 8356 var h codecSelfer100 8357 z, r := codec1978.GenHelperDecoder(d) 8358 _, _, _ = h, z, r 8359 var yyj13 int 8360 var yyb13 bool 8361 var yyhl13 bool = l >= 0 8362 yyj13++ 8363 if yyhl13 { 8364 yyb13 = yyj13 > l 8365 } else { 8366 yyb13 = r.CheckBreak() 8367 } 8368 if yyb13 { 8369 r.ReadArrayEnd() 8370 return 8371 } 8372 r.ReadArrayElem() 8373 if r.TryDecodeAsNil() { 8374 x.ID = "" 8375 } else { 8376 x.ID = (string)(r.DecodeString()) 8377 } 8378 yyj13++ 8379 if yyhl13 { 8380 yyb13 = yyj13 > l 8381 } else { 8382 yyb13 = r.CheckBreak() 8383 } 8384 if yyb13 { 8385 r.ReadArrayEnd() 8386 return 8387 } 8388 r.ReadArrayElem() 8389 if r.TryDecodeAsNil() { 8390 x.Provider = "" 8391 } else { 8392 x.Provider = (string)(r.DecodeString()) 8393 } 8394 yyj13++ 8395 if yyhl13 { 8396 yyb13 = yyj13 > l 8397 } else { 8398 yyb13 = r.CheckBreak() 8399 } 8400 if yyb13 { 8401 r.ReadArrayEnd() 8402 return 8403 } 8404 r.ReadArrayElem() 8405 if r.TryDecodeAsNil() { 8406 x.ControllerRequired = false 8407 } else { 8408 x.ControllerRequired = (bool)(r.DecodeBool()) 8409 } 8410 yyj13++ 8411 if yyhl13 { 8412 yyb13 = yyj13 > l 8413 } else { 8414 yyb13 = r.CheckBreak() 8415 } 8416 if yyb13 { 8417 r.ReadArrayEnd() 8418 return 8419 } 8420 r.ReadArrayElem() 8421 if r.TryDecodeAsNil() { 8422 x.ControllersHealthy = 0 8423 } else { 8424 x.ControllersHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8425 } 8426 yyj13++ 8427 if yyhl13 { 8428 yyb13 = yyj13 > l 8429 } else { 8430 yyb13 = r.CheckBreak() 8431 } 8432 if yyb13 { 8433 r.ReadArrayEnd() 8434 return 8435 } 8436 r.ReadArrayElem() 8437 if r.TryDecodeAsNil() { 8438 x.ControllersExpected = 0 8439 } else { 8440 x.ControllersExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8441 } 8442 yyj13++ 8443 if yyhl13 { 8444 yyb13 = yyj13 > l 8445 } else { 8446 yyb13 = r.CheckBreak() 8447 } 8448 if yyb13 { 8449 r.ReadArrayEnd() 8450 return 8451 } 8452 r.ReadArrayElem() 8453 if r.TryDecodeAsNil() { 8454 x.NodesHealthy = 0 8455 } else { 8456 x.NodesHealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8457 } 8458 yyj13++ 8459 if yyhl13 { 8460 yyb13 = yyj13 > l 8461 } else { 8462 yyb13 = r.CheckBreak() 8463 } 8464 if yyb13 { 8465 r.ReadArrayEnd() 8466 return 8467 } 8468 r.ReadArrayElem() 8469 if r.TryDecodeAsNil() { 8470 x.NodesExpected = 0 8471 } else { 8472 x.NodesExpected = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 8473 } 8474 yyj13++ 8475 if yyhl13 { 8476 yyb13 = yyj13 > l 8477 } else { 8478 yyb13 = r.CheckBreak() 8479 } 8480 if yyb13 { 8481 r.ReadArrayEnd() 8482 return 8483 } 8484 r.ReadArrayElem() 8485 if r.TryDecodeAsNil() { 8486 x.CreateIndex = 0 8487 } else { 8488 x.CreateIndex = (uint64)(r.DecodeUint64()) 8489 } 8490 yyj13++ 8491 if yyhl13 { 8492 yyb13 = yyj13 > l 8493 } else { 8494 yyb13 = r.CheckBreak() 8495 } 8496 if yyb13 { 8497 r.ReadArrayEnd() 8498 return 8499 } 8500 r.ReadArrayElem() 8501 if r.TryDecodeAsNil() { 8502 x.ModifyIndex = 0 8503 } else { 8504 x.ModifyIndex = (uint64)(r.DecodeUint64()) 8505 } 8506 for { 8507 yyj13++ 8508 if yyhl13 { 8509 yyb13 = yyj13 > l 8510 } else { 8511 yyb13 = r.CheckBreak() 8512 } 8513 if yyb13 { 8514 break 8515 } 8516 r.ReadArrayElem() 8517 z.DecStructFieldNotFound(yyj13-1, "") 8518 } 8519 r.ReadArrayEnd() 8520 } 8521 8522 func (x *CSIPluginListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 8523 var h codecSelfer100 8524 z, r := codec1978.GenHelperEncoder(e) 8525 _, _, _ = h, z, r 8526 if x == nil { 8527 r.EncodeNil() 8528 } else { 8529 if false { 8530 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8531 z.EncExtension(x, yyxt1) 8532 } else { 8533 yysep2 := !z.EncBinary() 8534 yy2arr2 := z.EncBasicHandle().StructToArray 8535 _, _ = yysep2, yy2arr2 8536 const yyr2 bool = false // struct tag has 'toArray' 8537 if yyr2 || yy2arr2 { 8538 r.WriteArrayStart(8) 8539 } else { 8540 r.WriteMapStart(8) 8541 } 8542 if yyr2 || yy2arr2 { 8543 r.WriteArrayElem() 8544 if false { 8545 } else { 8546 if z.EncBasicHandle().StringToRaw { 8547 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 8548 } else { 8549 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 8550 } 8551 } 8552 } else { 8553 r.WriteMapElemKey() 8554 if z.IsJSONHandle() { 8555 z.WriteStr("\"Region\"") 8556 } else { 8557 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 8558 } 8559 r.WriteMapElemValue() 8560 if false { 8561 } else { 8562 if z.EncBasicHandle().StringToRaw { 8563 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 8564 } else { 8565 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 8566 } 8567 } 8568 } 8569 if yyr2 || yy2arr2 { 8570 r.WriteArrayElem() 8571 if false { 8572 } else { 8573 if z.EncBasicHandle().StringToRaw { 8574 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 8575 } else { 8576 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 8577 } 8578 } 8579 } else { 8580 r.WriteMapElemKey() 8581 if z.IsJSONHandle() { 8582 z.WriteStr("\"Namespace\"") 8583 } else { 8584 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 8585 } 8586 r.WriteMapElemValue() 8587 if false { 8588 } else { 8589 if z.EncBasicHandle().StringToRaw { 8590 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 8591 } else { 8592 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 8593 } 8594 } 8595 } 8596 if yyr2 || yy2arr2 { 8597 r.WriteArrayElem() 8598 if false { 8599 } else { 8600 r.EncodeUint(uint64(x.MinQueryIndex)) 8601 } 8602 } else { 8603 r.WriteMapElemKey() 8604 if z.IsJSONHandle() { 8605 z.WriteStr("\"MinQueryIndex\"") 8606 } else { 8607 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 8608 } 8609 r.WriteMapElemValue() 8610 if false { 8611 } else { 8612 r.EncodeUint(uint64(x.MinQueryIndex)) 8613 } 8614 } 8615 if yyr2 || yy2arr2 { 8616 r.WriteArrayElem() 8617 if false { 8618 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 8619 z.EncExtension(x.MaxQueryTime, yyxt13) 8620 } else { 8621 r.EncodeInt(int64(x.MaxQueryTime)) 8622 } 8623 } else { 8624 r.WriteMapElemKey() 8625 if z.IsJSONHandle() { 8626 z.WriteStr("\"MaxQueryTime\"") 8627 } else { 8628 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 8629 } 8630 r.WriteMapElemValue() 8631 if false { 8632 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 8633 z.EncExtension(x.MaxQueryTime, yyxt14) 8634 } else { 8635 r.EncodeInt(int64(x.MaxQueryTime)) 8636 } 8637 } 8638 if yyr2 || yy2arr2 { 8639 r.WriteArrayElem() 8640 if false { 8641 } else { 8642 r.EncodeBool(bool(x.AllowStale)) 8643 } 8644 } else { 8645 r.WriteMapElemKey() 8646 if z.IsJSONHandle() { 8647 z.WriteStr("\"AllowStale\"") 8648 } else { 8649 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 8650 } 8651 r.WriteMapElemValue() 8652 if false { 8653 } else { 8654 r.EncodeBool(bool(x.AllowStale)) 8655 } 8656 } 8657 if yyr2 || yy2arr2 { 8658 r.WriteArrayElem() 8659 if false { 8660 } else { 8661 if z.EncBasicHandle().StringToRaw { 8662 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 8663 } else { 8664 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 8665 } 8666 } 8667 } else { 8668 r.WriteMapElemKey() 8669 if z.IsJSONHandle() { 8670 z.WriteStr("\"Prefix\"") 8671 } else { 8672 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 8673 } 8674 r.WriteMapElemValue() 8675 if false { 8676 } else { 8677 if z.EncBasicHandle().StringToRaw { 8678 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 8679 } else { 8680 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 8681 } 8682 } 8683 } 8684 if yyr2 || yy2arr2 { 8685 r.WriteArrayElem() 8686 if false { 8687 } else { 8688 if z.EncBasicHandle().StringToRaw { 8689 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 8690 } else { 8691 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 8692 } 8693 } 8694 } else { 8695 r.WriteMapElemKey() 8696 if z.IsJSONHandle() { 8697 z.WriteStr("\"AuthToken\"") 8698 } else { 8699 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 8700 } 8701 r.WriteMapElemValue() 8702 if false { 8703 } else { 8704 if z.EncBasicHandle().StringToRaw { 8705 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 8706 } else { 8707 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 8708 } 8709 } 8710 } 8711 if yyr2 || yy2arr2 { 8712 r.WriteArrayElem() 8713 if false { 8714 } else { 8715 r.EncodeBool(bool(x.Forwarded)) 8716 } 8717 } else { 8718 r.WriteMapElemKey() 8719 if z.IsJSONHandle() { 8720 z.WriteStr("\"Forwarded\"") 8721 } else { 8722 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 8723 } 8724 r.WriteMapElemValue() 8725 if false { 8726 } else { 8727 r.EncodeBool(bool(x.Forwarded)) 8728 } 8729 } 8730 if yyr2 || yy2arr2 { 8731 r.WriteArrayEnd() 8732 } else { 8733 r.WriteMapEnd() 8734 } 8735 } 8736 } 8737 } 8738 8739 func (x *CSIPluginListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 8740 var h codecSelfer100 8741 z, r := codec1978.GenHelperDecoder(d) 8742 _, _, _ = h, z, r 8743 if false { 8744 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 8745 z.DecExtension(x, yyxt1) 8746 } else { 8747 yyct2 := r.ContainerType() 8748 if yyct2 == codecSelferValueTypeMap100 { 8749 yyl2 := r.ReadMapStart() 8750 if yyl2 == 0 { 8751 r.ReadMapEnd() 8752 } else { 8753 x.codecDecodeSelfFromMap(yyl2, d) 8754 } 8755 } else if yyct2 == codecSelferValueTypeArray100 { 8756 yyl2 := r.ReadArrayStart() 8757 if yyl2 == 0 { 8758 r.ReadArrayEnd() 8759 } else { 8760 x.codecDecodeSelfFromArray(yyl2, d) 8761 } 8762 } else { 8763 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 8764 } 8765 } 8766 } 8767 8768 func (x *CSIPluginListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 8769 var h codecSelfer100 8770 z, r := codec1978.GenHelperDecoder(d) 8771 _, _, _ = h, z, r 8772 var yyhl3 bool = l >= 0 8773 for yyj3 := 0; ; yyj3++ { 8774 if yyhl3 { 8775 if yyj3 >= l { 8776 break 8777 } 8778 } else { 8779 if r.CheckBreak() { 8780 break 8781 } 8782 } 8783 r.ReadMapElemKey() 8784 yys3 := z.StringView(r.DecodeStringAsBytes()) 8785 r.ReadMapElemValue() 8786 switch yys3 { 8787 case "Region": 8788 if r.TryDecodeAsNil() { 8789 x.QueryOptions.Region = "" 8790 } else { 8791 x.Region = (string)(r.DecodeString()) 8792 } 8793 case "Namespace": 8794 if r.TryDecodeAsNil() { 8795 x.QueryOptions.Namespace = "" 8796 } else { 8797 x.Namespace = (string)(r.DecodeString()) 8798 } 8799 case "MinQueryIndex": 8800 if r.TryDecodeAsNil() { 8801 x.QueryOptions.MinQueryIndex = 0 8802 } else { 8803 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 8804 } 8805 case "MaxQueryTime": 8806 if r.TryDecodeAsNil() { 8807 x.QueryOptions.MaxQueryTime = 0 8808 } else { 8809 if false { 8810 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 8811 z.DecExtension(x.MaxQueryTime, yyxt8) 8812 } else { 8813 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 8814 } 8815 } 8816 case "AllowStale": 8817 if r.TryDecodeAsNil() { 8818 x.QueryOptions.AllowStale = false 8819 } else { 8820 x.AllowStale = (bool)(r.DecodeBool()) 8821 } 8822 case "Prefix": 8823 if r.TryDecodeAsNil() { 8824 x.QueryOptions.Prefix = "" 8825 } else { 8826 x.Prefix = (string)(r.DecodeString()) 8827 } 8828 case "AuthToken": 8829 if r.TryDecodeAsNil() { 8830 x.QueryOptions.AuthToken = "" 8831 } else { 8832 x.AuthToken = (string)(r.DecodeString()) 8833 } 8834 case "Forwarded": 8835 if r.TryDecodeAsNil() { 8836 x.QueryOptions.InternalRpcInfo.Forwarded = false 8837 } else { 8838 x.Forwarded = (bool)(r.DecodeBool()) 8839 } 8840 default: 8841 z.DecStructFieldNotFound(-1, yys3) 8842 } // end switch yys3 8843 } // end for yyj3 8844 r.ReadMapEnd() 8845 } 8846 8847 func (x *CSIPluginListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 8848 var h codecSelfer100 8849 z, r := codec1978.GenHelperDecoder(d) 8850 _, _, _ = h, z, r 8851 var yyj13 int 8852 var yyb13 bool 8853 var yyhl13 bool = l >= 0 8854 yyj13++ 8855 if yyhl13 { 8856 yyb13 = yyj13 > l 8857 } else { 8858 yyb13 = r.CheckBreak() 8859 } 8860 if yyb13 { 8861 r.ReadArrayEnd() 8862 return 8863 } 8864 r.ReadArrayElem() 8865 if r.TryDecodeAsNil() { 8866 x.QueryOptions.Region = "" 8867 } else { 8868 x.Region = (string)(r.DecodeString()) 8869 } 8870 yyj13++ 8871 if yyhl13 { 8872 yyb13 = yyj13 > l 8873 } else { 8874 yyb13 = r.CheckBreak() 8875 } 8876 if yyb13 { 8877 r.ReadArrayEnd() 8878 return 8879 } 8880 r.ReadArrayElem() 8881 if r.TryDecodeAsNil() { 8882 x.QueryOptions.Namespace = "" 8883 } else { 8884 x.Namespace = (string)(r.DecodeString()) 8885 } 8886 yyj13++ 8887 if yyhl13 { 8888 yyb13 = yyj13 > l 8889 } else { 8890 yyb13 = r.CheckBreak() 8891 } 8892 if yyb13 { 8893 r.ReadArrayEnd() 8894 return 8895 } 8896 r.ReadArrayElem() 8897 if r.TryDecodeAsNil() { 8898 x.QueryOptions.MinQueryIndex = 0 8899 } else { 8900 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 8901 } 8902 yyj13++ 8903 if yyhl13 { 8904 yyb13 = yyj13 > l 8905 } else { 8906 yyb13 = r.CheckBreak() 8907 } 8908 if yyb13 { 8909 r.ReadArrayEnd() 8910 return 8911 } 8912 r.ReadArrayElem() 8913 if r.TryDecodeAsNil() { 8914 x.QueryOptions.MaxQueryTime = 0 8915 } else { 8916 if false { 8917 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 8918 z.DecExtension(x.MaxQueryTime, yyxt18) 8919 } else { 8920 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 8921 } 8922 } 8923 yyj13++ 8924 if yyhl13 { 8925 yyb13 = yyj13 > l 8926 } else { 8927 yyb13 = r.CheckBreak() 8928 } 8929 if yyb13 { 8930 r.ReadArrayEnd() 8931 return 8932 } 8933 r.ReadArrayElem() 8934 if r.TryDecodeAsNil() { 8935 x.QueryOptions.AllowStale = false 8936 } else { 8937 x.AllowStale = (bool)(r.DecodeBool()) 8938 } 8939 yyj13++ 8940 if yyhl13 { 8941 yyb13 = yyj13 > l 8942 } else { 8943 yyb13 = r.CheckBreak() 8944 } 8945 if yyb13 { 8946 r.ReadArrayEnd() 8947 return 8948 } 8949 r.ReadArrayElem() 8950 if r.TryDecodeAsNil() { 8951 x.QueryOptions.Prefix = "" 8952 } else { 8953 x.Prefix = (string)(r.DecodeString()) 8954 } 8955 yyj13++ 8956 if yyhl13 { 8957 yyb13 = yyj13 > l 8958 } else { 8959 yyb13 = r.CheckBreak() 8960 } 8961 if yyb13 { 8962 r.ReadArrayEnd() 8963 return 8964 } 8965 r.ReadArrayElem() 8966 if r.TryDecodeAsNil() { 8967 x.QueryOptions.AuthToken = "" 8968 } else { 8969 x.AuthToken = (string)(r.DecodeString()) 8970 } 8971 yyj13++ 8972 if yyhl13 { 8973 yyb13 = yyj13 > l 8974 } else { 8975 yyb13 = r.CheckBreak() 8976 } 8977 if yyb13 { 8978 r.ReadArrayEnd() 8979 return 8980 } 8981 r.ReadArrayElem() 8982 if r.TryDecodeAsNil() { 8983 x.QueryOptions.InternalRpcInfo.Forwarded = false 8984 } else { 8985 x.Forwarded = (bool)(r.DecodeBool()) 8986 } 8987 for { 8988 yyj13++ 8989 if yyhl13 { 8990 yyb13 = yyj13 > l 8991 } else { 8992 yyb13 = r.CheckBreak() 8993 } 8994 if yyb13 { 8995 break 8996 } 8997 r.ReadArrayElem() 8998 z.DecStructFieldNotFound(yyj13-1, "") 8999 } 9000 r.ReadArrayEnd() 9001 } 9002 9003 func (x *CSIPluginListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 9004 var h codecSelfer100 9005 z, r := codec1978.GenHelperEncoder(e) 9006 _, _, _ = h, z, r 9007 if x == nil { 9008 r.EncodeNil() 9009 } else { 9010 if false { 9011 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9012 z.EncExtension(x, yyxt1) 9013 } else { 9014 yysep2 := !z.EncBinary() 9015 yy2arr2 := z.EncBasicHandle().StructToArray 9016 _, _ = yysep2, yy2arr2 9017 const yyr2 bool = false // struct tag has 'toArray' 9018 if yyr2 || yy2arr2 { 9019 r.WriteArrayStart(4) 9020 } else { 9021 r.WriteMapStart(4) 9022 } 9023 if yyr2 || yy2arr2 { 9024 r.WriteArrayElem() 9025 if x.Plugins == nil { 9026 r.EncodeNil() 9027 } else { 9028 if false { 9029 } else { 9030 h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) 9031 } 9032 } 9033 } else { 9034 r.WriteMapElemKey() 9035 if z.IsJSONHandle() { 9036 z.WriteStr("\"Plugins\"") 9037 } else { 9038 r.EncodeStringEnc(codecSelferCcUTF8100, `Plugins`) 9039 } 9040 r.WriteMapElemValue() 9041 if x.Plugins == nil { 9042 r.EncodeNil() 9043 } else { 9044 if false { 9045 } else { 9046 h.encSlicePtrtoCSIPluginListStub(([]*CSIPluginListStub)(x.Plugins), e) 9047 } 9048 } 9049 } 9050 if yyr2 || yy2arr2 { 9051 r.WriteArrayElem() 9052 if false { 9053 } else { 9054 r.EncodeUint(uint64(x.Index)) 9055 } 9056 } else { 9057 r.WriteMapElemKey() 9058 if z.IsJSONHandle() { 9059 z.WriteStr("\"Index\"") 9060 } else { 9061 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 9062 } 9063 r.WriteMapElemValue() 9064 if false { 9065 } else { 9066 r.EncodeUint(uint64(x.Index)) 9067 } 9068 } 9069 if yyr2 || yy2arr2 { 9070 r.WriteArrayElem() 9071 if false { 9072 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 9073 z.EncExtension(x.LastContact, yyxt10) 9074 } else { 9075 r.EncodeInt(int64(x.LastContact)) 9076 } 9077 } else { 9078 r.WriteMapElemKey() 9079 if z.IsJSONHandle() { 9080 z.WriteStr("\"LastContact\"") 9081 } else { 9082 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 9083 } 9084 r.WriteMapElemValue() 9085 if false { 9086 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 9087 z.EncExtension(x.LastContact, yyxt11) 9088 } else { 9089 r.EncodeInt(int64(x.LastContact)) 9090 } 9091 } 9092 if yyr2 || yy2arr2 { 9093 r.WriteArrayElem() 9094 if false { 9095 } else { 9096 r.EncodeBool(bool(x.KnownLeader)) 9097 } 9098 } else { 9099 r.WriteMapElemKey() 9100 if z.IsJSONHandle() { 9101 z.WriteStr("\"KnownLeader\"") 9102 } else { 9103 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 9104 } 9105 r.WriteMapElemValue() 9106 if false { 9107 } else { 9108 r.EncodeBool(bool(x.KnownLeader)) 9109 } 9110 } 9111 if yyr2 || yy2arr2 { 9112 r.WriteArrayEnd() 9113 } else { 9114 r.WriteMapEnd() 9115 } 9116 } 9117 } 9118 } 9119 9120 func (x *CSIPluginListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 9121 var h codecSelfer100 9122 z, r := codec1978.GenHelperDecoder(d) 9123 _, _, _ = h, z, r 9124 if false { 9125 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9126 z.DecExtension(x, yyxt1) 9127 } else { 9128 yyct2 := r.ContainerType() 9129 if yyct2 == codecSelferValueTypeMap100 { 9130 yyl2 := r.ReadMapStart() 9131 if yyl2 == 0 { 9132 r.ReadMapEnd() 9133 } else { 9134 x.codecDecodeSelfFromMap(yyl2, d) 9135 } 9136 } else if yyct2 == codecSelferValueTypeArray100 { 9137 yyl2 := r.ReadArrayStart() 9138 if yyl2 == 0 { 9139 r.ReadArrayEnd() 9140 } else { 9141 x.codecDecodeSelfFromArray(yyl2, d) 9142 } 9143 } else { 9144 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9145 } 9146 } 9147 } 9148 9149 func (x *CSIPluginListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9150 var h codecSelfer100 9151 z, r := codec1978.GenHelperDecoder(d) 9152 _, _, _ = h, z, r 9153 var yyhl3 bool = l >= 0 9154 for yyj3 := 0; ; yyj3++ { 9155 if yyhl3 { 9156 if yyj3 >= l { 9157 break 9158 } 9159 } else { 9160 if r.CheckBreak() { 9161 break 9162 } 9163 } 9164 r.ReadMapElemKey() 9165 yys3 := z.StringView(r.DecodeStringAsBytes()) 9166 r.ReadMapElemValue() 9167 switch yys3 { 9168 case "Plugins": 9169 if r.TryDecodeAsNil() { 9170 x.Plugins = nil 9171 } else { 9172 if false { 9173 } else { 9174 h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) 9175 } 9176 } 9177 case "Index": 9178 if r.TryDecodeAsNil() { 9179 x.QueryMeta.Index = 0 9180 } else { 9181 x.Index = (uint64)(r.DecodeUint64()) 9182 } 9183 case "LastContact": 9184 if r.TryDecodeAsNil() { 9185 x.QueryMeta.LastContact = 0 9186 } else { 9187 if false { 9188 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 9189 z.DecExtension(x.LastContact, yyxt8) 9190 } else { 9191 x.LastContact = (time.Duration)(r.DecodeInt64()) 9192 } 9193 } 9194 case "KnownLeader": 9195 if r.TryDecodeAsNil() { 9196 x.QueryMeta.KnownLeader = false 9197 } else { 9198 x.KnownLeader = (bool)(r.DecodeBool()) 9199 } 9200 default: 9201 z.DecStructFieldNotFound(-1, yys3) 9202 } // end switch yys3 9203 } // end for yyj3 9204 r.ReadMapEnd() 9205 } 9206 9207 func (x *CSIPluginListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9208 var h codecSelfer100 9209 z, r := codec1978.GenHelperDecoder(d) 9210 _, _, _ = h, z, r 9211 var yyj10 int 9212 var yyb10 bool 9213 var yyhl10 bool = l >= 0 9214 yyj10++ 9215 if yyhl10 { 9216 yyb10 = yyj10 > l 9217 } else { 9218 yyb10 = r.CheckBreak() 9219 } 9220 if yyb10 { 9221 r.ReadArrayEnd() 9222 return 9223 } 9224 r.ReadArrayElem() 9225 if r.TryDecodeAsNil() { 9226 x.Plugins = nil 9227 } else { 9228 if false { 9229 } else { 9230 h.decSlicePtrtoCSIPluginListStub((*[]*CSIPluginListStub)(&x.Plugins), d) 9231 } 9232 } 9233 yyj10++ 9234 if yyhl10 { 9235 yyb10 = yyj10 > l 9236 } else { 9237 yyb10 = r.CheckBreak() 9238 } 9239 if yyb10 { 9240 r.ReadArrayEnd() 9241 return 9242 } 9243 r.ReadArrayElem() 9244 if r.TryDecodeAsNil() { 9245 x.QueryMeta.Index = 0 9246 } else { 9247 x.Index = (uint64)(r.DecodeUint64()) 9248 } 9249 yyj10++ 9250 if yyhl10 { 9251 yyb10 = yyj10 > l 9252 } else { 9253 yyb10 = r.CheckBreak() 9254 } 9255 if yyb10 { 9256 r.ReadArrayEnd() 9257 return 9258 } 9259 r.ReadArrayElem() 9260 if r.TryDecodeAsNil() { 9261 x.QueryMeta.LastContact = 0 9262 } else { 9263 if false { 9264 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 9265 z.DecExtension(x.LastContact, yyxt15) 9266 } else { 9267 x.LastContact = (time.Duration)(r.DecodeInt64()) 9268 } 9269 } 9270 yyj10++ 9271 if yyhl10 { 9272 yyb10 = yyj10 > l 9273 } else { 9274 yyb10 = r.CheckBreak() 9275 } 9276 if yyb10 { 9277 r.ReadArrayEnd() 9278 return 9279 } 9280 r.ReadArrayElem() 9281 if r.TryDecodeAsNil() { 9282 x.QueryMeta.KnownLeader = false 9283 } else { 9284 x.KnownLeader = (bool)(r.DecodeBool()) 9285 } 9286 for { 9287 yyj10++ 9288 if yyhl10 { 9289 yyb10 = yyj10 > l 9290 } else { 9291 yyb10 = r.CheckBreak() 9292 } 9293 if yyb10 { 9294 break 9295 } 9296 r.ReadArrayElem() 9297 z.DecStructFieldNotFound(yyj10-1, "") 9298 } 9299 r.ReadArrayEnd() 9300 } 9301 9302 func (x *CSIPluginGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 9303 var h codecSelfer100 9304 z, r := codec1978.GenHelperEncoder(e) 9305 _, _, _ = h, z, r 9306 if x == nil { 9307 r.EncodeNil() 9308 } else { 9309 if false { 9310 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9311 z.EncExtension(x, yyxt1) 9312 } else { 9313 yysep2 := !z.EncBinary() 9314 yy2arr2 := z.EncBasicHandle().StructToArray 9315 _, _ = yysep2, yy2arr2 9316 const yyr2 bool = false // struct tag has 'toArray' 9317 if yyr2 || yy2arr2 { 9318 r.WriteArrayStart(9) 9319 } else { 9320 r.WriteMapStart(9) 9321 } 9322 if yyr2 || yy2arr2 { 9323 r.WriteArrayElem() 9324 if false { 9325 } else { 9326 if z.EncBasicHandle().StringToRaw { 9327 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 9328 } else { 9329 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 9330 } 9331 } 9332 } else { 9333 r.WriteMapElemKey() 9334 if z.IsJSONHandle() { 9335 z.WriteStr("\"ID\"") 9336 } else { 9337 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 9338 } 9339 r.WriteMapElemValue() 9340 if false { 9341 } else { 9342 if z.EncBasicHandle().StringToRaw { 9343 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 9344 } else { 9345 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 9346 } 9347 } 9348 } 9349 if yyr2 || yy2arr2 { 9350 r.WriteArrayElem() 9351 if false { 9352 } else { 9353 if z.EncBasicHandle().StringToRaw { 9354 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 9355 } else { 9356 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 9357 } 9358 } 9359 } else { 9360 r.WriteMapElemKey() 9361 if z.IsJSONHandle() { 9362 z.WriteStr("\"Region\"") 9363 } else { 9364 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 9365 } 9366 r.WriteMapElemValue() 9367 if false { 9368 } else { 9369 if z.EncBasicHandle().StringToRaw { 9370 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 9371 } else { 9372 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 9373 } 9374 } 9375 } 9376 if yyr2 || yy2arr2 { 9377 r.WriteArrayElem() 9378 if false { 9379 } else { 9380 if z.EncBasicHandle().StringToRaw { 9381 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 9382 } else { 9383 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 9384 } 9385 } 9386 } else { 9387 r.WriteMapElemKey() 9388 if z.IsJSONHandle() { 9389 z.WriteStr("\"Namespace\"") 9390 } else { 9391 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 9392 } 9393 r.WriteMapElemValue() 9394 if false { 9395 } else { 9396 if z.EncBasicHandle().StringToRaw { 9397 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 9398 } else { 9399 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 9400 } 9401 } 9402 } 9403 if yyr2 || yy2arr2 { 9404 r.WriteArrayElem() 9405 if false { 9406 } else { 9407 r.EncodeUint(uint64(x.MinQueryIndex)) 9408 } 9409 } else { 9410 r.WriteMapElemKey() 9411 if z.IsJSONHandle() { 9412 z.WriteStr("\"MinQueryIndex\"") 9413 } else { 9414 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 9415 } 9416 r.WriteMapElemValue() 9417 if false { 9418 } else { 9419 r.EncodeUint(uint64(x.MinQueryIndex)) 9420 } 9421 } 9422 if yyr2 || yy2arr2 { 9423 r.WriteArrayElem() 9424 if false { 9425 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 9426 z.EncExtension(x.MaxQueryTime, yyxt16) 9427 } else { 9428 r.EncodeInt(int64(x.MaxQueryTime)) 9429 } 9430 } else { 9431 r.WriteMapElemKey() 9432 if z.IsJSONHandle() { 9433 z.WriteStr("\"MaxQueryTime\"") 9434 } else { 9435 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 9436 } 9437 r.WriteMapElemValue() 9438 if false { 9439 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 9440 z.EncExtension(x.MaxQueryTime, yyxt17) 9441 } else { 9442 r.EncodeInt(int64(x.MaxQueryTime)) 9443 } 9444 } 9445 if yyr2 || yy2arr2 { 9446 r.WriteArrayElem() 9447 if false { 9448 } else { 9449 r.EncodeBool(bool(x.AllowStale)) 9450 } 9451 } else { 9452 r.WriteMapElemKey() 9453 if z.IsJSONHandle() { 9454 z.WriteStr("\"AllowStale\"") 9455 } else { 9456 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 9457 } 9458 r.WriteMapElemValue() 9459 if false { 9460 } else { 9461 r.EncodeBool(bool(x.AllowStale)) 9462 } 9463 } 9464 if yyr2 || yy2arr2 { 9465 r.WriteArrayElem() 9466 if false { 9467 } else { 9468 if z.EncBasicHandle().StringToRaw { 9469 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 9470 } else { 9471 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 9472 } 9473 } 9474 } else { 9475 r.WriteMapElemKey() 9476 if z.IsJSONHandle() { 9477 z.WriteStr("\"Prefix\"") 9478 } else { 9479 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 9480 } 9481 r.WriteMapElemValue() 9482 if false { 9483 } else { 9484 if z.EncBasicHandle().StringToRaw { 9485 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 9486 } else { 9487 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 9488 } 9489 } 9490 } 9491 if yyr2 || yy2arr2 { 9492 r.WriteArrayElem() 9493 if false { 9494 } else { 9495 if z.EncBasicHandle().StringToRaw { 9496 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 9497 } else { 9498 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 9499 } 9500 } 9501 } else { 9502 r.WriteMapElemKey() 9503 if z.IsJSONHandle() { 9504 z.WriteStr("\"AuthToken\"") 9505 } else { 9506 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 9507 } 9508 r.WriteMapElemValue() 9509 if false { 9510 } else { 9511 if z.EncBasicHandle().StringToRaw { 9512 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 9513 } else { 9514 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 9515 } 9516 } 9517 } 9518 if yyr2 || yy2arr2 { 9519 r.WriteArrayElem() 9520 if false { 9521 } else { 9522 r.EncodeBool(bool(x.Forwarded)) 9523 } 9524 } else { 9525 r.WriteMapElemKey() 9526 if z.IsJSONHandle() { 9527 z.WriteStr("\"Forwarded\"") 9528 } else { 9529 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 9530 } 9531 r.WriteMapElemValue() 9532 if false { 9533 } else { 9534 r.EncodeBool(bool(x.Forwarded)) 9535 } 9536 } 9537 if yyr2 || yy2arr2 { 9538 r.WriteArrayEnd() 9539 } else { 9540 r.WriteMapEnd() 9541 } 9542 } 9543 } 9544 } 9545 9546 func (x *CSIPluginGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 9547 var h codecSelfer100 9548 z, r := codec1978.GenHelperDecoder(d) 9549 _, _, _ = h, z, r 9550 if false { 9551 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9552 z.DecExtension(x, yyxt1) 9553 } else { 9554 yyct2 := r.ContainerType() 9555 if yyct2 == codecSelferValueTypeMap100 { 9556 yyl2 := r.ReadMapStart() 9557 if yyl2 == 0 { 9558 r.ReadMapEnd() 9559 } else { 9560 x.codecDecodeSelfFromMap(yyl2, d) 9561 } 9562 } else if yyct2 == codecSelferValueTypeArray100 { 9563 yyl2 := r.ReadArrayStart() 9564 if yyl2 == 0 { 9565 r.ReadArrayEnd() 9566 } else { 9567 x.codecDecodeSelfFromArray(yyl2, d) 9568 } 9569 } else { 9570 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9571 } 9572 } 9573 } 9574 9575 func (x *CSIPluginGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9576 var h codecSelfer100 9577 z, r := codec1978.GenHelperDecoder(d) 9578 _, _, _ = h, z, r 9579 var yyhl3 bool = l >= 0 9580 for yyj3 := 0; ; yyj3++ { 9581 if yyhl3 { 9582 if yyj3 >= l { 9583 break 9584 } 9585 } else { 9586 if r.CheckBreak() { 9587 break 9588 } 9589 } 9590 r.ReadMapElemKey() 9591 yys3 := z.StringView(r.DecodeStringAsBytes()) 9592 r.ReadMapElemValue() 9593 switch yys3 { 9594 case "ID": 9595 if r.TryDecodeAsNil() { 9596 x.ID = "" 9597 } else { 9598 x.ID = (string)(r.DecodeString()) 9599 } 9600 case "Region": 9601 if r.TryDecodeAsNil() { 9602 x.QueryOptions.Region = "" 9603 } else { 9604 x.Region = (string)(r.DecodeString()) 9605 } 9606 case "Namespace": 9607 if r.TryDecodeAsNil() { 9608 x.QueryOptions.Namespace = "" 9609 } else { 9610 x.Namespace = (string)(r.DecodeString()) 9611 } 9612 case "MinQueryIndex": 9613 if r.TryDecodeAsNil() { 9614 x.QueryOptions.MinQueryIndex = 0 9615 } else { 9616 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 9617 } 9618 case "MaxQueryTime": 9619 if r.TryDecodeAsNil() { 9620 x.QueryOptions.MaxQueryTime = 0 9621 } else { 9622 if false { 9623 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 9624 z.DecExtension(x.MaxQueryTime, yyxt9) 9625 } else { 9626 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 9627 } 9628 } 9629 case "AllowStale": 9630 if r.TryDecodeAsNil() { 9631 x.QueryOptions.AllowStale = false 9632 } else { 9633 x.AllowStale = (bool)(r.DecodeBool()) 9634 } 9635 case "Prefix": 9636 if r.TryDecodeAsNil() { 9637 x.QueryOptions.Prefix = "" 9638 } else { 9639 x.Prefix = (string)(r.DecodeString()) 9640 } 9641 case "AuthToken": 9642 if r.TryDecodeAsNil() { 9643 x.QueryOptions.AuthToken = "" 9644 } else { 9645 x.AuthToken = (string)(r.DecodeString()) 9646 } 9647 case "Forwarded": 9648 if r.TryDecodeAsNil() { 9649 x.QueryOptions.InternalRpcInfo.Forwarded = false 9650 } else { 9651 x.Forwarded = (bool)(r.DecodeBool()) 9652 } 9653 default: 9654 z.DecStructFieldNotFound(-1, yys3) 9655 } // end switch yys3 9656 } // end for yyj3 9657 r.ReadMapEnd() 9658 } 9659 9660 func (x *CSIPluginGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 9661 var h codecSelfer100 9662 z, r := codec1978.GenHelperDecoder(d) 9663 _, _, _ = h, z, r 9664 var yyj14 int 9665 var yyb14 bool 9666 var yyhl14 bool = l >= 0 9667 yyj14++ 9668 if yyhl14 { 9669 yyb14 = yyj14 > l 9670 } else { 9671 yyb14 = r.CheckBreak() 9672 } 9673 if yyb14 { 9674 r.ReadArrayEnd() 9675 return 9676 } 9677 r.ReadArrayElem() 9678 if r.TryDecodeAsNil() { 9679 x.ID = "" 9680 } else { 9681 x.ID = (string)(r.DecodeString()) 9682 } 9683 yyj14++ 9684 if yyhl14 { 9685 yyb14 = yyj14 > l 9686 } else { 9687 yyb14 = r.CheckBreak() 9688 } 9689 if yyb14 { 9690 r.ReadArrayEnd() 9691 return 9692 } 9693 r.ReadArrayElem() 9694 if r.TryDecodeAsNil() { 9695 x.QueryOptions.Region = "" 9696 } else { 9697 x.Region = (string)(r.DecodeString()) 9698 } 9699 yyj14++ 9700 if yyhl14 { 9701 yyb14 = yyj14 > l 9702 } else { 9703 yyb14 = r.CheckBreak() 9704 } 9705 if yyb14 { 9706 r.ReadArrayEnd() 9707 return 9708 } 9709 r.ReadArrayElem() 9710 if r.TryDecodeAsNil() { 9711 x.QueryOptions.Namespace = "" 9712 } else { 9713 x.Namespace = (string)(r.DecodeString()) 9714 } 9715 yyj14++ 9716 if yyhl14 { 9717 yyb14 = yyj14 > l 9718 } else { 9719 yyb14 = r.CheckBreak() 9720 } 9721 if yyb14 { 9722 r.ReadArrayEnd() 9723 return 9724 } 9725 r.ReadArrayElem() 9726 if r.TryDecodeAsNil() { 9727 x.QueryOptions.MinQueryIndex = 0 9728 } else { 9729 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 9730 } 9731 yyj14++ 9732 if yyhl14 { 9733 yyb14 = yyj14 > l 9734 } else { 9735 yyb14 = r.CheckBreak() 9736 } 9737 if yyb14 { 9738 r.ReadArrayEnd() 9739 return 9740 } 9741 r.ReadArrayElem() 9742 if r.TryDecodeAsNil() { 9743 x.QueryOptions.MaxQueryTime = 0 9744 } else { 9745 if false { 9746 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 9747 z.DecExtension(x.MaxQueryTime, yyxt20) 9748 } else { 9749 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 9750 } 9751 } 9752 yyj14++ 9753 if yyhl14 { 9754 yyb14 = yyj14 > l 9755 } else { 9756 yyb14 = r.CheckBreak() 9757 } 9758 if yyb14 { 9759 r.ReadArrayEnd() 9760 return 9761 } 9762 r.ReadArrayElem() 9763 if r.TryDecodeAsNil() { 9764 x.QueryOptions.AllowStale = false 9765 } else { 9766 x.AllowStale = (bool)(r.DecodeBool()) 9767 } 9768 yyj14++ 9769 if yyhl14 { 9770 yyb14 = yyj14 > l 9771 } else { 9772 yyb14 = r.CheckBreak() 9773 } 9774 if yyb14 { 9775 r.ReadArrayEnd() 9776 return 9777 } 9778 r.ReadArrayElem() 9779 if r.TryDecodeAsNil() { 9780 x.QueryOptions.Prefix = "" 9781 } else { 9782 x.Prefix = (string)(r.DecodeString()) 9783 } 9784 yyj14++ 9785 if yyhl14 { 9786 yyb14 = yyj14 > l 9787 } else { 9788 yyb14 = r.CheckBreak() 9789 } 9790 if yyb14 { 9791 r.ReadArrayEnd() 9792 return 9793 } 9794 r.ReadArrayElem() 9795 if r.TryDecodeAsNil() { 9796 x.QueryOptions.AuthToken = "" 9797 } else { 9798 x.AuthToken = (string)(r.DecodeString()) 9799 } 9800 yyj14++ 9801 if yyhl14 { 9802 yyb14 = yyj14 > l 9803 } else { 9804 yyb14 = r.CheckBreak() 9805 } 9806 if yyb14 { 9807 r.ReadArrayEnd() 9808 return 9809 } 9810 r.ReadArrayElem() 9811 if r.TryDecodeAsNil() { 9812 x.QueryOptions.InternalRpcInfo.Forwarded = false 9813 } else { 9814 x.Forwarded = (bool)(r.DecodeBool()) 9815 } 9816 for { 9817 yyj14++ 9818 if yyhl14 { 9819 yyb14 = yyj14 > l 9820 } else { 9821 yyb14 = r.CheckBreak() 9822 } 9823 if yyb14 { 9824 break 9825 } 9826 r.ReadArrayElem() 9827 z.DecStructFieldNotFound(yyj14-1, "") 9828 } 9829 r.ReadArrayEnd() 9830 } 9831 9832 func (x *CSIPluginGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 9833 var h codecSelfer100 9834 z, r := codec1978.GenHelperEncoder(e) 9835 _, _, _ = h, z, r 9836 if x == nil { 9837 r.EncodeNil() 9838 } else { 9839 if false { 9840 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9841 z.EncExtension(x, yyxt1) 9842 } else { 9843 yysep2 := !z.EncBinary() 9844 yy2arr2 := z.EncBasicHandle().StructToArray 9845 _, _ = yysep2, yy2arr2 9846 const yyr2 bool = false // struct tag has 'toArray' 9847 if yyr2 || yy2arr2 { 9848 r.WriteArrayStart(4) 9849 } else { 9850 r.WriteMapStart(4) 9851 } 9852 var yyn3 bool 9853 if x.Plugin == nil { 9854 yyn3 = true 9855 goto LABEL3 9856 } 9857 LABEL3: 9858 if yyr2 || yy2arr2 { 9859 if yyn3 { 9860 r.WriteArrayElem() 9861 r.EncodeNil() 9862 } else { 9863 r.WriteArrayElem() 9864 if x.Plugin == nil { 9865 r.EncodeNil() 9866 } else { 9867 x.Plugin.CodecEncodeSelf(e) 9868 } 9869 } 9870 } else { 9871 r.WriteMapElemKey() 9872 if z.IsJSONHandle() { 9873 z.WriteStr("\"Plugin\"") 9874 } else { 9875 r.EncodeStringEnc(codecSelferCcUTF8100, `Plugin`) 9876 } 9877 r.WriteMapElemValue() 9878 if yyn3 { 9879 r.EncodeNil() 9880 } else { 9881 if x.Plugin == nil { 9882 r.EncodeNil() 9883 } else { 9884 x.Plugin.CodecEncodeSelf(e) 9885 } 9886 } 9887 } 9888 if yyr2 || yy2arr2 { 9889 r.WriteArrayElem() 9890 if false { 9891 } else { 9892 r.EncodeUint(uint64(x.Index)) 9893 } 9894 } else { 9895 r.WriteMapElemKey() 9896 if z.IsJSONHandle() { 9897 z.WriteStr("\"Index\"") 9898 } else { 9899 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 9900 } 9901 r.WriteMapElemValue() 9902 if false { 9903 } else { 9904 r.EncodeUint(uint64(x.Index)) 9905 } 9906 } 9907 if yyr2 || yy2arr2 { 9908 r.WriteArrayElem() 9909 if false { 9910 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 9911 z.EncExtension(x.LastContact, yyxt10) 9912 } else { 9913 r.EncodeInt(int64(x.LastContact)) 9914 } 9915 } else { 9916 r.WriteMapElemKey() 9917 if z.IsJSONHandle() { 9918 z.WriteStr("\"LastContact\"") 9919 } else { 9920 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 9921 } 9922 r.WriteMapElemValue() 9923 if false { 9924 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 9925 z.EncExtension(x.LastContact, yyxt11) 9926 } else { 9927 r.EncodeInt(int64(x.LastContact)) 9928 } 9929 } 9930 if yyr2 || yy2arr2 { 9931 r.WriteArrayElem() 9932 if false { 9933 } else { 9934 r.EncodeBool(bool(x.KnownLeader)) 9935 } 9936 } else { 9937 r.WriteMapElemKey() 9938 if z.IsJSONHandle() { 9939 z.WriteStr("\"KnownLeader\"") 9940 } else { 9941 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 9942 } 9943 r.WriteMapElemValue() 9944 if false { 9945 } else { 9946 r.EncodeBool(bool(x.KnownLeader)) 9947 } 9948 } 9949 if yyr2 || yy2arr2 { 9950 r.WriteArrayEnd() 9951 } else { 9952 r.WriteMapEnd() 9953 } 9954 } 9955 } 9956 } 9957 9958 func (x *CSIPluginGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 9959 var h codecSelfer100 9960 z, r := codec1978.GenHelperDecoder(d) 9961 _, _, _ = h, z, r 9962 if false { 9963 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 9964 z.DecExtension(x, yyxt1) 9965 } else { 9966 yyct2 := r.ContainerType() 9967 if yyct2 == codecSelferValueTypeMap100 { 9968 yyl2 := r.ReadMapStart() 9969 if yyl2 == 0 { 9970 r.ReadMapEnd() 9971 } else { 9972 x.codecDecodeSelfFromMap(yyl2, d) 9973 } 9974 } else if yyct2 == codecSelferValueTypeArray100 { 9975 yyl2 := r.ReadArrayStart() 9976 if yyl2 == 0 { 9977 r.ReadArrayEnd() 9978 } else { 9979 x.codecDecodeSelfFromArray(yyl2, d) 9980 } 9981 } else { 9982 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 9983 } 9984 } 9985 } 9986 9987 func (x *CSIPluginGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 9988 var h codecSelfer100 9989 z, r := codec1978.GenHelperDecoder(d) 9990 _, _, _ = h, z, r 9991 var yyhl3 bool = l >= 0 9992 for yyj3 := 0; ; yyj3++ { 9993 if yyhl3 { 9994 if yyj3 >= l { 9995 break 9996 } 9997 } else { 9998 if r.CheckBreak() { 9999 break 10000 } 10001 } 10002 r.ReadMapElemKey() 10003 yys3 := z.StringView(r.DecodeStringAsBytes()) 10004 r.ReadMapElemValue() 10005 switch yys3 { 10006 case "Plugin": 10007 if r.TryDecodeAsNil() { 10008 if true && x.Plugin != nil { 10009 x.Plugin = nil 10010 } 10011 } else { 10012 if x.Plugin == nil { 10013 x.Plugin = new(CSIPlugin) 10014 } 10015 10016 x.Plugin.CodecDecodeSelf(d) 10017 } 10018 case "Index": 10019 if r.TryDecodeAsNil() { 10020 x.QueryMeta.Index = 0 10021 } else { 10022 x.Index = (uint64)(r.DecodeUint64()) 10023 } 10024 case "LastContact": 10025 if r.TryDecodeAsNil() { 10026 x.QueryMeta.LastContact = 0 10027 } else { 10028 if false { 10029 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 10030 z.DecExtension(x.LastContact, yyxt7) 10031 } else { 10032 x.LastContact = (time.Duration)(r.DecodeInt64()) 10033 } 10034 } 10035 case "KnownLeader": 10036 if r.TryDecodeAsNil() { 10037 x.QueryMeta.KnownLeader = false 10038 } else { 10039 x.KnownLeader = (bool)(r.DecodeBool()) 10040 } 10041 default: 10042 z.DecStructFieldNotFound(-1, yys3) 10043 } // end switch yys3 10044 } // end for yyj3 10045 r.ReadMapEnd() 10046 } 10047 10048 func (x *CSIPluginGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 10049 var h codecSelfer100 10050 z, r := codec1978.GenHelperDecoder(d) 10051 _, _, _ = h, z, r 10052 var yyj9 int 10053 var yyb9 bool 10054 var yyhl9 bool = l >= 0 10055 yyj9++ 10056 if yyhl9 { 10057 yyb9 = yyj9 > l 10058 } else { 10059 yyb9 = r.CheckBreak() 10060 } 10061 if yyb9 { 10062 r.ReadArrayEnd() 10063 return 10064 } 10065 r.ReadArrayElem() 10066 if r.TryDecodeAsNil() { 10067 if true && x.Plugin != nil { 10068 x.Plugin = nil 10069 } 10070 } else { 10071 if x.Plugin == nil { 10072 x.Plugin = new(CSIPlugin) 10073 } 10074 10075 x.Plugin.CodecDecodeSelf(d) 10076 } 10077 yyj9++ 10078 if yyhl9 { 10079 yyb9 = yyj9 > l 10080 } else { 10081 yyb9 = r.CheckBreak() 10082 } 10083 if yyb9 { 10084 r.ReadArrayEnd() 10085 return 10086 } 10087 r.ReadArrayElem() 10088 if r.TryDecodeAsNil() { 10089 x.QueryMeta.Index = 0 10090 } else { 10091 x.Index = (uint64)(r.DecodeUint64()) 10092 } 10093 yyj9++ 10094 if yyhl9 { 10095 yyb9 = yyj9 > l 10096 } else { 10097 yyb9 = r.CheckBreak() 10098 } 10099 if yyb9 { 10100 r.ReadArrayEnd() 10101 return 10102 } 10103 r.ReadArrayElem() 10104 if r.TryDecodeAsNil() { 10105 x.QueryMeta.LastContact = 0 10106 } else { 10107 if false { 10108 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 10109 z.DecExtension(x.LastContact, yyxt13) 10110 } else { 10111 x.LastContact = (time.Duration)(r.DecodeInt64()) 10112 } 10113 } 10114 yyj9++ 10115 if yyhl9 { 10116 yyb9 = yyj9 > l 10117 } else { 10118 yyb9 = r.CheckBreak() 10119 } 10120 if yyb9 { 10121 r.ReadArrayEnd() 10122 return 10123 } 10124 r.ReadArrayElem() 10125 if r.TryDecodeAsNil() { 10126 x.QueryMeta.KnownLeader = false 10127 } else { 10128 x.KnownLeader = (bool)(r.DecodeBool()) 10129 } 10130 for { 10131 yyj9++ 10132 if yyhl9 { 10133 yyb9 = yyj9 > l 10134 } else { 10135 yyb9 = r.CheckBreak() 10136 } 10137 if yyb9 { 10138 break 10139 } 10140 r.ReadArrayElem() 10141 z.DecStructFieldNotFound(yyj9-1, "") 10142 } 10143 r.ReadArrayEnd() 10144 } 10145 10146 func (x *CSIPluginDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 10147 var h codecSelfer100 10148 z, r := codec1978.GenHelperEncoder(e) 10149 _, _, _ = h, z, r 10150 if x == nil { 10151 r.EncodeNil() 10152 } else { 10153 if false { 10154 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10155 z.EncExtension(x, yyxt1) 10156 } else { 10157 yysep2 := !z.EncBinary() 10158 yy2arr2 := z.EncBasicHandle().StructToArray 10159 _, _ = yysep2, yy2arr2 10160 const yyr2 bool = false // struct tag has 'toArray' 10161 if yyr2 || yy2arr2 { 10162 r.WriteArrayStart(9) 10163 } else { 10164 r.WriteMapStart(9) 10165 } 10166 if yyr2 || yy2arr2 { 10167 r.WriteArrayElem() 10168 if false { 10169 } else { 10170 if z.EncBasicHandle().StringToRaw { 10171 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 10172 } else { 10173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 10174 } 10175 } 10176 } else { 10177 r.WriteMapElemKey() 10178 if z.IsJSONHandle() { 10179 z.WriteStr("\"ID\"") 10180 } else { 10181 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 10182 } 10183 r.WriteMapElemValue() 10184 if false { 10185 } else { 10186 if z.EncBasicHandle().StringToRaw { 10187 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 10188 } else { 10189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 10190 } 10191 } 10192 } 10193 if yyr2 || yy2arr2 { 10194 r.WriteArrayElem() 10195 if false { 10196 } else { 10197 if z.EncBasicHandle().StringToRaw { 10198 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 10199 } else { 10200 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 10201 } 10202 } 10203 } else { 10204 r.WriteMapElemKey() 10205 if z.IsJSONHandle() { 10206 z.WriteStr("\"Region\"") 10207 } else { 10208 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 10209 } 10210 r.WriteMapElemValue() 10211 if false { 10212 } else { 10213 if z.EncBasicHandle().StringToRaw { 10214 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 10215 } else { 10216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 10217 } 10218 } 10219 } 10220 if yyr2 || yy2arr2 { 10221 r.WriteArrayElem() 10222 if false { 10223 } else { 10224 if z.EncBasicHandle().StringToRaw { 10225 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 10226 } else { 10227 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 10228 } 10229 } 10230 } else { 10231 r.WriteMapElemKey() 10232 if z.IsJSONHandle() { 10233 z.WriteStr("\"Namespace\"") 10234 } else { 10235 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 10236 } 10237 r.WriteMapElemValue() 10238 if false { 10239 } else { 10240 if z.EncBasicHandle().StringToRaw { 10241 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 10242 } else { 10243 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 10244 } 10245 } 10246 } 10247 if yyr2 || yy2arr2 { 10248 r.WriteArrayElem() 10249 if false { 10250 } else { 10251 r.EncodeUint(uint64(x.MinQueryIndex)) 10252 } 10253 } else { 10254 r.WriteMapElemKey() 10255 if z.IsJSONHandle() { 10256 z.WriteStr("\"MinQueryIndex\"") 10257 } else { 10258 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 10259 } 10260 r.WriteMapElemValue() 10261 if false { 10262 } else { 10263 r.EncodeUint(uint64(x.MinQueryIndex)) 10264 } 10265 } 10266 if yyr2 || yy2arr2 { 10267 r.WriteArrayElem() 10268 if false { 10269 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 10270 z.EncExtension(x.MaxQueryTime, yyxt16) 10271 } else { 10272 r.EncodeInt(int64(x.MaxQueryTime)) 10273 } 10274 } else { 10275 r.WriteMapElemKey() 10276 if z.IsJSONHandle() { 10277 z.WriteStr("\"MaxQueryTime\"") 10278 } else { 10279 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 10280 } 10281 r.WriteMapElemValue() 10282 if false { 10283 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 10284 z.EncExtension(x.MaxQueryTime, yyxt17) 10285 } else { 10286 r.EncodeInt(int64(x.MaxQueryTime)) 10287 } 10288 } 10289 if yyr2 || yy2arr2 { 10290 r.WriteArrayElem() 10291 if false { 10292 } else { 10293 r.EncodeBool(bool(x.AllowStale)) 10294 } 10295 } else { 10296 r.WriteMapElemKey() 10297 if z.IsJSONHandle() { 10298 z.WriteStr("\"AllowStale\"") 10299 } else { 10300 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 10301 } 10302 r.WriteMapElemValue() 10303 if false { 10304 } else { 10305 r.EncodeBool(bool(x.AllowStale)) 10306 } 10307 } 10308 if yyr2 || yy2arr2 { 10309 r.WriteArrayElem() 10310 if false { 10311 } else { 10312 if z.EncBasicHandle().StringToRaw { 10313 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 10314 } else { 10315 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 10316 } 10317 } 10318 } else { 10319 r.WriteMapElemKey() 10320 if z.IsJSONHandle() { 10321 z.WriteStr("\"Prefix\"") 10322 } else { 10323 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 10324 } 10325 r.WriteMapElemValue() 10326 if false { 10327 } else { 10328 if z.EncBasicHandle().StringToRaw { 10329 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 10330 } else { 10331 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 10332 } 10333 } 10334 } 10335 if yyr2 || yy2arr2 { 10336 r.WriteArrayElem() 10337 if false { 10338 } else { 10339 if z.EncBasicHandle().StringToRaw { 10340 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 10341 } else { 10342 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 10343 } 10344 } 10345 } else { 10346 r.WriteMapElemKey() 10347 if z.IsJSONHandle() { 10348 z.WriteStr("\"AuthToken\"") 10349 } else { 10350 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 10351 } 10352 r.WriteMapElemValue() 10353 if false { 10354 } else { 10355 if z.EncBasicHandle().StringToRaw { 10356 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 10357 } else { 10358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 10359 } 10360 } 10361 } 10362 if yyr2 || yy2arr2 { 10363 r.WriteArrayElem() 10364 if false { 10365 } else { 10366 r.EncodeBool(bool(x.Forwarded)) 10367 } 10368 } else { 10369 r.WriteMapElemKey() 10370 if z.IsJSONHandle() { 10371 z.WriteStr("\"Forwarded\"") 10372 } else { 10373 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 10374 } 10375 r.WriteMapElemValue() 10376 if false { 10377 } else { 10378 r.EncodeBool(bool(x.Forwarded)) 10379 } 10380 } 10381 if yyr2 || yy2arr2 { 10382 r.WriteArrayEnd() 10383 } else { 10384 r.WriteMapEnd() 10385 } 10386 } 10387 } 10388 } 10389 10390 func (x *CSIPluginDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 10391 var h codecSelfer100 10392 z, r := codec1978.GenHelperDecoder(d) 10393 _, _, _ = h, z, r 10394 if false { 10395 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10396 z.DecExtension(x, yyxt1) 10397 } else { 10398 yyct2 := r.ContainerType() 10399 if yyct2 == codecSelferValueTypeMap100 { 10400 yyl2 := r.ReadMapStart() 10401 if yyl2 == 0 { 10402 r.ReadMapEnd() 10403 } else { 10404 x.codecDecodeSelfFromMap(yyl2, d) 10405 } 10406 } else if yyct2 == codecSelferValueTypeArray100 { 10407 yyl2 := r.ReadArrayStart() 10408 if yyl2 == 0 { 10409 r.ReadArrayEnd() 10410 } else { 10411 x.codecDecodeSelfFromArray(yyl2, d) 10412 } 10413 } else { 10414 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 10415 } 10416 } 10417 } 10418 10419 func (x *CSIPluginDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 10420 var h codecSelfer100 10421 z, r := codec1978.GenHelperDecoder(d) 10422 _, _, _ = h, z, r 10423 var yyhl3 bool = l >= 0 10424 for yyj3 := 0; ; yyj3++ { 10425 if yyhl3 { 10426 if yyj3 >= l { 10427 break 10428 } 10429 } else { 10430 if r.CheckBreak() { 10431 break 10432 } 10433 } 10434 r.ReadMapElemKey() 10435 yys3 := z.StringView(r.DecodeStringAsBytes()) 10436 r.ReadMapElemValue() 10437 switch yys3 { 10438 case "ID": 10439 if r.TryDecodeAsNil() { 10440 x.ID = "" 10441 } else { 10442 x.ID = (string)(r.DecodeString()) 10443 } 10444 case "Region": 10445 if r.TryDecodeAsNil() { 10446 x.QueryOptions.Region = "" 10447 } else { 10448 x.Region = (string)(r.DecodeString()) 10449 } 10450 case "Namespace": 10451 if r.TryDecodeAsNil() { 10452 x.QueryOptions.Namespace = "" 10453 } else { 10454 x.Namespace = (string)(r.DecodeString()) 10455 } 10456 case "MinQueryIndex": 10457 if r.TryDecodeAsNil() { 10458 x.QueryOptions.MinQueryIndex = 0 10459 } else { 10460 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 10461 } 10462 case "MaxQueryTime": 10463 if r.TryDecodeAsNil() { 10464 x.QueryOptions.MaxQueryTime = 0 10465 } else { 10466 if false { 10467 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 10468 z.DecExtension(x.MaxQueryTime, yyxt9) 10469 } else { 10470 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 10471 } 10472 } 10473 case "AllowStale": 10474 if r.TryDecodeAsNil() { 10475 x.QueryOptions.AllowStale = false 10476 } else { 10477 x.AllowStale = (bool)(r.DecodeBool()) 10478 } 10479 case "Prefix": 10480 if r.TryDecodeAsNil() { 10481 x.QueryOptions.Prefix = "" 10482 } else { 10483 x.Prefix = (string)(r.DecodeString()) 10484 } 10485 case "AuthToken": 10486 if r.TryDecodeAsNil() { 10487 x.QueryOptions.AuthToken = "" 10488 } else { 10489 x.AuthToken = (string)(r.DecodeString()) 10490 } 10491 case "Forwarded": 10492 if r.TryDecodeAsNil() { 10493 x.QueryOptions.InternalRpcInfo.Forwarded = false 10494 } else { 10495 x.Forwarded = (bool)(r.DecodeBool()) 10496 } 10497 default: 10498 z.DecStructFieldNotFound(-1, yys3) 10499 } // end switch yys3 10500 } // end for yyj3 10501 r.ReadMapEnd() 10502 } 10503 10504 func (x *CSIPluginDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 10505 var h codecSelfer100 10506 z, r := codec1978.GenHelperDecoder(d) 10507 _, _, _ = h, z, r 10508 var yyj14 int 10509 var yyb14 bool 10510 var yyhl14 bool = l >= 0 10511 yyj14++ 10512 if yyhl14 { 10513 yyb14 = yyj14 > l 10514 } else { 10515 yyb14 = r.CheckBreak() 10516 } 10517 if yyb14 { 10518 r.ReadArrayEnd() 10519 return 10520 } 10521 r.ReadArrayElem() 10522 if r.TryDecodeAsNil() { 10523 x.ID = "" 10524 } else { 10525 x.ID = (string)(r.DecodeString()) 10526 } 10527 yyj14++ 10528 if yyhl14 { 10529 yyb14 = yyj14 > l 10530 } else { 10531 yyb14 = r.CheckBreak() 10532 } 10533 if yyb14 { 10534 r.ReadArrayEnd() 10535 return 10536 } 10537 r.ReadArrayElem() 10538 if r.TryDecodeAsNil() { 10539 x.QueryOptions.Region = "" 10540 } else { 10541 x.Region = (string)(r.DecodeString()) 10542 } 10543 yyj14++ 10544 if yyhl14 { 10545 yyb14 = yyj14 > l 10546 } else { 10547 yyb14 = r.CheckBreak() 10548 } 10549 if yyb14 { 10550 r.ReadArrayEnd() 10551 return 10552 } 10553 r.ReadArrayElem() 10554 if r.TryDecodeAsNil() { 10555 x.QueryOptions.Namespace = "" 10556 } else { 10557 x.Namespace = (string)(r.DecodeString()) 10558 } 10559 yyj14++ 10560 if yyhl14 { 10561 yyb14 = yyj14 > l 10562 } else { 10563 yyb14 = r.CheckBreak() 10564 } 10565 if yyb14 { 10566 r.ReadArrayEnd() 10567 return 10568 } 10569 r.ReadArrayElem() 10570 if r.TryDecodeAsNil() { 10571 x.QueryOptions.MinQueryIndex = 0 10572 } else { 10573 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 10574 } 10575 yyj14++ 10576 if yyhl14 { 10577 yyb14 = yyj14 > l 10578 } else { 10579 yyb14 = r.CheckBreak() 10580 } 10581 if yyb14 { 10582 r.ReadArrayEnd() 10583 return 10584 } 10585 r.ReadArrayElem() 10586 if r.TryDecodeAsNil() { 10587 x.QueryOptions.MaxQueryTime = 0 10588 } else { 10589 if false { 10590 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 10591 z.DecExtension(x.MaxQueryTime, yyxt20) 10592 } else { 10593 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 10594 } 10595 } 10596 yyj14++ 10597 if yyhl14 { 10598 yyb14 = yyj14 > l 10599 } else { 10600 yyb14 = r.CheckBreak() 10601 } 10602 if yyb14 { 10603 r.ReadArrayEnd() 10604 return 10605 } 10606 r.ReadArrayElem() 10607 if r.TryDecodeAsNil() { 10608 x.QueryOptions.AllowStale = false 10609 } else { 10610 x.AllowStale = (bool)(r.DecodeBool()) 10611 } 10612 yyj14++ 10613 if yyhl14 { 10614 yyb14 = yyj14 > l 10615 } else { 10616 yyb14 = r.CheckBreak() 10617 } 10618 if yyb14 { 10619 r.ReadArrayEnd() 10620 return 10621 } 10622 r.ReadArrayElem() 10623 if r.TryDecodeAsNil() { 10624 x.QueryOptions.Prefix = "" 10625 } else { 10626 x.Prefix = (string)(r.DecodeString()) 10627 } 10628 yyj14++ 10629 if yyhl14 { 10630 yyb14 = yyj14 > l 10631 } else { 10632 yyb14 = r.CheckBreak() 10633 } 10634 if yyb14 { 10635 r.ReadArrayEnd() 10636 return 10637 } 10638 r.ReadArrayElem() 10639 if r.TryDecodeAsNil() { 10640 x.QueryOptions.AuthToken = "" 10641 } else { 10642 x.AuthToken = (string)(r.DecodeString()) 10643 } 10644 yyj14++ 10645 if yyhl14 { 10646 yyb14 = yyj14 > l 10647 } else { 10648 yyb14 = r.CheckBreak() 10649 } 10650 if yyb14 { 10651 r.ReadArrayEnd() 10652 return 10653 } 10654 r.ReadArrayElem() 10655 if r.TryDecodeAsNil() { 10656 x.QueryOptions.InternalRpcInfo.Forwarded = false 10657 } else { 10658 x.Forwarded = (bool)(r.DecodeBool()) 10659 } 10660 for { 10661 yyj14++ 10662 if yyhl14 { 10663 yyb14 = yyj14 > l 10664 } else { 10665 yyb14 = r.CheckBreak() 10666 } 10667 if yyb14 { 10668 break 10669 } 10670 r.ReadArrayElem() 10671 z.DecStructFieldNotFound(yyj14-1, "") 10672 } 10673 r.ReadArrayEnd() 10674 } 10675 10676 func (x *CSIPluginDeleteResponse) CodecEncodeSelf(e *codec1978.Encoder) { 10677 var h codecSelfer100 10678 z, r := codec1978.GenHelperEncoder(e) 10679 _, _, _ = h, z, r 10680 if x == nil { 10681 r.EncodeNil() 10682 } else { 10683 if false { 10684 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10685 z.EncExtension(x, yyxt1) 10686 } else { 10687 yysep2 := !z.EncBinary() 10688 yy2arr2 := z.EncBasicHandle().StructToArray 10689 _, _ = yysep2, yy2arr2 10690 const yyr2 bool = false // struct tag has 'toArray' 10691 if yyr2 || yy2arr2 { 10692 r.WriteArrayStart(3) 10693 } else { 10694 r.WriteMapStart(3) 10695 } 10696 if yyr2 || yy2arr2 { 10697 r.WriteArrayElem() 10698 if false { 10699 } else { 10700 r.EncodeUint(uint64(x.Index)) 10701 } 10702 } else { 10703 r.WriteMapElemKey() 10704 if z.IsJSONHandle() { 10705 z.WriteStr("\"Index\"") 10706 } else { 10707 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 10708 } 10709 r.WriteMapElemValue() 10710 if false { 10711 } else { 10712 r.EncodeUint(uint64(x.Index)) 10713 } 10714 } 10715 if yyr2 || yy2arr2 { 10716 r.WriteArrayElem() 10717 if false { 10718 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 10719 z.EncExtension(x.LastContact, yyxt7) 10720 } else { 10721 r.EncodeInt(int64(x.LastContact)) 10722 } 10723 } else { 10724 r.WriteMapElemKey() 10725 if z.IsJSONHandle() { 10726 z.WriteStr("\"LastContact\"") 10727 } else { 10728 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 10729 } 10730 r.WriteMapElemValue() 10731 if false { 10732 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 10733 z.EncExtension(x.LastContact, yyxt8) 10734 } else { 10735 r.EncodeInt(int64(x.LastContact)) 10736 } 10737 } 10738 if yyr2 || yy2arr2 { 10739 r.WriteArrayElem() 10740 if false { 10741 } else { 10742 r.EncodeBool(bool(x.KnownLeader)) 10743 } 10744 } else { 10745 r.WriteMapElemKey() 10746 if z.IsJSONHandle() { 10747 z.WriteStr("\"KnownLeader\"") 10748 } else { 10749 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 10750 } 10751 r.WriteMapElemValue() 10752 if false { 10753 } else { 10754 r.EncodeBool(bool(x.KnownLeader)) 10755 } 10756 } 10757 if yyr2 || yy2arr2 { 10758 r.WriteArrayEnd() 10759 } else { 10760 r.WriteMapEnd() 10761 } 10762 } 10763 } 10764 } 10765 10766 func (x *CSIPluginDeleteResponse) CodecDecodeSelf(d *codec1978.Decoder) { 10767 var h codecSelfer100 10768 z, r := codec1978.GenHelperDecoder(d) 10769 _, _, _ = h, z, r 10770 if false { 10771 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10772 z.DecExtension(x, yyxt1) 10773 } else { 10774 yyct2 := r.ContainerType() 10775 if yyct2 == codecSelferValueTypeMap100 { 10776 yyl2 := r.ReadMapStart() 10777 if yyl2 == 0 { 10778 r.ReadMapEnd() 10779 } else { 10780 x.codecDecodeSelfFromMap(yyl2, d) 10781 } 10782 } else if yyct2 == codecSelferValueTypeArray100 { 10783 yyl2 := r.ReadArrayStart() 10784 if yyl2 == 0 { 10785 r.ReadArrayEnd() 10786 } else { 10787 x.codecDecodeSelfFromArray(yyl2, d) 10788 } 10789 } else { 10790 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 10791 } 10792 } 10793 } 10794 10795 func (x *CSIPluginDeleteResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 10796 var h codecSelfer100 10797 z, r := codec1978.GenHelperDecoder(d) 10798 _, _, _ = h, z, r 10799 var yyhl3 bool = l >= 0 10800 for yyj3 := 0; ; yyj3++ { 10801 if yyhl3 { 10802 if yyj3 >= l { 10803 break 10804 } 10805 } else { 10806 if r.CheckBreak() { 10807 break 10808 } 10809 } 10810 r.ReadMapElemKey() 10811 yys3 := z.StringView(r.DecodeStringAsBytes()) 10812 r.ReadMapElemValue() 10813 switch yys3 { 10814 case "Index": 10815 if r.TryDecodeAsNil() { 10816 x.QueryMeta.Index = 0 10817 } else { 10818 x.Index = (uint64)(r.DecodeUint64()) 10819 } 10820 case "LastContact": 10821 if r.TryDecodeAsNil() { 10822 x.QueryMeta.LastContact = 0 10823 } else { 10824 if false { 10825 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 10826 z.DecExtension(x.LastContact, yyxt6) 10827 } else { 10828 x.LastContact = (time.Duration)(r.DecodeInt64()) 10829 } 10830 } 10831 case "KnownLeader": 10832 if r.TryDecodeAsNil() { 10833 x.QueryMeta.KnownLeader = false 10834 } else { 10835 x.KnownLeader = (bool)(r.DecodeBool()) 10836 } 10837 default: 10838 z.DecStructFieldNotFound(-1, yys3) 10839 } // end switch yys3 10840 } // end for yyj3 10841 r.ReadMapEnd() 10842 } 10843 10844 func (x *CSIPluginDeleteResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 10845 var h codecSelfer100 10846 z, r := codec1978.GenHelperDecoder(d) 10847 _, _, _ = h, z, r 10848 var yyj8 int 10849 var yyb8 bool 10850 var yyhl8 bool = l >= 0 10851 yyj8++ 10852 if yyhl8 { 10853 yyb8 = yyj8 > l 10854 } else { 10855 yyb8 = r.CheckBreak() 10856 } 10857 if yyb8 { 10858 r.ReadArrayEnd() 10859 return 10860 } 10861 r.ReadArrayElem() 10862 if r.TryDecodeAsNil() { 10863 x.QueryMeta.Index = 0 10864 } else { 10865 x.Index = (uint64)(r.DecodeUint64()) 10866 } 10867 yyj8++ 10868 if yyhl8 { 10869 yyb8 = yyj8 > l 10870 } else { 10871 yyb8 = r.CheckBreak() 10872 } 10873 if yyb8 { 10874 r.ReadArrayEnd() 10875 return 10876 } 10877 r.ReadArrayElem() 10878 if r.TryDecodeAsNil() { 10879 x.QueryMeta.LastContact = 0 10880 } else { 10881 if false { 10882 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 10883 z.DecExtension(x.LastContact, yyxt11) 10884 } else { 10885 x.LastContact = (time.Duration)(r.DecodeInt64()) 10886 } 10887 } 10888 yyj8++ 10889 if yyhl8 { 10890 yyb8 = yyj8 > l 10891 } else { 10892 yyb8 = r.CheckBreak() 10893 } 10894 if yyb8 { 10895 r.ReadArrayEnd() 10896 return 10897 } 10898 r.ReadArrayElem() 10899 if r.TryDecodeAsNil() { 10900 x.QueryMeta.KnownLeader = false 10901 } else { 10902 x.KnownLeader = (bool)(r.DecodeBool()) 10903 } 10904 for { 10905 yyj8++ 10906 if yyhl8 { 10907 yyb8 = yyj8 > l 10908 } else { 10909 yyb8 = r.CheckBreak() 10910 } 10911 if yyb8 { 10912 break 10913 } 10914 r.ReadArrayElem() 10915 z.DecStructFieldNotFound(yyj8-1, "") 10916 } 10917 r.ReadArrayEnd() 10918 } 10919 10920 func (x *DeviceAccounter) CodecEncodeSelf(e *codec1978.Encoder) { 10921 var h codecSelfer100 10922 z, r := codec1978.GenHelperEncoder(e) 10923 _, _, _ = h, z, r 10924 if x == nil { 10925 r.EncodeNil() 10926 } else { 10927 if false { 10928 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10929 z.EncExtension(x, yyxt1) 10930 } else { 10931 yysep2 := !z.EncBinary() 10932 yy2arr2 := z.EncBasicHandle().StructToArray 10933 _, _ = yysep2, yy2arr2 10934 const yyr2 bool = false // struct tag has 'toArray' 10935 if yyr2 || yy2arr2 { 10936 r.WriteArrayStart(1) 10937 } else { 10938 r.WriteMapStart(1) 10939 } 10940 if yyr2 || yy2arr2 { 10941 r.WriteArrayElem() 10942 if x.Devices == nil { 10943 r.EncodeNil() 10944 } else { 10945 if false { 10946 } else { 10947 h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) 10948 } 10949 } 10950 } else { 10951 r.WriteMapElemKey() 10952 if z.IsJSONHandle() { 10953 z.WriteStr("\"Devices\"") 10954 } else { 10955 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 10956 } 10957 r.WriteMapElemValue() 10958 if x.Devices == nil { 10959 r.EncodeNil() 10960 } else { 10961 if false { 10962 } else { 10963 h.encMapDeviceIdTuplePtrtoDeviceAccounterInstance((map[DeviceIdTuple]*DeviceAccounterInstance)(x.Devices), e) 10964 } 10965 } 10966 } 10967 if yyr2 || yy2arr2 { 10968 r.WriteArrayEnd() 10969 } else { 10970 r.WriteMapEnd() 10971 } 10972 } 10973 } 10974 } 10975 10976 func (x *DeviceAccounter) CodecDecodeSelf(d *codec1978.Decoder) { 10977 var h codecSelfer100 10978 z, r := codec1978.GenHelperDecoder(d) 10979 _, _, _ = h, z, r 10980 if false { 10981 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 10982 z.DecExtension(x, yyxt1) 10983 } else { 10984 yyct2 := r.ContainerType() 10985 if yyct2 == codecSelferValueTypeMap100 { 10986 yyl2 := r.ReadMapStart() 10987 if yyl2 == 0 { 10988 r.ReadMapEnd() 10989 } else { 10990 x.codecDecodeSelfFromMap(yyl2, d) 10991 } 10992 } else if yyct2 == codecSelferValueTypeArray100 { 10993 yyl2 := r.ReadArrayStart() 10994 if yyl2 == 0 { 10995 r.ReadArrayEnd() 10996 } else { 10997 x.codecDecodeSelfFromArray(yyl2, d) 10998 } 10999 } else { 11000 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11001 } 11002 } 11003 } 11004 11005 func (x *DeviceAccounter) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11006 var h codecSelfer100 11007 z, r := codec1978.GenHelperDecoder(d) 11008 _, _, _ = h, z, r 11009 var yyhl3 bool = l >= 0 11010 for yyj3 := 0; ; yyj3++ { 11011 if yyhl3 { 11012 if yyj3 >= l { 11013 break 11014 } 11015 } else { 11016 if r.CheckBreak() { 11017 break 11018 } 11019 } 11020 r.ReadMapElemKey() 11021 yys3 := z.StringView(r.DecodeStringAsBytes()) 11022 r.ReadMapElemValue() 11023 switch yys3 { 11024 case "Devices": 11025 if r.TryDecodeAsNil() { 11026 x.Devices = nil 11027 } else { 11028 if false { 11029 } else { 11030 h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) 11031 } 11032 } 11033 default: 11034 z.DecStructFieldNotFound(-1, yys3) 11035 } // end switch yys3 11036 } // end for yyj3 11037 r.ReadMapEnd() 11038 } 11039 11040 func (x *DeviceAccounter) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11041 var h codecSelfer100 11042 z, r := codec1978.GenHelperDecoder(d) 11043 _, _, _ = h, z, r 11044 var yyj6 int 11045 var yyb6 bool 11046 var yyhl6 bool = l >= 0 11047 yyj6++ 11048 if yyhl6 { 11049 yyb6 = yyj6 > l 11050 } else { 11051 yyb6 = r.CheckBreak() 11052 } 11053 if yyb6 { 11054 r.ReadArrayEnd() 11055 return 11056 } 11057 r.ReadArrayElem() 11058 if r.TryDecodeAsNil() { 11059 x.Devices = nil 11060 } else { 11061 if false { 11062 } else { 11063 h.decMapDeviceIdTuplePtrtoDeviceAccounterInstance((*map[DeviceIdTuple]*DeviceAccounterInstance)(&x.Devices), d) 11064 } 11065 } 11066 for { 11067 yyj6++ 11068 if yyhl6 { 11069 yyb6 = yyj6 > l 11070 } else { 11071 yyb6 = r.CheckBreak() 11072 } 11073 if yyb6 { 11074 break 11075 } 11076 r.ReadArrayElem() 11077 z.DecStructFieldNotFound(yyj6-1, "") 11078 } 11079 r.ReadArrayEnd() 11080 } 11081 11082 func (x *DeviceAccounterInstance) CodecEncodeSelf(e *codec1978.Encoder) { 11083 var h codecSelfer100 11084 z, r := codec1978.GenHelperEncoder(e) 11085 _, _, _ = h, z, r 11086 if x == nil { 11087 r.EncodeNil() 11088 } else { 11089 if false { 11090 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11091 z.EncExtension(x, yyxt1) 11092 } else { 11093 yysep2 := !z.EncBinary() 11094 yy2arr2 := z.EncBasicHandle().StructToArray 11095 _, _ = yysep2, yy2arr2 11096 const yyr2 bool = false // struct tag has 'toArray' 11097 if yyr2 || yy2arr2 { 11098 r.WriteArrayStart(2) 11099 } else { 11100 r.WriteMapStart(2) 11101 } 11102 var yyn3 bool 11103 if x.Device == nil { 11104 yyn3 = true 11105 goto LABEL3 11106 } 11107 LABEL3: 11108 if yyr2 || yy2arr2 { 11109 if yyn3 { 11110 r.WriteArrayElem() 11111 r.EncodeNil() 11112 } else { 11113 r.WriteArrayElem() 11114 if x.Device == nil { 11115 r.EncodeNil() 11116 } else { 11117 x.Device.CodecEncodeSelf(e) 11118 } 11119 } 11120 } else { 11121 r.WriteMapElemKey() 11122 if z.IsJSONHandle() { 11123 z.WriteStr("\"Device\"") 11124 } else { 11125 r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) 11126 } 11127 r.WriteMapElemValue() 11128 if yyn3 { 11129 r.EncodeNil() 11130 } else { 11131 if x.Device == nil { 11132 r.EncodeNil() 11133 } else { 11134 x.Device.CodecEncodeSelf(e) 11135 } 11136 } 11137 } 11138 if yyr2 || yy2arr2 { 11139 r.WriteArrayElem() 11140 if x.Instances == nil { 11141 r.EncodeNil() 11142 } else { 11143 if false { 11144 } else { 11145 z.F.EncMapStringIntV(x.Instances, e) 11146 } 11147 } 11148 } else { 11149 r.WriteMapElemKey() 11150 if z.IsJSONHandle() { 11151 z.WriteStr("\"Instances\"") 11152 } else { 11153 r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) 11154 } 11155 r.WriteMapElemValue() 11156 if x.Instances == nil { 11157 r.EncodeNil() 11158 } else { 11159 if false { 11160 } else { 11161 z.F.EncMapStringIntV(x.Instances, e) 11162 } 11163 } 11164 } 11165 if yyr2 || yy2arr2 { 11166 r.WriteArrayEnd() 11167 } else { 11168 r.WriteMapEnd() 11169 } 11170 } 11171 } 11172 } 11173 11174 func (x *DeviceAccounterInstance) CodecDecodeSelf(d *codec1978.Decoder) { 11175 var h codecSelfer100 11176 z, r := codec1978.GenHelperDecoder(d) 11177 _, _, _ = h, z, r 11178 if false { 11179 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11180 z.DecExtension(x, yyxt1) 11181 } else { 11182 yyct2 := r.ContainerType() 11183 if yyct2 == codecSelferValueTypeMap100 { 11184 yyl2 := r.ReadMapStart() 11185 if yyl2 == 0 { 11186 r.ReadMapEnd() 11187 } else { 11188 x.codecDecodeSelfFromMap(yyl2, d) 11189 } 11190 } else if yyct2 == codecSelferValueTypeArray100 { 11191 yyl2 := r.ReadArrayStart() 11192 if yyl2 == 0 { 11193 r.ReadArrayEnd() 11194 } else { 11195 x.codecDecodeSelfFromArray(yyl2, d) 11196 } 11197 } else { 11198 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11199 } 11200 } 11201 } 11202 11203 func (x *DeviceAccounterInstance) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11204 var h codecSelfer100 11205 z, r := codec1978.GenHelperDecoder(d) 11206 _, _, _ = h, z, r 11207 var yyhl3 bool = l >= 0 11208 for yyj3 := 0; ; yyj3++ { 11209 if yyhl3 { 11210 if yyj3 >= l { 11211 break 11212 } 11213 } else { 11214 if r.CheckBreak() { 11215 break 11216 } 11217 } 11218 r.ReadMapElemKey() 11219 yys3 := z.StringView(r.DecodeStringAsBytes()) 11220 r.ReadMapElemValue() 11221 switch yys3 { 11222 case "Device": 11223 if r.TryDecodeAsNil() { 11224 if true && x.Device != nil { 11225 x.Device = nil 11226 } 11227 } else { 11228 if x.Device == nil { 11229 x.Device = new(NodeDeviceResource) 11230 } 11231 11232 x.Device.CodecDecodeSelf(d) 11233 } 11234 case "Instances": 11235 if r.TryDecodeAsNil() { 11236 x.Instances = nil 11237 } else { 11238 if false { 11239 } else { 11240 z.F.DecMapStringIntX(&x.Instances, d) 11241 } 11242 } 11243 default: 11244 z.DecStructFieldNotFound(-1, yys3) 11245 } // end switch yys3 11246 } // end for yyj3 11247 r.ReadMapEnd() 11248 } 11249 11250 func (x *DeviceAccounterInstance) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11251 var h codecSelfer100 11252 z, r := codec1978.GenHelperDecoder(d) 11253 _, _, _ = h, z, r 11254 var yyj7 int 11255 var yyb7 bool 11256 var yyhl7 bool = l >= 0 11257 yyj7++ 11258 if yyhl7 { 11259 yyb7 = yyj7 > l 11260 } else { 11261 yyb7 = r.CheckBreak() 11262 } 11263 if yyb7 { 11264 r.ReadArrayEnd() 11265 return 11266 } 11267 r.ReadArrayElem() 11268 if r.TryDecodeAsNil() { 11269 if true && x.Device != nil { 11270 x.Device = nil 11271 } 11272 } else { 11273 if x.Device == nil { 11274 x.Device = new(NodeDeviceResource) 11275 } 11276 11277 x.Device.CodecDecodeSelf(d) 11278 } 11279 yyj7++ 11280 if yyhl7 { 11281 yyb7 = yyj7 > l 11282 } else { 11283 yyb7 = r.CheckBreak() 11284 } 11285 if yyb7 { 11286 r.ReadArrayEnd() 11287 return 11288 } 11289 r.ReadArrayElem() 11290 if r.TryDecodeAsNil() { 11291 x.Instances = nil 11292 } else { 11293 if false { 11294 } else { 11295 z.F.DecMapStringIntX(&x.Instances, d) 11296 } 11297 } 11298 for { 11299 yyj7++ 11300 if yyhl7 { 11301 yyb7 = yyj7 > l 11302 } else { 11303 yyb7 = r.CheckBreak() 11304 } 11305 if yyb7 { 11306 break 11307 } 11308 r.ReadArrayElem() 11309 z.DecStructFieldNotFound(yyj7-1, "") 11310 } 11311 r.ReadArrayEnd() 11312 } 11313 11314 func (x DiffType) CodecEncodeSelf(e *codec1978.Encoder) { 11315 var h codecSelfer100 11316 z, r := codec1978.GenHelperEncoder(e) 11317 _, _, _ = h, z, r 11318 if false { 11319 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11320 z.EncExtension(x, yyxt1) 11321 } else { 11322 if z.EncBasicHandle().StringToRaw { 11323 r.EncodeStringBytesRaw(z.BytesView(string(x))) 11324 } else { 11325 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 11326 } 11327 } 11328 } 11329 11330 func (x *DiffType) CodecDecodeSelf(d *codec1978.Decoder) { 11331 var h codecSelfer100 11332 z, r := codec1978.GenHelperDecoder(d) 11333 _, _, _ = h, z, r 11334 if false { 11335 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11336 z.DecExtension(x, yyxt1) 11337 } else { 11338 *x = (DiffType)(r.DecodeString()) 11339 } 11340 } 11341 11342 func (x *JobDiff) CodecEncodeSelf(e *codec1978.Encoder) { 11343 var h codecSelfer100 11344 z, r := codec1978.GenHelperEncoder(e) 11345 _, _, _ = h, z, r 11346 if x == nil { 11347 r.EncodeNil() 11348 } else { 11349 if false { 11350 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11351 z.EncExtension(x, yyxt1) 11352 } else { 11353 yysep2 := !z.EncBinary() 11354 yy2arr2 := z.EncBasicHandle().StructToArray 11355 _, _ = yysep2, yy2arr2 11356 const yyr2 bool = false // struct tag has 'toArray' 11357 if yyr2 || yy2arr2 { 11358 r.WriteArrayStart(5) 11359 } else { 11360 r.WriteMapStart(5) 11361 } 11362 if yyr2 || yy2arr2 { 11363 r.WriteArrayElem() 11364 x.Type.CodecEncodeSelf(e) 11365 } else { 11366 r.WriteMapElemKey() 11367 if z.IsJSONHandle() { 11368 z.WriteStr("\"Type\"") 11369 } else { 11370 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 11371 } 11372 r.WriteMapElemValue() 11373 x.Type.CodecEncodeSelf(e) 11374 } 11375 if yyr2 || yy2arr2 { 11376 r.WriteArrayElem() 11377 if false { 11378 } else { 11379 if z.EncBasicHandle().StringToRaw { 11380 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 11381 } else { 11382 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 11383 } 11384 } 11385 } else { 11386 r.WriteMapElemKey() 11387 if z.IsJSONHandle() { 11388 z.WriteStr("\"ID\"") 11389 } else { 11390 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 11391 } 11392 r.WriteMapElemValue() 11393 if false { 11394 } else { 11395 if z.EncBasicHandle().StringToRaw { 11396 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 11397 } else { 11398 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 11399 } 11400 } 11401 } 11402 if yyr2 || yy2arr2 { 11403 r.WriteArrayElem() 11404 if x.Fields == nil { 11405 r.EncodeNil() 11406 } else { 11407 if false { 11408 } else { 11409 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 11410 } 11411 } 11412 } else { 11413 r.WriteMapElemKey() 11414 if z.IsJSONHandle() { 11415 z.WriteStr("\"Fields\"") 11416 } else { 11417 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 11418 } 11419 r.WriteMapElemValue() 11420 if x.Fields == nil { 11421 r.EncodeNil() 11422 } else { 11423 if false { 11424 } else { 11425 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 11426 } 11427 } 11428 } 11429 if yyr2 || yy2arr2 { 11430 r.WriteArrayElem() 11431 if x.Objects == nil { 11432 r.EncodeNil() 11433 } else { 11434 if false { 11435 } else { 11436 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11437 } 11438 } 11439 } else { 11440 r.WriteMapElemKey() 11441 if z.IsJSONHandle() { 11442 z.WriteStr("\"Objects\"") 11443 } else { 11444 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 11445 } 11446 r.WriteMapElemValue() 11447 if x.Objects == nil { 11448 r.EncodeNil() 11449 } else { 11450 if false { 11451 } else { 11452 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11453 } 11454 } 11455 } 11456 if yyr2 || yy2arr2 { 11457 r.WriteArrayElem() 11458 if x.TaskGroups == nil { 11459 r.EncodeNil() 11460 } else { 11461 if false { 11462 } else { 11463 h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) 11464 } 11465 } 11466 } else { 11467 r.WriteMapElemKey() 11468 if z.IsJSONHandle() { 11469 z.WriteStr("\"TaskGroups\"") 11470 } else { 11471 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 11472 } 11473 r.WriteMapElemValue() 11474 if x.TaskGroups == nil { 11475 r.EncodeNil() 11476 } else { 11477 if false { 11478 } else { 11479 h.encSlicePtrtoTaskGroupDiff(([]*TaskGroupDiff)(x.TaskGroups), e) 11480 } 11481 } 11482 } 11483 if yyr2 || yy2arr2 { 11484 r.WriteArrayEnd() 11485 } else { 11486 r.WriteMapEnd() 11487 } 11488 } 11489 } 11490 } 11491 11492 func (x *JobDiff) CodecDecodeSelf(d *codec1978.Decoder) { 11493 var h codecSelfer100 11494 z, r := codec1978.GenHelperDecoder(d) 11495 _, _, _ = h, z, r 11496 if false { 11497 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11498 z.DecExtension(x, yyxt1) 11499 } else { 11500 yyct2 := r.ContainerType() 11501 if yyct2 == codecSelferValueTypeMap100 { 11502 yyl2 := r.ReadMapStart() 11503 if yyl2 == 0 { 11504 r.ReadMapEnd() 11505 } else { 11506 x.codecDecodeSelfFromMap(yyl2, d) 11507 } 11508 } else if yyct2 == codecSelferValueTypeArray100 { 11509 yyl2 := r.ReadArrayStart() 11510 if yyl2 == 0 { 11511 r.ReadArrayEnd() 11512 } else { 11513 x.codecDecodeSelfFromArray(yyl2, d) 11514 } 11515 } else { 11516 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11517 } 11518 } 11519 } 11520 11521 func (x *JobDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11522 var h codecSelfer100 11523 z, r := codec1978.GenHelperDecoder(d) 11524 _, _, _ = h, z, r 11525 var yyhl3 bool = l >= 0 11526 for yyj3 := 0; ; yyj3++ { 11527 if yyhl3 { 11528 if yyj3 >= l { 11529 break 11530 } 11531 } else { 11532 if r.CheckBreak() { 11533 break 11534 } 11535 } 11536 r.ReadMapElemKey() 11537 yys3 := z.StringView(r.DecodeStringAsBytes()) 11538 r.ReadMapElemValue() 11539 switch yys3 { 11540 case "Type": 11541 if r.TryDecodeAsNil() { 11542 x.Type = "" 11543 } else { 11544 x.Type.CodecDecodeSelf(d) 11545 } 11546 case "ID": 11547 if r.TryDecodeAsNil() { 11548 x.ID = "" 11549 } else { 11550 x.ID = (string)(r.DecodeString()) 11551 } 11552 case "Fields": 11553 if r.TryDecodeAsNil() { 11554 x.Fields = nil 11555 } else { 11556 if false { 11557 } else { 11558 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 11559 } 11560 } 11561 case "Objects": 11562 if r.TryDecodeAsNil() { 11563 x.Objects = nil 11564 } else { 11565 if false { 11566 } else { 11567 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 11568 } 11569 } 11570 case "TaskGroups": 11571 if r.TryDecodeAsNil() { 11572 x.TaskGroups = nil 11573 } else { 11574 if false { 11575 } else { 11576 h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) 11577 } 11578 } 11579 default: 11580 z.DecStructFieldNotFound(-1, yys3) 11581 } // end switch yys3 11582 } // end for yyj3 11583 r.ReadMapEnd() 11584 } 11585 11586 func (x *JobDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11587 var h codecSelfer100 11588 z, r := codec1978.GenHelperDecoder(d) 11589 _, _, _ = h, z, r 11590 var yyj12 int 11591 var yyb12 bool 11592 var yyhl12 bool = l >= 0 11593 yyj12++ 11594 if yyhl12 { 11595 yyb12 = yyj12 > l 11596 } else { 11597 yyb12 = r.CheckBreak() 11598 } 11599 if yyb12 { 11600 r.ReadArrayEnd() 11601 return 11602 } 11603 r.ReadArrayElem() 11604 if r.TryDecodeAsNil() { 11605 x.Type = "" 11606 } else { 11607 x.Type.CodecDecodeSelf(d) 11608 } 11609 yyj12++ 11610 if yyhl12 { 11611 yyb12 = yyj12 > l 11612 } else { 11613 yyb12 = r.CheckBreak() 11614 } 11615 if yyb12 { 11616 r.ReadArrayEnd() 11617 return 11618 } 11619 r.ReadArrayElem() 11620 if r.TryDecodeAsNil() { 11621 x.ID = "" 11622 } else { 11623 x.ID = (string)(r.DecodeString()) 11624 } 11625 yyj12++ 11626 if yyhl12 { 11627 yyb12 = yyj12 > l 11628 } else { 11629 yyb12 = r.CheckBreak() 11630 } 11631 if yyb12 { 11632 r.ReadArrayEnd() 11633 return 11634 } 11635 r.ReadArrayElem() 11636 if r.TryDecodeAsNil() { 11637 x.Fields = nil 11638 } else { 11639 if false { 11640 } else { 11641 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 11642 } 11643 } 11644 yyj12++ 11645 if yyhl12 { 11646 yyb12 = yyj12 > l 11647 } else { 11648 yyb12 = r.CheckBreak() 11649 } 11650 if yyb12 { 11651 r.ReadArrayEnd() 11652 return 11653 } 11654 r.ReadArrayElem() 11655 if r.TryDecodeAsNil() { 11656 x.Objects = nil 11657 } else { 11658 if false { 11659 } else { 11660 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 11661 } 11662 } 11663 yyj12++ 11664 if yyhl12 { 11665 yyb12 = yyj12 > l 11666 } else { 11667 yyb12 = r.CheckBreak() 11668 } 11669 if yyb12 { 11670 r.ReadArrayEnd() 11671 return 11672 } 11673 r.ReadArrayElem() 11674 if r.TryDecodeAsNil() { 11675 x.TaskGroups = nil 11676 } else { 11677 if false { 11678 } else { 11679 h.decSlicePtrtoTaskGroupDiff((*[]*TaskGroupDiff)(&x.TaskGroups), d) 11680 } 11681 } 11682 for { 11683 yyj12++ 11684 if yyhl12 { 11685 yyb12 = yyj12 > l 11686 } else { 11687 yyb12 = r.CheckBreak() 11688 } 11689 if yyb12 { 11690 break 11691 } 11692 r.ReadArrayElem() 11693 z.DecStructFieldNotFound(yyj12-1, "") 11694 } 11695 r.ReadArrayEnd() 11696 } 11697 11698 func (x *TaskGroupDiff) CodecEncodeSelf(e *codec1978.Encoder) { 11699 var h codecSelfer100 11700 z, r := codec1978.GenHelperEncoder(e) 11701 _, _, _ = h, z, r 11702 if x == nil { 11703 r.EncodeNil() 11704 } else { 11705 if false { 11706 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11707 z.EncExtension(x, yyxt1) 11708 } else { 11709 yysep2 := !z.EncBinary() 11710 yy2arr2 := z.EncBasicHandle().StructToArray 11711 _, _ = yysep2, yy2arr2 11712 const yyr2 bool = false // struct tag has 'toArray' 11713 if yyr2 || yy2arr2 { 11714 r.WriteArrayStart(6) 11715 } else { 11716 r.WriteMapStart(6) 11717 } 11718 if yyr2 || yy2arr2 { 11719 r.WriteArrayElem() 11720 x.Type.CodecEncodeSelf(e) 11721 } else { 11722 r.WriteMapElemKey() 11723 if z.IsJSONHandle() { 11724 z.WriteStr("\"Type\"") 11725 } else { 11726 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 11727 } 11728 r.WriteMapElemValue() 11729 x.Type.CodecEncodeSelf(e) 11730 } 11731 if yyr2 || yy2arr2 { 11732 r.WriteArrayElem() 11733 if false { 11734 } else { 11735 if z.EncBasicHandle().StringToRaw { 11736 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 11737 } else { 11738 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 11739 } 11740 } 11741 } else { 11742 r.WriteMapElemKey() 11743 if z.IsJSONHandle() { 11744 z.WriteStr("\"Name\"") 11745 } else { 11746 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 11747 } 11748 r.WriteMapElemValue() 11749 if false { 11750 } else { 11751 if z.EncBasicHandle().StringToRaw { 11752 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 11753 } else { 11754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 11755 } 11756 } 11757 } 11758 if yyr2 || yy2arr2 { 11759 r.WriteArrayElem() 11760 if x.Fields == nil { 11761 r.EncodeNil() 11762 } else { 11763 if false { 11764 } else { 11765 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 11766 } 11767 } 11768 } else { 11769 r.WriteMapElemKey() 11770 if z.IsJSONHandle() { 11771 z.WriteStr("\"Fields\"") 11772 } else { 11773 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 11774 } 11775 r.WriteMapElemValue() 11776 if x.Fields == nil { 11777 r.EncodeNil() 11778 } else { 11779 if false { 11780 } else { 11781 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 11782 } 11783 } 11784 } 11785 if yyr2 || yy2arr2 { 11786 r.WriteArrayElem() 11787 if x.Objects == nil { 11788 r.EncodeNil() 11789 } else { 11790 if false { 11791 } else { 11792 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11793 } 11794 } 11795 } else { 11796 r.WriteMapElemKey() 11797 if z.IsJSONHandle() { 11798 z.WriteStr("\"Objects\"") 11799 } else { 11800 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 11801 } 11802 r.WriteMapElemValue() 11803 if x.Objects == nil { 11804 r.EncodeNil() 11805 } else { 11806 if false { 11807 } else { 11808 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 11809 } 11810 } 11811 } 11812 if yyr2 || yy2arr2 { 11813 r.WriteArrayElem() 11814 if x.Tasks == nil { 11815 r.EncodeNil() 11816 } else { 11817 if false { 11818 } else { 11819 h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) 11820 } 11821 } 11822 } else { 11823 r.WriteMapElemKey() 11824 if z.IsJSONHandle() { 11825 z.WriteStr("\"Tasks\"") 11826 } else { 11827 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 11828 } 11829 r.WriteMapElemValue() 11830 if x.Tasks == nil { 11831 r.EncodeNil() 11832 } else { 11833 if false { 11834 } else { 11835 h.encSlicePtrtoTaskDiff(([]*TaskDiff)(x.Tasks), e) 11836 } 11837 } 11838 } 11839 if yyr2 || yy2arr2 { 11840 r.WriteArrayElem() 11841 if x.Updates == nil { 11842 r.EncodeNil() 11843 } else { 11844 if false { 11845 } else { 11846 z.F.EncMapStringUint64V(x.Updates, e) 11847 } 11848 } 11849 } else { 11850 r.WriteMapElemKey() 11851 if z.IsJSONHandle() { 11852 z.WriteStr("\"Updates\"") 11853 } else { 11854 r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) 11855 } 11856 r.WriteMapElemValue() 11857 if x.Updates == nil { 11858 r.EncodeNil() 11859 } else { 11860 if false { 11861 } else { 11862 z.F.EncMapStringUint64V(x.Updates, e) 11863 } 11864 } 11865 } 11866 if yyr2 || yy2arr2 { 11867 r.WriteArrayEnd() 11868 } else { 11869 r.WriteMapEnd() 11870 } 11871 } 11872 } 11873 } 11874 11875 func (x *TaskGroupDiff) CodecDecodeSelf(d *codec1978.Decoder) { 11876 var h codecSelfer100 11877 z, r := codec1978.GenHelperDecoder(d) 11878 _, _, _ = h, z, r 11879 if false { 11880 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 11881 z.DecExtension(x, yyxt1) 11882 } else { 11883 yyct2 := r.ContainerType() 11884 if yyct2 == codecSelferValueTypeMap100 { 11885 yyl2 := r.ReadMapStart() 11886 if yyl2 == 0 { 11887 r.ReadMapEnd() 11888 } else { 11889 x.codecDecodeSelfFromMap(yyl2, d) 11890 } 11891 } else if yyct2 == codecSelferValueTypeArray100 { 11892 yyl2 := r.ReadArrayStart() 11893 if yyl2 == 0 { 11894 r.ReadArrayEnd() 11895 } else { 11896 x.codecDecodeSelfFromArray(yyl2, d) 11897 } 11898 } else { 11899 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 11900 } 11901 } 11902 } 11903 11904 func (x *TaskGroupDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 11905 var h codecSelfer100 11906 z, r := codec1978.GenHelperDecoder(d) 11907 _, _, _ = h, z, r 11908 var yyhl3 bool = l >= 0 11909 for yyj3 := 0; ; yyj3++ { 11910 if yyhl3 { 11911 if yyj3 >= l { 11912 break 11913 } 11914 } else { 11915 if r.CheckBreak() { 11916 break 11917 } 11918 } 11919 r.ReadMapElemKey() 11920 yys3 := z.StringView(r.DecodeStringAsBytes()) 11921 r.ReadMapElemValue() 11922 switch yys3 { 11923 case "Type": 11924 if r.TryDecodeAsNil() { 11925 x.Type = "" 11926 } else { 11927 x.Type.CodecDecodeSelf(d) 11928 } 11929 case "Name": 11930 if r.TryDecodeAsNil() { 11931 x.Name = "" 11932 } else { 11933 x.Name = (string)(r.DecodeString()) 11934 } 11935 case "Fields": 11936 if r.TryDecodeAsNil() { 11937 x.Fields = nil 11938 } else { 11939 if false { 11940 } else { 11941 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 11942 } 11943 } 11944 case "Objects": 11945 if r.TryDecodeAsNil() { 11946 x.Objects = nil 11947 } else { 11948 if false { 11949 } else { 11950 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 11951 } 11952 } 11953 case "Tasks": 11954 if r.TryDecodeAsNil() { 11955 x.Tasks = nil 11956 } else { 11957 if false { 11958 } else { 11959 h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) 11960 } 11961 } 11962 case "Updates": 11963 if r.TryDecodeAsNil() { 11964 x.Updates = nil 11965 } else { 11966 if false { 11967 } else { 11968 z.F.DecMapStringUint64X(&x.Updates, d) 11969 } 11970 } 11971 default: 11972 z.DecStructFieldNotFound(-1, yys3) 11973 } // end switch yys3 11974 } // end for yyj3 11975 r.ReadMapEnd() 11976 } 11977 11978 func (x *TaskGroupDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 11979 var h codecSelfer100 11980 z, r := codec1978.GenHelperDecoder(d) 11981 _, _, _ = h, z, r 11982 var yyj14 int 11983 var yyb14 bool 11984 var yyhl14 bool = l >= 0 11985 yyj14++ 11986 if yyhl14 { 11987 yyb14 = yyj14 > l 11988 } else { 11989 yyb14 = r.CheckBreak() 11990 } 11991 if yyb14 { 11992 r.ReadArrayEnd() 11993 return 11994 } 11995 r.ReadArrayElem() 11996 if r.TryDecodeAsNil() { 11997 x.Type = "" 11998 } else { 11999 x.Type.CodecDecodeSelf(d) 12000 } 12001 yyj14++ 12002 if yyhl14 { 12003 yyb14 = yyj14 > l 12004 } else { 12005 yyb14 = r.CheckBreak() 12006 } 12007 if yyb14 { 12008 r.ReadArrayEnd() 12009 return 12010 } 12011 r.ReadArrayElem() 12012 if r.TryDecodeAsNil() { 12013 x.Name = "" 12014 } else { 12015 x.Name = (string)(r.DecodeString()) 12016 } 12017 yyj14++ 12018 if yyhl14 { 12019 yyb14 = yyj14 > l 12020 } else { 12021 yyb14 = r.CheckBreak() 12022 } 12023 if yyb14 { 12024 r.ReadArrayEnd() 12025 return 12026 } 12027 r.ReadArrayElem() 12028 if r.TryDecodeAsNil() { 12029 x.Fields = nil 12030 } else { 12031 if false { 12032 } else { 12033 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 12034 } 12035 } 12036 yyj14++ 12037 if yyhl14 { 12038 yyb14 = yyj14 > l 12039 } else { 12040 yyb14 = r.CheckBreak() 12041 } 12042 if yyb14 { 12043 r.ReadArrayEnd() 12044 return 12045 } 12046 r.ReadArrayElem() 12047 if r.TryDecodeAsNil() { 12048 x.Objects = nil 12049 } else { 12050 if false { 12051 } else { 12052 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 12053 } 12054 } 12055 yyj14++ 12056 if yyhl14 { 12057 yyb14 = yyj14 > l 12058 } else { 12059 yyb14 = r.CheckBreak() 12060 } 12061 if yyb14 { 12062 r.ReadArrayEnd() 12063 return 12064 } 12065 r.ReadArrayElem() 12066 if r.TryDecodeAsNil() { 12067 x.Tasks = nil 12068 } else { 12069 if false { 12070 } else { 12071 h.decSlicePtrtoTaskDiff((*[]*TaskDiff)(&x.Tasks), d) 12072 } 12073 } 12074 yyj14++ 12075 if yyhl14 { 12076 yyb14 = yyj14 > l 12077 } else { 12078 yyb14 = r.CheckBreak() 12079 } 12080 if yyb14 { 12081 r.ReadArrayEnd() 12082 return 12083 } 12084 r.ReadArrayElem() 12085 if r.TryDecodeAsNil() { 12086 x.Updates = nil 12087 } else { 12088 if false { 12089 } else { 12090 z.F.DecMapStringUint64X(&x.Updates, d) 12091 } 12092 } 12093 for { 12094 yyj14++ 12095 if yyhl14 { 12096 yyb14 = yyj14 > l 12097 } else { 12098 yyb14 = r.CheckBreak() 12099 } 12100 if yyb14 { 12101 break 12102 } 12103 r.ReadArrayElem() 12104 z.DecStructFieldNotFound(yyj14-1, "") 12105 } 12106 r.ReadArrayEnd() 12107 } 12108 12109 func (x TaskGroupDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 12110 var h codecSelfer100 12111 z, r := codec1978.GenHelperEncoder(e) 12112 _, _, _ = h, z, r 12113 if x == nil { 12114 r.EncodeNil() 12115 } else { 12116 if false { 12117 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12118 z.EncExtension(x, yyxt1) 12119 } else { 12120 h.encTaskGroupDiffs((TaskGroupDiffs)(x), e) 12121 } 12122 } 12123 } 12124 12125 func (x *TaskGroupDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 12126 var h codecSelfer100 12127 z, r := codec1978.GenHelperDecoder(d) 12128 _, _, _ = h, z, r 12129 if false { 12130 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12131 z.DecExtension(x, yyxt1) 12132 } else { 12133 h.decTaskGroupDiffs((*TaskGroupDiffs)(x), d) 12134 } 12135 } 12136 12137 func (x *TaskDiff) CodecEncodeSelf(e *codec1978.Encoder) { 12138 var h codecSelfer100 12139 z, r := codec1978.GenHelperEncoder(e) 12140 _, _, _ = h, z, r 12141 if x == nil { 12142 r.EncodeNil() 12143 } else { 12144 if false { 12145 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12146 z.EncExtension(x, yyxt1) 12147 } else { 12148 yysep2 := !z.EncBinary() 12149 yy2arr2 := z.EncBasicHandle().StructToArray 12150 _, _ = yysep2, yy2arr2 12151 const yyr2 bool = false // struct tag has 'toArray' 12152 if yyr2 || yy2arr2 { 12153 r.WriteArrayStart(5) 12154 } else { 12155 r.WriteMapStart(5) 12156 } 12157 if yyr2 || yy2arr2 { 12158 r.WriteArrayElem() 12159 x.Type.CodecEncodeSelf(e) 12160 } else { 12161 r.WriteMapElemKey() 12162 if z.IsJSONHandle() { 12163 z.WriteStr("\"Type\"") 12164 } else { 12165 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 12166 } 12167 r.WriteMapElemValue() 12168 x.Type.CodecEncodeSelf(e) 12169 } 12170 if yyr2 || yy2arr2 { 12171 r.WriteArrayElem() 12172 if false { 12173 } else { 12174 if z.EncBasicHandle().StringToRaw { 12175 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12176 } else { 12177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12178 } 12179 } 12180 } else { 12181 r.WriteMapElemKey() 12182 if z.IsJSONHandle() { 12183 z.WriteStr("\"Name\"") 12184 } else { 12185 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 12186 } 12187 r.WriteMapElemValue() 12188 if false { 12189 } else { 12190 if z.EncBasicHandle().StringToRaw { 12191 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12192 } else { 12193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12194 } 12195 } 12196 } 12197 if yyr2 || yy2arr2 { 12198 r.WriteArrayElem() 12199 if x.Fields == nil { 12200 r.EncodeNil() 12201 } else { 12202 if false { 12203 } else { 12204 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 12205 } 12206 } 12207 } else { 12208 r.WriteMapElemKey() 12209 if z.IsJSONHandle() { 12210 z.WriteStr("\"Fields\"") 12211 } else { 12212 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 12213 } 12214 r.WriteMapElemValue() 12215 if x.Fields == nil { 12216 r.EncodeNil() 12217 } else { 12218 if false { 12219 } else { 12220 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 12221 } 12222 } 12223 } 12224 if yyr2 || yy2arr2 { 12225 r.WriteArrayElem() 12226 if x.Objects == nil { 12227 r.EncodeNil() 12228 } else { 12229 if false { 12230 } else { 12231 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 12232 } 12233 } 12234 } else { 12235 r.WriteMapElemKey() 12236 if z.IsJSONHandle() { 12237 z.WriteStr("\"Objects\"") 12238 } else { 12239 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 12240 } 12241 r.WriteMapElemValue() 12242 if x.Objects == nil { 12243 r.EncodeNil() 12244 } else { 12245 if false { 12246 } else { 12247 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 12248 } 12249 } 12250 } 12251 if yyr2 || yy2arr2 { 12252 r.WriteArrayElem() 12253 if x.Annotations == nil { 12254 r.EncodeNil() 12255 } else { 12256 if false { 12257 } else { 12258 z.F.EncSliceStringV(x.Annotations, e) 12259 } 12260 } 12261 } else { 12262 r.WriteMapElemKey() 12263 if z.IsJSONHandle() { 12264 z.WriteStr("\"Annotations\"") 12265 } else { 12266 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 12267 } 12268 r.WriteMapElemValue() 12269 if x.Annotations == nil { 12270 r.EncodeNil() 12271 } else { 12272 if false { 12273 } else { 12274 z.F.EncSliceStringV(x.Annotations, e) 12275 } 12276 } 12277 } 12278 if yyr2 || yy2arr2 { 12279 r.WriteArrayEnd() 12280 } else { 12281 r.WriteMapEnd() 12282 } 12283 } 12284 } 12285 } 12286 12287 func (x *TaskDiff) CodecDecodeSelf(d *codec1978.Decoder) { 12288 var h codecSelfer100 12289 z, r := codec1978.GenHelperDecoder(d) 12290 _, _, _ = h, z, r 12291 if false { 12292 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12293 z.DecExtension(x, yyxt1) 12294 } else { 12295 yyct2 := r.ContainerType() 12296 if yyct2 == codecSelferValueTypeMap100 { 12297 yyl2 := r.ReadMapStart() 12298 if yyl2 == 0 { 12299 r.ReadMapEnd() 12300 } else { 12301 x.codecDecodeSelfFromMap(yyl2, d) 12302 } 12303 } else if yyct2 == codecSelferValueTypeArray100 { 12304 yyl2 := r.ReadArrayStart() 12305 if yyl2 == 0 { 12306 r.ReadArrayEnd() 12307 } else { 12308 x.codecDecodeSelfFromArray(yyl2, d) 12309 } 12310 } else { 12311 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 12312 } 12313 } 12314 } 12315 12316 func (x *TaskDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 12317 var h codecSelfer100 12318 z, r := codec1978.GenHelperDecoder(d) 12319 _, _, _ = h, z, r 12320 var yyhl3 bool = l >= 0 12321 for yyj3 := 0; ; yyj3++ { 12322 if yyhl3 { 12323 if yyj3 >= l { 12324 break 12325 } 12326 } else { 12327 if r.CheckBreak() { 12328 break 12329 } 12330 } 12331 r.ReadMapElemKey() 12332 yys3 := z.StringView(r.DecodeStringAsBytes()) 12333 r.ReadMapElemValue() 12334 switch yys3 { 12335 case "Type": 12336 if r.TryDecodeAsNil() { 12337 x.Type = "" 12338 } else { 12339 x.Type.CodecDecodeSelf(d) 12340 } 12341 case "Name": 12342 if r.TryDecodeAsNil() { 12343 x.Name = "" 12344 } else { 12345 x.Name = (string)(r.DecodeString()) 12346 } 12347 case "Fields": 12348 if r.TryDecodeAsNil() { 12349 x.Fields = nil 12350 } else { 12351 if false { 12352 } else { 12353 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 12354 } 12355 } 12356 case "Objects": 12357 if r.TryDecodeAsNil() { 12358 x.Objects = nil 12359 } else { 12360 if false { 12361 } else { 12362 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 12363 } 12364 } 12365 case "Annotations": 12366 if r.TryDecodeAsNil() { 12367 x.Annotations = nil 12368 } else { 12369 if false { 12370 } else { 12371 z.F.DecSliceStringX(&x.Annotations, d) 12372 } 12373 } 12374 default: 12375 z.DecStructFieldNotFound(-1, yys3) 12376 } // end switch yys3 12377 } // end for yyj3 12378 r.ReadMapEnd() 12379 } 12380 12381 func (x *TaskDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 12382 var h codecSelfer100 12383 z, r := codec1978.GenHelperDecoder(d) 12384 _, _, _ = h, z, r 12385 var yyj12 int 12386 var yyb12 bool 12387 var yyhl12 bool = l >= 0 12388 yyj12++ 12389 if yyhl12 { 12390 yyb12 = yyj12 > l 12391 } else { 12392 yyb12 = r.CheckBreak() 12393 } 12394 if yyb12 { 12395 r.ReadArrayEnd() 12396 return 12397 } 12398 r.ReadArrayElem() 12399 if r.TryDecodeAsNil() { 12400 x.Type = "" 12401 } else { 12402 x.Type.CodecDecodeSelf(d) 12403 } 12404 yyj12++ 12405 if yyhl12 { 12406 yyb12 = yyj12 > l 12407 } else { 12408 yyb12 = r.CheckBreak() 12409 } 12410 if yyb12 { 12411 r.ReadArrayEnd() 12412 return 12413 } 12414 r.ReadArrayElem() 12415 if r.TryDecodeAsNil() { 12416 x.Name = "" 12417 } else { 12418 x.Name = (string)(r.DecodeString()) 12419 } 12420 yyj12++ 12421 if yyhl12 { 12422 yyb12 = yyj12 > l 12423 } else { 12424 yyb12 = r.CheckBreak() 12425 } 12426 if yyb12 { 12427 r.ReadArrayEnd() 12428 return 12429 } 12430 r.ReadArrayElem() 12431 if r.TryDecodeAsNil() { 12432 x.Fields = nil 12433 } else { 12434 if false { 12435 } else { 12436 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 12437 } 12438 } 12439 yyj12++ 12440 if yyhl12 { 12441 yyb12 = yyj12 > l 12442 } else { 12443 yyb12 = r.CheckBreak() 12444 } 12445 if yyb12 { 12446 r.ReadArrayEnd() 12447 return 12448 } 12449 r.ReadArrayElem() 12450 if r.TryDecodeAsNil() { 12451 x.Objects = nil 12452 } else { 12453 if false { 12454 } else { 12455 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 12456 } 12457 } 12458 yyj12++ 12459 if yyhl12 { 12460 yyb12 = yyj12 > l 12461 } else { 12462 yyb12 = r.CheckBreak() 12463 } 12464 if yyb12 { 12465 r.ReadArrayEnd() 12466 return 12467 } 12468 r.ReadArrayElem() 12469 if r.TryDecodeAsNil() { 12470 x.Annotations = nil 12471 } else { 12472 if false { 12473 } else { 12474 z.F.DecSliceStringX(&x.Annotations, d) 12475 } 12476 } 12477 for { 12478 yyj12++ 12479 if yyhl12 { 12480 yyb12 = yyj12 > l 12481 } else { 12482 yyb12 = r.CheckBreak() 12483 } 12484 if yyb12 { 12485 break 12486 } 12487 r.ReadArrayElem() 12488 z.DecStructFieldNotFound(yyj12-1, "") 12489 } 12490 r.ReadArrayEnd() 12491 } 12492 12493 func (x TaskDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 12494 var h codecSelfer100 12495 z, r := codec1978.GenHelperEncoder(e) 12496 _, _, _ = h, z, r 12497 if x == nil { 12498 r.EncodeNil() 12499 } else { 12500 if false { 12501 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12502 z.EncExtension(x, yyxt1) 12503 } else { 12504 h.encTaskDiffs((TaskDiffs)(x), e) 12505 } 12506 } 12507 } 12508 12509 func (x *TaskDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 12510 var h codecSelfer100 12511 z, r := codec1978.GenHelperDecoder(d) 12512 _, _, _ = h, z, r 12513 if false { 12514 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12515 z.DecExtension(x, yyxt1) 12516 } else { 12517 h.decTaskDiffs((*TaskDiffs)(x), d) 12518 } 12519 } 12520 12521 func (x *ObjectDiff) CodecEncodeSelf(e *codec1978.Encoder) { 12522 var h codecSelfer100 12523 z, r := codec1978.GenHelperEncoder(e) 12524 _, _, _ = h, z, r 12525 if x == nil { 12526 r.EncodeNil() 12527 } else { 12528 if false { 12529 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12530 z.EncExtension(x, yyxt1) 12531 } else { 12532 yysep2 := !z.EncBinary() 12533 yy2arr2 := z.EncBasicHandle().StructToArray 12534 _, _ = yysep2, yy2arr2 12535 const yyr2 bool = false // struct tag has 'toArray' 12536 if yyr2 || yy2arr2 { 12537 r.WriteArrayStart(4) 12538 } else { 12539 r.WriteMapStart(4) 12540 } 12541 if yyr2 || yy2arr2 { 12542 r.WriteArrayElem() 12543 x.Type.CodecEncodeSelf(e) 12544 } else { 12545 r.WriteMapElemKey() 12546 if z.IsJSONHandle() { 12547 z.WriteStr("\"Type\"") 12548 } else { 12549 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 12550 } 12551 r.WriteMapElemValue() 12552 x.Type.CodecEncodeSelf(e) 12553 } 12554 if yyr2 || yy2arr2 { 12555 r.WriteArrayElem() 12556 if false { 12557 } else { 12558 if z.EncBasicHandle().StringToRaw { 12559 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12560 } else { 12561 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12562 } 12563 } 12564 } else { 12565 r.WriteMapElemKey() 12566 if z.IsJSONHandle() { 12567 z.WriteStr("\"Name\"") 12568 } else { 12569 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 12570 } 12571 r.WriteMapElemValue() 12572 if false { 12573 } else { 12574 if z.EncBasicHandle().StringToRaw { 12575 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12576 } else { 12577 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12578 } 12579 } 12580 } 12581 if yyr2 || yy2arr2 { 12582 r.WriteArrayElem() 12583 if x.Fields == nil { 12584 r.EncodeNil() 12585 } else { 12586 if false { 12587 } else { 12588 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 12589 } 12590 } 12591 } else { 12592 r.WriteMapElemKey() 12593 if z.IsJSONHandle() { 12594 z.WriteStr("\"Fields\"") 12595 } else { 12596 r.EncodeStringEnc(codecSelferCcUTF8100, `Fields`) 12597 } 12598 r.WriteMapElemValue() 12599 if x.Fields == nil { 12600 r.EncodeNil() 12601 } else { 12602 if false { 12603 } else { 12604 h.encSlicePtrtoFieldDiff(([]*FieldDiff)(x.Fields), e) 12605 } 12606 } 12607 } 12608 if yyr2 || yy2arr2 { 12609 r.WriteArrayElem() 12610 if x.Objects == nil { 12611 r.EncodeNil() 12612 } else { 12613 if false { 12614 } else { 12615 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 12616 } 12617 } 12618 } else { 12619 r.WriteMapElemKey() 12620 if z.IsJSONHandle() { 12621 z.WriteStr("\"Objects\"") 12622 } else { 12623 r.EncodeStringEnc(codecSelferCcUTF8100, `Objects`) 12624 } 12625 r.WriteMapElemValue() 12626 if x.Objects == nil { 12627 r.EncodeNil() 12628 } else { 12629 if false { 12630 } else { 12631 h.encSlicePtrtoObjectDiff(([]*ObjectDiff)(x.Objects), e) 12632 } 12633 } 12634 } 12635 if yyr2 || yy2arr2 { 12636 r.WriteArrayEnd() 12637 } else { 12638 r.WriteMapEnd() 12639 } 12640 } 12641 } 12642 } 12643 12644 func (x *ObjectDiff) CodecDecodeSelf(d *codec1978.Decoder) { 12645 var h codecSelfer100 12646 z, r := codec1978.GenHelperDecoder(d) 12647 _, _, _ = h, z, r 12648 if false { 12649 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12650 z.DecExtension(x, yyxt1) 12651 } else { 12652 yyct2 := r.ContainerType() 12653 if yyct2 == codecSelferValueTypeMap100 { 12654 yyl2 := r.ReadMapStart() 12655 if yyl2 == 0 { 12656 r.ReadMapEnd() 12657 } else { 12658 x.codecDecodeSelfFromMap(yyl2, d) 12659 } 12660 } else if yyct2 == codecSelferValueTypeArray100 { 12661 yyl2 := r.ReadArrayStart() 12662 if yyl2 == 0 { 12663 r.ReadArrayEnd() 12664 } else { 12665 x.codecDecodeSelfFromArray(yyl2, d) 12666 } 12667 } else { 12668 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 12669 } 12670 } 12671 } 12672 12673 func (x *ObjectDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 12674 var h codecSelfer100 12675 z, r := codec1978.GenHelperDecoder(d) 12676 _, _, _ = h, z, r 12677 var yyhl3 bool = l >= 0 12678 for yyj3 := 0; ; yyj3++ { 12679 if yyhl3 { 12680 if yyj3 >= l { 12681 break 12682 } 12683 } else { 12684 if r.CheckBreak() { 12685 break 12686 } 12687 } 12688 r.ReadMapElemKey() 12689 yys3 := z.StringView(r.DecodeStringAsBytes()) 12690 r.ReadMapElemValue() 12691 switch yys3 { 12692 case "Type": 12693 if r.TryDecodeAsNil() { 12694 x.Type = "" 12695 } else { 12696 x.Type.CodecDecodeSelf(d) 12697 } 12698 case "Name": 12699 if r.TryDecodeAsNil() { 12700 x.Name = "" 12701 } else { 12702 x.Name = (string)(r.DecodeString()) 12703 } 12704 case "Fields": 12705 if r.TryDecodeAsNil() { 12706 x.Fields = nil 12707 } else { 12708 if false { 12709 } else { 12710 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 12711 } 12712 } 12713 case "Objects": 12714 if r.TryDecodeAsNil() { 12715 x.Objects = nil 12716 } else { 12717 if false { 12718 } else { 12719 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 12720 } 12721 } 12722 default: 12723 z.DecStructFieldNotFound(-1, yys3) 12724 } // end switch yys3 12725 } // end for yyj3 12726 r.ReadMapEnd() 12727 } 12728 12729 func (x *ObjectDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 12730 var h codecSelfer100 12731 z, r := codec1978.GenHelperDecoder(d) 12732 _, _, _ = h, z, r 12733 var yyj10 int 12734 var yyb10 bool 12735 var yyhl10 bool = l >= 0 12736 yyj10++ 12737 if yyhl10 { 12738 yyb10 = yyj10 > l 12739 } else { 12740 yyb10 = r.CheckBreak() 12741 } 12742 if yyb10 { 12743 r.ReadArrayEnd() 12744 return 12745 } 12746 r.ReadArrayElem() 12747 if r.TryDecodeAsNil() { 12748 x.Type = "" 12749 } else { 12750 x.Type.CodecDecodeSelf(d) 12751 } 12752 yyj10++ 12753 if yyhl10 { 12754 yyb10 = yyj10 > l 12755 } else { 12756 yyb10 = r.CheckBreak() 12757 } 12758 if yyb10 { 12759 r.ReadArrayEnd() 12760 return 12761 } 12762 r.ReadArrayElem() 12763 if r.TryDecodeAsNil() { 12764 x.Name = "" 12765 } else { 12766 x.Name = (string)(r.DecodeString()) 12767 } 12768 yyj10++ 12769 if yyhl10 { 12770 yyb10 = yyj10 > l 12771 } else { 12772 yyb10 = r.CheckBreak() 12773 } 12774 if yyb10 { 12775 r.ReadArrayEnd() 12776 return 12777 } 12778 r.ReadArrayElem() 12779 if r.TryDecodeAsNil() { 12780 x.Fields = nil 12781 } else { 12782 if false { 12783 } else { 12784 h.decSlicePtrtoFieldDiff((*[]*FieldDiff)(&x.Fields), d) 12785 } 12786 } 12787 yyj10++ 12788 if yyhl10 { 12789 yyb10 = yyj10 > l 12790 } else { 12791 yyb10 = r.CheckBreak() 12792 } 12793 if yyb10 { 12794 r.ReadArrayEnd() 12795 return 12796 } 12797 r.ReadArrayElem() 12798 if r.TryDecodeAsNil() { 12799 x.Objects = nil 12800 } else { 12801 if false { 12802 } else { 12803 h.decSlicePtrtoObjectDiff((*[]*ObjectDiff)(&x.Objects), d) 12804 } 12805 } 12806 for { 12807 yyj10++ 12808 if yyhl10 { 12809 yyb10 = yyj10 > l 12810 } else { 12811 yyb10 = r.CheckBreak() 12812 } 12813 if yyb10 { 12814 break 12815 } 12816 r.ReadArrayElem() 12817 z.DecStructFieldNotFound(yyj10-1, "") 12818 } 12819 r.ReadArrayEnd() 12820 } 12821 12822 func (x ObjectDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 12823 var h codecSelfer100 12824 z, r := codec1978.GenHelperEncoder(e) 12825 _, _, _ = h, z, r 12826 if x == nil { 12827 r.EncodeNil() 12828 } else { 12829 if false { 12830 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12831 z.EncExtension(x, yyxt1) 12832 } else { 12833 h.encObjectDiffs((ObjectDiffs)(x), e) 12834 } 12835 } 12836 } 12837 12838 func (x *ObjectDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 12839 var h codecSelfer100 12840 z, r := codec1978.GenHelperDecoder(d) 12841 _, _, _ = h, z, r 12842 if false { 12843 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12844 z.DecExtension(x, yyxt1) 12845 } else { 12846 h.decObjectDiffs((*ObjectDiffs)(x), d) 12847 } 12848 } 12849 12850 func (x *FieldDiff) CodecEncodeSelf(e *codec1978.Encoder) { 12851 var h codecSelfer100 12852 z, r := codec1978.GenHelperEncoder(e) 12853 _, _, _ = h, z, r 12854 if x == nil { 12855 r.EncodeNil() 12856 } else { 12857 if false { 12858 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 12859 z.EncExtension(x, yyxt1) 12860 } else { 12861 yysep2 := !z.EncBinary() 12862 yy2arr2 := z.EncBasicHandle().StructToArray 12863 _, _ = yysep2, yy2arr2 12864 const yyr2 bool = false // struct tag has 'toArray' 12865 if yyr2 || yy2arr2 { 12866 r.WriteArrayStart(5) 12867 } else { 12868 r.WriteMapStart(5) 12869 } 12870 if yyr2 || yy2arr2 { 12871 r.WriteArrayElem() 12872 x.Type.CodecEncodeSelf(e) 12873 } else { 12874 r.WriteMapElemKey() 12875 if z.IsJSONHandle() { 12876 z.WriteStr("\"Type\"") 12877 } else { 12878 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 12879 } 12880 r.WriteMapElemValue() 12881 x.Type.CodecEncodeSelf(e) 12882 } 12883 if yyr2 || yy2arr2 { 12884 r.WriteArrayElem() 12885 if false { 12886 } else { 12887 if z.EncBasicHandle().StringToRaw { 12888 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12889 } else { 12890 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12891 } 12892 } 12893 } else { 12894 r.WriteMapElemKey() 12895 if z.IsJSONHandle() { 12896 z.WriteStr("\"Name\"") 12897 } else { 12898 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 12899 } 12900 r.WriteMapElemValue() 12901 if false { 12902 } else { 12903 if z.EncBasicHandle().StringToRaw { 12904 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 12905 } else { 12906 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 12907 } 12908 } 12909 } 12910 if yyr2 || yy2arr2 { 12911 r.WriteArrayElem() 12912 if false { 12913 } else { 12914 if z.EncBasicHandle().StringToRaw { 12915 r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) 12916 } else { 12917 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) 12918 } 12919 } 12920 } else { 12921 r.WriteMapElemKey() 12922 if z.IsJSONHandle() { 12923 z.WriteStr("\"Old\"") 12924 } else { 12925 r.EncodeStringEnc(codecSelferCcUTF8100, `Old`) 12926 } 12927 r.WriteMapElemValue() 12928 if false { 12929 } else { 12930 if z.EncBasicHandle().StringToRaw { 12931 r.EncodeStringBytesRaw(z.BytesView(string(x.Old))) 12932 } else { 12933 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Old)) 12934 } 12935 } 12936 } 12937 if yyr2 || yy2arr2 { 12938 r.WriteArrayElem() 12939 if false { 12940 } else { 12941 if z.EncBasicHandle().StringToRaw { 12942 r.EncodeStringBytesRaw(z.BytesView(string(x.New))) 12943 } else { 12944 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) 12945 } 12946 } 12947 } else { 12948 r.WriteMapElemKey() 12949 if z.IsJSONHandle() { 12950 z.WriteStr("\"New\"") 12951 } else { 12952 r.EncodeStringEnc(codecSelferCcUTF8100, `New`) 12953 } 12954 r.WriteMapElemValue() 12955 if false { 12956 } else { 12957 if z.EncBasicHandle().StringToRaw { 12958 r.EncodeStringBytesRaw(z.BytesView(string(x.New))) 12959 } else { 12960 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.New)) 12961 } 12962 } 12963 } 12964 if yyr2 || yy2arr2 { 12965 r.WriteArrayElem() 12966 if x.Annotations == nil { 12967 r.EncodeNil() 12968 } else { 12969 if false { 12970 } else { 12971 z.F.EncSliceStringV(x.Annotations, e) 12972 } 12973 } 12974 } else { 12975 r.WriteMapElemKey() 12976 if z.IsJSONHandle() { 12977 z.WriteStr("\"Annotations\"") 12978 } else { 12979 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 12980 } 12981 r.WriteMapElemValue() 12982 if x.Annotations == nil { 12983 r.EncodeNil() 12984 } else { 12985 if false { 12986 } else { 12987 z.F.EncSliceStringV(x.Annotations, e) 12988 } 12989 } 12990 } 12991 if yyr2 || yy2arr2 { 12992 r.WriteArrayEnd() 12993 } else { 12994 r.WriteMapEnd() 12995 } 12996 } 12997 } 12998 } 12999 13000 func (x *FieldDiff) CodecDecodeSelf(d *codec1978.Decoder) { 13001 var h codecSelfer100 13002 z, r := codec1978.GenHelperDecoder(d) 13003 _, _, _ = h, z, r 13004 if false { 13005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13006 z.DecExtension(x, yyxt1) 13007 } else { 13008 yyct2 := r.ContainerType() 13009 if yyct2 == codecSelferValueTypeMap100 { 13010 yyl2 := r.ReadMapStart() 13011 if yyl2 == 0 { 13012 r.ReadMapEnd() 13013 } else { 13014 x.codecDecodeSelfFromMap(yyl2, d) 13015 } 13016 } else if yyct2 == codecSelferValueTypeArray100 { 13017 yyl2 := r.ReadArrayStart() 13018 if yyl2 == 0 { 13019 r.ReadArrayEnd() 13020 } else { 13021 x.codecDecodeSelfFromArray(yyl2, d) 13022 } 13023 } else { 13024 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13025 } 13026 } 13027 } 13028 13029 func (x *FieldDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13030 var h codecSelfer100 13031 z, r := codec1978.GenHelperDecoder(d) 13032 _, _, _ = h, z, r 13033 var yyhl3 bool = l >= 0 13034 for yyj3 := 0; ; yyj3++ { 13035 if yyhl3 { 13036 if yyj3 >= l { 13037 break 13038 } 13039 } else { 13040 if r.CheckBreak() { 13041 break 13042 } 13043 } 13044 r.ReadMapElemKey() 13045 yys3 := z.StringView(r.DecodeStringAsBytes()) 13046 r.ReadMapElemValue() 13047 switch yys3 { 13048 case "Type": 13049 if r.TryDecodeAsNil() { 13050 x.Type = "" 13051 } else { 13052 x.Type.CodecDecodeSelf(d) 13053 } 13054 case "Name": 13055 if r.TryDecodeAsNil() { 13056 x.Name = "" 13057 } else { 13058 x.Name = (string)(r.DecodeString()) 13059 } 13060 case "Old": 13061 if r.TryDecodeAsNil() { 13062 x.Old = "" 13063 } else { 13064 x.Old = (string)(r.DecodeString()) 13065 } 13066 case "New": 13067 if r.TryDecodeAsNil() { 13068 x.New = "" 13069 } else { 13070 x.New = (string)(r.DecodeString()) 13071 } 13072 case "Annotations": 13073 if r.TryDecodeAsNil() { 13074 x.Annotations = nil 13075 } else { 13076 if false { 13077 } else { 13078 z.F.DecSliceStringX(&x.Annotations, d) 13079 } 13080 } 13081 default: 13082 z.DecStructFieldNotFound(-1, yys3) 13083 } // end switch yys3 13084 } // end for yyj3 13085 r.ReadMapEnd() 13086 } 13087 13088 func (x *FieldDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13089 var h codecSelfer100 13090 z, r := codec1978.GenHelperDecoder(d) 13091 _, _, _ = h, z, r 13092 var yyj10 int 13093 var yyb10 bool 13094 var yyhl10 bool = l >= 0 13095 yyj10++ 13096 if yyhl10 { 13097 yyb10 = yyj10 > l 13098 } else { 13099 yyb10 = r.CheckBreak() 13100 } 13101 if yyb10 { 13102 r.ReadArrayEnd() 13103 return 13104 } 13105 r.ReadArrayElem() 13106 if r.TryDecodeAsNil() { 13107 x.Type = "" 13108 } else { 13109 x.Type.CodecDecodeSelf(d) 13110 } 13111 yyj10++ 13112 if yyhl10 { 13113 yyb10 = yyj10 > l 13114 } else { 13115 yyb10 = r.CheckBreak() 13116 } 13117 if yyb10 { 13118 r.ReadArrayEnd() 13119 return 13120 } 13121 r.ReadArrayElem() 13122 if r.TryDecodeAsNil() { 13123 x.Name = "" 13124 } else { 13125 x.Name = (string)(r.DecodeString()) 13126 } 13127 yyj10++ 13128 if yyhl10 { 13129 yyb10 = yyj10 > l 13130 } else { 13131 yyb10 = r.CheckBreak() 13132 } 13133 if yyb10 { 13134 r.ReadArrayEnd() 13135 return 13136 } 13137 r.ReadArrayElem() 13138 if r.TryDecodeAsNil() { 13139 x.Old = "" 13140 } else { 13141 x.Old = (string)(r.DecodeString()) 13142 } 13143 yyj10++ 13144 if yyhl10 { 13145 yyb10 = yyj10 > l 13146 } else { 13147 yyb10 = r.CheckBreak() 13148 } 13149 if yyb10 { 13150 r.ReadArrayEnd() 13151 return 13152 } 13153 r.ReadArrayElem() 13154 if r.TryDecodeAsNil() { 13155 x.New = "" 13156 } else { 13157 x.New = (string)(r.DecodeString()) 13158 } 13159 yyj10++ 13160 if yyhl10 { 13161 yyb10 = yyj10 > l 13162 } else { 13163 yyb10 = r.CheckBreak() 13164 } 13165 if yyb10 { 13166 r.ReadArrayEnd() 13167 return 13168 } 13169 r.ReadArrayElem() 13170 if r.TryDecodeAsNil() { 13171 x.Annotations = nil 13172 } else { 13173 if false { 13174 } else { 13175 z.F.DecSliceStringX(&x.Annotations, d) 13176 } 13177 } 13178 for { 13179 yyj10++ 13180 if yyhl10 { 13181 yyb10 = yyj10 > l 13182 } else { 13183 yyb10 = r.CheckBreak() 13184 } 13185 if yyb10 { 13186 break 13187 } 13188 r.ReadArrayElem() 13189 z.DecStructFieldNotFound(yyj10-1, "") 13190 } 13191 r.ReadArrayEnd() 13192 } 13193 13194 func (x FieldDiffs) CodecEncodeSelf(e *codec1978.Encoder) { 13195 var h codecSelfer100 13196 z, r := codec1978.GenHelperEncoder(e) 13197 _, _, _ = h, z, r 13198 if x == nil { 13199 r.EncodeNil() 13200 } else { 13201 if false { 13202 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13203 z.EncExtension(x, yyxt1) 13204 } else { 13205 h.encFieldDiffs((FieldDiffs)(x), e) 13206 } 13207 } 13208 } 13209 13210 func (x *FieldDiffs) CodecDecodeSelf(d *codec1978.Decoder) { 13211 var h codecSelfer100 13212 z, r := codec1978.GenHelperDecoder(d) 13213 _, _, _ = h, z, r 13214 if false { 13215 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13216 z.DecExtension(x, yyxt1) 13217 } else { 13218 h.decFieldDiffs((*FieldDiffs)(x), d) 13219 } 13220 } 13221 13222 func (x *NetworkIndex) CodecEncodeSelf(e *codec1978.Encoder) { 13223 var h codecSelfer100 13224 z, r := codec1978.GenHelperEncoder(e) 13225 _, _, _ = h, z, r 13226 if x == nil { 13227 r.EncodeNil() 13228 } else { 13229 if false { 13230 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13231 z.EncExtension(x, yyxt1) 13232 } else { 13233 yysep2 := !z.EncBinary() 13234 yy2arr2 := z.EncBasicHandle().StructToArray 13235 _, _ = yysep2, yy2arr2 13236 const yyr2 bool = false // struct tag has 'toArray' 13237 if yyr2 || yy2arr2 { 13238 r.WriteArrayStart(4) 13239 } else { 13240 r.WriteMapStart(4) 13241 } 13242 if yyr2 || yy2arr2 { 13243 r.WriteArrayElem() 13244 if x.AvailNetworks == nil { 13245 r.EncodeNil() 13246 } else { 13247 if false { 13248 } else { 13249 h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) 13250 } 13251 } 13252 } else { 13253 r.WriteMapElemKey() 13254 if z.IsJSONHandle() { 13255 z.WriteStr("\"AvailNetworks\"") 13256 } else { 13257 r.EncodeStringEnc(codecSelferCcUTF8100, `AvailNetworks`) 13258 } 13259 r.WriteMapElemValue() 13260 if x.AvailNetworks == nil { 13261 r.EncodeNil() 13262 } else { 13263 if false { 13264 } else { 13265 h.encSlicePtrtoNetworkResource(([]*NetworkResource)(x.AvailNetworks), e) 13266 } 13267 } 13268 } 13269 if yyr2 || yy2arr2 { 13270 r.WriteArrayElem() 13271 if x.AvailBandwidth == nil { 13272 r.EncodeNil() 13273 } else { 13274 if false { 13275 } else { 13276 z.F.EncMapStringIntV(x.AvailBandwidth, e) 13277 } 13278 } 13279 } else { 13280 r.WriteMapElemKey() 13281 if z.IsJSONHandle() { 13282 z.WriteStr("\"AvailBandwidth\"") 13283 } else { 13284 r.EncodeStringEnc(codecSelferCcUTF8100, `AvailBandwidth`) 13285 } 13286 r.WriteMapElemValue() 13287 if x.AvailBandwidth == nil { 13288 r.EncodeNil() 13289 } else { 13290 if false { 13291 } else { 13292 z.F.EncMapStringIntV(x.AvailBandwidth, e) 13293 } 13294 } 13295 } 13296 if yyr2 || yy2arr2 { 13297 r.WriteArrayElem() 13298 if x.UsedPorts == nil { 13299 r.EncodeNil() 13300 } else { 13301 if false { 13302 } else { 13303 h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) 13304 } 13305 } 13306 } else { 13307 r.WriteMapElemKey() 13308 if z.IsJSONHandle() { 13309 z.WriteStr("\"UsedPorts\"") 13310 } else { 13311 r.EncodeStringEnc(codecSelferCcUTF8100, `UsedPorts`) 13312 } 13313 r.WriteMapElemValue() 13314 if x.UsedPorts == nil { 13315 r.EncodeNil() 13316 } else { 13317 if false { 13318 } else { 13319 h.encMapstringBitmap((map[string]Bitmap)(x.UsedPorts), e) 13320 } 13321 } 13322 } 13323 if yyr2 || yy2arr2 { 13324 r.WriteArrayElem() 13325 if x.UsedBandwidth == nil { 13326 r.EncodeNil() 13327 } else { 13328 if false { 13329 } else { 13330 z.F.EncMapStringIntV(x.UsedBandwidth, e) 13331 } 13332 } 13333 } else { 13334 r.WriteMapElemKey() 13335 if z.IsJSONHandle() { 13336 z.WriteStr("\"UsedBandwidth\"") 13337 } else { 13338 r.EncodeStringEnc(codecSelferCcUTF8100, `UsedBandwidth`) 13339 } 13340 r.WriteMapElemValue() 13341 if x.UsedBandwidth == nil { 13342 r.EncodeNil() 13343 } else { 13344 if false { 13345 } else { 13346 z.F.EncMapStringIntV(x.UsedBandwidth, e) 13347 } 13348 } 13349 } 13350 if yyr2 || yy2arr2 { 13351 r.WriteArrayEnd() 13352 } else { 13353 r.WriteMapEnd() 13354 } 13355 } 13356 } 13357 } 13358 13359 func (x *NetworkIndex) CodecDecodeSelf(d *codec1978.Decoder) { 13360 var h codecSelfer100 13361 z, r := codec1978.GenHelperDecoder(d) 13362 _, _, _ = h, z, r 13363 if false { 13364 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13365 z.DecExtension(x, yyxt1) 13366 } else { 13367 yyct2 := r.ContainerType() 13368 if yyct2 == codecSelferValueTypeMap100 { 13369 yyl2 := r.ReadMapStart() 13370 if yyl2 == 0 { 13371 r.ReadMapEnd() 13372 } else { 13373 x.codecDecodeSelfFromMap(yyl2, d) 13374 } 13375 } else if yyct2 == codecSelferValueTypeArray100 { 13376 yyl2 := r.ReadArrayStart() 13377 if yyl2 == 0 { 13378 r.ReadArrayEnd() 13379 } else { 13380 x.codecDecodeSelfFromArray(yyl2, d) 13381 } 13382 } else { 13383 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13384 } 13385 } 13386 } 13387 13388 func (x *NetworkIndex) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13389 var h codecSelfer100 13390 z, r := codec1978.GenHelperDecoder(d) 13391 _, _, _ = h, z, r 13392 var yyhl3 bool = l >= 0 13393 for yyj3 := 0; ; yyj3++ { 13394 if yyhl3 { 13395 if yyj3 >= l { 13396 break 13397 } 13398 } else { 13399 if r.CheckBreak() { 13400 break 13401 } 13402 } 13403 r.ReadMapElemKey() 13404 yys3 := z.StringView(r.DecodeStringAsBytes()) 13405 r.ReadMapElemValue() 13406 switch yys3 { 13407 case "AvailNetworks": 13408 if r.TryDecodeAsNil() { 13409 x.AvailNetworks = nil 13410 } else { 13411 if false { 13412 } else { 13413 h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) 13414 } 13415 } 13416 case "AvailBandwidth": 13417 if r.TryDecodeAsNil() { 13418 x.AvailBandwidth = nil 13419 } else { 13420 if false { 13421 } else { 13422 z.F.DecMapStringIntX(&x.AvailBandwidth, d) 13423 } 13424 } 13425 case "UsedPorts": 13426 if r.TryDecodeAsNil() { 13427 x.UsedPorts = nil 13428 } else { 13429 if false { 13430 } else { 13431 h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) 13432 } 13433 } 13434 case "UsedBandwidth": 13435 if r.TryDecodeAsNil() { 13436 x.UsedBandwidth = nil 13437 } else { 13438 if false { 13439 } else { 13440 z.F.DecMapStringIntX(&x.UsedBandwidth, d) 13441 } 13442 } 13443 default: 13444 z.DecStructFieldNotFound(-1, yys3) 13445 } // end switch yys3 13446 } // end for yyj3 13447 r.ReadMapEnd() 13448 } 13449 13450 func (x *NetworkIndex) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13451 var h codecSelfer100 13452 z, r := codec1978.GenHelperDecoder(d) 13453 _, _, _ = h, z, r 13454 var yyj12 int 13455 var yyb12 bool 13456 var yyhl12 bool = l >= 0 13457 yyj12++ 13458 if yyhl12 { 13459 yyb12 = yyj12 > l 13460 } else { 13461 yyb12 = r.CheckBreak() 13462 } 13463 if yyb12 { 13464 r.ReadArrayEnd() 13465 return 13466 } 13467 r.ReadArrayElem() 13468 if r.TryDecodeAsNil() { 13469 x.AvailNetworks = nil 13470 } else { 13471 if false { 13472 } else { 13473 h.decSlicePtrtoNetworkResource((*[]*NetworkResource)(&x.AvailNetworks), d) 13474 } 13475 } 13476 yyj12++ 13477 if yyhl12 { 13478 yyb12 = yyj12 > l 13479 } else { 13480 yyb12 = r.CheckBreak() 13481 } 13482 if yyb12 { 13483 r.ReadArrayEnd() 13484 return 13485 } 13486 r.ReadArrayElem() 13487 if r.TryDecodeAsNil() { 13488 x.AvailBandwidth = nil 13489 } else { 13490 if false { 13491 } else { 13492 z.F.DecMapStringIntX(&x.AvailBandwidth, d) 13493 } 13494 } 13495 yyj12++ 13496 if yyhl12 { 13497 yyb12 = yyj12 > l 13498 } else { 13499 yyb12 = r.CheckBreak() 13500 } 13501 if yyb12 { 13502 r.ReadArrayEnd() 13503 return 13504 } 13505 r.ReadArrayElem() 13506 if r.TryDecodeAsNil() { 13507 x.UsedPorts = nil 13508 } else { 13509 if false { 13510 } else { 13511 h.decMapstringBitmap((*map[string]Bitmap)(&x.UsedPorts), d) 13512 } 13513 } 13514 yyj12++ 13515 if yyhl12 { 13516 yyb12 = yyj12 > l 13517 } else { 13518 yyb12 = r.CheckBreak() 13519 } 13520 if yyb12 { 13521 r.ReadArrayEnd() 13522 return 13523 } 13524 r.ReadArrayElem() 13525 if r.TryDecodeAsNil() { 13526 x.UsedBandwidth = nil 13527 } else { 13528 if false { 13529 } else { 13530 z.F.DecMapStringIntX(&x.UsedBandwidth, d) 13531 } 13532 } 13533 for { 13534 yyj12++ 13535 if yyhl12 { 13536 yyb12 = yyj12 > l 13537 } else { 13538 yyb12 = r.CheckBreak() 13539 } 13540 if yyb12 { 13541 break 13542 } 13543 r.ReadArrayElem() 13544 z.DecStructFieldNotFound(yyj12-1, "") 13545 } 13546 r.ReadArrayEnd() 13547 } 13548 13549 func (x *CSITopology) CodecEncodeSelf(e *codec1978.Encoder) { 13550 var h codecSelfer100 13551 z, r := codec1978.GenHelperEncoder(e) 13552 _, _, _ = h, z, r 13553 if x == nil { 13554 r.EncodeNil() 13555 } else { 13556 if false { 13557 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13558 z.EncExtension(x, yyxt1) 13559 } else { 13560 yysep2 := !z.EncBinary() 13561 yy2arr2 := z.EncBasicHandle().StructToArray 13562 _, _ = yysep2, yy2arr2 13563 const yyr2 bool = false // struct tag has 'toArray' 13564 if yyr2 || yy2arr2 { 13565 r.WriteArrayStart(1) 13566 } else { 13567 r.WriteMapStart(1) 13568 } 13569 if yyr2 || yy2arr2 { 13570 r.WriteArrayElem() 13571 if x.Segments == nil { 13572 r.EncodeNil() 13573 } else { 13574 if false { 13575 } else { 13576 z.F.EncMapStringStringV(x.Segments, e) 13577 } 13578 } 13579 } else { 13580 r.WriteMapElemKey() 13581 if z.IsJSONHandle() { 13582 z.WriteStr("\"Segments\"") 13583 } else { 13584 r.EncodeStringEnc(codecSelferCcUTF8100, `Segments`) 13585 } 13586 r.WriteMapElemValue() 13587 if x.Segments == nil { 13588 r.EncodeNil() 13589 } else { 13590 if false { 13591 } else { 13592 z.F.EncMapStringStringV(x.Segments, e) 13593 } 13594 } 13595 } 13596 if yyr2 || yy2arr2 { 13597 r.WriteArrayEnd() 13598 } else { 13599 r.WriteMapEnd() 13600 } 13601 } 13602 } 13603 } 13604 13605 func (x *CSITopology) CodecDecodeSelf(d *codec1978.Decoder) { 13606 var h codecSelfer100 13607 z, r := codec1978.GenHelperDecoder(d) 13608 _, _, _ = h, z, r 13609 if false { 13610 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13611 z.DecExtension(x, yyxt1) 13612 } else { 13613 yyct2 := r.ContainerType() 13614 if yyct2 == codecSelferValueTypeMap100 { 13615 yyl2 := r.ReadMapStart() 13616 if yyl2 == 0 { 13617 r.ReadMapEnd() 13618 } else { 13619 x.codecDecodeSelfFromMap(yyl2, d) 13620 } 13621 } else if yyct2 == codecSelferValueTypeArray100 { 13622 yyl2 := r.ReadArrayStart() 13623 if yyl2 == 0 { 13624 r.ReadArrayEnd() 13625 } else { 13626 x.codecDecodeSelfFromArray(yyl2, d) 13627 } 13628 } else { 13629 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13630 } 13631 } 13632 } 13633 13634 func (x *CSITopology) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13635 var h codecSelfer100 13636 z, r := codec1978.GenHelperDecoder(d) 13637 _, _, _ = h, z, r 13638 var yyhl3 bool = l >= 0 13639 for yyj3 := 0; ; yyj3++ { 13640 if yyhl3 { 13641 if yyj3 >= l { 13642 break 13643 } 13644 } else { 13645 if r.CheckBreak() { 13646 break 13647 } 13648 } 13649 r.ReadMapElemKey() 13650 yys3 := z.StringView(r.DecodeStringAsBytes()) 13651 r.ReadMapElemValue() 13652 switch yys3 { 13653 case "Segments": 13654 if r.TryDecodeAsNil() { 13655 x.Segments = nil 13656 } else { 13657 if false { 13658 } else { 13659 z.F.DecMapStringStringX(&x.Segments, d) 13660 } 13661 } 13662 default: 13663 z.DecStructFieldNotFound(-1, yys3) 13664 } // end switch yys3 13665 } // end for yyj3 13666 r.ReadMapEnd() 13667 } 13668 13669 func (x *CSITopology) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13670 var h codecSelfer100 13671 z, r := codec1978.GenHelperDecoder(d) 13672 _, _, _ = h, z, r 13673 var yyj6 int 13674 var yyb6 bool 13675 var yyhl6 bool = l >= 0 13676 yyj6++ 13677 if yyhl6 { 13678 yyb6 = yyj6 > l 13679 } else { 13680 yyb6 = r.CheckBreak() 13681 } 13682 if yyb6 { 13683 r.ReadArrayEnd() 13684 return 13685 } 13686 r.ReadArrayElem() 13687 if r.TryDecodeAsNil() { 13688 x.Segments = nil 13689 } else { 13690 if false { 13691 } else { 13692 z.F.DecMapStringStringX(&x.Segments, d) 13693 } 13694 } 13695 for { 13696 yyj6++ 13697 if yyhl6 { 13698 yyb6 = yyj6 > l 13699 } else { 13700 yyb6 = r.CheckBreak() 13701 } 13702 if yyb6 { 13703 break 13704 } 13705 r.ReadArrayElem() 13706 z.DecStructFieldNotFound(yyj6-1, "") 13707 } 13708 r.ReadArrayEnd() 13709 } 13710 13711 func (x *CSINodeInfo) CodecEncodeSelf(e *codec1978.Encoder) { 13712 var h codecSelfer100 13713 z, r := codec1978.GenHelperEncoder(e) 13714 _, _, _ = h, z, r 13715 if x == nil { 13716 r.EncodeNil() 13717 } else { 13718 if false { 13719 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13720 z.EncExtension(x, yyxt1) 13721 } else { 13722 yysep2 := !z.EncBinary() 13723 yy2arr2 := z.EncBasicHandle().StructToArray 13724 _, _ = yysep2, yy2arr2 13725 const yyr2 bool = false // struct tag has 'toArray' 13726 if yyr2 || yy2arr2 { 13727 r.WriteArrayStart(4) 13728 } else { 13729 r.WriteMapStart(4) 13730 } 13731 if yyr2 || yy2arr2 { 13732 r.WriteArrayElem() 13733 if false { 13734 } else { 13735 if z.EncBasicHandle().StringToRaw { 13736 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 13737 } else { 13738 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 13739 } 13740 } 13741 } else { 13742 r.WriteMapElemKey() 13743 if z.IsJSONHandle() { 13744 z.WriteStr("\"ID\"") 13745 } else { 13746 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 13747 } 13748 r.WriteMapElemValue() 13749 if false { 13750 } else { 13751 if z.EncBasicHandle().StringToRaw { 13752 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 13753 } else { 13754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 13755 } 13756 } 13757 } 13758 if yyr2 || yy2arr2 { 13759 r.WriteArrayElem() 13760 if false { 13761 } else { 13762 r.EncodeInt(int64(x.MaxVolumes)) 13763 } 13764 } else { 13765 r.WriteMapElemKey() 13766 if z.IsJSONHandle() { 13767 z.WriteStr("\"MaxVolumes\"") 13768 } else { 13769 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxVolumes`) 13770 } 13771 r.WriteMapElemValue() 13772 if false { 13773 } else { 13774 r.EncodeInt(int64(x.MaxVolumes)) 13775 } 13776 } 13777 var yyn9 bool 13778 if x.AccessibleTopology == nil { 13779 yyn9 = true 13780 goto LABEL9 13781 } 13782 LABEL9: 13783 if yyr2 || yy2arr2 { 13784 if yyn9 { 13785 r.WriteArrayElem() 13786 r.EncodeNil() 13787 } else { 13788 r.WriteArrayElem() 13789 if x.AccessibleTopology == nil { 13790 r.EncodeNil() 13791 } else { 13792 x.AccessibleTopology.CodecEncodeSelf(e) 13793 } 13794 } 13795 } else { 13796 r.WriteMapElemKey() 13797 if z.IsJSONHandle() { 13798 z.WriteStr("\"AccessibleTopology\"") 13799 } else { 13800 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessibleTopology`) 13801 } 13802 r.WriteMapElemValue() 13803 if yyn9 { 13804 r.EncodeNil() 13805 } else { 13806 if x.AccessibleTopology == nil { 13807 r.EncodeNil() 13808 } else { 13809 x.AccessibleTopology.CodecEncodeSelf(e) 13810 } 13811 } 13812 } 13813 if yyr2 || yy2arr2 { 13814 r.WriteArrayElem() 13815 if false { 13816 } else { 13817 r.EncodeBool(bool(x.RequiresNodeStageVolume)) 13818 } 13819 } else { 13820 r.WriteMapElemKey() 13821 if z.IsJSONHandle() { 13822 z.WriteStr("\"RequiresNodeStageVolume\"") 13823 } else { 13824 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresNodeStageVolume`) 13825 } 13826 r.WriteMapElemValue() 13827 if false { 13828 } else { 13829 r.EncodeBool(bool(x.RequiresNodeStageVolume)) 13830 } 13831 } 13832 if yyr2 || yy2arr2 { 13833 r.WriteArrayEnd() 13834 } else { 13835 r.WriteMapEnd() 13836 } 13837 } 13838 } 13839 } 13840 13841 func (x *CSINodeInfo) CodecDecodeSelf(d *codec1978.Decoder) { 13842 var h codecSelfer100 13843 z, r := codec1978.GenHelperDecoder(d) 13844 _, _, _ = h, z, r 13845 if false { 13846 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 13847 z.DecExtension(x, yyxt1) 13848 } else { 13849 yyct2 := r.ContainerType() 13850 if yyct2 == codecSelferValueTypeMap100 { 13851 yyl2 := r.ReadMapStart() 13852 if yyl2 == 0 { 13853 r.ReadMapEnd() 13854 } else { 13855 x.codecDecodeSelfFromMap(yyl2, d) 13856 } 13857 } else if yyct2 == codecSelferValueTypeArray100 { 13858 yyl2 := r.ReadArrayStart() 13859 if yyl2 == 0 { 13860 r.ReadArrayEnd() 13861 } else { 13862 x.codecDecodeSelfFromArray(yyl2, d) 13863 } 13864 } else { 13865 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 13866 } 13867 } 13868 } 13869 13870 func (x *CSINodeInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 13871 var h codecSelfer100 13872 z, r := codec1978.GenHelperDecoder(d) 13873 _, _, _ = h, z, r 13874 var yyhl3 bool = l >= 0 13875 for yyj3 := 0; ; yyj3++ { 13876 if yyhl3 { 13877 if yyj3 >= l { 13878 break 13879 } 13880 } else { 13881 if r.CheckBreak() { 13882 break 13883 } 13884 } 13885 r.ReadMapElemKey() 13886 yys3 := z.StringView(r.DecodeStringAsBytes()) 13887 r.ReadMapElemValue() 13888 switch yys3 { 13889 case "ID": 13890 if r.TryDecodeAsNil() { 13891 x.ID = "" 13892 } else { 13893 x.ID = (string)(r.DecodeString()) 13894 } 13895 case "MaxVolumes": 13896 if r.TryDecodeAsNil() { 13897 x.MaxVolumes = 0 13898 } else { 13899 x.MaxVolumes = (int64)(r.DecodeInt64()) 13900 } 13901 case "AccessibleTopology": 13902 if r.TryDecodeAsNil() { 13903 if true && x.AccessibleTopology != nil { 13904 x.AccessibleTopology = nil 13905 } 13906 } else { 13907 if x.AccessibleTopology == nil { 13908 x.AccessibleTopology = new(CSITopology) 13909 } 13910 13911 x.AccessibleTopology.CodecDecodeSelf(d) 13912 } 13913 case "RequiresNodeStageVolume": 13914 if r.TryDecodeAsNil() { 13915 x.RequiresNodeStageVolume = false 13916 } else { 13917 x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) 13918 } 13919 default: 13920 z.DecStructFieldNotFound(-1, yys3) 13921 } // end switch yys3 13922 } // end for yyj3 13923 r.ReadMapEnd() 13924 } 13925 13926 func (x *CSINodeInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 13927 var h codecSelfer100 13928 z, r := codec1978.GenHelperDecoder(d) 13929 _, _, _ = h, z, r 13930 var yyj8 int 13931 var yyb8 bool 13932 var yyhl8 bool = l >= 0 13933 yyj8++ 13934 if yyhl8 { 13935 yyb8 = yyj8 > l 13936 } else { 13937 yyb8 = r.CheckBreak() 13938 } 13939 if yyb8 { 13940 r.ReadArrayEnd() 13941 return 13942 } 13943 r.ReadArrayElem() 13944 if r.TryDecodeAsNil() { 13945 x.ID = "" 13946 } else { 13947 x.ID = (string)(r.DecodeString()) 13948 } 13949 yyj8++ 13950 if yyhl8 { 13951 yyb8 = yyj8 > l 13952 } else { 13953 yyb8 = r.CheckBreak() 13954 } 13955 if yyb8 { 13956 r.ReadArrayEnd() 13957 return 13958 } 13959 r.ReadArrayElem() 13960 if r.TryDecodeAsNil() { 13961 x.MaxVolumes = 0 13962 } else { 13963 x.MaxVolumes = (int64)(r.DecodeInt64()) 13964 } 13965 yyj8++ 13966 if yyhl8 { 13967 yyb8 = yyj8 > l 13968 } else { 13969 yyb8 = r.CheckBreak() 13970 } 13971 if yyb8 { 13972 r.ReadArrayEnd() 13973 return 13974 } 13975 r.ReadArrayElem() 13976 if r.TryDecodeAsNil() { 13977 if true && x.AccessibleTopology != nil { 13978 x.AccessibleTopology = nil 13979 } 13980 } else { 13981 if x.AccessibleTopology == nil { 13982 x.AccessibleTopology = new(CSITopology) 13983 } 13984 13985 x.AccessibleTopology.CodecDecodeSelf(d) 13986 } 13987 yyj8++ 13988 if yyhl8 { 13989 yyb8 = yyj8 > l 13990 } else { 13991 yyb8 = r.CheckBreak() 13992 } 13993 if yyb8 { 13994 r.ReadArrayEnd() 13995 return 13996 } 13997 r.ReadArrayElem() 13998 if r.TryDecodeAsNil() { 13999 x.RequiresNodeStageVolume = false 14000 } else { 14001 x.RequiresNodeStageVolume = (bool)(r.DecodeBool()) 14002 } 14003 for { 14004 yyj8++ 14005 if yyhl8 { 14006 yyb8 = yyj8 > l 14007 } else { 14008 yyb8 = r.CheckBreak() 14009 } 14010 if yyb8 { 14011 break 14012 } 14013 r.ReadArrayElem() 14014 z.DecStructFieldNotFound(yyj8-1, "") 14015 } 14016 r.ReadArrayEnd() 14017 } 14018 14019 func (x *CSIControllerInfo) CodecEncodeSelf(e *codec1978.Encoder) { 14020 var h codecSelfer100 14021 z, r := codec1978.GenHelperEncoder(e) 14022 _, _, _ = h, z, r 14023 if x == nil { 14024 r.EncodeNil() 14025 } else { 14026 if false { 14027 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14028 z.EncExtension(x, yyxt1) 14029 } else { 14030 yysep2 := !z.EncBinary() 14031 yy2arr2 := z.EncBasicHandle().StructToArray 14032 _, _ = yysep2, yy2arr2 14033 const yyr2 bool = false // struct tag has 'toArray' 14034 if yyr2 || yy2arr2 { 14035 r.WriteArrayStart(4) 14036 } else { 14037 r.WriteMapStart(4) 14038 } 14039 if yyr2 || yy2arr2 { 14040 r.WriteArrayElem() 14041 if false { 14042 } else { 14043 r.EncodeBool(bool(x.SupportsReadOnlyAttach)) 14044 } 14045 } else { 14046 r.WriteMapElemKey() 14047 if z.IsJSONHandle() { 14048 z.WriteStr("\"SupportsReadOnlyAttach\"") 14049 } else { 14050 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsReadOnlyAttach`) 14051 } 14052 r.WriteMapElemValue() 14053 if false { 14054 } else { 14055 r.EncodeBool(bool(x.SupportsReadOnlyAttach)) 14056 } 14057 } 14058 if yyr2 || yy2arr2 { 14059 r.WriteArrayElem() 14060 if false { 14061 } else { 14062 r.EncodeBool(bool(x.SupportsAttachDetach)) 14063 } 14064 } else { 14065 r.WriteMapElemKey() 14066 if z.IsJSONHandle() { 14067 z.WriteStr("\"SupportsAttachDetach\"") 14068 } else { 14069 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsAttachDetach`) 14070 } 14071 r.WriteMapElemValue() 14072 if false { 14073 } else { 14074 r.EncodeBool(bool(x.SupportsAttachDetach)) 14075 } 14076 } 14077 if yyr2 || yy2arr2 { 14078 r.WriteArrayElem() 14079 if false { 14080 } else { 14081 r.EncodeBool(bool(x.SupportsListVolumes)) 14082 } 14083 } else { 14084 r.WriteMapElemKey() 14085 if z.IsJSONHandle() { 14086 z.WriteStr("\"SupportsListVolumes\"") 14087 } else { 14088 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumes`) 14089 } 14090 r.WriteMapElemValue() 14091 if false { 14092 } else { 14093 r.EncodeBool(bool(x.SupportsListVolumes)) 14094 } 14095 } 14096 if yyr2 || yy2arr2 { 14097 r.WriteArrayElem() 14098 if false { 14099 } else { 14100 r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) 14101 } 14102 } else { 14103 r.WriteMapElemKey() 14104 if z.IsJSONHandle() { 14105 z.WriteStr("\"SupportsListVolumesAttachedNodes\"") 14106 } else { 14107 r.EncodeStringEnc(codecSelferCcUTF8100, `SupportsListVolumesAttachedNodes`) 14108 } 14109 r.WriteMapElemValue() 14110 if false { 14111 } else { 14112 r.EncodeBool(bool(x.SupportsListVolumesAttachedNodes)) 14113 } 14114 } 14115 if yyr2 || yy2arr2 { 14116 r.WriteArrayEnd() 14117 } else { 14118 r.WriteMapEnd() 14119 } 14120 } 14121 } 14122 } 14123 14124 func (x *CSIControllerInfo) CodecDecodeSelf(d *codec1978.Decoder) { 14125 var h codecSelfer100 14126 z, r := codec1978.GenHelperDecoder(d) 14127 _, _, _ = h, z, r 14128 if false { 14129 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14130 z.DecExtension(x, yyxt1) 14131 } else { 14132 yyct2 := r.ContainerType() 14133 if yyct2 == codecSelferValueTypeMap100 { 14134 yyl2 := r.ReadMapStart() 14135 if yyl2 == 0 { 14136 r.ReadMapEnd() 14137 } else { 14138 x.codecDecodeSelfFromMap(yyl2, d) 14139 } 14140 } else if yyct2 == codecSelferValueTypeArray100 { 14141 yyl2 := r.ReadArrayStart() 14142 if yyl2 == 0 { 14143 r.ReadArrayEnd() 14144 } else { 14145 x.codecDecodeSelfFromArray(yyl2, d) 14146 } 14147 } else { 14148 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14149 } 14150 } 14151 } 14152 14153 func (x *CSIControllerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14154 var h codecSelfer100 14155 z, r := codec1978.GenHelperDecoder(d) 14156 _, _, _ = h, z, r 14157 var yyhl3 bool = l >= 0 14158 for yyj3 := 0; ; yyj3++ { 14159 if yyhl3 { 14160 if yyj3 >= l { 14161 break 14162 } 14163 } else { 14164 if r.CheckBreak() { 14165 break 14166 } 14167 } 14168 r.ReadMapElemKey() 14169 yys3 := z.StringView(r.DecodeStringAsBytes()) 14170 r.ReadMapElemValue() 14171 switch yys3 { 14172 case "SupportsReadOnlyAttach": 14173 if r.TryDecodeAsNil() { 14174 x.SupportsReadOnlyAttach = false 14175 } else { 14176 x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) 14177 } 14178 case "SupportsAttachDetach": 14179 if r.TryDecodeAsNil() { 14180 x.SupportsAttachDetach = false 14181 } else { 14182 x.SupportsAttachDetach = (bool)(r.DecodeBool()) 14183 } 14184 case "SupportsListVolumes": 14185 if r.TryDecodeAsNil() { 14186 x.SupportsListVolumes = false 14187 } else { 14188 x.SupportsListVolumes = (bool)(r.DecodeBool()) 14189 } 14190 case "SupportsListVolumesAttachedNodes": 14191 if r.TryDecodeAsNil() { 14192 x.SupportsListVolumesAttachedNodes = false 14193 } else { 14194 x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) 14195 } 14196 default: 14197 z.DecStructFieldNotFound(-1, yys3) 14198 } // end switch yys3 14199 } // end for yyj3 14200 r.ReadMapEnd() 14201 } 14202 14203 func (x *CSIControllerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 14204 var h codecSelfer100 14205 z, r := codec1978.GenHelperDecoder(d) 14206 _, _, _ = h, z, r 14207 var yyj8 int 14208 var yyb8 bool 14209 var yyhl8 bool = l >= 0 14210 yyj8++ 14211 if yyhl8 { 14212 yyb8 = yyj8 > l 14213 } else { 14214 yyb8 = r.CheckBreak() 14215 } 14216 if yyb8 { 14217 r.ReadArrayEnd() 14218 return 14219 } 14220 r.ReadArrayElem() 14221 if r.TryDecodeAsNil() { 14222 x.SupportsReadOnlyAttach = false 14223 } else { 14224 x.SupportsReadOnlyAttach = (bool)(r.DecodeBool()) 14225 } 14226 yyj8++ 14227 if yyhl8 { 14228 yyb8 = yyj8 > l 14229 } else { 14230 yyb8 = r.CheckBreak() 14231 } 14232 if yyb8 { 14233 r.ReadArrayEnd() 14234 return 14235 } 14236 r.ReadArrayElem() 14237 if r.TryDecodeAsNil() { 14238 x.SupportsAttachDetach = false 14239 } else { 14240 x.SupportsAttachDetach = (bool)(r.DecodeBool()) 14241 } 14242 yyj8++ 14243 if yyhl8 { 14244 yyb8 = yyj8 > l 14245 } else { 14246 yyb8 = r.CheckBreak() 14247 } 14248 if yyb8 { 14249 r.ReadArrayEnd() 14250 return 14251 } 14252 r.ReadArrayElem() 14253 if r.TryDecodeAsNil() { 14254 x.SupportsListVolumes = false 14255 } else { 14256 x.SupportsListVolumes = (bool)(r.DecodeBool()) 14257 } 14258 yyj8++ 14259 if yyhl8 { 14260 yyb8 = yyj8 > l 14261 } else { 14262 yyb8 = r.CheckBreak() 14263 } 14264 if yyb8 { 14265 r.ReadArrayEnd() 14266 return 14267 } 14268 r.ReadArrayElem() 14269 if r.TryDecodeAsNil() { 14270 x.SupportsListVolumesAttachedNodes = false 14271 } else { 14272 x.SupportsListVolumesAttachedNodes = (bool)(r.DecodeBool()) 14273 } 14274 for { 14275 yyj8++ 14276 if yyhl8 { 14277 yyb8 = yyj8 > l 14278 } else { 14279 yyb8 = r.CheckBreak() 14280 } 14281 if yyb8 { 14282 break 14283 } 14284 r.ReadArrayElem() 14285 z.DecStructFieldNotFound(yyj8-1, "") 14286 } 14287 r.ReadArrayEnd() 14288 } 14289 14290 func (x *CSIInfo) CodecEncodeSelf(e *codec1978.Encoder) { 14291 var h codecSelfer100 14292 z, r := codec1978.GenHelperEncoder(e) 14293 _, _, _ = h, z, r 14294 if x == nil { 14295 r.EncodeNil() 14296 } else { 14297 if false { 14298 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14299 z.EncExtension(x, yyxt1) 14300 } else { 14301 yysep2 := !z.EncBinary() 14302 yy2arr2 := z.EncBasicHandle().StructToArray 14303 _, _ = yysep2, yy2arr2 14304 const yyr2 bool = false // struct tag has 'toArray' 14305 if yyr2 || yy2arr2 { 14306 r.WriteArrayStart(11) 14307 } else { 14308 r.WriteMapStart(11) 14309 } 14310 if yyr2 || yy2arr2 { 14311 r.WriteArrayElem() 14312 if false { 14313 } else { 14314 if z.EncBasicHandle().StringToRaw { 14315 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 14316 } else { 14317 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 14318 } 14319 } 14320 } else { 14321 r.WriteMapElemKey() 14322 if z.IsJSONHandle() { 14323 z.WriteStr("\"PluginID\"") 14324 } else { 14325 r.EncodeStringEnc(codecSelferCcUTF8100, `PluginID`) 14326 } 14327 r.WriteMapElemValue() 14328 if false { 14329 } else { 14330 if z.EncBasicHandle().StringToRaw { 14331 r.EncodeStringBytesRaw(z.BytesView(string(x.PluginID))) 14332 } else { 14333 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PluginID)) 14334 } 14335 } 14336 } 14337 if yyr2 || yy2arr2 { 14338 r.WriteArrayElem() 14339 if false { 14340 } else { 14341 if z.EncBasicHandle().StringToRaw { 14342 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 14343 } else { 14344 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 14345 } 14346 } 14347 } else { 14348 r.WriteMapElemKey() 14349 if z.IsJSONHandle() { 14350 z.WriteStr("\"AllocID\"") 14351 } else { 14352 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 14353 } 14354 r.WriteMapElemValue() 14355 if false { 14356 } else { 14357 if z.EncBasicHandle().StringToRaw { 14358 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 14359 } else { 14360 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 14361 } 14362 } 14363 } 14364 if yyr2 || yy2arr2 { 14365 r.WriteArrayElem() 14366 if false { 14367 } else { 14368 r.EncodeBool(bool(x.Healthy)) 14369 } 14370 } else { 14371 r.WriteMapElemKey() 14372 if z.IsJSONHandle() { 14373 z.WriteStr("\"Healthy\"") 14374 } else { 14375 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 14376 } 14377 r.WriteMapElemValue() 14378 if false { 14379 } else { 14380 r.EncodeBool(bool(x.Healthy)) 14381 } 14382 } 14383 if yyr2 || yy2arr2 { 14384 r.WriteArrayElem() 14385 if false { 14386 } else { 14387 if z.EncBasicHandle().StringToRaw { 14388 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 14389 } else { 14390 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 14391 } 14392 } 14393 } else { 14394 r.WriteMapElemKey() 14395 if z.IsJSONHandle() { 14396 z.WriteStr("\"HealthDescription\"") 14397 } else { 14398 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 14399 } 14400 r.WriteMapElemValue() 14401 if false { 14402 } else { 14403 if z.EncBasicHandle().StringToRaw { 14404 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 14405 } else { 14406 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 14407 } 14408 } 14409 } 14410 if yyr2 || yy2arr2 { 14411 r.WriteArrayElem() 14412 if false { 14413 } else if !z.EncBasicHandle().TimeNotBuiltin { 14414 r.EncodeTime(x.UpdateTime) 14415 } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { 14416 z.EncExtension(x.UpdateTime, yyxt16) 14417 } else if z.EncBinary() { 14418 z.EncBinaryMarshal(x.UpdateTime) 14419 } else if !z.EncBinary() && z.IsJSONHandle() { 14420 z.EncJSONMarshal(x.UpdateTime) 14421 } else { 14422 z.EncFallback(x.UpdateTime) 14423 } 14424 } else { 14425 r.WriteMapElemKey() 14426 if z.IsJSONHandle() { 14427 z.WriteStr("\"UpdateTime\"") 14428 } else { 14429 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) 14430 } 14431 r.WriteMapElemValue() 14432 if false { 14433 } else if !z.EncBasicHandle().TimeNotBuiltin { 14434 r.EncodeTime(x.UpdateTime) 14435 } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { 14436 z.EncExtension(x.UpdateTime, yyxt17) 14437 } else if z.EncBinary() { 14438 z.EncBinaryMarshal(x.UpdateTime) 14439 } else if !z.EncBinary() && z.IsJSONHandle() { 14440 z.EncJSONMarshal(x.UpdateTime) 14441 } else { 14442 z.EncFallback(x.UpdateTime) 14443 } 14444 } 14445 if yyr2 || yy2arr2 { 14446 r.WriteArrayElem() 14447 if false { 14448 } else { 14449 if z.EncBasicHandle().StringToRaw { 14450 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 14451 } else { 14452 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 14453 } 14454 } 14455 } else { 14456 r.WriteMapElemKey() 14457 if z.IsJSONHandle() { 14458 z.WriteStr("\"Provider\"") 14459 } else { 14460 r.EncodeStringEnc(codecSelferCcUTF8100, `Provider`) 14461 } 14462 r.WriteMapElemValue() 14463 if false { 14464 } else { 14465 if z.EncBasicHandle().StringToRaw { 14466 r.EncodeStringBytesRaw(z.BytesView(string(x.Provider))) 14467 } else { 14468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Provider)) 14469 } 14470 } 14471 } 14472 if yyr2 || yy2arr2 { 14473 r.WriteArrayElem() 14474 if false { 14475 } else { 14476 if z.EncBasicHandle().StringToRaw { 14477 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 14478 } else { 14479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 14480 } 14481 } 14482 } else { 14483 r.WriteMapElemKey() 14484 if z.IsJSONHandle() { 14485 z.WriteStr("\"ProviderVersion\"") 14486 } else { 14487 r.EncodeStringEnc(codecSelferCcUTF8100, `ProviderVersion`) 14488 } 14489 r.WriteMapElemValue() 14490 if false { 14491 } else { 14492 if z.EncBasicHandle().StringToRaw { 14493 r.EncodeStringBytesRaw(z.BytesView(string(x.ProviderVersion))) 14494 } else { 14495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ProviderVersion)) 14496 } 14497 } 14498 } 14499 if yyr2 || yy2arr2 { 14500 r.WriteArrayElem() 14501 if false { 14502 } else { 14503 r.EncodeBool(bool(x.RequiresControllerPlugin)) 14504 } 14505 } else { 14506 r.WriteMapElemKey() 14507 if z.IsJSONHandle() { 14508 z.WriteStr("\"RequiresControllerPlugin\"") 14509 } else { 14510 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresControllerPlugin`) 14511 } 14512 r.WriteMapElemValue() 14513 if false { 14514 } else { 14515 r.EncodeBool(bool(x.RequiresControllerPlugin)) 14516 } 14517 } 14518 if yyr2 || yy2arr2 { 14519 r.WriteArrayElem() 14520 if false { 14521 } else { 14522 r.EncodeBool(bool(x.RequiresTopologies)) 14523 } 14524 } else { 14525 r.WriteMapElemKey() 14526 if z.IsJSONHandle() { 14527 z.WriteStr("\"RequiresTopologies\"") 14528 } else { 14529 r.EncodeStringEnc(codecSelferCcUTF8100, `RequiresTopologies`) 14530 } 14531 r.WriteMapElemValue() 14532 if false { 14533 } else { 14534 r.EncodeBool(bool(x.RequiresTopologies)) 14535 } 14536 } 14537 var yyn30 bool 14538 if x.ControllerInfo == nil { 14539 yyn30 = true 14540 goto LABEL30 14541 } 14542 LABEL30: 14543 if yyr2 || yy2arr2 { 14544 if yyn30 { 14545 r.WriteArrayElem() 14546 r.EncodeNil() 14547 } else { 14548 r.WriteArrayElem() 14549 if x.ControllerInfo == nil { 14550 r.EncodeNil() 14551 } else { 14552 x.ControllerInfo.CodecEncodeSelf(e) 14553 } 14554 } 14555 } else { 14556 r.WriteMapElemKey() 14557 if z.IsJSONHandle() { 14558 z.WriteStr("\"ControllerInfo\"") 14559 } else { 14560 r.EncodeStringEnc(codecSelferCcUTF8100, `ControllerInfo`) 14561 } 14562 r.WriteMapElemValue() 14563 if yyn30 { 14564 r.EncodeNil() 14565 } else { 14566 if x.ControllerInfo == nil { 14567 r.EncodeNil() 14568 } else { 14569 x.ControllerInfo.CodecEncodeSelf(e) 14570 } 14571 } 14572 } 14573 var yyn33 bool 14574 if x.NodeInfo == nil { 14575 yyn33 = true 14576 goto LABEL33 14577 } 14578 LABEL33: 14579 if yyr2 || yy2arr2 { 14580 if yyn33 { 14581 r.WriteArrayElem() 14582 r.EncodeNil() 14583 } else { 14584 r.WriteArrayElem() 14585 if x.NodeInfo == nil { 14586 r.EncodeNil() 14587 } else { 14588 x.NodeInfo.CodecEncodeSelf(e) 14589 } 14590 } 14591 } else { 14592 r.WriteMapElemKey() 14593 if z.IsJSONHandle() { 14594 z.WriteStr("\"NodeInfo\"") 14595 } else { 14596 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeInfo`) 14597 } 14598 r.WriteMapElemValue() 14599 if yyn33 { 14600 r.EncodeNil() 14601 } else { 14602 if x.NodeInfo == nil { 14603 r.EncodeNil() 14604 } else { 14605 x.NodeInfo.CodecEncodeSelf(e) 14606 } 14607 } 14608 } 14609 if yyr2 || yy2arr2 { 14610 r.WriteArrayEnd() 14611 } else { 14612 r.WriteMapEnd() 14613 } 14614 } 14615 } 14616 } 14617 14618 func (x *CSIInfo) CodecDecodeSelf(d *codec1978.Decoder) { 14619 var h codecSelfer100 14620 z, r := codec1978.GenHelperDecoder(d) 14621 _, _, _ = h, z, r 14622 if false { 14623 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14624 z.DecExtension(x, yyxt1) 14625 } else { 14626 yyct2 := r.ContainerType() 14627 if yyct2 == codecSelferValueTypeMap100 { 14628 yyl2 := r.ReadMapStart() 14629 if yyl2 == 0 { 14630 r.ReadMapEnd() 14631 } else { 14632 x.codecDecodeSelfFromMap(yyl2, d) 14633 } 14634 } else if yyct2 == codecSelferValueTypeArray100 { 14635 yyl2 := r.ReadArrayStart() 14636 if yyl2 == 0 { 14637 r.ReadArrayEnd() 14638 } else { 14639 x.codecDecodeSelfFromArray(yyl2, d) 14640 } 14641 } else { 14642 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 14643 } 14644 } 14645 } 14646 14647 func (x *CSIInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 14648 var h codecSelfer100 14649 z, r := codec1978.GenHelperDecoder(d) 14650 _, _, _ = h, z, r 14651 var yyhl3 bool = l >= 0 14652 for yyj3 := 0; ; yyj3++ { 14653 if yyhl3 { 14654 if yyj3 >= l { 14655 break 14656 } 14657 } else { 14658 if r.CheckBreak() { 14659 break 14660 } 14661 } 14662 r.ReadMapElemKey() 14663 yys3 := z.StringView(r.DecodeStringAsBytes()) 14664 r.ReadMapElemValue() 14665 switch yys3 { 14666 case "PluginID": 14667 if r.TryDecodeAsNil() { 14668 x.PluginID = "" 14669 } else { 14670 x.PluginID = (string)(r.DecodeString()) 14671 } 14672 case "AllocID": 14673 if r.TryDecodeAsNil() { 14674 x.AllocID = "" 14675 } else { 14676 x.AllocID = (string)(r.DecodeString()) 14677 } 14678 case "Healthy": 14679 if r.TryDecodeAsNil() { 14680 x.Healthy = false 14681 } else { 14682 x.Healthy = (bool)(r.DecodeBool()) 14683 } 14684 case "HealthDescription": 14685 if r.TryDecodeAsNil() { 14686 x.HealthDescription = "" 14687 } else { 14688 x.HealthDescription = (string)(r.DecodeString()) 14689 } 14690 case "UpdateTime": 14691 if r.TryDecodeAsNil() { 14692 x.UpdateTime = time.Time{} 14693 } else { 14694 if false { 14695 } else if !z.DecBasicHandle().TimeNotBuiltin { 14696 x.UpdateTime = r.DecodeTime() 14697 } else if yyxt9 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt9 != nil { 14698 z.DecExtension(x.UpdateTime, yyxt9) 14699 } else if z.DecBinary() { 14700 z.DecBinaryUnmarshal(&x.UpdateTime) 14701 } else if !z.DecBinary() && z.IsJSONHandle() { 14702 z.DecJSONUnmarshal(&x.UpdateTime) 14703 } else { 14704 z.DecFallback(&x.UpdateTime, false) 14705 } 14706 } 14707 case "Provider": 14708 if r.TryDecodeAsNil() { 14709 x.Provider = "" 14710 } else { 14711 x.Provider = (string)(r.DecodeString()) 14712 } 14713 case "ProviderVersion": 14714 if r.TryDecodeAsNil() { 14715 x.ProviderVersion = "" 14716 } else { 14717 x.ProviderVersion = (string)(r.DecodeString()) 14718 } 14719 case "RequiresControllerPlugin": 14720 if r.TryDecodeAsNil() { 14721 x.RequiresControllerPlugin = false 14722 } else { 14723 x.RequiresControllerPlugin = (bool)(r.DecodeBool()) 14724 } 14725 case "RequiresTopologies": 14726 if r.TryDecodeAsNil() { 14727 x.RequiresTopologies = false 14728 } else { 14729 x.RequiresTopologies = (bool)(r.DecodeBool()) 14730 } 14731 case "ControllerInfo": 14732 if r.TryDecodeAsNil() { 14733 if true && x.ControllerInfo != nil { 14734 x.ControllerInfo = nil 14735 } 14736 } else { 14737 if x.ControllerInfo == nil { 14738 x.ControllerInfo = new(CSIControllerInfo) 14739 } 14740 14741 x.ControllerInfo.CodecDecodeSelf(d) 14742 } 14743 case "NodeInfo": 14744 if r.TryDecodeAsNil() { 14745 if true && x.NodeInfo != nil { 14746 x.NodeInfo = nil 14747 } 14748 } else { 14749 if x.NodeInfo == nil { 14750 x.NodeInfo = new(CSINodeInfo) 14751 } 14752 14753 x.NodeInfo.CodecDecodeSelf(d) 14754 } 14755 default: 14756 z.DecStructFieldNotFound(-1, yys3) 14757 } // end switch yys3 14758 } // end for yyj3 14759 r.ReadMapEnd() 14760 } 14761 14762 func (x *CSIInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 14763 var h codecSelfer100 14764 z, r := codec1978.GenHelperDecoder(d) 14765 _, _, _ = h, z, r 14766 var yyj16 int 14767 var yyb16 bool 14768 var yyhl16 bool = l >= 0 14769 yyj16++ 14770 if yyhl16 { 14771 yyb16 = yyj16 > l 14772 } else { 14773 yyb16 = r.CheckBreak() 14774 } 14775 if yyb16 { 14776 r.ReadArrayEnd() 14777 return 14778 } 14779 r.ReadArrayElem() 14780 if r.TryDecodeAsNil() { 14781 x.PluginID = "" 14782 } else { 14783 x.PluginID = (string)(r.DecodeString()) 14784 } 14785 yyj16++ 14786 if yyhl16 { 14787 yyb16 = yyj16 > l 14788 } else { 14789 yyb16 = r.CheckBreak() 14790 } 14791 if yyb16 { 14792 r.ReadArrayEnd() 14793 return 14794 } 14795 r.ReadArrayElem() 14796 if r.TryDecodeAsNil() { 14797 x.AllocID = "" 14798 } else { 14799 x.AllocID = (string)(r.DecodeString()) 14800 } 14801 yyj16++ 14802 if yyhl16 { 14803 yyb16 = yyj16 > l 14804 } else { 14805 yyb16 = r.CheckBreak() 14806 } 14807 if yyb16 { 14808 r.ReadArrayEnd() 14809 return 14810 } 14811 r.ReadArrayElem() 14812 if r.TryDecodeAsNil() { 14813 x.Healthy = false 14814 } else { 14815 x.Healthy = (bool)(r.DecodeBool()) 14816 } 14817 yyj16++ 14818 if yyhl16 { 14819 yyb16 = yyj16 > l 14820 } else { 14821 yyb16 = r.CheckBreak() 14822 } 14823 if yyb16 { 14824 r.ReadArrayEnd() 14825 return 14826 } 14827 r.ReadArrayElem() 14828 if r.TryDecodeAsNil() { 14829 x.HealthDescription = "" 14830 } else { 14831 x.HealthDescription = (string)(r.DecodeString()) 14832 } 14833 yyj16++ 14834 if yyhl16 { 14835 yyb16 = yyj16 > l 14836 } else { 14837 yyb16 = r.CheckBreak() 14838 } 14839 if yyb16 { 14840 r.ReadArrayEnd() 14841 return 14842 } 14843 r.ReadArrayElem() 14844 if r.TryDecodeAsNil() { 14845 x.UpdateTime = time.Time{} 14846 } else { 14847 if false { 14848 } else if !z.DecBasicHandle().TimeNotBuiltin { 14849 x.UpdateTime = r.DecodeTime() 14850 } else if yyxt22 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt22 != nil { 14851 z.DecExtension(x.UpdateTime, yyxt22) 14852 } else if z.DecBinary() { 14853 z.DecBinaryUnmarshal(&x.UpdateTime) 14854 } else if !z.DecBinary() && z.IsJSONHandle() { 14855 z.DecJSONUnmarshal(&x.UpdateTime) 14856 } else { 14857 z.DecFallback(&x.UpdateTime, false) 14858 } 14859 } 14860 yyj16++ 14861 if yyhl16 { 14862 yyb16 = yyj16 > l 14863 } else { 14864 yyb16 = r.CheckBreak() 14865 } 14866 if yyb16 { 14867 r.ReadArrayEnd() 14868 return 14869 } 14870 r.ReadArrayElem() 14871 if r.TryDecodeAsNil() { 14872 x.Provider = "" 14873 } else { 14874 x.Provider = (string)(r.DecodeString()) 14875 } 14876 yyj16++ 14877 if yyhl16 { 14878 yyb16 = yyj16 > l 14879 } else { 14880 yyb16 = r.CheckBreak() 14881 } 14882 if yyb16 { 14883 r.ReadArrayEnd() 14884 return 14885 } 14886 r.ReadArrayElem() 14887 if r.TryDecodeAsNil() { 14888 x.ProviderVersion = "" 14889 } else { 14890 x.ProviderVersion = (string)(r.DecodeString()) 14891 } 14892 yyj16++ 14893 if yyhl16 { 14894 yyb16 = yyj16 > l 14895 } else { 14896 yyb16 = r.CheckBreak() 14897 } 14898 if yyb16 { 14899 r.ReadArrayEnd() 14900 return 14901 } 14902 r.ReadArrayElem() 14903 if r.TryDecodeAsNil() { 14904 x.RequiresControllerPlugin = false 14905 } else { 14906 x.RequiresControllerPlugin = (bool)(r.DecodeBool()) 14907 } 14908 yyj16++ 14909 if yyhl16 { 14910 yyb16 = yyj16 > l 14911 } else { 14912 yyb16 = r.CheckBreak() 14913 } 14914 if yyb16 { 14915 r.ReadArrayEnd() 14916 return 14917 } 14918 r.ReadArrayElem() 14919 if r.TryDecodeAsNil() { 14920 x.RequiresTopologies = false 14921 } else { 14922 x.RequiresTopologies = (bool)(r.DecodeBool()) 14923 } 14924 yyj16++ 14925 if yyhl16 { 14926 yyb16 = yyj16 > l 14927 } else { 14928 yyb16 = r.CheckBreak() 14929 } 14930 if yyb16 { 14931 r.ReadArrayEnd() 14932 return 14933 } 14934 r.ReadArrayElem() 14935 if r.TryDecodeAsNil() { 14936 if true && x.ControllerInfo != nil { 14937 x.ControllerInfo = nil 14938 } 14939 } else { 14940 if x.ControllerInfo == nil { 14941 x.ControllerInfo = new(CSIControllerInfo) 14942 } 14943 14944 x.ControllerInfo.CodecDecodeSelf(d) 14945 } 14946 yyj16++ 14947 if yyhl16 { 14948 yyb16 = yyj16 > l 14949 } else { 14950 yyb16 = r.CheckBreak() 14951 } 14952 if yyb16 { 14953 r.ReadArrayEnd() 14954 return 14955 } 14956 r.ReadArrayElem() 14957 if r.TryDecodeAsNil() { 14958 if true && x.NodeInfo != nil { 14959 x.NodeInfo = nil 14960 } 14961 } else { 14962 if x.NodeInfo == nil { 14963 x.NodeInfo = new(CSINodeInfo) 14964 } 14965 14966 x.NodeInfo.CodecDecodeSelf(d) 14967 } 14968 for { 14969 yyj16++ 14970 if yyhl16 { 14971 yyb16 = yyj16 > l 14972 } else { 14973 yyb16 = r.CheckBreak() 14974 } 14975 if yyb16 { 14976 break 14977 } 14978 r.ReadArrayElem() 14979 z.DecStructFieldNotFound(yyj16-1, "") 14980 } 14981 r.ReadArrayEnd() 14982 } 14983 14984 func (x *DriverInfo) CodecEncodeSelf(e *codec1978.Encoder) { 14985 var h codecSelfer100 14986 z, r := codec1978.GenHelperEncoder(e) 14987 _, _, _ = h, z, r 14988 if x == nil { 14989 r.EncodeNil() 14990 } else { 14991 if false { 14992 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 14993 z.EncExtension(x, yyxt1) 14994 } else { 14995 yysep2 := !z.EncBinary() 14996 yy2arr2 := z.EncBasicHandle().StructToArray 14997 _, _ = yysep2, yy2arr2 14998 const yyr2 bool = false // struct tag has 'toArray' 14999 if yyr2 || yy2arr2 { 15000 r.WriteArrayStart(5) 15001 } else { 15002 r.WriteMapStart(5) 15003 } 15004 if yyr2 || yy2arr2 { 15005 r.WriteArrayElem() 15006 if x.Attributes == nil { 15007 r.EncodeNil() 15008 } else { 15009 if false { 15010 } else { 15011 z.F.EncMapStringStringV(x.Attributes, e) 15012 } 15013 } 15014 } else { 15015 r.WriteMapElemKey() 15016 if z.IsJSONHandle() { 15017 z.WriteStr("\"Attributes\"") 15018 } else { 15019 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 15020 } 15021 r.WriteMapElemValue() 15022 if x.Attributes == nil { 15023 r.EncodeNil() 15024 } else { 15025 if false { 15026 } else { 15027 z.F.EncMapStringStringV(x.Attributes, e) 15028 } 15029 } 15030 } 15031 if yyr2 || yy2arr2 { 15032 r.WriteArrayElem() 15033 if false { 15034 } else { 15035 r.EncodeBool(bool(x.Detected)) 15036 } 15037 } else { 15038 r.WriteMapElemKey() 15039 if z.IsJSONHandle() { 15040 z.WriteStr("\"Detected\"") 15041 } else { 15042 r.EncodeStringEnc(codecSelferCcUTF8100, `Detected`) 15043 } 15044 r.WriteMapElemValue() 15045 if false { 15046 } else { 15047 r.EncodeBool(bool(x.Detected)) 15048 } 15049 } 15050 if yyr2 || yy2arr2 { 15051 r.WriteArrayElem() 15052 if false { 15053 } else { 15054 r.EncodeBool(bool(x.Healthy)) 15055 } 15056 } else { 15057 r.WriteMapElemKey() 15058 if z.IsJSONHandle() { 15059 z.WriteStr("\"Healthy\"") 15060 } else { 15061 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 15062 } 15063 r.WriteMapElemValue() 15064 if false { 15065 } else { 15066 r.EncodeBool(bool(x.Healthy)) 15067 } 15068 } 15069 if yyr2 || yy2arr2 { 15070 r.WriteArrayElem() 15071 if false { 15072 } else { 15073 if z.EncBasicHandle().StringToRaw { 15074 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 15075 } else { 15076 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 15077 } 15078 } 15079 } else { 15080 r.WriteMapElemKey() 15081 if z.IsJSONHandle() { 15082 z.WriteStr("\"HealthDescription\"") 15083 } else { 15084 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 15085 } 15086 r.WriteMapElemValue() 15087 if false { 15088 } else { 15089 if z.EncBasicHandle().StringToRaw { 15090 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 15091 } else { 15092 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 15093 } 15094 } 15095 } 15096 if yyr2 || yy2arr2 { 15097 r.WriteArrayElem() 15098 if false { 15099 } else if !z.EncBasicHandle().TimeNotBuiltin { 15100 r.EncodeTime(x.UpdateTime) 15101 } else if yyxt16 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt16 != nil { 15102 z.EncExtension(x.UpdateTime, yyxt16) 15103 } else if z.EncBinary() { 15104 z.EncBinaryMarshal(x.UpdateTime) 15105 } else if !z.EncBinary() && z.IsJSONHandle() { 15106 z.EncJSONMarshal(x.UpdateTime) 15107 } else { 15108 z.EncFallback(x.UpdateTime) 15109 } 15110 } else { 15111 r.WriteMapElemKey() 15112 if z.IsJSONHandle() { 15113 z.WriteStr("\"UpdateTime\"") 15114 } else { 15115 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdateTime`) 15116 } 15117 r.WriteMapElemValue() 15118 if false { 15119 } else if !z.EncBasicHandle().TimeNotBuiltin { 15120 r.EncodeTime(x.UpdateTime) 15121 } else if yyxt17 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt17 != nil { 15122 z.EncExtension(x.UpdateTime, yyxt17) 15123 } else if z.EncBinary() { 15124 z.EncBinaryMarshal(x.UpdateTime) 15125 } else if !z.EncBinary() && z.IsJSONHandle() { 15126 z.EncJSONMarshal(x.UpdateTime) 15127 } else { 15128 z.EncFallback(x.UpdateTime) 15129 } 15130 } 15131 if yyr2 || yy2arr2 { 15132 r.WriteArrayEnd() 15133 } else { 15134 r.WriteMapEnd() 15135 } 15136 } 15137 } 15138 } 15139 15140 func (x *DriverInfo) CodecDecodeSelf(d *codec1978.Decoder) { 15141 var h codecSelfer100 15142 z, r := codec1978.GenHelperDecoder(d) 15143 _, _, _ = h, z, r 15144 if false { 15145 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15146 z.DecExtension(x, yyxt1) 15147 } else { 15148 yyct2 := r.ContainerType() 15149 if yyct2 == codecSelferValueTypeMap100 { 15150 yyl2 := r.ReadMapStart() 15151 if yyl2 == 0 { 15152 r.ReadMapEnd() 15153 } else { 15154 x.codecDecodeSelfFromMap(yyl2, d) 15155 } 15156 } else if yyct2 == codecSelferValueTypeArray100 { 15157 yyl2 := r.ReadArrayStart() 15158 if yyl2 == 0 { 15159 r.ReadArrayEnd() 15160 } else { 15161 x.codecDecodeSelfFromArray(yyl2, d) 15162 } 15163 } else { 15164 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 15165 } 15166 } 15167 } 15168 15169 func (x *DriverInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 15170 var h codecSelfer100 15171 z, r := codec1978.GenHelperDecoder(d) 15172 _, _, _ = h, z, r 15173 var yyhl3 bool = l >= 0 15174 for yyj3 := 0; ; yyj3++ { 15175 if yyhl3 { 15176 if yyj3 >= l { 15177 break 15178 } 15179 } else { 15180 if r.CheckBreak() { 15181 break 15182 } 15183 } 15184 r.ReadMapElemKey() 15185 yys3 := z.StringView(r.DecodeStringAsBytes()) 15186 r.ReadMapElemValue() 15187 switch yys3 { 15188 case "Attributes": 15189 if r.TryDecodeAsNil() { 15190 x.Attributes = nil 15191 } else { 15192 if false { 15193 } else { 15194 z.F.DecMapStringStringX(&x.Attributes, d) 15195 } 15196 } 15197 case "Detected": 15198 if r.TryDecodeAsNil() { 15199 x.Detected = false 15200 } else { 15201 x.Detected = (bool)(r.DecodeBool()) 15202 } 15203 case "Healthy": 15204 if r.TryDecodeAsNil() { 15205 x.Healthy = false 15206 } else { 15207 x.Healthy = (bool)(r.DecodeBool()) 15208 } 15209 case "HealthDescription": 15210 if r.TryDecodeAsNil() { 15211 x.HealthDescription = "" 15212 } else { 15213 x.HealthDescription = (string)(r.DecodeString()) 15214 } 15215 case "UpdateTime": 15216 if r.TryDecodeAsNil() { 15217 x.UpdateTime = time.Time{} 15218 } else { 15219 if false { 15220 } else if !z.DecBasicHandle().TimeNotBuiltin { 15221 x.UpdateTime = r.DecodeTime() 15222 } else if yyxt10 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt10 != nil { 15223 z.DecExtension(x.UpdateTime, yyxt10) 15224 } else if z.DecBinary() { 15225 z.DecBinaryUnmarshal(&x.UpdateTime) 15226 } else if !z.DecBinary() && z.IsJSONHandle() { 15227 z.DecJSONUnmarshal(&x.UpdateTime) 15228 } else { 15229 z.DecFallback(&x.UpdateTime, false) 15230 } 15231 } 15232 default: 15233 z.DecStructFieldNotFound(-1, yys3) 15234 } // end switch yys3 15235 } // end for yyj3 15236 r.ReadMapEnd() 15237 } 15238 15239 func (x *DriverInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15240 var h codecSelfer100 15241 z, r := codec1978.GenHelperDecoder(d) 15242 _, _, _ = h, z, r 15243 var yyj11 int 15244 var yyb11 bool 15245 var yyhl11 bool = l >= 0 15246 yyj11++ 15247 if yyhl11 { 15248 yyb11 = yyj11 > l 15249 } else { 15250 yyb11 = r.CheckBreak() 15251 } 15252 if yyb11 { 15253 r.ReadArrayEnd() 15254 return 15255 } 15256 r.ReadArrayElem() 15257 if r.TryDecodeAsNil() { 15258 x.Attributes = nil 15259 } else { 15260 if false { 15261 } else { 15262 z.F.DecMapStringStringX(&x.Attributes, d) 15263 } 15264 } 15265 yyj11++ 15266 if yyhl11 { 15267 yyb11 = yyj11 > l 15268 } else { 15269 yyb11 = r.CheckBreak() 15270 } 15271 if yyb11 { 15272 r.ReadArrayEnd() 15273 return 15274 } 15275 r.ReadArrayElem() 15276 if r.TryDecodeAsNil() { 15277 x.Detected = false 15278 } else { 15279 x.Detected = (bool)(r.DecodeBool()) 15280 } 15281 yyj11++ 15282 if yyhl11 { 15283 yyb11 = yyj11 > l 15284 } else { 15285 yyb11 = r.CheckBreak() 15286 } 15287 if yyb11 { 15288 r.ReadArrayEnd() 15289 return 15290 } 15291 r.ReadArrayElem() 15292 if r.TryDecodeAsNil() { 15293 x.Healthy = false 15294 } else { 15295 x.Healthy = (bool)(r.DecodeBool()) 15296 } 15297 yyj11++ 15298 if yyhl11 { 15299 yyb11 = yyj11 > l 15300 } else { 15301 yyb11 = r.CheckBreak() 15302 } 15303 if yyb11 { 15304 r.ReadArrayEnd() 15305 return 15306 } 15307 r.ReadArrayElem() 15308 if r.TryDecodeAsNil() { 15309 x.HealthDescription = "" 15310 } else { 15311 x.HealthDescription = (string)(r.DecodeString()) 15312 } 15313 yyj11++ 15314 if yyhl11 { 15315 yyb11 = yyj11 > l 15316 } else { 15317 yyb11 = r.CheckBreak() 15318 } 15319 if yyb11 { 15320 r.ReadArrayEnd() 15321 return 15322 } 15323 r.ReadArrayElem() 15324 if r.TryDecodeAsNil() { 15325 x.UpdateTime = time.Time{} 15326 } else { 15327 if false { 15328 } else if !z.DecBasicHandle().TimeNotBuiltin { 15329 x.UpdateTime = r.DecodeTime() 15330 } else if yyxt18 := z.Extension(z.I2Rtid(x.UpdateTime)); yyxt18 != nil { 15331 z.DecExtension(x.UpdateTime, yyxt18) 15332 } else if z.DecBinary() { 15333 z.DecBinaryUnmarshal(&x.UpdateTime) 15334 } else if !z.DecBinary() && z.IsJSONHandle() { 15335 z.DecJSONUnmarshal(&x.UpdateTime) 15336 } else { 15337 z.DecFallback(&x.UpdateTime, false) 15338 } 15339 } 15340 for { 15341 yyj11++ 15342 if yyhl11 { 15343 yyb11 = yyj11 > l 15344 } else { 15345 yyb11 = r.CheckBreak() 15346 } 15347 if yyb11 { 15348 break 15349 } 15350 r.ReadArrayElem() 15351 z.DecStructFieldNotFound(yyj11-1, "") 15352 } 15353 r.ReadArrayEnd() 15354 } 15355 15356 func (x *RaftServer) CodecEncodeSelf(e *codec1978.Encoder) { 15357 var h codecSelfer100 15358 z, r := codec1978.GenHelperEncoder(e) 15359 _, _, _ = h, z, r 15360 if x == nil { 15361 r.EncodeNil() 15362 } else { 15363 if false { 15364 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15365 z.EncExtension(x, yyxt1) 15366 } else { 15367 yysep2 := !z.EncBinary() 15368 yy2arr2 := z.EncBasicHandle().StructToArray 15369 _, _ = yysep2, yy2arr2 15370 const yyr2 bool = false // struct tag has 'toArray' 15371 if yyr2 || yy2arr2 { 15372 r.WriteArrayStart(6) 15373 } else { 15374 r.WriteMapStart(6) 15375 } 15376 if yyr2 || yy2arr2 { 15377 r.WriteArrayElem() 15378 if false { 15379 } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { 15380 z.EncExtension(x.ID, yyxt4) 15381 } else { 15382 if z.EncBasicHandle().StringToRaw { 15383 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 15384 } else { 15385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 15386 } 15387 } 15388 } else { 15389 r.WriteMapElemKey() 15390 if z.IsJSONHandle() { 15391 z.WriteStr("\"ID\"") 15392 } else { 15393 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 15394 } 15395 r.WriteMapElemValue() 15396 if false { 15397 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 15398 z.EncExtension(x.ID, yyxt5) 15399 } else { 15400 if z.EncBasicHandle().StringToRaw { 15401 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 15402 } else { 15403 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 15404 } 15405 } 15406 } 15407 if yyr2 || yy2arr2 { 15408 r.WriteArrayElem() 15409 if false { 15410 } else { 15411 if z.EncBasicHandle().StringToRaw { 15412 r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) 15413 } else { 15414 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) 15415 } 15416 } 15417 } else { 15418 r.WriteMapElemKey() 15419 if z.IsJSONHandle() { 15420 z.WriteStr("\"Node\"") 15421 } else { 15422 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 15423 } 15424 r.WriteMapElemValue() 15425 if false { 15426 } else { 15427 if z.EncBasicHandle().StringToRaw { 15428 r.EncodeStringBytesRaw(z.BytesView(string(x.Node))) 15429 } else { 15430 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Node)) 15431 } 15432 } 15433 } 15434 if yyr2 || yy2arr2 { 15435 r.WriteArrayElem() 15436 if false { 15437 } else if yyxt10 := z.Extension(z.I2Rtid(x.Address)); yyxt10 != nil { 15438 z.EncExtension(x.Address, yyxt10) 15439 } else { 15440 if z.EncBasicHandle().StringToRaw { 15441 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 15442 } else { 15443 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 15444 } 15445 } 15446 } else { 15447 r.WriteMapElemKey() 15448 if z.IsJSONHandle() { 15449 z.WriteStr("\"Address\"") 15450 } else { 15451 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 15452 } 15453 r.WriteMapElemValue() 15454 if false { 15455 } else if yyxt11 := z.Extension(z.I2Rtid(x.Address)); yyxt11 != nil { 15456 z.EncExtension(x.Address, yyxt11) 15457 } else { 15458 if z.EncBasicHandle().StringToRaw { 15459 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 15460 } else { 15461 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 15462 } 15463 } 15464 } 15465 if yyr2 || yy2arr2 { 15466 r.WriteArrayElem() 15467 if false { 15468 } else { 15469 r.EncodeBool(bool(x.Leader)) 15470 } 15471 } else { 15472 r.WriteMapElemKey() 15473 if z.IsJSONHandle() { 15474 z.WriteStr("\"Leader\"") 15475 } else { 15476 r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) 15477 } 15478 r.WriteMapElemValue() 15479 if false { 15480 } else { 15481 r.EncodeBool(bool(x.Leader)) 15482 } 15483 } 15484 if yyr2 || yy2arr2 { 15485 r.WriteArrayElem() 15486 if false { 15487 } else { 15488 r.EncodeBool(bool(x.Voter)) 15489 } 15490 } else { 15491 r.WriteMapElemKey() 15492 if z.IsJSONHandle() { 15493 z.WriteStr("\"Voter\"") 15494 } else { 15495 r.EncodeStringEnc(codecSelferCcUTF8100, `Voter`) 15496 } 15497 r.WriteMapElemValue() 15498 if false { 15499 } else { 15500 r.EncodeBool(bool(x.Voter)) 15501 } 15502 } 15503 if yyr2 || yy2arr2 { 15504 r.WriteArrayElem() 15505 if false { 15506 } else { 15507 if z.EncBasicHandle().StringToRaw { 15508 r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) 15509 } else { 15510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) 15511 } 15512 } 15513 } else { 15514 r.WriteMapElemKey() 15515 if z.IsJSONHandle() { 15516 z.WriteStr("\"RaftProtocol\"") 15517 } else { 15518 r.EncodeStringEnc(codecSelferCcUTF8100, `RaftProtocol`) 15519 } 15520 r.WriteMapElemValue() 15521 if false { 15522 } else { 15523 if z.EncBasicHandle().StringToRaw { 15524 r.EncodeStringBytesRaw(z.BytesView(string(x.RaftProtocol))) 15525 } else { 15526 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RaftProtocol)) 15527 } 15528 } 15529 } 15530 if yyr2 || yy2arr2 { 15531 r.WriteArrayEnd() 15532 } else { 15533 r.WriteMapEnd() 15534 } 15535 } 15536 } 15537 } 15538 15539 func (x *RaftServer) CodecDecodeSelf(d *codec1978.Decoder) { 15540 var h codecSelfer100 15541 z, r := codec1978.GenHelperDecoder(d) 15542 _, _, _ = h, z, r 15543 if false { 15544 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15545 z.DecExtension(x, yyxt1) 15546 } else { 15547 yyct2 := r.ContainerType() 15548 if yyct2 == codecSelferValueTypeMap100 { 15549 yyl2 := r.ReadMapStart() 15550 if yyl2 == 0 { 15551 r.ReadMapEnd() 15552 } else { 15553 x.codecDecodeSelfFromMap(yyl2, d) 15554 } 15555 } else if yyct2 == codecSelferValueTypeArray100 { 15556 yyl2 := r.ReadArrayStart() 15557 if yyl2 == 0 { 15558 r.ReadArrayEnd() 15559 } else { 15560 x.codecDecodeSelfFromArray(yyl2, d) 15561 } 15562 } else { 15563 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 15564 } 15565 } 15566 } 15567 15568 func (x *RaftServer) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 15569 var h codecSelfer100 15570 z, r := codec1978.GenHelperDecoder(d) 15571 _, _, _ = h, z, r 15572 var yyhl3 bool = l >= 0 15573 for yyj3 := 0; ; yyj3++ { 15574 if yyhl3 { 15575 if yyj3 >= l { 15576 break 15577 } 15578 } else { 15579 if r.CheckBreak() { 15580 break 15581 } 15582 } 15583 r.ReadMapElemKey() 15584 yys3 := z.StringView(r.DecodeStringAsBytes()) 15585 r.ReadMapElemValue() 15586 switch yys3 { 15587 case "ID": 15588 if r.TryDecodeAsNil() { 15589 x.ID = "" 15590 } else { 15591 if false { 15592 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 15593 z.DecExtension(x.ID, yyxt5) 15594 } else { 15595 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 15596 } 15597 } 15598 case "Node": 15599 if r.TryDecodeAsNil() { 15600 x.Node = "" 15601 } else { 15602 x.Node = (string)(r.DecodeString()) 15603 } 15604 case "Address": 15605 if r.TryDecodeAsNil() { 15606 x.Address = "" 15607 } else { 15608 if false { 15609 } else if yyxt8 := z.Extension(z.I2Rtid(x.Address)); yyxt8 != nil { 15610 z.DecExtension(x.Address, yyxt8) 15611 } else { 15612 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 15613 } 15614 } 15615 case "Leader": 15616 if r.TryDecodeAsNil() { 15617 x.Leader = false 15618 } else { 15619 x.Leader = (bool)(r.DecodeBool()) 15620 } 15621 case "Voter": 15622 if r.TryDecodeAsNil() { 15623 x.Voter = false 15624 } else { 15625 x.Voter = (bool)(r.DecodeBool()) 15626 } 15627 case "RaftProtocol": 15628 if r.TryDecodeAsNil() { 15629 x.RaftProtocol = "" 15630 } else { 15631 x.RaftProtocol = (string)(r.DecodeString()) 15632 } 15633 default: 15634 z.DecStructFieldNotFound(-1, yys3) 15635 } // end switch yys3 15636 } // end for yyj3 15637 r.ReadMapEnd() 15638 } 15639 15640 func (x *RaftServer) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15641 var h codecSelfer100 15642 z, r := codec1978.GenHelperDecoder(d) 15643 _, _, _ = h, z, r 15644 var yyj12 int 15645 var yyb12 bool 15646 var yyhl12 bool = l >= 0 15647 yyj12++ 15648 if yyhl12 { 15649 yyb12 = yyj12 > l 15650 } else { 15651 yyb12 = r.CheckBreak() 15652 } 15653 if yyb12 { 15654 r.ReadArrayEnd() 15655 return 15656 } 15657 r.ReadArrayElem() 15658 if r.TryDecodeAsNil() { 15659 x.ID = "" 15660 } else { 15661 if false { 15662 } else if yyxt14 := z.Extension(z.I2Rtid(x.ID)); yyxt14 != nil { 15663 z.DecExtension(x.ID, yyxt14) 15664 } else { 15665 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 15666 } 15667 } 15668 yyj12++ 15669 if yyhl12 { 15670 yyb12 = yyj12 > l 15671 } else { 15672 yyb12 = r.CheckBreak() 15673 } 15674 if yyb12 { 15675 r.ReadArrayEnd() 15676 return 15677 } 15678 r.ReadArrayElem() 15679 if r.TryDecodeAsNil() { 15680 x.Node = "" 15681 } else { 15682 x.Node = (string)(r.DecodeString()) 15683 } 15684 yyj12++ 15685 if yyhl12 { 15686 yyb12 = yyj12 > l 15687 } else { 15688 yyb12 = r.CheckBreak() 15689 } 15690 if yyb12 { 15691 r.ReadArrayEnd() 15692 return 15693 } 15694 r.ReadArrayElem() 15695 if r.TryDecodeAsNil() { 15696 x.Address = "" 15697 } else { 15698 if false { 15699 } else if yyxt17 := z.Extension(z.I2Rtid(x.Address)); yyxt17 != nil { 15700 z.DecExtension(x.Address, yyxt17) 15701 } else { 15702 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 15703 } 15704 } 15705 yyj12++ 15706 if yyhl12 { 15707 yyb12 = yyj12 > l 15708 } else { 15709 yyb12 = r.CheckBreak() 15710 } 15711 if yyb12 { 15712 r.ReadArrayEnd() 15713 return 15714 } 15715 r.ReadArrayElem() 15716 if r.TryDecodeAsNil() { 15717 x.Leader = false 15718 } else { 15719 x.Leader = (bool)(r.DecodeBool()) 15720 } 15721 yyj12++ 15722 if yyhl12 { 15723 yyb12 = yyj12 > l 15724 } else { 15725 yyb12 = r.CheckBreak() 15726 } 15727 if yyb12 { 15728 r.ReadArrayEnd() 15729 return 15730 } 15731 r.ReadArrayElem() 15732 if r.TryDecodeAsNil() { 15733 x.Voter = false 15734 } else { 15735 x.Voter = (bool)(r.DecodeBool()) 15736 } 15737 yyj12++ 15738 if yyhl12 { 15739 yyb12 = yyj12 > l 15740 } else { 15741 yyb12 = r.CheckBreak() 15742 } 15743 if yyb12 { 15744 r.ReadArrayEnd() 15745 return 15746 } 15747 r.ReadArrayElem() 15748 if r.TryDecodeAsNil() { 15749 x.RaftProtocol = "" 15750 } else { 15751 x.RaftProtocol = (string)(r.DecodeString()) 15752 } 15753 for { 15754 yyj12++ 15755 if yyhl12 { 15756 yyb12 = yyj12 > l 15757 } else { 15758 yyb12 = r.CheckBreak() 15759 } 15760 if yyb12 { 15761 break 15762 } 15763 r.ReadArrayElem() 15764 z.DecStructFieldNotFound(yyj12-1, "") 15765 } 15766 r.ReadArrayEnd() 15767 } 15768 15769 func (x *RaftConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 15770 var h codecSelfer100 15771 z, r := codec1978.GenHelperEncoder(e) 15772 _, _, _ = h, z, r 15773 if x == nil { 15774 r.EncodeNil() 15775 } else { 15776 if false { 15777 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15778 z.EncExtension(x, yyxt1) 15779 } else { 15780 yysep2 := !z.EncBinary() 15781 yy2arr2 := z.EncBasicHandle().StructToArray 15782 _, _ = yysep2, yy2arr2 15783 const yyr2 bool = false // struct tag has 'toArray' 15784 if yyr2 || yy2arr2 { 15785 r.WriteArrayStart(2) 15786 } else { 15787 r.WriteMapStart(2) 15788 } 15789 if yyr2 || yy2arr2 { 15790 r.WriteArrayElem() 15791 if x.Servers == nil { 15792 r.EncodeNil() 15793 } else { 15794 if false { 15795 } else { 15796 h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) 15797 } 15798 } 15799 } else { 15800 r.WriteMapElemKey() 15801 if z.IsJSONHandle() { 15802 z.WriteStr("\"Servers\"") 15803 } else { 15804 r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) 15805 } 15806 r.WriteMapElemValue() 15807 if x.Servers == nil { 15808 r.EncodeNil() 15809 } else { 15810 if false { 15811 } else { 15812 h.encSlicePtrtoRaftServer(([]*RaftServer)(x.Servers), e) 15813 } 15814 } 15815 } 15816 if yyr2 || yy2arr2 { 15817 r.WriteArrayElem() 15818 if false { 15819 } else { 15820 r.EncodeUint(uint64(x.Index)) 15821 } 15822 } else { 15823 r.WriteMapElemKey() 15824 if z.IsJSONHandle() { 15825 z.WriteStr("\"Index\"") 15826 } else { 15827 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 15828 } 15829 r.WriteMapElemValue() 15830 if false { 15831 } else { 15832 r.EncodeUint(uint64(x.Index)) 15833 } 15834 } 15835 if yyr2 || yy2arr2 { 15836 r.WriteArrayEnd() 15837 } else { 15838 r.WriteMapEnd() 15839 } 15840 } 15841 } 15842 } 15843 15844 func (x *RaftConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 15845 var h codecSelfer100 15846 z, r := codec1978.GenHelperDecoder(d) 15847 _, _, _ = h, z, r 15848 if false { 15849 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15850 z.DecExtension(x, yyxt1) 15851 } else { 15852 yyct2 := r.ContainerType() 15853 if yyct2 == codecSelferValueTypeMap100 { 15854 yyl2 := r.ReadMapStart() 15855 if yyl2 == 0 { 15856 r.ReadMapEnd() 15857 } else { 15858 x.codecDecodeSelfFromMap(yyl2, d) 15859 } 15860 } else if yyct2 == codecSelferValueTypeArray100 { 15861 yyl2 := r.ReadArrayStart() 15862 if yyl2 == 0 { 15863 r.ReadArrayEnd() 15864 } else { 15865 x.codecDecodeSelfFromArray(yyl2, d) 15866 } 15867 } else { 15868 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 15869 } 15870 } 15871 } 15872 15873 func (x *RaftConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 15874 var h codecSelfer100 15875 z, r := codec1978.GenHelperDecoder(d) 15876 _, _, _ = h, z, r 15877 var yyhl3 bool = l >= 0 15878 for yyj3 := 0; ; yyj3++ { 15879 if yyhl3 { 15880 if yyj3 >= l { 15881 break 15882 } 15883 } else { 15884 if r.CheckBreak() { 15885 break 15886 } 15887 } 15888 r.ReadMapElemKey() 15889 yys3 := z.StringView(r.DecodeStringAsBytes()) 15890 r.ReadMapElemValue() 15891 switch yys3 { 15892 case "Servers": 15893 if r.TryDecodeAsNil() { 15894 x.Servers = nil 15895 } else { 15896 if false { 15897 } else { 15898 h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) 15899 } 15900 } 15901 case "Index": 15902 if r.TryDecodeAsNil() { 15903 x.Index = 0 15904 } else { 15905 x.Index = (uint64)(r.DecodeUint64()) 15906 } 15907 default: 15908 z.DecStructFieldNotFound(-1, yys3) 15909 } // end switch yys3 15910 } // end for yyj3 15911 r.ReadMapEnd() 15912 } 15913 15914 func (x *RaftConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 15915 var h codecSelfer100 15916 z, r := codec1978.GenHelperDecoder(d) 15917 _, _, _ = h, z, r 15918 var yyj7 int 15919 var yyb7 bool 15920 var yyhl7 bool = l >= 0 15921 yyj7++ 15922 if yyhl7 { 15923 yyb7 = yyj7 > l 15924 } else { 15925 yyb7 = r.CheckBreak() 15926 } 15927 if yyb7 { 15928 r.ReadArrayEnd() 15929 return 15930 } 15931 r.ReadArrayElem() 15932 if r.TryDecodeAsNil() { 15933 x.Servers = nil 15934 } else { 15935 if false { 15936 } else { 15937 h.decSlicePtrtoRaftServer((*[]*RaftServer)(&x.Servers), d) 15938 } 15939 } 15940 yyj7++ 15941 if yyhl7 { 15942 yyb7 = yyj7 > l 15943 } else { 15944 yyb7 = r.CheckBreak() 15945 } 15946 if yyb7 { 15947 r.ReadArrayEnd() 15948 return 15949 } 15950 r.ReadArrayElem() 15951 if r.TryDecodeAsNil() { 15952 x.Index = 0 15953 } else { 15954 x.Index = (uint64)(r.DecodeUint64()) 15955 } 15956 for { 15957 yyj7++ 15958 if yyhl7 { 15959 yyb7 = yyj7 > l 15960 } else { 15961 yyb7 = r.CheckBreak() 15962 } 15963 if yyb7 { 15964 break 15965 } 15966 r.ReadArrayElem() 15967 z.DecStructFieldNotFound(yyj7-1, "") 15968 } 15969 r.ReadArrayEnd() 15970 } 15971 15972 func (x *RaftPeerByAddressRequest) CodecEncodeSelf(e *codec1978.Encoder) { 15973 var h codecSelfer100 15974 z, r := codec1978.GenHelperEncoder(e) 15975 _, _, _ = h, z, r 15976 if x == nil { 15977 r.EncodeNil() 15978 } else { 15979 if false { 15980 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 15981 z.EncExtension(x, yyxt1) 15982 } else { 15983 yysep2 := !z.EncBinary() 15984 yy2arr2 := z.EncBasicHandle().StructToArray 15985 _, _ = yysep2, yy2arr2 15986 const yyr2 bool = false // struct tag has 'toArray' 15987 if yyr2 || yy2arr2 { 15988 r.WriteArrayStart(5) 15989 } else { 15990 r.WriteMapStart(5) 15991 } 15992 if yyr2 || yy2arr2 { 15993 r.WriteArrayElem() 15994 if false { 15995 } else if yyxt4 := z.Extension(z.I2Rtid(x.Address)); yyxt4 != nil { 15996 z.EncExtension(x.Address, yyxt4) 15997 } else { 15998 if z.EncBasicHandle().StringToRaw { 15999 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 16000 } else { 16001 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 16002 } 16003 } 16004 } else { 16005 r.WriteMapElemKey() 16006 if z.IsJSONHandle() { 16007 z.WriteStr("\"Address\"") 16008 } else { 16009 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 16010 } 16011 r.WriteMapElemValue() 16012 if false { 16013 } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { 16014 z.EncExtension(x.Address, yyxt5) 16015 } else { 16016 if z.EncBasicHandle().StringToRaw { 16017 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 16018 } else { 16019 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 16020 } 16021 } 16022 } 16023 if yyr2 || yy2arr2 { 16024 r.WriteArrayElem() 16025 if false { 16026 } else { 16027 if z.EncBasicHandle().StringToRaw { 16028 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16029 } else { 16030 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16031 } 16032 } 16033 } else { 16034 r.WriteMapElemKey() 16035 if z.IsJSONHandle() { 16036 z.WriteStr("\"Region\"") 16037 } else { 16038 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 16039 } 16040 r.WriteMapElemValue() 16041 if false { 16042 } else { 16043 if z.EncBasicHandle().StringToRaw { 16044 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16045 } else { 16046 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16047 } 16048 } 16049 } 16050 if yyr2 || yy2arr2 { 16051 r.WriteArrayElem() 16052 if false { 16053 } else { 16054 if z.EncBasicHandle().StringToRaw { 16055 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16056 } else { 16057 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16058 } 16059 } 16060 } else { 16061 r.WriteMapElemKey() 16062 if z.IsJSONHandle() { 16063 z.WriteStr("\"Namespace\"") 16064 } else { 16065 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 16066 } 16067 r.WriteMapElemValue() 16068 if false { 16069 } else { 16070 if z.EncBasicHandle().StringToRaw { 16071 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16072 } else { 16073 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16074 } 16075 } 16076 } 16077 if yyr2 || yy2arr2 { 16078 r.WriteArrayElem() 16079 if false { 16080 } else { 16081 if z.EncBasicHandle().StringToRaw { 16082 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16083 } else { 16084 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16085 } 16086 } 16087 } else { 16088 r.WriteMapElemKey() 16089 if z.IsJSONHandle() { 16090 z.WriteStr("\"AuthToken\"") 16091 } else { 16092 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 16093 } 16094 r.WriteMapElemValue() 16095 if false { 16096 } else { 16097 if z.EncBasicHandle().StringToRaw { 16098 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16099 } else { 16100 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16101 } 16102 } 16103 } 16104 if yyr2 || yy2arr2 { 16105 r.WriteArrayElem() 16106 if false { 16107 } else { 16108 r.EncodeBool(bool(x.Forwarded)) 16109 } 16110 } else { 16111 r.WriteMapElemKey() 16112 if z.IsJSONHandle() { 16113 z.WriteStr("\"Forwarded\"") 16114 } else { 16115 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 16116 } 16117 r.WriteMapElemValue() 16118 if false { 16119 } else { 16120 r.EncodeBool(bool(x.Forwarded)) 16121 } 16122 } 16123 if yyr2 || yy2arr2 { 16124 r.WriteArrayEnd() 16125 } else { 16126 r.WriteMapEnd() 16127 } 16128 } 16129 } 16130 } 16131 16132 func (x *RaftPeerByAddressRequest) CodecDecodeSelf(d *codec1978.Decoder) { 16133 var h codecSelfer100 16134 z, r := codec1978.GenHelperDecoder(d) 16135 _, _, _ = h, z, r 16136 if false { 16137 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16138 z.DecExtension(x, yyxt1) 16139 } else { 16140 yyct2 := r.ContainerType() 16141 if yyct2 == codecSelferValueTypeMap100 { 16142 yyl2 := r.ReadMapStart() 16143 if yyl2 == 0 { 16144 r.ReadMapEnd() 16145 } else { 16146 x.codecDecodeSelfFromMap(yyl2, d) 16147 } 16148 } else if yyct2 == codecSelferValueTypeArray100 { 16149 yyl2 := r.ReadArrayStart() 16150 if yyl2 == 0 { 16151 r.ReadArrayEnd() 16152 } else { 16153 x.codecDecodeSelfFromArray(yyl2, d) 16154 } 16155 } else { 16156 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16157 } 16158 } 16159 } 16160 16161 func (x *RaftPeerByAddressRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16162 var h codecSelfer100 16163 z, r := codec1978.GenHelperDecoder(d) 16164 _, _, _ = h, z, r 16165 var yyhl3 bool = l >= 0 16166 for yyj3 := 0; ; yyj3++ { 16167 if yyhl3 { 16168 if yyj3 >= l { 16169 break 16170 } 16171 } else { 16172 if r.CheckBreak() { 16173 break 16174 } 16175 } 16176 r.ReadMapElemKey() 16177 yys3 := z.StringView(r.DecodeStringAsBytes()) 16178 r.ReadMapElemValue() 16179 switch yys3 { 16180 case "Address": 16181 if r.TryDecodeAsNil() { 16182 x.Address = "" 16183 } else { 16184 if false { 16185 } else if yyxt5 := z.Extension(z.I2Rtid(x.Address)); yyxt5 != nil { 16186 z.DecExtension(x.Address, yyxt5) 16187 } else { 16188 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 16189 } 16190 } 16191 case "Region": 16192 if r.TryDecodeAsNil() { 16193 x.WriteRequest.Region = "" 16194 } else { 16195 x.Region = (string)(r.DecodeString()) 16196 } 16197 case "Namespace": 16198 if r.TryDecodeAsNil() { 16199 x.WriteRequest.Namespace = "" 16200 } else { 16201 x.Namespace = (string)(r.DecodeString()) 16202 } 16203 case "AuthToken": 16204 if r.TryDecodeAsNil() { 16205 x.WriteRequest.AuthToken = "" 16206 } else { 16207 x.AuthToken = (string)(r.DecodeString()) 16208 } 16209 case "Forwarded": 16210 if r.TryDecodeAsNil() { 16211 x.WriteRequest.InternalRpcInfo.Forwarded = false 16212 } else { 16213 x.Forwarded = (bool)(r.DecodeBool()) 16214 } 16215 default: 16216 z.DecStructFieldNotFound(-1, yys3) 16217 } // end switch yys3 16218 } // end for yyj3 16219 r.ReadMapEnd() 16220 } 16221 16222 func (x *RaftPeerByAddressRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16223 var h codecSelfer100 16224 z, r := codec1978.GenHelperDecoder(d) 16225 _, _, _ = h, z, r 16226 var yyj10 int 16227 var yyb10 bool 16228 var yyhl10 bool = l >= 0 16229 yyj10++ 16230 if yyhl10 { 16231 yyb10 = yyj10 > l 16232 } else { 16233 yyb10 = r.CheckBreak() 16234 } 16235 if yyb10 { 16236 r.ReadArrayEnd() 16237 return 16238 } 16239 r.ReadArrayElem() 16240 if r.TryDecodeAsNil() { 16241 x.Address = "" 16242 } else { 16243 if false { 16244 } else if yyxt12 := z.Extension(z.I2Rtid(x.Address)); yyxt12 != nil { 16245 z.DecExtension(x.Address, yyxt12) 16246 } else { 16247 x.Address = (pkg2_raft.ServerAddress)(r.DecodeString()) 16248 } 16249 } 16250 yyj10++ 16251 if yyhl10 { 16252 yyb10 = yyj10 > l 16253 } else { 16254 yyb10 = r.CheckBreak() 16255 } 16256 if yyb10 { 16257 r.ReadArrayEnd() 16258 return 16259 } 16260 r.ReadArrayElem() 16261 if r.TryDecodeAsNil() { 16262 x.WriteRequest.Region = "" 16263 } else { 16264 x.Region = (string)(r.DecodeString()) 16265 } 16266 yyj10++ 16267 if yyhl10 { 16268 yyb10 = yyj10 > l 16269 } else { 16270 yyb10 = r.CheckBreak() 16271 } 16272 if yyb10 { 16273 r.ReadArrayEnd() 16274 return 16275 } 16276 r.ReadArrayElem() 16277 if r.TryDecodeAsNil() { 16278 x.WriteRequest.Namespace = "" 16279 } else { 16280 x.Namespace = (string)(r.DecodeString()) 16281 } 16282 yyj10++ 16283 if yyhl10 { 16284 yyb10 = yyj10 > l 16285 } else { 16286 yyb10 = r.CheckBreak() 16287 } 16288 if yyb10 { 16289 r.ReadArrayEnd() 16290 return 16291 } 16292 r.ReadArrayElem() 16293 if r.TryDecodeAsNil() { 16294 x.WriteRequest.AuthToken = "" 16295 } else { 16296 x.AuthToken = (string)(r.DecodeString()) 16297 } 16298 yyj10++ 16299 if yyhl10 { 16300 yyb10 = yyj10 > l 16301 } else { 16302 yyb10 = r.CheckBreak() 16303 } 16304 if yyb10 { 16305 r.ReadArrayEnd() 16306 return 16307 } 16308 r.ReadArrayElem() 16309 if r.TryDecodeAsNil() { 16310 x.WriteRequest.InternalRpcInfo.Forwarded = false 16311 } else { 16312 x.Forwarded = (bool)(r.DecodeBool()) 16313 } 16314 for { 16315 yyj10++ 16316 if yyhl10 { 16317 yyb10 = yyj10 > l 16318 } else { 16319 yyb10 = r.CheckBreak() 16320 } 16321 if yyb10 { 16322 break 16323 } 16324 r.ReadArrayElem() 16325 z.DecStructFieldNotFound(yyj10-1, "") 16326 } 16327 r.ReadArrayEnd() 16328 } 16329 16330 func (x *RaftPeerByIDRequest) CodecEncodeSelf(e *codec1978.Encoder) { 16331 var h codecSelfer100 16332 z, r := codec1978.GenHelperEncoder(e) 16333 _, _, _ = h, z, r 16334 if x == nil { 16335 r.EncodeNil() 16336 } else { 16337 if false { 16338 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16339 z.EncExtension(x, yyxt1) 16340 } else { 16341 yysep2 := !z.EncBinary() 16342 yy2arr2 := z.EncBasicHandle().StructToArray 16343 _, _ = yysep2, yy2arr2 16344 const yyr2 bool = false // struct tag has 'toArray' 16345 if yyr2 || yy2arr2 { 16346 r.WriteArrayStart(5) 16347 } else { 16348 r.WriteMapStart(5) 16349 } 16350 if yyr2 || yy2arr2 { 16351 r.WriteArrayElem() 16352 if false { 16353 } else if yyxt4 := z.Extension(z.I2Rtid(x.ID)); yyxt4 != nil { 16354 z.EncExtension(x.ID, yyxt4) 16355 } else { 16356 if z.EncBasicHandle().StringToRaw { 16357 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 16358 } else { 16359 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 16360 } 16361 } 16362 } else { 16363 r.WriteMapElemKey() 16364 if z.IsJSONHandle() { 16365 z.WriteStr("\"ID\"") 16366 } else { 16367 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 16368 } 16369 r.WriteMapElemValue() 16370 if false { 16371 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 16372 z.EncExtension(x.ID, yyxt5) 16373 } else { 16374 if z.EncBasicHandle().StringToRaw { 16375 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 16376 } else { 16377 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 16378 } 16379 } 16380 } 16381 if yyr2 || yy2arr2 { 16382 r.WriteArrayElem() 16383 if false { 16384 } else { 16385 if z.EncBasicHandle().StringToRaw { 16386 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16387 } else { 16388 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16389 } 16390 } 16391 } else { 16392 r.WriteMapElemKey() 16393 if z.IsJSONHandle() { 16394 z.WriteStr("\"Region\"") 16395 } else { 16396 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 16397 } 16398 r.WriteMapElemValue() 16399 if false { 16400 } else { 16401 if z.EncBasicHandle().StringToRaw { 16402 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16403 } else { 16404 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16405 } 16406 } 16407 } 16408 if yyr2 || yy2arr2 { 16409 r.WriteArrayElem() 16410 if false { 16411 } else { 16412 if z.EncBasicHandle().StringToRaw { 16413 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16414 } else { 16415 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16416 } 16417 } 16418 } else { 16419 r.WriteMapElemKey() 16420 if z.IsJSONHandle() { 16421 z.WriteStr("\"Namespace\"") 16422 } else { 16423 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 16424 } 16425 r.WriteMapElemValue() 16426 if false { 16427 } else { 16428 if z.EncBasicHandle().StringToRaw { 16429 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16430 } else { 16431 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16432 } 16433 } 16434 } 16435 if yyr2 || yy2arr2 { 16436 r.WriteArrayElem() 16437 if false { 16438 } else { 16439 if z.EncBasicHandle().StringToRaw { 16440 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16441 } else { 16442 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16443 } 16444 } 16445 } else { 16446 r.WriteMapElemKey() 16447 if z.IsJSONHandle() { 16448 z.WriteStr("\"AuthToken\"") 16449 } else { 16450 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 16451 } 16452 r.WriteMapElemValue() 16453 if false { 16454 } else { 16455 if z.EncBasicHandle().StringToRaw { 16456 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16457 } else { 16458 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16459 } 16460 } 16461 } 16462 if yyr2 || yy2arr2 { 16463 r.WriteArrayElem() 16464 if false { 16465 } else { 16466 r.EncodeBool(bool(x.Forwarded)) 16467 } 16468 } else { 16469 r.WriteMapElemKey() 16470 if z.IsJSONHandle() { 16471 z.WriteStr("\"Forwarded\"") 16472 } else { 16473 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 16474 } 16475 r.WriteMapElemValue() 16476 if false { 16477 } else { 16478 r.EncodeBool(bool(x.Forwarded)) 16479 } 16480 } 16481 if yyr2 || yy2arr2 { 16482 r.WriteArrayEnd() 16483 } else { 16484 r.WriteMapEnd() 16485 } 16486 } 16487 } 16488 } 16489 16490 func (x *RaftPeerByIDRequest) CodecDecodeSelf(d *codec1978.Decoder) { 16491 var h codecSelfer100 16492 z, r := codec1978.GenHelperDecoder(d) 16493 _, _, _ = h, z, r 16494 if false { 16495 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16496 z.DecExtension(x, yyxt1) 16497 } else { 16498 yyct2 := r.ContainerType() 16499 if yyct2 == codecSelferValueTypeMap100 { 16500 yyl2 := r.ReadMapStart() 16501 if yyl2 == 0 { 16502 r.ReadMapEnd() 16503 } else { 16504 x.codecDecodeSelfFromMap(yyl2, d) 16505 } 16506 } else if yyct2 == codecSelferValueTypeArray100 { 16507 yyl2 := r.ReadArrayStart() 16508 if yyl2 == 0 { 16509 r.ReadArrayEnd() 16510 } else { 16511 x.codecDecodeSelfFromArray(yyl2, d) 16512 } 16513 } else { 16514 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16515 } 16516 } 16517 } 16518 16519 func (x *RaftPeerByIDRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16520 var h codecSelfer100 16521 z, r := codec1978.GenHelperDecoder(d) 16522 _, _, _ = h, z, r 16523 var yyhl3 bool = l >= 0 16524 for yyj3 := 0; ; yyj3++ { 16525 if yyhl3 { 16526 if yyj3 >= l { 16527 break 16528 } 16529 } else { 16530 if r.CheckBreak() { 16531 break 16532 } 16533 } 16534 r.ReadMapElemKey() 16535 yys3 := z.StringView(r.DecodeStringAsBytes()) 16536 r.ReadMapElemValue() 16537 switch yys3 { 16538 case "ID": 16539 if r.TryDecodeAsNil() { 16540 x.ID = "" 16541 } else { 16542 if false { 16543 } else if yyxt5 := z.Extension(z.I2Rtid(x.ID)); yyxt5 != nil { 16544 z.DecExtension(x.ID, yyxt5) 16545 } else { 16546 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 16547 } 16548 } 16549 case "Region": 16550 if r.TryDecodeAsNil() { 16551 x.WriteRequest.Region = "" 16552 } else { 16553 x.Region = (string)(r.DecodeString()) 16554 } 16555 case "Namespace": 16556 if r.TryDecodeAsNil() { 16557 x.WriteRequest.Namespace = "" 16558 } else { 16559 x.Namespace = (string)(r.DecodeString()) 16560 } 16561 case "AuthToken": 16562 if r.TryDecodeAsNil() { 16563 x.WriteRequest.AuthToken = "" 16564 } else { 16565 x.AuthToken = (string)(r.DecodeString()) 16566 } 16567 case "Forwarded": 16568 if r.TryDecodeAsNil() { 16569 x.WriteRequest.InternalRpcInfo.Forwarded = false 16570 } else { 16571 x.Forwarded = (bool)(r.DecodeBool()) 16572 } 16573 default: 16574 z.DecStructFieldNotFound(-1, yys3) 16575 } // end switch yys3 16576 } // end for yyj3 16577 r.ReadMapEnd() 16578 } 16579 16580 func (x *RaftPeerByIDRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16581 var h codecSelfer100 16582 z, r := codec1978.GenHelperDecoder(d) 16583 _, _, _ = h, z, r 16584 var yyj10 int 16585 var yyb10 bool 16586 var yyhl10 bool = l >= 0 16587 yyj10++ 16588 if yyhl10 { 16589 yyb10 = yyj10 > l 16590 } else { 16591 yyb10 = r.CheckBreak() 16592 } 16593 if yyb10 { 16594 r.ReadArrayEnd() 16595 return 16596 } 16597 r.ReadArrayElem() 16598 if r.TryDecodeAsNil() { 16599 x.ID = "" 16600 } else { 16601 if false { 16602 } else if yyxt12 := z.Extension(z.I2Rtid(x.ID)); yyxt12 != nil { 16603 z.DecExtension(x.ID, yyxt12) 16604 } else { 16605 x.ID = (pkg2_raft.ServerID)(r.DecodeString()) 16606 } 16607 } 16608 yyj10++ 16609 if yyhl10 { 16610 yyb10 = yyj10 > l 16611 } else { 16612 yyb10 = r.CheckBreak() 16613 } 16614 if yyb10 { 16615 r.ReadArrayEnd() 16616 return 16617 } 16618 r.ReadArrayElem() 16619 if r.TryDecodeAsNil() { 16620 x.WriteRequest.Region = "" 16621 } else { 16622 x.Region = (string)(r.DecodeString()) 16623 } 16624 yyj10++ 16625 if yyhl10 { 16626 yyb10 = yyj10 > l 16627 } else { 16628 yyb10 = r.CheckBreak() 16629 } 16630 if yyb10 { 16631 r.ReadArrayEnd() 16632 return 16633 } 16634 r.ReadArrayElem() 16635 if r.TryDecodeAsNil() { 16636 x.WriteRequest.Namespace = "" 16637 } else { 16638 x.Namespace = (string)(r.DecodeString()) 16639 } 16640 yyj10++ 16641 if yyhl10 { 16642 yyb10 = yyj10 > l 16643 } else { 16644 yyb10 = r.CheckBreak() 16645 } 16646 if yyb10 { 16647 r.ReadArrayEnd() 16648 return 16649 } 16650 r.ReadArrayElem() 16651 if r.TryDecodeAsNil() { 16652 x.WriteRequest.AuthToken = "" 16653 } else { 16654 x.AuthToken = (string)(r.DecodeString()) 16655 } 16656 yyj10++ 16657 if yyhl10 { 16658 yyb10 = yyj10 > l 16659 } else { 16660 yyb10 = r.CheckBreak() 16661 } 16662 if yyb10 { 16663 r.ReadArrayEnd() 16664 return 16665 } 16666 r.ReadArrayElem() 16667 if r.TryDecodeAsNil() { 16668 x.WriteRequest.InternalRpcInfo.Forwarded = false 16669 } else { 16670 x.Forwarded = (bool)(r.DecodeBool()) 16671 } 16672 for { 16673 yyj10++ 16674 if yyhl10 { 16675 yyb10 = yyj10 > l 16676 } else { 16677 yyb10 = r.CheckBreak() 16678 } 16679 if yyb10 { 16680 break 16681 } 16682 r.ReadArrayElem() 16683 z.DecStructFieldNotFound(yyj10-1, "") 16684 } 16685 r.ReadArrayEnd() 16686 } 16687 16688 func (x *AutopilotSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { 16689 var h codecSelfer100 16690 z, r := codec1978.GenHelperEncoder(e) 16691 _, _, _ = h, z, r 16692 if x == nil { 16693 r.EncodeNil() 16694 } else { 16695 if false { 16696 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16697 z.EncExtension(x, yyxt1) 16698 } else { 16699 yysep2 := !z.EncBinary() 16700 yy2arr2 := z.EncBasicHandle().StructToArray 16701 _, _ = yysep2, yy2arr2 16702 const yyr2 bool = false // struct tag has 'toArray' 16703 if yyr2 || yy2arr2 { 16704 r.WriteArrayStart(7) 16705 } else { 16706 r.WriteMapStart(7) 16707 } 16708 if yyr2 || yy2arr2 { 16709 r.WriteArrayElem() 16710 if false { 16711 } else { 16712 if z.EncBasicHandle().StringToRaw { 16713 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 16714 } else { 16715 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 16716 } 16717 } 16718 } else { 16719 r.WriteMapElemKey() 16720 if z.IsJSONHandle() { 16721 z.WriteStr("\"Datacenter\"") 16722 } else { 16723 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 16724 } 16725 r.WriteMapElemValue() 16726 if false { 16727 } else { 16728 if z.EncBasicHandle().StringToRaw { 16729 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 16730 } else { 16731 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 16732 } 16733 } 16734 } 16735 if yyr2 || yy2arr2 { 16736 r.WriteArrayElem() 16737 yy7 := &x.Config 16738 yy7.CodecEncodeSelf(e) 16739 } else { 16740 r.WriteMapElemKey() 16741 if z.IsJSONHandle() { 16742 z.WriteStr("\"Config\"") 16743 } else { 16744 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 16745 } 16746 r.WriteMapElemValue() 16747 yy9 := &x.Config 16748 yy9.CodecEncodeSelf(e) 16749 } 16750 if yyr2 || yy2arr2 { 16751 r.WriteArrayElem() 16752 if false { 16753 } else { 16754 r.EncodeBool(bool(x.CAS)) 16755 } 16756 } else { 16757 r.WriteMapElemKey() 16758 if z.IsJSONHandle() { 16759 z.WriteStr("\"CAS\"") 16760 } else { 16761 r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) 16762 } 16763 r.WriteMapElemValue() 16764 if false { 16765 } else { 16766 r.EncodeBool(bool(x.CAS)) 16767 } 16768 } 16769 if yyr2 || yy2arr2 { 16770 r.WriteArrayElem() 16771 if false { 16772 } else { 16773 if z.EncBasicHandle().StringToRaw { 16774 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16775 } else { 16776 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16777 } 16778 } 16779 } else { 16780 r.WriteMapElemKey() 16781 if z.IsJSONHandle() { 16782 z.WriteStr("\"Region\"") 16783 } else { 16784 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 16785 } 16786 r.WriteMapElemValue() 16787 if false { 16788 } else { 16789 if z.EncBasicHandle().StringToRaw { 16790 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 16791 } else { 16792 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 16793 } 16794 } 16795 } 16796 if yyr2 || yy2arr2 { 16797 r.WriteArrayElem() 16798 if false { 16799 } else { 16800 if z.EncBasicHandle().StringToRaw { 16801 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16802 } else { 16803 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16804 } 16805 } 16806 } else { 16807 r.WriteMapElemKey() 16808 if z.IsJSONHandle() { 16809 z.WriteStr("\"Namespace\"") 16810 } else { 16811 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 16812 } 16813 r.WriteMapElemValue() 16814 if false { 16815 } else { 16816 if z.EncBasicHandle().StringToRaw { 16817 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 16818 } else { 16819 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 16820 } 16821 } 16822 } 16823 if yyr2 || yy2arr2 { 16824 r.WriteArrayElem() 16825 if false { 16826 } else { 16827 if z.EncBasicHandle().StringToRaw { 16828 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16829 } else { 16830 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16831 } 16832 } 16833 } else { 16834 r.WriteMapElemKey() 16835 if z.IsJSONHandle() { 16836 z.WriteStr("\"AuthToken\"") 16837 } else { 16838 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 16839 } 16840 r.WriteMapElemValue() 16841 if false { 16842 } else { 16843 if z.EncBasicHandle().StringToRaw { 16844 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 16845 } else { 16846 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 16847 } 16848 } 16849 } 16850 if yyr2 || yy2arr2 { 16851 r.WriteArrayElem() 16852 if false { 16853 } else { 16854 r.EncodeBool(bool(x.Forwarded)) 16855 } 16856 } else { 16857 r.WriteMapElemKey() 16858 if z.IsJSONHandle() { 16859 z.WriteStr("\"Forwarded\"") 16860 } else { 16861 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 16862 } 16863 r.WriteMapElemValue() 16864 if false { 16865 } else { 16866 r.EncodeBool(bool(x.Forwarded)) 16867 } 16868 } 16869 if yyr2 || yy2arr2 { 16870 r.WriteArrayEnd() 16871 } else { 16872 r.WriteMapEnd() 16873 } 16874 } 16875 } 16876 } 16877 16878 func (x *AutopilotSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { 16879 var h codecSelfer100 16880 z, r := codec1978.GenHelperDecoder(d) 16881 _, _, _ = h, z, r 16882 if false { 16883 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 16884 z.DecExtension(x, yyxt1) 16885 } else { 16886 yyct2 := r.ContainerType() 16887 if yyct2 == codecSelferValueTypeMap100 { 16888 yyl2 := r.ReadMapStart() 16889 if yyl2 == 0 { 16890 r.ReadMapEnd() 16891 } else { 16892 x.codecDecodeSelfFromMap(yyl2, d) 16893 } 16894 } else if yyct2 == codecSelferValueTypeArray100 { 16895 yyl2 := r.ReadArrayStart() 16896 if yyl2 == 0 { 16897 r.ReadArrayEnd() 16898 } else { 16899 x.codecDecodeSelfFromArray(yyl2, d) 16900 } 16901 } else { 16902 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 16903 } 16904 } 16905 } 16906 16907 func (x *AutopilotSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 16908 var h codecSelfer100 16909 z, r := codec1978.GenHelperDecoder(d) 16910 _, _, _ = h, z, r 16911 var yyhl3 bool = l >= 0 16912 for yyj3 := 0; ; yyj3++ { 16913 if yyhl3 { 16914 if yyj3 >= l { 16915 break 16916 } 16917 } else { 16918 if r.CheckBreak() { 16919 break 16920 } 16921 } 16922 r.ReadMapElemKey() 16923 yys3 := z.StringView(r.DecodeStringAsBytes()) 16924 r.ReadMapElemValue() 16925 switch yys3 { 16926 case "Datacenter": 16927 if r.TryDecodeAsNil() { 16928 x.Datacenter = "" 16929 } else { 16930 x.Datacenter = (string)(r.DecodeString()) 16931 } 16932 case "Config": 16933 if r.TryDecodeAsNil() { 16934 x.Config = AutopilotConfig{} 16935 } else { 16936 x.Config.CodecDecodeSelf(d) 16937 } 16938 case "CAS": 16939 if r.TryDecodeAsNil() { 16940 x.CAS = false 16941 } else { 16942 x.CAS = (bool)(r.DecodeBool()) 16943 } 16944 case "Region": 16945 if r.TryDecodeAsNil() { 16946 x.WriteRequest.Region = "" 16947 } else { 16948 x.Region = (string)(r.DecodeString()) 16949 } 16950 case "Namespace": 16951 if r.TryDecodeAsNil() { 16952 x.WriteRequest.Namespace = "" 16953 } else { 16954 x.Namespace = (string)(r.DecodeString()) 16955 } 16956 case "AuthToken": 16957 if r.TryDecodeAsNil() { 16958 x.WriteRequest.AuthToken = "" 16959 } else { 16960 x.AuthToken = (string)(r.DecodeString()) 16961 } 16962 case "Forwarded": 16963 if r.TryDecodeAsNil() { 16964 x.WriteRequest.InternalRpcInfo.Forwarded = false 16965 } else { 16966 x.Forwarded = (bool)(r.DecodeBool()) 16967 } 16968 default: 16969 z.DecStructFieldNotFound(-1, yys3) 16970 } // end switch yys3 16971 } // end for yyj3 16972 r.ReadMapEnd() 16973 } 16974 16975 func (x *AutopilotSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 16976 var h codecSelfer100 16977 z, r := codec1978.GenHelperDecoder(d) 16978 _, _, _ = h, z, r 16979 var yyj11 int 16980 var yyb11 bool 16981 var yyhl11 bool = l >= 0 16982 yyj11++ 16983 if yyhl11 { 16984 yyb11 = yyj11 > l 16985 } else { 16986 yyb11 = r.CheckBreak() 16987 } 16988 if yyb11 { 16989 r.ReadArrayEnd() 16990 return 16991 } 16992 r.ReadArrayElem() 16993 if r.TryDecodeAsNil() { 16994 x.Datacenter = "" 16995 } else { 16996 x.Datacenter = (string)(r.DecodeString()) 16997 } 16998 yyj11++ 16999 if yyhl11 { 17000 yyb11 = yyj11 > l 17001 } else { 17002 yyb11 = r.CheckBreak() 17003 } 17004 if yyb11 { 17005 r.ReadArrayEnd() 17006 return 17007 } 17008 r.ReadArrayElem() 17009 if r.TryDecodeAsNil() { 17010 x.Config = AutopilotConfig{} 17011 } else { 17012 x.Config.CodecDecodeSelf(d) 17013 } 17014 yyj11++ 17015 if yyhl11 { 17016 yyb11 = yyj11 > l 17017 } else { 17018 yyb11 = r.CheckBreak() 17019 } 17020 if yyb11 { 17021 r.ReadArrayEnd() 17022 return 17023 } 17024 r.ReadArrayElem() 17025 if r.TryDecodeAsNil() { 17026 x.CAS = false 17027 } else { 17028 x.CAS = (bool)(r.DecodeBool()) 17029 } 17030 yyj11++ 17031 if yyhl11 { 17032 yyb11 = yyj11 > l 17033 } else { 17034 yyb11 = r.CheckBreak() 17035 } 17036 if yyb11 { 17037 r.ReadArrayEnd() 17038 return 17039 } 17040 r.ReadArrayElem() 17041 if r.TryDecodeAsNil() { 17042 x.WriteRequest.Region = "" 17043 } else { 17044 x.Region = (string)(r.DecodeString()) 17045 } 17046 yyj11++ 17047 if yyhl11 { 17048 yyb11 = yyj11 > l 17049 } else { 17050 yyb11 = r.CheckBreak() 17051 } 17052 if yyb11 { 17053 r.ReadArrayEnd() 17054 return 17055 } 17056 r.ReadArrayElem() 17057 if r.TryDecodeAsNil() { 17058 x.WriteRequest.Namespace = "" 17059 } else { 17060 x.Namespace = (string)(r.DecodeString()) 17061 } 17062 yyj11++ 17063 if yyhl11 { 17064 yyb11 = yyj11 > l 17065 } else { 17066 yyb11 = r.CheckBreak() 17067 } 17068 if yyb11 { 17069 r.ReadArrayEnd() 17070 return 17071 } 17072 r.ReadArrayElem() 17073 if r.TryDecodeAsNil() { 17074 x.WriteRequest.AuthToken = "" 17075 } else { 17076 x.AuthToken = (string)(r.DecodeString()) 17077 } 17078 yyj11++ 17079 if yyhl11 { 17080 yyb11 = yyj11 > l 17081 } else { 17082 yyb11 = r.CheckBreak() 17083 } 17084 if yyb11 { 17085 r.ReadArrayEnd() 17086 return 17087 } 17088 r.ReadArrayElem() 17089 if r.TryDecodeAsNil() { 17090 x.WriteRequest.InternalRpcInfo.Forwarded = false 17091 } else { 17092 x.Forwarded = (bool)(r.DecodeBool()) 17093 } 17094 for { 17095 yyj11++ 17096 if yyhl11 { 17097 yyb11 = yyj11 > l 17098 } else { 17099 yyb11 = r.CheckBreak() 17100 } 17101 if yyb11 { 17102 break 17103 } 17104 r.ReadArrayElem() 17105 z.DecStructFieldNotFound(yyj11-1, "") 17106 } 17107 r.ReadArrayEnd() 17108 } 17109 17110 func (x *AutopilotConfig) CodecEncodeSelf(e *codec1978.Encoder) { 17111 var h codecSelfer100 17112 z, r := codec1978.GenHelperEncoder(e) 17113 _, _, _ = h, z, r 17114 if x == nil { 17115 r.EncodeNil() 17116 } else { 17117 if false { 17118 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17119 z.EncExtension(x, yyxt1) 17120 } else { 17121 yysep2 := !z.EncBinary() 17122 yy2arr2 := z.EncBasicHandle().StructToArray 17123 _, _ = yysep2, yy2arr2 17124 const yyr2 bool = false // struct tag has 'toArray' 17125 if yyr2 || yy2arr2 { 17126 r.WriteArrayStart(10) 17127 } else { 17128 r.WriteMapStart(10) 17129 } 17130 if yyr2 || yy2arr2 { 17131 r.WriteArrayElem() 17132 if false { 17133 } else { 17134 r.EncodeBool(bool(x.CleanupDeadServers)) 17135 } 17136 } else { 17137 r.WriteMapElemKey() 17138 if z.IsJSONHandle() { 17139 z.WriteStr("\"CleanupDeadServers\"") 17140 } else { 17141 r.EncodeStringEnc(codecSelferCcUTF8100, `CleanupDeadServers`) 17142 } 17143 r.WriteMapElemValue() 17144 if false { 17145 } else { 17146 r.EncodeBool(bool(x.CleanupDeadServers)) 17147 } 17148 } 17149 if yyr2 || yy2arr2 { 17150 r.WriteArrayElem() 17151 if false { 17152 } else if yyxt7 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt7 != nil { 17153 z.EncExtension(x.ServerStabilizationTime, yyxt7) 17154 } else { 17155 r.EncodeInt(int64(x.ServerStabilizationTime)) 17156 } 17157 } else { 17158 r.WriteMapElemKey() 17159 if z.IsJSONHandle() { 17160 z.WriteStr("\"ServerStabilizationTime\"") 17161 } else { 17162 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerStabilizationTime`) 17163 } 17164 r.WriteMapElemValue() 17165 if false { 17166 } else if yyxt8 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt8 != nil { 17167 z.EncExtension(x.ServerStabilizationTime, yyxt8) 17168 } else { 17169 r.EncodeInt(int64(x.ServerStabilizationTime)) 17170 } 17171 } 17172 if yyr2 || yy2arr2 { 17173 r.WriteArrayElem() 17174 if false { 17175 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt10 != nil { 17176 z.EncExtension(x.LastContactThreshold, yyxt10) 17177 } else { 17178 r.EncodeInt(int64(x.LastContactThreshold)) 17179 } 17180 } else { 17181 r.WriteMapElemKey() 17182 if z.IsJSONHandle() { 17183 z.WriteStr("\"LastContactThreshold\"") 17184 } else { 17185 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContactThreshold`) 17186 } 17187 r.WriteMapElemValue() 17188 if false { 17189 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt11 != nil { 17190 z.EncExtension(x.LastContactThreshold, yyxt11) 17191 } else { 17192 r.EncodeInt(int64(x.LastContactThreshold)) 17193 } 17194 } 17195 if yyr2 || yy2arr2 { 17196 r.WriteArrayElem() 17197 if false { 17198 } else { 17199 r.EncodeUint(uint64(x.MaxTrailingLogs)) 17200 } 17201 } else { 17202 r.WriteMapElemKey() 17203 if z.IsJSONHandle() { 17204 z.WriteStr("\"MaxTrailingLogs\"") 17205 } else { 17206 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxTrailingLogs`) 17207 } 17208 r.WriteMapElemValue() 17209 if false { 17210 } else { 17211 r.EncodeUint(uint64(x.MaxTrailingLogs)) 17212 } 17213 } 17214 if yyr2 || yy2arr2 { 17215 r.WriteArrayElem() 17216 if false { 17217 } else { 17218 r.EncodeUint(uint64(x.MinQuorum)) 17219 } 17220 } else { 17221 r.WriteMapElemKey() 17222 if z.IsJSONHandle() { 17223 z.WriteStr("\"MinQuorum\"") 17224 } else { 17225 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQuorum`) 17226 } 17227 r.WriteMapElemValue() 17228 if false { 17229 } else { 17230 r.EncodeUint(uint64(x.MinQuorum)) 17231 } 17232 } 17233 if yyr2 || yy2arr2 { 17234 r.WriteArrayElem() 17235 if false { 17236 } else { 17237 r.EncodeBool(bool(x.EnableRedundancyZones)) 17238 } 17239 } else { 17240 r.WriteMapElemKey() 17241 if z.IsJSONHandle() { 17242 z.WriteStr("\"EnableRedundancyZones\"") 17243 } else { 17244 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableRedundancyZones`) 17245 } 17246 r.WriteMapElemValue() 17247 if false { 17248 } else { 17249 r.EncodeBool(bool(x.EnableRedundancyZones)) 17250 } 17251 } 17252 if yyr2 || yy2arr2 { 17253 r.WriteArrayElem() 17254 if false { 17255 } else { 17256 r.EncodeBool(bool(x.DisableUpgradeMigration)) 17257 } 17258 } else { 17259 r.WriteMapElemKey() 17260 if z.IsJSONHandle() { 17261 z.WriteStr("\"DisableUpgradeMigration\"") 17262 } else { 17263 r.EncodeStringEnc(codecSelferCcUTF8100, `DisableUpgradeMigration`) 17264 } 17265 r.WriteMapElemValue() 17266 if false { 17267 } else { 17268 r.EncodeBool(bool(x.DisableUpgradeMigration)) 17269 } 17270 } 17271 if yyr2 || yy2arr2 { 17272 r.WriteArrayElem() 17273 if false { 17274 } else { 17275 r.EncodeBool(bool(x.EnableCustomUpgrades)) 17276 } 17277 } else { 17278 r.WriteMapElemKey() 17279 if z.IsJSONHandle() { 17280 z.WriteStr("\"EnableCustomUpgrades\"") 17281 } else { 17282 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableCustomUpgrades`) 17283 } 17284 r.WriteMapElemValue() 17285 if false { 17286 } else { 17287 r.EncodeBool(bool(x.EnableCustomUpgrades)) 17288 } 17289 } 17290 if yyr2 || yy2arr2 { 17291 r.WriteArrayElem() 17292 if false { 17293 } else { 17294 r.EncodeUint(uint64(x.CreateIndex)) 17295 } 17296 } else { 17297 r.WriteMapElemKey() 17298 if z.IsJSONHandle() { 17299 z.WriteStr("\"CreateIndex\"") 17300 } else { 17301 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 17302 } 17303 r.WriteMapElemValue() 17304 if false { 17305 } else { 17306 r.EncodeUint(uint64(x.CreateIndex)) 17307 } 17308 } 17309 if yyr2 || yy2arr2 { 17310 r.WriteArrayElem() 17311 if false { 17312 } else { 17313 r.EncodeUint(uint64(x.ModifyIndex)) 17314 } 17315 } else { 17316 r.WriteMapElemKey() 17317 if z.IsJSONHandle() { 17318 z.WriteStr("\"ModifyIndex\"") 17319 } else { 17320 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 17321 } 17322 r.WriteMapElemValue() 17323 if false { 17324 } else { 17325 r.EncodeUint(uint64(x.ModifyIndex)) 17326 } 17327 } 17328 if yyr2 || yy2arr2 { 17329 r.WriteArrayEnd() 17330 } else { 17331 r.WriteMapEnd() 17332 } 17333 } 17334 } 17335 } 17336 17337 func (x *AutopilotConfig) CodecDecodeSelf(d *codec1978.Decoder) { 17338 var h codecSelfer100 17339 z, r := codec1978.GenHelperDecoder(d) 17340 _, _, _ = h, z, r 17341 if false { 17342 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17343 z.DecExtension(x, yyxt1) 17344 } else { 17345 yyct2 := r.ContainerType() 17346 if yyct2 == codecSelferValueTypeMap100 { 17347 yyl2 := r.ReadMapStart() 17348 if yyl2 == 0 { 17349 r.ReadMapEnd() 17350 } else { 17351 x.codecDecodeSelfFromMap(yyl2, d) 17352 } 17353 } else if yyct2 == codecSelferValueTypeArray100 { 17354 yyl2 := r.ReadArrayStart() 17355 if yyl2 == 0 { 17356 r.ReadArrayEnd() 17357 } else { 17358 x.codecDecodeSelfFromArray(yyl2, d) 17359 } 17360 } else { 17361 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 17362 } 17363 } 17364 } 17365 17366 func (x *AutopilotConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 17367 var h codecSelfer100 17368 z, r := codec1978.GenHelperDecoder(d) 17369 _, _, _ = h, z, r 17370 var yyhl3 bool = l >= 0 17371 for yyj3 := 0; ; yyj3++ { 17372 if yyhl3 { 17373 if yyj3 >= l { 17374 break 17375 } 17376 } else { 17377 if r.CheckBreak() { 17378 break 17379 } 17380 } 17381 r.ReadMapElemKey() 17382 yys3 := z.StringView(r.DecodeStringAsBytes()) 17383 r.ReadMapElemValue() 17384 switch yys3 { 17385 case "CleanupDeadServers": 17386 if r.TryDecodeAsNil() { 17387 x.CleanupDeadServers = false 17388 } else { 17389 x.CleanupDeadServers = (bool)(r.DecodeBool()) 17390 } 17391 case "ServerStabilizationTime": 17392 if r.TryDecodeAsNil() { 17393 x.ServerStabilizationTime = 0 17394 } else { 17395 if false { 17396 } else if yyxt6 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt6 != nil { 17397 z.DecExtension(x.ServerStabilizationTime, yyxt6) 17398 } else { 17399 x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) 17400 } 17401 } 17402 case "LastContactThreshold": 17403 if r.TryDecodeAsNil() { 17404 x.LastContactThreshold = 0 17405 } else { 17406 if false { 17407 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt8 != nil { 17408 z.DecExtension(x.LastContactThreshold, yyxt8) 17409 } else { 17410 x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) 17411 } 17412 } 17413 case "MaxTrailingLogs": 17414 if r.TryDecodeAsNil() { 17415 x.MaxTrailingLogs = 0 17416 } else { 17417 x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) 17418 } 17419 case "MinQuorum": 17420 if r.TryDecodeAsNil() { 17421 x.MinQuorum = 0 17422 } else { 17423 x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) 17424 } 17425 case "EnableRedundancyZones": 17426 if r.TryDecodeAsNil() { 17427 x.EnableRedundancyZones = false 17428 } else { 17429 x.EnableRedundancyZones = (bool)(r.DecodeBool()) 17430 } 17431 case "DisableUpgradeMigration": 17432 if r.TryDecodeAsNil() { 17433 x.DisableUpgradeMigration = false 17434 } else { 17435 x.DisableUpgradeMigration = (bool)(r.DecodeBool()) 17436 } 17437 case "EnableCustomUpgrades": 17438 if r.TryDecodeAsNil() { 17439 x.EnableCustomUpgrades = false 17440 } else { 17441 x.EnableCustomUpgrades = (bool)(r.DecodeBool()) 17442 } 17443 case "CreateIndex": 17444 if r.TryDecodeAsNil() { 17445 x.CreateIndex = 0 17446 } else { 17447 x.CreateIndex = (uint64)(r.DecodeUint64()) 17448 } 17449 case "ModifyIndex": 17450 if r.TryDecodeAsNil() { 17451 x.ModifyIndex = 0 17452 } else { 17453 x.ModifyIndex = (uint64)(r.DecodeUint64()) 17454 } 17455 default: 17456 z.DecStructFieldNotFound(-1, yys3) 17457 } // end switch yys3 17458 } // end for yyj3 17459 r.ReadMapEnd() 17460 } 17461 17462 func (x *AutopilotConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 17463 var h codecSelfer100 17464 z, r := codec1978.GenHelperDecoder(d) 17465 _, _, _ = h, z, r 17466 var yyj16 int 17467 var yyb16 bool 17468 var yyhl16 bool = l >= 0 17469 yyj16++ 17470 if yyhl16 { 17471 yyb16 = yyj16 > l 17472 } else { 17473 yyb16 = r.CheckBreak() 17474 } 17475 if yyb16 { 17476 r.ReadArrayEnd() 17477 return 17478 } 17479 r.ReadArrayElem() 17480 if r.TryDecodeAsNil() { 17481 x.CleanupDeadServers = false 17482 } else { 17483 x.CleanupDeadServers = (bool)(r.DecodeBool()) 17484 } 17485 yyj16++ 17486 if yyhl16 { 17487 yyb16 = yyj16 > l 17488 } else { 17489 yyb16 = r.CheckBreak() 17490 } 17491 if yyb16 { 17492 r.ReadArrayEnd() 17493 return 17494 } 17495 r.ReadArrayElem() 17496 if r.TryDecodeAsNil() { 17497 x.ServerStabilizationTime = 0 17498 } else { 17499 if false { 17500 } else if yyxt19 := z.Extension(z.I2Rtid(x.ServerStabilizationTime)); yyxt19 != nil { 17501 z.DecExtension(x.ServerStabilizationTime, yyxt19) 17502 } else { 17503 x.ServerStabilizationTime = (time.Duration)(r.DecodeInt64()) 17504 } 17505 } 17506 yyj16++ 17507 if yyhl16 { 17508 yyb16 = yyj16 > l 17509 } else { 17510 yyb16 = r.CheckBreak() 17511 } 17512 if yyb16 { 17513 r.ReadArrayEnd() 17514 return 17515 } 17516 r.ReadArrayElem() 17517 if r.TryDecodeAsNil() { 17518 x.LastContactThreshold = 0 17519 } else { 17520 if false { 17521 } else if yyxt21 := z.Extension(z.I2Rtid(x.LastContactThreshold)); yyxt21 != nil { 17522 z.DecExtension(x.LastContactThreshold, yyxt21) 17523 } else { 17524 x.LastContactThreshold = (time.Duration)(r.DecodeInt64()) 17525 } 17526 } 17527 yyj16++ 17528 if yyhl16 { 17529 yyb16 = yyj16 > l 17530 } else { 17531 yyb16 = r.CheckBreak() 17532 } 17533 if yyb16 { 17534 r.ReadArrayEnd() 17535 return 17536 } 17537 r.ReadArrayElem() 17538 if r.TryDecodeAsNil() { 17539 x.MaxTrailingLogs = 0 17540 } else { 17541 x.MaxTrailingLogs = (uint64)(r.DecodeUint64()) 17542 } 17543 yyj16++ 17544 if yyhl16 { 17545 yyb16 = yyj16 > l 17546 } else { 17547 yyb16 = r.CheckBreak() 17548 } 17549 if yyb16 { 17550 r.ReadArrayEnd() 17551 return 17552 } 17553 r.ReadArrayElem() 17554 if r.TryDecodeAsNil() { 17555 x.MinQuorum = 0 17556 } else { 17557 x.MinQuorum = (uint)(z.C.UintV(r.DecodeUint64(), codecSelferBitsize100)) 17558 } 17559 yyj16++ 17560 if yyhl16 { 17561 yyb16 = yyj16 > l 17562 } else { 17563 yyb16 = r.CheckBreak() 17564 } 17565 if yyb16 { 17566 r.ReadArrayEnd() 17567 return 17568 } 17569 r.ReadArrayElem() 17570 if r.TryDecodeAsNil() { 17571 x.EnableRedundancyZones = false 17572 } else { 17573 x.EnableRedundancyZones = (bool)(r.DecodeBool()) 17574 } 17575 yyj16++ 17576 if yyhl16 { 17577 yyb16 = yyj16 > l 17578 } else { 17579 yyb16 = r.CheckBreak() 17580 } 17581 if yyb16 { 17582 r.ReadArrayEnd() 17583 return 17584 } 17585 r.ReadArrayElem() 17586 if r.TryDecodeAsNil() { 17587 x.DisableUpgradeMigration = false 17588 } else { 17589 x.DisableUpgradeMigration = (bool)(r.DecodeBool()) 17590 } 17591 yyj16++ 17592 if yyhl16 { 17593 yyb16 = yyj16 > l 17594 } else { 17595 yyb16 = r.CheckBreak() 17596 } 17597 if yyb16 { 17598 r.ReadArrayEnd() 17599 return 17600 } 17601 r.ReadArrayElem() 17602 if r.TryDecodeAsNil() { 17603 x.EnableCustomUpgrades = false 17604 } else { 17605 x.EnableCustomUpgrades = (bool)(r.DecodeBool()) 17606 } 17607 yyj16++ 17608 if yyhl16 { 17609 yyb16 = yyj16 > l 17610 } else { 17611 yyb16 = r.CheckBreak() 17612 } 17613 if yyb16 { 17614 r.ReadArrayEnd() 17615 return 17616 } 17617 r.ReadArrayElem() 17618 if r.TryDecodeAsNil() { 17619 x.CreateIndex = 0 17620 } else { 17621 x.CreateIndex = (uint64)(r.DecodeUint64()) 17622 } 17623 yyj16++ 17624 if yyhl16 { 17625 yyb16 = yyj16 > l 17626 } else { 17627 yyb16 = r.CheckBreak() 17628 } 17629 if yyb16 { 17630 r.ReadArrayEnd() 17631 return 17632 } 17633 r.ReadArrayElem() 17634 if r.TryDecodeAsNil() { 17635 x.ModifyIndex = 0 17636 } else { 17637 x.ModifyIndex = (uint64)(r.DecodeUint64()) 17638 } 17639 for { 17640 yyj16++ 17641 if yyhl16 { 17642 yyb16 = yyj16 > l 17643 } else { 17644 yyb16 = r.CheckBreak() 17645 } 17646 if yyb16 { 17647 break 17648 } 17649 r.ReadArrayElem() 17650 z.DecStructFieldNotFound(yyj16-1, "") 17651 } 17652 r.ReadArrayEnd() 17653 } 17654 17655 func (x SchedulerAlgorithm) CodecEncodeSelf(e *codec1978.Encoder) { 17656 var h codecSelfer100 17657 z, r := codec1978.GenHelperEncoder(e) 17658 _, _, _ = h, z, r 17659 if false { 17660 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17661 z.EncExtension(x, yyxt1) 17662 } else { 17663 if z.EncBasicHandle().StringToRaw { 17664 r.EncodeStringBytesRaw(z.BytesView(string(x))) 17665 } else { 17666 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 17667 } 17668 } 17669 } 17670 17671 func (x *SchedulerAlgorithm) CodecDecodeSelf(d *codec1978.Decoder) { 17672 var h codecSelfer100 17673 z, r := codec1978.GenHelperDecoder(d) 17674 _, _, _ = h, z, r 17675 if false { 17676 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17677 z.DecExtension(x, yyxt1) 17678 } else { 17679 *x = (SchedulerAlgorithm)(r.DecodeString()) 17680 } 17681 } 17682 17683 func (x *SchedulerConfiguration) CodecEncodeSelf(e *codec1978.Encoder) { 17684 var h codecSelfer100 17685 z, r := codec1978.GenHelperEncoder(e) 17686 _, _, _ = h, z, r 17687 if x == nil { 17688 r.EncodeNil() 17689 } else { 17690 if false { 17691 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17692 z.EncExtension(x, yyxt1) 17693 } else { 17694 yysep2 := !z.EncBinary() 17695 yy2arr2 := z.EncBasicHandle().StructToArray 17696 _, _ = yysep2, yy2arr2 17697 const yyr2 bool = false // struct tag has 'toArray' 17698 if yyr2 || yy2arr2 { 17699 r.WriteArrayStart(4) 17700 } else { 17701 r.WriteMapStart(4) 17702 } 17703 if yyr2 || yy2arr2 { 17704 r.WriteArrayElem() 17705 x.SchedulerAlgorithm.CodecEncodeSelf(e) 17706 } else { 17707 r.WriteMapElemKey() 17708 if z.IsJSONHandle() { 17709 z.WriteStr("\"SchedulerAlgorithm\"") 17710 } else { 17711 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerAlgorithm`) 17712 } 17713 r.WriteMapElemValue() 17714 x.SchedulerAlgorithm.CodecEncodeSelf(e) 17715 } 17716 if yyr2 || yy2arr2 { 17717 r.WriteArrayElem() 17718 yy7 := &x.PreemptionConfig 17719 yy7.CodecEncodeSelf(e) 17720 } else { 17721 r.WriteMapElemKey() 17722 if z.IsJSONHandle() { 17723 z.WriteStr("\"PreemptionConfig\"") 17724 } else { 17725 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionConfig`) 17726 } 17727 r.WriteMapElemValue() 17728 yy9 := &x.PreemptionConfig 17729 yy9.CodecEncodeSelf(e) 17730 } 17731 if yyr2 || yy2arr2 { 17732 r.WriteArrayElem() 17733 if false { 17734 } else { 17735 r.EncodeUint(uint64(x.CreateIndex)) 17736 } 17737 } else { 17738 r.WriteMapElemKey() 17739 if z.IsJSONHandle() { 17740 z.WriteStr("\"CreateIndex\"") 17741 } else { 17742 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 17743 } 17744 r.WriteMapElemValue() 17745 if false { 17746 } else { 17747 r.EncodeUint(uint64(x.CreateIndex)) 17748 } 17749 } 17750 if yyr2 || yy2arr2 { 17751 r.WriteArrayElem() 17752 if false { 17753 } else { 17754 r.EncodeUint(uint64(x.ModifyIndex)) 17755 } 17756 } else { 17757 r.WriteMapElemKey() 17758 if z.IsJSONHandle() { 17759 z.WriteStr("\"ModifyIndex\"") 17760 } else { 17761 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 17762 } 17763 r.WriteMapElemValue() 17764 if false { 17765 } else { 17766 r.EncodeUint(uint64(x.ModifyIndex)) 17767 } 17768 } 17769 if yyr2 || yy2arr2 { 17770 r.WriteArrayEnd() 17771 } else { 17772 r.WriteMapEnd() 17773 } 17774 } 17775 } 17776 } 17777 17778 func (x *SchedulerConfiguration) CodecDecodeSelf(d *codec1978.Decoder) { 17779 var h codecSelfer100 17780 z, r := codec1978.GenHelperDecoder(d) 17781 _, _, _ = h, z, r 17782 if false { 17783 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17784 z.DecExtension(x, yyxt1) 17785 } else { 17786 yyct2 := r.ContainerType() 17787 if yyct2 == codecSelferValueTypeMap100 { 17788 yyl2 := r.ReadMapStart() 17789 if yyl2 == 0 { 17790 r.ReadMapEnd() 17791 } else { 17792 x.codecDecodeSelfFromMap(yyl2, d) 17793 } 17794 } else if yyct2 == codecSelferValueTypeArray100 { 17795 yyl2 := r.ReadArrayStart() 17796 if yyl2 == 0 { 17797 r.ReadArrayEnd() 17798 } else { 17799 x.codecDecodeSelfFromArray(yyl2, d) 17800 } 17801 } else { 17802 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 17803 } 17804 } 17805 } 17806 17807 func (x *SchedulerConfiguration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 17808 var h codecSelfer100 17809 z, r := codec1978.GenHelperDecoder(d) 17810 _, _, _ = h, z, r 17811 var yyhl3 bool = l >= 0 17812 for yyj3 := 0; ; yyj3++ { 17813 if yyhl3 { 17814 if yyj3 >= l { 17815 break 17816 } 17817 } else { 17818 if r.CheckBreak() { 17819 break 17820 } 17821 } 17822 r.ReadMapElemKey() 17823 yys3 := z.StringView(r.DecodeStringAsBytes()) 17824 r.ReadMapElemValue() 17825 switch yys3 { 17826 case "SchedulerAlgorithm": 17827 if r.TryDecodeAsNil() { 17828 x.SchedulerAlgorithm = "" 17829 } else { 17830 x.SchedulerAlgorithm.CodecDecodeSelf(d) 17831 } 17832 case "PreemptionConfig": 17833 if r.TryDecodeAsNil() { 17834 x.PreemptionConfig = PreemptionConfig{} 17835 } else { 17836 x.PreemptionConfig.CodecDecodeSelf(d) 17837 } 17838 case "CreateIndex": 17839 if r.TryDecodeAsNil() { 17840 x.CreateIndex = 0 17841 } else { 17842 x.CreateIndex = (uint64)(r.DecodeUint64()) 17843 } 17844 case "ModifyIndex": 17845 if r.TryDecodeAsNil() { 17846 x.ModifyIndex = 0 17847 } else { 17848 x.ModifyIndex = (uint64)(r.DecodeUint64()) 17849 } 17850 default: 17851 z.DecStructFieldNotFound(-1, yys3) 17852 } // end switch yys3 17853 } // end for yyj3 17854 r.ReadMapEnd() 17855 } 17856 17857 func (x *SchedulerConfiguration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 17858 var h codecSelfer100 17859 z, r := codec1978.GenHelperDecoder(d) 17860 _, _, _ = h, z, r 17861 var yyj8 int 17862 var yyb8 bool 17863 var yyhl8 bool = l >= 0 17864 yyj8++ 17865 if yyhl8 { 17866 yyb8 = yyj8 > l 17867 } else { 17868 yyb8 = r.CheckBreak() 17869 } 17870 if yyb8 { 17871 r.ReadArrayEnd() 17872 return 17873 } 17874 r.ReadArrayElem() 17875 if r.TryDecodeAsNil() { 17876 x.SchedulerAlgorithm = "" 17877 } else { 17878 x.SchedulerAlgorithm.CodecDecodeSelf(d) 17879 } 17880 yyj8++ 17881 if yyhl8 { 17882 yyb8 = yyj8 > l 17883 } else { 17884 yyb8 = r.CheckBreak() 17885 } 17886 if yyb8 { 17887 r.ReadArrayEnd() 17888 return 17889 } 17890 r.ReadArrayElem() 17891 if r.TryDecodeAsNil() { 17892 x.PreemptionConfig = PreemptionConfig{} 17893 } else { 17894 x.PreemptionConfig.CodecDecodeSelf(d) 17895 } 17896 yyj8++ 17897 if yyhl8 { 17898 yyb8 = yyj8 > l 17899 } else { 17900 yyb8 = r.CheckBreak() 17901 } 17902 if yyb8 { 17903 r.ReadArrayEnd() 17904 return 17905 } 17906 r.ReadArrayElem() 17907 if r.TryDecodeAsNil() { 17908 x.CreateIndex = 0 17909 } else { 17910 x.CreateIndex = (uint64)(r.DecodeUint64()) 17911 } 17912 yyj8++ 17913 if yyhl8 { 17914 yyb8 = yyj8 > l 17915 } else { 17916 yyb8 = r.CheckBreak() 17917 } 17918 if yyb8 { 17919 r.ReadArrayEnd() 17920 return 17921 } 17922 r.ReadArrayElem() 17923 if r.TryDecodeAsNil() { 17924 x.ModifyIndex = 0 17925 } else { 17926 x.ModifyIndex = (uint64)(r.DecodeUint64()) 17927 } 17928 for { 17929 yyj8++ 17930 if yyhl8 { 17931 yyb8 = yyj8 > l 17932 } else { 17933 yyb8 = r.CheckBreak() 17934 } 17935 if yyb8 { 17936 break 17937 } 17938 r.ReadArrayElem() 17939 z.DecStructFieldNotFound(yyj8-1, "") 17940 } 17941 r.ReadArrayEnd() 17942 } 17943 17944 func (x *SchedulerConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 17945 var h codecSelfer100 17946 z, r := codec1978.GenHelperEncoder(e) 17947 _, _, _ = h, z, r 17948 if x == nil { 17949 r.EncodeNil() 17950 } else { 17951 if false { 17952 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 17953 z.EncExtension(x, yyxt1) 17954 } else { 17955 yysep2 := !z.EncBinary() 17956 yy2arr2 := z.EncBasicHandle().StructToArray 17957 _, _ = yysep2, yy2arr2 17958 const yyr2 bool = false // struct tag has 'toArray' 17959 if yyr2 || yy2arr2 { 17960 r.WriteArrayStart(4) 17961 } else { 17962 r.WriteMapStart(4) 17963 } 17964 var yyn3 bool 17965 if x.SchedulerConfig == nil { 17966 yyn3 = true 17967 goto LABEL3 17968 } 17969 LABEL3: 17970 if yyr2 || yy2arr2 { 17971 if yyn3 { 17972 r.WriteArrayElem() 17973 r.EncodeNil() 17974 } else { 17975 r.WriteArrayElem() 17976 if x.SchedulerConfig == nil { 17977 r.EncodeNil() 17978 } else { 17979 x.SchedulerConfig.CodecEncodeSelf(e) 17980 } 17981 } 17982 } else { 17983 r.WriteMapElemKey() 17984 if z.IsJSONHandle() { 17985 z.WriteStr("\"SchedulerConfig\"") 17986 } else { 17987 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerConfig`) 17988 } 17989 r.WriteMapElemValue() 17990 if yyn3 { 17991 r.EncodeNil() 17992 } else { 17993 if x.SchedulerConfig == nil { 17994 r.EncodeNil() 17995 } else { 17996 x.SchedulerConfig.CodecEncodeSelf(e) 17997 } 17998 } 17999 } 18000 if yyr2 || yy2arr2 { 18001 r.WriteArrayElem() 18002 if false { 18003 } else { 18004 r.EncodeUint(uint64(x.Index)) 18005 } 18006 } else { 18007 r.WriteMapElemKey() 18008 if z.IsJSONHandle() { 18009 z.WriteStr("\"Index\"") 18010 } else { 18011 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 18012 } 18013 r.WriteMapElemValue() 18014 if false { 18015 } else { 18016 r.EncodeUint(uint64(x.Index)) 18017 } 18018 } 18019 if yyr2 || yy2arr2 { 18020 r.WriteArrayElem() 18021 if false { 18022 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 18023 z.EncExtension(x.LastContact, yyxt10) 18024 } else { 18025 r.EncodeInt(int64(x.LastContact)) 18026 } 18027 } else { 18028 r.WriteMapElemKey() 18029 if z.IsJSONHandle() { 18030 z.WriteStr("\"LastContact\"") 18031 } else { 18032 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 18033 } 18034 r.WriteMapElemValue() 18035 if false { 18036 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 18037 z.EncExtension(x.LastContact, yyxt11) 18038 } else { 18039 r.EncodeInt(int64(x.LastContact)) 18040 } 18041 } 18042 if yyr2 || yy2arr2 { 18043 r.WriteArrayElem() 18044 if false { 18045 } else { 18046 r.EncodeBool(bool(x.KnownLeader)) 18047 } 18048 } else { 18049 r.WriteMapElemKey() 18050 if z.IsJSONHandle() { 18051 z.WriteStr("\"KnownLeader\"") 18052 } else { 18053 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 18054 } 18055 r.WriteMapElemValue() 18056 if false { 18057 } else { 18058 r.EncodeBool(bool(x.KnownLeader)) 18059 } 18060 } 18061 if yyr2 || yy2arr2 { 18062 r.WriteArrayEnd() 18063 } else { 18064 r.WriteMapEnd() 18065 } 18066 } 18067 } 18068 } 18069 18070 func (x *SchedulerConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 18071 var h codecSelfer100 18072 z, r := codec1978.GenHelperDecoder(d) 18073 _, _, _ = h, z, r 18074 if false { 18075 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18076 z.DecExtension(x, yyxt1) 18077 } else { 18078 yyct2 := r.ContainerType() 18079 if yyct2 == codecSelferValueTypeMap100 { 18080 yyl2 := r.ReadMapStart() 18081 if yyl2 == 0 { 18082 r.ReadMapEnd() 18083 } else { 18084 x.codecDecodeSelfFromMap(yyl2, d) 18085 } 18086 } else if yyct2 == codecSelferValueTypeArray100 { 18087 yyl2 := r.ReadArrayStart() 18088 if yyl2 == 0 { 18089 r.ReadArrayEnd() 18090 } else { 18091 x.codecDecodeSelfFromArray(yyl2, d) 18092 } 18093 } else { 18094 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18095 } 18096 } 18097 } 18098 18099 func (x *SchedulerConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18100 var h codecSelfer100 18101 z, r := codec1978.GenHelperDecoder(d) 18102 _, _, _ = h, z, r 18103 var yyhl3 bool = l >= 0 18104 for yyj3 := 0; ; yyj3++ { 18105 if yyhl3 { 18106 if yyj3 >= l { 18107 break 18108 } 18109 } else { 18110 if r.CheckBreak() { 18111 break 18112 } 18113 } 18114 r.ReadMapElemKey() 18115 yys3 := z.StringView(r.DecodeStringAsBytes()) 18116 r.ReadMapElemValue() 18117 switch yys3 { 18118 case "SchedulerConfig": 18119 if r.TryDecodeAsNil() { 18120 if true && x.SchedulerConfig != nil { 18121 x.SchedulerConfig = nil 18122 } 18123 } else { 18124 if x.SchedulerConfig == nil { 18125 x.SchedulerConfig = new(SchedulerConfiguration) 18126 } 18127 18128 x.SchedulerConfig.CodecDecodeSelf(d) 18129 } 18130 case "Index": 18131 if r.TryDecodeAsNil() { 18132 x.QueryMeta.Index = 0 18133 } else { 18134 x.Index = (uint64)(r.DecodeUint64()) 18135 } 18136 case "LastContact": 18137 if r.TryDecodeAsNil() { 18138 x.QueryMeta.LastContact = 0 18139 } else { 18140 if false { 18141 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 18142 z.DecExtension(x.LastContact, yyxt7) 18143 } else { 18144 x.LastContact = (time.Duration)(r.DecodeInt64()) 18145 } 18146 } 18147 case "KnownLeader": 18148 if r.TryDecodeAsNil() { 18149 x.QueryMeta.KnownLeader = false 18150 } else { 18151 x.KnownLeader = (bool)(r.DecodeBool()) 18152 } 18153 default: 18154 z.DecStructFieldNotFound(-1, yys3) 18155 } // end switch yys3 18156 } // end for yyj3 18157 r.ReadMapEnd() 18158 } 18159 18160 func (x *SchedulerConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18161 var h codecSelfer100 18162 z, r := codec1978.GenHelperDecoder(d) 18163 _, _, _ = h, z, r 18164 var yyj9 int 18165 var yyb9 bool 18166 var yyhl9 bool = l >= 0 18167 yyj9++ 18168 if yyhl9 { 18169 yyb9 = yyj9 > l 18170 } else { 18171 yyb9 = r.CheckBreak() 18172 } 18173 if yyb9 { 18174 r.ReadArrayEnd() 18175 return 18176 } 18177 r.ReadArrayElem() 18178 if r.TryDecodeAsNil() { 18179 if true && x.SchedulerConfig != nil { 18180 x.SchedulerConfig = nil 18181 } 18182 } else { 18183 if x.SchedulerConfig == nil { 18184 x.SchedulerConfig = new(SchedulerConfiguration) 18185 } 18186 18187 x.SchedulerConfig.CodecDecodeSelf(d) 18188 } 18189 yyj9++ 18190 if yyhl9 { 18191 yyb9 = yyj9 > l 18192 } else { 18193 yyb9 = r.CheckBreak() 18194 } 18195 if yyb9 { 18196 r.ReadArrayEnd() 18197 return 18198 } 18199 r.ReadArrayElem() 18200 if r.TryDecodeAsNil() { 18201 x.QueryMeta.Index = 0 18202 } else { 18203 x.Index = (uint64)(r.DecodeUint64()) 18204 } 18205 yyj9++ 18206 if yyhl9 { 18207 yyb9 = yyj9 > l 18208 } else { 18209 yyb9 = r.CheckBreak() 18210 } 18211 if yyb9 { 18212 r.ReadArrayEnd() 18213 return 18214 } 18215 r.ReadArrayElem() 18216 if r.TryDecodeAsNil() { 18217 x.QueryMeta.LastContact = 0 18218 } else { 18219 if false { 18220 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 18221 z.DecExtension(x.LastContact, yyxt13) 18222 } else { 18223 x.LastContact = (time.Duration)(r.DecodeInt64()) 18224 } 18225 } 18226 yyj9++ 18227 if yyhl9 { 18228 yyb9 = yyj9 > l 18229 } else { 18230 yyb9 = r.CheckBreak() 18231 } 18232 if yyb9 { 18233 r.ReadArrayEnd() 18234 return 18235 } 18236 r.ReadArrayElem() 18237 if r.TryDecodeAsNil() { 18238 x.QueryMeta.KnownLeader = false 18239 } else { 18240 x.KnownLeader = (bool)(r.DecodeBool()) 18241 } 18242 for { 18243 yyj9++ 18244 if yyhl9 { 18245 yyb9 = yyj9 > l 18246 } else { 18247 yyb9 = r.CheckBreak() 18248 } 18249 if yyb9 { 18250 break 18251 } 18252 r.ReadArrayElem() 18253 z.DecStructFieldNotFound(yyj9-1, "") 18254 } 18255 r.ReadArrayEnd() 18256 } 18257 18258 func (x *SchedulerSetConfigurationResponse) CodecEncodeSelf(e *codec1978.Encoder) { 18259 var h codecSelfer100 18260 z, r := codec1978.GenHelperEncoder(e) 18261 _, _, _ = h, z, r 18262 if x == nil { 18263 r.EncodeNil() 18264 } else { 18265 if false { 18266 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18267 z.EncExtension(x, yyxt1) 18268 } else { 18269 yysep2 := !z.EncBinary() 18270 yy2arr2 := z.EncBasicHandle().StructToArray 18271 _, _ = yysep2, yy2arr2 18272 const yyr2 bool = false // struct tag has 'toArray' 18273 if yyr2 || yy2arr2 { 18274 r.WriteArrayStart(2) 18275 } else { 18276 r.WriteMapStart(2) 18277 } 18278 if yyr2 || yy2arr2 { 18279 r.WriteArrayElem() 18280 if false { 18281 } else { 18282 r.EncodeBool(bool(x.Updated)) 18283 } 18284 } else { 18285 r.WriteMapElemKey() 18286 if z.IsJSONHandle() { 18287 z.WriteStr("\"Updated\"") 18288 } else { 18289 r.EncodeStringEnc(codecSelferCcUTF8100, `Updated`) 18290 } 18291 r.WriteMapElemValue() 18292 if false { 18293 } else { 18294 r.EncodeBool(bool(x.Updated)) 18295 } 18296 } 18297 if yyr2 || yy2arr2 { 18298 r.WriteArrayElem() 18299 if false { 18300 } else { 18301 r.EncodeUint(uint64(x.Index)) 18302 } 18303 } else { 18304 r.WriteMapElemKey() 18305 if z.IsJSONHandle() { 18306 z.WriteStr("\"Index\"") 18307 } else { 18308 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 18309 } 18310 r.WriteMapElemValue() 18311 if false { 18312 } else { 18313 r.EncodeUint(uint64(x.Index)) 18314 } 18315 } 18316 if yyr2 || yy2arr2 { 18317 r.WriteArrayEnd() 18318 } else { 18319 r.WriteMapEnd() 18320 } 18321 } 18322 } 18323 } 18324 18325 func (x *SchedulerSetConfigurationResponse) CodecDecodeSelf(d *codec1978.Decoder) { 18326 var h codecSelfer100 18327 z, r := codec1978.GenHelperDecoder(d) 18328 _, _, _ = h, z, r 18329 if false { 18330 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18331 z.DecExtension(x, yyxt1) 18332 } else { 18333 yyct2 := r.ContainerType() 18334 if yyct2 == codecSelferValueTypeMap100 { 18335 yyl2 := r.ReadMapStart() 18336 if yyl2 == 0 { 18337 r.ReadMapEnd() 18338 } else { 18339 x.codecDecodeSelfFromMap(yyl2, d) 18340 } 18341 } else if yyct2 == codecSelferValueTypeArray100 { 18342 yyl2 := r.ReadArrayStart() 18343 if yyl2 == 0 { 18344 r.ReadArrayEnd() 18345 } else { 18346 x.codecDecodeSelfFromArray(yyl2, d) 18347 } 18348 } else { 18349 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18350 } 18351 } 18352 } 18353 18354 func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18355 var h codecSelfer100 18356 z, r := codec1978.GenHelperDecoder(d) 18357 _, _, _ = h, z, r 18358 var yyhl3 bool = l >= 0 18359 for yyj3 := 0; ; yyj3++ { 18360 if yyhl3 { 18361 if yyj3 >= l { 18362 break 18363 } 18364 } else { 18365 if r.CheckBreak() { 18366 break 18367 } 18368 } 18369 r.ReadMapElemKey() 18370 yys3 := z.StringView(r.DecodeStringAsBytes()) 18371 r.ReadMapElemValue() 18372 switch yys3 { 18373 case "Updated": 18374 if r.TryDecodeAsNil() { 18375 x.Updated = false 18376 } else { 18377 x.Updated = (bool)(r.DecodeBool()) 18378 } 18379 case "Index": 18380 if r.TryDecodeAsNil() { 18381 x.WriteMeta.Index = 0 18382 } else { 18383 x.Index = (uint64)(r.DecodeUint64()) 18384 } 18385 default: 18386 z.DecStructFieldNotFound(-1, yys3) 18387 } // end switch yys3 18388 } // end for yyj3 18389 r.ReadMapEnd() 18390 } 18391 18392 func (x *SchedulerSetConfigurationResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18393 var h codecSelfer100 18394 z, r := codec1978.GenHelperDecoder(d) 18395 _, _, _ = h, z, r 18396 var yyj6 int 18397 var yyb6 bool 18398 var yyhl6 bool = l >= 0 18399 yyj6++ 18400 if yyhl6 { 18401 yyb6 = yyj6 > l 18402 } else { 18403 yyb6 = r.CheckBreak() 18404 } 18405 if yyb6 { 18406 r.ReadArrayEnd() 18407 return 18408 } 18409 r.ReadArrayElem() 18410 if r.TryDecodeAsNil() { 18411 x.Updated = false 18412 } else { 18413 x.Updated = (bool)(r.DecodeBool()) 18414 } 18415 yyj6++ 18416 if yyhl6 { 18417 yyb6 = yyj6 > l 18418 } else { 18419 yyb6 = r.CheckBreak() 18420 } 18421 if yyb6 { 18422 r.ReadArrayEnd() 18423 return 18424 } 18425 r.ReadArrayElem() 18426 if r.TryDecodeAsNil() { 18427 x.WriteMeta.Index = 0 18428 } else { 18429 x.Index = (uint64)(r.DecodeUint64()) 18430 } 18431 for { 18432 yyj6++ 18433 if yyhl6 { 18434 yyb6 = yyj6 > l 18435 } else { 18436 yyb6 = r.CheckBreak() 18437 } 18438 if yyb6 { 18439 break 18440 } 18441 r.ReadArrayElem() 18442 z.DecStructFieldNotFound(yyj6-1, "") 18443 } 18444 r.ReadArrayEnd() 18445 } 18446 18447 func (x *PreemptionConfig) CodecEncodeSelf(e *codec1978.Encoder) { 18448 var h codecSelfer100 18449 z, r := codec1978.GenHelperEncoder(e) 18450 _, _, _ = h, z, r 18451 if x == nil { 18452 r.EncodeNil() 18453 } else { 18454 if false { 18455 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18456 z.EncExtension(x, yyxt1) 18457 } else { 18458 yysep2 := !z.EncBinary() 18459 yy2arr2 := z.EncBasicHandle().StructToArray 18460 _, _ = yysep2, yy2arr2 18461 const yyr2 bool = false // struct tag has 'toArray' 18462 if yyr2 || yy2arr2 { 18463 r.WriteArrayStart(3) 18464 } else { 18465 r.WriteMapStart(3) 18466 } 18467 if yyr2 || yy2arr2 { 18468 r.WriteArrayElem() 18469 if false { 18470 } else { 18471 r.EncodeBool(bool(x.SystemSchedulerEnabled)) 18472 } 18473 } else { 18474 r.WriteMapElemKey() 18475 if z.IsJSONHandle() { 18476 z.WriteStr("\"SystemSchedulerEnabled\"") 18477 } else { 18478 r.EncodeStringEnc(codecSelferCcUTF8100, `SystemSchedulerEnabled`) 18479 } 18480 r.WriteMapElemValue() 18481 if false { 18482 } else { 18483 r.EncodeBool(bool(x.SystemSchedulerEnabled)) 18484 } 18485 } 18486 if yyr2 || yy2arr2 { 18487 r.WriteArrayElem() 18488 if false { 18489 } else { 18490 r.EncodeBool(bool(x.BatchSchedulerEnabled)) 18491 } 18492 } else { 18493 r.WriteMapElemKey() 18494 if z.IsJSONHandle() { 18495 z.WriteStr("\"BatchSchedulerEnabled\"") 18496 } else { 18497 r.EncodeStringEnc(codecSelferCcUTF8100, `BatchSchedulerEnabled`) 18498 } 18499 r.WriteMapElemValue() 18500 if false { 18501 } else { 18502 r.EncodeBool(bool(x.BatchSchedulerEnabled)) 18503 } 18504 } 18505 if yyr2 || yy2arr2 { 18506 r.WriteArrayElem() 18507 if false { 18508 } else { 18509 r.EncodeBool(bool(x.ServiceSchedulerEnabled)) 18510 } 18511 } else { 18512 r.WriteMapElemKey() 18513 if z.IsJSONHandle() { 18514 z.WriteStr("\"ServiceSchedulerEnabled\"") 18515 } else { 18516 r.EncodeStringEnc(codecSelferCcUTF8100, `ServiceSchedulerEnabled`) 18517 } 18518 r.WriteMapElemValue() 18519 if false { 18520 } else { 18521 r.EncodeBool(bool(x.ServiceSchedulerEnabled)) 18522 } 18523 } 18524 if yyr2 || yy2arr2 { 18525 r.WriteArrayEnd() 18526 } else { 18527 r.WriteMapEnd() 18528 } 18529 } 18530 } 18531 } 18532 18533 func (x *PreemptionConfig) CodecDecodeSelf(d *codec1978.Decoder) { 18534 var h codecSelfer100 18535 z, r := codec1978.GenHelperDecoder(d) 18536 _, _, _ = h, z, r 18537 if false { 18538 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18539 z.DecExtension(x, yyxt1) 18540 } else { 18541 yyct2 := r.ContainerType() 18542 if yyct2 == codecSelferValueTypeMap100 { 18543 yyl2 := r.ReadMapStart() 18544 if yyl2 == 0 { 18545 r.ReadMapEnd() 18546 } else { 18547 x.codecDecodeSelfFromMap(yyl2, d) 18548 } 18549 } else if yyct2 == codecSelferValueTypeArray100 { 18550 yyl2 := r.ReadArrayStart() 18551 if yyl2 == 0 { 18552 r.ReadArrayEnd() 18553 } else { 18554 x.codecDecodeSelfFromArray(yyl2, d) 18555 } 18556 } else { 18557 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18558 } 18559 } 18560 } 18561 18562 func (x *PreemptionConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18563 var h codecSelfer100 18564 z, r := codec1978.GenHelperDecoder(d) 18565 _, _, _ = h, z, r 18566 var yyhl3 bool = l >= 0 18567 for yyj3 := 0; ; yyj3++ { 18568 if yyhl3 { 18569 if yyj3 >= l { 18570 break 18571 } 18572 } else { 18573 if r.CheckBreak() { 18574 break 18575 } 18576 } 18577 r.ReadMapElemKey() 18578 yys3 := z.StringView(r.DecodeStringAsBytes()) 18579 r.ReadMapElemValue() 18580 switch yys3 { 18581 case "SystemSchedulerEnabled": 18582 if r.TryDecodeAsNil() { 18583 x.SystemSchedulerEnabled = false 18584 } else { 18585 x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) 18586 } 18587 case "BatchSchedulerEnabled": 18588 if r.TryDecodeAsNil() { 18589 x.BatchSchedulerEnabled = false 18590 } else { 18591 x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) 18592 } 18593 case "ServiceSchedulerEnabled": 18594 if r.TryDecodeAsNil() { 18595 x.ServiceSchedulerEnabled = false 18596 } else { 18597 x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) 18598 } 18599 default: 18600 z.DecStructFieldNotFound(-1, yys3) 18601 } // end switch yys3 18602 } // end for yyj3 18603 r.ReadMapEnd() 18604 } 18605 18606 func (x *PreemptionConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18607 var h codecSelfer100 18608 z, r := codec1978.GenHelperDecoder(d) 18609 _, _, _ = h, z, r 18610 var yyj7 int 18611 var yyb7 bool 18612 var yyhl7 bool = l >= 0 18613 yyj7++ 18614 if yyhl7 { 18615 yyb7 = yyj7 > l 18616 } else { 18617 yyb7 = r.CheckBreak() 18618 } 18619 if yyb7 { 18620 r.ReadArrayEnd() 18621 return 18622 } 18623 r.ReadArrayElem() 18624 if r.TryDecodeAsNil() { 18625 x.SystemSchedulerEnabled = false 18626 } else { 18627 x.SystemSchedulerEnabled = (bool)(r.DecodeBool()) 18628 } 18629 yyj7++ 18630 if yyhl7 { 18631 yyb7 = yyj7 > l 18632 } else { 18633 yyb7 = r.CheckBreak() 18634 } 18635 if yyb7 { 18636 r.ReadArrayEnd() 18637 return 18638 } 18639 r.ReadArrayElem() 18640 if r.TryDecodeAsNil() { 18641 x.BatchSchedulerEnabled = false 18642 } else { 18643 x.BatchSchedulerEnabled = (bool)(r.DecodeBool()) 18644 } 18645 yyj7++ 18646 if yyhl7 { 18647 yyb7 = yyj7 > l 18648 } else { 18649 yyb7 = r.CheckBreak() 18650 } 18651 if yyb7 { 18652 r.ReadArrayEnd() 18653 return 18654 } 18655 r.ReadArrayElem() 18656 if r.TryDecodeAsNil() { 18657 x.ServiceSchedulerEnabled = false 18658 } else { 18659 x.ServiceSchedulerEnabled = (bool)(r.DecodeBool()) 18660 } 18661 for { 18662 yyj7++ 18663 if yyhl7 { 18664 yyb7 = yyj7 > l 18665 } else { 18666 yyb7 = r.CheckBreak() 18667 } 18668 if yyb7 { 18669 break 18670 } 18671 r.ReadArrayElem() 18672 z.DecStructFieldNotFound(yyj7-1, "") 18673 } 18674 r.ReadArrayEnd() 18675 } 18676 18677 func (x *SchedulerSetConfigRequest) CodecEncodeSelf(e *codec1978.Encoder) { 18678 var h codecSelfer100 18679 z, r := codec1978.GenHelperEncoder(e) 18680 _, _, _ = h, z, r 18681 if x == nil { 18682 r.EncodeNil() 18683 } else { 18684 if false { 18685 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18686 z.EncExtension(x, yyxt1) 18687 } else { 18688 yysep2 := !z.EncBinary() 18689 yy2arr2 := z.EncBasicHandle().StructToArray 18690 _, _ = yysep2, yy2arr2 18691 const yyr2 bool = false // struct tag has 'toArray' 18692 if yyr2 || yy2arr2 { 18693 r.WriteArrayStart(6) 18694 } else { 18695 r.WriteMapStart(6) 18696 } 18697 if yyr2 || yy2arr2 { 18698 r.WriteArrayElem() 18699 yy4 := &x.Config 18700 yy4.CodecEncodeSelf(e) 18701 } else { 18702 r.WriteMapElemKey() 18703 if z.IsJSONHandle() { 18704 z.WriteStr("\"Config\"") 18705 } else { 18706 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 18707 } 18708 r.WriteMapElemValue() 18709 yy6 := &x.Config 18710 yy6.CodecEncodeSelf(e) 18711 } 18712 if yyr2 || yy2arr2 { 18713 r.WriteArrayElem() 18714 if false { 18715 } else { 18716 r.EncodeBool(bool(x.CAS)) 18717 } 18718 } else { 18719 r.WriteMapElemKey() 18720 if z.IsJSONHandle() { 18721 z.WriteStr("\"CAS\"") 18722 } else { 18723 r.EncodeStringEnc(codecSelferCcUTF8100, `CAS`) 18724 } 18725 r.WriteMapElemValue() 18726 if false { 18727 } else { 18728 r.EncodeBool(bool(x.CAS)) 18729 } 18730 } 18731 if yyr2 || yy2arr2 { 18732 r.WriteArrayElem() 18733 if false { 18734 } else { 18735 if z.EncBasicHandle().StringToRaw { 18736 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 18737 } else { 18738 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 18739 } 18740 } 18741 } else { 18742 r.WriteMapElemKey() 18743 if z.IsJSONHandle() { 18744 z.WriteStr("\"Region\"") 18745 } else { 18746 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 18747 } 18748 r.WriteMapElemValue() 18749 if false { 18750 } else { 18751 if z.EncBasicHandle().StringToRaw { 18752 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 18753 } else { 18754 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 18755 } 18756 } 18757 } 18758 if yyr2 || yy2arr2 { 18759 r.WriteArrayElem() 18760 if false { 18761 } else { 18762 if z.EncBasicHandle().StringToRaw { 18763 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 18764 } else { 18765 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 18766 } 18767 } 18768 } else { 18769 r.WriteMapElemKey() 18770 if z.IsJSONHandle() { 18771 z.WriteStr("\"Namespace\"") 18772 } else { 18773 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 18774 } 18775 r.WriteMapElemValue() 18776 if false { 18777 } else { 18778 if z.EncBasicHandle().StringToRaw { 18779 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 18780 } else { 18781 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 18782 } 18783 } 18784 } 18785 if yyr2 || yy2arr2 { 18786 r.WriteArrayElem() 18787 if false { 18788 } else { 18789 if z.EncBasicHandle().StringToRaw { 18790 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 18791 } else { 18792 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 18793 } 18794 } 18795 } else { 18796 r.WriteMapElemKey() 18797 if z.IsJSONHandle() { 18798 z.WriteStr("\"AuthToken\"") 18799 } else { 18800 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 18801 } 18802 r.WriteMapElemValue() 18803 if false { 18804 } else { 18805 if z.EncBasicHandle().StringToRaw { 18806 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 18807 } else { 18808 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 18809 } 18810 } 18811 } 18812 if yyr2 || yy2arr2 { 18813 r.WriteArrayElem() 18814 if false { 18815 } else { 18816 r.EncodeBool(bool(x.Forwarded)) 18817 } 18818 } else { 18819 r.WriteMapElemKey() 18820 if z.IsJSONHandle() { 18821 z.WriteStr("\"Forwarded\"") 18822 } else { 18823 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 18824 } 18825 r.WriteMapElemValue() 18826 if false { 18827 } else { 18828 r.EncodeBool(bool(x.Forwarded)) 18829 } 18830 } 18831 if yyr2 || yy2arr2 { 18832 r.WriteArrayEnd() 18833 } else { 18834 r.WriteMapEnd() 18835 } 18836 } 18837 } 18838 } 18839 18840 func (x *SchedulerSetConfigRequest) CodecDecodeSelf(d *codec1978.Decoder) { 18841 var h codecSelfer100 18842 z, r := codec1978.GenHelperDecoder(d) 18843 _, _, _ = h, z, r 18844 if false { 18845 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 18846 z.DecExtension(x, yyxt1) 18847 } else { 18848 yyct2 := r.ContainerType() 18849 if yyct2 == codecSelferValueTypeMap100 { 18850 yyl2 := r.ReadMapStart() 18851 if yyl2 == 0 { 18852 r.ReadMapEnd() 18853 } else { 18854 x.codecDecodeSelfFromMap(yyl2, d) 18855 } 18856 } else if yyct2 == codecSelferValueTypeArray100 { 18857 yyl2 := r.ReadArrayStart() 18858 if yyl2 == 0 { 18859 r.ReadArrayEnd() 18860 } else { 18861 x.codecDecodeSelfFromArray(yyl2, d) 18862 } 18863 } else { 18864 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 18865 } 18866 } 18867 } 18868 18869 func (x *SchedulerSetConfigRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 18870 var h codecSelfer100 18871 z, r := codec1978.GenHelperDecoder(d) 18872 _, _, _ = h, z, r 18873 var yyhl3 bool = l >= 0 18874 for yyj3 := 0; ; yyj3++ { 18875 if yyhl3 { 18876 if yyj3 >= l { 18877 break 18878 } 18879 } else { 18880 if r.CheckBreak() { 18881 break 18882 } 18883 } 18884 r.ReadMapElemKey() 18885 yys3 := z.StringView(r.DecodeStringAsBytes()) 18886 r.ReadMapElemValue() 18887 switch yys3 { 18888 case "Config": 18889 if r.TryDecodeAsNil() { 18890 x.Config = SchedulerConfiguration{} 18891 } else { 18892 x.Config.CodecDecodeSelf(d) 18893 } 18894 case "CAS": 18895 if r.TryDecodeAsNil() { 18896 x.CAS = false 18897 } else { 18898 x.CAS = (bool)(r.DecodeBool()) 18899 } 18900 case "Region": 18901 if r.TryDecodeAsNil() { 18902 x.WriteRequest.Region = "" 18903 } else { 18904 x.Region = (string)(r.DecodeString()) 18905 } 18906 case "Namespace": 18907 if r.TryDecodeAsNil() { 18908 x.WriteRequest.Namespace = "" 18909 } else { 18910 x.Namespace = (string)(r.DecodeString()) 18911 } 18912 case "AuthToken": 18913 if r.TryDecodeAsNil() { 18914 x.WriteRequest.AuthToken = "" 18915 } else { 18916 x.AuthToken = (string)(r.DecodeString()) 18917 } 18918 case "Forwarded": 18919 if r.TryDecodeAsNil() { 18920 x.WriteRequest.InternalRpcInfo.Forwarded = false 18921 } else { 18922 x.Forwarded = (bool)(r.DecodeBool()) 18923 } 18924 default: 18925 z.DecStructFieldNotFound(-1, yys3) 18926 } // end switch yys3 18927 } // end for yyj3 18928 r.ReadMapEnd() 18929 } 18930 18931 func (x *SchedulerSetConfigRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 18932 var h codecSelfer100 18933 z, r := codec1978.GenHelperDecoder(d) 18934 _, _, _ = h, z, r 18935 var yyj10 int 18936 var yyb10 bool 18937 var yyhl10 bool = l >= 0 18938 yyj10++ 18939 if yyhl10 { 18940 yyb10 = yyj10 > l 18941 } else { 18942 yyb10 = r.CheckBreak() 18943 } 18944 if yyb10 { 18945 r.ReadArrayEnd() 18946 return 18947 } 18948 r.ReadArrayElem() 18949 if r.TryDecodeAsNil() { 18950 x.Config = SchedulerConfiguration{} 18951 } else { 18952 x.Config.CodecDecodeSelf(d) 18953 } 18954 yyj10++ 18955 if yyhl10 { 18956 yyb10 = yyj10 > l 18957 } else { 18958 yyb10 = r.CheckBreak() 18959 } 18960 if yyb10 { 18961 r.ReadArrayEnd() 18962 return 18963 } 18964 r.ReadArrayElem() 18965 if r.TryDecodeAsNil() { 18966 x.CAS = false 18967 } else { 18968 x.CAS = (bool)(r.DecodeBool()) 18969 } 18970 yyj10++ 18971 if yyhl10 { 18972 yyb10 = yyj10 > l 18973 } else { 18974 yyb10 = r.CheckBreak() 18975 } 18976 if yyb10 { 18977 r.ReadArrayEnd() 18978 return 18979 } 18980 r.ReadArrayElem() 18981 if r.TryDecodeAsNil() { 18982 x.WriteRequest.Region = "" 18983 } else { 18984 x.Region = (string)(r.DecodeString()) 18985 } 18986 yyj10++ 18987 if yyhl10 { 18988 yyb10 = yyj10 > l 18989 } else { 18990 yyb10 = r.CheckBreak() 18991 } 18992 if yyb10 { 18993 r.ReadArrayEnd() 18994 return 18995 } 18996 r.ReadArrayElem() 18997 if r.TryDecodeAsNil() { 18998 x.WriteRequest.Namespace = "" 18999 } else { 19000 x.Namespace = (string)(r.DecodeString()) 19001 } 19002 yyj10++ 19003 if yyhl10 { 19004 yyb10 = yyj10 > l 19005 } else { 19006 yyb10 = r.CheckBreak() 19007 } 19008 if yyb10 { 19009 r.ReadArrayEnd() 19010 return 19011 } 19012 r.ReadArrayElem() 19013 if r.TryDecodeAsNil() { 19014 x.WriteRequest.AuthToken = "" 19015 } else { 19016 x.AuthToken = (string)(r.DecodeString()) 19017 } 19018 yyj10++ 19019 if yyhl10 { 19020 yyb10 = yyj10 > l 19021 } else { 19022 yyb10 = r.CheckBreak() 19023 } 19024 if yyb10 { 19025 r.ReadArrayEnd() 19026 return 19027 } 19028 r.ReadArrayElem() 19029 if r.TryDecodeAsNil() { 19030 x.WriteRequest.InternalRpcInfo.Forwarded = false 19031 } else { 19032 x.Forwarded = (bool)(r.DecodeBool()) 19033 } 19034 for { 19035 yyj10++ 19036 if yyhl10 { 19037 yyb10 = yyj10 > l 19038 } else { 19039 yyb10 = r.CheckBreak() 19040 } 19041 if yyb10 { 19042 break 19043 } 19044 r.ReadArrayElem() 19045 z.DecStructFieldNotFound(yyj10-1, "") 19046 } 19047 r.ReadArrayEnd() 19048 } 19049 19050 func (x *SIToken) CodecEncodeSelf(e *codec1978.Encoder) { 19051 var h codecSelfer100 19052 z, r := codec1978.GenHelperEncoder(e) 19053 _, _, _ = h, z, r 19054 if x == nil { 19055 r.EncodeNil() 19056 } else { 19057 if false { 19058 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19059 z.EncExtension(x, yyxt1) 19060 } else { 19061 yysep2 := !z.EncBinary() 19062 yy2arr2 := z.EncBasicHandle().StructToArray 19063 _, _ = yysep2, yy2arr2 19064 const yyr2 bool = false // struct tag has 'toArray' 19065 if yyr2 || yy2arr2 { 19066 r.WriteArrayStart(3) 19067 } else { 19068 r.WriteMapStart(3) 19069 } 19070 if yyr2 || yy2arr2 { 19071 r.WriteArrayElem() 19072 if false { 19073 } else { 19074 if z.EncBasicHandle().StringToRaw { 19075 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19076 } else { 19077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19078 } 19079 } 19080 } else { 19081 r.WriteMapElemKey() 19082 if z.IsJSONHandle() { 19083 z.WriteStr("\"TaskName\"") 19084 } else { 19085 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 19086 } 19087 r.WriteMapElemValue() 19088 if false { 19089 } else { 19090 if z.EncBasicHandle().StringToRaw { 19091 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19092 } else { 19093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19094 } 19095 } 19096 } 19097 if yyr2 || yy2arr2 { 19098 r.WriteArrayElem() 19099 if false { 19100 } else { 19101 if z.EncBasicHandle().StringToRaw { 19102 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 19103 } else { 19104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 19105 } 19106 } 19107 } else { 19108 r.WriteMapElemKey() 19109 if z.IsJSONHandle() { 19110 z.WriteStr("\"AccessorID\"") 19111 } else { 19112 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 19113 } 19114 r.WriteMapElemValue() 19115 if false { 19116 } else { 19117 if z.EncBasicHandle().StringToRaw { 19118 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 19119 } else { 19120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 19121 } 19122 } 19123 } 19124 if yyr2 || yy2arr2 { 19125 r.WriteArrayElem() 19126 if false { 19127 } else { 19128 if z.EncBasicHandle().StringToRaw { 19129 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 19130 } else { 19131 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 19132 } 19133 } 19134 } else { 19135 r.WriteMapElemKey() 19136 if z.IsJSONHandle() { 19137 z.WriteStr("\"SecretID\"") 19138 } else { 19139 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 19140 } 19141 r.WriteMapElemValue() 19142 if false { 19143 } else { 19144 if z.EncBasicHandle().StringToRaw { 19145 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 19146 } else { 19147 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 19148 } 19149 } 19150 } 19151 if yyr2 || yy2arr2 { 19152 r.WriteArrayEnd() 19153 } else { 19154 r.WriteMapEnd() 19155 } 19156 } 19157 } 19158 } 19159 19160 func (x *SIToken) CodecDecodeSelf(d *codec1978.Decoder) { 19161 var h codecSelfer100 19162 z, r := codec1978.GenHelperDecoder(d) 19163 _, _, _ = h, z, r 19164 if false { 19165 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19166 z.DecExtension(x, yyxt1) 19167 } else { 19168 yyct2 := r.ContainerType() 19169 if yyct2 == codecSelferValueTypeMap100 { 19170 yyl2 := r.ReadMapStart() 19171 if yyl2 == 0 { 19172 r.ReadMapEnd() 19173 } else { 19174 x.codecDecodeSelfFromMap(yyl2, d) 19175 } 19176 } else if yyct2 == codecSelferValueTypeArray100 { 19177 yyl2 := r.ReadArrayStart() 19178 if yyl2 == 0 { 19179 r.ReadArrayEnd() 19180 } else { 19181 x.codecDecodeSelfFromArray(yyl2, d) 19182 } 19183 } else { 19184 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 19185 } 19186 } 19187 } 19188 19189 func (x *SIToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 19190 var h codecSelfer100 19191 z, r := codec1978.GenHelperDecoder(d) 19192 _, _, _ = h, z, r 19193 var yyhl3 bool = l >= 0 19194 for yyj3 := 0; ; yyj3++ { 19195 if yyhl3 { 19196 if yyj3 >= l { 19197 break 19198 } 19199 } else { 19200 if r.CheckBreak() { 19201 break 19202 } 19203 } 19204 r.ReadMapElemKey() 19205 yys3 := z.StringView(r.DecodeStringAsBytes()) 19206 r.ReadMapElemValue() 19207 switch yys3 { 19208 case "TaskName": 19209 if r.TryDecodeAsNil() { 19210 x.TaskName = "" 19211 } else { 19212 x.TaskName = (string)(r.DecodeString()) 19213 } 19214 case "AccessorID": 19215 if r.TryDecodeAsNil() { 19216 x.AccessorID = "" 19217 } else { 19218 x.AccessorID = (string)(r.DecodeString()) 19219 } 19220 case "SecretID": 19221 if r.TryDecodeAsNil() { 19222 x.SecretID = "" 19223 } else { 19224 x.SecretID = (string)(r.DecodeString()) 19225 } 19226 default: 19227 z.DecStructFieldNotFound(-1, yys3) 19228 } // end switch yys3 19229 } // end for yyj3 19230 r.ReadMapEnd() 19231 } 19232 19233 func (x *SIToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 19234 var h codecSelfer100 19235 z, r := codec1978.GenHelperDecoder(d) 19236 _, _, _ = h, z, r 19237 var yyj7 int 19238 var yyb7 bool 19239 var yyhl7 bool = l >= 0 19240 yyj7++ 19241 if yyhl7 { 19242 yyb7 = yyj7 > l 19243 } else { 19244 yyb7 = r.CheckBreak() 19245 } 19246 if yyb7 { 19247 r.ReadArrayEnd() 19248 return 19249 } 19250 r.ReadArrayElem() 19251 if r.TryDecodeAsNil() { 19252 x.TaskName = "" 19253 } else { 19254 x.TaskName = (string)(r.DecodeString()) 19255 } 19256 yyj7++ 19257 if yyhl7 { 19258 yyb7 = yyj7 > l 19259 } else { 19260 yyb7 = r.CheckBreak() 19261 } 19262 if yyb7 { 19263 r.ReadArrayEnd() 19264 return 19265 } 19266 r.ReadArrayElem() 19267 if r.TryDecodeAsNil() { 19268 x.AccessorID = "" 19269 } else { 19270 x.AccessorID = (string)(r.DecodeString()) 19271 } 19272 yyj7++ 19273 if yyhl7 { 19274 yyb7 = yyj7 > l 19275 } else { 19276 yyb7 = r.CheckBreak() 19277 } 19278 if yyb7 { 19279 r.ReadArrayEnd() 19280 return 19281 } 19282 r.ReadArrayElem() 19283 if r.TryDecodeAsNil() { 19284 x.SecretID = "" 19285 } else { 19286 x.SecretID = (string)(r.DecodeString()) 19287 } 19288 for { 19289 yyj7++ 19290 if yyhl7 { 19291 yyb7 = yyj7 > l 19292 } else { 19293 yyb7 = r.CheckBreak() 19294 } 19295 if yyb7 { 19296 break 19297 } 19298 r.ReadArrayElem() 19299 z.DecStructFieldNotFound(yyj7-1, "") 19300 } 19301 r.ReadArrayEnd() 19302 } 19303 19304 func (x *SITokenAccessor) CodecEncodeSelf(e *codec1978.Encoder) { 19305 var h codecSelfer100 19306 z, r := codec1978.GenHelperEncoder(e) 19307 _, _, _ = h, z, r 19308 if x == nil { 19309 r.EncodeNil() 19310 } else { 19311 if false { 19312 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19313 z.EncExtension(x, yyxt1) 19314 } else { 19315 yysep2 := !z.EncBinary() 19316 yy2arr2 := z.EncBasicHandle().StructToArray 19317 _, _ = yysep2, yy2arr2 19318 const yyr2 bool = false // struct tag has 'toArray' 19319 if yyr2 || yy2arr2 { 19320 r.WriteArrayStart(5) 19321 } else { 19322 r.WriteMapStart(5) 19323 } 19324 if yyr2 || yy2arr2 { 19325 r.WriteArrayElem() 19326 if false { 19327 } else { 19328 if z.EncBasicHandle().StringToRaw { 19329 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 19330 } else { 19331 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 19332 } 19333 } 19334 } else { 19335 r.WriteMapElemKey() 19336 if z.IsJSONHandle() { 19337 z.WriteStr("\"NodeID\"") 19338 } else { 19339 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 19340 } 19341 r.WriteMapElemValue() 19342 if false { 19343 } else { 19344 if z.EncBasicHandle().StringToRaw { 19345 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 19346 } else { 19347 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 19348 } 19349 } 19350 } 19351 if yyr2 || yy2arr2 { 19352 r.WriteArrayElem() 19353 if false { 19354 } else { 19355 if z.EncBasicHandle().StringToRaw { 19356 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 19357 } else { 19358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 19359 } 19360 } 19361 } else { 19362 r.WriteMapElemKey() 19363 if z.IsJSONHandle() { 19364 z.WriteStr("\"AllocID\"") 19365 } else { 19366 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 19367 } 19368 r.WriteMapElemValue() 19369 if false { 19370 } else { 19371 if z.EncBasicHandle().StringToRaw { 19372 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 19373 } else { 19374 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 19375 } 19376 } 19377 } 19378 if yyr2 || yy2arr2 { 19379 r.WriteArrayElem() 19380 if false { 19381 } else { 19382 if z.EncBasicHandle().StringToRaw { 19383 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 19384 } else { 19385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 19386 } 19387 } 19388 } else { 19389 r.WriteMapElemKey() 19390 if z.IsJSONHandle() { 19391 z.WriteStr("\"AccessorID\"") 19392 } else { 19393 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 19394 } 19395 r.WriteMapElemValue() 19396 if false { 19397 } else { 19398 if z.EncBasicHandle().StringToRaw { 19399 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 19400 } else { 19401 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 19402 } 19403 } 19404 } 19405 if yyr2 || yy2arr2 { 19406 r.WriteArrayElem() 19407 if false { 19408 } else { 19409 if z.EncBasicHandle().StringToRaw { 19410 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19411 } else { 19412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19413 } 19414 } 19415 } else { 19416 r.WriteMapElemKey() 19417 if z.IsJSONHandle() { 19418 z.WriteStr("\"TaskName\"") 19419 } else { 19420 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 19421 } 19422 r.WriteMapElemValue() 19423 if false { 19424 } else { 19425 if z.EncBasicHandle().StringToRaw { 19426 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 19427 } else { 19428 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 19429 } 19430 } 19431 } 19432 if yyr2 || yy2arr2 { 19433 r.WriteArrayElem() 19434 if false { 19435 } else { 19436 r.EncodeUint(uint64(x.CreateIndex)) 19437 } 19438 } else { 19439 r.WriteMapElemKey() 19440 if z.IsJSONHandle() { 19441 z.WriteStr("\"CreateIndex\"") 19442 } else { 19443 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 19444 } 19445 r.WriteMapElemValue() 19446 if false { 19447 } else { 19448 r.EncodeUint(uint64(x.CreateIndex)) 19449 } 19450 } 19451 if yyr2 || yy2arr2 { 19452 r.WriteArrayEnd() 19453 } else { 19454 r.WriteMapEnd() 19455 } 19456 } 19457 } 19458 } 19459 19460 func (x *SITokenAccessor) CodecDecodeSelf(d *codec1978.Decoder) { 19461 var h codecSelfer100 19462 z, r := codec1978.GenHelperDecoder(d) 19463 _, _, _ = h, z, r 19464 if false { 19465 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19466 z.DecExtension(x, yyxt1) 19467 } else { 19468 yyct2 := r.ContainerType() 19469 if yyct2 == codecSelferValueTypeMap100 { 19470 yyl2 := r.ReadMapStart() 19471 if yyl2 == 0 { 19472 r.ReadMapEnd() 19473 } else { 19474 x.codecDecodeSelfFromMap(yyl2, d) 19475 } 19476 } else if yyct2 == codecSelferValueTypeArray100 { 19477 yyl2 := r.ReadArrayStart() 19478 if yyl2 == 0 { 19479 r.ReadArrayEnd() 19480 } else { 19481 x.codecDecodeSelfFromArray(yyl2, d) 19482 } 19483 } else { 19484 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 19485 } 19486 } 19487 } 19488 19489 func (x *SITokenAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 19490 var h codecSelfer100 19491 z, r := codec1978.GenHelperDecoder(d) 19492 _, _, _ = h, z, r 19493 var yyhl3 bool = l >= 0 19494 for yyj3 := 0; ; yyj3++ { 19495 if yyhl3 { 19496 if yyj3 >= l { 19497 break 19498 } 19499 } else { 19500 if r.CheckBreak() { 19501 break 19502 } 19503 } 19504 r.ReadMapElemKey() 19505 yys3 := z.StringView(r.DecodeStringAsBytes()) 19506 r.ReadMapElemValue() 19507 switch yys3 { 19508 case "NodeID": 19509 if r.TryDecodeAsNil() { 19510 x.NodeID = "" 19511 } else { 19512 x.NodeID = (string)(r.DecodeString()) 19513 } 19514 case "AllocID": 19515 if r.TryDecodeAsNil() { 19516 x.AllocID = "" 19517 } else { 19518 x.AllocID = (string)(r.DecodeString()) 19519 } 19520 case "AccessorID": 19521 if r.TryDecodeAsNil() { 19522 x.AccessorID = "" 19523 } else { 19524 x.AccessorID = (string)(r.DecodeString()) 19525 } 19526 case "TaskName": 19527 if r.TryDecodeAsNil() { 19528 x.TaskName = "" 19529 } else { 19530 x.TaskName = (string)(r.DecodeString()) 19531 } 19532 case "CreateIndex": 19533 if r.TryDecodeAsNil() { 19534 x.CreateIndex = 0 19535 } else { 19536 x.CreateIndex = (uint64)(r.DecodeUint64()) 19537 } 19538 default: 19539 z.DecStructFieldNotFound(-1, yys3) 19540 } // end switch yys3 19541 } // end for yyj3 19542 r.ReadMapEnd() 19543 } 19544 19545 func (x *SITokenAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 19546 var h codecSelfer100 19547 z, r := codec1978.GenHelperDecoder(d) 19548 _, _, _ = h, z, r 19549 var yyj9 int 19550 var yyb9 bool 19551 var yyhl9 bool = l >= 0 19552 yyj9++ 19553 if yyhl9 { 19554 yyb9 = yyj9 > l 19555 } else { 19556 yyb9 = r.CheckBreak() 19557 } 19558 if yyb9 { 19559 r.ReadArrayEnd() 19560 return 19561 } 19562 r.ReadArrayElem() 19563 if r.TryDecodeAsNil() { 19564 x.NodeID = "" 19565 } else { 19566 x.NodeID = (string)(r.DecodeString()) 19567 } 19568 yyj9++ 19569 if yyhl9 { 19570 yyb9 = yyj9 > l 19571 } else { 19572 yyb9 = r.CheckBreak() 19573 } 19574 if yyb9 { 19575 r.ReadArrayEnd() 19576 return 19577 } 19578 r.ReadArrayElem() 19579 if r.TryDecodeAsNil() { 19580 x.AllocID = "" 19581 } else { 19582 x.AllocID = (string)(r.DecodeString()) 19583 } 19584 yyj9++ 19585 if yyhl9 { 19586 yyb9 = yyj9 > l 19587 } else { 19588 yyb9 = r.CheckBreak() 19589 } 19590 if yyb9 { 19591 r.ReadArrayEnd() 19592 return 19593 } 19594 r.ReadArrayElem() 19595 if r.TryDecodeAsNil() { 19596 x.AccessorID = "" 19597 } else { 19598 x.AccessorID = (string)(r.DecodeString()) 19599 } 19600 yyj9++ 19601 if yyhl9 { 19602 yyb9 = yyj9 > l 19603 } else { 19604 yyb9 = r.CheckBreak() 19605 } 19606 if yyb9 { 19607 r.ReadArrayEnd() 19608 return 19609 } 19610 r.ReadArrayElem() 19611 if r.TryDecodeAsNil() { 19612 x.TaskName = "" 19613 } else { 19614 x.TaskName = (string)(r.DecodeString()) 19615 } 19616 yyj9++ 19617 if yyhl9 { 19618 yyb9 = yyj9 > l 19619 } else { 19620 yyb9 = r.CheckBreak() 19621 } 19622 if yyb9 { 19623 r.ReadArrayEnd() 19624 return 19625 } 19626 r.ReadArrayElem() 19627 if r.TryDecodeAsNil() { 19628 x.CreateIndex = 0 19629 } else { 19630 x.CreateIndex = (uint64)(r.DecodeUint64()) 19631 } 19632 for { 19633 yyj9++ 19634 if yyhl9 { 19635 yyb9 = yyj9 > l 19636 } else { 19637 yyb9 = r.CheckBreak() 19638 } 19639 if yyb9 { 19640 break 19641 } 19642 r.ReadArrayElem() 19643 z.DecStructFieldNotFound(yyj9-1, "") 19644 } 19645 r.ReadArrayEnd() 19646 } 19647 19648 func (x *SITokenAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 19649 var h codecSelfer100 19650 z, r := codec1978.GenHelperEncoder(e) 19651 _, _, _ = h, z, r 19652 if x == nil { 19653 r.EncodeNil() 19654 } else { 19655 if false { 19656 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19657 z.EncExtension(x, yyxt1) 19658 } else { 19659 yysep2 := !z.EncBinary() 19660 yy2arr2 := z.EncBasicHandle().StructToArray 19661 _, _ = yysep2, yy2arr2 19662 const yyr2 bool = false // struct tag has 'toArray' 19663 if yyr2 || yy2arr2 { 19664 r.WriteArrayStart(1) 19665 } else { 19666 r.WriteMapStart(1) 19667 } 19668 if yyr2 || yy2arr2 { 19669 r.WriteArrayElem() 19670 if x.Accessors == nil { 19671 r.EncodeNil() 19672 } else { 19673 if false { 19674 } else { 19675 h.encSlicePtrtoSITokenAccessor(([]*SITokenAccessor)(x.Accessors), e) 19676 } 19677 } 19678 } else { 19679 r.WriteMapElemKey() 19680 if z.IsJSONHandle() { 19681 z.WriteStr("\"Accessors\"") 19682 } else { 19683 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessors`) 19684 } 19685 r.WriteMapElemValue() 19686 if x.Accessors == nil { 19687 r.EncodeNil() 19688 } else { 19689 if false { 19690 } else { 19691 h.encSlicePtrtoSITokenAccessor(([]*SITokenAccessor)(x.Accessors), e) 19692 } 19693 } 19694 } 19695 if yyr2 || yy2arr2 { 19696 r.WriteArrayEnd() 19697 } else { 19698 r.WriteMapEnd() 19699 } 19700 } 19701 } 19702 } 19703 19704 func (x *SITokenAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 19705 var h codecSelfer100 19706 z, r := codec1978.GenHelperDecoder(d) 19707 _, _, _ = h, z, r 19708 if false { 19709 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19710 z.DecExtension(x, yyxt1) 19711 } else { 19712 yyct2 := r.ContainerType() 19713 if yyct2 == codecSelferValueTypeMap100 { 19714 yyl2 := r.ReadMapStart() 19715 if yyl2 == 0 { 19716 r.ReadMapEnd() 19717 } else { 19718 x.codecDecodeSelfFromMap(yyl2, d) 19719 } 19720 } else if yyct2 == codecSelferValueTypeArray100 { 19721 yyl2 := r.ReadArrayStart() 19722 if yyl2 == 0 { 19723 r.ReadArrayEnd() 19724 } else { 19725 x.codecDecodeSelfFromArray(yyl2, d) 19726 } 19727 } else { 19728 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 19729 } 19730 } 19731 } 19732 19733 func (x *SITokenAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 19734 var h codecSelfer100 19735 z, r := codec1978.GenHelperDecoder(d) 19736 _, _, _ = h, z, r 19737 var yyhl3 bool = l >= 0 19738 for yyj3 := 0; ; yyj3++ { 19739 if yyhl3 { 19740 if yyj3 >= l { 19741 break 19742 } 19743 } else { 19744 if r.CheckBreak() { 19745 break 19746 } 19747 } 19748 r.ReadMapElemKey() 19749 yys3 := z.StringView(r.DecodeStringAsBytes()) 19750 r.ReadMapElemValue() 19751 switch yys3 { 19752 case "Accessors": 19753 if r.TryDecodeAsNil() { 19754 x.Accessors = nil 19755 } else { 19756 if false { 19757 } else { 19758 h.decSlicePtrtoSITokenAccessor((*[]*SITokenAccessor)(&x.Accessors), d) 19759 } 19760 } 19761 default: 19762 z.DecStructFieldNotFound(-1, yys3) 19763 } // end switch yys3 19764 } // end for yyj3 19765 r.ReadMapEnd() 19766 } 19767 19768 func (x *SITokenAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 19769 var h codecSelfer100 19770 z, r := codec1978.GenHelperDecoder(d) 19771 _, _, _ = h, z, r 19772 var yyj6 int 19773 var yyb6 bool 19774 var yyhl6 bool = l >= 0 19775 yyj6++ 19776 if yyhl6 { 19777 yyb6 = yyj6 > l 19778 } else { 19779 yyb6 = r.CheckBreak() 19780 } 19781 if yyb6 { 19782 r.ReadArrayEnd() 19783 return 19784 } 19785 r.ReadArrayElem() 19786 if r.TryDecodeAsNil() { 19787 x.Accessors = nil 19788 } else { 19789 if false { 19790 } else { 19791 h.decSlicePtrtoSITokenAccessor((*[]*SITokenAccessor)(&x.Accessors), d) 19792 } 19793 } 19794 for { 19795 yyj6++ 19796 if yyhl6 { 19797 yyb6 = yyj6 > l 19798 } else { 19799 yyb6 = r.CheckBreak() 19800 } 19801 if yyb6 { 19802 break 19803 } 19804 r.ReadArrayElem() 19805 z.DecStructFieldNotFound(yyj6-1, "") 19806 } 19807 r.ReadArrayEnd() 19808 } 19809 19810 func (x *DeriveSITokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 19811 var h codecSelfer100 19812 z, r := codec1978.GenHelperEncoder(e) 19813 _, _, _ = h, z, r 19814 if x == nil { 19815 r.EncodeNil() 19816 } else { 19817 if false { 19818 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 19819 z.EncExtension(x, yyxt1) 19820 } else { 19821 yysep2 := !z.EncBinary() 19822 yy2arr2 := z.EncBasicHandle().StructToArray 19823 _, _ = yysep2, yy2arr2 19824 const yyr2 bool = false // struct tag has 'toArray' 19825 if yyr2 || yy2arr2 { 19826 r.WriteArrayStart(12) 19827 } else { 19828 r.WriteMapStart(12) 19829 } 19830 if yyr2 || yy2arr2 { 19831 r.WriteArrayElem() 19832 if false { 19833 } else { 19834 if z.EncBasicHandle().StringToRaw { 19835 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 19836 } else { 19837 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 19838 } 19839 } 19840 } else { 19841 r.WriteMapElemKey() 19842 if z.IsJSONHandle() { 19843 z.WriteStr("\"NodeID\"") 19844 } else { 19845 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 19846 } 19847 r.WriteMapElemValue() 19848 if false { 19849 } else { 19850 if z.EncBasicHandle().StringToRaw { 19851 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 19852 } else { 19853 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 19854 } 19855 } 19856 } 19857 if yyr2 || yy2arr2 { 19858 r.WriteArrayElem() 19859 if false { 19860 } else { 19861 if z.EncBasicHandle().StringToRaw { 19862 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 19863 } else { 19864 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 19865 } 19866 } 19867 } else { 19868 r.WriteMapElemKey() 19869 if z.IsJSONHandle() { 19870 z.WriteStr("\"SecretID\"") 19871 } else { 19872 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 19873 } 19874 r.WriteMapElemValue() 19875 if false { 19876 } else { 19877 if z.EncBasicHandle().StringToRaw { 19878 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 19879 } else { 19880 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 19881 } 19882 } 19883 } 19884 if yyr2 || yy2arr2 { 19885 r.WriteArrayElem() 19886 if false { 19887 } else { 19888 if z.EncBasicHandle().StringToRaw { 19889 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 19890 } else { 19891 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 19892 } 19893 } 19894 } else { 19895 r.WriteMapElemKey() 19896 if z.IsJSONHandle() { 19897 z.WriteStr("\"AllocID\"") 19898 } else { 19899 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 19900 } 19901 r.WriteMapElemValue() 19902 if false { 19903 } else { 19904 if z.EncBasicHandle().StringToRaw { 19905 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 19906 } else { 19907 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 19908 } 19909 } 19910 } 19911 if yyr2 || yy2arr2 { 19912 r.WriteArrayElem() 19913 if x.Tasks == nil { 19914 r.EncodeNil() 19915 } else { 19916 if false { 19917 } else { 19918 z.F.EncSliceStringV(x.Tasks, e) 19919 } 19920 } 19921 } else { 19922 r.WriteMapElemKey() 19923 if z.IsJSONHandle() { 19924 z.WriteStr("\"Tasks\"") 19925 } else { 19926 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 19927 } 19928 r.WriteMapElemValue() 19929 if x.Tasks == nil { 19930 r.EncodeNil() 19931 } else { 19932 if false { 19933 } else { 19934 z.F.EncSliceStringV(x.Tasks, e) 19935 } 19936 } 19937 } 19938 if yyr2 || yy2arr2 { 19939 r.WriteArrayElem() 19940 if false { 19941 } else { 19942 if z.EncBasicHandle().StringToRaw { 19943 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 19944 } else { 19945 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 19946 } 19947 } 19948 } else { 19949 r.WriteMapElemKey() 19950 if z.IsJSONHandle() { 19951 z.WriteStr("\"Region\"") 19952 } else { 19953 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 19954 } 19955 r.WriteMapElemValue() 19956 if false { 19957 } else { 19958 if z.EncBasicHandle().StringToRaw { 19959 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 19960 } else { 19961 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 19962 } 19963 } 19964 } 19965 if yyr2 || yy2arr2 { 19966 r.WriteArrayElem() 19967 if false { 19968 } else { 19969 if z.EncBasicHandle().StringToRaw { 19970 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 19971 } else { 19972 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 19973 } 19974 } 19975 } else { 19976 r.WriteMapElemKey() 19977 if z.IsJSONHandle() { 19978 z.WriteStr("\"Namespace\"") 19979 } else { 19980 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 19981 } 19982 r.WriteMapElemValue() 19983 if false { 19984 } else { 19985 if z.EncBasicHandle().StringToRaw { 19986 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 19987 } else { 19988 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 19989 } 19990 } 19991 } 19992 if yyr2 || yy2arr2 { 19993 r.WriteArrayElem() 19994 if false { 19995 } else { 19996 r.EncodeUint(uint64(x.MinQueryIndex)) 19997 } 19998 } else { 19999 r.WriteMapElemKey() 20000 if z.IsJSONHandle() { 20001 z.WriteStr("\"MinQueryIndex\"") 20002 } else { 20003 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 20004 } 20005 r.WriteMapElemValue() 20006 if false { 20007 } else { 20008 r.EncodeUint(uint64(x.MinQueryIndex)) 20009 } 20010 } 20011 if yyr2 || yy2arr2 { 20012 r.WriteArrayElem() 20013 if false { 20014 } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { 20015 z.EncExtension(x.MaxQueryTime, yyxt25) 20016 } else { 20017 r.EncodeInt(int64(x.MaxQueryTime)) 20018 } 20019 } else { 20020 r.WriteMapElemKey() 20021 if z.IsJSONHandle() { 20022 z.WriteStr("\"MaxQueryTime\"") 20023 } else { 20024 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 20025 } 20026 r.WriteMapElemValue() 20027 if false { 20028 } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { 20029 z.EncExtension(x.MaxQueryTime, yyxt26) 20030 } else { 20031 r.EncodeInt(int64(x.MaxQueryTime)) 20032 } 20033 } 20034 if yyr2 || yy2arr2 { 20035 r.WriteArrayElem() 20036 if false { 20037 } else { 20038 r.EncodeBool(bool(x.AllowStale)) 20039 } 20040 } else { 20041 r.WriteMapElemKey() 20042 if z.IsJSONHandle() { 20043 z.WriteStr("\"AllowStale\"") 20044 } else { 20045 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 20046 } 20047 r.WriteMapElemValue() 20048 if false { 20049 } else { 20050 r.EncodeBool(bool(x.AllowStale)) 20051 } 20052 } 20053 if yyr2 || yy2arr2 { 20054 r.WriteArrayElem() 20055 if false { 20056 } else { 20057 if z.EncBasicHandle().StringToRaw { 20058 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 20059 } else { 20060 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 20061 } 20062 } 20063 } else { 20064 r.WriteMapElemKey() 20065 if z.IsJSONHandle() { 20066 z.WriteStr("\"Prefix\"") 20067 } else { 20068 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 20069 } 20070 r.WriteMapElemValue() 20071 if false { 20072 } else { 20073 if z.EncBasicHandle().StringToRaw { 20074 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 20075 } else { 20076 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 20077 } 20078 } 20079 } 20080 if yyr2 || yy2arr2 { 20081 r.WriteArrayElem() 20082 if false { 20083 } else { 20084 if z.EncBasicHandle().StringToRaw { 20085 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 20086 } else { 20087 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 20088 } 20089 } 20090 } else { 20091 r.WriteMapElemKey() 20092 if z.IsJSONHandle() { 20093 z.WriteStr("\"AuthToken\"") 20094 } else { 20095 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 20096 } 20097 r.WriteMapElemValue() 20098 if false { 20099 } else { 20100 if z.EncBasicHandle().StringToRaw { 20101 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 20102 } else { 20103 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 20104 } 20105 } 20106 } 20107 if yyr2 || yy2arr2 { 20108 r.WriteArrayElem() 20109 if false { 20110 } else { 20111 r.EncodeBool(bool(x.Forwarded)) 20112 } 20113 } else { 20114 r.WriteMapElemKey() 20115 if z.IsJSONHandle() { 20116 z.WriteStr("\"Forwarded\"") 20117 } else { 20118 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 20119 } 20120 r.WriteMapElemValue() 20121 if false { 20122 } else { 20123 r.EncodeBool(bool(x.Forwarded)) 20124 } 20125 } 20126 if yyr2 || yy2arr2 { 20127 r.WriteArrayEnd() 20128 } else { 20129 r.WriteMapEnd() 20130 } 20131 } 20132 } 20133 } 20134 20135 func (x *DeriveSITokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 20136 var h codecSelfer100 20137 z, r := codec1978.GenHelperDecoder(d) 20138 _, _, _ = h, z, r 20139 if false { 20140 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20141 z.DecExtension(x, yyxt1) 20142 } else { 20143 yyct2 := r.ContainerType() 20144 if yyct2 == codecSelferValueTypeMap100 { 20145 yyl2 := r.ReadMapStart() 20146 if yyl2 == 0 { 20147 r.ReadMapEnd() 20148 } else { 20149 x.codecDecodeSelfFromMap(yyl2, d) 20150 } 20151 } else if yyct2 == codecSelferValueTypeArray100 { 20152 yyl2 := r.ReadArrayStart() 20153 if yyl2 == 0 { 20154 r.ReadArrayEnd() 20155 } else { 20156 x.codecDecodeSelfFromArray(yyl2, d) 20157 } 20158 } else { 20159 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 20160 } 20161 } 20162 } 20163 20164 func (x *DeriveSITokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 20165 var h codecSelfer100 20166 z, r := codec1978.GenHelperDecoder(d) 20167 _, _, _ = h, z, r 20168 var yyhl3 bool = l >= 0 20169 for yyj3 := 0; ; yyj3++ { 20170 if yyhl3 { 20171 if yyj3 >= l { 20172 break 20173 } 20174 } else { 20175 if r.CheckBreak() { 20176 break 20177 } 20178 } 20179 r.ReadMapElemKey() 20180 yys3 := z.StringView(r.DecodeStringAsBytes()) 20181 r.ReadMapElemValue() 20182 switch yys3 { 20183 case "NodeID": 20184 if r.TryDecodeAsNil() { 20185 x.NodeID = "" 20186 } else { 20187 x.NodeID = (string)(r.DecodeString()) 20188 } 20189 case "SecretID": 20190 if r.TryDecodeAsNil() { 20191 x.SecretID = "" 20192 } else { 20193 x.SecretID = (string)(r.DecodeString()) 20194 } 20195 case "AllocID": 20196 if r.TryDecodeAsNil() { 20197 x.AllocID = "" 20198 } else { 20199 x.AllocID = (string)(r.DecodeString()) 20200 } 20201 case "Tasks": 20202 if r.TryDecodeAsNil() { 20203 x.Tasks = nil 20204 } else { 20205 if false { 20206 } else { 20207 z.F.DecSliceStringX(&x.Tasks, d) 20208 } 20209 } 20210 case "Region": 20211 if r.TryDecodeAsNil() { 20212 x.QueryOptions.Region = "" 20213 } else { 20214 x.Region = (string)(r.DecodeString()) 20215 } 20216 case "Namespace": 20217 if r.TryDecodeAsNil() { 20218 x.QueryOptions.Namespace = "" 20219 } else { 20220 x.Namespace = (string)(r.DecodeString()) 20221 } 20222 case "MinQueryIndex": 20223 if r.TryDecodeAsNil() { 20224 x.QueryOptions.MinQueryIndex = 0 20225 } else { 20226 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 20227 } 20228 case "MaxQueryTime": 20229 if r.TryDecodeAsNil() { 20230 x.QueryOptions.MaxQueryTime = 0 20231 } else { 20232 if false { 20233 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 20234 z.DecExtension(x.MaxQueryTime, yyxt13) 20235 } else { 20236 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 20237 } 20238 } 20239 case "AllowStale": 20240 if r.TryDecodeAsNil() { 20241 x.QueryOptions.AllowStale = false 20242 } else { 20243 x.AllowStale = (bool)(r.DecodeBool()) 20244 } 20245 case "Prefix": 20246 if r.TryDecodeAsNil() { 20247 x.QueryOptions.Prefix = "" 20248 } else { 20249 x.Prefix = (string)(r.DecodeString()) 20250 } 20251 case "AuthToken": 20252 if r.TryDecodeAsNil() { 20253 x.QueryOptions.AuthToken = "" 20254 } else { 20255 x.AuthToken = (string)(r.DecodeString()) 20256 } 20257 case "Forwarded": 20258 if r.TryDecodeAsNil() { 20259 x.QueryOptions.InternalRpcInfo.Forwarded = false 20260 } else { 20261 x.Forwarded = (bool)(r.DecodeBool()) 20262 } 20263 default: 20264 z.DecStructFieldNotFound(-1, yys3) 20265 } // end switch yys3 20266 } // end for yyj3 20267 r.ReadMapEnd() 20268 } 20269 20270 func (x *DeriveSITokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 20271 var h codecSelfer100 20272 z, r := codec1978.GenHelperDecoder(d) 20273 _, _, _ = h, z, r 20274 var yyj18 int 20275 var yyb18 bool 20276 var yyhl18 bool = l >= 0 20277 yyj18++ 20278 if yyhl18 { 20279 yyb18 = yyj18 > l 20280 } else { 20281 yyb18 = r.CheckBreak() 20282 } 20283 if yyb18 { 20284 r.ReadArrayEnd() 20285 return 20286 } 20287 r.ReadArrayElem() 20288 if r.TryDecodeAsNil() { 20289 x.NodeID = "" 20290 } else { 20291 x.NodeID = (string)(r.DecodeString()) 20292 } 20293 yyj18++ 20294 if yyhl18 { 20295 yyb18 = yyj18 > l 20296 } else { 20297 yyb18 = r.CheckBreak() 20298 } 20299 if yyb18 { 20300 r.ReadArrayEnd() 20301 return 20302 } 20303 r.ReadArrayElem() 20304 if r.TryDecodeAsNil() { 20305 x.SecretID = "" 20306 } else { 20307 x.SecretID = (string)(r.DecodeString()) 20308 } 20309 yyj18++ 20310 if yyhl18 { 20311 yyb18 = yyj18 > l 20312 } else { 20313 yyb18 = r.CheckBreak() 20314 } 20315 if yyb18 { 20316 r.ReadArrayEnd() 20317 return 20318 } 20319 r.ReadArrayElem() 20320 if r.TryDecodeAsNil() { 20321 x.AllocID = "" 20322 } else { 20323 x.AllocID = (string)(r.DecodeString()) 20324 } 20325 yyj18++ 20326 if yyhl18 { 20327 yyb18 = yyj18 > l 20328 } else { 20329 yyb18 = r.CheckBreak() 20330 } 20331 if yyb18 { 20332 r.ReadArrayEnd() 20333 return 20334 } 20335 r.ReadArrayElem() 20336 if r.TryDecodeAsNil() { 20337 x.Tasks = nil 20338 } else { 20339 if false { 20340 } else { 20341 z.F.DecSliceStringX(&x.Tasks, d) 20342 } 20343 } 20344 yyj18++ 20345 if yyhl18 { 20346 yyb18 = yyj18 > l 20347 } else { 20348 yyb18 = r.CheckBreak() 20349 } 20350 if yyb18 { 20351 r.ReadArrayEnd() 20352 return 20353 } 20354 r.ReadArrayElem() 20355 if r.TryDecodeAsNil() { 20356 x.QueryOptions.Region = "" 20357 } else { 20358 x.Region = (string)(r.DecodeString()) 20359 } 20360 yyj18++ 20361 if yyhl18 { 20362 yyb18 = yyj18 > l 20363 } else { 20364 yyb18 = r.CheckBreak() 20365 } 20366 if yyb18 { 20367 r.ReadArrayEnd() 20368 return 20369 } 20370 r.ReadArrayElem() 20371 if r.TryDecodeAsNil() { 20372 x.QueryOptions.Namespace = "" 20373 } else { 20374 x.Namespace = (string)(r.DecodeString()) 20375 } 20376 yyj18++ 20377 if yyhl18 { 20378 yyb18 = yyj18 > l 20379 } else { 20380 yyb18 = r.CheckBreak() 20381 } 20382 if yyb18 { 20383 r.ReadArrayEnd() 20384 return 20385 } 20386 r.ReadArrayElem() 20387 if r.TryDecodeAsNil() { 20388 x.QueryOptions.MinQueryIndex = 0 20389 } else { 20390 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 20391 } 20392 yyj18++ 20393 if yyhl18 { 20394 yyb18 = yyj18 > l 20395 } else { 20396 yyb18 = r.CheckBreak() 20397 } 20398 if yyb18 { 20399 r.ReadArrayEnd() 20400 return 20401 } 20402 r.ReadArrayElem() 20403 if r.TryDecodeAsNil() { 20404 x.QueryOptions.MaxQueryTime = 0 20405 } else { 20406 if false { 20407 } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { 20408 z.DecExtension(x.MaxQueryTime, yyxt28) 20409 } else { 20410 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 20411 } 20412 } 20413 yyj18++ 20414 if yyhl18 { 20415 yyb18 = yyj18 > l 20416 } else { 20417 yyb18 = r.CheckBreak() 20418 } 20419 if yyb18 { 20420 r.ReadArrayEnd() 20421 return 20422 } 20423 r.ReadArrayElem() 20424 if r.TryDecodeAsNil() { 20425 x.QueryOptions.AllowStale = false 20426 } else { 20427 x.AllowStale = (bool)(r.DecodeBool()) 20428 } 20429 yyj18++ 20430 if yyhl18 { 20431 yyb18 = yyj18 > l 20432 } else { 20433 yyb18 = r.CheckBreak() 20434 } 20435 if yyb18 { 20436 r.ReadArrayEnd() 20437 return 20438 } 20439 r.ReadArrayElem() 20440 if r.TryDecodeAsNil() { 20441 x.QueryOptions.Prefix = "" 20442 } else { 20443 x.Prefix = (string)(r.DecodeString()) 20444 } 20445 yyj18++ 20446 if yyhl18 { 20447 yyb18 = yyj18 > l 20448 } else { 20449 yyb18 = r.CheckBreak() 20450 } 20451 if yyb18 { 20452 r.ReadArrayEnd() 20453 return 20454 } 20455 r.ReadArrayElem() 20456 if r.TryDecodeAsNil() { 20457 x.QueryOptions.AuthToken = "" 20458 } else { 20459 x.AuthToken = (string)(r.DecodeString()) 20460 } 20461 yyj18++ 20462 if yyhl18 { 20463 yyb18 = yyj18 > l 20464 } else { 20465 yyb18 = r.CheckBreak() 20466 } 20467 if yyb18 { 20468 r.ReadArrayEnd() 20469 return 20470 } 20471 r.ReadArrayElem() 20472 if r.TryDecodeAsNil() { 20473 x.QueryOptions.InternalRpcInfo.Forwarded = false 20474 } else { 20475 x.Forwarded = (bool)(r.DecodeBool()) 20476 } 20477 for { 20478 yyj18++ 20479 if yyhl18 { 20480 yyb18 = yyj18 > l 20481 } else { 20482 yyb18 = r.CheckBreak() 20483 } 20484 if yyb18 { 20485 break 20486 } 20487 r.ReadArrayElem() 20488 z.DecStructFieldNotFound(yyj18-1, "") 20489 } 20490 r.ReadArrayEnd() 20491 } 20492 20493 func (x *DeriveSITokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 20494 var h codecSelfer100 20495 z, r := codec1978.GenHelperEncoder(e) 20496 _, _, _ = h, z, r 20497 if x == nil { 20498 r.EncodeNil() 20499 } else { 20500 if false { 20501 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20502 z.EncExtension(x, yyxt1) 20503 } else { 20504 yysep2 := !z.EncBinary() 20505 yy2arr2 := z.EncBasicHandle().StructToArray 20506 _, _ = yysep2, yy2arr2 20507 const yyr2 bool = false // struct tag has 'toArray' 20508 if yyr2 || yy2arr2 { 20509 r.WriteArrayStart(5) 20510 } else { 20511 r.WriteMapStart(5) 20512 } 20513 if yyr2 || yy2arr2 { 20514 r.WriteArrayElem() 20515 if x.Tokens == nil { 20516 r.EncodeNil() 20517 } else { 20518 if false { 20519 } else { 20520 z.F.EncMapStringStringV(x.Tokens, e) 20521 } 20522 } 20523 } else { 20524 r.WriteMapElemKey() 20525 if z.IsJSONHandle() { 20526 z.WriteStr("\"Tokens\"") 20527 } else { 20528 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 20529 } 20530 r.WriteMapElemValue() 20531 if x.Tokens == nil { 20532 r.EncodeNil() 20533 } else { 20534 if false { 20535 } else { 20536 z.F.EncMapStringStringV(x.Tokens, e) 20537 } 20538 } 20539 } 20540 var yyn6 bool 20541 if x.Error == nil { 20542 yyn6 = true 20543 goto LABEL6 20544 } 20545 LABEL6: 20546 if yyr2 || yy2arr2 { 20547 if yyn6 { 20548 r.WriteArrayElem() 20549 r.EncodeNil() 20550 } else { 20551 r.WriteArrayElem() 20552 if x.Error == nil { 20553 r.EncodeNil() 20554 } else { 20555 x.Error.CodecEncodeSelf(e) 20556 } 20557 } 20558 } else { 20559 r.WriteMapElemKey() 20560 if z.IsJSONHandle() { 20561 z.WriteStr("\"Error\"") 20562 } else { 20563 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 20564 } 20565 r.WriteMapElemValue() 20566 if yyn6 { 20567 r.EncodeNil() 20568 } else { 20569 if x.Error == nil { 20570 r.EncodeNil() 20571 } else { 20572 x.Error.CodecEncodeSelf(e) 20573 } 20574 } 20575 } 20576 if yyr2 || yy2arr2 { 20577 r.WriteArrayElem() 20578 if false { 20579 } else { 20580 r.EncodeUint(uint64(x.Index)) 20581 } 20582 } else { 20583 r.WriteMapElemKey() 20584 if z.IsJSONHandle() { 20585 z.WriteStr("\"Index\"") 20586 } else { 20587 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 20588 } 20589 r.WriteMapElemValue() 20590 if false { 20591 } else { 20592 r.EncodeUint(uint64(x.Index)) 20593 } 20594 } 20595 if yyr2 || yy2arr2 { 20596 r.WriteArrayElem() 20597 if false { 20598 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 20599 z.EncExtension(x.LastContact, yyxt13) 20600 } else { 20601 r.EncodeInt(int64(x.LastContact)) 20602 } 20603 } else { 20604 r.WriteMapElemKey() 20605 if z.IsJSONHandle() { 20606 z.WriteStr("\"LastContact\"") 20607 } else { 20608 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 20609 } 20610 r.WriteMapElemValue() 20611 if false { 20612 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 20613 z.EncExtension(x.LastContact, yyxt14) 20614 } else { 20615 r.EncodeInt(int64(x.LastContact)) 20616 } 20617 } 20618 if yyr2 || yy2arr2 { 20619 r.WriteArrayElem() 20620 if false { 20621 } else { 20622 r.EncodeBool(bool(x.KnownLeader)) 20623 } 20624 } else { 20625 r.WriteMapElemKey() 20626 if z.IsJSONHandle() { 20627 z.WriteStr("\"KnownLeader\"") 20628 } else { 20629 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 20630 } 20631 r.WriteMapElemValue() 20632 if false { 20633 } else { 20634 r.EncodeBool(bool(x.KnownLeader)) 20635 } 20636 } 20637 if yyr2 || yy2arr2 { 20638 r.WriteArrayEnd() 20639 } else { 20640 r.WriteMapEnd() 20641 } 20642 } 20643 } 20644 } 20645 20646 func (x *DeriveSITokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 20647 var h codecSelfer100 20648 z, r := codec1978.GenHelperDecoder(d) 20649 _, _, _ = h, z, r 20650 if false { 20651 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20652 z.DecExtension(x, yyxt1) 20653 } else { 20654 yyct2 := r.ContainerType() 20655 if yyct2 == codecSelferValueTypeMap100 { 20656 yyl2 := r.ReadMapStart() 20657 if yyl2 == 0 { 20658 r.ReadMapEnd() 20659 } else { 20660 x.codecDecodeSelfFromMap(yyl2, d) 20661 } 20662 } else if yyct2 == codecSelferValueTypeArray100 { 20663 yyl2 := r.ReadArrayStart() 20664 if yyl2 == 0 { 20665 r.ReadArrayEnd() 20666 } else { 20667 x.codecDecodeSelfFromArray(yyl2, d) 20668 } 20669 } else { 20670 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 20671 } 20672 } 20673 } 20674 20675 func (x *DeriveSITokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 20676 var h codecSelfer100 20677 z, r := codec1978.GenHelperDecoder(d) 20678 _, _, _ = h, z, r 20679 var yyhl3 bool = l >= 0 20680 for yyj3 := 0; ; yyj3++ { 20681 if yyhl3 { 20682 if yyj3 >= l { 20683 break 20684 } 20685 } else { 20686 if r.CheckBreak() { 20687 break 20688 } 20689 } 20690 r.ReadMapElemKey() 20691 yys3 := z.StringView(r.DecodeStringAsBytes()) 20692 r.ReadMapElemValue() 20693 switch yys3 { 20694 case "Tokens": 20695 if r.TryDecodeAsNil() { 20696 x.Tokens = nil 20697 } else { 20698 if false { 20699 } else { 20700 z.F.DecMapStringStringX(&x.Tokens, d) 20701 } 20702 } 20703 case "Error": 20704 if r.TryDecodeAsNil() { 20705 if true && x.Error != nil { 20706 x.Error = nil 20707 } 20708 } else { 20709 if x.Error == nil { 20710 x.Error = new(RecoverableError) 20711 } 20712 20713 x.Error.CodecDecodeSelf(d) 20714 } 20715 case "Index": 20716 if r.TryDecodeAsNil() { 20717 x.QueryMeta.Index = 0 20718 } else { 20719 x.Index = (uint64)(r.DecodeUint64()) 20720 } 20721 case "LastContact": 20722 if r.TryDecodeAsNil() { 20723 x.QueryMeta.LastContact = 0 20724 } else { 20725 if false { 20726 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 20727 z.DecExtension(x.LastContact, yyxt9) 20728 } else { 20729 x.LastContact = (time.Duration)(r.DecodeInt64()) 20730 } 20731 } 20732 case "KnownLeader": 20733 if r.TryDecodeAsNil() { 20734 x.QueryMeta.KnownLeader = false 20735 } else { 20736 x.KnownLeader = (bool)(r.DecodeBool()) 20737 } 20738 default: 20739 z.DecStructFieldNotFound(-1, yys3) 20740 } // end switch yys3 20741 } // end for yyj3 20742 r.ReadMapEnd() 20743 } 20744 20745 func (x *DeriveSITokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 20746 var h codecSelfer100 20747 z, r := codec1978.GenHelperDecoder(d) 20748 _, _, _ = h, z, r 20749 var yyj11 int 20750 var yyb11 bool 20751 var yyhl11 bool = l >= 0 20752 yyj11++ 20753 if yyhl11 { 20754 yyb11 = yyj11 > l 20755 } else { 20756 yyb11 = r.CheckBreak() 20757 } 20758 if yyb11 { 20759 r.ReadArrayEnd() 20760 return 20761 } 20762 r.ReadArrayElem() 20763 if r.TryDecodeAsNil() { 20764 x.Tokens = nil 20765 } else { 20766 if false { 20767 } else { 20768 z.F.DecMapStringStringX(&x.Tokens, d) 20769 } 20770 } 20771 yyj11++ 20772 if yyhl11 { 20773 yyb11 = yyj11 > l 20774 } else { 20775 yyb11 = r.CheckBreak() 20776 } 20777 if yyb11 { 20778 r.ReadArrayEnd() 20779 return 20780 } 20781 r.ReadArrayElem() 20782 if r.TryDecodeAsNil() { 20783 if true && x.Error != nil { 20784 x.Error = nil 20785 } 20786 } else { 20787 if x.Error == nil { 20788 x.Error = new(RecoverableError) 20789 } 20790 20791 x.Error.CodecDecodeSelf(d) 20792 } 20793 yyj11++ 20794 if yyhl11 { 20795 yyb11 = yyj11 > l 20796 } else { 20797 yyb11 = r.CheckBreak() 20798 } 20799 if yyb11 { 20800 r.ReadArrayEnd() 20801 return 20802 } 20803 r.ReadArrayElem() 20804 if r.TryDecodeAsNil() { 20805 x.QueryMeta.Index = 0 20806 } else { 20807 x.Index = (uint64)(r.DecodeUint64()) 20808 } 20809 yyj11++ 20810 if yyhl11 { 20811 yyb11 = yyj11 > l 20812 } else { 20813 yyb11 = r.CheckBreak() 20814 } 20815 if yyb11 { 20816 r.ReadArrayEnd() 20817 return 20818 } 20819 r.ReadArrayElem() 20820 if r.TryDecodeAsNil() { 20821 x.QueryMeta.LastContact = 0 20822 } else { 20823 if false { 20824 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 20825 z.DecExtension(x.LastContact, yyxt17) 20826 } else { 20827 x.LastContact = (time.Duration)(r.DecodeInt64()) 20828 } 20829 } 20830 yyj11++ 20831 if yyhl11 { 20832 yyb11 = yyj11 > l 20833 } else { 20834 yyb11 = r.CheckBreak() 20835 } 20836 if yyb11 { 20837 r.ReadArrayEnd() 20838 return 20839 } 20840 r.ReadArrayElem() 20841 if r.TryDecodeAsNil() { 20842 x.QueryMeta.KnownLeader = false 20843 } else { 20844 x.KnownLeader = (bool)(r.DecodeBool()) 20845 } 20846 for { 20847 yyj11++ 20848 if yyhl11 { 20849 yyb11 = yyj11 > l 20850 } else { 20851 yyb11 = r.CheckBreak() 20852 } 20853 if yyb11 { 20854 break 20855 } 20856 r.ReadArrayElem() 20857 z.DecStructFieldNotFound(yyj11-1, "") 20858 } 20859 r.ReadArrayEnd() 20860 } 20861 20862 func (x *ServiceCheck) CodecEncodeSelf(e *codec1978.Encoder) { 20863 var h codecSelfer100 20864 z, r := codec1978.GenHelperEncoder(e) 20865 _, _, _ = h, z, r 20866 if x == nil { 20867 r.EncodeNil() 20868 } else { 20869 if false { 20870 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 20871 z.EncExtension(x, yyxt1) 20872 } else { 20873 yysep2 := !z.EncBinary() 20874 yy2arr2 := z.EncBasicHandle().StructToArray 20875 _, _ = yysep2, yy2arr2 20876 const yyr2 bool = false // struct tag has 'toArray' 20877 if yyr2 || yy2arr2 { 20878 r.WriteArrayStart(19) 20879 } else { 20880 r.WriteMapStart(19) 20881 } 20882 if yyr2 || yy2arr2 { 20883 r.WriteArrayElem() 20884 if false { 20885 } else { 20886 if z.EncBasicHandle().StringToRaw { 20887 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 20888 } else { 20889 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 20890 } 20891 } 20892 } else { 20893 r.WriteMapElemKey() 20894 if z.IsJSONHandle() { 20895 z.WriteStr("\"Name\"") 20896 } else { 20897 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 20898 } 20899 r.WriteMapElemValue() 20900 if false { 20901 } else { 20902 if z.EncBasicHandle().StringToRaw { 20903 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 20904 } else { 20905 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 20906 } 20907 } 20908 } 20909 if yyr2 || yy2arr2 { 20910 r.WriteArrayElem() 20911 if false { 20912 } else { 20913 if z.EncBasicHandle().StringToRaw { 20914 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 20915 } else { 20916 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 20917 } 20918 } 20919 } else { 20920 r.WriteMapElemKey() 20921 if z.IsJSONHandle() { 20922 z.WriteStr("\"Type\"") 20923 } else { 20924 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 20925 } 20926 r.WriteMapElemValue() 20927 if false { 20928 } else { 20929 if z.EncBasicHandle().StringToRaw { 20930 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 20931 } else { 20932 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 20933 } 20934 } 20935 } 20936 if yyr2 || yy2arr2 { 20937 r.WriteArrayElem() 20938 if false { 20939 } else { 20940 if z.EncBasicHandle().StringToRaw { 20941 r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) 20942 } else { 20943 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) 20944 } 20945 } 20946 } else { 20947 r.WriteMapElemKey() 20948 if z.IsJSONHandle() { 20949 z.WriteStr("\"Command\"") 20950 } else { 20951 r.EncodeStringEnc(codecSelferCcUTF8100, `Command`) 20952 } 20953 r.WriteMapElemValue() 20954 if false { 20955 } else { 20956 if z.EncBasicHandle().StringToRaw { 20957 r.EncodeStringBytesRaw(z.BytesView(string(x.Command))) 20958 } else { 20959 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Command)) 20960 } 20961 } 20962 } 20963 if yyr2 || yy2arr2 { 20964 r.WriteArrayElem() 20965 if x.Args == nil { 20966 r.EncodeNil() 20967 } else { 20968 if false { 20969 } else { 20970 z.F.EncSliceStringV(x.Args, e) 20971 } 20972 } 20973 } else { 20974 r.WriteMapElemKey() 20975 if z.IsJSONHandle() { 20976 z.WriteStr("\"Args\"") 20977 } else { 20978 r.EncodeStringEnc(codecSelferCcUTF8100, `Args`) 20979 } 20980 r.WriteMapElemValue() 20981 if x.Args == nil { 20982 r.EncodeNil() 20983 } else { 20984 if false { 20985 } else { 20986 z.F.EncSliceStringV(x.Args, e) 20987 } 20988 } 20989 } 20990 if yyr2 || yy2arr2 { 20991 r.WriteArrayElem() 20992 if false { 20993 } else { 20994 if z.EncBasicHandle().StringToRaw { 20995 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 20996 } else { 20997 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 20998 } 20999 } 21000 } else { 21001 r.WriteMapElemKey() 21002 if z.IsJSONHandle() { 21003 z.WriteStr("\"Path\"") 21004 } else { 21005 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 21006 } 21007 r.WriteMapElemValue() 21008 if false { 21009 } else { 21010 if z.EncBasicHandle().StringToRaw { 21011 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 21012 } else { 21013 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 21014 } 21015 } 21016 } 21017 if yyr2 || yy2arr2 { 21018 r.WriteArrayElem() 21019 if false { 21020 } else { 21021 if z.EncBasicHandle().StringToRaw { 21022 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 21023 } else { 21024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 21025 } 21026 } 21027 } else { 21028 r.WriteMapElemKey() 21029 if z.IsJSONHandle() { 21030 z.WriteStr("\"Protocol\"") 21031 } else { 21032 r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) 21033 } 21034 r.WriteMapElemValue() 21035 if false { 21036 } else { 21037 if z.EncBasicHandle().StringToRaw { 21038 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 21039 } else { 21040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 21041 } 21042 } 21043 } 21044 if yyr2 || yy2arr2 { 21045 r.WriteArrayElem() 21046 if false { 21047 } else { 21048 if z.EncBasicHandle().StringToRaw { 21049 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 21050 } else { 21051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 21052 } 21053 } 21054 } else { 21055 r.WriteMapElemKey() 21056 if z.IsJSONHandle() { 21057 z.WriteStr("\"PortLabel\"") 21058 } else { 21059 r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) 21060 } 21061 r.WriteMapElemValue() 21062 if false { 21063 } else { 21064 if z.EncBasicHandle().StringToRaw { 21065 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 21066 } else { 21067 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 21068 } 21069 } 21070 } 21071 if yyr2 || yy2arr2 { 21072 r.WriteArrayElem() 21073 if false { 21074 } else { 21075 r.EncodeBool(bool(x.Expose)) 21076 } 21077 } else { 21078 r.WriteMapElemKey() 21079 if z.IsJSONHandle() { 21080 z.WriteStr("\"Expose\"") 21081 } else { 21082 r.EncodeStringEnc(codecSelferCcUTF8100, `Expose`) 21083 } 21084 r.WriteMapElemValue() 21085 if false { 21086 } else { 21087 r.EncodeBool(bool(x.Expose)) 21088 } 21089 } 21090 if yyr2 || yy2arr2 { 21091 r.WriteArrayElem() 21092 if false { 21093 } else { 21094 if z.EncBasicHandle().StringToRaw { 21095 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 21096 } else { 21097 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 21098 } 21099 } 21100 } else { 21101 r.WriteMapElemKey() 21102 if z.IsJSONHandle() { 21103 z.WriteStr("\"AddressMode\"") 21104 } else { 21105 r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) 21106 } 21107 r.WriteMapElemValue() 21108 if false { 21109 } else { 21110 if z.EncBasicHandle().StringToRaw { 21111 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 21112 } else { 21113 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 21114 } 21115 } 21116 } 21117 if yyr2 || yy2arr2 { 21118 r.WriteArrayElem() 21119 if false { 21120 } else if yyxt31 := z.Extension(z.I2Rtid(x.Interval)); yyxt31 != nil { 21121 z.EncExtension(x.Interval, yyxt31) 21122 } else { 21123 r.EncodeInt(int64(x.Interval)) 21124 } 21125 } else { 21126 r.WriteMapElemKey() 21127 if z.IsJSONHandle() { 21128 z.WriteStr("\"Interval\"") 21129 } else { 21130 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 21131 } 21132 r.WriteMapElemValue() 21133 if false { 21134 } else if yyxt32 := z.Extension(z.I2Rtid(x.Interval)); yyxt32 != nil { 21135 z.EncExtension(x.Interval, yyxt32) 21136 } else { 21137 r.EncodeInt(int64(x.Interval)) 21138 } 21139 } 21140 if yyr2 || yy2arr2 { 21141 r.WriteArrayElem() 21142 if false { 21143 } else if yyxt34 := z.Extension(z.I2Rtid(x.Timeout)); yyxt34 != nil { 21144 z.EncExtension(x.Timeout, yyxt34) 21145 } else { 21146 r.EncodeInt(int64(x.Timeout)) 21147 } 21148 } else { 21149 r.WriteMapElemKey() 21150 if z.IsJSONHandle() { 21151 z.WriteStr("\"Timeout\"") 21152 } else { 21153 r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) 21154 } 21155 r.WriteMapElemValue() 21156 if false { 21157 } else if yyxt35 := z.Extension(z.I2Rtid(x.Timeout)); yyxt35 != nil { 21158 z.EncExtension(x.Timeout, yyxt35) 21159 } else { 21160 r.EncodeInt(int64(x.Timeout)) 21161 } 21162 } 21163 if yyr2 || yy2arr2 { 21164 r.WriteArrayElem() 21165 if false { 21166 } else { 21167 if z.EncBasicHandle().StringToRaw { 21168 r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) 21169 } else { 21170 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) 21171 } 21172 } 21173 } else { 21174 r.WriteMapElemKey() 21175 if z.IsJSONHandle() { 21176 z.WriteStr("\"InitialStatus\"") 21177 } else { 21178 r.EncodeStringEnc(codecSelferCcUTF8100, `InitialStatus`) 21179 } 21180 r.WriteMapElemValue() 21181 if false { 21182 } else { 21183 if z.EncBasicHandle().StringToRaw { 21184 r.EncodeStringBytesRaw(z.BytesView(string(x.InitialStatus))) 21185 } else { 21186 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.InitialStatus)) 21187 } 21188 } 21189 } 21190 if yyr2 || yy2arr2 { 21191 r.WriteArrayElem() 21192 if false { 21193 } else { 21194 r.EncodeBool(bool(x.TLSSkipVerify)) 21195 } 21196 } else { 21197 r.WriteMapElemKey() 21198 if z.IsJSONHandle() { 21199 z.WriteStr("\"TLSSkipVerify\"") 21200 } else { 21201 r.EncodeStringEnc(codecSelferCcUTF8100, `TLSSkipVerify`) 21202 } 21203 r.WriteMapElemValue() 21204 if false { 21205 } else { 21206 r.EncodeBool(bool(x.TLSSkipVerify)) 21207 } 21208 } 21209 if yyr2 || yy2arr2 { 21210 r.WriteArrayElem() 21211 if false { 21212 } else { 21213 if z.EncBasicHandle().StringToRaw { 21214 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 21215 } else { 21216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 21217 } 21218 } 21219 } else { 21220 r.WriteMapElemKey() 21221 if z.IsJSONHandle() { 21222 z.WriteStr("\"Method\"") 21223 } else { 21224 r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) 21225 } 21226 r.WriteMapElemValue() 21227 if false { 21228 } else { 21229 if z.EncBasicHandle().StringToRaw { 21230 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 21231 } else { 21232 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 21233 } 21234 } 21235 } 21236 if yyr2 || yy2arr2 { 21237 r.WriteArrayElem() 21238 if x.Header == nil { 21239 r.EncodeNil() 21240 } else { 21241 if false { 21242 } else { 21243 h.encMapstringSlicestring((map[string][]string)(x.Header), e) 21244 } 21245 } 21246 } else { 21247 r.WriteMapElemKey() 21248 if z.IsJSONHandle() { 21249 z.WriteStr("\"Header\"") 21250 } else { 21251 r.EncodeStringEnc(codecSelferCcUTF8100, `Header`) 21252 } 21253 r.WriteMapElemValue() 21254 if x.Header == nil { 21255 r.EncodeNil() 21256 } else { 21257 if false { 21258 } else { 21259 h.encMapstringSlicestring((map[string][]string)(x.Header), e) 21260 } 21261 } 21262 } 21263 var yyn48 bool 21264 if x.CheckRestart == nil { 21265 yyn48 = true 21266 goto LABEL48 21267 } 21268 LABEL48: 21269 if yyr2 || yy2arr2 { 21270 if yyn48 { 21271 r.WriteArrayElem() 21272 r.EncodeNil() 21273 } else { 21274 r.WriteArrayElem() 21275 if x.CheckRestart == nil { 21276 r.EncodeNil() 21277 } else { 21278 x.CheckRestart.CodecEncodeSelf(e) 21279 } 21280 } 21281 } else { 21282 r.WriteMapElemKey() 21283 if z.IsJSONHandle() { 21284 z.WriteStr("\"CheckRestart\"") 21285 } else { 21286 r.EncodeStringEnc(codecSelferCcUTF8100, `CheckRestart`) 21287 } 21288 r.WriteMapElemValue() 21289 if yyn48 { 21290 r.EncodeNil() 21291 } else { 21292 if x.CheckRestart == nil { 21293 r.EncodeNil() 21294 } else { 21295 x.CheckRestart.CodecEncodeSelf(e) 21296 } 21297 } 21298 } 21299 if yyr2 || yy2arr2 { 21300 r.WriteArrayElem() 21301 if false { 21302 } else { 21303 if z.EncBasicHandle().StringToRaw { 21304 r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) 21305 } else { 21306 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) 21307 } 21308 } 21309 } else { 21310 r.WriteMapElemKey() 21311 if z.IsJSONHandle() { 21312 z.WriteStr("\"GRPCService\"") 21313 } else { 21314 r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCService`) 21315 } 21316 r.WriteMapElemValue() 21317 if false { 21318 } else { 21319 if z.EncBasicHandle().StringToRaw { 21320 r.EncodeStringBytesRaw(z.BytesView(string(x.GRPCService))) 21321 } else { 21322 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GRPCService)) 21323 } 21324 } 21325 } 21326 if yyr2 || yy2arr2 { 21327 r.WriteArrayElem() 21328 if false { 21329 } else { 21330 r.EncodeBool(bool(x.GRPCUseTLS)) 21331 } 21332 } else { 21333 r.WriteMapElemKey() 21334 if z.IsJSONHandle() { 21335 z.WriteStr("\"GRPCUseTLS\"") 21336 } else { 21337 r.EncodeStringEnc(codecSelferCcUTF8100, `GRPCUseTLS`) 21338 } 21339 r.WriteMapElemValue() 21340 if false { 21341 } else { 21342 r.EncodeBool(bool(x.GRPCUseTLS)) 21343 } 21344 } 21345 if yyr2 || yy2arr2 { 21346 r.WriteArrayElem() 21347 if false { 21348 } else { 21349 if z.EncBasicHandle().StringToRaw { 21350 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 21351 } else { 21352 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 21353 } 21354 } 21355 } else { 21356 r.WriteMapElemKey() 21357 if z.IsJSONHandle() { 21358 z.WriteStr("\"TaskName\"") 21359 } else { 21360 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 21361 } 21362 r.WriteMapElemValue() 21363 if false { 21364 } else { 21365 if z.EncBasicHandle().StringToRaw { 21366 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 21367 } else { 21368 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 21369 } 21370 } 21371 } 21372 if yyr2 || yy2arr2 { 21373 r.WriteArrayEnd() 21374 } else { 21375 r.WriteMapEnd() 21376 } 21377 } 21378 } 21379 } 21380 21381 func (x *ServiceCheck) CodecDecodeSelf(d *codec1978.Decoder) { 21382 var h codecSelfer100 21383 z, r := codec1978.GenHelperDecoder(d) 21384 _, _, _ = h, z, r 21385 if false { 21386 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21387 z.DecExtension(x, yyxt1) 21388 } else { 21389 yyct2 := r.ContainerType() 21390 if yyct2 == codecSelferValueTypeMap100 { 21391 yyl2 := r.ReadMapStart() 21392 if yyl2 == 0 { 21393 r.ReadMapEnd() 21394 } else { 21395 x.codecDecodeSelfFromMap(yyl2, d) 21396 } 21397 } else if yyct2 == codecSelferValueTypeArray100 { 21398 yyl2 := r.ReadArrayStart() 21399 if yyl2 == 0 { 21400 r.ReadArrayEnd() 21401 } else { 21402 x.codecDecodeSelfFromArray(yyl2, d) 21403 } 21404 } else { 21405 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 21406 } 21407 } 21408 } 21409 21410 func (x *ServiceCheck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 21411 var h codecSelfer100 21412 z, r := codec1978.GenHelperDecoder(d) 21413 _, _, _ = h, z, r 21414 var yyhl3 bool = l >= 0 21415 for yyj3 := 0; ; yyj3++ { 21416 if yyhl3 { 21417 if yyj3 >= l { 21418 break 21419 } 21420 } else { 21421 if r.CheckBreak() { 21422 break 21423 } 21424 } 21425 r.ReadMapElemKey() 21426 yys3 := z.StringView(r.DecodeStringAsBytes()) 21427 r.ReadMapElemValue() 21428 switch yys3 { 21429 case "Name": 21430 if r.TryDecodeAsNil() { 21431 x.Name = "" 21432 } else { 21433 x.Name = (string)(r.DecodeString()) 21434 } 21435 case "Type": 21436 if r.TryDecodeAsNil() { 21437 x.Type = "" 21438 } else { 21439 x.Type = (string)(r.DecodeString()) 21440 } 21441 case "Command": 21442 if r.TryDecodeAsNil() { 21443 x.Command = "" 21444 } else { 21445 x.Command = (string)(r.DecodeString()) 21446 } 21447 case "Args": 21448 if r.TryDecodeAsNil() { 21449 x.Args = nil 21450 } else { 21451 if false { 21452 } else { 21453 z.F.DecSliceStringX(&x.Args, d) 21454 } 21455 } 21456 case "Path": 21457 if r.TryDecodeAsNil() { 21458 x.Path = "" 21459 } else { 21460 x.Path = (string)(r.DecodeString()) 21461 } 21462 case "Protocol": 21463 if r.TryDecodeAsNil() { 21464 x.Protocol = "" 21465 } else { 21466 x.Protocol = (string)(r.DecodeString()) 21467 } 21468 case "PortLabel": 21469 if r.TryDecodeAsNil() { 21470 x.PortLabel = "" 21471 } else { 21472 x.PortLabel = (string)(r.DecodeString()) 21473 } 21474 case "Expose": 21475 if r.TryDecodeAsNil() { 21476 x.Expose = false 21477 } else { 21478 x.Expose = (bool)(r.DecodeBool()) 21479 } 21480 case "AddressMode": 21481 if r.TryDecodeAsNil() { 21482 x.AddressMode = "" 21483 } else { 21484 x.AddressMode = (string)(r.DecodeString()) 21485 } 21486 case "Interval": 21487 if r.TryDecodeAsNil() { 21488 x.Interval = 0 21489 } else { 21490 if false { 21491 } else if yyxt15 := z.Extension(z.I2Rtid(x.Interval)); yyxt15 != nil { 21492 z.DecExtension(x.Interval, yyxt15) 21493 } else { 21494 x.Interval = (time.Duration)(r.DecodeInt64()) 21495 } 21496 } 21497 case "Timeout": 21498 if r.TryDecodeAsNil() { 21499 x.Timeout = 0 21500 } else { 21501 if false { 21502 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { 21503 z.DecExtension(x.Timeout, yyxt17) 21504 } else { 21505 x.Timeout = (time.Duration)(r.DecodeInt64()) 21506 } 21507 } 21508 case "InitialStatus": 21509 if r.TryDecodeAsNil() { 21510 x.InitialStatus = "" 21511 } else { 21512 x.InitialStatus = (string)(r.DecodeString()) 21513 } 21514 case "TLSSkipVerify": 21515 if r.TryDecodeAsNil() { 21516 x.TLSSkipVerify = false 21517 } else { 21518 x.TLSSkipVerify = (bool)(r.DecodeBool()) 21519 } 21520 case "Method": 21521 if r.TryDecodeAsNil() { 21522 x.Method = "" 21523 } else { 21524 x.Method = (string)(r.DecodeString()) 21525 } 21526 case "Header": 21527 if r.TryDecodeAsNil() { 21528 x.Header = nil 21529 } else { 21530 if false { 21531 } else { 21532 h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) 21533 } 21534 } 21535 case "CheckRestart": 21536 if r.TryDecodeAsNil() { 21537 if true && x.CheckRestart != nil { 21538 x.CheckRestart = nil 21539 } 21540 } else { 21541 if x.CheckRestart == nil { 21542 x.CheckRestart = new(CheckRestart) 21543 } 21544 21545 x.CheckRestart.CodecDecodeSelf(d) 21546 } 21547 case "GRPCService": 21548 if r.TryDecodeAsNil() { 21549 x.GRPCService = "" 21550 } else { 21551 x.GRPCService = (string)(r.DecodeString()) 21552 } 21553 case "GRPCUseTLS": 21554 if r.TryDecodeAsNil() { 21555 x.GRPCUseTLS = false 21556 } else { 21557 x.GRPCUseTLS = (bool)(r.DecodeBool()) 21558 } 21559 case "TaskName": 21560 if r.TryDecodeAsNil() { 21561 x.TaskName = "" 21562 } else { 21563 x.TaskName = (string)(r.DecodeString()) 21564 } 21565 default: 21566 z.DecStructFieldNotFound(-1, yys3) 21567 } // end switch yys3 21568 } // end for yyj3 21569 r.ReadMapEnd() 21570 } 21571 21572 func (x *ServiceCheck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 21573 var h codecSelfer100 21574 z, r := codec1978.GenHelperDecoder(d) 21575 _, _, _ = h, z, r 21576 var yyj27 int 21577 var yyb27 bool 21578 var yyhl27 bool = l >= 0 21579 yyj27++ 21580 if yyhl27 { 21581 yyb27 = yyj27 > l 21582 } else { 21583 yyb27 = r.CheckBreak() 21584 } 21585 if yyb27 { 21586 r.ReadArrayEnd() 21587 return 21588 } 21589 r.ReadArrayElem() 21590 if r.TryDecodeAsNil() { 21591 x.Name = "" 21592 } else { 21593 x.Name = (string)(r.DecodeString()) 21594 } 21595 yyj27++ 21596 if yyhl27 { 21597 yyb27 = yyj27 > l 21598 } else { 21599 yyb27 = r.CheckBreak() 21600 } 21601 if yyb27 { 21602 r.ReadArrayEnd() 21603 return 21604 } 21605 r.ReadArrayElem() 21606 if r.TryDecodeAsNil() { 21607 x.Type = "" 21608 } else { 21609 x.Type = (string)(r.DecodeString()) 21610 } 21611 yyj27++ 21612 if yyhl27 { 21613 yyb27 = yyj27 > l 21614 } else { 21615 yyb27 = r.CheckBreak() 21616 } 21617 if yyb27 { 21618 r.ReadArrayEnd() 21619 return 21620 } 21621 r.ReadArrayElem() 21622 if r.TryDecodeAsNil() { 21623 x.Command = "" 21624 } else { 21625 x.Command = (string)(r.DecodeString()) 21626 } 21627 yyj27++ 21628 if yyhl27 { 21629 yyb27 = yyj27 > l 21630 } else { 21631 yyb27 = r.CheckBreak() 21632 } 21633 if yyb27 { 21634 r.ReadArrayEnd() 21635 return 21636 } 21637 r.ReadArrayElem() 21638 if r.TryDecodeAsNil() { 21639 x.Args = nil 21640 } else { 21641 if false { 21642 } else { 21643 z.F.DecSliceStringX(&x.Args, d) 21644 } 21645 } 21646 yyj27++ 21647 if yyhl27 { 21648 yyb27 = yyj27 > l 21649 } else { 21650 yyb27 = r.CheckBreak() 21651 } 21652 if yyb27 { 21653 r.ReadArrayEnd() 21654 return 21655 } 21656 r.ReadArrayElem() 21657 if r.TryDecodeAsNil() { 21658 x.Path = "" 21659 } else { 21660 x.Path = (string)(r.DecodeString()) 21661 } 21662 yyj27++ 21663 if yyhl27 { 21664 yyb27 = yyj27 > l 21665 } else { 21666 yyb27 = r.CheckBreak() 21667 } 21668 if yyb27 { 21669 r.ReadArrayEnd() 21670 return 21671 } 21672 r.ReadArrayElem() 21673 if r.TryDecodeAsNil() { 21674 x.Protocol = "" 21675 } else { 21676 x.Protocol = (string)(r.DecodeString()) 21677 } 21678 yyj27++ 21679 if yyhl27 { 21680 yyb27 = yyj27 > l 21681 } else { 21682 yyb27 = r.CheckBreak() 21683 } 21684 if yyb27 { 21685 r.ReadArrayEnd() 21686 return 21687 } 21688 r.ReadArrayElem() 21689 if r.TryDecodeAsNil() { 21690 x.PortLabel = "" 21691 } else { 21692 x.PortLabel = (string)(r.DecodeString()) 21693 } 21694 yyj27++ 21695 if yyhl27 { 21696 yyb27 = yyj27 > l 21697 } else { 21698 yyb27 = r.CheckBreak() 21699 } 21700 if yyb27 { 21701 r.ReadArrayEnd() 21702 return 21703 } 21704 r.ReadArrayElem() 21705 if r.TryDecodeAsNil() { 21706 x.Expose = false 21707 } else { 21708 x.Expose = (bool)(r.DecodeBool()) 21709 } 21710 yyj27++ 21711 if yyhl27 { 21712 yyb27 = yyj27 > l 21713 } else { 21714 yyb27 = r.CheckBreak() 21715 } 21716 if yyb27 { 21717 r.ReadArrayEnd() 21718 return 21719 } 21720 r.ReadArrayElem() 21721 if r.TryDecodeAsNil() { 21722 x.AddressMode = "" 21723 } else { 21724 x.AddressMode = (string)(r.DecodeString()) 21725 } 21726 yyj27++ 21727 if yyhl27 { 21728 yyb27 = yyj27 > l 21729 } else { 21730 yyb27 = r.CheckBreak() 21731 } 21732 if yyb27 { 21733 r.ReadArrayEnd() 21734 return 21735 } 21736 r.ReadArrayElem() 21737 if r.TryDecodeAsNil() { 21738 x.Interval = 0 21739 } else { 21740 if false { 21741 } else if yyxt39 := z.Extension(z.I2Rtid(x.Interval)); yyxt39 != nil { 21742 z.DecExtension(x.Interval, yyxt39) 21743 } else { 21744 x.Interval = (time.Duration)(r.DecodeInt64()) 21745 } 21746 } 21747 yyj27++ 21748 if yyhl27 { 21749 yyb27 = yyj27 > l 21750 } else { 21751 yyb27 = r.CheckBreak() 21752 } 21753 if yyb27 { 21754 r.ReadArrayEnd() 21755 return 21756 } 21757 r.ReadArrayElem() 21758 if r.TryDecodeAsNil() { 21759 x.Timeout = 0 21760 } else { 21761 if false { 21762 } else if yyxt41 := z.Extension(z.I2Rtid(x.Timeout)); yyxt41 != nil { 21763 z.DecExtension(x.Timeout, yyxt41) 21764 } else { 21765 x.Timeout = (time.Duration)(r.DecodeInt64()) 21766 } 21767 } 21768 yyj27++ 21769 if yyhl27 { 21770 yyb27 = yyj27 > l 21771 } else { 21772 yyb27 = r.CheckBreak() 21773 } 21774 if yyb27 { 21775 r.ReadArrayEnd() 21776 return 21777 } 21778 r.ReadArrayElem() 21779 if r.TryDecodeAsNil() { 21780 x.InitialStatus = "" 21781 } else { 21782 x.InitialStatus = (string)(r.DecodeString()) 21783 } 21784 yyj27++ 21785 if yyhl27 { 21786 yyb27 = yyj27 > l 21787 } else { 21788 yyb27 = r.CheckBreak() 21789 } 21790 if yyb27 { 21791 r.ReadArrayEnd() 21792 return 21793 } 21794 r.ReadArrayElem() 21795 if r.TryDecodeAsNil() { 21796 x.TLSSkipVerify = false 21797 } else { 21798 x.TLSSkipVerify = (bool)(r.DecodeBool()) 21799 } 21800 yyj27++ 21801 if yyhl27 { 21802 yyb27 = yyj27 > l 21803 } else { 21804 yyb27 = r.CheckBreak() 21805 } 21806 if yyb27 { 21807 r.ReadArrayEnd() 21808 return 21809 } 21810 r.ReadArrayElem() 21811 if r.TryDecodeAsNil() { 21812 x.Method = "" 21813 } else { 21814 x.Method = (string)(r.DecodeString()) 21815 } 21816 yyj27++ 21817 if yyhl27 { 21818 yyb27 = yyj27 > l 21819 } else { 21820 yyb27 = r.CheckBreak() 21821 } 21822 if yyb27 { 21823 r.ReadArrayEnd() 21824 return 21825 } 21826 r.ReadArrayElem() 21827 if r.TryDecodeAsNil() { 21828 x.Header = nil 21829 } else { 21830 if false { 21831 } else { 21832 h.decMapstringSlicestring((*map[string][]string)(&x.Header), d) 21833 } 21834 } 21835 yyj27++ 21836 if yyhl27 { 21837 yyb27 = yyj27 > l 21838 } else { 21839 yyb27 = r.CheckBreak() 21840 } 21841 if yyb27 { 21842 r.ReadArrayEnd() 21843 return 21844 } 21845 r.ReadArrayElem() 21846 if r.TryDecodeAsNil() { 21847 if true && x.CheckRestart != nil { 21848 x.CheckRestart = nil 21849 } 21850 } else { 21851 if x.CheckRestart == nil { 21852 x.CheckRestart = new(CheckRestart) 21853 } 21854 21855 x.CheckRestart.CodecDecodeSelf(d) 21856 } 21857 yyj27++ 21858 if yyhl27 { 21859 yyb27 = yyj27 > l 21860 } else { 21861 yyb27 = r.CheckBreak() 21862 } 21863 if yyb27 { 21864 r.ReadArrayEnd() 21865 return 21866 } 21867 r.ReadArrayElem() 21868 if r.TryDecodeAsNil() { 21869 x.GRPCService = "" 21870 } else { 21871 x.GRPCService = (string)(r.DecodeString()) 21872 } 21873 yyj27++ 21874 if yyhl27 { 21875 yyb27 = yyj27 > l 21876 } else { 21877 yyb27 = r.CheckBreak() 21878 } 21879 if yyb27 { 21880 r.ReadArrayEnd() 21881 return 21882 } 21883 r.ReadArrayElem() 21884 if r.TryDecodeAsNil() { 21885 x.GRPCUseTLS = false 21886 } else { 21887 x.GRPCUseTLS = (bool)(r.DecodeBool()) 21888 } 21889 yyj27++ 21890 if yyhl27 { 21891 yyb27 = yyj27 > l 21892 } else { 21893 yyb27 = r.CheckBreak() 21894 } 21895 if yyb27 { 21896 r.ReadArrayEnd() 21897 return 21898 } 21899 r.ReadArrayElem() 21900 if r.TryDecodeAsNil() { 21901 x.TaskName = "" 21902 } else { 21903 x.TaskName = (string)(r.DecodeString()) 21904 } 21905 for { 21906 yyj27++ 21907 if yyhl27 { 21908 yyb27 = yyj27 > l 21909 } else { 21910 yyb27 = r.CheckBreak() 21911 } 21912 if yyb27 { 21913 break 21914 } 21915 r.ReadArrayElem() 21916 z.DecStructFieldNotFound(yyj27-1, "") 21917 } 21918 r.ReadArrayEnd() 21919 } 21920 21921 func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { 21922 var h codecSelfer100 21923 z, r := codec1978.GenHelperEncoder(e) 21924 _, _, _ = h, z, r 21925 if x == nil { 21926 r.EncodeNil() 21927 } else { 21928 if false { 21929 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 21930 z.EncExtension(x, yyxt1) 21931 } else { 21932 yysep2 := !z.EncBinary() 21933 yy2arr2 := z.EncBasicHandle().StructToArray 21934 _, _ = yysep2, yy2arr2 21935 const yyr2 bool = false // struct tag has 'toArray' 21936 if yyr2 || yy2arr2 { 21937 r.WriteArrayStart(10) 21938 } else { 21939 r.WriteMapStart(10) 21940 } 21941 if yyr2 || yy2arr2 { 21942 r.WriteArrayElem() 21943 if false { 21944 } else { 21945 if z.EncBasicHandle().StringToRaw { 21946 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 21947 } else { 21948 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 21949 } 21950 } 21951 } else { 21952 r.WriteMapElemKey() 21953 if z.IsJSONHandle() { 21954 z.WriteStr("\"Name\"") 21955 } else { 21956 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 21957 } 21958 r.WriteMapElemValue() 21959 if false { 21960 } else { 21961 if z.EncBasicHandle().StringToRaw { 21962 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 21963 } else { 21964 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 21965 } 21966 } 21967 } 21968 if yyr2 || yy2arr2 { 21969 r.WriteArrayElem() 21970 if false { 21971 } else { 21972 if z.EncBasicHandle().StringToRaw { 21973 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 21974 } else { 21975 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 21976 } 21977 } 21978 } else { 21979 r.WriteMapElemKey() 21980 if z.IsJSONHandle() { 21981 z.WriteStr("\"PortLabel\"") 21982 } else { 21983 r.EncodeStringEnc(codecSelferCcUTF8100, `PortLabel`) 21984 } 21985 r.WriteMapElemValue() 21986 if false { 21987 } else { 21988 if z.EncBasicHandle().StringToRaw { 21989 r.EncodeStringBytesRaw(z.BytesView(string(x.PortLabel))) 21990 } else { 21991 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PortLabel)) 21992 } 21993 } 21994 } 21995 if yyr2 || yy2arr2 { 21996 r.WriteArrayElem() 21997 if false { 21998 } else { 21999 if z.EncBasicHandle().StringToRaw { 22000 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 22001 } else { 22002 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 22003 } 22004 } 22005 } else { 22006 r.WriteMapElemKey() 22007 if z.IsJSONHandle() { 22008 z.WriteStr("\"AddressMode\"") 22009 } else { 22010 r.EncodeStringEnc(codecSelferCcUTF8100, `AddressMode`) 22011 } 22012 r.WriteMapElemValue() 22013 if false { 22014 } else { 22015 if z.EncBasicHandle().StringToRaw { 22016 r.EncodeStringBytesRaw(z.BytesView(string(x.AddressMode))) 22017 } else { 22018 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AddressMode)) 22019 } 22020 } 22021 } 22022 if yyr2 || yy2arr2 { 22023 r.WriteArrayElem() 22024 if false { 22025 } else { 22026 r.EncodeBool(bool(x.EnableTagOverride)) 22027 } 22028 } else { 22029 r.WriteMapElemKey() 22030 if z.IsJSONHandle() { 22031 z.WriteStr("\"EnableTagOverride\"") 22032 } else { 22033 r.EncodeStringEnc(codecSelferCcUTF8100, `EnableTagOverride`) 22034 } 22035 r.WriteMapElemValue() 22036 if false { 22037 } else { 22038 r.EncodeBool(bool(x.EnableTagOverride)) 22039 } 22040 } 22041 if yyr2 || yy2arr2 { 22042 r.WriteArrayElem() 22043 if x.Tags == nil { 22044 r.EncodeNil() 22045 } else { 22046 if false { 22047 } else { 22048 z.F.EncSliceStringV(x.Tags, e) 22049 } 22050 } 22051 } else { 22052 r.WriteMapElemKey() 22053 if z.IsJSONHandle() { 22054 z.WriteStr("\"Tags\"") 22055 } else { 22056 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 22057 } 22058 r.WriteMapElemValue() 22059 if x.Tags == nil { 22060 r.EncodeNil() 22061 } else { 22062 if false { 22063 } else { 22064 z.F.EncSliceStringV(x.Tags, e) 22065 } 22066 } 22067 } 22068 if yyr2 || yy2arr2 { 22069 r.WriteArrayElem() 22070 if x.CanaryTags == nil { 22071 r.EncodeNil() 22072 } else { 22073 if false { 22074 } else { 22075 z.F.EncSliceStringV(x.CanaryTags, e) 22076 } 22077 } 22078 } else { 22079 r.WriteMapElemKey() 22080 if z.IsJSONHandle() { 22081 z.WriteStr("\"CanaryTags\"") 22082 } else { 22083 r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryTags`) 22084 } 22085 r.WriteMapElemValue() 22086 if x.CanaryTags == nil { 22087 r.EncodeNil() 22088 } else { 22089 if false { 22090 } else { 22091 z.F.EncSliceStringV(x.CanaryTags, e) 22092 } 22093 } 22094 } 22095 if yyr2 || yy2arr2 { 22096 r.WriteArrayElem() 22097 if x.Checks == nil { 22098 r.EncodeNil() 22099 } else { 22100 if false { 22101 } else { 22102 h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) 22103 } 22104 } 22105 } else { 22106 r.WriteMapElemKey() 22107 if z.IsJSONHandle() { 22108 z.WriteStr("\"Checks\"") 22109 } else { 22110 r.EncodeStringEnc(codecSelferCcUTF8100, `Checks`) 22111 } 22112 r.WriteMapElemValue() 22113 if x.Checks == nil { 22114 r.EncodeNil() 22115 } else { 22116 if false { 22117 } else { 22118 h.encSlicePtrtoServiceCheck(([]*ServiceCheck)(x.Checks), e) 22119 } 22120 } 22121 } 22122 var yyn24 bool 22123 if x.Connect == nil { 22124 yyn24 = true 22125 goto LABEL24 22126 } 22127 LABEL24: 22128 if yyr2 || yy2arr2 { 22129 if yyn24 { 22130 r.WriteArrayElem() 22131 r.EncodeNil() 22132 } else { 22133 r.WriteArrayElem() 22134 if x.Connect == nil { 22135 r.EncodeNil() 22136 } else { 22137 x.Connect.CodecEncodeSelf(e) 22138 } 22139 } 22140 } else { 22141 r.WriteMapElemKey() 22142 if z.IsJSONHandle() { 22143 z.WriteStr("\"Connect\"") 22144 } else { 22145 r.EncodeStringEnc(codecSelferCcUTF8100, `Connect`) 22146 } 22147 r.WriteMapElemValue() 22148 if yyn24 { 22149 r.EncodeNil() 22150 } else { 22151 if x.Connect == nil { 22152 r.EncodeNil() 22153 } else { 22154 x.Connect.CodecEncodeSelf(e) 22155 } 22156 } 22157 } 22158 if yyr2 || yy2arr2 { 22159 r.WriteArrayElem() 22160 if x.Meta == nil { 22161 r.EncodeNil() 22162 } else { 22163 if false { 22164 } else { 22165 z.F.EncMapStringStringV(x.Meta, e) 22166 } 22167 } 22168 } else { 22169 r.WriteMapElemKey() 22170 if z.IsJSONHandle() { 22171 z.WriteStr("\"Meta\"") 22172 } else { 22173 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 22174 } 22175 r.WriteMapElemValue() 22176 if x.Meta == nil { 22177 r.EncodeNil() 22178 } else { 22179 if false { 22180 } else { 22181 z.F.EncMapStringStringV(x.Meta, e) 22182 } 22183 } 22184 } 22185 if yyr2 || yy2arr2 { 22186 r.WriteArrayElem() 22187 if x.CanaryMeta == nil { 22188 r.EncodeNil() 22189 } else { 22190 if false { 22191 } else { 22192 z.F.EncMapStringStringV(x.CanaryMeta, e) 22193 } 22194 } 22195 } else { 22196 r.WriteMapElemKey() 22197 if z.IsJSONHandle() { 22198 z.WriteStr("\"CanaryMeta\"") 22199 } else { 22200 r.EncodeStringEnc(codecSelferCcUTF8100, `CanaryMeta`) 22201 } 22202 r.WriteMapElemValue() 22203 if x.CanaryMeta == nil { 22204 r.EncodeNil() 22205 } else { 22206 if false { 22207 } else { 22208 z.F.EncMapStringStringV(x.CanaryMeta, e) 22209 } 22210 } 22211 } 22212 if yyr2 || yy2arr2 { 22213 r.WriteArrayEnd() 22214 } else { 22215 r.WriteMapEnd() 22216 } 22217 } 22218 } 22219 } 22220 22221 func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { 22222 var h codecSelfer100 22223 z, r := codec1978.GenHelperDecoder(d) 22224 _, _, _ = h, z, r 22225 if false { 22226 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22227 z.DecExtension(x, yyxt1) 22228 } else { 22229 yyct2 := r.ContainerType() 22230 if yyct2 == codecSelferValueTypeMap100 { 22231 yyl2 := r.ReadMapStart() 22232 if yyl2 == 0 { 22233 r.ReadMapEnd() 22234 } else { 22235 x.codecDecodeSelfFromMap(yyl2, d) 22236 } 22237 } else if yyct2 == codecSelferValueTypeArray100 { 22238 yyl2 := r.ReadArrayStart() 22239 if yyl2 == 0 { 22240 r.ReadArrayEnd() 22241 } else { 22242 x.codecDecodeSelfFromArray(yyl2, d) 22243 } 22244 } else { 22245 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22246 } 22247 } 22248 } 22249 22250 func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22251 var h codecSelfer100 22252 z, r := codec1978.GenHelperDecoder(d) 22253 _, _, _ = h, z, r 22254 var yyhl3 bool = l >= 0 22255 for yyj3 := 0; ; yyj3++ { 22256 if yyhl3 { 22257 if yyj3 >= l { 22258 break 22259 } 22260 } else { 22261 if r.CheckBreak() { 22262 break 22263 } 22264 } 22265 r.ReadMapElemKey() 22266 yys3 := z.StringView(r.DecodeStringAsBytes()) 22267 r.ReadMapElemValue() 22268 switch yys3 { 22269 case "Name": 22270 if r.TryDecodeAsNil() { 22271 x.Name = "" 22272 } else { 22273 x.Name = (string)(r.DecodeString()) 22274 } 22275 case "PortLabel": 22276 if r.TryDecodeAsNil() { 22277 x.PortLabel = "" 22278 } else { 22279 x.PortLabel = (string)(r.DecodeString()) 22280 } 22281 case "AddressMode": 22282 if r.TryDecodeAsNil() { 22283 x.AddressMode = "" 22284 } else { 22285 x.AddressMode = (string)(r.DecodeString()) 22286 } 22287 case "EnableTagOverride": 22288 if r.TryDecodeAsNil() { 22289 x.EnableTagOverride = false 22290 } else { 22291 x.EnableTagOverride = (bool)(r.DecodeBool()) 22292 } 22293 case "Tags": 22294 if r.TryDecodeAsNil() { 22295 x.Tags = nil 22296 } else { 22297 if false { 22298 } else { 22299 z.F.DecSliceStringX(&x.Tags, d) 22300 } 22301 } 22302 case "CanaryTags": 22303 if r.TryDecodeAsNil() { 22304 x.CanaryTags = nil 22305 } else { 22306 if false { 22307 } else { 22308 z.F.DecSliceStringX(&x.CanaryTags, d) 22309 } 22310 } 22311 case "Checks": 22312 if r.TryDecodeAsNil() { 22313 x.Checks = nil 22314 } else { 22315 if false { 22316 } else { 22317 h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) 22318 } 22319 } 22320 case "Connect": 22321 if r.TryDecodeAsNil() { 22322 if true && x.Connect != nil { 22323 x.Connect = nil 22324 } 22325 } else { 22326 if x.Connect == nil { 22327 x.Connect = new(ConsulConnect) 22328 } 22329 22330 x.Connect.CodecDecodeSelf(d) 22331 } 22332 case "Meta": 22333 if r.TryDecodeAsNil() { 22334 x.Meta = nil 22335 } else { 22336 if false { 22337 } else { 22338 z.F.DecMapStringStringX(&x.Meta, d) 22339 } 22340 } 22341 case "CanaryMeta": 22342 if r.TryDecodeAsNil() { 22343 x.CanaryMeta = nil 22344 } else { 22345 if false { 22346 } else { 22347 z.F.DecMapStringStringX(&x.CanaryMeta, d) 22348 } 22349 } 22350 default: 22351 z.DecStructFieldNotFound(-1, yys3) 22352 } // end switch yys3 22353 } // end for yyj3 22354 r.ReadMapEnd() 22355 } 22356 22357 func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22358 var h codecSelfer100 22359 z, r := codec1978.GenHelperDecoder(d) 22360 _, _, _ = h, z, r 22361 var yyj19 int 22362 var yyb19 bool 22363 var yyhl19 bool = l >= 0 22364 yyj19++ 22365 if yyhl19 { 22366 yyb19 = yyj19 > l 22367 } else { 22368 yyb19 = r.CheckBreak() 22369 } 22370 if yyb19 { 22371 r.ReadArrayEnd() 22372 return 22373 } 22374 r.ReadArrayElem() 22375 if r.TryDecodeAsNil() { 22376 x.Name = "" 22377 } else { 22378 x.Name = (string)(r.DecodeString()) 22379 } 22380 yyj19++ 22381 if yyhl19 { 22382 yyb19 = yyj19 > l 22383 } else { 22384 yyb19 = r.CheckBreak() 22385 } 22386 if yyb19 { 22387 r.ReadArrayEnd() 22388 return 22389 } 22390 r.ReadArrayElem() 22391 if r.TryDecodeAsNil() { 22392 x.PortLabel = "" 22393 } else { 22394 x.PortLabel = (string)(r.DecodeString()) 22395 } 22396 yyj19++ 22397 if yyhl19 { 22398 yyb19 = yyj19 > l 22399 } else { 22400 yyb19 = r.CheckBreak() 22401 } 22402 if yyb19 { 22403 r.ReadArrayEnd() 22404 return 22405 } 22406 r.ReadArrayElem() 22407 if r.TryDecodeAsNil() { 22408 x.AddressMode = "" 22409 } else { 22410 x.AddressMode = (string)(r.DecodeString()) 22411 } 22412 yyj19++ 22413 if yyhl19 { 22414 yyb19 = yyj19 > l 22415 } else { 22416 yyb19 = r.CheckBreak() 22417 } 22418 if yyb19 { 22419 r.ReadArrayEnd() 22420 return 22421 } 22422 r.ReadArrayElem() 22423 if r.TryDecodeAsNil() { 22424 x.EnableTagOverride = false 22425 } else { 22426 x.EnableTagOverride = (bool)(r.DecodeBool()) 22427 } 22428 yyj19++ 22429 if yyhl19 { 22430 yyb19 = yyj19 > l 22431 } else { 22432 yyb19 = r.CheckBreak() 22433 } 22434 if yyb19 { 22435 r.ReadArrayEnd() 22436 return 22437 } 22438 r.ReadArrayElem() 22439 if r.TryDecodeAsNil() { 22440 x.Tags = nil 22441 } else { 22442 if false { 22443 } else { 22444 z.F.DecSliceStringX(&x.Tags, d) 22445 } 22446 } 22447 yyj19++ 22448 if yyhl19 { 22449 yyb19 = yyj19 > l 22450 } else { 22451 yyb19 = r.CheckBreak() 22452 } 22453 if yyb19 { 22454 r.ReadArrayEnd() 22455 return 22456 } 22457 r.ReadArrayElem() 22458 if r.TryDecodeAsNil() { 22459 x.CanaryTags = nil 22460 } else { 22461 if false { 22462 } else { 22463 z.F.DecSliceStringX(&x.CanaryTags, d) 22464 } 22465 } 22466 yyj19++ 22467 if yyhl19 { 22468 yyb19 = yyj19 > l 22469 } else { 22470 yyb19 = r.CheckBreak() 22471 } 22472 if yyb19 { 22473 r.ReadArrayEnd() 22474 return 22475 } 22476 r.ReadArrayElem() 22477 if r.TryDecodeAsNil() { 22478 x.Checks = nil 22479 } else { 22480 if false { 22481 } else { 22482 h.decSlicePtrtoServiceCheck((*[]*ServiceCheck)(&x.Checks), d) 22483 } 22484 } 22485 yyj19++ 22486 if yyhl19 { 22487 yyb19 = yyj19 > l 22488 } else { 22489 yyb19 = r.CheckBreak() 22490 } 22491 if yyb19 { 22492 r.ReadArrayEnd() 22493 return 22494 } 22495 r.ReadArrayElem() 22496 if r.TryDecodeAsNil() { 22497 if true && x.Connect != nil { 22498 x.Connect = nil 22499 } 22500 } else { 22501 if x.Connect == nil { 22502 x.Connect = new(ConsulConnect) 22503 } 22504 22505 x.Connect.CodecDecodeSelf(d) 22506 } 22507 yyj19++ 22508 if yyhl19 { 22509 yyb19 = yyj19 > l 22510 } else { 22511 yyb19 = r.CheckBreak() 22512 } 22513 if yyb19 { 22514 r.ReadArrayEnd() 22515 return 22516 } 22517 r.ReadArrayElem() 22518 if r.TryDecodeAsNil() { 22519 x.Meta = nil 22520 } else { 22521 if false { 22522 } else { 22523 z.F.DecMapStringStringX(&x.Meta, d) 22524 } 22525 } 22526 yyj19++ 22527 if yyhl19 { 22528 yyb19 = yyj19 > l 22529 } else { 22530 yyb19 = r.CheckBreak() 22531 } 22532 if yyb19 { 22533 r.ReadArrayEnd() 22534 return 22535 } 22536 r.ReadArrayElem() 22537 if r.TryDecodeAsNil() { 22538 x.CanaryMeta = nil 22539 } else { 22540 if false { 22541 } else { 22542 z.F.DecMapStringStringX(&x.CanaryMeta, d) 22543 } 22544 } 22545 for { 22546 yyj19++ 22547 if yyhl19 { 22548 yyb19 = yyj19 > l 22549 } else { 22550 yyb19 = r.CheckBreak() 22551 } 22552 if yyb19 { 22553 break 22554 } 22555 r.ReadArrayElem() 22556 z.DecStructFieldNotFound(yyj19-1, "") 22557 } 22558 r.ReadArrayEnd() 22559 } 22560 22561 func (x *ConsulConnect) CodecEncodeSelf(e *codec1978.Encoder) { 22562 var h codecSelfer100 22563 z, r := codec1978.GenHelperEncoder(e) 22564 _, _, _ = h, z, r 22565 if x == nil { 22566 r.EncodeNil() 22567 } else { 22568 if false { 22569 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22570 z.EncExtension(x, yyxt1) 22571 } else { 22572 yysep2 := !z.EncBinary() 22573 yy2arr2 := z.EncBasicHandle().StructToArray 22574 _, _ = yysep2, yy2arr2 22575 const yyr2 bool = false // struct tag has 'toArray' 22576 if yyr2 || yy2arr2 { 22577 r.WriteArrayStart(3) 22578 } else { 22579 r.WriteMapStart(3) 22580 } 22581 if yyr2 || yy2arr2 { 22582 r.WriteArrayElem() 22583 if false { 22584 } else { 22585 r.EncodeBool(bool(x.Native)) 22586 } 22587 } else { 22588 r.WriteMapElemKey() 22589 if z.IsJSONHandle() { 22590 z.WriteStr("\"Native\"") 22591 } else { 22592 r.EncodeStringEnc(codecSelferCcUTF8100, `Native`) 22593 } 22594 r.WriteMapElemValue() 22595 if false { 22596 } else { 22597 r.EncodeBool(bool(x.Native)) 22598 } 22599 } 22600 var yyn6 bool 22601 if x.SidecarService == nil { 22602 yyn6 = true 22603 goto LABEL6 22604 } 22605 LABEL6: 22606 if yyr2 || yy2arr2 { 22607 if yyn6 { 22608 r.WriteArrayElem() 22609 r.EncodeNil() 22610 } else { 22611 r.WriteArrayElem() 22612 if x.SidecarService == nil { 22613 r.EncodeNil() 22614 } else { 22615 x.SidecarService.CodecEncodeSelf(e) 22616 } 22617 } 22618 } else { 22619 r.WriteMapElemKey() 22620 if z.IsJSONHandle() { 22621 z.WriteStr("\"SidecarService\"") 22622 } else { 22623 r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarService`) 22624 } 22625 r.WriteMapElemValue() 22626 if yyn6 { 22627 r.EncodeNil() 22628 } else { 22629 if x.SidecarService == nil { 22630 r.EncodeNil() 22631 } else { 22632 x.SidecarService.CodecEncodeSelf(e) 22633 } 22634 } 22635 } 22636 var yyn9 bool 22637 if x.SidecarTask == nil { 22638 yyn9 = true 22639 goto LABEL9 22640 } 22641 LABEL9: 22642 if yyr2 || yy2arr2 { 22643 if yyn9 { 22644 r.WriteArrayElem() 22645 r.EncodeNil() 22646 } else { 22647 r.WriteArrayElem() 22648 if x.SidecarTask == nil { 22649 r.EncodeNil() 22650 } else { 22651 x.SidecarTask.CodecEncodeSelf(e) 22652 } 22653 } 22654 } else { 22655 r.WriteMapElemKey() 22656 if z.IsJSONHandle() { 22657 z.WriteStr("\"SidecarTask\"") 22658 } else { 22659 r.EncodeStringEnc(codecSelferCcUTF8100, `SidecarTask`) 22660 } 22661 r.WriteMapElemValue() 22662 if yyn9 { 22663 r.EncodeNil() 22664 } else { 22665 if x.SidecarTask == nil { 22666 r.EncodeNil() 22667 } else { 22668 x.SidecarTask.CodecEncodeSelf(e) 22669 } 22670 } 22671 } 22672 if yyr2 || yy2arr2 { 22673 r.WriteArrayEnd() 22674 } else { 22675 r.WriteMapEnd() 22676 } 22677 } 22678 } 22679 } 22680 22681 func (x *ConsulConnect) CodecDecodeSelf(d *codec1978.Decoder) { 22682 var h codecSelfer100 22683 z, r := codec1978.GenHelperDecoder(d) 22684 _, _, _ = h, z, r 22685 if false { 22686 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22687 z.DecExtension(x, yyxt1) 22688 } else { 22689 yyct2 := r.ContainerType() 22690 if yyct2 == codecSelferValueTypeMap100 { 22691 yyl2 := r.ReadMapStart() 22692 if yyl2 == 0 { 22693 r.ReadMapEnd() 22694 } else { 22695 x.codecDecodeSelfFromMap(yyl2, d) 22696 } 22697 } else if yyct2 == codecSelferValueTypeArray100 { 22698 yyl2 := r.ReadArrayStart() 22699 if yyl2 == 0 { 22700 r.ReadArrayEnd() 22701 } else { 22702 x.codecDecodeSelfFromArray(yyl2, d) 22703 } 22704 } else { 22705 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22706 } 22707 } 22708 } 22709 22710 func (x *ConsulConnect) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22711 var h codecSelfer100 22712 z, r := codec1978.GenHelperDecoder(d) 22713 _, _, _ = h, z, r 22714 var yyhl3 bool = l >= 0 22715 for yyj3 := 0; ; yyj3++ { 22716 if yyhl3 { 22717 if yyj3 >= l { 22718 break 22719 } 22720 } else { 22721 if r.CheckBreak() { 22722 break 22723 } 22724 } 22725 r.ReadMapElemKey() 22726 yys3 := z.StringView(r.DecodeStringAsBytes()) 22727 r.ReadMapElemValue() 22728 switch yys3 { 22729 case "Native": 22730 if r.TryDecodeAsNil() { 22731 x.Native = false 22732 } else { 22733 x.Native = (bool)(r.DecodeBool()) 22734 } 22735 case "SidecarService": 22736 if r.TryDecodeAsNil() { 22737 if true && x.SidecarService != nil { 22738 x.SidecarService = nil 22739 } 22740 } else { 22741 if x.SidecarService == nil { 22742 x.SidecarService = new(ConsulSidecarService) 22743 } 22744 22745 x.SidecarService.CodecDecodeSelf(d) 22746 } 22747 case "SidecarTask": 22748 if r.TryDecodeAsNil() { 22749 if true && x.SidecarTask != nil { 22750 x.SidecarTask = nil 22751 } 22752 } else { 22753 if x.SidecarTask == nil { 22754 x.SidecarTask = new(SidecarTask) 22755 } 22756 22757 x.SidecarTask.CodecDecodeSelf(d) 22758 } 22759 default: 22760 z.DecStructFieldNotFound(-1, yys3) 22761 } // end switch yys3 22762 } // end for yyj3 22763 r.ReadMapEnd() 22764 } 22765 22766 func (x *ConsulConnect) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 22767 var h codecSelfer100 22768 z, r := codec1978.GenHelperDecoder(d) 22769 _, _, _ = h, z, r 22770 var yyj7 int 22771 var yyb7 bool 22772 var yyhl7 bool = l >= 0 22773 yyj7++ 22774 if yyhl7 { 22775 yyb7 = yyj7 > l 22776 } else { 22777 yyb7 = r.CheckBreak() 22778 } 22779 if yyb7 { 22780 r.ReadArrayEnd() 22781 return 22782 } 22783 r.ReadArrayElem() 22784 if r.TryDecodeAsNil() { 22785 x.Native = false 22786 } else { 22787 x.Native = (bool)(r.DecodeBool()) 22788 } 22789 yyj7++ 22790 if yyhl7 { 22791 yyb7 = yyj7 > l 22792 } else { 22793 yyb7 = r.CheckBreak() 22794 } 22795 if yyb7 { 22796 r.ReadArrayEnd() 22797 return 22798 } 22799 r.ReadArrayElem() 22800 if r.TryDecodeAsNil() { 22801 if true && x.SidecarService != nil { 22802 x.SidecarService = nil 22803 } 22804 } else { 22805 if x.SidecarService == nil { 22806 x.SidecarService = new(ConsulSidecarService) 22807 } 22808 22809 x.SidecarService.CodecDecodeSelf(d) 22810 } 22811 yyj7++ 22812 if yyhl7 { 22813 yyb7 = yyj7 > l 22814 } else { 22815 yyb7 = r.CheckBreak() 22816 } 22817 if yyb7 { 22818 r.ReadArrayEnd() 22819 return 22820 } 22821 r.ReadArrayElem() 22822 if r.TryDecodeAsNil() { 22823 if true && x.SidecarTask != nil { 22824 x.SidecarTask = nil 22825 } 22826 } else { 22827 if x.SidecarTask == nil { 22828 x.SidecarTask = new(SidecarTask) 22829 } 22830 22831 x.SidecarTask.CodecDecodeSelf(d) 22832 } 22833 for { 22834 yyj7++ 22835 if yyhl7 { 22836 yyb7 = yyj7 > l 22837 } else { 22838 yyb7 = r.CheckBreak() 22839 } 22840 if yyb7 { 22841 break 22842 } 22843 r.ReadArrayElem() 22844 z.DecStructFieldNotFound(yyj7-1, "") 22845 } 22846 r.ReadArrayEnd() 22847 } 22848 22849 func (x *ConsulSidecarService) CodecEncodeSelf(e *codec1978.Encoder) { 22850 var h codecSelfer100 22851 z, r := codec1978.GenHelperEncoder(e) 22852 _, _, _ = h, z, r 22853 if x == nil { 22854 r.EncodeNil() 22855 } else { 22856 if false { 22857 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22858 z.EncExtension(x, yyxt1) 22859 } else { 22860 yysep2 := !z.EncBinary() 22861 yy2arr2 := z.EncBasicHandle().StructToArray 22862 _, _ = yysep2, yy2arr2 22863 const yyr2 bool = false // struct tag has 'toArray' 22864 if yyr2 || yy2arr2 { 22865 r.WriteArrayStart(3) 22866 } else { 22867 r.WriteMapStart(3) 22868 } 22869 if yyr2 || yy2arr2 { 22870 r.WriteArrayElem() 22871 if x.Tags == nil { 22872 r.EncodeNil() 22873 } else { 22874 if false { 22875 } else { 22876 z.F.EncSliceStringV(x.Tags, e) 22877 } 22878 } 22879 } else { 22880 r.WriteMapElemKey() 22881 if z.IsJSONHandle() { 22882 z.WriteStr("\"Tags\"") 22883 } else { 22884 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 22885 } 22886 r.WriteMapElemValue() 22887 if x.Tags == nil { 22888 r.EncodeNil() 22889 } else { 22890 if false { 22891 } else { 22892 z.F.EncSliceStringV(x.Tags, e) 22893 } 22894 } 22895 } 22896 if yyr2 || yy2arr2 { 22897 r.WriteArrayElem() 22898 if false { 22899 } else { 22900 if z.EncBasicHandle().StringToRaw { 22901 r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) 22902 } else { 22903 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) 22904 } 22905 } 22906 } else { 22907 r.WriteMapElemKey() 22908 if z.IsJSONHandle() { 22909 z.WriteStr("\"Port\"") 22910 } else { 22911 r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) 22912 } 22913 r.WriteMapElemValue() 22914 if false { 22915 } else { 22916 if z.EncBasicHandle().StringToRaw { 22917 r.EncodeStringBytesRaw(z.BytesView(string(x.Port))) 22918 } else { 22919 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Port)) 22920 } 22921 } 22922 } 22923 var yyn9 bool 22924 if x.Proxy == nil { 22925 yyn9 = true 22926 goto LABEL9 22927 } 22928 LABEL9: 22929 if yyr2 || yy2arr2 { 22930 if yyn9 { 22931 r.WriteArrayElem() 22932 r.EncodeNil() 22933 } else { 22934 r.WriteArrayElem() 22935 if x.Proxy == nil { 22936 r.EncodeNil() 22937 } else { 22938 x.Proxy.CodecEncodeSelf(e) 22939 } 22940 } 22941 } else { 22942 r.WriteMapElemKey() 22943 if z.IsJSONHandle() { 22944 z.WriteStr("\"Proxy\"") 22945 } else { 22946 r.EncodeStringEnc(codecSelferCcUTF8100, `Proxy`) 22947 } 22948 r.WriteMapElemValue() 22949 if yyn9 { 22950 r.EncodeNil() 22951 } else { 22952 if x.Proxy == nil { 22953 r.EncodeNil() 22954 } else { 22955 x.Proxy.CodecEncodeSelf(e) 22956 } 22957 } 22958 } 22959 if yyr2 || yy2arr2 { 22960 r.WriteArrayEnd() 22961 } else { 22962 r.WriteMapEnd() 22963 } 22964 } 22965 } 22966 } 22967 22968 func (x *ConsulSidecarService) CodecDecodeSelf(d *codec1978.Decoder) { 22969 var h codecSelfer100 22970 z, r := codec1978.GenHelperDecoder(d) 22971 _, _, _ = h, z, r 22972 if false { 22973 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 22974 z.DecExtension(x, yyxt1) 22975 } else { 22976 yyct2 := r.ContainerType() 22977 if yyct2 == codecSelferValueTypeMap100 { 22978 yyl2 := r.ReadMapStart() 22979 if yyl2 == 0 { 22980 r.ReadMapEnd() 22981 } else { 22982 x.codecDecodeSelfFromMap(yyl2, d) 22983 } 22984 } else if yyct2 == codecSelferValueTypeArray100 { 22985 yyl2 := r.ReadArrayStart() 22986 if yyl2 == 0 { 22987 r.ReadArrayEnd() 22988 } else { 22989 x.codecDecodeSelfFromArray(yyl2, d) 22990 } 22991 } else { 22992 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 22993 } 22994 } 22995 } 22996 22997 func (x *ConsulSidecarService) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 22998 var h codecSelfer100 22999 z, r := codec1978.GenHelperDecoder(d) 23000 _, _, _ = h, z, r 23001 var yyhl3 bool = l >= 0 23002 for yyj3 := 0; ; yyj3++ { 23003 if yyhl3 { 23004 if yyj3 >= l { 23005 break 23006 } 23007 } else { 23008 if r.CheckBreak() { 23009 break 23010 } 23011 } 23012 r.ReadMapElemKey() 23013 yys3 := z.StringView(r.DecodeStringAsBytes()) 23014 r.ReadMapElemValue() 23015 switch yys3 { 23016 case "Tags": 23017 if r.TryDecodeAsNil() { 23018 x.Tags = nil 23019 } else { 23020 if false { 23021 } else { 23022 z.F.DecSliceStringX(&x.Tags, d) 23023 } 23024 } 23025 case "Port": 23026 if r.TryDecodeAsNil() { 23027 x.Port = "" 23028 } else { 23029 x.Port = (string)(r.DecodeString()) 23030 } 23031 case "Proxy": 23032 if r.TryDecodeAsNil() { 23033 if true && x.Proxy != nil { 23034 x.Proxy = nil 23035 } 23036 } else { 23037 if x.Proxy == nil { 23038 x.Proxy = new(ConsulProxy) 23039 } 23040 23041 x.Proxy.CodecDecodeSelf(d) 23042 } 23043 default: 23044 z.DecStructFieldNotFound(-1, yys3) 23045 } // end switch yys3 23046 } // end for yyj3 23047 r.ReadMapEnd() 23048 } 23049 23050 func (x *ConsulSidecarService) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23051 var h codecSelfer100 23052 z, r := codec1978.GenHelperDecoder(d) 23053 _, _, _ = h, z, r 23054 var yyj8 int 23055 var yyb8 bool 23056 var yyhl8 bool = l >= 0 23057 yyj8++ 23058 if yyhl8 { 23059 yyb8 = yyj8 > l 23060 } else { 23061 yyb8 = r.CheckBreak() 23062 } 23063 if yyb8 { 23064 r.ReadArrayEnd() 23065 return 23066 } 23067 r.ReadArrayElem() 23068 if r.TryDecodeAsNil() { 23069 x.Tags = nil 23070 } else { 23071 if false { 23072 } else { 23073 z.F.DecSliceStringX(&x.Tags, d) 23074 } 23075 } 23076 yyj8++ 23077 if yyhl8 { 23078 yyb8 = yyj8 > l 23079 } else { 23080 yyb8 = r.CheckBreak() 23081 } 23082 if yyb8 { 23083 r.ReadArrayEnd() 23084 return 23085 } 23086 r.ReadArrayElem() 23087 if r.TryDecodeAsNil() { 23088 x.Port = "" 23089 } else { 23090 x.Port = (string)(r.DecodeString()) 23091 } 23092 yyj8++ 23093 if yyhl8 { 23094 yyb8 = yyj8 > l 23095 } else { 23096 yyb8 = r.CheckBreak() 23097 } 23098 if yyb8 { 23099 r.ReadArrayEnd() 23100 return 23101 } 23102 r.ReadArrayElem() 23103 if r.TryDecodeAsNil() { 23104 if true && x.Proxy != nil { 23105 x.Proxy = nil 23106 } 23107 } else { 23108 if x.Proxy == nil { 23109 x.Proxy = new(ConsulProxy) 23110 } 23111 23112 x.Proxy.CodecDecodeSelf(d) 23113 } 23114 for { 23115 yyj8++ 23116 if yyhl8 { 23117 yyb8 = yyj8 > l 23118 } else { 23119 yyb8 = r.CheckBreak() 23120 } 23121 if yyb8 { 23122 break 23123 } 23124 r.ReadArrayElem() 23125 z.DecStructFieldNotFound(yyj8-1, "") 23126 } 23127 r.ReadArrayEnd() 23128 } 23129 23130 func (x *SidecarTask) CodecEncodeSelf(e *codec1978.Encoder) { 23131 var h codecSelfer100 23132 z, r := codec1978.GenHelperEncoder(e) 23133 _, _, _ = h, z, r 23134 if x == nil { 23135 r.EncodeNil() 23136 } else { 23137 if false { 23138 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23139 z.EncExtension(x, yyxt1) 23140 } else { 23141 yysep2 := !z.EncBinary() 23142 yy2arr2 := z.EncBasicHandle().StructToArray 23143 _, _ = yysep2, yy2arr2 23144 const yyr2 bool = false // struct tag has 'toArray' 23145 if yyr2 || yy2arr2 { 23146 r.WriteArrayStart(11) 23147 } else { 23148 r.WriteMapStart(11) 23149 } 23150 if yyr2 || yy2arr2 { 23151 r.WriteArrayElem() 23152 if false { 23153 } else { 23154 if z.EncBasicHandle().StringToRaw { 23155 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 23156 } else { 23157 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 23158 } 23159 } 23160 } else { 23161 r.WriteMapElemKey() 23162 if z.IsJSONHandle() { 23163 z.WriteStr("\"Name\"") 23164 } else { 23165 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 23166 } 23167 r.WriteMapElemValue() 23168 if false { 23169 } else { 23170 if z.EncBasicHandle().StringToRaw { 23171 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 23172 } else { 23173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 23174 } 23175 } 23176 } 23177 if yyr2 || yy2arr2 { 23178 r.WriteArrayElem() 23179 if false { 23180 } else { 23181 if z.EncBasicHandle().StringToRaw { 23182 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 23183 } else { 23184 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 23185 } 23186 } 23187 } else { 23188 r.WriteMapElemKey() 23189 if z.IsJSONHandle() { 23190 z.WriteStr("\"Driver\"") 23191 } else { 23192 r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) 23193 } 23194 r.WriteMapElemValue() 23195 if false { 23196 } else { 23197 if z.EncBasicHandle().StringToRaw { 23198 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 23199 } else { 23200 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 23201 } 23202 } 23203 } 23204 if yyr2 || yy2arr2 { 23205 r.WriteArrayElem() 23206 if false { 23207 } else { 23208 if z.EncBasicHandle().StringToRaw { 23209 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 23210 } else { 23211 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 23212 } 23213 } 23214 } else { 23215 r.WriteMapElemKey() 23216 if z.IsJSONHandle() { 23217 z.WriteStr("\"User\"") 23218 } else { 23219 r.EncodeStringEnc(codecSelferCcUTF8100, `User`) 23220 } 23221 r.WriteMapElemValue() 23222 if false { 23223 } else { 23224 if z.EncBasicHandle().StringToRaw { 23225 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 23226 } else { 23227 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 23228 } 23229 } 23230 } 23231 if yyr2 || yy2arr2 { 23232 r.WriteArrayElem() 23233 if x.Config == nil { 23234 r.EncodeNil() 23235 } else { 23236 if false { 23237 } else { 23238 z.F.EncMapStringIntfV(x.Config, e) 23239 } 23240 } 23241 } else { 23242 r.WriteMapElemKey() 23243 if z.IsJSONHandle() { 23244 z.WriteStr("\"Config\"") 23245 } else { 23246 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 23247 } 23248 r.WriteMapElemValue() 23249 if x.Config == nil { 23250 r.EncodeNil() 23251 } else { 23252 if false { 23253 } else { 23254 z.F.EncMapStringIntfV(x.Config, e) 23255 } 23256 } 23257 } 23258 if yyr2 || yy2arr2 { 23259 r.WriteArrayElem() 23260 if x.Env == nil { 23261 r.EncodeNil() 23262 } else { 23263 if false { 23264 } else { 23265 z.F.EncMapStringStringV(x.Env, e) 23266 } 23267 } 23268 } else { 23269 r.WriteMapElemKey() 23270 if z.IsJSONHandle() { 23271 z.WriteStr("\"Env\"") 23272 } else { 23273 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 23274 } 23275 r.WriteMapElemValue() 23276 if x.Env == nil { 23277 r.EncodeNil() 23278 } else { 23279 if false { 23280 } else { 23281 z.F.EncMapStringStringV(x.Env, e) 23282 } 23283 } 23284 } 23285 var yyn18 bool 23286 if x.Resources == nil { 23287 yyn18 = true 23288 goto LABEL18 23289 } 23290 LABEL18: 23291 if yyr2 || yy2arr2 { 23292 if yyn18 { 23293 r.WriteArrayElem() 23294 r.EncodeNil() 23295 } else { 23296 r.WriteArrayElem() 23297 if x.Resources == nil { 23298 r.EncodeNil() 23299 } else { 23300 x.Resources.CodecEncodeSelf(e) 23301 } 23302 } 23303 } else { 23304 r.WriteMapElemKey() 23305 if z.IsJSONHandle() { 23306 z.WriteStr("\"Resources\"") 23307 } else { 23308 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 23309 } 23310 r.WriteMapElemValue() 23311 if yyn18 { 23312 r.EncodeNil() 23313 } else { 23314 if x.Resources == nil { 23315 r.EncodeNil() 23316 } else { 23317 x.Resources.CodecEncodeSelf(e) 23318 } 23319 } 23320 } 23321 if yyr2 || yy2arr2 { 23322 r.WriteArrayElem() 23323 if x.Meta == nil { 23324 r.EncodeNil() 23325 } else { 23326 if false { 23327 } else { 23328 z.F.EncMapStringStringV(x.Meta, e) 23329 } 23330 } 23331 } else { 23332 r.WriteMapElemKey() 23333 if z.IsJSONHandle() { 23334 z.WriteStr("\"Meta\"") 23335 } else { 23336 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 23337 } 23338 r.WriteMapElemValue() 23339 if x.Meta == nil { 23340 r.EncodeNil() 23341 } else { 23342 if false { 23343 } else { 23344 z.F.EncMapStringStringV(x.Meta, e) 23345 } 23346 } 23347 } 23348 var yyn24 bool 23349 if x.KillTimeout == nil { 23350 yyn24 = true 23351 goto LABEL24 23352 } 23353 LABEL24: 23354 if yyr2 || yy2arr2 { 23355 if yyn24 { 23356 r.WriteArrayElem() 23357 r.EncodeNil() 23358 } else { 23359 r.WriteArrayElem() 23360 if x.KillTimeout == nil { 23361 r.EncodeNil() 23362 } else { 23363 yy25 := *x.KillTimeout 23364 if false { 23365 } else if yyxt26 := z.Extension(z.I2Rtid(yy25)); yyxt26 != nil { 23366 z.EncExtension(yy25, yyxt26) 23367 } else { 23368 r.EncodeInt(int64(yy25)) 23369 } 23370 } 23371 } 23372 } else { 23373 r.WriteMapElemKey() 23374 if z.IsJSONHandle() { 23375 z.WriteStr("\"KillTimeout\"") 23376 } else { 23377 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 23378 } 23379 r.WriteMapElemValue() 23380 if yyn24 { 23381 r.EncodeNil() 23382 } else { 23383 if x.KillTimeout == nil { 23384 r.EncodeNil() 23385 } else { 23386 yy27 := *x.KillTimeout 23387 if false { 23388 } else if yyxt28 := z.Extension(z.I2Rtid(yy27)); yyxt28 != nil { 23389 z.EncExtension(yy27, yyxt28) 23390 } else { 23391 r.EncodeInt(int64(yy27)) 23392 } 23393 } 23394 } 23395 } 23396 var yyn29 bool 23397 if x.LogConfig == nil { 23398 yyn29 = true 23399 goto LABEL29 23400 } 23401 LABEL29: 23402 if yyr2 || yy2arr2 { 23403 if yyn29 { 23404 r.WriteArrayElem() 23405 r.EncodeNil() 23406 } else { 23407 r.WriteArrayElem() 23408 if x.LogConfig == nil { 23409 r.EncodeNil() 23410 } else { 23411 x.LogConfig.CodecEncodeSelf(e) 23412 } 23413 } 23414 } else { 23415 r.WriteMapElemKey() 23416 if z.IsJSONHandle() { 23417 z.WriteStr("\"LogConfig\"") 23418 } else { 23419 r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) 23420 } 23421 r.WriteMapElemValue() 23422 if yyn29 { 23423 r.EncodeNil() 23424 } else { 23425 if x.LogConfig == nil { 23426 r.EncodeNil() 23427 } else { 23428 x.LogConfig.CodecEncodeSelf(e) 23429 } 23430 } 23431 } 23432 var yyn32 bool 23433 if x.ShutdownDelay == nil { 23434 yyn32 = true 23435 goto LABEL32 23436 } 23437 LABEL32: 23438 if yyr2 || yy2arr2 { 23439 if yyn32 { 23440 r.WriteArrayElem() 23441 r.EncodeNil() 23442 } else { 23443 r.WriteArrayElem() 23444 if x.ShutdownDelay == nil { 23445 r.EncodeNil() 23446 } else { 23447 yy33 := *x.ShutdownDelay 23448 if false { 23449 } else if yyxt34 := z.Extension(z.I2Rtid(yy33)); yyxt34 != nil { 23450 z.EncExtension(yy33, yyxt34) 23451 } else { 23452 r.EncodeInt(int64(yy33)) 23453 } 23454 } 23455 } 23456 } else { 23457 r.WriteMapElemKey() 23458 if z.IsJSONHandle() { 23459 z.WriteStr("\"ShutdownDelay\"") 23460 } else { 23461 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 23462 } 23463 r.WriteMapElemValue() 23464 if yyn32 { 23465 r.EncodeNil() 23466 } else { 23467 if x.ShutdownDelay == nil { 23468 r.EncodeNil() 23469 } else { 23470 yy35 := *x.ShutdownDelay 23471 if false { 23472 } else if yyxt36 := z.Extension(z.I2Rtid(yy35)); yyxt36 != nil { 23473 z.EncExtension(yy35, yyxt36) 23474 } else { 23475 r.EncodeInt(int64(yy35)) 23476 } 23477 } 23478 } 23479 } 23480 if yyr2 || yy2arr2 { 23481 r.WriteArrayElem() 23482 if false { 23483 } else { 23484 if z.EncBasicHandle().StringToRaw { 23485 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 23486 } else { 23487 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 23488 } 23489 } 23490 } else { 23491 r.WriteMapElemKey() 23492 if z.IsJSONHandle() { 23493 z.WriteStr("\"KillSignal\"") 23494 } else { 23495 r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) 23496 } 23497 r.WriteMapElemValue() 23498 if false { 23499 } else { 23500 if z.EncBasicHandle().StringToRaw { 23501 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 23502 } else { 23503 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 23504 } 23505 } 23506 } 23507 if yyr2 || yy2arr2 { 23508 r.WriteArrayEnd() 23509 } else { 23510 r.WriteMapEnd() 23511 } 23512 } 23513 } 23514 } 23515 23516 func (x *SidecarTask) CodecDecodeSelf(d *codec1978.Decoder) { 23517 var h codecSelfer100 23518 z, r := codec1978.GenHelperDecoder(d) 23519 _, _, _ = h, z, r 23520 if false { 23521 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23522 z.DecExtension(x, yyxt1) 23523 } else { 23524 yyct2 := r.ContainerType() 23525 if yyct2 == codecSelferValueTypeMap100 { 23526 yyl2 := r.ReadMapStart() 23527 if yyl2 == 0 { 23528 r.ReadMapEnd() 23529 } else { 23530 x.codecDecodeSelfFromMap(yyl2, d) 23531 } 23532 } else if yyct2 == codecSelferValueTypeArray100 { 23533 yyl2 := r.ReadArrayStart() 23534 if yyl2 == 0 { 23535 r.ReadArrayEnd() 23536 } else { 23537 x.codecDecodeSelfFromArray(yyl2, d) 23538 } 23539 } else { 23540 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 23541 } 23542 } 23543 } 23544 23545 func (x *SidecarTask) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 23546 var h codecSelfer100 23547 z, r := codec1978.GenHelperDecoder(d) 23548 _, _, _ = h, z, r 23549 var yyhl3 bool = l >= 0 23550 for yyj3 := 0; ; yyj3++ { 23551 if yyhl3 { 23552 if yyj3 >= l { 23553 break 23554 } 23555 } else { 23556 if r.CheckBreak() { 23557 break 23558 } 23559 } 23560 r.ReadMapElemKey() 23561 yys3 := z.StringView(r.DecodeStringAsBytes()) 23562 r.ReadMapElemValue() 23563 switch yys3 { 23564 case "Name": 23565 if r.TryDecodeAsNil() { 23566 x.Name = "" 23567 } else { 23568 x.Name = (string)(r.DecodeString()) 23569 } 23570 case "Driver": 23571 if r.TryDecodeAsNil() { 23572 x.Driver = "" 23573 } else { 23574 x.Driver = (string)(r.DecodeString()) 23575 } 23576 case "User": 23577 if r.TryDecodeAsNil() { 23578 x.User = "" 23579 } else { 23580 x.User = (string)(r.DecodeString()) 23581 } 23582 case "Config": 23583 if r.TryDecodeAsNil() { 23584 x.Config = nil 23585 } else { 23586 if false { 23587 } else { 23588 z.F.DecMapStringIntfX(&x.Config, d) 23589 } 23590 } 23591 case "Env": 23592 if r.TryDecodeAsNil() { 23593 x.Env = nil 23594 } else { 23595 if false { 23596 } else { 23597 z.F.DecMapStringStringX(&x.Env, d) 23598 } 23599 } 23600 case "Resources": 23601 if r.TryDecodeAsNil() { 23602 if true && x.Resources != nil { 23603 x.Resources = nil 23604 } 23605 } else { 23606 if x.Resources == nil { 23607 x.Resources = new(Resources) 23608 } 23609 23610 x.Resources.CodecDecodeSelf(d) 23611 } 23612 case "Meta": 23613 if r.TryDecodeAsNil() { 23614 x.Meta = nil 23615 } else { 23616 if false { 23617 } else { 23618 z.F.DecMapStringStringX(&x.Meta, d) 23619 } 23620 } 23621 case "KillTimeout": 23622 if r.TryDecodeAsNil() { 23623 if true && x.KillTimeout != nil { 23624 x.KillTimeout = nil 23625 } 23626 } else { 23627 if x.KillTimeout == nil { 23628 x.KillTimeout = new(time.Duration) 23629 } 23630 23631 if false { 23632 } else if yyxt15 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt15 != nil { 23633 z.DecExtension(x.KillTimeout, yyxt15) 23634 } else { 23635 *x.KillTimeout = (time.Duration)(r.DecodeInt64()) 23636 } 23637 } 23638 case "LogConfig": 23639 if r.TryDecodeAsNil() { 23640 if true && x.LogConfig != nil { 23641 x.LogConfig = nil 23642 } 23643 } else { 23644 if x.LogConfig == nil { 23645 x.LogConfig = new(LogConfig) 23646 } 23647 23648 x.LogConfig.CodecDecodeSelf(d) 23649 } 23650 case "ShutdownDelay": 23651 if r.TryDecodeAsNil() { 23652 if true && x.ShutdownDelay != nil { 23653 x.ShutdownDelay = nil 23654 } 23655 } else { 23656 if x.ShutdownDelay == nil { 23657 x.ShutdownDelay = new(time.Duration) 23658 } 23659 23660 if false { 23661 } else if yyxt18 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt18 != nil { 23662 z.DecExtension(x.ShutdownDelay, yyxt18) 23663 } else { 23664 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 23665 } 23666 } 23667 case "KillSignal": 23668 if r.TryDecodeAsNil() { 23669 x.KillSignal = "" 23670 } else { 23671 x.KillSignal = (string)(r.DecodeString()) 23672 } 23673 default: 23674 z.DecStructFieldNotFound(-1, yys3) 23675 } // end switch yys3 23676 } // end for yyj3 23677 r.ReadMapEnd() 23678 } 23679 23680 func (x *SidecarTask) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 23681 var h codecSelfer100 23682 z, r := codec1978.GenHelperDecoder(d) 23683 _, _, _ = h, z, r 23684 var yyj20 int 23685 var yyb20 bool 23686 var yyhl20 bool = l >= 0 23687 yyj20++ 23688 if yyhl20 { 23689 yyb20 = yyj20 > l 23690 } else { 23691 yyb20 = r.CheckBreak() 23692 } 23693 if yyb20 { 23694 r.ReadArrayEnd() 23695 return 23696 } 23697 r.ReadArrayElem() 23698 if r.TryDecodeAsNil() { 23699 x.Name = "" 23700 } else { 23701 x.Name = (string)(r.DecodeString()) 23702 } 23703 yyj20++ 23704 if yyhl20 { 23705 yyb20 = yyj20 > l 23706 } else { 23707 yyb20 = r.CheckBreak() 23708 } 23709 if yyb20 { 23710 r.ReadArrayEnd() 23711 return 23712 } 23713 r.ReadArrayElem() 23714 if r.TryDecodeAsNil() { 23715 x.Driver = "" 23716 } else { 23717 x.Driver = (string)(r.DecodeString()) 23718 } 23719 yyj20++ 23720 if yyhl20 { 23721 yyb20 = yyj20 > l 23722 } else { 23723 yyb20 = r.CheckBreak() 23724 } 23725 if yyb20 { 23726 r.ReadArrayEnd() 23727 return 23728 } 23729 r.ReadArrayElem() 23730 if r.TryDecodeAsNil() { 23731 x.User = "" 23732 } else { 23733 x.User = (string)(r.DecodeString()) 23734 } 23735 yyj20++ 23736 if yyhl20 { 23737 yyb20 = yyj20 > l 23738 } else { 23739 yyb20 = r.CheckBreak() 23740 } 23741 if yyb20 { 23742 r.ReadArrayEnd() 23743 return 23744 } 23745 r.ReadArrayElem() 23746 if r.TryDecodeAsNil() { 23747 x.Config = nil 23748 } else { 23749 if false { 23750 } else { 23751 z.F.DecMapStringIntfX(&x.Config, d) 23752 } 23753 } 23754 yyj20++ 23755 if yyhl20 { 23756 yyb20 = yyj20 > l 23757 } else { 23758 yyb20 = r.CheckBreak() 23759 } 23760 if yyb20 { 23761 r.ReadArrayEnd() 23762 return 23763 } 23764 r.ReadArrayElem() 23765 if r.TryDecodeAsNil() { 23766 x.Env = nil 23767 } else { 23768 if false { 23769 } else { 23770 z.F.DecMapStringStringX(&x.Env, d) 23771 } 23772 } 23773 yyj20++ 23774 if yyhl20 { 23775 yyb20 = yyj20 > l 23776 } else { 23777 yyb20 = r.CheckBreak() 23778 } 23779 if yyb20 { 23780 r.ReadArrayEnd() 23781 return 23782 } 23783 r.ReadArrayElem() 23784 if r.TryDecodeAsNil() { 23785 if true && x.Resources != nil { 23786 x.Resources = nil 23787 } 23788 } else { 23789 if x.Resources == nil { 23790 x.Resources = new(Resources) 23791 } 23792 23793 x.Resources.CodecDecodeSelf(d) 23794 } 23795 yyj20++ 23796 if yyhl20 { 23797 yyb20 = yyj20 > l 23798 } else { 23799 yyb20 = r.CheckBreak() 23800 } 23801 if yyb20 { 23802 r.ReadArrayEnd() 23803 return 23804 } 23805 r.ReadArrayElem() 23806 if r.TryDecodeAsNil() { 23807 x.Meta = nil 23808 } else { 23809 if false { 23810 } else { 23811 z.F.DecMapStringStringX(&x.Meta, d) 23812 } 23813 } 23814 yyj20++ 23815 if yyhl20 { 23816 yyb20 = yyj20 > l 23817 } else { 23818 yyb20 = r.CheckBreak() 23819 } 23820 if yyb20 { 23821 r.ReadArrayEnd() 23822 return 23823 } 23824 r.ReadArrayElem() 23825 if r.TryDecodeAsNil() { 23826 if true && x.KillTimeout != nil { 23827 x.KillTimeout = nil 23828 } 23829 } else { 23830 if x.KillTimeout == nil { 23831 x.KillTimeout = new(time.Duration) 23832 } 23833 23834 if false { 23835 } else if yyxt32 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt32 != nil { 23836 z.DecExtension(x.KillTimeout, yyxt32) 23837 } else { 23838 *x.KillTimeout = (time.Duration)(r.DecodeInt64()) 23839 } 23840 } 23841 yyj20++ 23842 if yyhl20 { 23843 yyb20 = yyj20 > l 23844 } else { 23845 yyb20 = r.CheckBreak() 23846 } 23847 if yyb20 { 23848 r.ReadArrayEnd() 23849 return 23850 } 23851 r.ReadArrayElem() 23852 if r.TryDecodeAsNil() { 23853 if true && x.LogConfig != nil { 23854 x.LogConfig = nil 23855 } 23856 } else { 23857 if x.LogConfig == nil { 23858 x.LogConfig = new(LogConfig) 23859 } 23860 23861 x.LogConfig.CodecDecodeSelf(d) 23862 } 23863 yyj20++ 23864 if yyhl20 { 23865 yyb20 = yyj20 > l 23866 } else { 23867 yyb20 = r.CheckBreak() 23868 } 23869 if yyb20 { 23870 r.ReadArrayEnd() 23871 return 23872 } 23873 r.ReadArrayElem() 23874 if r.TryDecodeAsNil() { 23875 if true && x.ShutdownDelay != nil { 23876 x.ShutdownDelay = nil 23877 } 23878 } else { 23879 if x.ShutdownDelay == nil { 23880 x.ShutdownDelay = new(time.Duration) 23881 } 23882 23883 if false { 23884 } else if yyxt35 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt35 != nil { 23885 z.DecExtension(x.ShutdownDelay, yyxt35) 23886 } else { 23887 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 23888 } 23889 } 23890 yyj20++ 23891 if yyhl20 { 23892 yyb20 = yyj20 > l 23893 } else { 23894 yyb20 = r.CheckBreak() 23895 } 23896 if yyb20 { 23897 r.ReadArrayEnd() 23898 return 23899 } 23900 r.ReadArrayElem() 23901 if r.TryDecodeAsNil() { 23902 x.KillSignal = "" 23903 } else { 23904 x.KillSignal = (string)(r.DecodeString()) 23905 } 23906 for { 23907 yyj20++ 23908 if yyhl20 { 23909 yyb20 = yyj20 > l 23910 } else { 23911 yyb20 = r.CheckBreak() 23912 } 23913 if yyb20 { 23914 break 23915 } 23916 r.ReadArrayElem() 23917 z.DecStructFieldNotFound(yyj20-1, "") 23918 } 23919 r.ReadArrayEnd() 23920 } 23921 23922 func (x *ConsulProxy) CodecEncodeSelf(e *codec1978.Encoder) { 23923 var h codecSelfer100 23924 z, r := codec1978.GenHelperEncoder(e) 23925 _, _, _ = h, z, r 23926 if x == nil { 23927 r.EncodeNil() 23928 } else { 23929 if false { 23930 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 23931 z.EncExtension(x, yyxt1) 23932 } else { 23933 yysep2 := !z.EncBinary() 23934 yy2arr2 := z.EncBasicHandle().StructToArray 23935 _, _ = yysep2, yy2arr2 23936 const yyr2 bool = false // struct tag has 'toArray' 23937 if yyr2 || yy2arr2 { 23938 r.WriteArrayStart(5) 23939 } else { 23940 r.WriteMapStart(5) 23941 } 23942 if yyr2 || yy2arr2 { 23943 r.WriteArrayElem() 23944 if false { 23945 } else { 23946 if z.EncBasicHandle().StringToRaw { 23947 r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) 23948 } else { 23949 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) 23950 } 23951 } 23952 } else { 23953 r.WriteMapElemKey() 23954 if z.IsJSONHandle() { 23955 z.WriteStr("\"LocalServiceAddress\"") 23956 } else { 23957 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServiceAddress`) 23958 } 23959 r.WriteMapElemValue() 23960 if false { 23961 } else { 23962 if z.EncBasicHandle().StringToRaw { 23963 r.EncodeStringBytesRaw(z.BytesView(string(x.LocalServiceAddress))) 23964 } else { 23965 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LocalServiceAddress)) 23966 } 23967 } 23968 } 23969 if yyr2 || yy2arr2 { 23970 r.WriteArrayElem() 23971 if false { 23972 } else { 23973 r.EncodeInt(int64(x.LocalServicePort)) 23974 } 23975 } else { 23976 r.WriteMapElemKey() 23977 if z.IsJSONHandle() { 23978 z.WriteStr("\"LocalServicePort\"") 23979 } else { 23980 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalServicePort`) 23981 } 23982 r.WriteMapElemValue() 23983 if false { 23984 } else { 23985 r.EncodeInt(int64(x.LocalServicePort)) 23986 } 23987 } 23988 if yyr2 || yy2arr2 { 23989 r.WriteArrayElem() 23990 if x.Upstreams == nil { 23991 r.EncodeNil() 23992 } else { 23993 if false { 23994 } else { 23995 h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) 23996 } 23997 } 23998 } else { 23999 r.WriteMapElemKey() 24000 if z.IsJSONHandle() { 24001 z.WriteStr("\"Upstreams\"") 24002 } else { 24003 r.EncodeStringEnc(codecSelferCcUTF8100, `Upstreams`) 24004 } 24005 r.WriteMapElemValue() 24006 if x.Upstreams == nil { 24007 r.EncodeNil() 24008 } else { 24009 if false { 24010 } else { 24011 h.encSliceConsulUpstream(([]ConsulUpstream)(x.Upstreams), e) 24012 } 24013 } 24014 } 24015 var yyn12 bool 24016 if x.Expose == nil { 24017 yyn12 = true 24018 goto LABEL12 24019 } 24020 LABEL12: 24021 if yyr2 || yy2arr2 { 24022 if yyn12 { 24023 r.WriteArrayElem() 24024 r.EncodeNil() 24025 } else { 24026 r.WriteArrayElem() 24027 if x.Expose == nil { 24028 r.EncodeNil() 24029 } else { 24030 x.Expose.CodecEncodeSelf(e) 24031 } 24032 } 24033 } else { 24034 r.WriteMapElemKey() 24035 if z.IsJSONHandle() { 24036 z.WriteStr("\"Expose\"") 24037 } else { 24038 r.EncodeStringEnc(codecSelferCcUTF8100, `Expose`) 24039 } 24040 r.WriteMapElemValue() 24041 if yyn12 { 24042 r.EncodeNil() 24043 } else { 24044 if x.Expose == nil { 24045 r.EncodeNil() 24046 } else { 24047 x.Expose.CodecEncodeSelf(e) 24048 } 24049 } 24050 } 24051 if yyr2 || yy2arr2 { 24052 r.WriteArrayElem() 24053 if x.Config == nil { 24054 r.EncodeNil() 24055 } else { 24056 if false { 24057 } else { 24058 z.F.EncMapStringIntfV(x.Config, e) 24059 } 24060 } 24061 } else { 24062 r.WriteMapElemKey() 24063 if z.IsJSONHandle() { 24064 z.WriteStr("\"Config\"") 24065 } else { 24066 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 24067 } 24068 r.WriteMapElemValue() 24069 if x.Config == nil { 24070 r.EncodeNil() 24071 } else { 24072 if false { 24073 } else { 24074 z.F.EncMapStringIntfV(x.Config, e) 24075 } 24076 } 24077 } 24078 if yyr2 || yy2arr2 { 24079 r.WriteArrayEnd() 24080 } else { 24081 r.WriteMapEnd() 24082 } 24083 } 24084 } 24085 } 24086 24087 func (x *ConsulProxy) CodecDecodeSelf(d *codec1978.Decoder) { 24088 var h codecSelfer100 24089 z, r := codec1978.GenHelperDecoder(d) 24090 _, _, _ = h, z, r 24091 if false { 24092 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24093 z.DecExtension(x, yyxt1) 24094 } else { 24095 yyct2 := r.ContainerType() 24096 if yyct2 == codecSelferValueTypeMap100 { 24097 yyl2 := r.ReadMapStart() 24098 if yyl2 == 0 { 24099 r.ReadMapEnd() 24100 } else { 24101 x.codecDecodeSelfFromMap(yyl2, d) 24102 } 24103 } else if yyct2 == codecSelferValueTypeArray100 { 24104 yyl2 := r.ReadArrayStart() 24105 if yyl2 == 0 { 24106 r.ReadArrayEnd() 24107 } else { 24108 x.codecDecodeSelfFromArray(yyl2, d) 24109 } 24110 } else { 24111 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24112 } 24113 } 24114 } 24115 24116 func (x *ConsulProxy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24117 var h codecSelfer100 24118 z, r := codec1978.GenHelperDecoder(d) 24119 _, _, _ = h, z, r 24120 var yyhl3 bool = l >= 0 24121 for yyj3 := 0; ; yyj3++ { 24122 if yyhl3 { 24123 if yyj3 >= l { 24124 break 24125 } 24126 } else { 24127 if r.CheckBreak() { 24128 break 24129 } 24130 } 24131 r.ReadMapElemKey() 24132 yys3 := z.StringView(r.DecodeStringAsBytes()) 24133 r.ReadMapElemValue() 24134 switch yys3 { 24135 case "LocalServiceAddress": 24136 if r.TryDecodeAsNil() { 24137 x.LocalServiceAddress = "" 24138 } else { 24139 x.LocalServiceAddress = (string)(r.DecodeString()) 24140 } 24141 case "LocalServicePort": 24142 if r.TryDecodeAsNil() { 24143 x.LocalServicePort = 0 24144 } else { 24145 x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24146 } 24147 case "Upstreams": 24148 if r.TryDecodeAsNil() { 24149 x.Upstreams = nil 24150 } else { 24151 if false { 24152 } else { 24153 h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) 24154 } 24155 } 24156 case "Expose": 24157 if r.TryDecodeAsNil() { 24158 if true && x.Expose != nil { 24159 x.Expose = nil 24160 } 24161 } else { 24162 if x.Expose == nil { 24163 x.Expose = new(ConsulExposeConfig) 24164 } 24165 24166 x.Expose.CodecDecodeSelf(d) 24167 } 24168 case "Config": 24169 if r.TryDecodeAsNil() { 24170 x.Config = nil 24171 } else { 24172 if false { 24173 } else { 24174 z.F.DecMapStringIntfX(&x.Config, d) 24175 } 24176 } 24177 default: 24178 z.DecStructFieldNotFound(-1, yys3) 24179 } // end switch yys3 24180 } // end for yyj3 24181 r.ReadMapEnd() 24182 } 24183 24184 func (x *ConsulProxy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24185 var h codecSelfer100 24186 z, r := codec1978.GenHelperDecoder(d) 24187 _, _, _ = h, z, r 24188 var yyj11 int 24189 var yyb11 bool 24190 var yyhl11 bool = l >= 0 24191 yyj11++ 24192 if yyhl11 { 24193 yyb11 = yyj11 > l 24194 } else { 24195 yyb11 = r.CheckBreak() 24196 } 24197 if yyb11 { 24198 r.ReadArrayEnd() 24199 return 24200 } 24201 r.ReadArrayElem() 24202 if r.TryDecodeAsNil() { 24203 x.LocalServiceAddress = "" 24204 } else { 24205 x.LocalServiceAddress = (string)(r.DecodeString()) 24206 } 24207 yyj11++ 24208 if yyhl11 { 24209 yyb11 = yyj11 > l 24210 } else { 24211 yyb11 = r.CheckBreak() 24212 } 24213 if yyb11 { 24214 r.ReadArrayEnd() 24215 return 24216 } 24217 r.ReadArrayElem() 24218 if r.TryDecodeAsNil() { 24219 x.LocalServicePort = 0 24220 } else { 24221 x.LocalServicePort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24222 } 24223 yyj11++ 24224 if yyhl11 { 24225 yyb11 = yyj11 > l 24226 } else { 24227 yyb11 = r.CheckBreak() 24228 } 24229 if yyb11 { 24230 r.ReadArrayEnd() 24231 return 24232 } 24233 r.ReadArrayElem() 24234 if r.TryDecodeAsNil() { 24235 x.Upstreams = nil 24236 } else { 24237 if false { 24238 } else { 24239 h.decSliceConsulUpstream((*[]ConsulUpstream)(&x.Upstreams), d) 24240 } 24241 } 24242 yyj11++ 24243 if yyhl11 { 24244 yyb11 = yyj11 > l 24245 } else { 24246 yyb11 = r.CheckBreak() 24247 } 24248 if yyb11 { 24249 r.ReadArrayEnd() 24250 return 24251 } 24252 r.ReadArrayElem() 24253 if r.TryDecodeAsNil() { 24254 if true && x.Expose != nil { 24255 x.Expose = nil 24256 } 24257 } else { 24258 if x.Expose == nil { 24259 x.Expose = new(ConsulExposeConfig) 24260 } 24261 24262 x.Expose.CodecDecodeSelf(d) 24263 } 24264 yyj11++ 24265 if yyhl11 { 24266 yyb11 = yyj11 > l 24267 } else { 24268 yyb11 = r.CheckBreak() 24269 } 24270 if yyb11 { 24271 r.ReadArrayEnd() 24272 return 24273 } 24274 r.ReadArrayElem() 24275 if r.TryDecodeAsNil() { 24276 x.Config = nil 24277 } else { 24278 if false { 24279 } else { 24280 z.F.DecMapStringIntfX(&x.Config, d) 24281 } 24282 } 24283 for { 24284 yyj11++ 24285 if yyhl11 { 24286 yyb11 = yyj11 > l 24287 } else { 24288 yyb11 = r.CheckBreak() 24289 } 24290 if yyb11 { 24291 break 24292 } 24293 r.ReadArrayElem() 24294 z.DecStructFieldNotFound(yyj11-1, "") 24295 } 24296 r.ReadArrayEnd() 24297 } 24298 24299 func (x *ConsulUpstream) CodecEncodeSelf(e *codec1978.Encoder) { 24300 var h codecSelfer100 24301 z, r := codec1978.GenHelperEncoder(e) 24302 _, _, _ = h, z, r 24303 if x == nil { 24304 r.EncodeNil() 24305 } else { 24306 if false { 24307 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24308 z.EncExtension(x, yyxt1) 24309 } else { 24310 yysep2 := !z.EncBinary() 24311 yy2arr2 := z.EncBasicHandle().StructToArray 24312 _, _ = yysep2, yy2arr2 24313 const yyr2 bool = false // struct tag has 'toArray' 24314 if yyr2 || yy2arr2 { 24315 r.WriteArrayStart(2) 24316 } else { 24317 r.WriteMapStart(2) 24318 } 24319 if yyr2 || yy2arr2 { 24320 r.WriteArrayElem() 24321 if false { 24322 } else { 24323 if z.EncBasicHandle().StringToRaw { 24324 r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) 24325 } else { 24326 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) 24327 } 24328 } 24329 } else { 24330 r.WriteMapElemKey() 24331 if z.IsJSONHandle() { 24332 z.WriteStr("\"DestinationName\"") 24333 } else { 24334 r.EncodeStringEnc(codecSelferCcUTF8100, `DestinationName`) 24335 } 24336 r.WriteMapElemValue() 24337 if false { 24338 } else { 24339 if z.EncBasicHandle().StringToRaw { 24340 r.EncodeStringBytesRaw(z.BytesView(string(x.DestinationName))) 24341 } else { 24342 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestinationName)) 24343 } 24344 } 24345 } 24346 if yyr2 || yy2arr2 { 24347 r.WriteArrayElem() 24348 if false { 24349 } else { 24350 r.EncodeInt(int64(x.LocalBindPort)) 24351 } 24352 } else { 24353 r.WriteMapElemKey() 24354 if z.IsJSONHandle() { 24355 z.WriteStr("\"LocalBindPort\"") 24356 } else { 24357 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalBindPort`) 24358 } 24359 r.WriteMapElemValue() 24360 if false { 24361 } else { 24362 r.EncodeInt(int64(x.LocalBindPort)) 24363 } 24364 } 24365 if yyr2 || yy2arr2 { 24366 r.WriteArrayEnd() 24367 } else { 24368 r.WriteMapEnd() 24369 } 24370 } 24371 } 24372 } 24373 24374 func (x *ConsulUpstream) CodecDecodeSelf(d *codec1978.Decoder) { 24375 var h codecSelfer100 24376 z, r := codec1978.GenHelperDecoder(d) 24377 _, _, _ = h, z, r 24378 if false { 24379 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24380 z.DecExtension(x, yyxt1) 24381 } else { 24382 yyct2 := r.ContainerType() 24383 if yyct2 == codecSelferValueTypeMap100 { 24384 yyl2 := r.ReadMapStart() 24385 if yyl2 == 0 { 24386 r.ReadMapEnd() 24387 } else { 24388 x.codecDecodeSelfFromMap(yyl2, d) 24389 } 24390 } else if yyct2 == codecSelferValueTypeArray100 { 24391 yyl2 := r.ReadArrayStart() 24392 if yyl2 == 0 { 24393 r.ReadArrayEnd() 24394 } else { 24395 x.codecDecodeSelfFromArray(yyl2, d) 24396 } 24397 } else { 24398 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24399 } 24400 } 24401 } 24402 24403 func (x *ConsulUpstream) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24404 var h codecSelfer100 24405 z, r := codec1978.GenHelperDecoder(d) 24406 _, _, _ = h, z, r 24407 var yyhl3 bool = l >= 0 24408 for yyj3 := 0; ; yyj3++ { 24409 if yyhl3 { 24410 if yyj3 >= l { 24411 break 24412 } 24413 } else { 24414 if r.CheckBreak() { 24415 break 24416 } 24417 } 24418 r.ReadMapElemKey() 24419 yys3 := z.StringView(r.DecodeStringAsBytes()) 24420 r.ReadMapElemValue() 24421 switch yys3 { 24422 case "DestinationName": 24423 if r.TryDecodeAsNil() { 24424 x.DestinationName = "" 24425 } else { 24426 x.DestinationName = (string)(r.DecodeString()) 24427 } 24428 case "LocalBindPort": 24429 if r.TryDecodeAsNil() { 24430 x.LocalBindPort = 0 24431 } else { 24432 x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24433 } 24434 default: 24435 z.DecStructFieldNotFound(-1, yys3) 24436 } // end switch yys3 24437 } // end for yyj3 24438 r.ReadMapEnd() 24439 } 24440 24441 func (x *ConsulUpstream) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24442 var h codecSelfer100 24443 z, r := codec1978.GenHelperDecoder(d) 24444 _, _, _ = h, z, r 24445 var yyj6 int 24446 var yyb6 bool 24447 var yyhl6 bool = l >= 0 24448 yyj6++ 24449 if yyhl6 { 24450 yyb6 = yyj6 > l 24451 } else { 24452 yyb6 = r.CheckBreak() 24453 } 24454 if yyb6 { 24455 r.ReadArrayEnd() 24456 return 24457 } 24458 r.ReadArrayElem() 24459 if r.TryDecodeAsNil() { 24460 x.DestinationName = "" 24461 } else { 24462 x.DestinationName = (string)(r.DecodeString()) 24463 } 24464 yyj6++ 24465 if yyhl6 { 24466 yyb6 = yyj6 > l 24467 } else { 24468 yyb6 = r.CheckBreak() 24469 } 24470 if yyb6 { 24471 r.ReadArrayEnd() 24472 return 24473 } 24474 r.ReadArrayElem() 24475 if r.TryDecodeAsNil() { 24476 x.LocalBindPort = 0 24477 } else { 24478 x.LocalBindPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24479 } 24480 for { 24481 yyj6++ 24482 if yyhl6 { 24483 yyb6 = yyj6 > l 24484 } else { 24485 yyb6 = r.CheckBreak() 24486 } 24487 if yyb6 { 24488 break 24489 } 24490 r.ReadArrayElem() 24491 z.DecStructFieldNotFound(yyj6-1, "") 24492 } 24493 r.ReadArrayEnd() 24494 } 24495 24496 func (x *ConsulExposeConfig) CodecEncodeSelf(e *codec1978.Encoder) { 24497 var h codecSelfer100 24498 z, r := codec1978.GenHelperEncoder(e) 24499 _, _, _ = h, z, r 24500 if x == nil { 24501 r.EncodeNil() 24502 } else { 24503 if false { 24504 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24505 z.EncExtension(x, yyxt1) 24506 } else { 24507 yysep2 := !z.EncBinary() 24508 yy2arr2 := z.EncBasicHandle().StructToArray 24509 _, _ = yysep2, yy2arr2 24510 const yyr2 bool = false // struct tag has 'toArray' 24511 if yyr2 || yy2arr2 { 24512 r.WriteArrayStart(1) 24513 } else { 24514 r.WriteMapStart(1) 24515 } 24516 if yyr2 || yy2arr2 { 24517 r.WriteArrayElem() 24518 if x.Paths == nil { 24519 r.EncodeNil() 24520 } else { 24521 if false { 24522 } else { 24523 h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) 24524 } 24525 } 24526 } else { 24527 r.WriteMapElemKey() 24528 if z.IsJSONHandle() { 24529 z.WriteStr("\"Paths\"") 24530 } else { 24531 r.EncodeStringEnc(codecSelferCcUTF8100, `Paths`) 24532 } 24533 r.WriteMapElemValue() 24534 if x.Paths == nil { 24535 r.EncodeNil() 24536 } else { 24537 if false { 24538 } else { 24539 h.encSliceConsulExposePath(([]ConsulExposePath)(x.Paths), e) 24540 } 24541 } 24542 } 24543 if yyr2 || yy2arr2 { 24544 r.WriteArrayEnd() 24545 } else { 24546 r.WriteMapEnd() 24547 } 24548 } 24549 } 24550 } 24551 24552 func (x *ConsulExposeConfig) CodecDecodeSelf(d *codec1978.Decoder) { 24553 var h codecSelfer100 24554 z, r := codec1978.GenHelperDecoder(d) 24555 _, _, _ = h, z, r 24556 if false { 24557 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24558 z.DecExtension(x, yyxt1) 24559 } else { 24560 yyct2 := r.ContainerType() 24561 if yyct2 == codecSelferValueTypeMap100 { 24562 yyl2 := r.ReadMapStart() 24563 if yyl2 == 0 { 24564 r.ReadMapEnd() 24565 } else { 24566 x.codecDecodeSelfFromMap(yyl2, d) 24567 } 24568 } else if yyct2 == codecSelferValueTypeArray100 { 24569 yyl2 := r.ReadArrayStart() 24570 if yyl2 == 0 { 24571 r.ReadArrayEnd() 24572 } else { 24573 x.codecDecodeSelfFromArray(yyl2, d) 24574 } 24575 } else { 24576 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24577 } 24578 } 24579 } 24580 24581 func (x *ConsulExposeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24582 var h codecSelfer100 24583 z, r := codec1978.GenHelperDecoder(d) 24584 _, _, _ = h, z, r 24585 var yyhl3 bool = l >= 0 24586 for yyj3 := 0; ; yyj3++ { 24587 if yyhl3 { 24588 if yyj3 >= l { 24589 break 24590 } 24591 } else { 24592 if r.CheckBreak() { 24593 break 24594 } 24595 } 24596 r.ReadMapElemKey() 24597 yys3 := z.StringView(r.DecodeStringAsBytes()) 24598 r.ReadMapElemValue() 24599 switch yys3 { 24600 case "Paths": 24601 if r.TryDecodeAsNil() { 24602 x.Paths = nil 24603 } else { 24604 if false { 24605 } else { 24606 h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) 24607 } 24608 } 24609 default: 24610 z.DecStructFieldNotFound(-1, yys3) 24611 } // end switch yys3 24612 } // end for yyj3 24613 r.ReadMapEnd() 24614 } 24615 24616 func (x *ConsulExposeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24617 var h codecSelfer100 24618 z, r := codec1978.GenHelperDecoder(d) 24619 _, _, _ = h, z, r 24620 var yyj6 int 24621 var yyb6 bool 24622 var yyhl6 bool = l >= 0 24623 yyj6++ 24624 if yyhl6 { 24625 yyb6 = yyj6 > l 24626 } else { 24627 yyb6 = r.CheckBreak() 24628 } 24629 if yyb6 { 24630 r.ReadArrayEnd() 24631 return 24632 } 24633 r.ReadArrayElem() 24634 if r.TryDecodeAsNil() { 24635 x.Paths = nil 24636 } else { 24637 if false { 24638 } else { 24639 h.decSliceConsulExposePath((*[]ConsulExposePath)(&x.Paths), d) 24640 } 24641 } 24642 for { 24643 yyj6++ 24644 if yyhl6 { 24645 yyb6 = yyj6 > l 24646 } else { 24647 yyb6 = r.CheckBreak() 24648 } 24649 if yyb6 { 24650 break 24651 } 24652 r.ReadArrayElem() 24653 z.DecStructFieldNotFound(yyj6-1, "") 24654 } 24655 r.ReadArrayEnd() 24656 } 24657 24658 func (x *ConsulExposePath) CodecEncodeSelf(e *codec1978.Encoder) { 24659 var h codecSelfer100 24660 z, r := codec1978.GenHelperEncoder(e) 24661 _, _, _ = h, z, r 24662 if x == nil { 24663 r.EncodeNil() 24664 } else { 24665 if false { 24666 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24667 z.EncExtension(x, yyxt1) 24668 } else { 24669 yysep2 := !z.EncBinary() 24670 yy2arr2 := z.EncBasicHandle().StructToArray 24671 _, _ = yysep2, yy2arr2 24672 const yyr2 bool = false // struct tag has 'toArray' 24673 if yyr2 || yy2arr2 { 24674 r.WriteArrayStart(4) 24675 } else { 24676 r.WriteMapStart(4) 24677 } 24678 if yyr2 || yy2arr2 { 24679 r.WriteArrayElem() 24680 if false { 24681 } else { 24682 if z.EncBasicHandle().StringToRaw { 24683 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 24684 } else { 24685 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 24686 } 24687 } 24688 } else { 24689 r.WriteMapElemKey() 24690 if z.IsJSONHandle() { 24691 z.WriteStr("\"Path\"") 24692 } else { 24693 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 24694 } 24695 r.WriteMapElemValue() 24696 if false { 24697 } else { 24698 if z.EncBasicHandle().StringToRaw { 24699 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 24700 } else { 24701 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 24702 } 24703 } 24704 } 24705 if yyr2 || yy2arr2 { 24706 r.WriteArrayElem() 24707 if false { 24708 } else { 24709 if z.EncBasicHandle().StringToRaw { 24710 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 24711 } else { 24712 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 24713 } 24714 } 24715 } else { 24716 r.WriteMapElemKey() 24717 if z.IsJSONHandle() { 24718 z.WriteStr("\"Protocol\"") 24719 } else { 24720 r.EncodeStringEnc(codecSelferCcUTF8100, `Protocol`) 24721 } 24722 r.WriteMapElemValue() 24723 if false { 24724 } else { 24725 if z.EncBasicHandle().StringToRaw { 24726 r.EncodeStringBytesRaw(z.BytesView(string(x.Protocol))) 24727 } else { 24728 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Protocol)) 24729 } 24730 } 24731 } 24732 if yyr2 || yy2arr2 { 24733 r.WriteArrayElem() 24734 if false { 24735 } else { 24736 r.EncodeInt(int64(x.LocalPathPort)) 24737 } 24738 } else { 24739 r.WriteMapElemKey() 24740 if z.IsJSONHandle() { 24741 z.WriteStr("\"LocalPathPort\"") 24742 } else { 24743 r.EncodeStringEnc(codecSelferCcUTF8100, `LocalPathPort`) 24744 } 24745 r.WriteMapElemValue() 24746 if false { 24747 } else { 24748 r.EncodeInt(int64(x.LocalPathPort)) 24749 } 24750 } 24751 if yyr2 || yy2arr2 { 24752 r.WriteArrayElem() 24753 if false { 24754 } else { 24755 if z.EncBasicHandle().StringToRaw { 24756 r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) 24757 } else { 24758 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) 24759 } 24760 } 24761 } else { 24762 r.WriteMapElemKey() 24763 if z.IsJSONHandle() { 24764 z.WriteStr("\"ListenerPort\"") 24765 } else { 24766 r.EncodeStringEnc(codecSelferCcUTF8100, `ListenerPort`) 24767 } 24768 r.WriteMapElemValue() 24769 if false { 24770 } else { 24771 if z.EncBasicHandle().StringToRaw { 24772 r.EncodeStringBytesRaw(z.BytesView(string(x.ListenerPort))) 24773 } else { 24774 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ListenerPort)) 24775 } 24776 } 24777 } 24778 if yyr2 || yy2arr2 { 24779 r.WriteArrayEnd() 24780 } else { 24781 r.WriteMapEnd() 24782 } 24783 } 24784 } 24785 } 24786 24787 func (x *ConsulExposePath) CodecDecodeSelf(d *codec1978.Decoder) { 24788 var h codecSelfer100 24789 z, r := codec1978.GenHelperDecoder(d) 24790 _, _, _ = h, z, r 24791 if false { 24792 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24793 z.DecExtension(x, yyxt1) 24794 } else { 24795 yyct2 := r.ContainerType() 24796 if yyct2 == codecSelferValueTypeMap100 { 24797 yyl2 := r.ReadMapStart() 24798 if yyl2 == 0 { 24799 r.ReadMapEnd() 24800 } else { 24801 x.codecDecodeSelfFromMap(yyl2, d) 24802 } 24803 } else if yyct2 == codecSelferValueTypeArray100 { 24804 yyl2 := r.ReadArrayStart() 24805 if yyl2 == 0 { 24806 r.ReadArrayEnd() 24807 } else { 24808 x.codecDecodeSelfFromArray(yyl2, d) 24809 } 24810 } else { 24811 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 24812 } 24813 } 24814 } 24815 24816 func (x *ConsulExposePath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 24817 var h codecSelfer100 24818 z, r := codec1978.GenHelperDecoder(d) 24819 _, _, _ = h, z, r 24820 var yyhl3 bool = l >= 0 24821 for yyj3 := 0; ; yyj3++ { 24822 if yyhl3 { 24823 if yyj3 >= l { 24824 break 24825 } 24826 } else { 24827 if r.CheckBreak() { 24828 break 24829 } 24830 } 24831 r.ReadMapElemKey() 24832 yys3 := z.StringView(r.DecodeStringAsBytes()) 24833 r.ReadMapElemValue() 24834 switch yys3 { 24835 case "Path": 24836 if r.TryDecodeAsNil() { 24837 x.Path = "" 24838 } else { 24839 x.Path = (string)(r.DecodeString()) 24840 } 24841 case "Protocol": 24842 if r.TryDecodeAsNil() { 24843 x.Protocol = "" 24844 } else { 24845 x.Protocol = (string)(r.DecodeString()) 24846 } 24847 case "LocalPathPort": 24848 if r.TryDecodeAsNil() { 24849 x.LocalPathPort = 0 24850 } else { 24851 x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24852 } 24853 case "ListenerPort": 24854 if r.TryDecodeAsNil() { 24855 x.ListenerPort = "" 24856 } else { 24857 x.ListenerPort = (string)(r.DecodeString()) 24858 } 24859 default: 24860 z.DecStructFieldNotFound(-1, yys3) 24861 } // end switch yys3 24862 } // end for yyj3 24863 r.ReadMapEnd() 24864 } 24865 24866 func (x *ConsulExposePath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 24867 var h codecSelfer100 24868 z, r := codec1978.GenHelperDecoder(d) 24869 _, _, _ = h, z, r 24870 var yyj8 int 24871 var yyb8 bool 24872 var yyhl8 bool = l >= 0 24873 yyj8++ 24874 if yyhl8 { 24875 yyb8 = yyj8 > l 24876 } else { 24877 yyb8 = r.CheckBreak() 24878 } 24879 if yyb8 { 24880 r.ReadArrayEnd() 24881 return 24882 } 24883 r.ReadArrayElem() 24884 if r.TryDecodeAsNil() { 24885 x.Path = "" 24886 } else { 24887 x.Path = (string)(r.DecodeString()) 24888 } 24889 yyj8++ 24890 if yyhl8 { 24891 yyb8 = yyj8 > l 24892 } else { 24893 yyb8 = r.CheckBreak() 24894 } 24895 if yyb8 { 24896 r.ReadArrayEnd() 24897 return 24898 } 24899 r.ReadArrayElem() 24900 if r.TryDecodeAsNil() { 24901 x.Protocol = "" 24902 } else { 24903 x.Protocol = (string)(r.DecodeString()) 24904 } 24905 yyj8++ 24906 if yyhl8 { 24907 yyb8 = yyj8 > l 24908 } else { 24909 yyb8 = r.CheckBreak() 24910 } 24911 if yyb8 { 24912 r.ReadArrayEnd() 24913 return 24914 } 24915 r.ReadArrayElem() 24916 if r.TryDecodeAsNil() { 24917 x.LocalPathPort = 0 24918 } else { 24919 x.LocalPathPort = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 24920 } 24921 yyj8++ 24922 if yyhl8 { 24923 yyb8 = yyj8 > l 24924 } else { 24925 yyb8 = r.CheckBreak() 24926 } 24927 if yyb8 { 24928 r.ReadArrayEnd() 24929 return 24930 } 24931 r.ReadArrayElem() 24932 if r.TryDecodeAsNil() { 24933 x.ListenerPort = "" 24934 } else { 24935 x.ListenerPort = (string)(r.DecodeString()) 24936 } 24937 for { 24938 yyj8++ 24939 if yyhl8 { 24940 yyb8 = yyj8 > l 24941 } else { 24942 yyb8 = r.CheckBreak() 24943 } 24944 if yyb8 { 24945 break 24946 } 24947 r.ReadArrayElem() 24948 z.DecStructFieldNotFound(yyj8-1, "") 24949 } 24950 r.ReadArrayEnd() 24951 } 24952 24953 func (x *StreamingRpcHeader) CodecEncodeSelf(e *codec1978.Encoder) { 24954 var h codecSelfer100 24955 z, r := codec1978.GenHelperEncoder(e) 24956 _, _, _ = h, z, r 24957 if x == nil { 24958 r.EncodeNil() 24959 } else { 24960 if false { 24961 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 24962 z.EncExtension(x, yyxt1) 24963 } else { 24964 yysep2 := !z.EncBinary() 24965 yy2arr2 := z.EncBasicHandle().StructToArray 24966 _, _ = yysep2, yy2arr2 24967 const yyr2 bool = false // struct tag has 'toArray' 24968 if yyr2 || yy2arr2 { 24969 r.WriteArrayStart(1) 24970 } else { 24971 r.WriteMapStart(1) 24972 } 24973 if yyr2 || yy2arr2 { 24974 r.WriteArrayElem() 24975 if false { 24976 } else { 24977 if z.EncBasicHandle().StringToRaw { 24978 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 24979 } else { 24980 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 24981 } 24982 } 24983 } else { 24984 r.WriteMapElemKey() 24985 if z.IsJSONHandle() { 24986 z.WriteStr("\"Method\"") 24987 } else { 24988 r.EncodeStringEnc(codecSelferCcUTF8100, `Method`) 24989 } 24990 r.WriteMapElemValue() 24991 if false { 24992 } else { 24993 if z.EncBasicHandle().StringToRaw { 24994 r.EncodeStringBytesRaw(z.BytesView(string(x.Method))) 24995 } else { 24996 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Method)) 24997 } 24998 } 24999 } 25000 if yyr2 || yy2arr2 { 25001 r.WriteArrayEnd() 25002 } else { 25003 r.WriteMapEnd() 25004 } 25005 } 25006 } 25007 } 25008 25009 func (x *StreamingRpcHeader) CodecDecodeSelf(d *codec1978.Decoder) { 25010 var h codecSelfer100 25011 z, r := codec1978.GenHelperDecoder(d) 25012 _, _, _ = h, z, r 25013 if false { 25014 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25015 z.DecExtension(x, yyxt1) 25016 } else { 25017 yyct2 := r.ContainerType() 25018 if yyct2 == codecSelferValueTypeMap100 { 25019 yyl2 := r.ReadMapStart() 25020 if yyl2 == 0 { 25021 r.ReadMapEnd() 25022 } else { 25023 x.codecDecodeSelfFromMap(yyl2, d) 25024 } 25025 } else if yyct2 == codecSelferValueTypeArray100 { 25026 yyl2 := r.ReadArrayStart() 25027 if yyl2 == 0 { 25028 r.ReadArrayEnd() 25029 } else { 25030 x.codecDecodeSelfFromArray(yyl2, d) 25031 } 25032 } else { 25033 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25034 } 25035 } 25036 } 25037 25038 func (x *StreamingRpcHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25039 var h codecSelfer100 25040 z, r := codec1978.GenHelperDecoder(d) 25041 _, _, _ = h, z, r 25042 var yyhl3 bool = l >= 0 25043 for yyj3 := 0; ; yyj3++ { 25044 if yyhl3 { 25045 if yyj3 >= l { 25046 break 25047 } 25048 } else { 25049 if r.CheckBreak() { 25050 break 25051 } 25052 } 25053 r.ReadMapElemKey() 25054 yys3 := z.StringView(r.DecodeStringAsBytes()) 25055 r.ReadMapElemValue() 25056 switch yys3 { 25057 case "Method": 25058 if r.TryDecodeAsNil() { 25059 x.Method = "" 25060 } else { 25061 x.Method = (string)(r.DecodeString()) 25062 } 25063 default: 25064 z.DecStructFieldNotFound(-1, yys3) 25065 } // end switch yys3 25066 } // end for yyj3 25067 r.ReadMapEnd() 25068 } 25069 25070 func (x *StreamingRpcHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25071 var h codecSelfer100 25072 z, r := codec1978.GenHelperDecoder(d) 25073 _, _, _ = h, z, r 25074 var yyj5 int 25075 var yyb5 bool 25076 var yyhl5 bool = l >= 0 25077 yyj5++ 25078 if yyhl5 { 25079 yyb5 = yyj5 > l 25080 } else { 25081 yyb5 = r.CheckBreak() 25082 } 25083 if yyb5 { 25084 r.ReadArrayEnd() 25085 return 25086 } 25087 r.ReadArrayElem() 25088 if r.TryDecodeAsNil() { 25089 x.Method = "" 25090 } else { 25091 x.Method = (string)(r.DecodeString()) 25092 } 25093 for { 25094 yyj5++ 25095 if yyhl5 { 25096 yyb5 = yyj5 > l 25097 } else { 25098 yyb5 = r.CheckBreak() 25099 } 25100 if yyb5 { 25101 break 25102 } 25103 r.ReadArrayElem() 25104 z.DecStructFieldNotFound(yyj5-1, "") 25105 } 25106 r.ReadArrayEnd() 25107 } 25108 25109 func (x *StreamingRpcAck) CodecEncodeSelf(e *codec1978.Encoder) { 25110 var h codecSelfer100 25111 z, r := codec1978.GenHelperEncoder(e) 25112 _, _, _ = h, z, r 25113 if x == nil { 25114 r.EncodeNil() 25115 } else { 25116 if false { 25117 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25118 z.EncExtension(x, yyxt1) 25119 } else { 25120 yysep2 := !z.EncBinary() 25121 yy2arr2 := z.EncBasicHandle().StructToArray 25122 _, _ = yysep2, yy2arr2 25123 const yyr2 bool = false // struct tag has 'toArray' 25124 if yyr2 || yy2arr2 { 25125 r.WriteArrayStart(1) 25126 } else { 25127 r.WriteMapStart(1) 25128 } 25129 if yyr2 || yy2arr2 { 25130 r.WriteArrayElem() 25131 if false { 25132 } else { 25133 if z.EncBasicHandle().StringToRaw { 25134 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 25135 } else { 25136 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 25137 } 25138 } 25139 } else { 25140 r.WriteMapElemKey() 25141 if z.IsJSONHandle() { 25142 z.WriteStr("\"Error\"") 25143 } else { 25144 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 25145 } 25146 r.WriteMapElemValue() 25147 if false { 25148 } else { 25149 if z.EncBasicHandle().StringToRaw { 25150 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 25151 } else { 25152 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 25153 } 25154 } 25155 } 25156 if yyr2 || yy2arr2 { 25157 r.WriteArrayEnd() 25158 } else { 25159 r.WriteMapEnd() 25160 } 25161 } 25162 } 25163 } 25164 25165 func (x *StreamingRpcAck) CodecDecodeSelf(d *codec1978.Decoder) { 25166 var h codecSelfer100 25167 z, r := codec1978.GenHelperDecoder(d) 25168 _, _, _ = h, z, r 25169 if false { 25170 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25171 z.DecExtension(x, yyxt1) 25172 } else { 25173 yyct2 := r.ContainerType() 25174 if yyct2 == codecSelferValueTypeMap100 { 25175 yyl2 := r.ReadMapStart() 25176 if yyl2 == 0 { 25177 r.ReadMapEnd() 25178 } else { 25179 x.codecDecodeSelfFromMap(yyl2, d) 25180 } 25181 } else if yyct2 == codecSelferValueTypeArray100 { 25182 yyl2 := r.ReadArrayStart() 25183 if yyl2 == 0 { 25184 r.ReadArrayEnd() 25185 } else { 25186 x.codecDecodeSelfFromArray(yyl2, d) 25187 } 25188 } else { 25189 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25190 } 25191 } 25192 } 25193 25194 func (x *StreamingRpcAck) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25195 var h codecSelfer100 25196 z, r := codec1978.GenHelperDecoder(d) 25197 _, _, _ = h, z, r 25198 var yyhl3 bool = l >= 0 25199 for yyj3 := 0; ; yyj3++ { 25200 if yyhl3 { 25201 if yyj3 >= l { 25202 break 25203 } 25204 } else { 25205 if r.CheckBreak() { 25206 break 25207 } 25208 } 25209 r.ReadMapElemKey() 25210 yys3 := z.StringView(r.DecodeStringAsBytes()) 25211 r.ReadMapElemValue() 25212 switch yys3 { 25213 case "Error": 25214 if r.TryDecodeAsNil() { 25215 x.Error = "" 25216 } else { 25217 x.Error = (string)(r.DecodeString()) 25218 } 25219 default: 25220 z.DecStructFieldNotFound(-1, yys3) 25221 } // end switch yys3 25222 } // end for yyj3 25223 r.ReadMapEnd() 25224 } 25225 25226 func (x *StreamingRpcAck) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25227 var h codecSelfer100 25228 z, r := codec1978.GenHelperDecoder(d) 25229 _, _, _ = h, z, r 25230 var yyj5 int 25231 var yyb5 bool 25232 var yyhl5 bool = l >= 0 25233 yyj5++ 25234 if yyhl5 { 25235 yyb5 = yyj5 > l 25236 } else { 25237 yyb5 = r.CheckBreak() 25238 } 25239 if yyb5 { 25240 r.ReadArrayEnd() 25241 return 25242 } 25243 r.ReadArrayElem() 25244 if r.TryDecodeAsNil() { 25245 x.Error = "" 25246 } else { 25247 x.Error = (string)(r.DecodeString()) 25248 } 25249 for { 25250 yyj5++ 25251 if yyhl5 { 25252 yyb5 = yyj5 > l 25253 } else { 25254 yyb5 = r.CheckBreak() 25255 } 25256 if yyb5 { 25257 break 25258 } 25259 r.ReadArrayElem() 25260 z.DecStructFieldNotFound(yyj5-1, "") 25261 } 25262 r.ReadArrayEnd() 25263 } 25264 25265 func (x *StreamingRpcRegistry) CodecEncodeSelf(e *codec1978.Encoder) { 25266 var h codecSelfer100 25267 z, r := codec1978.GenHelperEncoder(e) 25268 _, _, _ = h, z, r 25269 if x == nil { 25270 r.EncodeNil() 25271 } else { 25272 if false { 25273 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25274 z.EncExtension(x, yyxt1) 25275 } else { 25276 yysep2 := !z.EncBinary() 25277 yy2arr2 := z.EncBasicHandle().StructToArray 25278 _, _ = yysep2, yy2arr2 25279 const yyr2 bool = false // struct tag has 'toArray' 25280 if yyr2 || yy2arr2 { 25281 r.WriteArrayStart(0) 25282 } else { 25283 r.WriteMapStart(0) 25284 } 25285 if yyr2 || yy2arr2 { 25286 r.WriteArrayEnd() 25287 } else { 25288 r.WriteMapEnd() 25289 } 25290 } 25291 } 25292 } 25293 25294 func (x *StreamingRpcRegistry) CodecDecodeSelf(d *codec1978.Decoder) { 25295 var h codecSelfer100 25296 z, r := codec1978.GenHelperDecoder(d) 25297 _, _, _ = h, z, r 25298 if false { 25299 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25300 z.DecExtension(x, yyxt1) 25301 } else { 25302 yyct2 := r.ContainerType() 25303 if yyct2 == codecSelferValueTypeMap100 { 25304 yyl2 := r.ReadMapStart() 25305 if yyl2 == 0 { 25306 r.ReadMapEnd() 25307 } else { 25308 x.codecDecodeSelfFromMap(yyl2, d) 25309 } 25310 } else if yyct2 == codecSelferValueTypeArray100 { 25311 yyl2 := r.ReadArrayStart() 25312 if yyl2 == 0 { 25313 r.ReadArrayEnd() 25314 } else { 25315 x.codecDecodeSelfFromArray(yyl2, d) 25316 } 25317 } else { 25318 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25319 } 25320 } 25321 } 25322 25323 func (x *StreamingRpcRegistry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25324 var h codecSelfer100 25325 z, r := codec1978.GenHelperDecoder(d) 25326 _, _, _ = h, z, r 25327 var yyhl3 bool = l >= 0 25328 for yyj3 := 0; ; yyj3++ { 25329 if yyhl3 { 25330 if yyj3 >= l { 25331 break 25332 } 25333 } else { 25334 if r.CheckBreak() { 25335 break 25336 } 25337 } 25338 r.ReadMapElemKey() 25339 yys3 := z.StringView(r.DecodeStringAsBytes()) 25340 r.ReadMapElemValue() 25341 switch yys3 { 25342 default: 25343 z.DecStructFieldNotFound(-1, yys3) 25344 } // end switch yys3 25345 } // end for yyj3 25346 r.ReadMapEnd() 25347 } 25348 25349 func (x *StreamingRpcRegistry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25350 var h codecSelfer100 25351 z, r := codec1978.GenHelperDecoder(d) 25352 _, _, _ = h, z, r 25353 var yyj4 int 25354 var yyb4 bool 25355 var yyhl4 bool = l >= 0 25356 for { 25357 yyj4++ 25358 if yyhl4 { 25359 yyb4 = yyj4 > l 25360 } else { 25361 yyb4 = r.CheckBreak() 25362 } 25363 if yyb4 { 25364 break 25365 } 25366 r.ReadArrayElem() 25367 z.DecStructFieldNotFound(yyj4-1, "") 25368 } 25369 r.ReadArrayEnd() 25370 } 25371 25372 func (x MessageType) CodecEncodeSelf(e *codec1978.Encoder) { 25373 var h codecSelfer100 25374 z, r := codec1978.GenHelperEncoder(e) 25375 _, _, _ = h, z, r 25376 if false { 25377 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25378 z.EncExtension(x, yyxt1) 25379 } else { 25380 r.EncodeUint(uint64(x)) 25381 } 25382 } 25383 25384 func (x *MessageType) CodecDecodeSelf(d *codec1978.Decoder) { 25385 var h codecSelfer100 25386 z, r := codec1978.GenHelperDecoder(d) 25387 _, _, _ = h, z, r 25388 if false { 25389 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25390 z.DecExtension(x, yyxt1) 25391 } else { 25392 *x = (MessageType)(z.C.UintV(r.DecodeUint64(), 8)) 25393 } 25394 } 25395 25396 func (x Context) CodecEncodeSelf(e *codec1978.Encoder) { 25397 var h codecSelfer100 25398 z, r := codec1978.GenHelperEncoder(e) 25399 _, _, _ = h, z, r 25400 if false { 25401 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25402 z.EncExtension(x, yyxt1) 25403 } else { 25404 if z.EncBasicHandle().StringToRaw { 25405 r.EncodeStringBytesRaw(z.BytesView(string(x))) 25406 } else { 25407 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 25408 } 25409 } 25410 } 25411 25412 func (x *Context) CodecDecodeSelf(d *codec1978.Decoder) { 25413 var h codecSelfer100 25414 z, r := codec1978.GenHelperDecoder(d) 25415 _, _, _ = h, z, r 25416 if false { 25417 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25418 z.DecExtension(x, yyxt1) 25419 } else { 25420 *x = (Context)(r.DecodeString()) 25421 } 25422 } 25423 25424 func (x *NamespacedID) CodecEncodeSelf(e *codec1978.Encoder) { 25425 var h codecSelfer100 25426 z, r := codec1978.GenHelperEncoder(e) 25427 _, _, _ = h, z, r 25428 if x == nil { 25429 r.EncodeNil() 25430 } else { 25431 if false { 25432 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25433 z.EncExtension(x, yyxt1) 25434 } else { 25435 yysep2 := !z.EncBinary() 25436 yy2arr2 := z.EncBasicHandle().StructToArray 25437 _, _ = yysep2, yy2arr2 25438 const yyr2 bool = false // struct tag has 'toArray' 25439 if yyr2 || yy2arr2 { 25440 r.WriteArrayStart(2) 25441 } else { 25442 r.WriteMapStart(2) 25443 } 25444 if yyr2 || yy2arr2 { 25445 r.WriteArrayElem() 25446 if false { 25447 } else { 25448 if z.EncBasicHandle().StringToRaw { 25449 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 25450 } else { 25451 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 25452 } 25453 } 25454 } else { 25455 r.WriteMapElemKey() 25456 if z.IsJSONHandle() { 25457 z.WriteStr("\"ID\"") 25458 } else { 25459 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 25460 } 25461 r.WriteMapElemValue() 25462 if false { 25463 } else { 25464 if z.EncBasicHandle().StringToRaw { 25465 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 25466 } else { 25467 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 25468 } 25469 } 25470 } 25471 if yyr2 || yy2arr2 { 25472 r.WriteArrayElem() 25473 if false { 25474 } else { 25475 if z.EncBasicHandle().StringToRaw { 25476 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25477 } else { 25478 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25479 } 25480 } 25481 } else { 25482 r.WriteMapElemKey() 25483 if z.IsJSONHandle() { 25484 z.WriteStr("\"Namespace\"") 25485 } else { 25486 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 25487 } 25488 r.WriteMapElemValue() 25489 if false { 25490 } else { 25491 if z.EncBasicHandle().StringToRaw { 25492 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25493 } else { 25494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25495 } 25496 } 25497 } 25498 if yyr2 || yy2arr2 { 25499 r.WriteArrayEnd() 25500 } else { 25501 r.WriteMapEnd() 25502 } 25503 } 25504 } 25505 } 25506 25507 func (x *NamespacedID) CodecDecodeSelf(d *codec1978.Decoder) { 25508 var h codecSelfer100 25509 z, r := codec1978.GenHelperDecoder(d) 25510 _, _, _ = h, z, r 25511 if false { 25512 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25513 z.DecExtension(x, yyxt1) 25514 } else { 25515 yyct2 := r.ContainerType() 25516 if yyct2 == codecSelferValueTypeMap100 { 25517 yyl2 := r.ReadMapStart() 25518 if yyl2 == 0 { 25519 r.ReadMapEnd() 25520 } else { 25521 x.codecDecodeSelfFromMap(yyl2, d) 25522 } 25523 } else if yyct2 == codecSelferValueTypeArray100 { 25524 yyl2 := r.ReadArrayStart() 25525 if yyl2 == 0 { 25526 r.ReadArrayEnd() 25527 } else { 25528 x.codecDecodeSelfFromArray(yyl2, d) 25529 } 25530 } else { 25531 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25532 } 25533 } 25534 } 25535 25536 func (x *NamespacedID) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25537 var h codecSelfer100 25538 z, r := codec1978.GenHelperDecoder(d) 25539 _, _, _ = h, z, r 25540 var yyhl3 bool = l >= 0 25541 for yyj3 := 0; ; yyj3++ { 25542 if yyhl3 { 25543 if yyj3 >= l { 25544 break 25545 } 25546 } else { 25547 if r.CheckBreak() { 25548 break 25549 } 25550 } 25551 r.ReadMapElemKey() 25552 yys3 := z.StringView(r.DecodeStringAsBytes()) 25553 r.ReadMapElemValue() 25554 switch yys3 { 25555 case "ID": 25556 if r.TryDecodeAsNil() { 25557 x.ID = "" 25558 } else { 25559 x.ID = (string)(r.DecodeString()) 25560 } 25561 case "Namespace": 25562 if r.TryDecodeAsNil() { 25563 x.Namespace = "" 25564 } else { 25565 x.Namespace = (string)(r.DecodeString()) 25566 } 25567 default: 25568 z.DecStructFieldNotFound(-1, yys3) 25569 } // end switch yys3 25570 } // end for yyj3 25571 r.ReadMapEnd() 25572 } 25573 25574 func (x *NamespacedID) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25575 var h codecSelfer100 25576 z, r := codec1978.GenHelperDecoder(d) 25577 _, _, _ = h, z, r 25578 var yyj6 int 25579 var yyb6 bool 25580 var yyhl6 bool = l >= 0 25581 yyj6++ 25582 if yyhl6 { 25583 yyb6 = yyj6 > l 25584 } else { 25585 yyb6 = r.CheckBreak() 25586 } 25587 if yyb6 { 25588 r.ReadArrayEnd() 25589 return 25590 } 25591 r.ReadArrayElem() 25592 if r.TryDecodeAsNil() { 25593 x.ID = "" 25594 } else { 25595 x.ID = (string)(r.DecodeString()) 25596 } 25597 yyj6++ 25598 if yyhl6 { 25599 yyb6 = yyj6 > l 25600 } else { 25601 yyb6 = r.CheckBreak() 25602 } 25603 if yyb6 { 25604 r.ReadArrayEnd() 25605 return 25606 } 25607 r.ReadArrayElem() 25608 if r.TryDecodeAsNil() { 25609 x.Namespace = "" 25610 } else { 25611 x.Namespace = (string)(r.DecodeString()) 25612 } 25613 for { 25614 yyj6++ 25615 if yyhl6 { 25616 yyb6 = yyj6 > l 25617 } else { 25618 yyb6 = r.CheckBreak() 25619 } 25620 if yyb6 { 25621 break 25622 } 25623 r.ReadArrayElem() 25624 z.DecStructFieldNotFound(yyj6-1, "") 25625 } 25626 r.ReadArrayEnd() 25627 } 25628 25629 func (x *InternalRpcInfo) CodecEncodeSelf(e *codec1978.Encoder) { 25630 var h codecSelfer100 25631 z, r := codec1978.GenHelperEncoder(e) 25632 _, _, _ = h, z, r 25633 if x == nil { 25634 r.EncodeNil() 25635 } else { 25636 if false { 25637 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25638 z.EncExtension(x, yyxt1) 25639 } else { 25640 yysep2 := !z.EncBinary() 25641 yy2arr2 := z.EncBasicHandle().StructToArray 25642 _, _ = yysep2, yy2arr2 25643 const yyr2 bool = false // struct tag has 'toArray' 25644 if yyr2 || yy2arr2 { 25645 r.WriteArrayStart(1) 25646 } else { 25647 r.WriteMapStart(1) 25648 } 25649 if yyr2 || yy2arr2 { 25650 r.WriteArrayElem() 25651 if false { 25652 } else { 25653 r.EncodeBool(bool(x.Forwarded)) 25654 } 25655 } else { 25656 r.WriteMapElemKey() 25657 if z.IsJSONHandle() { 25658 z.WriteStr("\"Forwarded\"") 25659 } else { 25660 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 25661 } 25662 r.WriteMapElemValue() 25663 if false { 25664 } else { 25665 r.EncodeBool(bool(x.Forwarded)) 25666 } 25667 } 25668 if yyr2 || yy2arr2 { 25669 r.WriteArrayEnd() 25670 } else { 25671 r.WriteMapEnd() 25672 } 25673 } 25674 } 25675 } 25676 25677 func (x *InternalRpcInfo) CodecDecodeSelf(d *codec1978.Decoder) { 25678 var h codecSelfer100 25679 z, r := codec1978.GenHelperDecoder(d) 25680 _, _, _ = h, z, r 25681 if false { 25682 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25683 z.DecExtension(x, yyxt1) 25684 } else { 25685 yyct2 := r.ContainerType() 25686 if yyct2 == codecSelferValueTypeMap100 { 25687 yyl2 := r.ReadMapStart() 25688 if yyl2 == 0 { 25689 r.ReadMapEnd() 25690 } else { 25691 x.codecDecodeSelfFromMap(yyl2, d) 25692 } 25693 } else if yyct2 == codecSelferValueTypeArray100 { 25694 yyl2 := r.ReadArrayStart() 25695 if yyl2 == 0 { 25696 r.ReadArrayEnd() 25697 } else { 25698 x.codecDecodeSelfFromArray(yyl2, d) 25699 } 25700 } else { 25701 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 25702 } 25703 } 25704 } 25705 25706 func (x *InternalRpcInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 25707 var h codecSelfer100 25708 z, r := codec1978.GenHelperDecoder(d) 25709 _, _, _ = h, z, r 25710 var yyhl3 bool = l >= 0 25711 for yyj3 := 0; ; yyj3++ { 25712 if yyhl3 { 25713 if yyj3 >= l { 25714 break 25715 } 25716 } else { 25717 if r.CheckBreak() { 25718 break 25719 } 25720 } 25721 r.ReadMapElemKey() 25722 yys3 := z.StringView(r.DecodeStringAsBytes()) 25723 r.ReadMapElemValue() 25724 switch yys3 { 25725 case "Forwarded": 25726 if r.TryDecodeAsNil() { 25727 x.Forwarded = false 25728 } else { 25729 x.Forwarded = (bool)(r.DecodeBool()) 25730 } 25731 default: 25732 z.DecStructFieldNotFound(-1, yys3) 25733 } // end switch yys3 25734 } // end for yyj3 25735 r.ReadMapEnd() 25736 } 25737 25738 func (x *InternalRpcInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 25739 var h codecSelfer100 25740 z, r := codec1978.GenHelperDecoder(d) 25741 _, _, _ = h, z, r 25742 var yyj5 int 25743 var yyb5 bool 25744 var yyhl5 bool = l >= 0 25745 yyj5++ 25746 if yyhl5 { 25747 yyb5 = yyj5 > l 25748 } else { 25749 yyb5 = r.CheckBreak() 25750 } 25751 if yyb5 { 25752 r.ReadArrayEnd() 25753 return 25754 } 25755 r.ReadArrayElem() 25756 if r.TryDecodeAsNil() { 25757 x.Forwarded = false 25758 } else { 25759 x.Forwarded = (bool)(r.DecodeBool()) 25760 } 25761 for { 25762 yyj5++ 25763 if yyhl5 { 25764 yyb5 = yyj5 > l 25765 } else { 25766 yyb5 = r.CheckBreak() 25767 } 25768 if yyb5 { 25769 break 25770 } 25771 r.ReadArrayElem() 25772 z.DecStructFieldNotFound(yyj5-1, "") 25773 } 25774 r.ReadArrayEnd() 25775 } 25776 25777 func (x *QueryOptions) CodecEncodeSelf(e *codec1978.Encoder) { 25778 var h codecSelfer100 25779 z, r := codec1978.GenHelperEncoder(e) 25780 _, _, _ = h, z, r 25781 if x == nil { 25782 r.EncodeNil() 25783 } else { 25784 if false { 25785 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 25786 z.EncExtension(x, yyxt1) 25787 } else { 25788 yysep2 := !z.EncBinary() 25789 yy2arr2 := z.EncBasicHandle().StructToArray 25790 _, _ = yysep2, yy2arr2 25791 const yyr2 bool = false // struct tag has 'toArray' 25792 if yyr2 || yy2arr2 { 25793 r.WriteArrayStart(8) 25794 } else { 25795 r.WriteMapStart(8) 25796 } 25797 if yyr2 || yy2arr2 { 25798 r.WriteArrayElem() 25799 if false { 25800 } else { 25801 if z.EncBasicHandle().StringToRaw { 25802 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 25803 } else { 25804 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 25805 } 25806 } 25807 } else { 25808 r.WriteMapElemKey() 25809 if z.IsJSONHandle() { 25810 z.WriteStr("\"Region\"") 25811 } else { 25812 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 25813 } 25814 r.WriteMapElemValue() 25815 if false { 25816 } else { 25817 if z.EncBasicHandle().StringToRaw { 25818 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 25819 } else { 25820 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 25821 } 25822 } 25823 } 25824 if yyr2 || yy2arr2 { 25825 r.WriteArrayElem() 25826 if false { 25827 } else { 25828 if z.EncBasicHandle().StringToRaw { 25829 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25830 } else { 25831 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25832 } 25833 } 25834 } else { 25835 r.WriteMapElemKey() 25836 if z.IsJSONHandle() { 25837 z.WriteStr("\"Namespace\"") 25838 } else { 25839 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 25840 } 25841 r.WriteMapElemValue() 25842 if false { 25843 } else { 25844 if z.EncBasicHandle().StringToRaw { 25845 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 25846 } else { 25847 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 25848 } 25849 } 25850 } 25851 if yyr2 || yy2arr2 { 25852 r.WriteArrayElem() 25853 if false { 25854 } else { 25855 r.EncodeUint(uint64(x.MinQueryIndex)) 25856 } 25857 } else { 25858 r.WriteMapElemKey() 25859 if z.IsJSONHandle() { 25860 z.WriteStr("\"MinQueryIndex\"") 25861 } else { 25862 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 25863 } 25864 r.WriteMapElemValue() 25865 if false { 25866 } else { 25867 r.EncodeUint(uint64(x.MinQueryIndex)) 25868 } 25869 } 25870 if yyr2 || yy2arr2 { 25871 r.WriteArrayElem() 25872 if false { 25873 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 25874 z.EncExtension(x.MaxQueryTime, yyxt13) 25875 } else { 25876 r.EncodeInt(int64(x.MaxQueryTime)) 25877 } 25878 } else { 25879 r.WriteMapElemKey() 25880 if z.IsJSONHandle() { 25881 z.WriteStr("\"MaxQueryTime\"") 25882 } else { 25883 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 25884 } 25885 r.WriteMapElemValue() 25886 if false { 25887 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 25888 z.EncExtension(x.MaxQueryTime, yyxt14) 25889 } else { 25890 r.EncodeInt(int64(x.MaxQueryTime)) 25891 } 25892 } 25893 if yyr2 || yy2arr2 { 25894 r.WriteArrayElem() 25895 if false { 25896 } else { 25897 r.EncodeBool(bool(x.AllowStale)) 25898 } 25899 } else { 25900 r.WriteMapElemKey() 25901 if z.IsJSONHandle() { 25902 z.WriteStr("\"AllowStale\"") 25903 } else { 25904 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 25905 } 25906 r.WriteMapElemValue() 25907 if false { 25908 } else { 25909 r.EncodeBool(bool(x.AllowStale)) 25910 } 25911 } 25912 if yyr2 || yy2arr2 { 25913 r.WriteArrayElem() 25914 if false { 25915 } else { 25916 if z.EncBasicHandle().StringToRaw { 25917 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 25918 } else { 25919 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 25920 } 25921 } 25922 } else { 25923 r.WriteMapElemKey() 25924 if z.IsJSONHandle() { 25925 z.WriteStr("\"Prefix\"") 25926 } else { 25927 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 25928 } 25929 r.WriteMapElemValue() 25930 if false { 25931 } else { 25932 if z.EncBasicHandle().StringToRaw { 25933 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 25934 } else { 25935 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 25936 } 25937 } 25938 } 25939 if yyr2 || yy2arr2 { 25940 r.WriteArrayElem() 25941 if false { 25942 } else { 25943 if z.EncBasicHandle().StringToRaw { 25944 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 25945 } else { 25946 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 25947 } 25948 } 25949 } else { 25950 r.WriteMapElemKey() 25951 if z.IsJSONHandle() { 25952 z.WriteStr("\"AuthToken\"") 25953 } else { 25954 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 25955 } 25956 r.WriteMapElemValue() 25957 if false { 25958 } else { 25959 if z.EncBasicHandle().StringToRaw { 25960 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 25961 } else { 25962 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 25963 } 25964 } 25965 } 25966 if yyr2 || yy2arr2 { 25967 r.WriteArrayElem() 25968 if false { 25969 } else { 25970 r.EncodeBool(bool(x.Forwarded)) 25971 } 25972 } else { 25973 r.WriteMapElemKey() 25974 if z.IsJSONHandle() { 25975 z.WriteStr("\"Forwarded\"") 25976 } else { 25977 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 25978 } 25979 r.WriteMapElemValue() 25980 if false { 25981 } else { 25982 r.EncodeBool(bool(x.Forwarded)) 25983 } 25984 } 25985 if yyr2 || yy2arr2 { 25986 r.WriteArrayEnd() 25987 } else { 25988 r.WriteMapEnd() 25989 } 25990 } 25991 } 25992 } 25993 25994 func (x *QueryOptions) CodecDecodeSelf(d *codec1978.Decoder) { 25995 var h codecSelfer100 25996 z, r := codec1978.GenHelperDecoder(d) 25997 _, _, _ = h, z, r 25998 if false { 25999 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26000 z.DecExtension(x, yyxt1) 26001 } else { 26002 yyct2 := r.ContainerType() 26003 if yyct2 == codecSelferValueTypeMap100 { 26004 yyl2 := r.ReadMapStart() 26005 if yyl2 == 0 { 26006 r.ReadMapEnd() 26007 } else { 26008 x.codecDecodeSelfFromMap(yyl2, d) 26009 } 26010 } else if yyct2 == codecSelferValueTypeArray100 { 26011 yyl2 := r.ReadArrayStart() 26012 if yyl2 == 0 { 26013 r.ReadArrayEnd() 26014 } else { 26015 x.codecDecodeSelfFromArray(yyl2, d) 26016 } 26017 } else { 26018 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 26019 } 26020 } 26021 } 26022 26023 func (x *QueryOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 26024 var h codecSelfer100 26025 z, r := codec1978.GenHelperDecoder(d) 26026 _, _, _ = h, z, r 26027 var yyhl3 bool = l >= 0 26028 for yyj3 := 0; ; yyj3++ { 26029 if yyhl3 { 26030 if yyj3 >= l { 26031 break 26032 } 26033 } else { 26034 if r.CheckBreak() { 26035 break 26036 } 26037 } 26038 r.ReadMapElemKey() 26039 yys3 := z.StringView(r.DecodeStringAsBytes()) 26040 r.ReadMapElemValue() 26041 switch yys3 { 26042 case "Region": 26043 if r.TryDecodeAsNil() { 26044 x.Region = "" 26045 } else { 26046 x.Region = (string)(r.DecodeString()) 26047 } 26048 case "Namespace": 26049 if r.TryDecodeAsNil() { 26050 x.Namespace = "" 26051 } else { 26052 x.Namespace = (string)(r.DecodeString()) 26053 } 26054 case "MinQueryIndex": 26055 if r.TryDecodeAsNil() { 26056 x.MinQueryIndex = 0 26057 } else { 26058 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 26059 } 26060 case "MaxQueryTime": 26061 if r.TryDecodeAsNil() { 26062 x.MaxQueryTime = 0 26063 } else { 26064 if false { 26065 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 26066 z.DecExtension(x.MaxQueryTime, yyxt8) 26067 } else { 26068 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 26069 } 26070 } 26071 case "AllowStale": 26072 if r.TryDecodeAsNil() { 26073 x.AllowStale = false 26074 } else { 26075 x.AllowStale = (bool)(r.DecodeBool()) 26076 } 26077 case "Prefix": 26078 if r.TryDecodeAsNil() { 26079 x.Prefix = "" 26080 } else { 26081 x.Prefix = (string)(r.DecodeString()) 26082 } 26083 case "AuthToken": 26084 if r.TryDecodeAsNil() { 26085 x.AuthToken = "" 26086 } else { 26087 x.AuthToken = (string)(r.DecodeString()) 26088 } 26089 case "Forwarded": 26090 if r.TryDecodeAsNil() { 26091 x.InternalRpcInfo.Forwarded = false 26092 } else { 26093 x.Forwarded = (bool)(r.DecodeBool()) 26094 } 26095 default: 26096 z.DecStructFieldNotFound(-1, yys3) 26097 } // end switch yys3 26098 } // end for yyj3 26099 r.ReadMapEnd() 26100 } 26101 26102 func (x *QueryOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 26103 var h codecSelfer100 26104 z, r := codec1978.GenHelperDecoder(d) 26105 _, _, _ = h, z, r 26106 var yyj13 int 26107 var yyb13 bool 26108 var yyhl13 bool = l >= 0 26109 yyj13++ 26110 if yyhl13 { 26111 yyb13 = yyj13 > l 26112 } else { 26113 yyb13 = r.CheckBreak() 26114 } 26115 if yyb13 { 26116 r.ReadArrayEnd() 26117 return 26118 } 26119 r.ReadArrayElem() 26120 if r.TryDecodeAsNil() { 26121 x.Region = "" 26122 } else { 26123 x.Region = (string)(r.DecodeString()) 26124 } 26125 yyj13++ 26126 if yyhl13 { 26127 yyb13 = yyj13 > l 26128 } else { 26129 yyb13 = r.CheckBreak() 26130 } 26131 if yyb13 { 26132 r.ReadArrayEnd() 26133 return 26134 } 26135 r.ReadArrayElem() 26136 if r.TryDecodeAsNil() { 26137 x.Namespace = "" 26138 } else { 26139 x.Namespace = (string)(r.DecodeString()) 26140 } 26141 yyj13++ 26142 if yyhl13 { 26143 yyb13 = yyj13 > l 26144 } else { 26145 yyb13 = r.CheckBreak() 26146 } 26147 if yyb13 { 26148 r.ReadArrayEnd() 26149 return 26150 } 26151 r.ReadArrayElem() 26152 if r.TryDecodeAsNil() { 26153 x.MinQueryIndex = 0 26154 } else { 26155 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 26156 } 26157 yyj13++ 26158 if yyhl13 { 26159 yyb13 = yyj13 > l 26160 } else { 26161 yyb13 = r.CheckBreak() 26162 } 26163 if yyb13 { 26164 r.ReadArrayEnd() 26165 return 26166 } 26167 r.ReadArrayElem() 26168 if r.TryDecodeAsNil() { 26169 x.MaxQueryTime = 0 26170 } else { 26171 if false { 26172 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 26173 z.DecExtension(x.MaxQueryTime, yyxt18) 26174 } else { 26175 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 26176 } 26177 } 26178 yyj13++ 26179 if yyhl13 { 26180 yyb13 = yyj13 > l 26181 } else { 26182 yyb13 = r.CheckBreak() 26183 } 26184 if yyb13 { 26185 r.ReadArrayEnd() 26186 return 26187 } 26188 r.ReadArrayElem() 26189 if r.TryDecodeAsNil() { 26190 x.AllowStale = false 26191 } else { 26192 x.AllowStale = (bool)(r.DecodeBool()) 26193 } 26194 yyj13++ 26195 if yyhl13 { 26196 yyb13 = yyj13 > l 26197 } else { 26198 yyb13 = r.CheckBreak() 26199 } 26200 if yyb13 { 26201 r.ReadArrayEnd() 26202 return 26203 } 26204 r.ReadArrayElem() 26205 if r.TryDecodeAsNil() { 26206 x.Prefix = "" 26207 } else { 26208 x.Prefix = (string)(r.DecodeString()) 26209 } 26210 yyj13++ 26211 if yyhl13 { 26212 yyb13 = yyj13 > l 26213 } else { 26214 yyb13 = r.CheckBreak() 26215 } 26216 if yyb13 { 26217 r.ReadArrayEnd() 26218 return 26219 } 26220 r.ReadArrayElem() 26221 if r.TryDecodeAsNil() { 26222 x.AuthToken = "" 26223 } else { 26224 x.AuthToken = (string)(r.DecodeString()) 26225 } 26226 yyj13++ 26227 if yyhl13 { 26228 yyb13 = yyj13 > l 26229 } else { 26230 yyb13 = r.CheckBreak() 26231 } 26232 if yyb13 { 26233 r.ReadArrayEnd() 26234 return 26235 } 26236 r.ReadArrayElem() 26237 if r.TryDecodeAsNil() { 26238 x.InternalRpcInfo.Forwarded = false 26239 } else { 26240 x.Forwarded = (bool)(r.DecodeBool()) 26241 } 26242 for { 26243 yyj13++ 26244 if yyhl13 { 26245 yyb13 = yyj13 > l 26246 } else { 26247 yyb13 = r.CheckBreak() 26248 } 26249 if yyb13 { 26250 break 26251 } 26252 r.ReadArrayElem() 26253 z.DecStructFieldNotFound(yyj13-1, "") 26254 } 26255 r.ReadArrayEnd() 26256 } 26257 26258 func (x *AgentPprofRequest) CodecEncodeSelf(e *codec1978.Encoder) { 26259 var h codecSelfer100 26260 z, r := codec1978.GenHelperEncoder(e) 26261 _, _, _ = h, z, r 26262 if x == nil { 26263 r.EncodeNil() 26264 } else { 26265 if false { 26266 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26267 z.EncExtension(x, yyxt1) 26268 } else { 26269 yysep2 := !z.EncBinary() 26270 yy2arr2 := z.EncBasicHandle().StructToArray 26271 _, _ = yysep2, yy2arr2 26272 const yyr2 bool = false // struct tag has 'toArray' 26273 if yyr2 || yy2arr2 { 26274 r.WriteArrayStart(15) 26275 } else { 26276 r.WriteMapStart(15) 26277 } 26278 if yyr2 || yy2arr2 { 26279 r.WriteArrayElem() 26280 if false { 26281 } else if yyxt4 := z.Extension(z.I2Rtid(x.ReqType)); yyxt4 != nil { 26282 z.EncExtension(x.ReqType, yyxt4) 26283 } else { 26284 if z.EncBasicHandle().StringToRaw { 26285 r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) 26286 } else { 26287 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) 26288 } 26289 } 26290 } else { 26291 r.WriteMapElemKey() 26292 if z.IsJSONHandle() { 26293 z.WriteStr("\"ReqType\"") 26294 } else { 26295 r.EncodeStringEnc(codecSelferCcUTF8100, `ReqType`) 26296 } 26297 r.WriteMapElemValue() 26298 if false { 26299 } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { 26300 z.EncExtension(x.ReqType, yyxt5) 26301 } else { 26302 if z.EncBasicHandle().StringToRaw { 26303 r.EncodeStringBytesRaw(z.BytesView(string(x.ReqType))) 26304 } else { 26305 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReqType)) 26306 } 26307 } 26308 } 26309 if yyr2 || yy2arr2 { 26310 r.WriteArrayElem() 26311 if false { 26312 } else { 26313 if z.EncBasicHandle().StringToRaw { 26314 r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) 26315 } else { 26316 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) 26317 } 26318 } 26319 } else { 26320 r.WriteMapElemKey() 26321 if z.IsJSONHandle() { 26322 z.WriteStr("\"Profile\"") 26323 } else { 26324 r.EncodeStringEnc(codecSelferCcUTF8100, `Profile`) 26325 } 26326 r.WriteMapElemValue() 26327 if false { 26328 } else { 26329 if z.EncBasicHandle().StringToRaw { 26330 r.EncodeStringBytesRaw(z.BytesView(string(x.Profile))) 26331 } else { 26332 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Profile)) 26333 } 26334 } 26335 } 26336 if yyr2 || yy2arr2 { 26337 r.WriteArrayElem() 26338 if false { 26339 } else { 26340 r.EncodeInt(int64(x.Seconds)) 26341 } 26342 } else { 26343 r.WriteMapElemKey() 26344 if z.IsJSONHandle() { 26345 z.WriteStr("\"Seconds\"") 26346 } else { 26347 r.EncodeStringEnc(codecSelferCcUTF8100, `Seconds`) 26348 } 26349 r.WriteMapElemValue() 26350 if false { 26351 } else { 26352 r.EncodeInt(int64(x.Seconds)) 26353 } 26354 } 26355 if yyr2 || yy2arr2 { 26356 r.WriteArrayElem() 26357 if false { 26358 } else { 26359 r.EncodeInt(int64(x.Debug)) 26360 } 26361 } else { 26362 r.WriteMapElemKey() 26363 if z.IsJSONHandle() { 26364 z.WriteStr("\"Debug\"") 26365 } else { 26366 r.EncodeStringEnc(codecSelferCcUTF8100, `Debug`) 26367 } 26368 r.WriteMapElemValue() 26369 if false { 26370 } else { 26371 r.EncodeInt(int64(x.Debug)) 26372 } 26373 } 26374 if yyr2 || yy2arr2 { 26375 r.WriteArrayElem() 26376 if false { 26377 } else { 26378 r.EncodeInt(int64(x.GC)) 26379 } 26380 } else { 26381 r.WriteMapElemKey() 26382 if z.IsJSONHandle() { 26383 z.WriteStr("\"GC\"") 26384 } else { 26385 r.EncodeStringEnc(codecSelferCcUTF8100, `GC`) 26386 } 26387 r.WriteMapElemValue() 26388 if false { 26389 } else { 26390 r.EncodeInt(int64(x.GC)) 26391 } 26392 } 26393 if yyr2 || yy2arr2 { 26394 r.WriteArrayElem() 26395 if false { 26396 } else { 26397 if z.EncBasicHandle().StringToRaw { 26398 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 26399 } else { 26400 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 26401 } 26402 } 26403 } else { 26404 r.WriteMapElemKey() 26405 if z.IsJSONHandle() { 26406 z.WriteStr("\"NodeID\"") 26407 } else { 26408 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 26409 } 26410 r.WriteMapElemValue() 26411 if false { 26412 } else { 26413 if z.EncBasicHandle().StringToRaw { 26414 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 26415 } else { 26416 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 26417 } 26418 } 26419 } 26420 if yyr2 || yy2arr2 { 26421 r.WriteArrayElem() 26422 if false { 26423 } else { 26424 if z.EncBasicHandle().StringToRaw { 26425 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) 26426 } else { 26427 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) 26428 } 26429 } 26430 } else { 26431 r.WriteMapElemKey() 26432 if z.IsJSONHandle() { 26433 z.WriteStr("\"ServerID\"") 26434 } else { 26435 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerID`) 26436 } 26437 r.WriteMapElemValue() 26438 if false { 26439 } else { 26440 if z.EncBasicHandle().StringToRaw { 26441 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerID))) 26442 } else { 26443 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerID)) 26444 } 26445 } 26446 } 26447 if yyr2 || yy2arr2 { 26448 r.WriteArrayElem() 26449 if false { 26450 } else { 26451 if z.EncBasicHandle().StringToRaw { 26452 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26453 } else { 26454 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26455 } 26456 } 26457 } else { 26458 r.WriteMapElemKey() 26459 if z.IsJSONHandle() { 26460 z.WriteStr("\"Region\"") 26461 } else { 26462 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 26463 } 26464 r.WriteMapElemValue() 26465 if false { 26466 } else { 26467 if z.EncBasicHandle().StringToRaw { 26468 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 26469 } else { 26470 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 26471 } 26472 } 26473 } 26474 if yyr2 || yy2arr2 { 26475 r.WriteArrayElem() 26476 if false { 26477 } else { 26478 if z.EncBasicHandle().StringToRaw { 26479 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26480 } else { 26481 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26482 } 26483 } 26484 } else { 26485 r.WriteMapElemKey() 26486 if z.IsJSONHandle() { 26487 z.WriteStr("\"Namespace\"") 26488 } else { 26489 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 26490 } 26491 r.WriteMapElemValue() 26492 if false { 26493 } else { 26494 if z.EncBasicHandle().StringToRaw { 26495 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 26496 } else { 26497 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 26498 } 26499 } 26500 } 26501 if yyr2 || yy2arr2 { 26502 r.WriteArrayElem() 26503 if false { 26504 } else { 26505 r.EncodeUint(uint64(x.MinQueryIndex)) 26506 } 26507 } else { 26508 r.WriteMapElemKey() 26509 if z.IsJSONHandle() { 26510 z.WriteStr("\"MinQueryIndex\"") 26511 } else { 26512 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 26513 } 26514 r.WriteMapElemValue() 26515 if false { 26516 } else { 26517 r.EncodeUint(uint64(x.MinQueryIndex)) 26518 } 26519 } 26520 if yyr2 || yy2arr2 { 26521 r.WriteArrayElem() 26522 if false { 26523 } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { 26524 z.EncExtension(x.MaxQueryTime, yyxt34) 26525 } else { 26526 r.EncodeInt(int64(x.MaxQueryTime)) 26527 } 26528 } else { 26529 r.WriteMapElemKey() 26530 if z.IsJSONHandle() { 26531 z.WriteStr("\"MaxQueryTime\"") 26532 } else { 26533 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 26534 } 26535 r.WriteMapElemValue() 26536 if false { 26537 } else if yyxt35 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt35 != nil { 26538 z.EncExtension(x.MaxQueryTime, yyxt35) 26539 } else { 26540 r.EncodeInt(int64(x.MaxQueryTime)) 26541 } 26542 } 26543 if yyr2 || yy2arr2 { 26544 r.WriteArrayElem() 26545 if false { 26546 } else { 26547 r.EncodeBool(bool(x.AllowStale)) 26548 } 26549 } else { 26550 r.WriteMapElemKey() 26551 if z.IsJSONHandle() { 26552 z.WriteStr("\"AllowStale\"") 26553 } else { 26554 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 26555 } 26556 r.WriteMapElemValue() 26557 if false { 26558 } else { 26559 r.EncodeBool(bool(x.AllowStale)) 26560 } 26561 } 26562 if yyr2 || yy2arr2 { 26563 r.WriteArrayElem() 26564 if false { 26565 } else { 26566 if z.EncBasicHandle().StringToRaw { 26567 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 26568 } else { 26569 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 26570 } 26571 } 26572 } else { 26573 r.WriteMapElemKey() 26574 if z.IsJSONHandle() { 26575 z.WriteStr("\"Prefix\"") 26576 } else { 26577 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 26578 } 26579 r.WriteMapElemValue() 26580 if false { 26581 } else { 26582 if z.EncBasicHandle().StringToRaw { 26583 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 26584 } else { 26585 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 26586 } 26587 } 26588 } 26589 if yyr2 || yy2arr2 { 26590 r.WriteArrayElem() 26591 if false { 26592 } else { 26593 if z.EncBasicHandle().StringToRaw { 26594 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26595 } else { 26596 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26597 } 26598 } 26599 } else { 26600 r.WriteMapElemKey() 26601 if z.IsJSONHandle() { 26602 z.WriteStr("\"AuthToken\"") 26603 } else { 26604 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 26605 } 26606 r.WriteMapElemValue() 26607 if false { 26608 } else { 26609 if z.EncBasicHandle().StringToRaw { 26610 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 26611 } else { 26612 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 26613 } 26614 } 26615 } 26616 if yyr2 || yy2arr2 { 26617 r.WriteArrayElem() 26618 if false { 26619 } else { 26620 r.EncodeBool(bool(x.Forwarded)) 26621 } 26622 } else { 26623 r.WriteMapElemKey() 26624 if z.IsJSONHandle() { 26625 z.WriteStr("\"Forwarded\"") 26626 } else { 26627 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 26628 } 26629 r.WriteMapElemValue() 26630 if false { 26631 } else { 26632 r.EncodeBool(bool(x.Forwarded)) 26633 } 26634 } 26635 if yyr2 || yy2arr2 { 26636 r.WriteArrayEnd() 26637 } else { 26638 r.WriteMapEnd() 26639 } 26640 } 26641 } 26642 } 26643 26644 func (x *AgentPprofRequest) CodecDecodeSelf(d *codec1978.Decoder) { 26645 var h codecSelfer100 26646 z, r := codec1978.GenHelperDecoder(d) 26647 _, _, _ = h, z, r 26648 if false { 26649 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 26650 z.DecExtension(x, yyxt1) 26651 } else { 26652 yyct2 := r.ContainerType() 26653 if yyct2 == codecSelferValueTypeMap100 { 26654 yyl2 := r.ReadMapStart() 26655 if yyl2 == 0 { 26656 r.ReadMapEnd() 26657 } else { 26658 x.codecDecodeSelfFromMap(yyl2, d) 26659 } 26660 } else if yyct2 == codecSelferValueTypeArray100 { 26661 yyl2 := r.ReadArrayStart() 26662 if yyl2 == 0 { 26663 r.ReadArrayEnd() 26664 } else { 26665 x.codecDecodeSelfFromArray(yyl2, d) 26666 } 26667 } else { 26668 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 26669 } 26670 } 26671 } 26672 26673 func (x *AgentPprofRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 26674 var h codecSelfer100 26675 z, r := codec1978.GenHelperDecoder(d) 26676 _, _, _ = h, z, r 26677 var yyhl3 bool = l >= 0 26678 for yyj3 := 0; ; yyj3++ { 26679 if yyhl3 { 26680 if yyj3 >= l { 26681 break 26682 } 26683 } else { 26684 if r.CheckBreak() { 26685 break 26686 } 26687 } 26688 r.ReadMapElemKey() 26689 yys3 := z.StringView(r.DecodeStringAsBytes()) 26690 r.ReadMapElemValue() 26691 switch yys3 { 26692 case "ReqType": 26693 if r.TryDecodeAsNil() { 26694 x.ReqType = "" 26695 } else { 26696 if false { 26697 } else if yyxt5 := z.Extension(z.I2Rtid(x.ReqType)); yyxt5 != nil { 26698 z.DecExtension(x.ReqType, yyxt5) 26699 } else { 26700 x.ReqType = (pkg3_pprof.ReqType)(r.DecodeString()) 26701 } 26702 } 26703 case "Profile": 26704 if r.TryDecodeAsNil() { 26705 x.Profile = "" 26706 } else { 26707 x.Profile = (string)(r.DecodeString()) 26708 } 26709 case "Seconds": 26710 if r.TryDecodeAsNil() { 26711 x.Seconds = 0 26712 } else { 26713 x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26714 } 26715 case "Debug": 26716 if r.TryDecodeAsNil() { 26717 x.Debug = 0 26718 } else { 26719 x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26720 } 26721 case "GC": 26722 if r.TryDecodeAsNil() { 26723 x.GC = 0 26724 } else { 26725 x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26726 } 26727 case "NodeID": 26728 if r.TryDecodeAsNil() { 26729 x.NodeID = "" 26730 } else { 26731 x.NodeID = (string)(r.DecodeString()) 26732 } 26733 case "ServerID": 26734 if r.TryDecodeAsNil() { 26735 x.ServerID = "" 26736 } else { 26737 x.ServerID = (string)(r.DecodeString()) 26738 } 26739 case "Region": 26740 if r.TryDecodeAsNil() { 26741 x.QueryOptions.Region = "" 26742 } else { 26743 x.Region = (string)(r.DecodeString()) 26744 } 26745 case "Namespace": 26746 if r.TryDecodeAsNil() { 26747 x.QueryOptions.Namespace = "" 26748 } else { 26749 x.Namespace = (string)(r.DecodeString()) 26750 } 26751 case "MinQueryIndex": 26752 if r.TryDecodeAsNil() { 26753 x.QueryOptions.MinQueryIndex = 0 26754 } else { 26755 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 26756 } 26757 case "MaxQueryTime": 26758 if r.TryDecodeAsNil() { 26759 x.QueryOptions.MaxQueryTime = 0 26760 } else { 26761 if false { 26762 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 26763 z.DecExtension(x.MaxQueryTime, yyxt16) 26764 } else { 26765 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 26766 } 26767 } 26768 case "AllowStale": 26769 if r.TryDecodeAsNil() { 26770 x.QueryOptions.AllowStale = false 26771 } else { 26772 x.AllowStale = (bool)(r.DecodeBool()) 26773 } 26774 case "Prefix": 26775 if r.TryDecodeAsNil() { 26776 x.QueryOptions.Prefix = "" 26777 } else { 26778 x.Prefix = (string)(r.DecodeString()) 26779 } 26780 case "AuthToken": 26781 if r.TryDecodeAsNil() { 26782 x.QueryOptions.AuthToken = "" 26783 } else { 26784 x.AuthToken = (string)(r.DecodeString()) 26785 } 26786 case "Forwarded": 26787 if r.TryDecodeAsNil() { 26788 x.QueryOptions.InternalRpcInfo.Forwarded = false 26789 } else { 26790 x.Forwarded = (bool)(r.DecodeBool()) 26791 } 26792 default: 26793 z.DecStructFieldNotFound(-1, yys3) 26794 } // end switch yys3 26795 } // end for yyj3 26796 r.ReadMapEnd() 26797 } 26798 26799 func (x *AgentPprofRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 26800 var h codecSelfer100 26801 z, r := codec1978.GenHelperDecoder(d) 26802 _, _, _ = h, z, r 26803 var yyj21 int 26804 var yyb21 bool 26805 var yyhl21 bool = l >= 0 26806 yyj21++ 26807 if yyhl21 { 26808 yyb21 = yyj21 > l 26809 } else { 26810 yyb21 = r.CheckBreak() 26811 } 26812 if yyb21 { 26813 r.ReadArrayEnd() 26814 return 26815 } 26816 r.ReadArrayElem() 26817 if r.TryDecodeAsNil() { 26818 x.ReqType = "" 26819 } else { 26820 if false { 26821 } else if yyxt23 := z.Extension(z.I2Rtid(x.ReqType)); yyxt23 != nil { 26822 z.DecExtension(x.ReqType, yyxt23) 26823 } else { 26824 x.ReqType = (pkg3_pprof.ReqType)(r.DecodeString()) 26825 } 26826 } 26827 yyj21++ 26828 if yyhl21 { 26829 yyb21 = yyj21 > l 26830 } else { 26831 yyb21 = r.CheckBreak() 26832 } 26833 if yyb21 { 26834 r.ReadArrayEnd() 26835 return 26836 } 26837 r.ReadArrayElem() 26838 if r.TryDecodeAsNil() { 26839 x.Profile = "" 26840 } else { 26841 x.Profile = (string)(r.DecodeString()) 26842 } 26843 yyj21++ 26844 if yyhl21 { 26845 yyb21 = yyj21 > l 26846 } else { 26847 yyb21 = r.CheckBreak() 26848 } 26849 if yyb21 { 26850 r.ReadArrayEnd() 26851 return 26852 } 26853 r.ReadArrayElem() 26854 if r.TryDecodeAsNil() { 26855 x.Seconds = 0 26856 } else { 26857 x.Seconds = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26858 } 26859 yyj21++ 26860 if yyhl21 { 26861 yyb21 = yyj21 > l 26862 } else { 26863 yyb21 = r.CheckBreak() 26864 } 26865 if yyb21 { 26866 r.ReadArrayEnd() 26867 return 26868 } 26869 r.ReadArrayElem() 26870 if r.TryDecodeAsNil() { 26871 x.Debug = 0 26872 } else { 26873 x.Debug = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26874 } 26875 yyj21++ 26876 if yyhl21 { 26877 yyb21 = yyj21 > l 26878 } else { 26879 yyb21 = r.CheckBreak() 26880 } 26881 if yyb21 { 26882 r.ReadArrayEnd() 26883 return 26884 } 26885 r.ReadArrayElem() 26886 if r.TryDecodeAsNil() { 26887 x.GC = 0 26888 } else { 26889 x.GC = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 26890 } 26891 yyj21++ 26892 if yyhl21 { 26893 yyb21 = yyj21 > l 26894 } else { 26895 yyb21 = r.CheckBreak() 26896 } 26897 if yyb21 { 26898 r.ReadArrayEnd() 26899 return 26900 } 26901 r.ReadArrayElem() 26902 if r.TryDecodeAsNil() { 26903 x.NodeID = "" 26904 } else { 26905 x.NodeID = (string)(r.DecodeString()) 26906 } 26907 yyj21++ 26908 if yyhl21 { 26909 yyb21 = yyj21 > l 26910 } else { 26911 yyb21 = r.CheckBreak() 26912 } 26913 if yyb21 { 26914 r.ReadArrayEnd() 26915 return 26916 } 26917 r.ReadArrayElem() 26918 if r.TryDecodeAsNil() { 26919 x.ServerID = "" 26920 } else { 26921 x.ServerID = (string)(r.DecodeString()) 26922 } 26923 yyj21++ 26924 if yyhl21 { 26925 yyb21 = yyj21 > l 26926 } else { 26927 yyb21 = r.CheckBreak() 26928 } 26929 if yyb21 { 26930 r.ReadArrayEnd() 26931 return 26932 } 26933 r.ReadArrayElem() 26934 if r.TryDecodeAsNil() { 26935 x.QueryOptions.Region = "" 26936 } else { 26937 x.Region = (string)(r.DecodeString()) 26938 } 26939 yyj21++ 26940 if yyhl21 { 26941 yyb21 = yyj21 > l 26942 } else { 26943 yyb21 = r.CheckBreak() 26944 } 26945 if yyb21 { 26946 r.ReadArrayEnd() 26947 return 26948 } 26949 r.ReadArrayElem() 26950 if r.TryDecodeAsNil() { 26951 x.QueryOptions.Namespace = "" 26952 } else { 26953 x.Namespace = (string)(r.DecodeString()) 26954 } 26955 yyj21++ 26956 if yyhl21 { 26957 yyb21 = yyj21 > l 26958 } else { 26959 yyb21 = r.CheckBreak() 26960 } 26961 if yyb21 { 26962 r.ReadArrayEnd() 26963 return 26964 } 26965 r.ReadArrayElem() 26966 if r.TryDecodeAsNil() { 26967 x.QueryOptions.MinQueryIndex = 0 26968 } else { 26969 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 26970 } 26971 yyj21++ 26972 if yyhl21 { 26973 yyb21 = yyj21 > l 26974 } else { 26975 yyb21 = r.CheckBreak() 26976 } 26977 if yyb21 { 26978 r.ReadArrayEnd() 26979 return 26980 } 26981 r.ReadArrayElem() 26982 if r.TryDecodeAsNil() { 26983 x.QueryOptions.MaxQueryTime = 0 26984 } else { 26985 if false { 26986 } else if yyxt34 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt34 != nil { 26987 z.DecExtension(x.MaxQueryTime, yyxt34) 26988 } else { 26989 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 26990 } 26991 } 26992 yyj21++ 26993 if yyhl21 { 26994 yyb21 = yyj21 > l 26995 } else { 26996 yyb21 = r.CheckBreak() 26997 } 26998 if yyb21 { 26999 r.ReadArrayEnd() 27000 return 27001 } 27002 r.ReadArrayElem() 27003 if r.TryDecodeAsNil() { 27004 x.QueryOptions.AllowStale = false 27005 } else { 27006 x.AllowStale = (bool)(r.DecodeBool()) 27007 } 27008 yyj21++ 27009 if yyhl21 { 27010 yyb21 = yyj21 > l 27011 } else { 27012 yyb21 = r.CheckBreak() 27013 } 27014 if yyb21 { 27015 r.ReadArrayEnd() 27016 return 27017 } 27018 r.ReadArrayElem() 27019 if r.TryDecodeAsNil() { 27020 x.QueryOptions.Prefix = "" 27021 } else { 27022 x.Prefix = (string)(r.DecodeString()) 27023 } 27024 yyj21++ 27025 if yyhl21 { 27026 yyb21 = yyj21 > l 27027 } else { 27028 yyb21 = r.CheckBreak() 27029 } 27030 if yyb21 { 27031 r.ReadArrayEnd() 27032 return 27033 } 27034 r.ReadArrayElem() 27035 if r.TryDecodeAsNil() { 27036 x.QueryOptions.AuthToken = "" 27037 } else { 27038 x.AuthToken = (string)(r.DecodeString()) 27039 } 27040 yyj21++ 27041 if yyhl21 { 27042 yyb21 = yyj21 > l 27043 } else { 27044 yyb21 = r.CheckBreak() 27045 } 27046 if yyb21 { 27047 r.ReadArrayEnd() 27048 return 27049 } 27050 r.ReadArrayElem() 27051 if r.TryDecodeAsNil() { 27052 x.QueryOptions.InternalRpcInfo.Forwarded = false 27053 } else { 27054 x.Forwarded = (bool)(r.DecodeBool()) 27055 } 27056 for { 27057 yyj21++ 27058 if yyhl21 { 27059 yyb21 = yyj21 > l 27060 } else { 27061 yyb21 = r.CheckBreak() 27062 } 27063 if yyb21 { 27064 break 27065 } 27066 r.ReadArrayElem() 27067 z.DecStructFieldNotFound(yyj21-1, "") 27068 } 27069 r.ReadArrayEnd() 27070 } 27071 27072 func (x *AgentPprofResponse) CodecEncodeSelf(e *codec1978.Encoder) { 27073 var h codecSelfer100 27074 z, r := codec1978.GenHelperEncoder(e) 27075 _, _, _ = h, z, r 27076 if x == nil { 27077 r.EncodeNil() 27078 } else { 27079 if false { 27080 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27081 z.EncExtension(x, yyxt1) 27082 } else { 27083 yysep2 := !z.EncBinary() 27084 yy2arr2 := z.EncBasicHandle().StructToArray 27085 _, _ = yysep2, yy2arr2 27086 const yyr2 bool = false // struct tag has 'toArray' 27087 if yyr2 || yy2arr2 { 27088 r.WriteArrayStart(3) 27089 } else { 27090 r.WriteMapStart(3) 27091 } 27092 if yyr2 || yy2arr2 { 27093 r.WriteArrayElem() 27094 if false { 27095 } else { 27096 if z.EncBasicHandle().StringToRaw { 27097 r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) 27098 } else { 27099 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) 27100 } 27101 } 27102 } else { 27103 r.WriteMapElemKey() 27104 if z.IsJSONHandle() { 27105 z.WriteStr("\"AgentID\"") 27106 } else { 27107 r.EncodeStringEnc(codecSelferCcUTF8100, `AgentID`) 27108 } 27109 r.WriteMapElemValue() 27110 if false { 27111 } else { 27112 if z.EncBasicHandle().StringToRaw { 27113 r.EncodeStringBytesRaw(z.BytesView(string(x.AgentID))) 27114 } else { 27115 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AgentID)) 27116 } 27117 } 27118 } 27119 if yyr2 || yy2arr2 { 27120 r.WriteArrayElem() 27121 if x.Payload == nil { 27122 r.EncodeNil() 27123 } else { 27124 if false { 27125 } else { 27126 r.EncodeStringBytesRaw([]byte(x.Payload)) 27127 } 27128 } 27129 } else { 27130 r.WriteMapElemKey() 27131 if z.IsJSONHandle() { 27132 z.WriteStr("\"Payload\"") 27133 } else { 27134 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 27135 } 27136 r.WriteMapElemValue() 27137 if x.Payload == nil { 27138 r.EncodeNil() 27139 } else { 27140 if false { 27141 } else { 27142 r.EncodeStringBytesRaw([]byte(x.Payload)) 27143 } 27144 } 27145 } 27146 if yyr2 || yy2arr2 { 27147 r.WriteArrayElem() 27148 if x.HTTPHeaders == nil { 27149 r.EncodeNil() 27150 } else { 27151 if false { 27152 } else { 27153 z.F.EncMapStringStringV(x.HTTPHeaders, e) 27154 } 27155 } 27156 } else { 27157 r.WriteMapElemKey() 27158 if z.IsJSONHandle() { 27159 z.WriteStr("\"HTTPHeaders\"") 27160 } else { 27161 r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPHeaders`) 27162 } 27163 r.WriteMapElemValue() 27164 if x.HTTPHeaders == nil { 27165 r.EncodeNil() 27166 } else { 27167 if false { 27168 } else { 27169 z.F.EncMapStringStringV(x.HTTPHeaders, e) 27170 } 27171 } 27172 } 27173 if yyr2 || yy2arr2 { 27174 r.WriteArrayEnd() 27175 } else { 27176 r.WriteMapEnd() 27177 } 27178 } 27179 } 27180 } 27181 27182 func (x *AgentPprofResponse) CodecDecodeSelf(d *codec1978.Decoder) { 27183 var h codecSelfer100 27184 z, r := codec1978.GenHelperDecoder(d) 27185 _, _, _ = h, z, r 27186 if false { 27187 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27188 z.DecExtension(x, yyxt1) 27189 } else { 27190 yyct2 := r.ContainerType() 27191 if yyct2 == codecSelferValueTypeMap100 { 27192 yyl2 := r.ReadMapStart() 27193 if yyl2 == 0 { 27194 r.ReadMapEnd() 27195 } else { 27196 x.codecDecodeSelfFromMap(yyl2, d) 27197 } 27198 } else if yyct2 == codecSelferValueTypeArray100 { 27199 yyl2 := r.ReadArrayStart() 27200 if yyl2 == 0 { 27201 r.ReadArrayEnd() 27202 } else { 27203 x.codecDecodeSelfFromArray(yyl2, d) 27204 } 27205 } else { 27206 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27207 } 27208 } 27209 } 27210 27211 func (x *AgentPprofResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27212 var h codecSelfer100 27213 z, r := codec1978.GenHelperDecoder(d) 27214 _, _, _ = h, z, r 27215 var yyhl3 bool = l >= 0 27216 for yyj3 := 0; ; yyj3++ { 27217 if yyhl3 { 27218 if yyj3 >= l { 27219 break 27220 } 27221 } else { 27222 if r.CheckBreak() { 27223 break 27224 } 27225 } 27226 r.ReadMapElemKey() 27227 yys3 := z.StringView(r.DecodeStringAsBytes()) 27228 r.ReadMapElemValue() 27229 switch yys3 { 27230 case "AgentID": 27231 if r.TryDecodeAsNil() { 27232 x.AgentID = "" 27233 } else { 27234 x.AgentID = (string)(r.DecodeString()) 27235 } 27236 case "Payload": 27237 if r.TryDecodeAsNil() { 27238 x.Payload = nil 27239 } else { 27240 if false { 27241 } else { 27242 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 27243 } 27244 } 27245 case "HTTPHeaders": 27246 if r.TryDecodeAsNil() { 27247 x.HTTPHeaders = nil 27248 } else { 27249 if false { 27250 } else { 27251 z.F.DecMapStringStringX(&x.HTTPHeaders, d) 27252 } 27253 } 27254 default: 27255 z.DecStructFieldNotFound(-1, yys3) 27256 } // end switch yys3 27257 } // end for yyj3 27258 r.ReadMapEnd() 27259 } 27260 27261 func (x *AgentPprofResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27262 var h codecSelfer100 27263 z, r := codec1978.GenHelperDecoder(d) 27264 _, _, _ = h, z, r 27265 var yyj9 int 27266 var yyb9 bool 27267 var yyhl9 bool = l >= 0 27268 yyj9++ 27269 if yyhl9 { 27270 yyb9 = yyj9 > l 27271 } else { 27272 yyb9 = r.CheckBreak() 27273 } 27274 if yyb9 { 27275 r.ReadArrayEnd() 27276 return 27277 } 27278 r.ReadArrayElem() 27279 if r.TryDecodeAsNil() { 27280 x.AgentID = "" 27281 } else { 27282 x.AgentID = (string)(r.DecodeString()) 27283 } 27284 yyj9++ 27285 if yyhl9 { 27286 yyb9 = yyj9 > l 27287 } else { 27288 yyb9 = r.CheckBreak() 27289 } 27290 if yyb9 { 27291 r.ReadArrayEnd() 27292 return 27293 } 27294 r.ReadArrayElem() 27295 if r.TryDecodeAsNil() { 27296 x.Payload = nil 27297 } else { 27298 if false { 27299 } else { 27300 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 27301 } 27302 } 27303 yyj9++ 27304 if yyhl9 { 27305 yyb9 = yyj9 > l 27306 } else { 27307 yyb9 = r.CheckBreak() 27308 } 27309 if yyb9 { 27310 r.ReadArrayEnd() 27311 return 27312 } 27313 r.ReadArrayElem() 27314 if r.TryDecodeAsNil() { 27315 x.HTTPHeaders = nil 27316 } else { 27317 if false { 27318 } else { 27319 z.F.DecMapStringStringX(&x.HTTPHeaders, d) 27320 } 27321 } 27322 for { 27323 yyj9++ 27324 if yyhl9 { 27325 yyb9 = yyj9 > l 27326 } else { 27327 yyb9 = r.CheckBreak() 27328 } 27329 if yyb9 { 27330 break 27331 } 27332 r.ReadArrayElem() 27333 z.DecStructFieldNotFound(yyj9-1, "") 27334 } 27335 r.ReadArrayEnd() 27336 } 27337 27338 func (x *WriteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 27339 var h codecSelfer100 27340 z, r := codec1978.GenHelperEncoder(e) 27341 _, _, _ = h, z, r 27342 if x == nil { 27343 r.EncodeNil() 27344 } else { 27345 if false { 27346 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27347 z.EncExtension(x, yyxt1) 27348 } else { 27349 yysep2 := !z.EncBinary() 27350 yy2arr2 := z.EncBasicHandle().StructToArray 27351 _, _ = yysep2, yy2arr2 27352 const yyr2 bool = false // struct tag has 'toArray' 27353 if yyr2 || yy2arr2 { 27354 r.WriteArrayStart(4) 27355 } else { 27356 r.WriteMapStart(4) 27357 } 27358 if yyr2 || yy2arr2 { 27359 r.WriteArrayElem() 27360 if false { 27361 } else { 27362 if z.EncBasicHandle().StringToRaw { 27363 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27364 } else { 27365 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27366 } 27367 } 27368 } else { 27369 r.WriteMapElemKey() 27370 if z.IsJSONHandle() { 27371 z.WriteStr("\"Region\"") 27372 } else { 27373 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 27374 } 27375 r.WriteMapElemValue() 27376 if false { 27377 } else { 27378 if z.EncBasicHandle().StringToRaw { 27379 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 27380 } else { 27381 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 27382 } 27383 } 27384 } 27385 if yyr2 || yy2arr2 { 27386 r.WriteArrayElem() 27387 if false { 27388 } else { 27389 if z.EncBasicHandle().StringToRaw { 27390 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27391 } else { 27392 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27393 } 27394 } 27395 } else { 27396 r.WriteMapElemKey() 27397 if z.IsJSONHandle() { 27398 z.WriteStr("\"Namespace\"") 27399 } else { 27400 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 27401 } 27402 r.WriteMapElemValue() 27403 if false { 27404 } else { 27405 if z.EncBasicHandle().StringToRaw { 27406 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 27407 } else { 27408 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 27409 } 27410 } 27411 } 27412 if yyr2 || yy2arr2 { 27413 r.WriteArrayElem() 27414 if false { 27415 } else { 27416 if z.EncBasicHandle().StringToRaw { 27417 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 27418 } else { 27419 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 27420 } 27421 } 27422 } else { 27423 r.WriteMapElemKey() 27424 if z.IsJSONHandle() { 27425 z.WriteStr("\"AuthToken\"") 27426 } else { 27427 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 27428 } 27429 r.WriteMapElemValue() 27430 if false { 27431 } else { 27432 if z.EncBasicHandle().StringToRaw { 27433 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 27434 } else { 27435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 27436 } 27437 } 27438 } 27439 if yyr2 || yy2arr2 { 27440 r.WriteArrayElem() 27441 if false { 27442 } else { 27443 r.EncodeBool(bool(x.Forwarded)) 27444 } 27445 } else { 27446 r.WriteMapElemKey() 27447 if z.IsJSONHandle() { 27448 z.WriteStr("\"Forwarded\"") 27449 } else { 27450 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 27451 } 27452 r.WriteMapElemValue() 27453 if false { 27454 } else { 27455 r.EncodeBool(bool(x.Forwarded)) 27456 } 27457 } 27458 if yyr2 || yy2arr2 { 27459 r.WriteArrayEnd() 27460 } else { 27461 r.WriteMapEnd() 27462 } 27463 } 27464 } 27465 } 27466 27467 func (x *WriteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 27468 var h codecSelfer100 27469 z, r := codec1978.GenHelperDecoder(d) 27470 _, _, _ = h, z, r 27471 if false { 27472 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27473 z.DecExtension(x, yyxt1) 27474 } else { 27475 yyct2 := r.ContainerType() 27476 if yyct2 == codecSelferValueTypeMap100 { 27477 yyl2 := r.ReadMapStart() 27478 if yyl2 == 0 { 27479 r.ReadMapEnd() 27480 } else { 27481 x.codecDecodeSelfFromMap(yyl2, d) 27482 } 27483 } else if yyct2 == codecSelferValueTypeArray100 { 27484 yyl2 := r.ReadArrayStart() 27485 if yyl2 == 0 { 27486 r.ReadArrayEnd() 27487 } else { 27488 x.codecDecodeSelfFromArray(yyl2, d) 27489 } 27490 } else { 27491 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27492 } 27493 } 27494 } 27495 27496 func (x *WriteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27497 var h codecSelfer100 27498 z, r := codec1978.GenHelperDecoder(d) 27499 _, _, _ = h, z, r 27500 var yyhl3 bool = l >= 0 27501 for yyj3 := 0; ; yyj3++ { 27502 if yyhl3 { 27503 if yyj3 >= l { 27504 break 27505 } 27506 } else { 27507 if r.CheckBreak() { 27508 break 27509 } 27510 } 27511 r.ReadMapElemKey() 27512 yys3 := z.StringView(r.DecodeStringAsBytes()) 27513 r.ReadMapElemValue() 27514 switch yys3 { 27515 case "Region": 27516 if r.TryDecodeAsNil() { 27517 x.Region = "" 27518 } else { 27519 x.Region = (string)(r.DecodeString()) 27520 } 27521 case "Namespace": 27522 if r.TryDecodeAsNil() { 27523 x.Namespace = "" 27524 } else { 27525 x.Namespace = (string)(r.DecodeString()) 27526 } 27527 case "AuthToken": 27528 if r.TryDecodeAsNil() { 27529 x.AuthToken = "" 27530 } else { 27531 x.AuthToken = (string)(r.DecodeString()) 27532 } 27533 case "Forwarded": 27534 if r.TryDecodeAsNil() { 27535 x.InternalRpcInfo.Forwarded = false 27536 } else { 27537 x.Forwarded = (bool)(r.DecodeBool()) 27538 } 27539 default: 27540 z.DecStructFieldNotFound(-1, yys3) 27541 } // end switch yys3 27542 } // end for yyj3 27543 r.ReadMapEnd() 27544 } 27545 27546 func (x *WriteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27547 var h codecSelfer100 27548 z, r := codec1978.GenHelperDecoder(d) 27549 _, _, _ = h, z, r 27550 var yyj8 int 27551 var yyb8 bool 27552 var yyhl8 bool = l >= 0 27553 yyj8++ 27554 if yyhl8 { 27555 yyb8 = yyj8 > l 27556 } else { 27557 yyb8 = r.CheckBreak() 27558 } 27559 if yyb8 { 27560 r.ReadArrayEnd() 27561 return 27562 } 27563 r.ReadArrayElem() 27564 if r.TryDecodeAsNil() { 27565 x.Region = "" 27566 } else { 27567 x.Region = (string)(r.DecodeString()) 27568 } 27569 yyj8++ 27570 if yyhl8 { 27571 yyb8 = yyj8 > l 27572 } else { 27573 yyb8 = r.CheckBreak() 27574 } 27575 if yyb8 { 27576 r.ReadArrayEnd() 27577 return 27578 } 27579 r.ReadArrayElem() 27580 if r.TryDecodeAsNil() { 27581 x.Namespace = "" 27582 } else { 27583 x.Namespace = (string)(r.DecodeString()) 27584 } 27585 yyj8++ 27586 if yyhl8 { 27587 yyb8 = yyj8 > l 27588 } else { 27589 yyb8 = r.CheckBreak() 27590 } 27591 if yyb8 { 27592 r.ReadArrayEnd() 27593 return 27594 } 27595 r.ReadArrayElem() 27596 if r.TryDecodeAsNil() { 27597 x.AuthToken = "" 27598 } else { 27599 x.AuthToken = (string)(r.DecodeString()) 27600 } 27601 yyj8++ 27602 if yyhl8 { 27603 yyb8 = yyj8 > l 27604 } else { 27605 yyb8 = r.CheckBreak() 27606 } 27607 if yyb8 { 27608 r.ReadArrayEnd() 27609 return 27610 } 27611 r.ReadArrayElem() 27612 if r.TryDecodeAsNil() { 27613 x.InternalRpcInfo.Forwarded = false 27614 } else { 27615 x.Forwarded = (bool)(r.DecodeBool()) 27616 } 27617 for { 27618 yyj8++ 27619 if yyhl8 { 27620 yyb8 = yyj8 > l 27621 } else { 27622 yyb8 = r.CheckBreak() 27623 } 27624 if yyb8 { 27625 break 27626 } 27627 r.ReadArrayElem() 27628 z.DecStructFieldNotFound(yyj8-1, "") 27629 } 27630 r.ReadArrayEnd() 27631 } 27632 27633 func (x *QueryMeta) CodecEncodeSelf(e *codec1978.Encoder) { 27634 var h codecSelfer100 27635 z, r := codec1978.GenHelperEncoder(e) 27636 _, _, _ = h, z, r 27637 if x == nil { 27638 r.EncodeNil() 27639 } else { 27640 if false { 27641 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27642 z.EncExtension(x, yyxt1) 27643 } else { 27644 yysep2 := !z.EncBinary() 27645 yy2arr2 := z.EncBasicHandle().StructToArray 27646 _, _ = yysep2, yy2arr2 27647 const yyr2 bool = false // struct tag has 'toArray' 27648 if yyr2 || yy2arr2 { 27649 r.WriteArrayStart(3) 27650 } else { 27651 r.WriteMapStart(3) 27652 } 27653 if yyr2 || yy2arr2 { 27654 r.WriteArrayElem() 27655 if false { 27656 } else { 27657 r.EncodeUint(uint64(x.Index)) 27658 } 27659 } else { 27660 r.WriteMapElemKey() 27661 if z.IsJSONHandle() { 27662 z.WriteStr("\"Index\"") 27663 } else { 27664 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 27665 } 27666 r.WriteMapElemValue() 27667 if false { 27668 } else { 27669 r.EncodeUint(uint64(x.Index)) 27670 } 27671 } 27672 if yyr2 || yy2arr2 { 27673 r.WriteArrayElem() 27674 if false { 27675 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 27676 z.EncExtension(x.LastContact, yyxt7) 27677 } else { 27678 r.EncodeInt(int64(x.LastContact)) 27679 } 27680 } else { 27681 r.WriteMapElemKey() 27682 if z.IsJSONHandle() { 27683 z.WriteStr("\"LastContact\"") 27684 } else { 27685 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 27686 } 27687 r.WriteMapElemValue() 27688 if false { 27689 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 27690 z.EncExtension(x.LastContact, yyxt8) 27691 } else { 27692 r.EncodeInt(int64(x.LastContact)) 27693 } 27694 } 27695 if yyr2 || yy2arr2 { 27696 r.WriteArrayElem() 27697 if false { 27698 } else { 27699 r.EncodeBool(bool(x.KnownLeader)) 27700 } 27701 } else { 27702 r.WriteMapElemKey() 27703 if z.IsJSONHandle() { 27704 z.WriteStr("\"KnownLeader\"") 27705 } else { 27706 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 27707 } 27708 r.WriteMapElemValue() 27709 if false { 27710 } else { 27711 r.EncodeBool(bool(x.KnownLeader)) 27712 } 27713 } 27714 if yyr2 || yy2arr2 { 27715 r.WriteArrayEnd() 27716 } else { 27717 r.WriteMapEnd() 27718 } 27719 } 27720 } 27721 } 27722 27723 func (x *QueryMeta) CodecDecodeSelf(d *codec1978.Decoder) { 27724 var h codecSelfer100 27725 z, r := codec1978.GenHelperDecoder(d) 27726 _, _, _ = h, z, r 27727 if false { 27728 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27729 z.DecExtension(x, yyxt1) 27730 } else { 27731 yyct2 := r.ContainerType() 27732 if yyct2 == codecSelferValueTypeMap100 { 27733 yyl2 := r.ReadMapStart() 27734 if yyl2 == 0 { 27735 r.ReadMapEnd() 27736 } else { 27737 x.codecDecodeSelfFromMap(yyl2, d) 27738 } 27739 } else if yyct2 == codecSelferValueTypeArray100 { 27740 yyl2 := r.ReadArrayStart() 27741 if yyl2 == 0 { 27742 r.ReadArrayEnd() 27743 } else { 27744 x.codecDecodeSelfFromArray(yyl2, d) 27745 } 27746 } else { 27747 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27748 } 27749 } 27750 } 27751 27752 func (x *QueryMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27753 var h codecSelfer100 27754 z, r := codec1978.GenHelperDecoder(d) 27755 _, _, _ = h, z, r 27756 var yyhl3 bool = l >= 0 27757 for yyj3 := 0; ; yyj3++ { 27758 if yyhl3 { 27759 if yyj3 >= l { 27760 break 27761 } 27762 } else { 27763 if r.CheckBreak() { 27764 break 27765 } 27766 } 27767 r.ReadMapElemKey() 27768 yys3 := z.StringView(r.DecodeStringAsBytes()) 27769 r.ReadMapElemValue() 27770 switch yys3 { 27771 case "Index": 27772 if r.TryDecodeAsNil() { 27773 x.Index = 0 27774 } else { 27775 x.Index = (uint64)(r.DecodeUint64()) 27776 } 27777 case "LastContact": 27778 if r.TryDecodeAsNil() { 27779 x.LastContact = 0 27780 } else { 27781 if false { 27782 } else if yyxt6 := z.Extension(z.I2Rtid(x.LastContact)); yyxt6 != nil { 27783 z.DecExtension(x.LastContact, yyxt6) 27784 } else { 27785 x.LastContact = (time.Duration)(r.DecodeInt64()) 27786 } 27787 } 27788 case "KnownLeader": 27789 if r.TryDecodeAsNil() { 27790 x.KnownLeader = false 27791 } else { 27792 x.KnownLeader = (bool)(r.DecodeBool()) 27793 } 27794 default: 27795 z.DecStructFieldNotFound(-1, yys3) 27796 } // end switch yys3 27797 } // end for yyj3 27798 r.ReadMapEnd() 27799 } 27800 27801 func (x *QueryMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27802 var h codecSelfer100 27803 z, r := codec1978.GenHelperDecoder(d) 27804 _, _, _ = h, z, r 27805 var yyj8 int 27806 var yyb8 bool 27807 var yyhl8 bool = l >= 0 27808 yyj8++ 27809 if yyhl8 { 27810 yyb8 = yyj8 > l 27811 } else { 27812 yyb8 = r.CheckBreak() 27813 } 27814 if yyb8 { 27815 r.ReadArrayEnd() 27816 return 27817 } 27818 r.ReadArrayElem() 27819 if r.TryDecodeAsNil() { 27820 x.Index = 0 27821 } else { 27822 x.Index = (uint64)(r.DecodeUint64()) 27823 } 27824 yyj8++ 27825 if yyhl8 { 27826 yyb8 = yyj8 > l 27827 } else { 27828 yyb8 = r.CheckBreak() 27829 } 27830 if yyb8 { 27831 r.ReadArrayEnd() 27832 return 27833 } 27834 r.ReadArrayElem() 27835 if r.TryDecodeAsNil() { 27836 x.LastContact = 0 27837 } else { 27838 if false { 27839 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 27840 z.DecExtension(x.LastContact, yyxt11) 27841 } else { 27842 x.LastContact = (time.Duration)(r.DecodeInt64()) 27843 } 27844 } 27845 yyj8++ 27846 if yyhl8 { 27847 yyb8 = yyj8 > l 27848 } else { 27849 yyb8 = r.CheckBreak() 27850 } 27851 if yyb8 { 27852 r.ReadArrayEnd() 27853 return 27854 } 27855 r.ReadArrayElem() 27856 if r.TryDecodeAsNil() { 27857 x.KnownLeader = false 27858 } else { 27859 x.KnownLeader = (bool)(r.DecodeBool()) 27860 } 27861 for { 27862 yyj8++ 27863 if yyhl8 { 27864 yyb8 = yyj8 > l 27865 } else { 27866 yyb8 = r.CheckBreak() 27867 } 27868 if yyb8 { 27869 break 27870 } 27871 r.ReadArrayElem() 27872 z.DecStructFieldNotFound(yyj8-1, "") 27873 } 27874 r.ReadArrayEnd() 27875 } 27876 27877 func (x *WriteMeta) CodecEncodeSelf(e *codec1978.Encoder) { 27878 var h codecSelfer100 27879 z, r := codec1978.GenHelperEncoder(e) 27880 _, _, _ = h, z, r 27881 if x == nil { 27882 r.EncodeNil() 27883 } else { 27884 if false { 27885 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27886 z.EncExtension(x, yyxt1) 27887 } else { 27888 yysep2 := !z.EncBinary() 27889 yy2arr2 := z.EncBasicHandle().StructToArray 27890 _, _ = yysep2, yy2arr2 27891 const yyr2 bool = false // struct tag has 'toArray' 27892 if yyr2 || yy2arr2 { 27893 r.WriteArrayStart(1) 27894 } else { 27895 r.WriteMapStart(1) 27896 } 27897 if yyr2 || yy2arr2 { 27898 r.WriteArrayElem() 27899 if false { 27900 } else { 27901 r.EncodeUint(uint64(x.Index)) 27902 } 27903 } else { 27904 r.WriteMapElemKey() 27905 if z.IsJSONHandle() { 27906 z.WriteStr("\"Index\"") 27907 } else { 27908 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 27909 } 27910 r.WriteMapElemValue() 27911 if false { 27912 } else { 27913 r.EncodeUint(uint64(x.Index)) 27914 } 27915 } 27916 if yyr2 || yy2arr2 { 27917 r.WriteArrayEnd() 27918 } else { 27919 r.WriteMapEnd() 27920 } 27921 } 27922 } 27923 } 27924 27925 func (x *WriteMeta) CodecDecodeSelf(d *codec1978.Decoder) { 27926 var h codecSelfer100 27927 z, r := codec1978.GenHelperDecoder(d) 27928 _, _, _ = h, z, r 27929 if false { 27930 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 27931 z.DecExtension(x, yyxt1) 27932 } else { 27933 yyct2 := r.ContainerType() 27934 if yyct2 == codecSelferValueTypeMap100 { 27935 yyl2 := r.ReadMapStart() 27936 if yyl2 == 0 { 27937 r.ReadMapEnd() 27938 } else { 27939 x.codecDecodeSelfFromMap(yyl2, d) 27940 } 27941 } else if yyct2 == codecSelferValueTypeArray100 { 27942 yyl2 := r.ReadArrayStart() 27943 if yyl2 == 0 { 27944 r.ReadArrayEnd() 27945 } else { 27946 x.codecDecodeSelfFromArray(yyl2, d) 27947 } 27948 } else { 27949 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 27950 } 27951 } 27952 } 27953 27954 func (x *WriteMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 27955 var h codecSelfer100 27956 z, r := codec1978.GenHelperDecoder(d) 27957 _, _, _ = h, z, r 27958 var yyhl3 bool = l >= 0 27959 for yyj3 := 0; ; yyj3++ { 27960 if yyhl3 { 27961 if yyj3 >= l { 27962 break 27963 } 27964 } else { 27965 if r.CheckBreak() { 27966 break 27967 } 27968 } 27969 r.ReadMapElemKey() 27970 yys3 := z.StringView(r.DecodeStringAsBytes()) 27971 r.ReadMapElemValue() 27972 switch yys3 { 27973 case "Index": 27974 if r.TryDecodeAsNil() { 27975 x.Index = 0 27976 } else { 27977 x.Index = (uint64)(r.DecodeUint64()) 27978 } 27979 default: 27980 z.DecStructFieldNotFound(-1, yys3) 27981 } // end switch yys3 27982 } // end for yyj3 27983 r.ReadMapEnd() 27984 } 27985 27986 func (x *WriteMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 27987 var h codecSelfer100 27988 z, r := codec1978.GenHelperDecoder(d) 27989 _, _, _ = h, z, r 27990 var yyj5 int 27991 var yyb5 bool 27992 var yyhl5 bool = l >= 0 27993 yyj5++ 27994 if yyhl5 { 27995 yyb5 = yyj5 > l 27996 } else { 27997 yyb5 = r.CheckBreak() 27998 } 27999 if yyb5 { 28000 r.ReadArrayEnd() 28001 return 28002 } 28003 r.ReadArrayElem() 28004 if r.TryDecodeAsNil() { 28005 x.Index = 0 28006 } else { 28007 x.Index = (uint64)(r.DecodeUint64()) 28008 } 28009 for { 28010 yyj5++ 28011 if yyhl5 { 28012 yyb5 = yyj5 > l 28013 } else { 28014 yyb5 = r.CheckBreak() 28015 } 28016 if yyb5 { 28017 break 28018 } 28019 r.ReadArrayElem() 28020 z.DecStructFieldNotFound(yyj5-1, "") 28021 } 28022 r.ReadArrayEnd() 28023 } 28024 28025 func (x *NodeRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 28026 var h codecSelfer100 28027 z, r := codec1978.GenHelperEncoder(e) 28028 _, _, _ = h, z, r 28029 if x == nil { 28030 r.EncodeNil() 28031 } else { 28032 if false { 28033 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28034 z.EncExtension(x, yyxt1) 28035 } else { 28036 yysep2 := !z.EncBinary() 28037 yy2arr2 := z.EncBasicHandle().StructToArray 28038 _, _ = yysep2, yy2arr2 28039 const yyr2 bool = false // struct tag has 'toArray' 28040 if yyr2 || yy2arr2 { 28041 r.WriteArrayStart(6) 28042 } else { 28043 r.WriteMapStart(6) 28044 } 28045 var yyn3 bool 28046 if x.Node == nil { 28047 yyn3 = true 28048 goto LABEL3 28049 } 28050 LABEL3: 28051 if yyr2 || yy2arr2 { 28052 if yyn3 { 28053 r.WriteArrayElem() 28054 r.EncodeNil() 28055 } else { 28056 r.WriteArrayElem() 28057 if x.Node == nil { 28058 r.EncodeNil() 28059 } else { 28060 x.Node.CodecEncodeSelf(e) 28061 } 28062 } 28063 } else { 28064 r.WriteMapElemKey() 28065 if z.IsJSONHandle() { 28066 z.WriteStr("\"Node\"") 28067 } else { 28068 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 28069 } 28070 r.WriteMapElemValue() 28071 if yyn3 { 28072 r.EncodeNil() 28073 } else { 28074 if x.Node == nil { 28075 r.EncodeNil() 28076 } else { 28077 x.Node.CodecEncodeSelf(e) 28078 } 28079 } 28080 } 28081 var yyn6 bool 28082 if x.NodeEvent == nil { 28083 yyn6 = true 28084 goto LABEL6 28085 } 28086 LABEL6: 28087 if yyr2 || yy2arr2 { 28088 if yyn6 { 28089 r.WriteArrayElem() 28090 r.EncodeNil() 28091 } else { 28092 r.WriteArrayElem() 28093 if x.NodeEvent == nil { 28094 r.EncodeNil() 28095 } else { 28096 x.NodeEvent.CodecEncodeSelf(e) 28097 } 28098 } 28099 } else { 28100 r.WriteMapElemKey() 28101 if z.IsJSONHandle() { 28102 z.WriteStr("\"NodeEvent\"") 28103 } else { 28104 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 28105 } 28106 r.WriteMapElemValue() 28107 if yyn6 { 28108 r.EncodeNil() 28109 } else { 28110 if x.NodeEvent == nil { 28111 r.EncodeNil() 28112 } else { 28113 x.NodeEvent.CodecEncodeSelf(e) 28114 } 28115 } 28116 } 28117 if yyr2 || yy2arr2 { 28118 r.WriteArrayElem() 28119 if false { 28120 } else { 28121 if z.EncBasicHandle().StringToRaw { 28122 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28123 } else { 28124 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28125 } 28126 } 28127 } else { 28128 r.WriteMapElemKey() 28129 if z.IsJSONHandle() { 28130 z.WriteStr("\"Region\"") 28131 } else { 28132 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 28133 } 28134 r.WriteMapElemValue() 28135 if false { 28136 } else { 28137 if z.EncBasicHandle().StringToRaw { 28138 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28139 } else { 28140 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28141 } 28142 } 28143 } 28144 if yyr2 || yy2arr2 { 28145 r.WriteArrayElem() 28146 if false { 28147 } else { 28148 if z.EncBasicHandle().StringToRaw { 28149 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28150 } else { 28151 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28152 } 28153 } 28154 } else { 28155 r.WriteMapElemKey() 28156 if z.IsJSONHandle() { 28157 z.WriteStr("\"Namespace\"") 28158 } else { 28159 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 28160 } 28161 r.WriteMapElemValue() 28162 if false { 28163 } else { 28164 if z.EncBasicHandle().StringToRaw { 28165 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28166 } else { 28167 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28168 } 28169 } 28170 } 28171 if yyr2 || yy2arr2 { 28172 r.WriteArrayElem() 28173 if false { 28174 } else { 28175 if z.EncBasicHandle().StringToRaw { 28176 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28177 } else { 28178 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28179 } 28180 } 28181 } else { 28182 r.WriteMapElemKey() 28183 if z.IsJSONHandle() { 28184 z.WriteStr("\"AuthToken\"") 28185 } else { 28186 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 28187 } 28188 r.WriteMapElemValue() 28189 if false { 28190 } else { 28191 if z.EncBasicHandle().StringToRaw { 28192 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28193 } else { 28194 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28195 } 28196 } 28197 } 28198 if yyr2 || yy2arr2 { 28199 r.WriteArrayElem() 28200 if false { 28201 } else { 28202 r.EncodeBool(bool(x.Forwarded)) 28203 } 28204 } else { 28205 r.WriteMapElemKey() 28206 if z.IsJSONHandle() { 28207 z.WriteStr("\"Forwarded\"") 28208 } else { 28209 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 28210 } 28211 r.WriteMapElemValue() 28212 if false { 28213 } else { 28214 r.EncodeBool(bool(x.Forwarded)) 28215 } 28216 } 28217 if yyr2 || yy2arr2 { 28218 r.WriteArrayEnd() 28219 } else { 28220 r.WriteMapEnd() 28221 } 28222 } 28223 } 28224 } 28225 28226 func (x *NodeRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 28227 var h codecSelfer100 28228 z, r := codec1978.GenHelperDecoder(d) 28229 _, _, _ = h, z, r 28230 if false { 28231 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28232 z.DecExtension(x, yyxt1) 28233 } else { 28234 yyct2 := r.ContainerType() 28235 if yyct2 == codecSelferValueTypeMap100 { 28236 yyl2 := r.ReadMapStart() 28237 if yyl2 == 0 { 28238 r.ReadMapEnd() 28239 } else { 28240 x.codecDecodeSelfFromMap(yyl2, d) 28241 } 28242 } else if yyct2 == codecSelferValueTypeArray100 { 28243 yyl2 := r.ReadArrayStart() 28244 if yyl2 == 0 { 28245 r.ReadArrayEnd() 28246 } else { 28247 x.codecDecodeSelfFromArray(yyl2, d) 28248 } 28249 } else { 28250 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 28251 } 28252 } 28253 } 28254 28255 func (x *NodeRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 28256 var h codecSelfer100 28257 z, r := codec1978.GenHelperDecoder(d) 28258 _, _, _ = h, z, r 28259 var yyhl3 bool = l >= 0 28260 for yyj3 := 0; ; yyj3++ { 28261 if yyhl3 { 28262 if yyj3 >= l { 28263 break 28264 } 28265 } else { 28266 if r.CheckBreak() { 28267 break 28268 } 28269 } 28270 r.ReadMapElemKey() 28271 yys3 := z.StringView(r.DecodeStringAsBytes()) 28272 r.ReadMapElemValue() 28273 switch yys3 { 28274 case "Node": 28275 if r.TryDecodeAsNil() { 28276 if true && x.Node != nil { 28277 x.Node = nil 28278 } 28279 } else { 28280 if x.Node == nil { 28281 x.Node = new(Node) 28282 } 28283 28284 x.Node.CodecDecodeSelf(d) 28285 } 28286 case "NodeEvent": 28287 if r.TryDecodeAsNil() { 28288 if true && x.NodeEvent != nil { 28289 x.NodeEvent = nil 28290 } 28291 } else { 28292 if x.NodeEvent == nil { 28293 x.NodeEvent = new(NodeEvent) 28294 } 28295 28296 x.NodeEvent.CodecDecodeSelf(d) 28297 } 28298 case "Region": 28299 if r.TryDecodeAsNil() { 28300 x.WriteRequest.Region = "" 28301 } else { 28302 x.Region = (string)(r.DecodeString()) 28303 } 28304 case "Namespace": 28305 if r.TryDecodeAsNil() { 28306 x.WriteRequest.Namespace = "" 28307 } else { 28308 x.Namespace = (string)(r.DecodeString()) 28309 } 28310 case "AuthToken": 28311 if r.TryDecodeAsNil() { 28312 x.WriteRequest.AuthToken = "" 28313 } else { 28314 x.AuthToken = (string)(r.DecodeString()) 28315 } 28316 case "Forwarded": 28317 if r.TryDecodeAsNil() { 28318 x.WriteRequest.InternalRpcInfo.Forwarded = false 28319 } else { 28320 x.Forwarded = (bool)(r.DecodeBool()) 28321 } 28322 default: 28323 z.DecStructFieldNotFound(-1, yys3) 28324 } // end switch yys3 28325 } // end for yyj3 28326 r.ReadMapEnd() 28327 } 28328 28329 func (x *NodeRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 28330 var h codecSelfer100 28331 z, r := codec1978.GenHelperDecoder(d) 28332 _, _, _ = h, z, r 28333 var yyj10 int 28334 var yyb10 bool 28335 var yyhl10 bool = l >= 0 28336 yyj10++ 28337 if yyhl10 { 28338 yyb10 = yyj10 > l 28339 } else { 28340 yyb10 = r.CheckBreak() 28341 } 28342 if yyb10 { 28343 r.ReadArrayEnd() 28344 return 28345 } 28346 r.ReadArrayElem() 28347 if r.TryDecodeAsNil() { 28348 if true && x.Node != nil { 28349 x.Node = nil 28350 } 28351 } else { 28352 if x.Node == nil { 28353 x.Node = new(Node) 28354 } 28355 28356 x.Node.CodecDecodeSelf(d) 28357 } 28358 yyj10++ 28359 if yyhl10 { 28360 yyb10 = yyj10 > l 28361 } else { 28362 yyb10 = r.CheckBreak() 28363 } 28364 if yyb10 { 28365 r.ReadArrayEnd() 28366 return 28367 } 28368 r.ReadArrayElem() 28369 if r.TryDecodeAsNil() { 28370 if true && x.NodeEvent != nil { 28371 x.NodeEvent = nil 28372 } 28373 } else { 28374 if x.NodeEvent == nil { 28375 x.NodeEvent = new(NodeEvent) 28376 } 28377 28378 x.NodeEvent.CodecDecodeSelf(d) 28379 } 28380 yyj10++ 28381 if yyhl10 { 28382 yyb10 = yyj10 > l 28383 } else { 28384 yyb10 = r.CheckBreak() 28385 } 28386 if yyb10 { 28387 r.ReadArrayEnd() 28388 return 28389 } 28390 r.ReadArrayElem() 28391 if r.TryDecodeAsNil() { 28392 x.WriteRequest.Region = "" 28393 } else { 28394 x.Region = (string)(r.DecodeString()) 28395 } 28396 yyj10++ 28397 if yyhl10 { 28398 yyb10 = yyj10 > l 28399 } else { 28400 yyb10 = r.CheckBreak() 28401 } 28402 if yyb10 { 28403 r.ReadArrayEnd() 28404 return 28405 } 28406 r.ReadArrayElem() 28407 if r.TryDecodeAsNil() { 28408 x.WriteRequest.Namespace = "" 28409 } else { 28410 x.Namespace = (string)(r.DecodeString()) 28411 } 28412 yyj10++ 28413 if yyhl10 { 28414 yyb10 = yyj10 > l 28415 } else { 28416 yyb10 = r.CheckBreak() 28417 } 28418 if yyb10 { 28419 r.ReadArrayEnd() 28420 return 28421 } 28422 r.ReadArrayElem() 28423 if r.TryDecodeAsNil() { 28424 x.WriteRequest.AuthToken = "" 28425 } else { 28426 x.AuthToken = (string)(r.DecodeString()) 28427 } 28428 yyj10++ 28429 if yyhl10 { 28430 yyb10 = yyj10 > l 28431 } else { 28432 yyb10 = r.CheckBreak() 28433 } 28434 if yyb10 { 28435 r.ReadArrayEnd() 28436 return 28437 } 28438 r.ReadArrayElem() 28439 if r.TryDecodeAsNil() { 28440 x.WriteRequest.InternalRpcInfo.Forwarded = false 28441 } else { 28442 x.Forwarded = (bool)(r.DecodeBool()) 28443 } 28444 for { 28445 yyj10++ 28446 if yyhl10 { 28447 yyb10 = yyj10 > l 28448 } else { 28449 yyb10 = r.CheckBreak() 28450 } 28451 if yyb10 { 28452 break 28453 } 28454 r.ReadArrayElem() 28455 z.DecStructFieldNotFound(yyj10-1, "") 28456 } 28457 r.ReadArrayEnd() 28458 } 28459 28460 func (x *NodeDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 28461 var h codecSelfer100 28462 z, r := codec1978.GenHelperEncoder(e) 28463 _, _, _ = h, z, r 28464 if x == nil { 28465 r.EncodeNil() 28466 } else { 28467 if false { 28468 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28469 z.EncExtension(x, yyxt1) 28470 } else { 28471 yysep2 := !z.EncBinary() 28472 yy2arr2 := z.EncBasicHandle().StructToArray 28473 _, _ = yysep2, yy2arr2 28474 const yyr2 bool = false // struct tag has 'toArray' 28475 if yyr2 || yy2arr2 { 28476 r.WriteArrayStart(5) 28477 } else { 28478 r.WriteMapStart(5) 28479 } 28480 if yyr2 || yy2arr2 { 28481 r.WriteArrayElem() 28482 if false { 28483 } else { 28484 if z.EncBasicHandle().StringToRaw { 28485 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 28486 } else { 28487 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 28488 } 28489 } 28490 } else { 28491 r.WriteMapElemKey() 28492 if z.IsJSONHandle() { 28493 z.WriteStr("\"NodeID\"") 28494 } else { 28495 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 28496 } 28497 r.WriteMapElemValue() 28498 if false { 28499 } else { 28500 if z.EncBasicHandle().StringToRaw { 28501 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 28502 } else { 28503 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 28504 } 28505 } 28506 } 28507 if yyr2 || yy2arr2 { 28508 r.WriteArrayElem() 28509 if false { 28510 } else { 28511 if z.EncBasicHandle().StringToRaw { 28512 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28513 } else { 28514 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28515 } 28516 } 28517 } else { 28518 r.WriteMapElemKey() 28519 if z.IsJSONHandle() { 28520 z.WriteStr("\"Region\"") 28521 } else { 28522 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 28523 } 28524 r.WriteMapElemValue() 28525 if false { 28526 } else { 28527 if z.EncBasicHandle().StringToRaw { 28528 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28529 } else { 28530 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28531 } 28532 } 28533 } 28534 if yyr2 || yy2arr2 { 28535 r.WriteArrayElem() 28536 if false { 28537 } else { 28538 if z.EncBasicHandle().StringToRaw { 28539 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28540 } else { 28541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28542 } 28543 } 28544 } else { 28545 r.WriteMapElemKey() 28546 if z.IsJSONHandle() { 28547 z.WriteStr("\"Namespace\"") 28548 } else { 28549 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 28550 } 28551 r.WriteMapElemValue() 28552 if false { 28553 } else { 28554 if z.EncBasicHandle().StringToRaw { 28555 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28556 } else { 28557 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28558 } 28559 } 28560 } 28561 if yyr2 || yy2arr2 { 28562 r.WriteArrayElem() 28563 if false { 28564 } else { 28565 if z.EncBasicHandle().StringToRaw { 28566 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28567 } else { 28568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28569 } 28570 } 28571 } else { 28572 r.WriteMapElemKey() 28573 if z.IsJSONHandle() { 28574 z.WriteStr("\"AuthToken\"") 28575 } else { 28576 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 28577 } 28578 r.WriteMapElemValue() 28579 if false { 28580 } else { 28581 if z.EncBasicHandle().StringToRaw { 28582 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28583 } else { 28584 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28585 } 28586 } 28587 } 28588 if yyr2 || yy2arr2 { 28589 r.WriteArrayElem() 28590 if false { 28591 } else { 28592 r.EncodeBool(bool(x.Forwarded)) 28593 } 28594 } else { 28595 r.WriteMapElemKey() 28596 if z.IsJSONHandle() { 28597 z.WriteStr("\"Forwarded\"") 28598 } else { 28599 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 28600 } 28601 r.WriteMapElemValue() 28602 if false { 28603 } else { 28604 r.EncodeBool(bool(x.Forwarded)) 28605 } 28606 } 28607 if yyr2 || yy2arr2 { 28608 r.WriteArrayEnd() 28609 } else { 28610 r.WriteMapEnd() 28611 } 28612 } 28613 } 28614 } 28615 28616 func (x *NodeDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 28617 var h codecSelfer100 28618 z, r := codec1978.GenHelperDecoder(d) 28619 _, _, _ = h, z, r 28620 if false { 28621 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28622 z.DecExtension(x, yyxt1) 28623 } else { 28624 yyct2 := r.ContainerType() 28625 if yyct2 == codecSelferValueTypeMap100 { 28626 yyl2 := r.ReadMapStart() 28627 if yyl2 == 0 { 28628 r.ReadMapEnd() 28629 } else { 28630 x.codecDecodeSelfFromMap(yyl2, d) 28631 } 28632 } else if yyct2 == codecSelferValueTypeArray100 { 28633 yyl2 := r.ReadArrayStart() 28634 if yyl2 == 0 { 28635 r.ReadArrayEnd() 28636 } else { 28637 x.codecDecodeSelfFromArray(yyl2, d) 28638 } 28639 } else { 28640 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 28641 } 28642 } 28643 } 28644 28645 func (x *NodeDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 28646 var h codecSelfer100 28647 z, r := codec1978.GenHelperDecoder(d) 28648 _, _, _ = h, z, r 28649 var yyhl3 bool = l >= 0 28650 for yyj3 := 0; ; yyj3++ { 28651 if yyhl3 { 28652 if yyj3 >= l { 28653 break 28654 } 28655 } else { 28656 if r.CheckBreak() { 28657 break 28658 } 28659 } 28660 r.ReadMapElemKey() 28661 yys3 := z.StringView(r.DecodeStringAsBytes()) 28662 r.ReadMapElemValue() 28663 switch yys3 { 28664 case "NodeID": 28665 if r.TryDecodeAsNil() { 28666 x.NodeID = "" 28667 } else { 28668 x.NodeID = (string)(r.DecodeString()) 28669 } 28670 case "Region": 28671 if r.TryDecodeAsNil() { 28672 x.WriteRequest.Region = "" 28673 } else { 28674 x.Region = (string)(r.DecodeString()) 28675 } 28676 case "Namespace": 28677 if r.TryDecodeAsNil() { 28678 x.WriteRequest.Namespace = "" 28679 } else { 28680 x.Namespace = (string)(r.DecodeString()) 28681 } 28682 case "AuthToken": 28683 if r.TryDecodeAsNil() { 28684 x.WriteRequest.AuthToken = "" 28685 } else { 28686 x.AuthToken = (string)(r.DecodeString()) 28687 } 28688 case "Forwarded": 28689 if r.TryDecodeAsNil() { 28690 x.WriteRequest.InternalRpcInfo.Forwarded = false 28691 } else { 28692 x.Forwarded = (bool)(r.DecodeBool()) 28693 } 28694 default: 28695 z.DecStructFieldNotFound(-1, yys3) 28696 } // end switch yys3 28697 } // end for yyj3 28698 r.ReadMapEnd() 28699 } 28700 28701 func (x *NodeDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 28702 var h codecSelfer100 28703 z, r := codec1978.GenHelperDecoder(d) 28704 _, _, _ = h, z, r 28705 var yyj9 int 28706 var yyb9 bool 28707 var yyhl9 bool = l >= 0 28708 yyj9++ 28709 if yyhl9 { 28710 yyb9 = yyj9 > l 28711 } else { 28712 yyb9 = r.CheckBreak() 28713 } 28714 if yyb9 { 28715 r.ReadArrayEnd() 28716 return 28717 } 28718 r.ReadArrayElem() 28719 if r.TryDecodeAsNil() { 28720 x.NodeID = "" 28721 } else { 28722 x.NodeID = (string)(r.DecodeString()) 28723 } 28724 yyj9++ 28725 if yyhl9 { 28726 yyb9 = yyj9 > l 28727 } else { 28728 yyb9 = r.CheckBreak() 28729 } 28730 if yyb9 { 28731 r.ReadArrayEnd() 28732 return 28733 } 28734 r.ReadArrayElem() 28735 if r.TryDecodeAsNil() { 28736 x.WriteRequest.Region = "" 28737 } else { 28738 x.Region = (string)(r.DecodeString()) 28739 } 28740 yyj9++ 28741 if yyhl9 { 28742 yyb9 = yyj9 > l 28743 } else { 28744 yyb9 = r.CheckBreak() 28745 } 28746 if yyb9 { 28747 r.ReadArrayEnd() 28748 return 28749 } 28750 r.ReadArrayElem() 28751 if r.TryDecodeAsNil() { 28752 x.WriteRequest.Namespace = "" 28753 } else { 28754 x.Namespace = (string)(r.DecodeString()) 28755 } 28756 yyj9++ 28757 if yyhl9 { 28758 yyb9 = yyj9 > l 28759 } else { 28760 yyb9 = r.CheckBreak() 28761 } 28762 if yyb9 { 28763 r.ReadArrayEnd() 28764 return 28765 } 28766 r.ReadArrayElem() 28767 if r.TryDecodeAsNil() { 28768 x.WriteRequest.AuthToken = "" 28769 } else { 28770 x.AuthToken = (string)(r.DecodeString()) 28771 } 28772 yyj9++ 28773 if yyhl9 { 28774 yyb9 = yyj9 > l 28775 } else { 28776 yyb9 = r.CheckBreak() 28777 } 28778 if yyb9 { 28779 r.ReadArrayEnd() 28780 return 28781 } 28782 r.ReadArrayElem() 28783 if r.TryDecodeAsNil() { 28784 x.WriteRequest.InternalRpcInfo.Forwarded = false 28785 } else { 28786 x.Forwarded = (bool)(r.DecodeBool()) 28787 } 28788 for { 28789 yyj9++ 28790 if yyhl9 { 28791 yyb9 = yyj9 > l 28792 } else { 28793 yyb9 = r.CheckBreak() 28794 } 28795 if yyb9 { 28796 break 28797 } 28798 r.ReadArrayElem() 28799 z.DecStructFieldNotFound(yyj9-1, "") 28800 } 28801 r.ReadArrayEnd() 28802 } 28803 28804 func (x *NodeBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 28805 var h codecSelfer100 28806 z, r := codec1978.GenHelperEncoder(e) 28807 _, _, _ = h, z, r 28808 if x == nil { 28809 r.EncodeNil() 28810 } else { 28811 if false { 28812 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28813 z.EncExtension(x, yyxt1) 28814 } else { 28815 yysep2 := !z.EncBinary() 28816 yy2arr2 := z.EncBasicHandle().StructToArray 28817 _, _ = yysep2, yy2arr2 28818 const yyr2 bool = false // struct tag has 'toArray' 28819 if yyr2 || yy2arr2 { 28820 r.WriteArrayStart(5) 28821 } else { 28822 r.WriteMapStart(5) 28823 } 28824 if yyr2 || yy2arr2 { 28825 r.WriteArrayElem() 28826 if x.NodeIDs == nil { 28827 r.EncodeNil() 28828 } else { 28829 if false { 28830 } else { 28831 z.F.EncSliceStringV(x.NodeIDs, e) 28832 } 28833 } 28834 } else { 28835 r.WriteMapElemKey() 28836 if z.IsJSONHandle() { 28837 z.WriteStr("\"NodeIDs\"") 28838 } else { 28839 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeIDs`) 28840 } 28841 r.WriteMapElemValue() 28842 if x.NodeIDs == nil { 28843 r.EncodeNil() 28844 } else { 28845 if false { 28846 } else { 28847 z.F.EncSliceStringV(x.NodeIDs, e) 28848 } 28849 } 28850 } 28851 if yyr2 || yy2arr2 { 28852 r.WriteArrayElem() 28853 if false { 28854 } else { 28855 if z.EncBasicHandle().StringToRaw { 28856 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28857 } else { 28858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28859 } 28860 } 28861 } else { 28862 r.WriteMapElemKey() 28863 if z.IsJSONHandle() { 28864 z.WriteStr("\"Region\"") 28865 } else { 28866 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 28867 } 28868 r.WriteMapElemValue() 28869 if false { 28870 } else { 28871 if z.EncBasicHandle().StringToRaw { 28872 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 28873 } else { 28874 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 28875 } 28876 } 28877 } 28878 if yyr2 || yy2arr2 { 28879 r.WriteArrayElem() 28880 if false { 28881 } else { 28882 if z.EncBasicHandle().StringToRaw { 28883 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28884 } else { 28885 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28886 } 28887 } 28888 } else { 28889 r.WriteMapElemKey() 28890 if z.IsJSONHandle() { 28891 z.WriteStr("\"Namespace\"") 28892 } else { 28893 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 28894 } 28895 r.WriteMapElemValue() 28896 if false { 28897 } else { 28898 if z.EncBasicHandle().StringToRaw { 28899 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 28900 } else { 28901 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 28902 } 28903 } 28904 } 28905 if yyr2 || yy2arr2 { 28906 r.WriteArrayElem() 28907 if false { 28908 } else { 28909 if z.EncBasicHandle().StringToRaw { 28910 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28911 } else { 28912 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28913 } 28914 } 28915 } else { 28916 r.WriteMapElemKey() 28917 if z.IsJSONHandle() { 28918 z.WriteStr("\"AuthToken\"") 28919 } else { 28920 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 28921 } 28922 r.WriteMapElemValue() 28923 if false { 28924 } else { 28925 if z.EncBasicHandle().StringToRaw { 28926 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 28927 } else { 28928 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 28929 } 28930 } 28931 } 28932 if yyr2 || yy2arr2 { 28933 r.WriteArrayElem() 28934 if false { 28935 } else { 28936 r.EncodeBool(bool(x.Forwarded)) 28937 } 28938 } else { 28939 r.WriteMapElemKey() 28940 if z.IsJSONHandle() { 28941 z.WriteStr("\"Forwarded\"") 28942 } else { 28943 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 28944 } 28945 r.WriteMapElemValue() 28946 if false { 28947 } else { 28948 r.EncodeBool(bool(x.Forwarded)) 28949 } 28950 } 28951 if yyr2 || yy2arr2 { 28952 r.WriteArrayEnd() 28953 } else { 28954 r.WriteMapEnd() 28955 } 28956 } 28957 } 28958 } 28959 28960 func (x *NodeBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 28961 var h codecSelfer100 28962 z, r := codec1978.GenHelperDecoder(d) 28963 _, _, _ = h, z, r 28964 if false { 28965 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 28966 z.DecExtension(x, yyxt1) 28967 } else { 28968 yyct2 := r.ContainerType() 28969 if yyct2 == codecSelferValueTypeMap100 { 28970 yyl2 := r.ReadMapStart() 28971 if yyl2 == 0 { 28972 r.ReadMapEnd() 28973 } else { 28974 x.codecDecodeSelfFromMap(yyl2, d) 28975 } 28976 } else if yyct2 == codecSelferValueTypeArray100 { 28977 yyl2 := r.ReadArrayStart() 28978 if yyl2 == 0 { 28979 r.ReadArrayEnd() 28980 } else { 28981 x.codecDecodeSelfFromArray(yyl2, d) 28982 } 28983 } else { 28984 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 28985 } 28986 } 28987 } 28988 28989 func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 28990 var h codecSelfer100 28991 z, r := codec1978.GenHelperDecoder(d) 28992 _, _, _ = h, z, r 28993 var yyhl3 bool = l >= 0 28994 for yyj3 := 0; ; yyj3++ { 28995 if yyhl3 { 28996 if yyj3 >= l { 28997 break 28998 } 28999 } else { 29000 if r.CheckBreak() { 29001 break 29002 } 29003 } 29004 r.ReadMapElemKey() 29005 yys3 := z.StringView(r.DecodeStringAsBytes()) 29006 r.ReadMapElemValue() 29007 switch yys3 { 29008 case "NodeIDs": 29009 if r.TryDecodeAsNil() { 29010 x.NodeIDs = nil 29011 } else { 29012 if false { 29013 } else { 29014 z.F.DecSliceStringX(&x.NodeIDs, d) 29015 } 29016 } 29017 case "Region": 29018 if r.TryDecodeAsNil() { 29019 x.WriteRequest.Region = "" 29020 } else { 29021 x.Region = (string)(r.DecodeString()) 29022 } 29023 case "Namespace": 29024 if r.TryDecodeAsNil() { 29025 x.WriteRequest.Namespace = "" 29026 } else { 29027 x.Namespace = (string)(r.DecodeString()) 29028 } 29029 case "AuthToken": 29030 if r.TryDecodeAsNil() { 29031 x.WriteRequest.AuthToken = "" 29032 } else { 29033 x.AuthToken = (string)(r.DecodeString()) 29034 } 29035 case "Forwarded": 29036 if r.TryDecodeAsNil() { 29037 x.WriteRequest.InternalRpcInfo.Forwarded = false 29038 } else { 29039 x.Forwarded = (bool)(r.DecodeBool()) 29040 } 29041 default: 29042 z.DecStructFieldNotFound(-1, yys3) 29043 } // end switch yys3 29044 } // end for yyj3 29045 r.ReadMapEnd() 29046 } 29047 29048 func (x *NodeBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29049 var h codecSelfer100 29050 z, r := codec1978.GenHelperDecoder(d) 29051 _, _, _ = h, z, r 29052 var yyj10 int 29053 var yyb10 bool 29054 var yyhl10 bool = l >= 0 29055 yyj10++ 29056 if yyhl10 { 29057 yyb10 = yyj10 > l 29058 } else { 29059 yyb10 = r.CheckBreak() 29060 } 29061 if yyb10 { 29062 r.ReadArrayEnd() 29063 return 29064 } 29065 r.ReadArrayElem() 29066 if r.TryDecodeAsNil() { 29067 x.NodeIDs = nil 29068 } else { 29069 if false { 29070 } else { 29071 z.F.DecSliceStringX(&x.NodeIDs, d) 29072 } 29073 } 29074 yyj10++ 29075 if yyhl10 { 29076 yyb10 = yyj10 > l 29077 } else { 29078 yyb10 = r.CheckBreak() 29079 } 29080 if yyb10 { 29081 r.ReadArrayEnd() 29082 return 29083 } 29084 r.ReadArrayElem() 29085 if r.TryDecodeAsNil() { 29086 x.WriteRequest.Region = "" 29087 } else { 29088 x.Region = (string)(r.DecodeString()) 29089 } 29090 yyj10++ 29091 if yyhl10 { 29092 yyb10 = yyj10 > l 29093 } else { 29094 yyb10 = r.CheckBreak() 29095 } 29096 if yyb10 { 29097 r.ReadArrayEnd() 29098 return 29099 } 29100 r.ReadArrayElem() 29101 if r.TryDecodeAsNil() { 29102 x.WriteRequest.Namespace = "" 29103 } else { 29104 x.Namespace = (string)(r.DecodeString()) 29105 } 29106 yyj10++ 29107 if yyhl10 { 29108 yyb10 = yyj10 > l 29109 } else { 29110 yyb10 = r.CheckBreak() 29111 } 29112 if yyb10 { 29113 r.ReadArrayEnd() 29114 return 29115 } 29116 r.ReadArrayElem() 29117 if r.TryDecodeAsNil() { 29118 x.WriteRequest.AuthToken = "" 29119 } else { 29120 x.AuthToken = (string)(r.DecodeString()) 29121 } 29122 yyj10++ 29123 if yyhl10 { 29124 yyb10 = yyj10 > l 29125 } else { 29126 yyb10 = r.CheckBreak() 29127 } 29128 if yyb10 { 29129 r.ReadArrayEnd() 29130 return 29131 } 29132 r.ReadArrayElem() 29133 if r.TryDecodeAsNil() { 29134 x.WriteRequest.InternalRpcInfo.Forwarded = false 29135 } else { 29136 x.Forwarded = (bool)(r.DecodeBool()) 29137 } 29138 for { 29139 yyj10++ 29140 if yyhl10 { 29141 yyb10 = yyj10 > l 29142 } else { 29143 yyb10 = r.CheckBreak() 29144 } 29145 if yyb10 { 29146 break 29147 } 29148 r.ReadArrayElem() 29149 z.DecStructFieldNotFound(yyj10-1, "") 29150 } 29151 r.ReadArrayEnd() 29152 } 29153 29154 func (x *NodeServerInfo) CodecEncodeSelf(e *codec1978.Encoder) { 29155 var h codecSelfer100 29156 z, r := codec1978.GenHelperEncoder(e) 29157 _, _, _ = h, z, r 29158 if x == nil { 29159 r.EncodeNil() 29160 } else { 29161 if false { 29162 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29163 z.EncExtension(x, yyxt1) 29164 } else { 29165 yysep2 := !z.EncBinary() 29166 yy2arr2 := z.EncBasicHandle().StructToArray 29167 _, _ = yysep2, yy2arr2 29168 const yyr2 bool = false // struct tag has 'toArray' 29169 if yyr2 || yy2arr2 { 29170 r.WriteArrayStart(4) 29171 } else { 29172 r.WriteMapStart(4) 29173 } 29174 if yyr2 || yy2arr2 { 29175 r.WriteArrayElem() 29176 if false { 29177 } else { 29178 if z.EncBasicHandle().StringToRaw { 29179 r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) 29180 } else { 29181 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) 29182 } 29183 } 29184 } else { 29185 r.WriteMapElemKey() 29186 if z.IsJSONHandle() { 29187 z.WriteStr("\"RPCAdvertiseAddr\"") 29188 } else { 29189 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCAdvertiseAddr`) 29190 } 29191 r.WriteMapElemValue() 29192 if false { 29193 } else { 29194 if z.EncBasicHandle().StringToRaw { 29195 r.EncodeStringBytesRaw(z.BytesView(string(x.RPCAdvertiseAddr))) 29196 } else { 29197 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RPCAdvertiseAddr)) 29198 } 29199 } 29200 } 29201 if yyr2 || yy2arr2 { 29202 r.WriteArrayElem() 29203 if false { 29204 } else { 29205 r.EncodeInt(int64(x.RPCMajorVersion)) 29206 } 29207 } else { 29208 r.WriteMapElemKey() 29209 if z.IsJSONHandle() { 29210 z.WriteStr("\"RPCMajorVersion\"") 29211 } else { 29212 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMajorVersion`) 29213 } 29214 r.WriteMapElemValue() 29215 if false { 29216 } else { 29217 r.EncodeInt(int64(x.RPCMajorVersion)) 29218 } 29219 } 29220 if yyr2 || yy2arr2 { 29221 r.WriteArrayElem() 29222 if false { 29223 } else { 29224 r.EncodeInt(int64(x.RPCMinorVersion)) 29225 } 29226 } else { 29227 r.WriteMapElemKey() 29228 if z.IsJSONHandle() { 29229 z.WriteStr("\"RPCMinorVersion\"") 29230 } else { 29231 r.EncodeStringEnc(codecSelferCcUTF8100, `RPCMinorVersion`) 29232 } 29233 r.WriteMapElemValue() 29234 if false { 29235 } else { 29236 r.EncodeInt(int64(x.RPCMinorVersion)) 29237 } 29238 } 29239 if yyr2 || yy2arr2 { 29240 r.WriteArrayElem() 29241 if false { 29242 } else { 29243 if z.EncBasicHandle().StringToRaw { 29244 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 29245 } else { 29246 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 29247 } 29248 } 29249 } else { 29250 r.WriteMapElemKey() 29251 if z.IsJSONHandle() { 29252 z.WriteStr("\"Datacenter\"") 29253 } else { 29254 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 29255 } 29256 r.WriteMapElemValue() 29257 if false { 29258 } else { 29259 if z.EncBasicHandle().StringToRaw { 29260 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 29261 } else { 29262 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 29263 } 29264 } 29265 } 29266 if yyr2 || yy2arr2 { 29267 r.WriteArrayEnd() 29268 } else { 29269 r.WriteMapEnd() 29270 } 29271 } 29272 } 29273 } 29274 29275 func (x *NodeServerInfo) CodecDecodeSelf(d *codec1978.Decoder) { 29276 var h codecSelfer100 29277 z, r := codec1978.GenHelperDecoder(d) 29278 _, _, _ = h, z, r 29279 if false { 29280 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29281 z.DecExtension(x, yyxt1) 29282 } else { 29283 yyct2 := r.ContainerType() 29284 if yyct2 == codecSelferValueTypeMap100 { 29285 yyl2 := r.ReadMapStart() 29286 if yyl2 == 0 { 29287 r.ReadMapEnd() 29288 } else { 29289 x.codecDecodeSelfFromMap(yyl2, d) 29290 } 29291 } else if yyct2 == codecSelferValueTypeArray100 { 29292 yyl2 := r.ReadArrayStart() 29293 if yyl2 == 0 { 29294 r.ReadArrayEnd() 29295 } else { 29296 x.codecDecodeSelfFromArray(yyl2, d) 29297 } 29298 } else { 29299 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 29300 } 29301 } 29302 } 29303 29304 func (x *NodeServerInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 29305 var h codecSelfer100 29306 z, r := codec1978.GenHelperDecoder(d) 29307 _, _, _ = h, z, r 29308 var yyhl3 bool = l >= 0 29309 for yyj3 := 0; ; yyj3++ { 29310 if yyhl3 { 29311 if yyj3 >= l { 29312 break 29313 } 29314 } else { 29315 if r.CheckBreak() { 29316 break 29317 } 29318 } 29319 r.ReadMapElemKey() 29320 yys3 := z.StringView(r.DecodeStringAsBytes()) 29321 r.ReadMapElemValue() 29322 switch yys3 { 29323 case "RPCAdvertiseAddr": 29324 if r.TryDecodeAsNil() { 29325 x.RPCAdvertiseAddr = "" 29326 } else { 29327 x.RPCAdvertiseAddr = (string)(r.DecodeString()) 29328 } 29329 case "RPCMajorVersion": 29330 if r.TryDecodeAsNil() { 29331 x.RPCMajorVersion = 0 29332 } else { 29333 x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 29334 } 29335 case "RPCMinorVersion": 29336 if r.TryDecodeAsNil() { 29337 x.RPCMinorVersion = 0 29338 } else { 29339 x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 29340 } 29341 case "Datacenter": 29342 if r.TryDecodeAsNil() { 29343 x.Datacenter = "" 29344 } else { 29345 x.Datacenter = (string)(r.DecodeString()) 29346 } 29347 default: 29348 z.DecStructFieldNotFound(-1, yys3) 29349 } // end switch yys3 29350 } // end for yyj3 29351 r.ReadMapEnd() 29352 } 29353 29354 func (x *NodeServerInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29355 var h codecSelfer100 29356 z, r := codec1978.GenHelperDecoder(d) 29357 _, _, _ = h, z, r 29358 var yyj8 int 29359 var yyb8 bool 29360 var yyhl8 bool = l >= 0 29361 yyj8++ 29362 if yyhl8 { 29363 yyb8 = yyj8 > l 29364 } else { 29365 yyb8 = r.CheckBreak() 29366 } 29367 if yyb8 { 29368 r.ReadArrayEnd() 29369 return 29370 } 29371 r.ReadArrayElem() 29372 if r.TryDecodeAsNil() { 29373 x.RPCAdvertiseAddr = "" 29374 } else { 29375 x.RPCAdvertiseAddr = (string)(r.DecodeString()) 29376 } 29377 yyj8++ 29378 if yyhl8 { 29379 yyb8 = yyj8 > l 29380 } else { 29381 yyb8 = r.CheckBreak() 29382 } 29383 if yyb8 { 29384 r.ReadArrayEnd() 29385 return 29386 } 29387 r.ReadArrayElem() 29388 if r.TryDecodeAsNil() { 29389 x.RPCMajorVersion = 0 29390 } else { 29391 x.RPCMajorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 29392 } 29393 yyj8++ 29394 if yyhl8 { 29395 yyb8 = yyj8 > l 29396 } else { 29397 yyb8 = r.CheckBreak() 29398 } 29399 if yyb8 { 29400 r.ReadArrayEnd() 29401 return 29402 } 29403 r.ReadArrayElem() 29404 if r.TryDecodeAsNil() { 29405 x.RPCMinorVersion = 0 29406 } else { 29407 x.RPCMinorVersion = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 29408 } 29409 yyj8++ 29410 if yyhl8 { 29411 yyb8 = yyj8 > l 29412 } else { 29413 yyb8 = r.CheckBreak() 29414 } 29415 if yyb8 { 29416 r.ReadArrayEnd() 29417 return 29418 } 29419 r.ReadArrayElem() 29420 if r.TryDecodeAsNil() { 29421 x.Datacenter = "" 29422 } else { 29423 x.Datacenter = (string)(r.DecodeString()) 29424 } 29425 for { 29426 yyj8++ 29427 if yyhl8 { 29428 yyb8 = yyj8 > l 29429 } else { 29430 yyb8 = r.CheckBreak() 29431 } 29432 if yyb8 { 29433 break 29434 } 29435 r.ReadArrayElem() 29436 z.DecStructFieldNotFound(yyj8-1, "") 29437 } 29438 r.ReadArrayEnd() 29439 } 29440 29441 func (x *NodeUpdateStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { 29442 var h codecSelfer100 29443 z, r := codec1978.GenHelperEncoder(e) 29444 _, _, _ = h, z, r 29445 if x == nil { 29446 r.EncodeNil() 29447 } else { 29448 if false { 29449 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29450 z.EncExtension(x, yyxt1) 29451 } else { 29452 yysep2 := !z.EncBinary() 29453 yy2arr2 := z.EncBasicHandle().StructToArray 29454 _, _ = yysep2, yy2arr2 29455 const yyr2 bool = false // struct tag has 'toArray' 29456 if yyr2 || yy2arr2 { 29457 r.WriteArrayStart(8) 29458 } else { 29459 r.WriteMapStart(8) 29460 } 29461 if yyr2 || yy2arr2 { 29462 r.WriteArrayElem() 29463 if false { 29464 } else { 29465 if z.EncBasicHandle().StringToRaw { 29466 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29467 } else { 29468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29469 } 29470 } 29471 } else { 29472 r.WriteMapElemKey() 29473 if z.IsJSONHandle() { 29474 z.WriteStr("\"NodeID\"") 29475 } else { 29476 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 29477 } 29478 r.WriteMapElemValue() 29479 if false { 29480 } else { 29481 if z.EncBasicHandle().StringToRaw { 29482 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29483 } else { 29484 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29485 } 29486 } 29487 } 29488 if yyr2 || yy2arr2 { 29489 r.WriteArrayElem() 29490 if false { 29491 } else { 29492 if z.EncBasicHandle().StringToRaw { 29493 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 29494 } else { 29495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 29496 } 29497 } 29498 } else { 29499 r.WriteMapElemKey() 29500 if z.IsJSONHandle() { 29501 z.WriteStr("\"Status\"") 29502 } else { 29503 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 29504 } 29505 r.WriteMapElemValue() 29506 if false { 29507 } else { 29508 if z.EncBasicHandle().StringToRaw { 29509 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 29510 } else { 29511 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 29512 } 29513 } 29514 } 29515 var yyn9 bool 29516 if x.NodeEvent == nil { 29517 yyn9 = true 29518 goto LABEL9 29519 } 29520 LABEL9: 29521 if yyr2 || yy2arr2 { 29522 if yyn9 { 29523 r.WriteArrayElem() 29524 r.EncodeNil() 29525 } else { 29526 r.WriteArrayElem() 29527 if x.NodeEvent == nil { 29528 r.EncodeNil() 29529 } else { 29530 x.NodeEvent.CodecEncodeSelf(e) 29531 } 29532 } 29533 } else { 29534 r.WriteMapElemKey() 29535 if z.IsJSONHandle() { 29536 z.WriteStr("\"NodeEvent\"") 29537 } else { 29538 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 29539 } 29540 r.WriteMapElemValue() 29541 if yyn9 { 29542 r.EncodeNil() 29543 } else { 29544 if x.NodeEvent == nil { 29545 r.EncodeNil() 29546 } else { 29547 x.NodeEvent.CodecEncodeSelf(e) 29548 } 29549 } 29550 } 29551 if yyr2 || yy2arr2 { 29552 r.WriteArrayElem() 29553 if false { 29554 } else { 29555 r.EncodeInt(int64(x.UpdatedAt)) 29556 } 29557 } else { 29558 r.WriteMapElemKey() 29559 if z.IsJSONHandle() { 29560 z.WriteStr("\"UpdatedAt\"") 29561 } else { 29562 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 29563 } 29564 r.WriteMapElemValue() 29565 if false { 29566 } else { 29567 r.EncodeInt(int64(x.UpdatedAt)) 29568 } 29569 } 29570 if yyr2 || yy2arr2 { 29571 r.WriteArrayElem() 29572 if false { 29573 } else { 29574 if z.EncBasicHandle().StringToRaw { 29575 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29576 } else { 29577 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29578 } 29579 } 29580 } else { 29581 r.WriteMapElemKey() 29582 if z.IsJSONHandle() { 29583 z.WriteStr("\"Region\"") 29584 } else { 29585 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 29586 } 29587 r.WriteMapElemValue() 29588 if false { 29589 } else { 29590 if z.EncBasicHandle().StringToRaw { 29591 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 29592 } else { 29593 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 29594 } 29595 } 29596 } 29597 if yyr2 || yy2arr2 { 29598 r.WriteArrayElem() 29599 if false { 29600 } else { 29601 if z.EncBasicHandle().StringToRaw { 29602 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29603 } else { 29604 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29605 } 29606 } 29607 } else { 29608 r.WriteMapElemKey() 29609 if z.IsJSONHandle() { 29610 z.WriteStr("\"Namespace\"") 29611 } else { 29612 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 29613 } 29614 r.WriteMapElemValue() 29615 if false { 29616 } else { 29617 if z.EncBasicHandle().StringToRaw { 29618 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 29619 } else { 29620 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 29621 } 29622 } 29623 } 29624 if yyr2 || yy2arr2 { 29625 r.WriteArrayElem() 29626 if false { 29627 } else { 29628 if z.EncBasicHandle().StringToRaw { 29629 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29630 } else { 29631 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29632 } 29633 } 29634 } else { 29635 r.WriteMapElemKey() 29636 if z.IsJSONHandle() { 29637 z.WriteStr("\"AuthToken\"") 29638 } else { 29639 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 29640 } 29641 r.WriteMapElemValue() 29642 if false { 29643 } else { 29644 if z.EncBasicHandle().StringToRaw { 29645 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 29646 } else { 29647 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 29648 } 29649 } 29650 } 29651 if yyr2 || yy2arr2 { 29652 r.WriteArrayElem() 29653 if false { 29654 } else { 29655 r.EncodeBool(bool(x.Forwarded)) 29656 } 29657 } else { 29658 r.WriteMapElemKey() 29659 if z.IsJSONHandle() { 29660 z.WriteStr("\"Forwarded\"") 29661 } else { 29662 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 29663 } 29664 r.WriteMapElemValue() 29665 if false { 29666 } else { 29667 r.EncodeBool(bool(x.Forwarded)) 29668 } 29669 } 29670 if yyr2 || yy2arr2 { 29671 r.WriteArrayEnd() 29672 } else { 29673 r.WriteMapEnd() 29674 } 29675 } 29676 } 29677 } 29678 29679 func (x *NodeUpdateStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { 29680 var h codecSelfer100 29681 z, r := codec1978.GenHelperDecoder(d) 29682 _, _, _ = h, z, r 29683 if false { 29684 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29685 z.DecExtension(x, yyxt1) 29686 } else { 29687 yyct2 := r.ContainerType() 29688 if yyct2 == codecSelferValueTypeMap100 { 29689 yyl2 := r.ReadMapStart() 29690 if yyl2 == 0 { 29691 r.ReadMapEnd() 29692 } else { 29693 x.codecDecodeSelfFromMap(yyl2, d) 29694 } 29695 } else if yyct2 == codecSelferValueTypeArray100 { 29696 yyl2 := r.ReadArrayStart() 29697 if yyl2 == 0 { 29698 r.ReadArrayEnd() 29699 } else { 29700 x.codecDecodeSelfFromArray(yyl2, d) 29701 } 29702 } else { 29703 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 29704 } 29705 } 29706 } 29707 29708 func (x *NodeUpdateStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 29709 var h codecSelfer100 29710 z, r := codec1978.GenHelperDecoder(d) 29711 _, _, _ = h, z, r 29712 var yyhl3 bool = l >= 0 29713 for yyj3 := 0; ; yyj3++ { 29714 if yyhl3 { 29715 if yyj3 >= l { 29716 break 29717 } 29718 } else { 29719 if r.CheckBreak() { 29720 break 29721 } 29722 } 29723 r.ReadMapElemKey() 29724 yys3 := z.StringView(r.DecodeStringAsBytes()) 29725 r.ReadMapElemValue() 29726 switch yys3 { 29727 case "NodeID": 29728 if r.TryDecodeAsNil() { 29729 x.NodeID = "" 29730 } else { 29731 x.NodeID = (string)(r.DecodeString()) 29732 } 29733 case "Status": 29734 if r.TryDecodeAsNil() { 29735 x.Status = "" 29736 } else { 29737 x.Status = (string)(r.DecodeString()) 29738 } 29739 case "NodeEvent": 29740 if r.TryDecodeAsNil() { 29741 if true && x.NodeEvent != nil { 29742 x.NodeEvent = nil 29743 } 29744 } else { 29745 if x.NodeEvent == nil { 29746 x.NodeEvent = new(NodeEvent) 29747 } 29748 29749 x.NodeEvent.CodecDecodeSelf(d) 29750 } 29751 case "UpdatedAt": 29752 if r.TryDecodeAsNil() { 29753 x.UpdatedAt = 0 29754 } else { 29755 x.UpdatedAt = (int64)(r.DecodeInt64()) 29756 } 29757 case "Region": 29758 if r.TryDecodeAsNil() { 29759 x.WriteRequest.Region = "" 29760 } else { 29761 x.Region = (string)(r.DecodeString()) 29762 } 29763 case "Namespace": 29764 if r.TryDecodeAsNil() { 29765 x.WriteRequest.Namespace = "" 29766 } else { 29767 x.Namespace = (string)(r.DecodeString()) 29768 } 29769 case "AuthToken": 29770 if r.TryDecodeAsNil() { 29771 x.WriteRequest.AuthToken = "" 29772 } else { 29773 x.AuthToken = (string)(r.DecodeString()) 29774 } 29775 case "Forwarded": 29776 if r.TryDecodeAsNil() { 29777 x.WriteRequest.InternalRpcInfo.Forwarded = false 29778 } else { 29779 x.Forwarded = (bool)(r.DecodeBool()) 29780 } 29781 default: 29782 z.DecStructFieldNotFound(-1, yys3) 29783 } // end switch yys3 29784 } // end for yyj3 29785 r.ReadMapEnd() 29786 } 29787 29788 func (x *NodeUpdateStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 29789 var h codecSelfer100 29790 z, r := codec1978.GenHelperDecoder(d) 29791 _, _, _ = h, z, r 29792 var yyj12 int 29793 var yyb12 bool 29794 var yyhl12 bool = l >= 0 29795 yyj12++ 29796 if yyhl12 { 29797 yyb12 = yyj12 > l 29798 } else { 29799 yyb12 = r.CheckBreak() 29800 } 29801 if yyb12 { 29802 r.ReadArrayEnd() 29803 return 29804 } 29805 r.ReadArrayElem() 29806 if r.TryDecodeAsNil() { 29807 x.NodeID = "" 29808 } else { 29809 x.NodeID = (string)(r.DecodeString()) 29810 } 29811 yyj12++ 29812 if yyhl12 { 29813 yyb12 = yyj12 > l 29814 } else { 29815 yyb12 = r.CheckBreak() 29816 } 29817 if yyb12 { 29818 r.ReadArrayEnd() 29819 return 29820 } 29821 r.ReadArrayElem() 29822 if r.TryDecodeAsNil() { 29823 x.Status = "" 29824 } else { 29825 x.Status = (string)(r.DecodeString()) 29826 } 29827 yyj12++ 29828 if yyhl12 { 29829 yyb12 = yyj12 > l 29830 } else { 29831 yyb12 = r.CheckBreak() 29832 } 29833 if yyb12 { 29834 r.ReadArrayEnd() 29835 return 29836 } 29837 r.ReadArrayElem() 29838 if r.TryDecodeAsNil() { 29839 if true && x.NodeEvent != nil { 29840 x.NodeEvent = nil 29841 } 29842 } else { 29843 if x.NodeEvent == nil { 29844 x.NodeEvent = new(NodeEvent) 29845 } 29846 29847 x.NodeEvent.CodecDecodeSelf(d) 29848 } 29849 yyj12++ 29850 if yyhl12 { 29851 yyb12 = yyj12 > l 29852 } else { 29853 yyb12 = r.CheckBreak() 29854 } 29855 if yyb12 { 29856 r.ReadArrayEnd() 29857 return 29858 } 29859 r.ReadArrayElem() 29860 if r.TryDecodeAsNil() { 29861 x.UpdatedAt = 0 29862 } else { 29863 x.UpdatedAt = (int64)(r.DecodeInt64()) 29864 } 29865 yyj12++ 29866 if yyhl12 { 29867 yyb12 = yyj12 > l 29868 } else { 29869 yyb12 = r.CheckBreak() 29870 } 29871 if yyb12 { 29872 r.ReadArrayEnd() 29873 return 29874 } 29875 r.ReadArrayElem() 29876 if r.TryDecodeAsNil() { 29877 x.WriteRequest.Region = "" 29878 } else { 29879 x.Region = (string)(r.DecodeString()) 29880 } 29881 yyj12++ 29882 if yyhl12 { 29883 yyb12 = yyj12 > l 29884 } else { 29885 yyb12 = r.CheckBreak() 29886 } 29887 if yyb12 { 29888 r.ReadArrayEnd() 29889 return 29890 } 29891 r.ReadArrayElem() 29892 if r.TryDecodeAsNil() { 29893 x.WriteRequest.Namespace = "" 29894 } else { 29895 x.Namespace = (string)(r.DecodeString()) 29896 } 29897 yyj12++ 29898 if yyhl12 { 29899 yyb12 = yyj12 > l 29900 } else { 29901 yyb12 = r.CheckBreak() 29902 } 29903 if yyb12 { 29904 r.ReadArrayEnd() 29905 return 29906 } 29907 r.ReadArrayElem() 29908 if r.TryDecodeAsNil() { 29909 x.WriteRequest.AuthToken = "" 29910 } else { 29911 x.AuthToken = (string)(r.DecodeString()) 29912 } 29913 yyj12++ 29914 if yyhl12 { 29915 yyb12 = yyj12 > l 29916 } else { 29917 yyb12 = r.CheckBreak() 29918 } 29919 if yyb12 { 29920 r.ReadArrayEnd() 29921 return 29922 } 29923 r.ReadArrayElem() 29924 if r.TryDecodeAsNil() { 29925 x.WriteRequest.InternalRpcInfo.Forwarded = false 29926 } else { 29927 x.Forwarded = (bool)(r.DecodeBool()) 29928 } 29929 for { 29930 yyj12++ 29931 if yyhl12 { 29932 yyb12 = yyj12 > l 29933 } else { 29934 yyb12 = r.CheckBreak() 29935 } 29936 if yyb12 { 29937 break 29938 } 29939 r.ReadArrayElem() 29940 z.DecStructFieldNotFound(yyj12-1, "") 29941 } 29942 r.ReadArrayEnd() 29943 } 29944 29945 func (x *NodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { 29946 var h codecSelfer100 29947 z, r := codec1978.GenHelperEncoder(e) 29948 _, _, _ = h, z, r 29949 if x == nil { 29950 r.EncodeNil() 29951 } else { 29952 if false { 29953 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 29954 z.EncExtension(x, yyxt1) 29955 } else { 29956 yysep2 := !z.EncBinary() 29957 yy2arr2 := z.EncBasicHandle().StructToArray 29958 _, _ = yysep2, yy2arr2 29959 const yyr2 bool = false // struct tag has 'toArray' 29960 if yyr2 || yy2arr2 { 29961 r.WriteArrayStart(10) 29962 } else { 29963 r.WriteMapStart(10) 29964 } 29965 if yyr2 || yy2arr2 { 29966 r.WriteArrayElem() 29967 if false { 29968 } else { 29969 if z.EncBasicHandle().StringToRaw { 29970 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29971 } else { 29972 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29973 } 29974 } 29975 } else { 29976 r.WriteMapElemKey() 29977 if z.IsJSONHandle() { 29978 z.WriteStr("\"NodeID\"") 29979 } else { 29980 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 29981 } 29982 r.WriteMapElemValue() 29983 if false { 29984 } else { 29985 if z.EncBasicHandle().StringToRaw { 29986 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 29987 } else { 29988 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 29989 } 29990 } 29991 } 29992 var yyn6 bool 29993 if x.DrainStrategy == nil { 29994 yyn6 = true 29995 goto LABEL6 29996 } 29997 LABEL6: 29998 if yyr2 || yy2arr2 { 29999 if yyn6 { 30000 r.WriteArrayElem() 30001 r.EncodeNil() 30002 } else { 30003 r.WriteArrayElem() 30004 if x.DrainStrategy == nil { 30005 r.EncodeNil() 30006 } else { 30007 x.DrainStrategy.CodecEncodeSelf(e) 30008 } 30009 } 30010 } else { 30011 r.WriteMapElemKey() 30012 if z.IsJSONHandle() { 30013 z.WriteStr("\"DrainStrategy\"") 30014 } else { 30015 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 30016 } 30017 r.WriteMapElemValue() 30018 if yyn6 { 30019 r.EncodeNil() 30020 } else { 30021 if x.DrainStrategy == nil { 30022 r.EncodeNil() 30023 } else { 30024 x.DrainStrategy.CodecEncodeSelf(e) 30025 } 30026 } 30027 } 30028 if yyr2 || yy2arr2 { 30029 r.WriteArrayElem() 30030 if false { 30031 } else { 30032 r.EncodeBool(bool(x.Drain)) 30033 } 30034 } else { 30035 r.WriteMapElemKey() 30036 if z.IsJSONHandle() { 30037 z.WriteStr("\"Drain\"") 30038 } else { 30039 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 30040 } 30041 r.WriteMapElemValue() 30042 if false { 30043 } else { 30044 r.EncodeBool(bool(x.Drain)) 30045 } 30046 } 30047 if yyr2 || yy2arr2 { 30048 r.WriteArrayElem() 30049 if false { 30050 } else { 30051 r.EncodeBool(bool(x.MarkEligible)) 30052 } 30053 } else { 30054 r.WriteMapElemKey() 30055 if z.IsJSONHandle() { 30056 z.WriteStr("\"MarkEligible\"") 30057 } else { 30058 r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) 30059 } 30060 r.WriteMapElemValue() 30061 if false { 30062 } else { 30063 r.EncodeBool(bool(x.MarkEligible)) 30064 } 30065 } 30066 var yyn15 bool 30067 if x.NodeEvent == nil { 30068 yyn15 = true 30069 goto LABEL15 30070 } 30071 LABEL15: 30072 if yyr2 || yy2arr2 { 30073 if yyn15 { 30074 r.WriteArrayElem() 30075 r.EncodeNil() 30076 } else { 30077 r.WriteArrayElem() 30078 if x.NodeEvent == nil { 30079 r.EncodeNil() 30080 } else { 30081 x.NodeEvent.CodecEncodeSelf(e) 30082 } 30083 } 30084 } else { 30085 r.WriteMapElemKey() 30086 if z.IsJSONHandle() { 30087 z.WriteStr("\"NodeEvent\"") 30088 } else { 30089 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 30090 } 30091 r.WriteMapElemValue() 30092 if yyn15 { 30093 r.EncodeNil() 30094 } else { 30095 if x.NodeEvent == nil { 30096 r.EncodeNil() 30097 } else { 30098 x.NodeEvent.CodecEncodeSelf(e) 30099 } 30100 } 30101 } 30102 if yyr2 || yy2arr2 { 30103 r.WriteArrayElem() 30104 if false { 30105 } else { 30106 r.EncodeInt(int64(x.UpdatedAt)) 30107 } 30108 } else { 30109 r.WriteMapElemKey() 30110 if z.IsJSONHandle() { 30111 z.WriteStr("\"UpdatedAt\"") 30112 } else { 30113 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 30114 } 30115 r.WriteMapElemValue() 30116 if false { 30117 } else { 30118 r.EncodeInt(int64(x.UpdatedAt)) 30119 } 30120 } 30121 if yyr2 || yy2arr2 { 30122 r.WriteArrayElem() 30123 if false { 30124 } else { 30125 if z.EncBasicHandle().StringToRaw { 30126 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30127 } else { 30128 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30129 } 30130 } 30131 } else { 30132 r.WriteMapElemKey() 30133 if z.IsJSONHandle() { 30134 z.WriteStr("\"Region\"") 30135 } else { 30136 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 30137 } 30138 r.WriteMapElemValue() 30139 if false { 30140 } else { 30141 if z.EncBasicHandle().StringToRaw { 30142 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30143 } else { 30144 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30145 } 30146 } 30147 } 30148 if yyr2 || yy2arr2 { 30149 r.WriteArrayElem() 30150 if false { 30151 } else { 30152 if z.EncBasicHandle().StringToRaw { 30153 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30154 } else { 30155 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30156 } 30157 } 30158 } else { 30159 r.WriteMapElemKey() 30160 if z.IsJSONHandle() { 30161 z.WriteStr("\"Namespace\"") 30162 } else { 30163 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 30164 } 30165 r.WriteMapElemValue() 30166 if false { 30167 } else { 30168 if z.EncBasicHandle().StringToRaw { 30169 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30170 } else { 30171 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30172 } 30173 } 30174 } 30175 if yyr2 || yy2arr2 { 30176 r.WriteArrayElem() 30177 if false { 30178 } else { 30179 if z.EncBasicHandle().StringToRaw { 30180 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30181 } else { 30182 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30183 } 30184 } 30185 } else { 30186 r.WriteMapElemKey() 30187 if z.IsJSONHandle() { 30188 z.WriteStr("\"AuthToken\"") 30189 } else { 30190 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 30191 } 30192 r.WriteMapElemValue() 30193 if false { 30194 } else { 30195 if z.EncBasicHandle().StringToRaw { 30196 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30197 } else { 30198 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30199 } 30200 } 30201 } 30202 if yyr2 || yy2arr2 { 30203 r.WriteArrayElem() 30204 if false { 30205 } else { 30206 r.EncodeBool(bool(x.Forwarded)) 30207 } 30208 } else { 30209 r.WriteMapElemKey() 30210 if z.IsJSONHandle() { 30211 z.WriteStr("\"Forwarded\"") 30212 } else { 30213 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 30214 } 30215 r.WriteMapElemValue() 30216 if false { 30217 } else { 30218 r.EncodeBool(bool(x.Forwarded)) 30219 } 30220 } 30221 if yyr2 || yy2arr2 { 30222 r.WriteArrayEnd() 30223 } else { 30224 r.WriteMapEnd() 30225 } 30226 } 30227 } 30228 } 30229 30230 func (x *NodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { 30231 var h codecSelfer100 30232 z, r := codec1978.GenHelperDecoder(d) 30233 _, _, _ = h, z, r 30234 if false { 30235 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30236 z.DecExtension(x, yyxt1) 30237 } else { 30238 yyct2 := r.ContainerType() 30239 if yyct2 == codecSelferValueTypeMap100 { 30240 yyl2 := r.ReadMapStart() 30241 if yyl2 == 0 { 30242 r.ReadMapEnd() 30243 } else { 30244 x.codecDecodeSelfFromMap(yyl2, d) 30245 } 30246 } else if yyct2 == codecSelferValueTypeArray100 { 30247 yyl2 := r.ReadArrayStart() 30248 if yyl2 == 0 { 30249 r.ReadArrayEnd() 30250 } else { 30251 x.codecDecodeSelfFromArray(yyl2, d) 30252 } 30253 } else { 30254 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 30255 } 30256 } 30257 } 30258 30259 func (x *NodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 30260 var h codecSelfer100 30261 z, r := codec1978.GenHelperDecoder(d) 30262 _, _, _ = h, z, r 30263 var yyhl3 bool = l >= 0 30264 for yyj3 := 0; ; yyj3++ { 30265 if yyhl3 { 30266 if yyj3 >= l { 30267 break 30268 } 30269 } else { 30270 if r.CheckBreak() { 30271 break 30272 } 30273 } 30274 r.ReadMapElemKey() 30275 yys3 := z.StringView(r.DecodeStringAsBytes()) 30276 r.ReadMapElemValue() 30277 switch yys3 { 30278 case "NodeID": 30279 if r.TryDecodeAsNil() { 30280 x.NodeID = "" 30281 } else { 30282 x.NodeID = (string)(r.DecodeString()) 30283 } 30284 case "DrainStrategy": 30285 if r.TryDecodeAsNil() { 30286 if true && x.DrainStrategy != nil { 30287 x.DrainStrategy = nil 30288 } 30289 } else { 30290 if x.DrainStrategy == nil { 30291 x.DrainStrategy = new(DrainStrategy) 30292 } 30293 30294 x.DrainStrategy.CodecDecodeSelf(d) 30295 } 30296 case "Drain": 30297 if r.TryDecodeAsNil() { 30298 x.Drain = false 30299 } else { 30300 x.Drain = (bool)(r.DecodeBool()) 30301 } 30302 case "MarkEligible": 30303 if r.TryDecodeAsNil() { 30304 x.MarkEligible = false 30305 } else { 30306 x.MarkEligible = (bool)(r.DecodeBool()) 30307 } 30308 case "NodeEvent": 30309 if r.TryDecodeAsNil() { 30310 if true && x.NodeEvent != nil { 30311 x.NodeEvent = nil 30312 } 30313 } else { 30314 if x.NodeEvent == nil { 30315 x.NodeEvent = new(NodeEvent) 30316 } 30317 30318 x.NodeEvent.CodecDecodeSelf(d) 30319 } 30320 case "UpdatedAt": 30321 if r.TryDecodeAsNil() { 30322 x.UpdatedAt = 0 30323 } else { 30324 x.UpdatedAt = (int64)(r.DecodeInt64()) 30325 } 30326 case "Region": 30327 if r.TryDecodeAsNil() { 30328 x.WriteRequest.Region = "" 30329 } else { 30330 x.Region = (string)(r.DecodeString()) 30331 } 30332 case "Namespace": 30333 if r.TryDecodeAsNil() { 30334 x.WriteRequest.Namespace = "" 30335 } else { 30336 x.Namespace = (string)(r.DecodeString()) 30337 } 30338 case "AuthToken": 30339 if r.TryDecodeAsNil() { 30340 x.WriteRequest.AuthToken = "" 30341 } else { 30342 x.AuthToken = (string)(r.DecodeString()) 30343 } 30344 case "Forwarded": 30345 if r.TryDecodeAsNil() { 30346 x.WriteRequest.InternalRpcInfo.Forwarded = false 30347 } else { 30348 x.Forwarded = (bool)(r.DecodeBool()) 30349 } 30350 default: 30351 z.DecStructFieldNotFound(-1, yys3) 30352 } // end switch yys3 30353 } // end for yyj3 30354 r.ReadMapEnd() 30355 } 30356 30357 func (x *NodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 30358 var h codecSelfer100 30359 z, r := codec1978.GenHelperDecoder(d) 30360 _, _, _ = h, z, r 30361 var yyj14 int 30362 var yyb14 bool 30363 var yyhl14 bool = l >= 0 30364 yyj14++ 30365 if yyhl14 { 30366 yyb14 = yyj14 > l 30367 } else { 30368 yyb14 = r.CheckBreak() 30369 } 30370 if yyb14 { 30371 r.ReadArrayEnd() 30372 return 30373 } 30374 r.ReadArrayElem() 30375 if r.TryDecodeAsNil() { 30376 x.NodeID = "" 30377 } else { 30378 x.NodeID = (string)(r.DecodeString()) 30379 } 30380 yyj14++ 30381 if yyhl14 { 30382 yyb14 = yyj14 > l 30383 } else { 30384 yyb14 = r.CheckBreak() 30385 } 30386 if yyb14 { 30387 r.ReadArrayEnd() 30388 return 30389 } 30390 r.ReadArrayElem() 30391 if r.TryDecodeAsNil() { 30392 if true && x.DrainStrategy != nil { 30393 x.DrainStrategy = nil 30394 } 30395 } else { 30396 if x.DrainStrategy == nil { 30397 x.DrainStrategy = new(DrainStrategy) 30398 } 30399 30400 x.DrainStrategy.CodecDecodeSelf(d) 30401 } 30402 yyj14++ 30403 if yyhl14 { 30404 yyb14 = yyj14 > l 30405 } else { 30406 yyb14 = r.CheckBreak() 30407 } 30408 if yyb14 { 30409 r.ReadArrayEnd() 30410 return 30411 } 30412 r.ReadArrayElem() 30413 if r.TryDecodeAsNil() { 30414 x.Drain = false 30415 } else { 30416 x.Drain = (bool)(r.DecodeBool()) 30417 } 30418 yyj14++ 30419 if yyhl14 { 30420 yyb14 = yyj14 > l 30421 } else { 30422 yyb14 = r.CheckBreak() 30423 } 30424 if yyb14 { 30425 r.ReadArrayEnd() 30426 return 30427 } 30428 r.ReadArrayElem() 30429 if r.TryDecodeAsNil() { 30430 x.MarkEligible = false 30431 } else { 30432 x.MarkEligible = (bool)(r.DecodeBool()) 30433 } 30434 yyj14++ 30435 if yyhl14 { 30436 yyb14 = yyj14 > l 30437 } else { 30438 yyb14 = r.CheckBreak() 30439 } 30440 if yyb14 { 30441 r.ReadArrayEnd() 30442 return 30443 } 30444 r.ReadArrayElem() 30445 if r.TryDecodeAsNil() { 30446 if true && x.NodeEvent != nil { 30447 x.NodeEvent = nil 30448 } 30449 } else { 30450 if x.NodeEvent == nil { 30451 x.NodeEvent = new(NodeEvent) 30452 } 30453 30454 x.NodeEvent.CodecDecodeSelf(d) 30455 } 30456 yyj14++ 30457 if yyhl14 { 30458 yyb14 = yyj14 > l 30459 } else { 30460 yyb14 = r.CheckBreak() 30461 } 30462 if yyb14 { 30463 r.ReadArrayEnd() 30464 return 30465 } 30466 r.ReadArrayElem() 30467 if r.TryDecodeAsNil() { 30468 x.UpdatedAt = 0 30469 } else { 30470 x.UpdatedAt = (int64)(r.DecodeInt64()) 30471 } 30472 yyj14++ 30473 if yyhl14 { 30474 yyb14 = yyj14 > l 30475 } else { 30476 yyb14 = r.CheckBreak() 30477 } 30478 if yyb14 { 30479 r.ReadArrayEnd() 30480 return 30481 } 30482 r.ReadArrayElem() 30483 if r.TryDecodeAsNil() { 30484 x.WriteRequest.Region = "" 30485 } else { 30486 x.Region = (string)(r.DecodeString()) 30487 } 30488 yyj14++ 30489 if yyhl14 { 30490 yyb14 = yyj14 > l 30491 } else { 30492 yyb14 = r.CheckBreak() 30493 } 30494 if yyb14 { 30495 r.ReadArrayEnd() 30496 return 30497 } 30498 r.ReadArrayElem() 30499 if r.TryDecodeAsNil() { 30500 x.WriteRequest.Namespace = "" 30501 } else { 30502 x.Namespace = (string)(r.DecodeString()) 30503 } 30504 yyj14++ 30505 if yyhl14 { 30506 yyb14 = yyj14 > l 30507 } else { 30508 yyb14 = r.CheckBreak() 30509 } 30510 if yyb14 { 30511 r.ReadArrayEnd() 30512 return 30513 } 30514 r.ReadArrayElem() 30515 if r.TryDecodeAsNil() { 30516 x.WriteRequest.AuthToken = "" 30517 } else { 30518 x.AuthToken = (string)(r.DecodeString()) 30519 } 30520 yyj14++ 30521 if yyhl14 { 30522 yyb14 = yyj14 > l 30523 } else { 30524 yyb14 = r.CheckBreak() 30525 } 30526 if yyb14 { 30527 r.ReadArrayEnd() 30528 return 30529 } 30530 r.ReadArrayElem() 30531 if r.TryDecodeAsNil() { 30532 x.WriteRequest.InternalRpcInfo.Forwarded = false 30533 } else { 30534 x.Forwarded = (bool)(r.DecodeBool()) 30535 } 30536 for { 30537 yyj14++ 30538 if yyhl14 { 30539 yyb14 = yyj14 > l 30540 } else { 30541 yyb14 = r.CheckBreak() 30542 } 30543 if yyb14 { 30544 break 30545 } 30546 r.ReadArrayElem() 30547 z.DecStructFieldNotFound(yyj14-1, "") 30548 } 30549 r.ReadArrayEnd() 30550 } 30551 30552 func (x *BatchNodeUpdateDrainRequest) CodecEncodeSelf(e *codec1978.Encoder) { 30553 var h codecSelfer100 30554 z, r := codec1978.GenHelperEncoder(e) 30555 _, _, _ = h, z, r 30556 if x == nil { 30557 r.EncodeNil() 30558 } else { 30559 if false { 30560 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30561 z.EncExtension(x, yyxt1) 30562 } else { 30563 yysep2 := !z.EncBinary() 30564 yy2arr2 := z.EncBasicHandle().StructToArray 30565 _, _ = yysep2, yy2arr2 30566 const yyr2 bool = false // struct tag has 'toArray' 30567 if yyr2 || yy2arr2 { 30568 r.WriteArrayStart(7) 30569 } else { 30570 r.WriteMapStart(7) 30571 } 30572 if yyr2 || yy2arr2 { 30573 r.WriteArrayElem() 30574 if x.Updates == nil { 30575 r.EncodeNil() 30576 } else { 30577 if false { 30578 } else { 30579 h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) 30580 } 30581 } 30582 } else { 30583 r.WriteMapElemKey() 30584 if z.IsJSONHandle() { 30585 z.WriteStr("\"Updates\"") 30586 } else { 30587 r.EncodeStringEnc(codecSelferCcUTF8100, `Updates`) 30588 } 30589 r.WriteMapElemValue() 30590 if x.Updates == nil { 30591 r.EncodeNil() 30592 } else { 30593 if false { 30594 } else { 30595 h.encMapstringPtrtoDrainUpdate((map[string]*DrainUpdate)(x.Updates), e) 30596 } 30597 } 30598 } 30599 if yyr2 || yy2arr2 { 30600 r.WriteArrayElem() 30601 if x.NodeEvents == nil { 30602 r.EncodeNil() 30603 } else { 30604 if false { 30605 } else { 30606 h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) 30607 } 30608 } 30609 } else { 30610 r.WriteMapElemKey() 30611 if z.IsJSONHandle() { 30612 z.WriteStr("\"NodeEvents\"") 30613 } else { 30614 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) 30615 } 30616 r.WriteMapElemValue() 30617 if x.NodeEvents == nil { 30618 r.EncodeNil() 30619 } else { 30620 if false { 30621 } else { 30622 h.encMapstringPtrtoNodeEvent((map[string]*NodeEvent)(x.NodeEvents), e) 30623 } 30624 } 30625 } 30626 if yyr2 || yy2arr2 { 30627 r.WriteArrayElem() 30628 if false { 30629 } else { 30630 r.EncodeInt(int64(x.UpdatedAt)) 30631 } 30632 } else { 30633 r.WriteMapElemKey() 30634 if z.IsJSONHandle() { 30635 z.WriteStr("\"UpdatedAt\"") 30636 } else { 30637 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 30638 } 30639 r.WriteMapElemValue() 30640 if false { 30641 } else { 30642 r.EncodeInt(int64(x.UpdatedAt)) 30643 } 30644 } 30645 if yyr2 || yy2arr2 { 30646 r.WriteArrayElem() 30647 if false { 30648 } else { 30649 if z.EncBasicHandle().StringToRaw { 30650 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30651 } else { 30652 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30653 } 30654 } 30655 } else { 30656 r.WriteMapElemKey() 30657 if z.IsJSONHandle() { 30658 z.WriteStr("\"Region\"") 30659 } else { 30660 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 30661 } 30662 r.WriteMapElemValue() 30663 if false { 30664 } else { 30665 if z.EncBasicHandle().StringToRaw { 30666 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 30667 } else { 30668 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 30669 } 30670 } 30671 } 30672 if yyr2 || yy2arr2 { 30673 r.WriteArrayElem() 30674 if false { 30675 } else { 30676 if z.EncBasicHandle().StringToRaw { 30677 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30678 } else { 30679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30680 } 30681 } 30682 } else { 30683 r.WriteMapElemKey() 30684 if z.IsJSONHandle() { 30685 z.WriteStr("\"Namespace\"") 30686 } else { 30687 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 30688 } 30689 r.WriteMapElemValue() 30690 if false { 30691 } else { 30692 if z.EncBasicHandle().StringToRaw { 30693 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 30694 } else { 30695 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 30696 } 30697 } 30698 } 30699 if yyr2 || yy2arr2 { 30700 r.WriteArrayElem() 30701 if false { 30702 } else { 30703 if z.EncBasicHandle().StringToRaw { 30704 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30705 } else { 30706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30707 } 30708 } 30709 } else { 30710 r.WriteMapElemKey() 30711 if z.IsJSONHandle() { 30712 z.WriteStr("\"AuthToken\"") 30713 } else { 30714 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 30715 } 30716 r.WriteMapElemValue() 30717 if false { 30718 } else { 30719 if z.EncBasicHandle().StringToRaw { 30720 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 30721 } else { 30722 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 30723 } 30724 } 30725 } 30726 if yyr2 || yy2arr2 { 30727 r.WriteArrayElem() 30728 if false { 30729 } else { 30730 r.EncodeBool(bool(x.Forwarded)) 30731 } 30732 } else { 30733 r.WriteMapElemKey() 30734 if z.IsJSONHandle() { 30735 z.WriteStr("\"Forwarded\"") 30736 } else { 30737 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 30738 } 30739 r.WriteMapElemValue() 30740 if false { 30741 } else { 30742 r.EncodeBool(bool(x.Forwarded)) 30743 } 30744 } 30745 if yyr2 || yy2arr2 { 30746 r.WriteArrayEnd() 30747 } else { 30748 r.WriteMapEnd() 30749 } 30750 } 30751 } 30752 } 30753 30754 func (x *BatchNodeUpdateDrainRequest) CodecDecodeSelf(d *codec1978.Decoder) { 30755 var h codecSelfer100 30756 z, r := codec1978.GenHelperDecoder(d) 30757 _, _, _ = h, z, r 30758 if false { 30759 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 30760 z.DecExtension(x, yyxt1) 30761 } else { 30762 yyct2 := r.ContainerType() 30763 if yyct2 == codecSelferValueTypeMap100 { 30764 yyl2 := r.ReadMapStart() 30765 if yyl2 == 0 { 30766 r.ReadMapEnd() 30767 } else { 30768 x.codecDecodeSelfFromMap(yyl2, d) 30769 } 30770 } else if yyct2 == codecSelferValueTypeArray100 { 30771 yyl2 := r.ReadArrayStart() 30772 if yyl2 == 0 { 30773 r.ReadArrayEnd() 30774 } else { 30775 x.codecDecodeSelfFromArray(yyl2, d) 30776 } 30777 } else { 30778 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 30779 } 30780 } 30781 } 30782 30783 func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 30784 var h codecSelfer100 30785 z, r := codec1978.GenHelperDecoder(d) 30786 _, _, _ = h, z, r 30787 var yyhl3 bool = l >= 0 30788 for yyj3 := 0; ; yyj3++ { 30789 if yyhl3 { 30790 if yyj3 >= l { 30791 break 30792 } 30793 } else { 30794 if r.CheckBreak() { 30795 break 30796 } 30797 } 30798 r.ReadMapElemKey() 30799 yys3 := z.StringView(r.DecodeStringAsBytes()) 30800 r.ReadMapElemValue() 30801 switch yys3 { 30802 case "Updates": 30803 if r.TryDecodeAsNil() { 30804 x.Updates = nil 30805 } else { 30806 if false { 30807 } else { 30808 h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) 30809 } 30810 } 30811 case "NodeEvents": 30812 if r.TryDecodeAsNil() { 30813 x.NodeEvents = nil 30814 } else { 30815 if false { 30816 } else { 30817 h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) 30818 } 30819 } 30820 case "UpdatedAt": 30821 if r.TryDecodeAsNil() { 30822 x.UpdatedAt = 0 30823 } else { 30824 x.UpdatedAt = (int64)(r.DecodeInt64()) 30825 } 30826 case "Region": 30827 if r.TryDecodeAsNil() { 30828 x.WriteRequest.Region = "" 30829 } else { 30830 x.Region = (string)(r.DecodeString()) 30831 } 30832 case "Namespace": 30833 if r.TryDecodeAsNil() { 30834 x.WriteRequest.Namespace = "" 30835 } else { 30836 x.Namespace = (string)(r.DecodeString()) 30837 } 30838 case "AuthToken": 30839 if r.TryDecodeAsNil() { 30840 x.WriteRequest.AuthToken = "" 30841 } else { 30842 x.AuthToken = (string)(r.DecodeString()) 30843 } 30844 case "Forwarded": 30845 if r.TryDecodeAsNil() { 30846 x.WriteRequest.InternalRpcInfo.Forwarded = false 30847 } else { 30848 x.Forwarded = (bool)(r.DecodeBool()) 30849 } 30850 default: 30851 z.DecStructFieldNotFound(-1, yys3) 30852 } // end switch yys3 30853 } // end for yyj3 30854 r.ReadMapEnd() 30855 } 30856 30857 func (x *BatchNodeUpdateDrainRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 30858 var h codecSelfer100 30859 z, r := codec1978.GenHelperDecoder(d) 30860 _, _, _ = h, z, r 30861 var yyj13 int 30862 var yyb13 bool 30863 var yyhl13 bool = l >= 0 30864 yyj13++ 30865 if yyhl13 { 30866 yyb13 = yyj13 > l 30867 } else { 30868 yyb13 = r.CheckBreak() 30869 } 30870 if yyb13 { 30871 r.ReadArrayEnd() 30872 return 30873 } 30874 r.ReadArrayElem() 30875 if r.TryDecodeAsNil() { 30876 x.Updates = nil 30877 } else { 30878 if false { 30879 } else { 30880 h.decMapstringPtrtoDrainUpdate((*map[string]*DrainUpdate)(&x.Updates), d) 30881 } 30882 } 30883 yyj13++ 30884 if yyhl13 { 30885 yyb13 = yyj13 > l 30886 } else { 30887 yyb13 = r.CheckBreak() 30888 } 30889 if yyb13 { 30890 r.ReadArrayEnd() 30891 return 30892 } 30893 r.ReadArrayElem() 30894 if r.TryDecodeAsNil() { 30895 x.NodeEvents = nil 30896 } else { 30897 if false { 30898 } else { 30899 h.decMapstringPtrtoNodeEvent((*map[string]*NodeEvent)(&x.NodeEvents), d) 30900 } 30901 } 30902 yyj13++ 30903 if yyhl13 { 30904 yyb13 = yyj13 > l 30905 } else { 30906 yyb13 = r.CheckBreak() 30907 } 30908 if yyb13 { 30909 r.ReadArrayEnd() 30910 return 30911 } 30912 r.ReadArrayElem() 30913 if r.TryDecodeAsNil() { 30914 x.UpdatedAt = 0 30915 } else { 30916 x.UpdatedAt = (int64)(r.DecodeInt64()) 30917 } 30918 yyj13++ 30919 if yyhl13 { 30920 yyb13 = yyj13 > l 30921 } else { 30922 yyb13 = r.CheckBreak() 30923 } 30924 if yyb13 { 30925 r.ReadArrayEnd() 30926 return 30927 } 30928 r.ReadArrayElem() 30929 if r.TryDecodeAsNil() { 30930 x.WriteRequest.Region = "" 30931 } else { 30932 x.Region = (string)(r.DecodeString()) 30933 } 30934 yyj13++ 30935 if yyhl13 { 30936 yyb13 = yyj13 > l 30937 } else { 30938 yyb13 = r.CheckBreak() 30939 } 30940 if yyb13 { 30941 r.ReadArrayEnd() 30942 return 30943 } 30944 r.ReadArrayElem() 30945 if r.TryDecodeAsNil() { 30946 x.WriteRequest.Namespace = "" 30947 } else { 30948 x.Namespace = (string)(r.DecodeString()) 30949 } 30950 yyj13++ 30951 if yyhl13 { 30952 yyb13 = yyj13 > l 30953 } else { 30954 yyb13 = r.CheckBreak() 30955 } 30956 if yyb13 { 30957 r.ReadArrayEnd() 30958 return 30959 } 30960 r.ReadArrayElem() 30961 if r.TryDecodeAsNil() { 30962 x.WriteRequest.AuthToken = "" 30963 } else { 30964 x.AuthToken = (string)(r.DecodeString()) 30965 } 30966 yyj13++ 30967 if yyhl13 { 30968 yyb13 = yyj13 > l 30969 } else { 30970 yyb13 = r.CheckBreak() 30971 } 30972 if yyb13 { 30973 r.ReadArrayEnd() 30974 return 30975 } 30976 r.ReadArrayElem() 30977 if r.TryDecodeAsNil() { 30978 x.WriteRequest.InternalRpcInfo.Forwarded = false 30979 } else { 30980 x.Forwarded = (bool)(r.DecodeBool()) 30981 } 30982 for { 30983 yyj13++ 30984 if yyhl13 { 30985 yyb13 = yyj13 > l 30986 } else { 30987 yyb13 = r.CheckBreak() 30988 } 30989 if yyb13 { 30990 break 30991 } 30992 r.ReadArrayElem() 30993 z.DecStructFieldNotFound(yyj13-1, "") 30994 } 30995 r.ReadArrayEnd() 30996 } 30997 30998 func (x *DrainUpdate) CodecEncodeSelf(e *codec1978.Encoder) { 30999 var h codecSelfer100 31000 z, r := codec1978.GenHelperEncoder(e) 31001 _, _, _ = h, z, r 31002 if x == nil { 31003 r.EncodeNil() 31004 } else { 31005 if false { 31006 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31007 z.EncExtension(x, yyxt1) 31008 } else { 31009 yysep2 := !z.EncBinary() 31010 yy2arr2 := z.EncBasicHandle().StructToArray 31011 _, _ = yysep2, yy2arr2 31012 const yyr2 bool = false // struct tag has 'toArray' 31013 if yyr2 || yy2arr2 { 31014 r.WriteArrayStart(2) 31015 } else { 31016 r.WriteMapStart(2) 31017 } 31018 var yyn3 bool 31019 if x.DrainStrategy == nil { 31020 yyn3 = true 31021 goto LABEL3 31022 } 31023 LABEL3: 31024 if yyr2 || yy2arr2 { 31025 if yyn3 { 31026 r.WriteArrayElem() 31027 r.EncodeNil() 31028 } else { 31029 r.WriteArrayElem() 31030 if x.DrainStrategy == nil { 31031 r.EncodeNil() 31032 } else { 31033 x.DrainStrategy.CodecEncodeSelf(e) 31034 } 31035 } 31036 } else { 31037 r.WriteMapElemKey() 31038 if z.IsJSONHandle() { 31039 z.WriteStr("\"DrainStrategy\"") 31040 } else { 31041 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 31042 } 31043 r.WriteMapElemValue() 31044 if yyn3 { 31045 r.EncodeNil() 31046 } else { 31047 if x.DrainStrategy == nil { 31048 r.EncodeNil() 31049 } else { 31050 x.DrainStrategy.CodecEncodeSelf(e) 31051 } 31052 } 31053 } 31054 if yyr2 || yy2arr2 { 31055 r.WriteArrayElem() 31056 if false { 31057 } else { 31058 r.EncodeBool(bool(x.MarkEligible)) 31059 } 31060 } else { 31061 r.WriteMapElemKey() 31062 if z.IsJSONHandle() { 31063 z.WriteStr("\"MarkEligible\"") 31064 } else { 31065 r.EncodeStringEnc(codecSelferCcUTF8100, `MarkEligible`) 31066 } 31067 r.WriteMapElemValue() 31068 if false { 31069 } else { 31070 r.EncodeBool(bool(x.MarkEligible)) 31071 } 31072 } 31073 if yyr2 || yy2arr2 { 31074 r.WriteArrayEnd() 31075 } else { 31076 r.WriteMapEnd() 31077 } 31078 } 31079 } 31080 } 31081 31082 func (x *DrainUpdate) CodecDecodeSelf(d *codec1978.Decoder) { 31083 var h codecSelfer100 31084 z, r := codec1978.GenHelperDecoder(d) 31085 _, _, _ = h, z, r 31086 if false { 31087 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31088 z.DecExtension(x, yyxt1) 31089 } else { 31090 yyct2 := r.ContainerType() 31091 if yyct2 == codecSelferValueTypeMap100 { 31092 yyl2 := r.ReadMapStart() 31093 if yyl2 == 0 { 31094 r.ReadMapEnd() 31095 } else { 31096 x.codecDecodeSelfFromMap(yyl2, d) 31097 } 31098 } else if yyct2 == codecSelferValueTypeArray100 { 31099 yyl2 := r.ReadArrayStart() 31100 if yyl2 == 0 { 31101 r.ReadArrayEnd() 31102 } else { 31103 x.codecDecodeSelfFromArray(yyl2, d) 31104 } 31105 } else { 31106 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 31107 } 31108 } 31109 } 31110 31111 func (x *DrainUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 31112 var h codecSelfer100 31113 z, r := codec1978.GenHelperDecoder(d) 31114 _, _, _ = h, z, r 31115 var yyhl3 bool = l >= 0 31116 for yyj3 := 0; ; yyj3++ { 31117 if yyhl3 { 31118 if yyj3 >= l { 31119 break 31120 } 31121 } else { 31122 if r.CheckBreak() { 31123 break 31124 } 31125 } 31126 r.ReadMapElemKey() 31127 yys3 := z.StringView(r.DecodeStringAsBytes()) 31128 r.ReadMapElemValue() 31129 switch yys3 { 31130 case "DrainStrategy": 31131 if r.TryDecodeAsNil() { 31132 if true && x.DrainStrategy != nil { 31133 x.DrainStrategy = nil 31134 } 31135 } else { 31136 if x.DrainStrategy == nil { 31137 x.DrainStrategy = new(DrainStrategy) 31138 } 31139 31140 x.DrainStrategy.CodecDecodeSelf(d) 31141 } 31142 case "MarkEligible": 31143 if r.TryDecodeAsNil() { 31144 x.MarkEligible = false 31145 } else { 31146 x.MarkEligible = (bool)(r.DecodeBool()) 31147 } 31148 default: 31149 z.DecStructFieldNotFound(-1, yys3) 31150 } // end switch yys3 31151 } // end for yyj3 31152 r.ReadMapEnd() 31153 } 31154 31155 func (x *DrainUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 31156 var h codecSelfer100 31157 z, r := codec1978.GenHelperDecoder(d) 31158 _, _, _ = h, z, r 31159 var yyj6 int 31160 var yyb6 bool 31161 var yyhl6 bool = l >= 0 31162 yyj6++ 31163 if yyhl6 { 31164 yyb6 = yyj6 > l 31165 } else { 31166 yyb6 = r.CheckBreak() 31167 } 31168 if yyb6 { 31169 r.ReadArrayEnd() 31170 return 31171 } 31172 r.ReadArrayElem() 31173 if r.TryDecodeAsNil() { 31174 if true && x.DrainStrategy != nil { 31175 x.DrainStrategy = nil 31176 } 31177 } else { 31178 if x.DrainStrategy == nil { 31179 x.DrainStrategy = new(DrainStrategy) 31180 } 31181 31182 x.DrainStrategy.CodecDecodeSelf(d) 31183 } 31184 yyj6++ 31185 if yyhl6 { 31186 yyb6 = yyj6 > l 31187 } else { 31188 yyb6 = r.CheckBreak() 31189 } 31190 if yyb6 { 31191 r.ReadArrayEnd() 31192 return 31193 } 31194 r.ReadArrayElem() 31195 if r.TryDecodeAsNil() { 31196 x.MarkEligible = false 31197 } else { 31198 x.MarkEligible = (bool)(r.DecodeBool()) 31199 } 31200 for { 31201 yyj6++ 31202 if yyhl6 { 31203 yyb6 = yyj6 > l 31204 } else { 31205 yyb6 = r.CheckBreak() 31206 } 31207 if yyb6 { 31208 break 31209 } 31210 r.ReadArrayElem() 31211 z.DecStructFieldNotFound(yyj6-1, "") 31212 } 31213 r.ReadArrayEnd() 31214 } 31215 31216 func (x *NodeUpdateEligibilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { 31217 var h codecSelfer100 31218 z, r := codec1978.GenHelperEncoder(e) 31219 _, _, _ = h, z, r 31220 if x == nil { 31221 r.EncodeNil() 31222 } else { 31223 if false { 31224 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31225 z.EncExtension(x, yyxt1) 31226 } else { 31227 yysep2 := !z.EncBinary() 31228 yy2arr2 := z.EncBasicHandle().StructToArray 31229 _, _ = yysep2, yy2arr2 31230 const yyr2 bool = false // struct tag has 'toArray' 31231 if yyr2 || yy2arr2 { 31232 r.WriteArrayStart(8) 31233 } else { 31234 r.WriteMapStart(8) 31235 } 31236 if yyr2 || yy2arr2 { 31237 r.WriteArrayElem() 31238 if false { 31239 } else { 31240 if z.EncBasicHandle().StringToRaw { 31241 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 31242 } else { 31243 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 31244 } 31245 } 31246 } else { 31247 r.WriteMapElemKey() 31248 if z.IsJSONHandle() { 31249 z.WriteStr("\"NodeID\"") 31250 } else { 31251 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 31252 } 31253 r.WriteMapElemValue() 31254 if false { 31255 } else { 31256 if z.EncBasicHandle().StringToRaw { 31257 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 31258 } else { 31259 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 31260 } 31261 } 31262 } 31263 if yyr2 || yy2arr2 { 31264 r.WriteArrayElem() 31265 if false { 31266 } else { 31267 if z.EncBasicHandle().StringToRaw { 31268 r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) 31269 } else { 31270 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) 31271 } 31272 } 31273 } else { 31274 r.WriteMapElemKey() 31275 if z.IsJSONHandle() { 31276 z.WriteStr("\"Eligibility\"") 31277 } else { 31278 r.EncodeStringEnc(codecSelferCcUTF8100, `Eligibility`) 31279 } 31280 r.WriteMapElemValue() 31281 if false { 31282 } else { 31283 if z.EncBasicHandle().StringToRaw { 31284 r.EncodeStringBytesRaw(z.BytesView(string(x.Eligibility))) 31285 } else { 31286 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Eligibility)) 31287 } 31288 } 31289 } 31290 var yyn9 bool 31291 if x.NodeEvent == nil { 31292 yyn9 = true 31293 goto LABEL9 31294 } 31295 LABEL9: 31296 if yyr2 || yy2arr2 { 31297 if yyn9 { 31298 r.WriteArrayElem() 31299 r.EncodeNil() 31300 } else { 31301 r.WriteArrayElem() 31302 if x.NodeEvent == nil { 31303 r.EncodeNil() 31304 } else { 31305 x.NodeEvent.CodecEncodeSelf(e) 31306 } 31307 } 31308 } else { 31309 r.WriteMapElemKey() 31310 if z.IsJSONHandle() { 31311 z.WriteStr("\"NodeEvent\"") 31312 } else { 31313 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvent`) 31314 } 31315 r.WriteMapElemValue() 31316 if yyn9 { 31317 r.EncodeNil() 31318 } else { 31319 if x.NodeEvent == nil { 31320 r.EncodeNil() 31321 } else { 31322 x.NodeEvent.CodecEncodeSelf(e) 31323 } 31324 } 31325 } 31326 if yyr2 || yy2arr2 { 31327 r.WriteArrayElem() 31328 if false { 31329 } else { 31330 r.EncodeInt(int64(x.UpdatedAt)) 31331 } 31332 } else { 31333 r.WriteMapElemKey() 31334 if z.IsJSONHandle() { 31335 z.WriteStr("\"UpdatedAt\"") 31336 } else { 31337 r.EncodeStringEnc(codecSelferCcUTF8100, `UpdatedAt`) 31338 } 31339 r.WriteMapElemValue() 31340 if false { 31341 } else { 31342 r.EncodeInt(int64(x.UpdatedAt)) 31343 } 31344 } 31345 if yyr2 || yy2arr2 { 31346 r.WriteArrayElem() 31347 if false { 31348 } else { 31349 if z.EncBasicHandle().StringToRaw { 31350 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31351 } else { 31352 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31353 } 31354 } 31355 } else { 31356 r.WriteMapElemKey() 31357 if z.IsJSONHandle() { 31358 z.WriteStr("\"Region\"") 31359 } else { 31360 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 31361 } 31362 r.WriteMapElemValue() 31363 if false { 31364 } else { 31365 if z.EncBasicHandle().StringToRaw { 31366 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31367 } else { 31368 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31369 } 31370 } 31371 } 31372 if yyr2 || yy2arr2 { 31373 r.WriteArrayElem() 31374 if false { 31375 } else { 31376 if z.EncBasicHandle().StringToRaw { 31377 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31378 } else { 31379 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31380 } 31381 } 31382 } else { 31383 r.WriteMapElemKey() 31384 if z.IsJSONHandle() { 31385 z.WriteStr("\"Namespace\"") 31386 } else { 31387 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 31388 } 31389 r.WriteMapElemValue() 31390 if false { 31391 } else { 31392 if z.EncBasicHandle().StringToRaw { 31393 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31394 } else { 31395 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31396 } 31397 } 31398 } 31399 if yyr2 || yy2arr2 { 31400 r.WriteArrayElem() 31401 if false { 31402 } else { 31403 if z.EncBasicHandle().StringToRaw { 31404 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31405 } else { 31406 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31407 } 31408 } 31409 } else { 31410 r.WriteMapElemKey() 31411 if z.IsJSONHandle() { 31412 z.WriteStr("\"AuthToken\"") 31413 } else { 31414 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 31415 } 31416 r.WriteMapElemValue() 31417 if false { 31418 } else { 31419 if z.EncBasicHandle().StringToRaw { 31420 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31421 } else { 31422 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31423 } 31424 } 31425 } 31426 if yyr2 || yy2arr2 { 31427 r.WriteArrayElem() 31428 if false { 31429 } else { 31430 r.EncodeBool(bool(x.Forwarded)) 31431 } 31432 } else { 31433 r.WriteMapElemKey() 31434 if z.IsJSONHandle() { 31435 z.WriteStr("\"Forwarded\"") 31436 } else { 31437 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 31438 } 31439 r.WriteMapElemValue() 31440 if false { 31441 } else { 31442 r.EncodeBool(bool(x.Forwarded)) 31443 } 31444 } 31445 if yyr2 || yy2arr2 { 31446 r.WriteArrayEnd() 31447 } else { 31448 r.WriteMapEnd() 31449 } 31450 } 31451 } 31452 } 31453 31454 func (x *NodeUpdateEligibilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { 31455 var h codecSelfer100 31456 z, r := codec1978.GenHelperDecoder(d) 31457 _, _, _ = h, z, r 31458 if false { 31459 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31460 z.DecExtension(x, yyxt1) 31461 } else { 31462 yyct2 := r.ContainerType() 31463 if yyct2 == codecSelferValueTypeMap100 { 31464 yyl2 := r.ReadMapStart() 31465 if yyl2 == 0 { 31466 r.ReadMapEnd() 31467 } else { 31468 x.codecDecodeSelfFromMap(yyl2, d) 31469 } 31470 } else if yyct2 == codecSelferValueTypeArray100 { 31471 yyl2 := r.ReadArrayStart() 31472 if yyl2 == 0 { 31473 r.ReadArrayEnd() 31474 } else { 31475 x.codecDecodeSelfFromArray(yyl2, d) 31476 } 31477 } else { 31478 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 31479 } 31480 } 31481 } 31482 31483 func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 31484 var h codecSelfer100 31485 z, r := codec1978.GenHelperDecoder(d) 31486 _, _, _ = h, z, r 31487 var yyhl3 bool = l >= 0 31488 for yyj3 := 0; ; yyj3++ { 31489 if yyhl3 { 31490 if yyj3 >= l { 31491 break 31492 } 31493 } else { 31494 if r.CheckBreak() { 31495 break 31496 } 31497 } 31498 r.ReadMapElemKey() 31499 yys3 := z.StringView(r.DecodeStringAsBytes()) 31500 r.ReadMapElemValue() 31501 switch yys3 { 31502 case "NodeID": 31503 if r.TryDecodeAsNil() { 31504 x.NodeID = "" 31505 } else { 31506 x.NodeID = (string)(r.DecodeString()) 31507 } 31508 case "Eligibility": 31509 if r.TryDecodeAsNil() { 31510 x.Eligibility = "" 31511 } else { 31512 x.Eligibility = (string)(r.DecodeString()) 31513 } 31514 case "NodeEvent": 31515 if r.TryDecodeAsNil() { 31516 if true && x.NodeEvent != nil { 31517 x.NodeEvent = nil 31518 } 31519 } else { 31520 if x.NodeEvent == nil { 31521 x.NodeEvent = new(NodeEvent) 31522 } 31523 31524 x.NodeEvent.CodecDecodeSelf(d) 31525 } 31526 case "UpdatedAt": 31527 if r.TryDecodeAsNil() { 31528 x.UpdatedAt = 0 31529 } else { 31530 x.UpdatedAt = (int64)(r.DecodeInt64()) 31531 } 31532 case "Region": 31533 if r.TryDecodeAsNil() { 31534 x.WriteRequest.Region = "" 31535 } else { 31536 x.Region = (string)(r.DecodeString()) 31537 } 31538 case "Namespace": 31539 if r.TryDecodeAsNil() { 31540 x.WriteRequest.Namespace = "" 31541 } else { 31542 x.Namespace = (string)(r.DecodeString()) 31543 } 31544 case "AuthToken": 31545 if r.TryDecodeAsNil() { 31546 x.WriteRequest.AuthToken = "" 31547 } else { 31548 x.AuthToken = (string)(r.DecodeString()) 31549 } 31550 case "Forwarded": 31551 if r.TryDecodeAsNil() { 31552 x.WriteRequest.InternalRpcInfo.Forwarded = false 31553 } else { 31554 x.Forwarded = (bool)(r.DecodeBool()) 31555 } 31556 default: 31557 z.DecStructFieldNotFound(-1, yys3) 31558 } // end switch yys3 31559 } // end for yyj3 31560 r.ReadMapEnd() 31561 } 31562 31563 func (x *NodeUpdateEligibilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 31564 var h codecSelfer100 31565 z, r := codec1978.GenHelperDecoder(d) 31566 _, _, _ = h, z, r 31567 var yyj12 int 31568 var yyb12 bool 31569 var yyhl12 bool = l >= 0 31570 yyj12++ 31571 if yyhl12 { 31572 yyb12 = yyj12 > l 31573 } else { 31574 yyb12 = r.CheckBreak() 31575 } 31576 if yyb12 { 31577 r.ReadArrayEnd() 31578 return 31579 } 31580 r.ReadArrayElem() 31581 if r.TryDecodeAsNil() { 31582 x.NodeID = "" 31583 } else { 31584 x.NodeID = (string)(r.DecodeString()) 31585 } 31586 yyj12++ 31587 if yyhl12 { 31588 yyb12 = yyj12 > l 31589 } else { 31590 yyb12 = r.CheckBreak() 31591 } 31592 if yyb12 { 31593 r.ReadArrayEnd() 31594 return 31595 } 31596 r.ReadArrayElem() 31597 if r.TryDecodeAsNil() { 31598 x.Eligibility = "" 31599 } else { 31600 x.Eligibility = (string)(r.DecodeString()) 31601 } 31602 yyj12++ 31603 if yyhl12 { 31604 yyb12 = yyj12 > l 31605 } else { 31606 yyb12 = r.CheckBreak() 31607 } 31608 if yyb12 { 31609 r.ReadArrayEnd() 31610 return 31611 } 31612 r.ReadArrayElem() 31613 if r.TryDecodeAsNil() { 31614 if true && x.NodeEvent != nil { 31615 x.NodeEvent = nil 31616 } 31617 } else { 31618 if x.NodeEvent == nil { 31619 x.NodeEvent = new(NodeEvent) 31620 } 31621 31622 x.NodeEvent.CodecDecodeSelf(d) 31623 } 31624 yyj12++ 31625 if yyhl12 { 31626 yyb12 = yyj12 > l 31627 } else { 31628 yyb12 = r.CheckBreak() 31629 } 31630 if yyb12 { 31631 r.ReadArrayEnd() 31632 return 31633 } 31634 r.ReadArrayElem() 31635 if r.TryDecodeAsNil() { 31636 x.UpdatedAt = 0 31637 } else { 31638 x.UpdatedAt = (int64)(r.DecodeInt64()) 31639 } 31640 yyj12++ 31641 if yyhl12 { 31642 yyb12 = yyj12 > l 31643 } else { 31644 yyb12 = r.CheckBreak() 31645 } 31646 if yyb12 { 31647 r.ReadArrayEnd() 31648 return 31649 } 31650 r.ReadArrayElem() 31651 if r.TryDecodeAsNil() { 31652 x.WriteRequest.Region = "" 31653 } else { 31654 x.Region = (string)(r.DecodeString()) 31655 } 31656 yyj12++ 31657 if yyhl12 { 31658 yyb12 = yyj12 > l 31659 } else { 31660 yyb12 = r.CheckBreak() 31661 } 31662 if yyb12 { 31663 r.ReadArrayEnd() 31664 return 31665 } 31666 r.ReadArrayElem() 31667 if r.TryDecodeAsNil() { 31668 x.WriteRequest.Namespace = "" 31669 } else { 31670 x.Namespace = (string)(r.DecodeString()) 31671 } 31672 yyj12++ 31673 if yyhl12 { 31674 yyb12 = yyj12 > l 31675 } else { 31676 yyb12 = r.CheckBreak() 31677 } 31678 if yyb12 { 31679 r.ReadArrayEnd() 31680 return 31681 } 31682 r.ReadArrayElem() 31683 if r.TryDecodeAsNil() { 31684 x.WriteRequest.AuthToken = "" 31685 } else { 31686 x.AuthToken = (string)(r.DecodeString()) 31687 } 31688 yyj12++ 31689 if yyhl12 { 31690 yyb12 = yyj12 > l 31691 } else { 31692 yyb12 = r.CheckBreak() 31693 } 31694 if yyb12 { 31695 r.ReadArrayEnd() 31696 return 31697 } 31698 r.ReadArrayElem() 31699 if r.TryDecodeAsNil() { 31700 x.WriteRequest.InternalRpcInfo.Forwarded = false 31701 } else { 31702 x.Forwarded = (bool)(r.DecodeBool()) 31703 } 31704 for { 31705 yyj12++ 31706 if yyhl12 { 31707 yyb12 = yyj12 > l 31708 } else { 31709 yyb12 = r.CheckBreak() 31710 } 31711 if yyb12 { 31712 break 31713 } 31714 r.ReadArrayElem() 31715 z.DecStructFieldNotFound(yyj12-1, "") 31716 } 31717 r.ReadArrayEnd() 31718 } 31719 31720 func (x *NodeEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 31721 var h codecSelfer100 31722 z, r := codec1978.GenHelperEncoder(e) 31723 _, _, _ = h, z, r 31724 if x == nil { 31725 r.EncodeNil() 31726 } else { 31727 if false { 31728 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31729 z.EncExtension(x, yyxt1) 31730 } else { 31731 yysep2 := !z.EncBinary() 31732 yy2arr2 := z.EncBasicHandle().StructToArray 31733 _, _ = yysep2, yy2arr2 31734 const yyr2 bool = false // struct tag has 'toArray' 31735 if yyr2 || yy2arr2 { 31736 r.WriteArrayStart(5) 31737 } else { 31738 r.WriteMapStart(5) 31739 } 31740 if yyr2 || yy2arr2 { 31741 r.WriteArrayElem() 31742 if false { 31743 } else { 31744 if z.EncBasicHandle().StringToRaw { 31745 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 31746 } else { 31747 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 31748 } 31749 } 31750 } else { 31751 r.WriteMapElemKey() 31752 if z.IsJSONHandle() { 31753 z.WriteStr("\"NodeID\"") 31754 } else { 31755 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 31756 } 31757 r.WriteMapElemValue() 31758 if false { 31759 } else { 31760 if z.EncBasicHandle().StringToRaw { 31761 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 31762 } else { 31763 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 31764 } 31765 } 31766 } 31767 if yyr2 || yy2arr2 { 31768 r.WriteArrayElem() 31769 if false { 31770 } else { 31771 if z.EncBasicHandle().StringToRaw { 31772 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31773 } else { 31774 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31775 } 31776 } 31777 } else { 31778 r.WriteMapElemKey() 31779 if z.IsJSONHandle() { 31780 z.WriteStr("\"Region\"") 31781 } else { 31782 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 31783 } 31784 r.WriteMapElemValue() 31785 if false { 31786 } else { 31787 if z.EncBasicHandle().StringToRaw { 31788 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 31789 } else { 31790 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 31791 } 31792 } 31793 } 31794 if yyr2 || yy2arr2 { 31795 r.WriteArrayElem() 31796 if false { 31797 } else { 31798 if z.EncBasicHandle().StringToRaw { 31799 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31800 } else { 31801 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31802 } 31803 } 31804 } else { 31805 r.WriteMapElemKey() 31806 if z.IsJSONHandle() { 31807 z.WriteStr("\"Namespace\"") 31808 } else { 31809 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 31810 } 31811 r.WriteMapElemValue() 31812 if false { 31813 } else { 31814 if z.EncBasicHandle().StringToRaw { 31815 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 31816 } else { 31817 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 31818 } 31819 } 31820 } 31821 if yyr2 || yy2arr2 { 31822 r.WriteArrayElem() 31823 if false { 31824 } else { 31825 if z.EncBasicHandle().StringToRaw { 31826 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31827 } else { 31828 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31829 } 31830 } 31831 } else { 31832 r.WriteMapElemKey() 31833 if z.IsJSONHandle() { 31834 z.WriteStr("\"AuthToken\"") 31835 } else { 31836 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 31837 } 31838 r.WriteMapElemValue() 31839 if false { 31840 } else { 31841 if z.EncBasicHandle().StringToRaw { 31842 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 31843 } else { 31844 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 31845 } 31846 } 31847 } 31848 if yyr2 || yy2arr2 { 31849 r.WriteArrayElem() 31850 if false { 31851 } else { 31852 r.EncodeBool(bool(x.Forwarded)) 31853 } 31854 } else { 31855 r.WriteMapElemKey() 31856 if z.IsJSONHandle() { 31857 z.WriteStr("\"Forwarded\"") 31858 } else { 31859 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 31860 } 31861 r.WriteMapElemValue() 31862 if false { 31863 } else { 31864 r.EncodeBool(bool(x.Forwarded)) 31865 } 31866 } 31867 if yyr2 || yy2arr2 { 31868 r.WriteArrayEnd() 31869 } else { 31870 r.WriteMapEnd() 31871 } 31872 } 31873 } 31874 } 31875 31876 func (x *NodeEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 31877 var h codecSelfer100 31878 z, r := codec1978.GenHelperDecoder(d) 31879 _, _, _ = h, z, r 31880 if false { 31881 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 31882 z.DecExtension(x, yyxt1) 31883 } else { 31884 yyct2 := r.ContainerType() 31885 if yyct2 == codecSelferValueTypeMap100 { 31886 yyl2 := r.ReadMapStart() 31887 if yyl2 == 0 { 31888 r.ReadMapEnd() 31889 } else { 31890 x.codecDecodeSelfFromMap(yyl2, d) 31891 } 31892 } else if yyct2 == codecSelferValueTypeArray100 { 31893 yyl2 := r.ReadArrayStart() 31894 if yyl2 == 0 { 31895 r.ReadArrayEnd() 31896 } else { 31897 x.codecDecodeSelfFromArray(yyl2, d) 31898 } 31899 } else { 31900 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 31901 } 31902 } 31903 } 31904 31905 func (x *NodeEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 31906 var h codecSelfer100 31907 z, r := codec1978.GenHelperDecoder(d) 31908 _, _, _ = h, z, r 31909 var yyhl3 bool = l >= 0 31910 for yyj3 := 0; ; yyj3++ { 31911 if yyhl3 { 31912 if yyj3 >= l { 31913 break 31914 } 31915 } else { 31916 if r.CheckBreak() { 31917 break 31918 } 31919 } 31920 r.ReadMapElemKey() 31921 yys3 := z.StringView(r.DecodeStringAsBytes()) 31922 r.ReadMapElemValue() 31923 switch yys3 { 31924 case "NodeID": 31925 if r.TryDecodeAsNil() { 31926 x.NodeID = "" 31927 } else { 31928 x.NodeID = (string)(r.DecodeString()) 31929 } 31930 case "Region": 31931 if r.TryDecodeAsNil() { 31932 x.WriteRequest.Region = "" 31933 } else { 31934 x.Region = (string)(r.DecodeString()) 31935 } 31936 case "Namespace": 31937 if r.TryDecodeAsNil() { 31938 x.WriteRequest.Namespace = "" 31939 } else { 31940 x.Namespace = (string)(r.DecodeString()) 31941 } 31942 case "AuthToken": 31943 if r.TryDecodeAsNil() { 31944 x.WriteRequest.AuthToken = "" 31945 } else { 31946 x.AuthToken = (string)(r.DecodeString()) 31947 } 31948 case "Forwarded": 31949 if r.TryDecodeAsNil() { 31950 x.WriteRequest.InternalRpcInfo.Forwarded = false 31951 } else { 31952 x.Forwarded = (bool)(r.DecodeBool()) 31953 } 31954 default: 31955 z.DecStructFieldNotFound(-1, yys3) 31956 } // end switch yys3 31957 } // end for yyj3 31958 r.ReadMapEnd() 31959 } 31960 31961 func (x *NodeEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 31962 var h codecSelfer100 31963 z, r := codec1978.GenHelperDecoder(d) 31964 _, _, _ = h, z, r 31965 var yyj9 int 31966 var yyb9 bool 31967 var yyhl9 bool = l >= 0 31968 yyj9++ 31969 if yyhl9 { 31970 yyb9 = yyj9 > l 31971 } else { 31972 yyb9 = r.CheckBreak() 31973 } 31974 if yyb9 { 31975 r.ReadArrayEnd() 31976 return 31977 } 31978 r.ReadArrayElem() 31979 if r.TryDecodeAsNil() { 31980 x.NodeID = "" 31981 } else { 31982 x.NodeID = (string)(r.DecodeString()) 31983 } 31984 yyj9++ 31985 if yyhl9 { 31986 yyb9 = yyj9 > l 31987 } else { 31988 yyb9 = r.CheckBreak() 31989 } 31990 if yyb9 { 31991 r.ReadArrayEnd() 31992 return 31993 } 31994 r.ReadArrayElem() 31995 if r.TryDecodeAsNil() { 31996 x.WriteRequest.Region = "" 31997 } else { 31998 x.Region = (string)(r.DecodeString()) 31999 } 32000 yyj9++ 32001 if yyhl9 { 32002 yyb9 = yyj9 > l 32003 } else { 32004 yyb9 = r.CheckBreak() 32005 } 32006 if yyb9 { 32007 r.ReadArrayEnd() 32008 return 32009 } 32010 r.ReadArrayElem() 32011 if r.TryDecodeAsNil() { 32012 x.WriteRequest.Namespace = "" 32013 } else { 32014 x.Namespace = (string)(r.DecodeString()) 32015 } 32016 yyj9++ 32017 if yyhl9 { 32018 yyb9 = yyj9 > l 32019 } else { 32020 yyb9 = r.CheckBreak() 32021 } 32022 if yyb9 { 32023 r.ReadArrayEnd() 32024 return 32025 } 32026 r.ReadArrayElem() 32027 if r.TryDecodeAsNil() { 32028 x.WriteRequest.AuthToken = "" 32029 } else { 32030 x.AuthToken = (string)(r.DecodeString()) 32031 } 32032 yyj9++ 32033 if yyhl9 { 32034 yyb9 = yyj9 > l 32035 } else { 32036 yyb9 = r.CheckBreak() 32037 } 32038 if yyb9 { 32039 r.ReadArrayEnd() 32040 return 32041 } 32042 r.ReadArrayElem() 32043 if r.TryDecodeAsNil() { 32044 x.WriteRequest.InternalRpcInfo.Forwarded = false 32045 } else { 32046 x.Forwarded = (bool)(r.DecodeBool()) 32047 } 32048 for { 32049 yyj9++ 32050 if yyhl9 { 32051 yyb9 = yyj9 > l 32052 } else { 32053 yyb9 = r.CheckBreak() 32054 } 32055 if yyb9 { 32056 break 32057 } 32058 r.ReadArrayElem() 32059 z.DecStructFieldNotFound(yyj9-1, "") 32060 } 32061 r.ReadArrayEnd() 32062 } 32063 32064 func (x *NodeSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 32065 var h codecSelfer100 32066 z, r := codec1978.GenHelperEncoder(e) 32067 _, _, _ = h, z, r 32068 if x == nil { 32069 r.EncodeNil() 32070 } else { 32071 if false { 32072 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32073 z.EncExtension(x, yyxt1) 32074 } else { 32075 yysep2 := !z.EncBinary() 32076 yy2arr2 := z.EncBasicHandle().StructToArray 32077 _, _ = yysep2, yy2arr2 32078 const yyr2 bool = false // struct tag has 'toArray' 32079 if yyr2 || yy2arr2 { 32080 r.WriteArrayStart(10) 32081 } else { 32082 r.WriteMapStart(10) 32083 } 32084 if yyr2 || yy2arr2 { 32085 r.WriteArrayElem() 32086 if false { 32087 } else { 32088 if z.EncBasicHandle().StringToRaw { 32089 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 32090 } else { 32091 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 32092 } 32093 } 32094 } else { 32095 r.WriteMapElemKey() 32096 if z.IsJSONHandle() { 32097 z.WriteStr("\"NodeID\"") 32098 } else { 32099 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 32100 } 32101 r.WriteMapElemValue() 32102 if false { 32103 } else { 32104 if z.EncBasicHandle().StringToRaw { 32105 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 32106 } else { 32107 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 32108 } 32109 } 32110 } 32111 if yyr2 || yy2arr2 { 32112 r.WriteArrayElem() 32113 if false { 32114 } else { 32115 if z.EncBasicHandle().StringToRaw { 32116 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 32117 } else { 32118 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 32119 } 32120 } 32121 } else { 32122 r.WriteMapElemKey() 32123 if z.IsJSONHandle() { 32124 z.WriteStr("\"SecretID\"") 32125 } else { 32126 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 32127 } 32128 r.WriteMapElemValue() 32129 if false { 32130 } else { 32131 if z.EncBasicHandle().StringToRaw { 32132 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 32133 } else { 32134 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 32135 } 32136 } 32137 } 32138 if yyr2 || yy2arr2 { 32139 r.WriteArrayElem() 32140 if false { 32141 } else { 32142 if z.EncBasicHandle().StringToRaw { 32143 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32144 } else { 32145 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32146 } 32147 } 32148 } else { 32149 r.WriteMapElemKey() 32150 if z.IsJSONHandle() { 32151 z.WriteStr("\"Region\"") 32152 } else { 32153 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 32154 } 32155 r.WriteMapElemValue() 32156 if false { 32157 } else { 32158 if z.EncBasicHandle().StringToRaw { 32159 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 32160 } else { 32161 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 32162 } 32163 } 32164 } 32165 if yyr2 || yy2arr2 { 32166 r.WriteArrayElem() 32167 if false { 32168 } else { 32169 if z.EncBasicHandle().StringToRaw { 32170 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32171 } else { 32172 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32173 } 32174 } 32175 } else { 32176 r.WriteMapElemKey() 32177 if z.IsJSONHandle() { 32178 z.WriteStr("\"Namespace\"") 32179 } else { 32180 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 32181 } 32182 r.WriteMapElemValue() 32183 if false { 32184 } else { 32185 if z.EncBasicHandle().StringToRaw { 32186 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 32187 } else { 32188 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 32189 } 32190 } 32191 } 32192 if yyr2 || yy2arr2 { 32193 r.WriteArrayElem() 32194 if false { 32195 } else { 32196 r.EncodeUint(uint64(x.MinQueryIndex)) 32197 } 32198 } else { 32199 r.WriteMapElemKey() 32200 if z.IsJSONHandle() { 32201 z.WriteStr("\"MinQueryIndex\"") 32202 } else { 32203 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 32204 } 32205 r.WriteMapElemValue() 32206 if false { 32207 } else { 32208 r.EncodeUint(uint64(x.MinQueryIndex)) 32209 } 32210 } 32211 if yyr2 || yy2arr2 { 32212 r.WriteArrayElem() 32213 if false { 32214 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 32215 z.EncExtension(x.MaxQueryTime, yyxt19) 32216 } else { 32217 r.EncodeInt(int64(x.MaxQueryTime)) 32218 } 32219 } else { 32220 r.WriteMapElemKey() 32221 if z.IsJSONHandle() { 32222 z.WriteStr("\"MaxQueryTime\"") 32223 } else { 32224 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 32225 } 32226 r.WriteMapElemValue() 32227 if false { 32228 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 32229 z.EncExtension(x.MaxQueryTime, yyxt20) 32230 } else { 32231 r.EncodeInt(int64(x.MaxQueryTime)) 32232 } 32233 } 32234 if yyr2 || yy2arr2 { 32235 r.WriteArrayElem() 32236 if false { 32237 } else { 32238 r.EncodeBool(bool(x.AllowStale)) 32239 } 32240 } else { 32241 r.WriteMapElemKey() 32242 if z.IsJSONHandle() { 32243 z.WriteStr("\"AllowStale\"") 32244 } else { 32245 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 32246 } 32247 r.WriteMapElemValue() 32248 if false { 32249 } else { 32250 r.EncodeBool(bool(x.AllowStale)) 32251 } 32252 } 32253 if yyr2 || yy2arr2 { 32254 r.WriteArrayElem() 32255 if false { 32256 } else { 32257 if z.EncBasicHandle().StringToRaw { 32258 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 32259 } else { 32260 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 32261 } 32262 } 32263 } else { 32264 r.WriteMapElemKey() 32265 if z.IsJSONHandle() { 32266 z.WriteStr("\"Prefix\"") 32267 } else { 32268 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 32269 } 32270 r.WriteMapElemValue() 32271 if false { 32272 } else { 32273 if z.EncBasicHandle().StringToRaw { 32274 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 32275 } else { 32276 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 32277 } 32278 } 32279 } 32280 if yyr2 || yy2arr2 { 32281 r.WriteArrayElem() 32282 if false { 32283 } else { 32284 if z.EncBasicHandle().StringToRaw { 32285 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32286 } else { 32287 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32288 } 32289 } 32290 } else { 32291 r.WriteMapElemKey() 32292 if z.IsJSONHandle() { 32293 z.WriteStr("\"AuthToken\"") 32294 } else { 32295 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 32296 } 32297 r.WriteMapElemValue() 32298 if false { 32299 } else { 32300 if z.EncBasicHandle().StringToRaw { 32301 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 32302 } else { 32303 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 32304 } 32305 } 32306 } 32307 if yyr2 || yy2arr2 { 32308 r.WriteArrayElem() 32309 if false { 32310 } else { 32311 r.EncodeBool(bool(x.Forwarded)) 32312 } 32313 } else { 32314 r.WriteMapElemKey() 32315 if z.IsJSONHandle() { 32316 z.WriteStr("\"Forwarded\"") 32317 } else { 32318 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 32319 } 32320 r.WriteMapElemValue() 32321 if false { 32322 } else { 32323 r.EncodeBool(bool(x.Forwarded)) 32324 } 32325 } 32326 if yyr2 || yy2arr2 { 32327 r.WriteArrayEnd() 32328 } else { 32329 r.WriteMapEnd() 32330 } 32331 } 32332 } 32333 } 32334 32335 func (x *NodeSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 32336 var h codecSelfer100 32337 z, r := codec1978.GenHelperDecoder(d) 32338 _, _, _ = h, z, r 32339 if false { 32340 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32341 z.DecExtension(x, yyxt1) 32342 } else { 32343 yyct2 := r.ContainerType() 32344 if yyct2 == codecSelferValueTypeMap100 { 32345 yyl2 := r.ReadMapStart() 32346 if yyl2 == 0 { 32347 r.ReadMapEnd() 32348 } else { 32349 x.codecDecodeSelfFromMap(yyl2, d) 32350 } 32351 } else if yyct2 == codecSelferValueTypeArray100 { 32352 yyl2 := r.ReadArrayStart() 32353 if yyl2 == 0 { 32354 r.ReadArrayEnd() 32355 } else { 32356 x.codecDecodeSelfFromArray(yyl2, d) 32357 } 32358 } else { 32359 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 32360 } 32361 } 32362 } 32363 32364 func (x *NodeSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 32365 var h codecSelfer100 32366 z, r := codec1978.GenHelperDecoder(d) 32367 _, _, _ = h, z, r 32368 var yyhl3 bool = l >= 0 32369 for yyj3 := 0; ; yyj3++ { 32370 if yyhl3 { 32371 if yyj3 >= l { 32372 break 32373 } 32374 } else { 32375 if r.CheckBreak() { 32376 break 32377 } 32378 } 32379 r.ReadMapElemKey() 32380 yys3 := z.StringView(r.DecodeStringAsBytes()) 32381 r.ReadMapElemValue() 32382 switch yys3 { 32383 case "NodeID": 32384 if r.TryDecodeAsNil() { 32385 x.NodeID = "" 32386 } else { 32387 x.NodeID = (string)(r.DecodeString()) 32388 } 32389 case "SecretID": 32390 if r.TryDecodeAsNil() { 32391 x.SecretID = "" 32392 } else { 32393 x.SecretID = (string)(r.DecodeString()) 32394 } 32395 case "Region": 32396 if r.TryDecodeAsNil() { 32397 x.QueryOptions.Region = "" 32398 } else { 32399 x.Region = (string)(r.DecodeString()) 32400 } 32401 case "Namespace": 32402 if r.TryDecodeAsNil() { 32403 x.QueryOptions.Namespace = "" 32404 } else { 32405 x.Namespace = (string)(r.DecodeString()) 32406 } 32407 case "MinQueryIndex": 32408 if r.TryDecodeAsNil() { 32409 x.QueryOptions.MinQueryIndex = 0 32410 } else { 32411 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 32412 } 32413 case "MaxQueryTime": 32414 if r.TryDecodeAsNil() { 32415 x.QueryOptions.MaxQueryTime = 0 32416 } else { 32417 if false { 32418 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 32419 z.DecExtension(x.MaxQueryTime, yyxt10) 32420 } else { 32421 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 32422 } 32423 } 32424 case "AllowStale": 32425 if r.TryDecodeAsNil() { 32426 x.QueryOptions.AllowStale = false 32427 } else { 32428 x.AllowStale = (bool)(r.DecodeBool()) 32429 } 32430 case "Prefix": 32431 if r.TryDecodeAsNil() { 32432 x.QueryOptions.Prefix = "" 32433 } else { 32434 x.Prefix = (string)(r.DecodeString()) 32435 } 32436 case "AuthToken": 32437 if r.TryDecodeAsNil() { 32438 x.QueryOptions.AuthToken = "" 32439 } else { 32440 x.AuthToken = (string)(r.DecodeString()) 32441 } 32442 case "Forwarded": 32443 if r.TryDecodeAsNil() { 32444 x.QueryOptions.InternalRpcInfo.Forwarded = false 32445 } else { 32446 x.Forwarded = (bool)(r.DecodeBool()) 32447 } 32448 default: 32449 z.DecStructFieldNotFound(-1, yys3) 32450 } // end switch yys3 32451 } // end for yyj3 32452 r.ReadMapEnd() 32453 } 32454 32455 func (x *NodeSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 32456 var h codecSelfer100 32457 z, r := codec1978.GenHelperDecoder(d) 32458 _, _, _ = h, z, r 32459 var yyj15 int 32460 var yyb15 bool 32461 var yyhl15 bool = l >= 0 32462 yyj15++ 32463 if yyhl15 { 32464 yyb15 = yyj15 > l 32465 } else { 32466 yyb15 = r.CheckBreak() 32467 } 32468 if yyb15 { 32469 r.ReadArrayEnd() 32470 return 32471 } 32472 r.ReadArrayElem() 32473 if r.TryDecodeAsNil() { 32474 x.NodeID = "" 32475 } else { 32476 x.NodeID = (string)(r.DecodeString()) 32477 } 32478 yyj15++ 32479 if yyhl15 { 32480 yyb15 = yyj15 > l 32481 } else { 32482 yyb15 = r.CheckBreak() 32483 } 32484 if yyb15 { 32485 r.ReadArrayEnd() 32486 return 32487 } 32488 r.ReadArrayElem() 32489 if r.TryDecodeAsNil() { 32490 x.SecretID = "" 32491 } else { 32492 x.SecretID = (string)(r.DecodeString()) 32493 } 32494 yyj15++ 32495 if yyhl15 { 32496 yyb15 = yyj15 > l 32497 } else { 32498 yyb15 = r.CheckBreak() 32499 } 32500 if yyb15 { 32501 r.ReadArrayEnd() 32502 return 32503 } 32504 r.ReadArrayElem() 32505 if r.TryDecodeAsNil() { 32506 x.QueryOptions.Region = "" 32507 } else { 32508 x.Region = (string)(r.DecodeString()) 32509 } 32510 yyj15++ 32511 if yyhl15 { 32512 yyb15 = yyj15 > l 32513 } else { 32514 yyb15 = r.CheckBreak() 32515 } 32516 if yyb15 { 32517 r.ReadArrayEnd() 32518 return 32519 } 32520 r.ReadArrayElem() 32521 if r.TryDecodeAsNil() { 32522 x.QueryOptions.Namespace = "" 32523 } else { 32524 x.Namespace = (string)(r.DecodeString()) 32525 } 32526 yyj15++ 32527 if yyhl15 { 32528 yyb15 = yyj15 > l 32529 } else { 32530 yyb15 = r.CheckBreak() 32531 } 32532 if yyb15 { 32533 r.ReadArrayEnd() 32534 return 32535 } 32536 r.ReadArrayElem() 32537 if r.TryDecodeAsNil() { 32538 x.QueryOptions.MinQueryIndex = 0 32539 } else { 32540 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 32541 } 32542 yyj15++ 32543 if yyhl15 { 32544 yyb15 = yyj15 > l 32545 } else { 32546 yyb15 = r.CheckBreak() 32547 } 32548 if yyb15 { 32549 r.ReadArrayEnd() 32550 return 32551 } 32552 r.ReadArrayElem() 32553 if r.TryDecodeAsNil() { 32554 x.QueryOptions.MaxQueryTime = 0 32555 } else { 32556 if false { 32557 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 32558 z.DecExtension(x.MaxQueryTime, yyxt22) 32559 } else { 32560 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 32561 } 32562 } 32563 yyj15++ 32564 if yyhl15 { 32565 yyb15 = yyj15 > l 32566 } else { 32567 yyb15 = r.CheckBreak() 32568 } 32569 if yyb15 { 32570 r.ReadArrayEnd() 32571 return 32572 } 32573 r.ReadArrayElem() 32574 if r.TryDecodeAsNil() { 32575 x.QueryOptions.AllowStale = false 32576 } else { 32577 x.AllowStale = (bool)(r.DecodeBool()) 32578 } 32579 yyj15++ 32580 if yyhl15 { 32581 yyb15 = yyj15 > l 32582 } else { 32583 yyb15 = r.CheckBreak() 32584 } 32585 if yyb15 { 32586 r.ReadArrayEnd() 32587 return 32588 } 32589 r.ReadArrayElem() 32590 if r.TryDecodeAsNil() { 32591 x.QueryOptions.Prefix = "" 32592 } else { 32593 x.Prefix = (string)(r.DecodeString()) 32594 } 32595 yyj15++ 32596 if yyhl15 { 32597 yyb15 = yyj15 > l 32598 } else { 32599 yyb15 = r.CheckBreak() 32600 } 32601 if yyb15 { 32602 r.ReadArrayEnd() 32603 return 32604 } 32605 r.ReadArrayElem() 32606 if r.TryDecodeAsNil() { 32607 x.QueryOptions.AuthToken = "" 32608 } else { 32609 x.AuthToken = (string)(r.DecodeString()) 32610 } 32611 yyj15++ 32612 if yyhl15 { 32613 yyb15 = yyj15 > l 32614 } else { 32615 yyb15 = r.CheckBreak() 32616 } 32617 if yyb15 { 32618 r.ReadArrayEnd() 32619 return 32620 } 32621 r.ReadArrayElem() 32622 if r.TryDecodeAsNil() { 32623 x.QueryOptions.InternalRpcInfo.Forwarded = false 32624 } else { 32625 x.Forwarded = (bool)(r.DecodeBool()) 32626 } 32627 for { 32628 yyj15++ 32629 if yyhl15 { 32630 yyb15 = yyj15 > l 32631 } else { 32632 yyb15 = r.CheckBreak() 32633 } 32634 if yyb15 { 32635 break 32636 } 32637 r.ReadArrayElem() 32638 z.DecStructFieldNotFound(yyj15-1, "") 32639 } 32640 r.ReadArrayEnd() 32641 } 32642 32643 func (x *SearchResponse) CodecEncodeSelf(e *codec1978.Encoder) { 32644 var h codecSelfer100 32645 z, r := codec1978.GenHelperEncoder(e) 32646 _, _, _ = h, z, r 32647 if x == nil { 32648 r.EncodeNil() 32649 } else { 32650 if false { 32651 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32652 z.EncExtension(x, yyxt1) 32653 } else { 32654 yysep2 := !z.EncBinary() 32655 yy2arr2 := z.EncBasicHandle().StructToArray 32656 _, _ = yysep2, yy2arr2 32657 const yyr2 bool = false // struct tag has 'toArray' 32658 if yyr2 || yy2arr2 { 32659 r.WriteArrayStart(5) 32660 } else { 32661 r.WriteMapStart(5) 32662 } 32663 if yyr2 || yy2arr2 { 32664 r.WriteArrayElem() 32665 if x.Matches == nil { 32666 r.EncodeNil() 32667 } else { 32668 if false { 32669 } else { 32670 h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) 32671 } 32672 } 32673 } else { 32674 r.WriteMapElemKey() 32675 if z.IsJSONHandle() { 32676 z.WriteStr("\"Matches\"") 32677 } else { 32678 r.EncodeStringEnc(codecSelferCcUTF8100, `Matches`) 32679 } 32680 r.WriteMapElemValue() 32681 if x.Matches == nil { 32682 r.EncodeNil() 32683 } else { 32684 if false { 32685 } else { 32686 h.encMapContextSlicestring((map[Context][]string)(x.Matches), e) 32687 } 32688 } 32689 } 32690 if yyr2 || yy2arr2 { 32691 r.WriteArrayElem() 32692 if x.Truncations == nil { 32693 r.EncodeNil() 32694 } else { 32695 if false { 32696 } else { 32697 h.encMapContextbool((map[Context]bool)(x.Truncations), e) 32698 } 32699 } 32700 } else { 32701 r.WriteMapElemKey() 32702 if z.IsJSONHandle() { 32703 z.WriteStr("\"Truncations\"") 32704 } else { 32705 r.EncodeStringEnc(codecSelferCcUTF8100, `Truncations`) 32706 } 32707 r.WriteMapElemValue() 32708 if x.Truncations == nil { 32709 r.EncodeNil() 32710 } else { 32711 if false { 32712 } else { 32713 h.encMapContextbool((map[Context]bool)(x.Truncations), e) 32714 } 32715 } 32716 } 32717 if yyr2 || yy2arr2 { 32718 r.WriteArrayElem() 32719 if false { 32720 } else { 32721 r.EncodeUint(uint64(x.Index)) 32722 } 32723 } else { 32724 r.WriteMapElemKey() 32725 if z.IsJSONHandle() { 32726 z.WriteStr("\"Index\"") 32727 } else { 32728 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 32729 } 32730 r.WriteMapElemValue() 32731 if false { 32732 } else { 32733 r.EncodeUint(uint64(x.Index)) 32734 } 32735 } 32736 if yyr2 || yy2arr2 { 32737 r.WriteArrayElem() 32738 if false { 32739 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 32740 z.EncExtension(x.LastContact, yyxt13) 32741 } else { 32742 r.EncodeInt(int64(x.LastContact)) 32743 } 32744 } else { 32745 r.WriteMapElemKey() 32746 if z.IsJSONHandle() { 32747 z.WriteStr("\"LastContact\"") 32748 } else { 32749 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 32750 } 32751 r.WriteMapElemValue() 32752 if false { 32753 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 32754 z.EncExtension(x.LastContact, yyxt14) 32755 } else { 32756 r.EncodeInt(int64(x.LastContact)) 32757 } 32758 } 32759 if yyr2 || yy2arr2 { 32760 r.WriteArrayElem() 32761 if false { 32762 } else { 32763 r.EncodeBool(bool(x.KnownLeader)) 32764 } 32765 } else { 32766 r.WriteMapElemKey() 32767 if z.IsJSONHandle() { 32768 z.WriteStr("\"KnownLeader\"") 32769 } else { 32770 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 32771 } 32772 r.WriteMapElemValue() 32773 if false { 32774 } else { 32775 r.EncodeBool(bool(x.KnownLeader)) 32776 } 32777 } 32778 if yyr2 || yy2arr2 { 32779 r.WriteArrayEnd() 32780 } else { 32781 r.WriteMapEnd() 32782 } 32783 } 32784 } 32785 } 32786 32787 func (x *SearchResponse) CodecDecodeSelf(d *codec1978.Decoder) { 32788 var h codecSelfer100 32789 z, r := codec1978.GenHelperDecoder(d) 32790 _, _, _ = h, z, r 32791 if false { 32792 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 32793 z.DecExtension(x, yyxt1) 32794 } else { 32795 yyct2 := r.ContainerType() 32796 if yyct2 == codecSelferValueTypeMap100 { 32797 yyl2 := r.ReadMapStart() 32798 if yyl2 == 0 { 32799 r.ReadMapEnd() 32800 } else { 32801 x.codecDecodeSelfFromMap(yyl2, d) 32802 } 32803 } else if yyct2 == codecSelferValueTypeArray100 { 32804 yyl2 := r.ReadArrayStart() 32805 if yyl2 == 0 { 32806 r.ReadArrayEnd() 32807 } else { 32808 x.codecDecodeSelfFromArray(yyl2, d) 32809 } 32810 } else { 32811 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 32812 } 32813 } 32814 } 32815 32816 func (x *SearchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 32817 var h codecSelfer100 32818 z, r := codec1978.GenHelperDecoder(d) 32819 _, _, _ = h, z, r 32820 var yyhl3 bool = l >= 0 32821 for yyj3 := 0; ; yyj3++ { 32822 if yyhl3 { 32823 if yyj3 >= l { 32824 break 32825 } 32826 } else { 32827 if r.CheckBreak() { 32828 break 32829 } 32830 } 32831 r.ReadMapElemKey() 32832 yys3 := z.StringView(r.DecodeStringAsBytes()) 32833 r.ReadMapElemValue() 32834 switch yys3 { 32835 case "Matches": 32836 if r.TryDecodeAsNil() { 32837 x.Matches = nil 32838 } else { 32839 if false { 32840 } else { 32841 h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) 32842 } 32843 } 32844 case "Truncations": 32845 if r.TryDecodeAsNil() { 32846 x.Truncations = nil 32847 } else { 32848 if false { 32849 } else { 32850 h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) 32851 } 32852 } 32853 case "Index": 32854 if r.TryDecodeAsNil() { 32855 x.QueryMeta.Index = 0 32856 } else { 32857 x.Index = (uint64)(r.DecodeUint64()) 32858 } 32859 case "LastContact": 32860 if r.TryDecodeAsNil() { 32861 x.QueryMeta.LastContact = 0 32862 } else { 32863 if false { 32864 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 32865 z.DecExtension(x.LastContact, yyxt10) 32866 } else { 32867 x.LastContact = (time.Duration)(r.DecodeInt64()) 32868 } 32869 } 32870 case "KnownLeader": 32871 if r.TryDecodeAsNil() { 32872 x.QueryMeta.KnownLeader = false 32873 } else { 32874 x.KnownLeader = (bool)(r.DecodeBool()) 32875 } 32876 default: 32877 z.DecStructFieldNotFound(-1, yys3) 32878 } // end switch yys3 32879 } // end for yyj3 32880 r.ReadMapEnd() 32881 } 32882 32883 func (x *SearchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 32884 var h codecSelfer100 32885 z, r := codec1978.GenHelperDecoder(d) 32886 _, _, _ = h, z, r 32887 var yyj12 int 32888 var yyb12 bool 32889 var yyhl12 bool = l >= 0 32890 yyj12++ 32891 if yyhl12 { 32892 yyb12 = yyj12 > l 32893 } else { 32894 yyb12 = r.CheckBreak() 32895 } 32896 if yyb12 { 32897 r.ReadArrayEnd() 32898 return 32899 } 32900 r.ReadArrayElem() 32901 if r.TryDecodeAsNil() { 32902 x.Matches = nil 32903 } else { 32904 if false { 32905 } else { 32906 h.decMapContextSlicestring((*map[Context][]string)(&x.Matches), d) 32907 } 32908 } 32909 yyj12++ 32910 if yyhl12 { 32911 yyb12 = yyj12 > l 32912 } else { 32913 yyb12 = r.CheckBreak() 32914 } 32915 if yyb12 { 32916 r.ReadArrayEnd() 32917 return 32918 } 32919 r.ReadArrayElem() 32920 if r.TryDecodeAsNil() { 32921 x.Truncations = nil 32922 } else { 32923 if false { 32924 } else { 32925 h.decMapContextbool((*map[Context]bool)(&x.Truncations), d) 32926 } 32927 } 32928 yyj12++ 32929 if yyhl12 { 32930 yyb12 = yyj12 > l 32931 } else { 32932 yyb12 = r.CheckBreak() 32933 } 32934 if yyb12 { 32935 r.ReadArrayEnd() 32936 return 32937 } 32938 r.ReadArrayElem() 32939 if r.TryDecodeAsNil() { 32940 x.QueryMeta.Index = 0 32941 } else { 32942 x.Index = (uint64)(r.DecodeUint64()) 32943 } 32944 yyj12++ 32945 if yyhl12 { 32946 yyb12 = yyj12 > l 32947 } else { 32948 yyb12 = r.CheckBreak() 32949 } 32950 if yyb12 { 32951 r.ReadArrayEnd() 32952 return 32953 } 32954 r.ReadArrayElem() 32955 if r.TryDecodeAsNil() { 32956 x.QueryMeta.LastContact = 0 32957 } else { 32958 if false { 32959 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 32960 z.DecExtension(x.LastContact, yyxt19) 32961 } else { 32962 x.LastContact = (time.Duration)(r.DecodeInt64()) 32963 } 32964 } 32965 yyj12++ 32966 if yyhl12 { 32967 yyb12 = yyj12 > l 32968 } else { 32969 yyb12 = r.CheckBreak() 32970 } 32971 if yyb12 { 32972 r.ReadArrayEnd() 32973 return 32974 } 32975 r.ReadArrayElem() 32976 if r.TryDecodeAsNil() { 32977 x.QueryMeta.KnownLeader = false 32978 } else { 32979 x.KnownLeader = (bool)(r.DecodeBool()) 32980 } 32981 for { 32982 yyj12++ 32983 if yyhl12 { 32984 yyb12 = yyj12 > l 32985 } else { 32986 yyb12 = r.CheckBreak() 32987 } 32988 if yyb12 { 32989 break 32990 } 32991 r.ReadArrayElem() 32992 z.DecStructFieldNotFound(yyj12-1, "") 32993 } 32994 r.ReadArrayEnd() 32995 } 32996 32997 func (x *SearchRequest) CodecEncodeSelf(e *codec1978.Encoder) { 32998 var h codecSelfer100 32999 z, r := codec1978.GenHelperEncoder(e) 33000 _, _, _ = h, z, r 33001 if x == nil { 33002 r.EncodeNil() 33003 } else { 33004 if false { 33005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33006 z.EncExtension(x, yyxt1) 33007 } else { 33008 yysep2 := !z.EncBinary() 33009 yy2arr2 := z.EncBasicHandle().StructToArray 33010 _, _ = yysep2, yy2arr2 33011 const yyr2 bool = false // struct tag has 'toArray' 33012 if yyr2 || yy2arr2 { 33013 r.WriteArrayStart(9) 33014 } else { 33015 r.WriteMapStart(9) 33016 } 33017 if yyr2 || yy2arr2 { 33018 r.WriteArrayElem() 33019 if false { 33020 } else { 33021 if z.EncBasicHandle().StringToRaw { 33022 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 33023 } else { 33024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 33025 } 33026 } 33027 } else { 33028 r.WriteMapElemKey() 33029 if z.IsJSONHandle() { 33030 z.WriteStr("\"Prefix\"") 33031 } else { 33032 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 33033 } 33034 r.WriteMapElemValue() 33035 if false { 33036 } else { 33037 if z.EncBasicHandle().StringToRaw { 33038 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 33039 } else { 33040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 33041 } 33042 } 33043 } 33044 if yyr2 || yy2arr2 { 33045 r.WriteArrayElem() 33046 x.Context.CodecEncodeSelf(e) 33047 } else { 33048 r.WriteMapElemKey() 33049 if z.IsJSONHandle() { 33050 z.WriteStr("\"Context\"") 33051 } else { 33052 r.EncodeStringEnc(codecSelferCcUTF8100, `Context`) 33053 } 33054 r.WriteMapElemValue() 33055 x.Context.CodecEncodeSelf(e) 33056 } 33057 if yyr2 || yy2arr2 { 33058 r.WriteArrayElem() 33059 if false { 33060 } else { 33061 if z.EncBasicHandle().StringToRaw { 33062 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33063 } else { 33064 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33065 } 33066 } 33067 } else { 33068 r.WriteMapElemKey() 33069 if z.IsJSONHandle() { 33070 z.WriteStr("\"Region\"") 33071 } else { 33072 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 33073 } 33074 r.WriteMapElemValue() 33075 if false { 33076 } else { 33077 if z.EncBasicHandle().StringToRaw { 33078 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33079 } else { 33080 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33081 } 33082 } 33083 } 33084 if yyr2 || yy2arr2 { 33085 r.WriteArrayElem() 33086 if false { 33087 } else { 33088 if z.EncBasicHandle().StringToRaw { 33089 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33090 } else { 33091 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33092 } 33093 } 33094 } else { 33095 r.WriteMapElemKey() 33096 if z.IsJSONHandle() { 33097 z.WriteStr("\"Namespace\"") 33098 } else { 33099 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 33100 } 33101 r.WriteMapElemValue() 33102 if false { 33103 } else { 33104 if z.EncBasicHandle().StringToRaw { 33105 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33106 } else { 33107 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33108 } 33109 } 33110 } 33111 if yyr2 || yy2arr2 { 33112 r.WriteArrayElem() 33113 if false { 33114 } else { 33115 r.EncodeUint(uint64(x.MinQueryIndex)) 33116 } 33117 } else { 33118 r.WriteMapElemKey() 33119 if z.IsJSONHandle() { 33120 z.WriteStr("\"MinQueryIndex\"") 33121 } else { 33122 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 33123 } 33124 r.WriteMapElemValue() 33125 if false { 33126 } else { 33127 r.EncodeUint(uint64(x.MinQueryIndex)) 33128 } 33129 } 33130 if yyr2 || yy2arr2 { 33131 r.WriteArrayElem() 33132 if false { 33133 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 33134 z.EncExtension(x.MaxQueryTime, yyxt19) 33135 } else { 33136 r.EncodeInt(int64(x.MaxQueryTime)) 33137 } 33138 } else { 33139 r.WriteMapElemKey() 33140 if z.IsJSONHandle() { 33141 z.WriteStr("\"MaxQueryTime\"") 33142 } else { 33143 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 33144 } 33145 r.WriteMapElemValue() 33146 if false { 33147 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 33148 z.EncExtension(x.MaxQueryTime, yyxt20) 33149 } else { 33150 r.EncodeInt(int64(x.MaxQueryTime)) 33151 } 33152 } 33153 if yyr2 || yy2arr2 { 33154 r.WriteArrayElem() 33155 if false { 33156 } else { 33157 r.EncodeBool(bool(x.AllowStale)) 33158 } 33159 } else { 33160 r.WriteMapElemKey() 33161 if z.IsJSONHandle() { 33162 z.WriteStr("\"AllowStale\"") 33163 } else { 33164 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 33165 } 33166 r.WriteMapElemValue() 33167 if false { 33168 } else { 33169 r.EncodeBool(bool(x.AllowStale)) 33170 } 33171 } 33172 if yyr2 || yy2arr2 { 33173 r.WriteArrayElem() 33174 if false { 33175 } else { 33176 if z.EncBasicHandle().StringToRaw { 33177 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33178 } else { 33179 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33180 } 33181 } 33182 } else { 33183 r.WriteMapElemKey() 33184 if z.IsJSONHandle() { 33185 z.WriteStr("\"AuthToken\"") 33186 } else { 33187 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 33188 } 33189 r.WriteMapElemValue() 33190 if false { 33191 } else { 33192 if z.EncBasicHandle().StringToRaw { 33193 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33194 } else { 33195 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33196 } 33197 } 33198 } 33199 if yyr2 || yy2arr2 { 33200 r.WriteArrayElem() 33201 if false { 33202 } else { 33203 r.EncodeBool(bool(x.Forwarded)) 33204 } 33205 } else { 33206 r.WriteMapElemKey() 33207 if z.IsJSONHandle() { 33208 z.WriteStr("\"Forwarded\"") 33209 } else { 33210 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 33211 } 33212 r.WriteMapElemValue() 33213 if false { 33214 } else { 33215 r.EncodeBool(bool(x.Forwarded)) 33216 } 33217 } 33218 if yyr2 || yy2arr2 { 33219 r.WriteArrayEnd() 33220 } else { 33221 r.WriteMapEnd() 33222 } 33223 } 33224 } 33225 } 33226 33227 func (x *SearchRequest) CodecDecodeSelf(d *codec1978.Decoder) { 33228 var h codecSelfer100 33229 z, r := codec1978.GenHelperDecoder(d) 33230 _, _, _ = h, z, r 33231 if false { 33232 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33233 z.DecExtension(x, yyxt1) 33234 } else { 33235 yyct2 := r.ContainerType() 33236 if yyct2 == codecSelferValueTypeMap100 { 33237 yyl2 := r.ReadMapStart() 33238 if yyl2 == 0 { 33239 r.ReadMapEnd() 33240 } else { 33241 x.codecDecodeSelfFromMap(yyl2, d) 33242 } 33243 } else if yyct2 == codecSelferValueTypeArray100 { 33244 yyl2 := r.ReadArrayStart() 33245 if yyl2 == 0 { 33246 r.ReadArrayEnd() 33247 } else { 33248 x.codecDecodeSelfFromArray(yyl2, d) 33249 } 33250 } else { 33251 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 33252 } 33253 } 33254 } 33255 33256 func (x *SearchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 33257 var h codecSelfer100 33258 z, r := codec1978.GenHelperDecoder(d) 33259 _, _, _ = h, z, r 33260 var yyhl3 bool = l >= 0 33261 for yyj3 := 0; ; yyj3++ { 33262 if yyhl3 { 33263 if yyj3 >= l { 33264 break 33265 } 33266 } else { 33267 if r.CheckBreak() { 33268 break 33269 } 33270 } 33271 r.ReadMapElemKey() 33272 yys3 := z.StringView(r.DecodeStringAsBytes()) 33273 r.ReadMapElemValue() 33274 switch yys3 { 33275 case "Prefix": 33276 if r.TryDecodeAsNil() { 33277 x.Prefix = "" 33278 } else { 33279 x.Prefix = (string)(r.DecodeString()) 33280 } 33281 case "Context": 33282 if r.TryDecodeAsNil() { 33283 x.Context = "" 33284 } else { 33285 x.Context.CodecDecodeSelf(d) 33286 } 33287 case "Region": 33288 if r.TryDecodeAsNil() { 33289 x.QueryOptions.Region = "" 33290 } else { 33291 x.Region = (string)(r.DecodeString()) 33292 } 33293 case "Namespace": 33294 if r.TryDecodeAsNil() { 33295 x.QueryOptions.Namespace = "" 33296 } else { 33297 x.Namespace = (string)(r.DecodeString()) 33298 } 33299 case "MinQueryIndex": 33300 if r.TryDecodeAsNil() { 33301 x.QueryOptions.MinQueryIndex = 0 33302 } else { 33303 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 33304 } 33305 case "MaxQueryTime": 33306 if r.TryDecodeAsNil() { 33307 x.QueryOptions.MaxQueryTime = 0 33308 } else { 33309 if false { 33310 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 33311 z.DecExtension(x.MaxQueryTime, yyxt10) 33312 } else { 33313 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 33314 } 33315 } 33316 case "AllowStale": 33317 if r.TryDecodeAsNil() { 33318 x.QueryOptions.AllowStale = false 33319 } else { 33320 x.AllowStale = (bool)(r.DecodeBool()) 33321 } 33322 case "AuthToken": 33323 if r.TryDecodeAsNil() { 33324 x.QueryOptions.AuthToken = "" 33325 } else { 33326 x.AuthToken = (string)(r.DecodeString()) 33327 } 33328 case "Forwarded": 33329 if r.TryDecodeAsNil() { 33330 x.QueryOptions.InternalRpcInfo.Forwarded = false 33331 } else { 33332 x.Forwarded = (bool)(r.DecodeBool()) 33333 } 33334 default: 33335 z.DecStructFieldNotFound(-1, yys3) 33336 } // end switch yys3 33337 } // end for yyj3 33338 r.ReadMapEnd() 33339 } 33340 33341 func (x *SearchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33342 var h codecSelfer100 33343 z, r := codec1978.GenHelperDecoder(d) 33344 _, _, _ = h, z, r 33345 var yyj14 int 33346 var yyb14 bool 33347 var yyhl14 bool = l >= 0 33348 yyj14++ 33349 if yyhl14 { 33350 yyb14 = yyj14 > l 33351 } else { 33352 yyb14 = r.CheckBreak() 33353 } 33354 if yyb14 { 33355 r.ReadArrayEnd() 33356 return 33357 } 33358 r.ReadArrayElem() 33359 if r.TryDecodeAsNil() { 33360 x.Prefix = "" 33361 } else { 33362 x.Prefix = (string)(r.DecodeString()) 33363 } 33364 yyj14++ 33365 if yyhl14 { 33366 yyb14 = yyj14 > l 33367 } else { 33368 yyb14 = r.CheckBreak() 33369 } 33370 if yyb14 { 33371 r.ReadArrayEnd() 33372 return 33373 } 33374 r.ReadArrayElem() 33375 if r.TryDecodeAsNil() { 33376 x.Context = "" 33377 } else { 33378 x.Context.CodecDecodeSelf(d) 33379 } 33380 yyj14++ 33381 if yyhl14 { 33382 yyb14 = yyj14 > l 33383 } else { 33384 yyb14 = r.CheckBreak() 33385 } 33386 if yyb14 { 33387 r.ReadArrayEnd() 33388 return 33389 } 33390 r.ReadArrayElem() 33391 if r.TryDecodeAsNil() { 33392 x.QueryOptions.Region = "" 33393 } else { 33394 x.Region = (string)(r.DecodeString()) 33395 } 33396 yyj14++ 33397 if yyhl14 { 33398 yyb14 = yyj14 > l 33399 } else { 33400 yyb14 = r.CheckBreak() 33401 } 33402 if yyb14 { 33403 r.ReadArrayEnd() 33404 return 33405 } 33406 r.ReadArrayElem() 33407 if r.TryDecodeAsNil() { 33408 x.QueryOptions.Namespace = "" 33409 } else { 33410 x.Namespace = (string)(r.DecodeString()) 33411 } 33412 yyj14++ 33413 if yyhl14 { 33414 yyb14 = yyj14 > l 33415 } else { 33416 yyb14 = r.CheckBreak() 33417 } 33418 if yyb14 { 33419 r.ReadArrayEnd() 33420 return 33421 } 33422 r.ReadArrayElem() 33423 if r.TryDecodeAsNil() { 33424 x.QueryOptions.MinQueryIndex = 0 33425 } else { 33426 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 33427 } 33428 yyj14++ 33429 if yyhl14 { 33430 yyb14 = yyj14 > l 33431 } else { 33432 yyb14 = r.CheckBreak() 33433 } 33434 if yyb14 { 33435 r.ReadArrayEnd() 33436 return 33437 } 33438 r.ReadArrayElem() 33439 if r.TryDecodeAsNil() { 33440 x.QueryOptions.MaxQueryTime = 0 33441 } else { 33442 if false { 33443 } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt21 != nil { 33444 z.DecExtension(x.MaxQueryTime, yyxt21) 33445 } else { 33446 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 33447 } 33448 } 33449 yyj14++ 33450 if yyhl14 { 33451 yyb14 = yyj14 > l 33452 } else { 33453 yyb14 = r.CheckBreak() 33454 } 33455 if yyb14 { 33456 r.ReadArrayEnd() 33457 return 33458 } 33459 r.ReadArrayElem() 33460 if r.TryDecodeAsNil() { 33461 x.QueryOptions.AllowStale = false 33462 } else { 33463 x.AllowStale = (bool)(r.DecodeBool()) 33464 } 33465 yyj14++ 33466 if yyhl14 { 33467 yyb14 = yyj14 > l 33468 } else { 33469 yyb14 = r.CheckBreak() 33470 } 33471 if yyb14 { 33472 r.ReadArrayEnd() 33473 return 33474 } 33475 r.ReadArrayElem() 33476 if r.TryDecodeAsNil() { 33477 x.QueryOptions.AuthToken = "" 33478 } else { 33479 x.AuthToken = (string)(r.DecodeString()) 33480 } 33481 yyj14++ 33482 if yyhl14 { 33483 yyb14 = yyj14 > l 33484 } else { 33485 yyb14 = r.CheckBreak() 33486 } 33487 if yyb14 { 33488 r.ReadArrayEnd() 33489 return 33490 } 33491 r.ReadArrayElem() 33492 if r.TryDecodeAsNil() { 33493 x.QueryOptions.InternalRpcInfo.Forwarded = false 33494 } else { 33495 x.Forwarded = (bool)(r.DecodeBool()) 33496 } 33497 for { 33498 yyj14++ 33499 if yyhl14 { 33500 yyb14 = yyj14 > l 33501 } else { 33502 yyb14 = r.CheckBreak() 33503 } 33504 if yyb14 { 33505 break 33506 } 33507 r.ReadArrayElem() 33508 z.DecStructFieldNotFound(yyj14-1, "") 33509 } 33510 r.ReadArrayEnd() 33511 } 33512 33513 func (x *JobRegisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 33514 var h codecSelfer100 33515 z, r := codec1978.GenHelperEncoder(e) 33516 _, _, _ = h, z, r 33517 if x == nil { 33518 r.EncodeNil() 33519 } else { 33520 if false { 33521 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33522 z.EncExtension(x, yyxt1) 33523 } else { 33524 yysep2 := !z.EncBinary() 33525 yy2arr2 := z.EncBasicHandle().StructToArray 33526 _, _ = yysep2, yy2arr2 33527 const yyr2 bool = false // struct tag has 'toArray' 33528 if yyr2 || yy2arr2 { 33529 r.WriteArrayStart(8) 33530 } else { 33531 r.WriteMapStart(8) 33532 } 33533 var yyn3 bool 33534 if x.Job == nil { 33535 yyn3 = true 33536 goto LABEL3 33537 } 33538 LABEL3: 33539 if yyr2 || yy2arr2 { 33540 if yyn3 { 33541 r.WriteArrayElem() 33542 r.EncodeNil() 33543 } else { 33544 r.WriteArrayElem() 33545 if x.Job == nil { 33546 r.EncodeNil() 33547 } else { 33548 x.Job.CodecEncodeSelf(e) 33549 } 33550 } 33551 } else { 33552 r.WriteMapElemKey() 33553 if z.IsJSONHandle() { 33554 z.WriteStr("\"Job\"") 33555 } else { 33556 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 33557 } 33558 r.WriteMapElemValue() 33559 if yyn3 { 33560 r.EncodeNil() 33561 } else { 33562 if x.Job == nil { 33563 r.EncodeNil() 33564 } else { 33565 x.Job.CodecEncodeSelf(e) 33566 } 33567 } 33568 } 33569 if yyr2 || yy2arr2 { 33570 r.WriteArrayElem() 33571 if false { 33572 } else { 33573 r.EncodeBool(bool(x.EnforceIndex)) 33574 } 33575 } else { 33576 r.WriteMapElemKey() 33577 if z.IsJSONHandle() { 33578 z.WriteStr("\"EnforceIndex\"") 33579 } else { 33580 r.EncodeStringEnc(codecSelferCcUTF8100, `EnforceIndex`) 33581 } 33582 r.WriteMapElemValue() 33583 if false { 33584 } else { 33585 r.EncodeBool(bool(x.EnforceIndex)) 33586 } 33587 } 33588 if yyr2 || yy2arr2 { 33589 r.WriteArrayElem() 33590 if false { 33591 } else { 33592 r.EncodeUint(uint64(x.JobModifyIndex)) 33593 } 33594 } else { 33595 r.WriteMapElemKey() 33596 if z.IsJSONHandle() { 33597 z.WriteStr("\"JobModifyIndex\"") 33598 } else { 33599 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 33600 } 33601 r.WriteMapElemValue() 33602 if false { 33603 } else { 33604 r.EncodeUint(uint64(x.JobModifyIndex)) 33605 } 33606 } 33607 if yyr2 || yy2arr2 { 33608 r.WriteArrayElem() 33609 if false { 33610 } else { 33611 r.EncodeBool(bool(x.PolicyOverride)) 33612 } 33613 } else { 33614 r.WriteMapElemKey() 33615 if z.IsJSONHandle() { 33616 z.WriteStr("\"PolicyOverride\"") 33617 } else { 33618 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 33619 } 33620 r.WriteMapElemValue() 33621 if false { 33622 } else { 33623 r.EncodeBool(bool(x.PolicyOverride)) 33624 } 33625 } 33626 if yyr2 || yy2arr2 { 33627 r.WriteArrayElem() 33628 if false { 33629 } else { 33630 if z.EncBasicHandle().StringToRaw { 33631 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33632 } else { 33633 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33634 } 33635 } 33636 } else { 33637 r.WriteMapElemKey() 33638 if z.IsJSONHandle() { 33639 z.WriteStr("\"Region\"") 33640 } else { 33641 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 33642 } 33643 r.WriteMapElemValue() 33644 if false { 33645 } else { 33646 if z.EncBasicHandle().StringToRaw { 33647 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 33648 } else { 33649 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 33650 } 33651 } 33652 } 33653 if yyr2 || yy2arr2 { 33654 r.WriteArrayElem() 33655 if false { 33656 } else { 33657 if z.EncBasicHandle().StringToRaw { 33658 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33659 } else { 33660 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33661 } 33662 } 33663 } else { 33664 r.WriteMapElemKey() 33665 if z.IsJSONHandle() { 33666 z.WriteStr("\"Namespace\"") 33667 } else { 33668 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 33669 } 33670 r.WriteMapElemValue() 33671 if false { 33672 } else { 33673 if z.EncBasicHandle().StringToRaw { 33674 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 33675 } else { 33676 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 33677 } 33678 } 33679 } 33680 if yyr2 || yy2arr2 { 33681 r.WriteArrayElem() 33682 if false { 33683 } else { 33684 if z.EncBasicHandle().StringToRaw { 33685 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33686 } else { 33687 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33688 } 33689 } 33690 } else { 33691 r.WriteMapElemKey() 33692 if z.IsJSONHandle() { 33693 z.WriteStr("\"AuthToken\"") 33694 } else { 33695 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 33696 } 33697 r.WriteMapElemValue() 33698 if false { 33699 } else { 33700 if z.EncBasicHandle().StringToRaw { 33701 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 33702 } else { 33703 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 33704 } 33705 } 33706 } 33707 if yyr2 || yy2arr2 { 33708 r.WriteArrayElem() 33709 if false { 33710 } else { 33711 r.EncodeBool(bool(x.Forwarded)) 33712 } 33713 } else { 33714 r.WriteMapElemKey() 33715 if z.IsJSONHandle() { 33716 z.WriteStr("\"Forwarded\"") 33717 } else { 33718 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 33719 } 33720 r.WriteMapElemValue() 33721 if false { 33722 } else { 33723 r.EncodeBool(bool(x.Forwarded)) 33724 } 33725 } 33726 if yyr2 || yy2arr2 { 33727 r.WriteArrayEnd() 33728 } else { 33729 r.WriteMapEnd() 33730 } 33731 } 33732 } 33733 } 33734 33735 func (x *JobRegisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 33736 var h codecSelfer100 33737 z, r := codec1978.GenHelperDecoder(d) 33738 _, _, _ = h, z, r 33739 if false { 33740 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 33741 z.DecExtension(x, yyxt1) 33742 } else { 33743 yyct2 := r.ContainerType() 33744 if yyct2 == codecSelferValueTypeMap100 { 33745 yyl2 := r.ReadMapStart() 33746 if yyl2 == 0 { 33747 r.ReadMapEnd() 33748 } else { 33749 x.codecDecodeSelfFromMap(yyl2, d) 33750 } 33751 } else if yyct2 == codecSelferValueTypeArray100 { 33752 yyl2 := r.ReadArrayStart() 33753 if yyl2 == 0 { 33754 r.ReadArrayEnd() 33755 } else { 33756 x.codecDecodeSelfFromArray(yyl2, d) 33757 } 33758 } else { 33759 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 33760 } 33761 } 33762 } 33763 33764 func (x *JobRegisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 33765 var h codecSelfer100 33766 z, r := codec1978.GenHelperDecoder(d) 33767 _, _, _ = h, z, r 33768 var yyhl3 bool = l >= 0 33769 for yyj3 := 0; ; yyj3++ { 33770 if yyhl3 { 33771 if yyj3 >= l { 33772 break 33773 } 33774 } else { 33775 if r.CheckBreak() { 33776 break 33777 } 33778 } 33779 r.ReadMapElemKey() 33780 yys3 := z.StringView(r.DecodeStringAsBytes()) 33781 r.ReadMapElemValue() 33782 switch yys3 { 33783 case "Job": 33784 if r.TryDecodeAsNil() { 33785 if true && x.Job != nil { 33786 x.Job = nil 33787 } 33788 } else { 33789 if x.Job == nil { 33790 x.Job = new(Job) 33791 } 33792 33793 x.Job.CodecDecodeSelf(d) 33794 } 33795 case "EnforceIndex": 33796 if r.TryDecodeAsNil() { 33797 x.EnforceIndex = false 33798 } else { 33799 x.EnforceIndex = (bool)(r.DecodeBool()) 33800 } 33801 case "JobModifyIndex": 33802 if r.TryDecodeAsNil() { 33803 x.JobModifyIndex = 0 33804 } else { 33805 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 33806 } 33807 case "PolicyOverride": 33808 if r.TryDecodeAsNil() { 33809 x.PolicyOverride = false 33810 } else { 33811 x.PolicyOverride = (bool)(r.DecodeBool()) 33812 } 33813 case "Region": 33814 if r.TryDecodeAsNil() { 33815 x.WriteRequest.Region = "" 33816 } else { 33817 x.Region = (string)(r.DecodeString()) 33818 } 33819 case "Namespace": 33820 if r.TryDecodeAsNil() { 33821 x.WriteRequest.Namespace = "" 33822 } else { 33823 x.Namespace = (string)(r.DecodeString()) 33824 } 33825 case "AuthToken": 33826 if r.TryDecodeAsNil() { 33827 x.WriteRequest.AuthToken = "" 33828 } else { 33829 x.AuthToken = (string)(r.DecodeString()) 33830 } 33831 case "Forwarded": 33832 if r.TryDecodeAsNil() { 33833 x.WriteRequest.InternalRpcInfo.Forwarded = false 33834 } else { 33835 x.Forwarded = (bool)(r.DecodeBool()) 33836 } 33837 default: 33838 z.DecStructFieldNotFound(-1, yys3) 33839 } // end switch yys3 33840 } // end for yyj3 33841 r.ReadMapEnd() 33842 } 33843 33844 func (x *JobRegisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 33845 var h codecSelfer100 33846 z, r := codec1978.GenHelperDecoder(d) 33847 _, _, _ = h, z, r 33848 var yyj12 int 33849 var yyb12 bool 33850 var yyhl12 bool = l >= 0 33851 yyj12++ 33852 if yyhl12 { 33853 yyb12 = yyj12 > l 33854 } else { 33855 yyb12 = r.CheckBreak() 33856 } 33857 if yyb12 { 33858 r.ReadArrayEnd() 33859 return 33860 } 33861 r.ReadArrayElem() 33862 if r.TryDecodeAsNil() { 33863 if true && x.Job != nil { 33864 x.Job = nil 33865 } 33866 } else { 33867 if x.Job == nil { 33868 x.Job = new(Job) 33869 } 33870 33871 x.Job.CodecDecodeSelf(d) 33872 } 33873 yyj12++ 33874 if yyhl12 { 33875 yyb12 = yyj12 > l 33876 } else { 33877 yyb12 = r.CheckBreak() 33878 } 33879 if yyb12 { 33880 r.ReadArrayEnd() 33881 return 33882 } 33883 r.ReadArrayElem() 33884 if r.TryDecodeAsNil() { 33885 x.EnforceIndex = false 33886 } else { 33887 x.EnforceIndex = (bool)(r.DecodeBool()) 33888 } 33889 yyj12++ 33890 if yyhl12 { 33891 yyb12 = yyj12 > l 33892 } else { 33893 yyb12 = r.CheckBreak() 33894 } 33895 if yyb12 { 33896 r.ReadArrayEnd() 33897 return 33898 } 33899 r.ReadArrayElem() 33900 if r.TryDecodeAsNil() { 33901 x.JobModifyIndex = 0 33902 } else { 33903 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 33904 } 33905 yyj12++ 33906 if yyhl12 { 33907 yyb12 = yyj12 > l 33908 } else { 33909 yyb12 = r.CheckBreak() 33910 } 33911 if yyb12 { 33912 r.ReadArrayEnd() 33913 return 33914 } 33915 r.ReadArrayElem() 33916 if r.TryDecodeAsNil() { 33917 x.PolicyOverride = false 33918 } else { 33919 x.PolicyOverride = (bool)(r.DecodeBool()) 33920 } 33921 yyj12++ 33922 if yyhl12 { 33923 yyb12 = yyj12 > l 33924 } else { 33925 yyb12 = r.CheckBreak() 33926 } 33927 if yyb12 { 33928 r.ReadArrayEnd() 33929 return 33930 } 33931 r.ReadArrayElem() 33932 if r.TryDecodeAsNil() { 33933 x.WriteRequest.Region = "" 33934 } else { 33935 x.Region = (string)(r.DecodeString()) 33936 } 33937 yyj12++ 33938 if yyhl12 { 33939 yyb12 = yyj12 > l 33940 } else { 33941 yyb12 = r.CheckBreak() 33942 } 33943 if yyb12 { 33944 r.ReadArrayEnd() 33945 return 33946 } 33947 r.ReadArrayElem() 33948 if r.TryDecodeAsNil() { 33949 x.WriteRequest.Namespace = "" 33950 } else { 33951 x.Namespace = (string)(r.DecodeString()) 33952 } 33953 yyj12++ 33954 if yyhl12 { 33955 yyb12 = yyj12 > l 33956 } else { 33957 yyb12 = r.CheckBreak() 33958 } 33959 if yyb12 { 33960 r.ReadArrayEnd() 33961 return 33962 } 33963 r.ReadArrayElem() 33964 if r.TryDecodeAsNil() { 33965 x.WriteRequest.AuthToken = "" 33966 } else { 33967 x.AuthToken = (string)(r.DecodeString()) 33968 } 33969 yyj12++ 33970 if yyhl12 { 33971 yyb12 = yyj12 > l 33972 } else { 33973 yyb12 = r.CheckBreak() 33974 } 33975 if yyb12 { 33976 r.ReadArrayEnd() 33977 return 33978 } 33979 r.ReadArrayElem() 33980 if r.TryDecodeAsNil() { 33981 x.WriteRequest.InternalRpcInfo.Forwarded = false 33982 } else { 33983 x.Forwarded = (bool)(r.DecodeBool()) 33984 } 33985 for { 33986 yyj12++ 33987 if yyhl12 { 33988 yyb12 = yyj12 > l 33989 } else { 33990 yyb12 = r.CheckBreak() 33991 } 33992 if yyb12 { 33993 break 33994 } 33995 r.ReadArrayElem() 33996 z.DecStructFieldNotFound(yyj12-1, "") 33997 } 33998 r.ReadArrayEnd() 33999 } 34000 34001 func (x *JobDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 34002 var h codecSelfer100 34003 z, r := codec1978.GenHelperEncoder(e) 34004 _, _, _ = h, z, r 34005 if x == nil { 34006 r.EncodeNil() 34007 } else { 34008 if false { 34009 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34010 z.EncExtension(x, yyxt1) 34011 } else { 34012 yysep2 := !z.EncBinary() 34013 yy2arr2 := z.EncBasicHandle().StructToArray 34014 _, _ = yysep2, yy2arr2 34015 const yyr2 bool = false // struct tag has 'toArray' 34016 if yyr2 || yy2arr2 { 34017 r.WriteArrayStart(6) 34018 } else { 34019 r.WriteMapStart(6) 34020 } 34021 if yyr2 || yy2arr2 { 34022 r.WriteArrayElem() 34023 if false { 34024 } else { 34025 if z.EncBasicHandle().StringToRaw { 34026 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 34027 } else { 34028 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 34029 } 34030 } 34031 } else { 34032 r.WriteMapElemKey() 34033 if z.IsJSONHandle() { 34034 z.WriteStr("\"JobID\"") 34035 } else { 34036 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 34037 } 34038 r.WriteMapElemValue() 34039 if false { 34040 } else { 34041 if z.EncBasicHandle().StringToRaw { 34042 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 34043 } else { 34044 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 34045 } 34046 } 34047 } 34048 if yyr2 || yy2arr2 { 34049 r.WriteArrayElem() 34050 if false { 34051 } else { 34052 r.EncodeBool(bool(x.Purge)) 34053 } 34054 } else { 34055 r.WriteMapElemKey() 34056 if z.IsJSONHandle() { 34057 z.WriteStr("\"Purge\"") 34058 } else { 34059 r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) 34060 } 34061 r.WriteMapElemValue() 34062 if false { 34063 } else { 34064 r.EncodeBool(bool(x.Purge)) 34065 } 34066 } 34067 if yyr2 || yy2arr2 { 34068 r.WriteArrayElem() 34069 if false { 34070 } else { 34071 if z.EncBasicHandle().StringToRaw { 34072 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34073 } else { 34074 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34075 } 34076 } 34077 } else { 34078 r.WriteMapElemKey() 34079 if z.IsJSONHandle() { 34080 z.WriteStr("\"Region\"") 34081 } else { 34082 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 34083 } 34084 r.WriteMapElemValue() 34085 if false { 34086 } else { 34087 if z.EncBasicHandle().StringToRaw { 34088 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34089 } else { 34090 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34091 } 34092 } 34093 } 34094 if yyr2 || yy2arr2 { 34095 r.WriteArrayElem() 34096 if false { 34097 } else { 34098 if z.EncBasicHandle().StringToRaw { 34099 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34100 } else { 34101 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34102 } 34103 } 34104 } else { 34105 r.WriteMapElemKey() 34106 if z.IsJSONHandle() { 34107 z.WriteStr("\"Namespace\"") 34108 } else { 34109 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 34110 } 34111 r.WriteMapElemValue() 34112 if false { 34113 } else { 34114 if z.EncBasicHandle().StringToRaw { 34115 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34116 } else { 34117 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34118 } 34119 } 34120 } 34121 if yyr2 || yy2arr2 { 34122 r.WriteArrayElem() 34123 if false { 34124 } else { 34125 if z.EncBasicHandle().StringToRaw { 34126 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34127 } else { 34128 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34129 } 34130 } 34131 } else { 34132 r.WriteMapElemKey() 34133 if z.IsJSONHandle() { 34134 z.WriteStr("\"AuthToken\"") 34135 } else { 34136 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 34137 } 34138 r.WriteMapElemValue() 34139 if false { 34140 } else { 34141 if z.EncBasicHandle().StringToRaw { 34142 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34143 } else { 34144 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34145 } 34146 } 34147 } 34148 if yyr2 || yy2arr2 { 34149 r.WriteArrayElem() 34150 if false { 34151 } else { 34152 r.EncodeBool(bool(x.Forwarded)) 34153 } 34154 } else { 34155 r.WriteMapElemKey() 34156 if z.IsJSONHandle() { 34157 z.WriteStr("\"Forwarded\"") 34158 } else { 34159 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 34160 } 34161 r.WriteMapElemValue() 34162 if false { 34163 } else { 34164 r.EncodeBool(bool(x.Forwarded)) 34165 } 34166 } 34167 if yyr2 || yy2arr2 { 34168 r.WriteArrayEnd() 34169 } else { 34170 r.WriteMapEnd() 34171 } 34172 } 34173 } 34174 } 34175 34176 func (x *JobDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 34177 var h codecSelfer100 34178 z, r := codec1978.GenHelperDecoder(d) 34179 _, _, _ = h, z, r 34180 if false { 34181 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34182 z.DecExtension(x, yyxt1) 34183 } else { 34184 yyct2 := r.ContainerType() 34185 if yyct2 == codecSelferValueTypeMap100 { 34186 yyl2 := r.ReadMapStart() 34187 if yyl2 == 0 { 34188 r.ReadMapEnd() 34189 } else { 34190 x.codecDecodeSelfFromMap(yyl2, d) 34191 } 34192 } else if yyct2 == codecSelferValueTypeArray100 { 34193 yyl2 := r.ReadArrayStart() 34194 if yyl2 == 0 { 34195 r.ReadArrayEnd() 34196 } else { 34197 x.codecDecodeSelfFromArray(yyl2, d) 34198 } 34199 } else { 34200 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 34201 } 34202 } 34203 } 34204 34205 func (x *JobDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 34206 var h codecSelfer100 34207 z, r := codec1978.GenHelperDecoder(d) 34208 _, _, _ = h, z, r 34209 var yyhl3 bool = l >= 0 34210 for yyj3 := 0; ; yyj3++ { 34211 if yyhl3 { 34212 if yyj3 >= l { 34213 break 34214 } 34215 } else { 34216 if r.CheckBreak() { 34217 break 34218 } 34219 } 34220 r.ReadMapElemKey() 34221 yys3 := z.StringView(r.DecodeStringAsBytes()) 34222 r.ReadMapElemValue() 34223 switch yys3 { 34224 case "JobID": 34225 if r.TryDecodeAsNil() { 34226 x.JobID = "" 34227 } else { 34228 x.JobID = (string)(r.DecodeString()) 34229 } 34230 case "Purge": 34231 if r.TryDecodeAsNil() { 34232 x.Purge = false 34233 } else { 34234 x.Purge = (bool)(r.DecodeBool()) 34235 } 34236 case "Region": 34237 if r.TryDecodeAsNil() { 34238 x.WriteRequest.Region = "" 34239 } else { 34240 x.Region = (string)(r.DecodeString()) 34241 } 34242 case "Namespace": 34243 if r.TryDecodeAsNil() { 34244 x.WriteRequest.Namespace = "" 34245 } else { 34246 x.Namespace = (string)(r.DecodeString()) 34247 } 34248 case "AuthToken": 34249 if r.TryDecodeAsNil() { 34250 x.WriteRequest.AuthToken = "" 34251 } else { 34252 x.AuthToken = (string)(r.DecodeString()) 34253 } 34254 case "Forwarded": 34255 if r.TryDecodeAsNil() { 34256 x.WriteRequest.InternalRpcInfo.Forwarded = false 34257 } else { 34258 x.Forwarded = (bool)(r.DecodeBool()) 34259 } 34260 default: 34261 z.DecStructFieldNotFound(-1, yys3) 34262 } // end switch yys3 34263 } // end for yyj3 34264 r.ReadMapEnd() 34265 } 34266 34267 func (x *JobDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 34268 var h codecSelfer100 34269 z, r := codec1978.GenHelperDecoder(d) 34270 _, _, _ = h, z, r 34271 var yyj10 int 34272 var yyb10 bool 34273 var yyhl10 bool = l >= 0 34274 yyj10++ 34275 if yyhl10 { 34276 yyb10 = yyj10 > l 34277 } else { 34278 yyb10 = r.CheckBreak() 34279 } 34280 if yyb10 { 34281 r.ReadArrayEnd() 34282 return 34283 } 34284 r.ReadArrayElem() 34285 if r.TryDecodeAsNil() { 34286 x.JobID = "" 34287 } else { 34288 x.JobID = (string)(r.DecodeString()) 34289 } 34290 yyj10++ 34291 if yyhl10 { 34292 yyb10 = yyj10 > l 34293 } else { 34294 yyb10 = r.CheckBreak() 34295 } 34296 if yyb10 { 34297 r.ReadArrayEnd() 34298 return 34299 } 34300 r.ReadArrayElem() 34301 if r.TryDecodeAsNil() { 34302 x.Purge = false 34303 } else { 34304 x.Purge = (bool)(r.DecodeBool()) 34305 } 34306 yyj10++ 34307 if yyhl10 { 34308 yyb10 = yyj10 > l 34309 } else { 34310 yyb10 = r.CheckBreak() 34311 } 34312 if yyb10 { 34313 r.ReadArrayEnd() 34314 return 34315 } 34316 r.ReadArrayElem() 34317 if r.TryDecodeAsNil() { 34318 x.WriteRequest.Region = "" 34319 } else { 34320 x.Region = (string)(r.DecodeString()) 34321 } 34322 yyj10++ 34323 if yyhl10 { 34324 yyb10 = yyj10 > l 34325 } else { 34326 yyb10 = r.CheckBreak() 34327 } 34328 if yyb10 { 34329 r.ReadArrayEnd() 34330 return 34331 } 34332 r.ReadArrayElem() 34333 if r.TryDecodeAsNil() { 34334 x.WriteRequest.Namespace = "" 34335 } else { 34336 x.Namespace = (string)(r.DecodeString()) 34337 } 34338 yyj10++ 34339 if yyhl10 { 34340 yyb10 = yyj10 > l 34341 } else { 34342 yyb10 = r.CheckBreak() 34343 } 34344 if yyb10 { 34345 r.ReadArrayEnd() 34346 return 34347 } 34348 r.ReadArrayElem() 34349 if r.TryDecodeAsNil() { 34350 x.WriteRequest.AuthToken = "" 34351 } else { 34352 x.AuthToken = (string)(r.DecodeString()) 34353 } 34354 yyj10++ 34355 if yyhl10 { 34356 yyb10 = yyj10 > l 34357 } else { 34358 yyb10 = r.CheckBreak() 34359 } 34360 if yyb10 { 34361 r.ReadArrayEnd() 34362 return 34363 } 34364 r.ReadArrayElem() 34365 if r.TryDecodeAsNil() { 34366 x.WriteRequest.InternalRpcInfo.Forwarded = false 34367 } else { 34368 x.Forwarded = (bool)(r.DecodeBool()) 34369 } 34370 for { 34371 yyj10++ 34372 if yyhl10 { 34373 yyb10 = yyj10 > l 34374 } else { 34375 yyb10 = r.CheckBreak() 34376 } 34377 if yyb10 { 34378 break 34379 } 34380 r.ReadArrayElem() 34381 z.DecStructFieldNotFound(yyj10-1, "") 34382 } 34383 r.ReadArrayEnd() 34384 } 34385 34386 func (x *JobBatchDeregisterRequest) CodecEncodeSelf(e *codec1978.Encoder) { 34387 var h codecSelfer100 34388 z, r := codec1978.GenHelperEncoder(e) 34389 _, _, _ = h, z, r 34390 if x == nil { 34391 r.EncodeNil() 34392 } else { 34393 if false { 34394 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34395 z.EncExtension(x, yyxt1) 34396 } else { 34397 yysep2 := !z.EncBinary() 34398 yy2arr2 := z.EncBasicHandle().StructToArray 34399 _, _ = yysep2, yy2arr2 34400 const yyr2 bool = false // struct tag has 'toArray' 34401 if yyr2 || yy2arr2 { 34402 r.WriteArrayStart(6) 34403 } else { 34404 r.WriteMapStart(6) 34405 } 34406 if yyr2 || yy2arr2 { 34407 r.WriteArrayElem() 34408 if x.Jobs == nil { 34409 r.EncodeNil() 34410 } else { 34411 if false { 34412 } else { 34413 h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) 34414 } 34415 } 34416 } else { 34417 r.WriteMapElemKey() 34418 if z.IsJSONHandle() { 34419 z.WriteStr("\"Jobs\"") 34420 } else { 34421 r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) 34422 } 34423 r.WriteMapElemValue() 34424 if x.Jobs == nil { 34425 r.EncodeNil() 34426 } else { 34427 if false { 34428 } else { 34429 h.encMapNamespacedIDPtrtoJobDeregisterOptions((map[NamespacedID]*JobDeregisterOptions)(x.Jobs), e) 34430 } 34431 } 34432 } 34433 if yyr2 || yy2arr2 { 34434 r.WriteArrayElem() 34435 if x.Evals == nil { 34436 r.EncodeNil() 34437 } else { 34438 if false { 34439 } else { 34440 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 34441 } 34442 } 34443 } else { 34444 r.WriteMapElemKey() 34445 if z.IsJSONHandle() { 34446 z.WriteStr("\"Evals\"") 34447 } else { 34448 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 34449 } 34450 r.WriteMapElemValue() 34451 if x.Evals == nil { 34452 r.EncodeNil() 34453 } else { 34454 if false { 34455 } else { 34456 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 34457 } 34458 } 34459 } 34460 if yyr2 || yy2arr2 { 34461 r.WriteArrayElem() 34462 if false { 34463 } else { 34464 if z.EncBasicHandle().StringToRaw { 34465 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34466 } else { 34467 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34468 } 34469 } 34470 } else { 34471 r.WriteMapElemKey() 34472 if z.IsJSONHandle() { 34473 z.WriteStr("\"Region\"") 34474 } else { 34475 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 34476 } 34477 r.WriteMapElemValue() 34478 if false { 34479 } else { 34480 if z.EncBasicHandle().StringToRaw { 34481 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 34482 } else { 34483 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 34484 } 34485 } 34486 } 34487 if yyr2 || yy2arr2 { 34488 r.WriteArrayElem() 34489 if false { 34490 } else { 34491 if z.EncBasicHandle().StringToRaw { 34492 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34493 } else { 34494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34495 } 34496 } 34497 } else { 34498 r.WriteMapElemKey() 34499 if z.IsJSONHandle() { 34500 z.WriteStr("\"Namespace\"") 34501 } else { 34502 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 34503 } 34504 r.WriteMapElemValue() 34505 if false { 34506 } else { 34507 if z.EncBasicHandle().StringToRaw { 34508 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 34509 } else { 34510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 34511 } 34512 } 34513 } 34514 if yyr2 || yy2arr2 { 34515 r.WriteArrayElem() 34516 if false { 34517 } else { 34518 if z.EncBasicHandle().StringToRaw { 34519 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34520 } else { 34521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34522 } 34523 } 34524 } else { 34525 r.WriteMapElemKey() 34526 if z.IsJSONHandle() { 34527 z.WriteStr("\"AuthToken\"") 34528 } else { 34529 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 34530 } 34531 r.WriteMapElemValue() 34532 if false { 34533 } else { 34534 if z.EncBasicHandle().StringToRaw { 34535 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 34536 } else { 34537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 34538 } 34539 } 34540 } 34541 if yyr2 || yy2arr2 { 34542 r.WriteArrayElem() 34543 if false { 34544 } else { 34545 r.EncodeBool(bool(x.Forwarded)) 34546 } 34547 } else { 34548 r.WriteMapElemKey() 34549 if z.IsJSONHandle() { 34550 z.WriteStr("\"Forwarded\"") 34551 } else { 34552 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 34553 } 34554 r.WriteMapElemValue() 34555 if false { 34556 } else { 34557 r.EncodeBool(bool(x.Forwarded)) 34558 } 34559 } 34560 if yyr2 || yy2arr2 { 34561 r.WriteArrayEnd() 34562 } else { 34563 r.WriteMapEnd() 34564 } 34565 } 34566 } 34567 } 34568 34569 func (x *JobBatchDeregisterRequest) CodecDecodeSelf(d *codec1978.Decoder) { 34570 var h codecSelfer100 34571 z, r := codec1978.GenHelperDecoder(d) 34572 _, _, _ = h, z, r 34573 if false { 34574 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34575 z.DecExtension(x, yyxt1) 34576 } else { 34577 yyct2 := r.ContainerType() 34578 if yyct2 == codecSelferValueTypeMap100 { 34579 yyl2 := r.ReadMapStart() 34580 if yyl2 == 0 { 34581 r.ReadMapEnd() 34582 } else { 34583 x.codecDecodeSelfFromMap(yyl2, d) 34584 } 34585 } else if yyct2 == codecSelferValueTypeArray100 { 34586 yyl2 := r.ReadArrayStart() 34587 if yyl2 == 0 { 34588 r.ReadArrayEnd() 34589 } else { 34590 x.codecDecodeSelfFromArray(yyl2, d) 34591 } 34592 } else { 34593 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 34594 } 34595 } 34596 } 34597 34598 func (x *JobBatchDeregisterRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 34599 var h codecSelfer100 34600 z, r := codec1978.GenHelperDecoder(d) 34601 _, _, _ = h, z, r 34602 var yyhl3 bool = l >= 0 34603 for yyj3 := 0; ; yyj3++ { 34604 if yyhl3 { 34605 if yyj3 >= l { 34606 break 34607 } 34608 } else { 34609 if r.CheckBreak() { 34610 break 34611 } 34612 } 34613 r.ReadMapElemKey() 34614 yys3 := z.StringView(r.DecodeStringAsBytes()) 34615 r.ReadMapElemValue() 34616 switch yys3 { 34617 case "Jobs": 34618 if r.TryDecodeAsNil() { 34619 x.Jobs = nil 34620 } else { 34621 if false { 34622 } else { 34623 h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) 34624 } 34625 } 34626 case "Evals": 34627 if r.TryDecodeAsNil() { 34628 x.Evals = nil 34629 } else { 34630 if false { 34631 } else { 34632 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 34633 } 34634 } 34635 case "Region": 34636 if r.TryDecodeAsNil() { 34637 x.WriteRequest.Region = "" 34638 } else { 34639 x.Region = (string)(r.DecodeString()) 34640 } 34641 case "Namespace": 34642 if r.TryDecodeAsNil() { 34643 x.WriteRequest.Namespace = "" 34644 } else { 34645 x.Namespace = (string)(r.DecodeString()) 34646 } 34647 case "AuthToken": 34648 if r.TryDecodeAsNil() { 34649 x.WriteRequest.AuthToken = "" 34650 } else { 34651 x.AuthToken = (string)(r.DecodeString()) 34652 } 34653 case "Forwarded": 34654 if r.TryDecodeAsNil() { 34655 x.WriteRequest.InternalRpcInfo.Forwarded = false 34656 } else { 34657 x.Forwarded = (bool)(r.DecodeBool()) 34658 } 34659 default: 34660 z.DecStructFieldNotFound(-1, yys3) 34661 } // end switch yys3 34662 } // end for yyj3 34663 r.ReadMapEnd() 34664 } 34665 34666 func (x *JobBatchDeregisterRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 34667 var h codecSelfer100 34668 z, r := codec1978.GenHelperDecoder(d) 34669 _, _, _ = h, z, r 34670 var yyj12 int 34671 var yyb12 bool 34672 var yyhl12 bool = l >= 0 34673 yyj12++ 34674 if yyhl12 { 34675 yyb12 = yyj12 > l 34676 } else { 34677 yyb12 = r.CheckBreak() 34678 } 34679 if yyb12 { 34680 r.ReadArrayEnd() 34681 return 34682 } 34683 r.ReadArrayElem() 34684 if r.TryDecodeAsNil() { 34685 x.Jobs = nil 34686 } else { 34687 if false { 34688 } else { 34689 h.decMapNamespacedIDPtrtoJobDeregisterOptions((*map[NamespacedID]*JobDeregisterOptions)(&x.Jobs), d) 34690 } 34691 } 34692 yyj12++ 34693 if yyhl12 { 34694 yyb12 = yyj12 > l 34695 } else { 34696 yyb12 = r.CheckBreak() 34697 } 34698 if yyb12 { 34699 r.ReadArrayEnd() 34700 return 34701 } 34702 r.ReadArrayElem() 34703 if r.TryDecodeAsNil() { 34704 x.Evals = nil 34705 } else { 34706 if false { 34707 } else { 34708 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 34709 } 34710 } 34711 yyj12++ 34712 if yyhl12 { 34713 yyb12 = yyj12 > l 34714 } else { 34715 yyb12 = r.CheckBreak() 34716 } 34717 if yyb12 { 34718 r.ReadArrayEnd() 34719 return 34720 } 34721 r.ReadArrayElem() 34722 if r.TryDecodeAsNil() { 34723 x.WriteRequest.Region = "" 34724 } else { 34725 x.Region = (string)(r.DecodeString()) 34726 } 34727 yyj12++ 34728 if yyhl12 { 34729 yyb12 = yyj12 > l 34730 } else { 34731 yyb12 = r.CheckBreak() 34732 } 34733 if yyb12 { 34734 r.ReadArrayEnd() 34735 return 34736 } 34737 r.ReadArrayElem() 34738 if r.TryDecodeAsNil() { 34739 x.WriteRequest.Namespace = "" 34740 } else { 34741 x.Namespace = (string)(r.DecodeString()) 34742 } 34743 yyj12++ 34744 if yyhl12 { 34745 yyb12 = yyj12 > l 34746 } else { 34747 yyb12 = r.CheckBreak() 34748 } 34749 if yyb12 { 34750 r.ReadArrayEnd() 34751 return 34752 } 34753 r.ReadArrayElem() 34754 if r.TryDecodeAsNil() { 34755 x.WriteRequest.AuthToken = "" 34756 } else { 34757 x.AuthToken = (string)(r.DecodeString()) 34758 } 34759 yyj12++ 34760 if yyhl12 { 34761 yyb12 = yyj12 > l 34762 } else { 34763 yyb12 = r.CheckBreak() 34764 } 34765 if yyb12 { 34766 r.ReadArrayEnd() 34767 return 34768 } 34769 r.ReadArrayElem() 34770 if r.TryDecodeAsNil() { 34771 x.WriteRequest.InternalRpcInfo.Forwarded = false 34772 } else { 34773 x.Forwarded = (bool)(r.DecodeBool()) 34774 } 34775 for { 34776 yyj12++ 34777 if yyhl12 { 34778 yyb12 = yyj12 > l 34779 } else { 34780 yyb12 = r.CheckBreak() 34781 } 34782 if yyb12 { 34783 break 34784 } 34785 r.ReadArrayElem() 34786 z.DecStructFieldNotFound(yyj12-1, "") 34787 } 34788 r.ReadArrayEnd() 34789 } 34790 34791 func (x *JobDeregisterOptions) CodecEncodeSelf(e *codec1978.Encoder) { 34792 var h codecSelfer100 34793 z, r := codec1978.GenHelperEncoder(e) 34794 _, _, _ = h, z, r 34795 if x == nil { 34796 r.EncodeNil() 34797 } else { 34798 if false { 34799 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34800 z.EncExtension(x, yyxt1) 34801 } else { 34802 yysep2 := !z.EncBinary() 34803 yy2arr2 := z.EncBasicHandle().StructToArray 34804 _, _ = yysep2, yy2arr2 34805 const yyr2 bool = false // struct tag has 'toArray' 34806 if yyr2 || yy2arr2 { 34807 r.WriteArrayStart(1) 34808 } else { 34809 r.WriteMapStart(1) 34810 } 34811 if yyr2 || yy2arr2 { 34812 r.WriteArrayElem() 34813 if false { 34814 } else { 34815 r.EncodeBool(bool(x.Purge)) 34816 } 34817 } else { 34818 r.WriteMapElemKey() 34819 if z.IsJSONHandle() { 34820 z.WriteStr("\"Purge\"") 34821 } else { 34822 r.EncodeStringEnc(codecSelferCcUTF8100, `Purge`) 34823 } 34824 r.WriteMapElemValue() 34825 if false { 34826 } else { 34827 r.EncodeBool(bool(x.Purge)) 34828 } 34829 } 34830 if yyr2 || yy2arr2 { 34831 r.WriteArrayEnd() 34832 } else { 34833 r.WriteMapEnd() 34834 } 34835 } 34836 } 34837 } 34838 34839 func (x *JobDeregisterOptions) CodecDecodeSelf(d *codec1978.Decoder) { 34840 var h codecSelfer100 34841 z, r := codec1978.GenHelperDecoder(d) 34842 _, _, _ = h, z, r 34843 if false { 34844 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34845 z.DecExtension(x, yyxt1) 34846 } else { 34847 yyct2 := r.ContainerType() 34848 if yyct2 == codecSelferValueTypeMap100 { 34849 yyl2 := r.ReadMapStart() 34850 if yyl2 == 0 { 34851 r.ReadMapEnd() 34852 } else { 34853 x.codecDecodeSelfFromMap(yyl2, d) 34854 } 34855 } else if yyct2 == codecSelferValueTypeArray100 { 34856 yyl2 := r.ReadArrayStart() 34857 if yyl2 == 0 { 34858 r.ReadArrayEnd() 34859 } else { 34860 x.codecDecodeSelfFromArray(yyl2, d) 34861 } 34862 } else { 34863 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 34864 } 34865 } 34866 } 34867 34868 func (x *JobDeregisterOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 34869 var h codecSelfer100 34870 z, r := codec1978.GenHelperDecoder(d) 34871 _, _, _ = h, z, r 34872 var yyhl3 bool = l >= 0 34873 for yyj3 := 0; ; yyj3++ { 34874 if yyhl3 { 34875 if yyj3 >= l { 34876 break 34877 } 34878 } else { 34879 if r.CheckBreak() { 34880 break 34881 } 34882 } 34883 r.ReadMapElemKey() 34884 yys3 := z.StringView(r.DecodeStringAsBytes()) 34885 r.ReadMapElemValue() 34886 switch yys3 { 34887 case "Purge": 34888 if r.TryDecodeAsNil() { 34889 x.Purge = false 34890 } else { 34891 x.Purge = (bool)(r.DecodeBool()) 34892 } 34893 default: 34894 z.DecStructFieldNotFound(-1, yys3) 34895 } // end switch yys3 34896 } // end for yyj3 34897 r.ReadMapEnd() 34898 } 34899 34900 func (x *JobDeregisterOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 34901 var h codecSelfer100 34902 z, r := codec1978.GenHelperDecoder(d) 34903 _, _, _ = h, z, r 34904 var yyj5 int 34905 var yyb5 bool 34906 var yyhl5 bool = l >= 0 34907 yyj5++ 34908 if yyhl5 { 34909 yyb5 = yyj5 > l 34910 } else { 34911 yyb5 = r.CheckBreak() 34912 } 34913 if yyb5 { 34914 r.ReadArrayEnd() 34915 return 34916 } 34917 r.ReadArrayElem() 34918 if r.TryDecodeAsNil() { 34919 x.Purge = false 34920 } else { 34921 x.Purge = (bool)(r.DecodeBool()) 34922 } 34923 for { 34924 yyj5++ 34925 if yyhl5 { 34926 yyb5 = yyj5 > l 34927 } else { 34928 yyb5 = r.CheckBreak() 34929 } 34930 if yyb5 { 34931 break 34932 } 34933 r.ReadArrayElem() 34934 z.DecStructFieldNotFound(yyj5-1, "") 34935 } 34936 r.ReadArrayEnd() 34937 } 34938 34939 func (x *JobEvaluateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 34940 var h codecSelfer100 34941 z, r := codec1978.GenHelperEncoder(e) 34942 _, _, _ = h, z, r 34943 if x == nil { 34944 r.EncodeNil() 34945 } else { 34946 if false { 34947 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 34948 z.EncExtension(x, yyxt1) 34949 } else { 34950 yysep2 := !z.EncBinary() 34951 yy2arr2 := z.EncBasicHandle().StructToArray 34952 _, _ = yysep2, yy2arr2 34953 const yyr2 bool = false // struct tag has 'toArray' 34954 if yyr2 || yy2arr2 { 34955 r.WriteArrayStart(6) 34956 } else { 34957 r.WriteMapStart(6) 34958 } 34959 if yyr2 || yy2arr2 { 34960 r.WriteArrayElem() 34961 if false { 34962 } else { 34963 if z.EncBasicHandle().StringToRaw { 34964 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 34965 } else { 34966 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 34967 } 34968 } 34969 } else { 34970 r.WriteMapElemKey() 34971 if z.IsJSONHandle() { 34972 z.WriteStr("\"JobID\"") 34973 } else { 34974 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 34975 } 34976 r.WriteMapElemValue() 34977 if false { 34978 } else { 34979 if z.EncBasicHandle().StringToRaw { 34980 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 34981 } else { 34982 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 34983 } 34984 } 34985 } 34986 if yyr2 || yy2arr2 { 34987 r.WriteArrayElem() 34988 yy7 := &x.EvalOptions 34989 yy7.CodecEncodeSelf(e) 34990 } else { 34991 r.WriteMapElemKey() 34992 if z.IsJSONHandle() { 34993 z.WriteStr("\"EvalOptions\"") 34994 } else { 34995 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalOptions`) 34996 } 34997 r.WriteMapElemValue() 34998 yy9 := &x.EvalOptions 34999 yy9.CodecEncodeSelf(e) 35000 } 35001 if yyr2 || yy2arr2 { 35002 r.WriteArrayElem() 35003 if false { 35004 } else { 35005 if z.EncBasicHandle().StringToRaw { 35006 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35007 } else { 35008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35009 } 35010 } 35011 } else { 35012 r.WriteMapElemKey() 35013 if z.IsJSONHandle() { 35014 z.WriteStr("\"Region\"") 35015 } else { 35016 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 35017 } 35018 r.WriteMapElemValue() 35019 if false { 35020 } else { 35021 if z.EncBasicHandle().StringToRaw { 35022 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35023 } else { 35024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35025 } 35026 } 35027 } 35028 if yyr2 || yy2arr2 { 35029 r.WriteArrayElem() 35030 if false { 35031 } else { 35032 if z.EncBasicHandle().StringToRaw { 35033 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35034 } else { 35035 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35036 } 35037 } 35038 } else { 35039 r.WriteMapElemKey() 35040 if z.IsJSONHandle() { 35041 z.WriteStr("\"Namespace\"") 35042 } else { 35043 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 35044 } 35045 r.WriteMapElemValue() 35046 if false { 35047 } else { 35048 if z.EncBasicHandle().StringToRaw { 35049 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35050 } else { 35051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35052 } 35053 } 35054 } 35055 if yyr2 || yy2arr2 { 35056 r.WriteArrayElem() 35057 if false { 35058 } else { 35059 if z.EncBasicHandle().StringToRaw { 35060 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35061 } else { 35062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35063 } 35064 } 35065 } else { 35066 r.WriteMapElemKey() 35067 if z.IsJSONHandle() { 35068 z.WriteStr("\"AuthToken\"") 35069 } else { 35070 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 35071 } 35072 r.WriteMapElemValue() 35073 if false { 35074 } else { 35075 if z.EncBasicHandle().StringToRaw { 35076 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35077 } else { 35078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35079 } 35080 } 35081 } 35082 if yyr2 || yy2arr2 { 35083 r.WriteArrayElem() 35084 if false { 35085 } else { 35086 r.EncodeBool(bool(x.Forwarded)) 35087 } 35088 } else { 35089 r.WriteMapElemKey() 35090 if z.IsJSONHandle() { 35091 z.WriteStr("\"Forwarded\"") 35092 } else { 35093 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 35094 } 35095 r.WriteMapElemValue() 35096 if false { 35097 } else { 35098 r.EncodeBool(bool(x.Forwarded)) 35099 } 35100 } 35101 if yyr2 || yy2arr2 { 35102 r.WriteArrayEnd() 35103 } else { 35104 r.WriteMapEnd() 35105 } 35106 } 35107 } 35108 } 35109 35110 func (x *JobEvaluateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 35111 var h codecSelfer100 35112 z, r := codec1978.GenHelperDecoder(d) 35113 _, _, _ = h, z, r 35114 if false { 35115 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35116 z.DecExtension(x, yyxt1) 35117 } else { 35118 yyct2 := r.ContainerType() 35119 if yyct2 == codecSelferValueTypeMap100 { 35120 yyl2 := r.ReadMapStart() 35121 if yyl2 == 0 { 35122 r.ReadMapEnd() 35123 } else { 35124 x.codecDecodeSelfFromMap(yyl2, d) 35125 } 35126 } else if yyct2 == codecSelferValueTypeArray100 { 35127 yyl2 := r.ReadArrayStart() 35128 if yyl2 == 0 { 35129 r.ReadArrayEnd() 35130 } else { 35131 x.codecDecodeSelfFromArray(yyl2, d) 35132 } 35133 } else { 35134 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 35135 } 35136 } 35137 } 35138 35139 func (x *JobEvaluateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 35140 var h codecSelfer100 35141 z, r := codec1978.GenHelperDecoder(d) 35142 _, _, _ = h, z, r 35143 var yyhl3 bool = l >= 0 35144 for yyj3 := 0; ; yyj3++ { 35145 if yyhl3 { 35146 if yyj3 >= l { 35147 break 35148 } 35149 } else { 35150 if r.CheckBreak() { 35151 break 35152 } 35153 } 35154 r.ReadMapElemKey() 35155 yys3 := z.StringView(r.DecodeStringAsBytes()) 35156 r.ReadMapElemValue() 35157 switch yys3 { 35158 case "JobID": 35159 if r.TryDecodeAsNil() { 35160 x.JobID = "" 35161 } else { 35162 x.JobID = (string)(r.DecodeString()) 35163 } 35164 case "EvalOptions": 35165 if r.TryDecodeAsNil() { 35166 x.EvalOptions = EvalOptions{} 35167 } else { 35168 x.EvalOptions.CodecDecodeSelf(d) 35169 } 35170 case "Region": 35171 if r.TryDecodeAsNil() { 35172 x.WriteRequest.Region = "" 35173 } else { 35174 x.Region = (string)(r.DecodeString()) 35175 } 35176 case "Namespace": 35177 if r.TryDecodeAsNil() { 35178 x.WriteRequest.Namespace = "" 35179 } else { 35180 x.Namespace = (string)(r.DecodeString()) 35181 } 35182 case "AuthToken": 35183 if r.TryDecodeAsNil() { 35184 x.WriteRequest.AuthToken = "" 35185 } else { 35186 x.AuthToken = (string)(r.DecodeString()) 35187 } 35188 case "Forwarded": 35189 if r.TryDecodeAsNil() { 35190 x.WriteRequest.InternalRpcInfo.Forwarded = false 35191 } else { 35192 x.Forwarded = (bool)(r.DecodeBool()) 35193 } 35194 default: 35195 z.DecStructFieldNotFound(-1, yys3) 35196 } // end switch yys3 35197 } // end for yyj3 35198 r.ReadMapEnd() 35199 } 35200 35201 func (x *JobEvaluateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 35202 var h codecSelfer100 35203 z, r := codec1978.GenHelperDecoder(d) 35204 _, _, _ = h, z, r 35205 var yyj10 int 35206 var yyb10 bool 35207 var yyhl10 bool = l >= 0 35208 yyj10++ 35209 if yyhl10 { 35210 yyb10 = yyj10 > l 35211 } else { 35212 yyb10 = r.CheckBreak() 35213 } 35214 if yyb10 { 35215 r.ReadArrayEnd() 35216 return 35217 } 35218 r.ReadArrayElem() 35219 if r.TryDecodeAsNil() { 35220 x.JobID = "" 35221 } else { 35222 x.JobID = (string)(r.DecodeString()) 35223 } 35224 yyj10++ 35225 if yyhl10 { 35226 yyb10 = yyj10 > l 35227 } else { 35228 yyb10 = r.CheckBreak() 35229 } 35230 if yyb10 { 35231 r.ReadArrayEnd() 35232 return 35233 } 35234 r.ReadArrayElem() 35235 if r.TryDecodeAsNil() { 35236 x.EvalOptions = EvalOptions{} 35237 } else { 35238 x.EvalOptions.CodecDecodeSelf(d) 35239 } 35240 yyj10++ 35241 if yyhl10 { 35242 yyb10 = yyj10 > l 35243 } else { 35244 yyb10 = r.CheckBreak() 35245 } 35246 if yyb10 { 35247 r.ReadArrayEnd() 35248 return 35249 } 35250 r.ReadArrayElem() 35251 if r.TryDecodeAsNil() { 35252 x.WriteRequest.Region = "" 35253 } else { 35254 x.Region = (string)(r.DecodeString()) 35255 } 35256 yyj10++ 35257 if yyhl10 { 35258 yyb10 = yyj10 > l 35259 } else { 35260 yyb10 = r.CheckBreak() 35261 } 35262 if yyb10 { 35263 r.ReadArrayEnd() 35264 return 35265 } 35266 r.ReadArrayElem() 35267 if r.TryDecodeAsNil() { 35268 x.WriteRequest.Namespace = "" 35269 } else { 35270 x.Namespace = (string)(r.DecodeString()) 35271 } 35272 yyj10++ 35273 if yyhl10 { 35274 yyb10 = yyj10 > l 35275 } else { 35276 yyb10 = r.CheckBreak() 35277 } 35278 if yyb10 { 35279 r.ReadArrayEnd() 35280 return 35281 } 35282 r.ReadArrayElem() 35283 if r.TryDecodeAsNil() { 35284 x.WriteRequest.AuthToken = "" 35285 } else { 35286 x.AuthToken = (string)(r.DecodeString()) 35287 } 35288 yyj10++ 35289 if yyhl10 { 35290 yyb10 = yyj10 > l 35291 } else { 35292 yyb10 = r.CheckBreak() 35293 } 35294 if yyb10 { 35295 r.ReadArrayEnd() 35296 return 35297 } 35298 r.ReadArrayElem() 35299 if r.TryDecodeAsNil() { 35300 x.WriteRequest.InternalRpcInfo.Forwarded = false 35301 } else { 35302 x.Forwarded = (bool)(r.DecodeBool()) 35303 } 35304 for { 35305 yyj10++ 35306 if yyhl10 { 35307 yyb10 = yyj10 > l 35308 } else { 35309 yyb10 = r.CheckBreak() 35310 } 35311 if yyb10 { 35312 break 35313 } 35314 r.ReadArrayElem() 35315 z.DecStructFieldNotFound(yyj10-1, "") 35316 } 35317 r.ReadArrayEnd() 35318 } 35319 35320 func (x *EvalOptions) CodecEncodeSelf(e *codec1978.Encoder) { 35321 var h codecSelfer100 35322 z, r := codec1978.GenHelperEncoder(e) 35323 _, _, _ = h, z, r 35324 if x == nil { 35325 r.EncodeNil() 35326 } else { 35327 if false { 35328 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35329 z.EncExtension(x, yyxt1) 35330 } else { 35331 yysep2 := !z.EncBinary() 35332 yy2arr2 := z.EncBasicHandle().StructToArray 35333 _, _ = yysep2, yy2arr2 35334 const yyr2 bool = false // struct tag has 'toArray' 35335 if yyr2 || yy2arr2 { 35336 r.WriteArrayStart(1) 35337 } else { 35338 r.WriteMapStart(1) 35339 } 35340 if yyr2 || yy2arr2 { 35341 r.WriteArrayElem() 35342 if false { 35343 } else { 35344 r.EncodeBool(bool(x.ForceReschedule)) 35345 } 35346 } else { 35347 r.WriteMapElemKey() 35348 if z.IsJSONHandle() { 35349 z.WriteStr("\"ForceReschedule\"") 35350 } else { 35351 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) 35352 } 35353 r.WriteMapElemValue() 35354 if false { 35355 } else { 35356 r.EncodeBool(bool(x.ForceReschedule)) 35357 } 35358 } 35359 if yyr2 || yy2arr2 { 35360 r.WriteArrayEnd() 35361 } else { 35362 r.WriteMapEnd() 35363 } 35364 } 35365 } 35366 } 35367 35368 func (x *EvalOptions) CodecDecodeSelf(d *codec1978.Decoder) { 35369 var h codecSelfer100 35370 z, r := codec1978.GenHelperDecoder(d) 35371 _, _, _ = h, z, r 35372 if false { 35373 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35374 z.DecExtension(x, yyxt1) 35375 } else { 35376 yyct2 := r.ContainerType() 35377 if yyct2 == codecSelferValueTypeMap100 { 35378 yyl2 := r.ReadMapStart() 35379 if yyl2 == 0 { 35380 r.ReadMapEnd() 35381 } else { 35382 x.codecDecodeSelfFromMap(yyl2, d) 35383 } 35384 } else if yyct2 == codecSelferValueTypeArray100 { 35385 yyl2 := r.ReadArrayStart() 35386 if yyl2 == 0 { 35387 r.ReadArrayEnd() 35388 } else { 35389 x.codecDecodeSelfFromArray(yyl2, d) 35390 } 35391 } else { 35392 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 35393 } 35394 } 35395 } 35396 35397 func (x *EvalOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 35398 var h codecSelfer100 35399 z, r := codec1978.GenHelperDecoder(d) 35400 _, _, _ = h, z, r 35401 var yyhl3 bool = l >= 0 35402 for yyj3 := 0; ; yyj3++ { 35403 if yyhl3 { 35404 if yyj3 >= l { 35405 break 35406 } 35407 } else { 35408 if r.CheckBreak() { 35409 break 35410 } 35411 } 35412 r.ReadMapElemKey() 35413 yys3 := z.StringView(r.DecodeStringAsBytes()) 35414 r.ReadMapElemValue() 35415 switch yys3 { 35416 case "ForceReschedule": 35417 if r.TryDecodeAsNil() { 35418 x.ForceReschedule = false 35419 } else { 35420 x.ForceReschedule = (bool)(r.DecodeBool()) 35421 } 35422 default: 35423 z.DecStructFieldNotFound(-1, yys3) 35424 } // end switch yys3 35425 } // end for yyj3 35426 r.ReadMapEnd() 35427 } 35428 35429 func (x *EvalOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 35430 var h codecSelfer100 35431 z, r := codec1978.GenHelperDecoder(d) 35432 _, _, _ = h, z, r 35433 var yyj5 int 35434 var yyb5 bool 35435 var yyhl5 bool = l >= 0 35436 yyj5++ 35437 if yyhl5 { 35438 yyb5 = yyj5 > l 35439 } else { 35440 yyb5 = r.CheckBreak() 35441 } 35442 if yyb5 { 35443 r.ReadArrayEnd() 35444 return 35445 } 35446 r.ReadArrayElem() 35447 if r.TryDecodeAsNil() { 35448 x.ForceReschedule = false 35449 } else { 35450 x.ForceReschedule = (bool)(r.DecodeBool()) 35451 } 35452 for { 35453 yyj5++ 35454 if yyhl5 { 35455 yyb5 = yyj5 > l 35456 } else { 35457 yyb5 = r.CheckBreak() 35458 } 35459 if yyb5 { 35460 break 35461 } 35462 r.ReadArrayElem() 35463 z.DecStructFieldNotFound(yyj5-1, "") 35464 } 35465 r.ReadArrayEnd() 35466 } 35467 35468 func (x *JobSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 35469 var h codecSelfer100 35470 z, r := codec1978.GenHelperEncoder(e) 35471 _, _, _ = h, z, r 35472 if x == nil { 35473 r.EncodeNil() 35474 } else { 35475 if false { 35476 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35477 z.EncExtension(x, yyxt1) 35478 } else { 35479 yysep2 := !z.EncBinary() 35480 yy2arr2 := z.EncBasicHandle().StructToArray 35481 _, _ = yysep2, yy2arr2 35482 const yyr2 bool = false // struct tag has 'toArray' 35483 if yyr2 || yy2arr2 { 35484 r.WriteArrayStart(10) 35485 } else { 35486 r.WriteMapStart(10) 35487 } 35488 if yyr2 || yy2arr2 { 35489 r.WriteArrayElem() 35490 if false { 35491 } else { 35492 if z.EncBasicHandle().StringToRaw { 35493 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 35494 } else { 35495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 35496 } 35497 } 35498 } else { 35499 r.WriteMapElemKey() 35500 if z.IsJSONHandle() { 35501 z.WriteStr("\"JobID\"") 35502 } else { 35503 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 35504 } 35505 r.WriteMapElemValue() 35506 if false { 35507 } else { 35508 if z.EncBasicHandle().StringToRaw { 35509 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 35510 } else { 35511 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 35512 } 35513 } 35514 } 35515 if yyr2 || yy2arr2 { 35516 r.WriteArrayElem() 35517 if false { 35518 } else { 35519 r.EncodeBool(bool(x.All)) 35520 } 35521 } else { 35522 r.WriteMapElemKey() 35523 if z.IsJSONHandle() { 35524 z.WriteStr("\"All\"") 35525 } else { 35526 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 35527 } 35528 r.WriteMapElemValue() 35529 if false { 35530 } else { 35531 r.EncodeBool(bool(x.All)) 35532 } 35533 } 35534 if yyr2 || yy2arr2 { 35535 r.WriteArrayElem() 35536 if false { 35537 } else { 35538 if z.EncBasicHandle().StringToRaw { 35539 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35540 } else { 35541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35542 } 35543 } 35544 } else { 35545 r.WriteMapElemKey() 35546 if z.IsJSONHandle() { 35547 z.WriteStr("\"Region\"") 35548 } else { 35549 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 35550 } 35551 r.WriteMapElemValue() 35552 if false { 35553 } else { 35554 if z.EncBasicHandle().StringToRaw { 35555 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 35556 } else { 35557 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 35558 } 35559 } 35560 } 35561 if yyr2 || yy2arr2 { 35562 r.WriteArrayElem() 35563 if false { 35564 } else { 35565 if z.EncBasicHandle().StringToRaw { 35566 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35567 } else { 35568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35569 } 35570 } 35571 } else { 35572 r.WriteMapElemKey() 35573 if z.IsJSONHandle() { 35574 z.WriteStr("\"Namespace\"") 35575 } else { 35576 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 35577 } 35578 r.WriteMapElemValue() 35579 if false { 35580 } else { 35581 if z.EncBasicHandle().StringToRaw { 35582 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 35583 } else { 35584 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 35585 } 35586 } 35587 } 35588 if yyr2 || yy2arr2 { 35589 r.WriteArrayElem() 35590 if false { 35591 } else { 35592 r.EncodeUint(uint64(x.MinQueryIndex)) 35593 } 35594 } else { 35595 r.WriteMapElemKey() 35596 if z.IsJSONHandle() { 35597 z.WriteStr("\"MinQueryIndex\"") 35598 } else { 35599 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 35600 } 35601 r.WriteMapElemValue() 35602 if false { 35603 } else { 35604 r.EncodeUint(uint64(x.MinQueryIndex)) 35605 } 35606 } 35607 if yyr2 || yy2arr2 { 35608 r.WriteArrayElem() 35609 if false { 35610 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 35611 z.EncExtension(x.MaxQueryTime, yyxt19) 35612 } else { 35613 r.EncodeInt(int64(x.MaxQueryTime)) 35614 } 35615 } else { 35616 r.WriteMapElemKey() 35617 if z.IsJSONHandle() { 35618 z.WriteStr("\"MaxQueryTime\"") 35619 } else { 35620 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 35621 } 35622 r.WriteMapElemValue() 35623 if false { 35624 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 35625 z.EncExtension(x.MaxQueryTime, yyxt20) 35626 } else { 35627 r.EncodeInt(int64(x.MaxQueryTime)) 35628 } 35629 } 35630 if yyr2 || yy2arr2 { 35631 r.WriteArrayElem() 35632 if false { 35633 } else { 35634 r.EncodeBool(bool(x.AllowStale)) 35635 } 35636 } else { 35637 r.WriteMapElemKey() 35638 if z.IsJSONHandle() { 35639 z.WriteStr("\"AllowStale\"") 35640 } else { 35641 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 35642 } 35643 r.WriteMapElemValue() 35644 if false { 35645 } else { 35646 r.EncodeBool(bool(x.AllowStale)) 35647 } 35648 } 35649 if yyr2 || yy2arr2 { 35650 r.WriteArrayElem() 35651 if false { 35652 } else { 35653 if z.EncBasicHandle().StringToRaw { 35654 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 35655 } else { 35656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 35657 } 35658 } 35659 } else { 35660 r.WriteMapElemKey() 35661 if z.IsJSONHandle() { 35662 z.WriteStr("\"Prefix\"") 35663 } else { 35664 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 35665 } 35666 r.WriteMapElemValue() 35667 if false { 35668 } else { 35669 if z.EncBasicHandle().StringToRaw { 35670 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 35671 } else { 35672 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 35673 } 35674 } 35675 } 35676 if yyr2 || yy2arr2 { 35677 r.WriteArrayElem() 35678 if false { 35679 } else { 35680 if z.EncBasicHandle().StringToRaw { 35681 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35682 } else { 35683 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35684 } 35685 } 35686 } else { 35687 r.WriteMapElemKey() 35688 if z.IsJSONHandle() { 35689 z.WriteStr("\"AuthToken\"") 35690 } else { 35691 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 35692 } 35693 r.WriteMapElemValue() 35694 if false { 35695 } else { 35696 if z.EncBasicHandle().StringToRaw { 35697 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 35698 } else { 35699 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 35700 } 35701 } 35702 } 35703 if yyr2 || yy2arr2 { 35704 r.WriteArrayElem() 35705 if false { 35706 } else { 35707 r.EncodeBool(bool(x.Forwarded)) 35708 } 35709 } else { 35710 r.WriteMapElemKey() 35711 if z.IsJSONHandle() { 35712 z.WriteStr("\"Forwarded\"") 35713 } else { 35714 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 35715 } 35716 r.WriteMapElemValue() 35717 if false { 35718 } else { 35719 r.EncodeBool(bool(x.Forwarded)) 35720 } 35721 } 35722 if yyr2 || yy2arr2 { 35723 r.WriteArrayEnd() 35724 } else { 35725 r.WriteMapEnd() 35726 } 35727 } 35728 } 35729 } 35730 35731 func (x *JobSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 35732 var h codecSelfer100 35733 z, r := codec1978.GenHelperDecoder(d) 35734 _, _, _ = h, z, r 35735 if false { 35736 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 35737 z.DecExtension(x, yyxt1) 35738 } else { 35739 yyct2 := r.ContainerType() 35740 if yyct2 == codecSelferValueTypeMap100 { 35741 yyl2 := r.ReadMapStart() 35742 if yyl2 == 0 { 35743 r.ReadMapEnd() 35744 } else { 35745 x.codecDecodeSelfFromMap(yyl2, d) 35746 } 35747 } else if yyct2 == codecSelferValueTypeArray100 { 35748 yyl2 := r.ReadArrayStart() 35749 if yyl2 == 0 { 35750 r.ReadArrayEnd() 35751 } else { 35752 x.codecDecodeSelfFromArray(yyl2, d) 35753 } 35754 } else { 35755 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 35756 } 35757 } 35758 } 35759 35760 func (x *JobSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 35761 var h codecSelfer100 35762 z, r := codec1978.GenHelperDecoder(d) 35763 _, _, _ = h, z, r 35764 var yyhl3 bool = l >= 0 35765 for yyj3 := 0; ; yyj3++ { 35766 if yyhl3 { 35767 if yyj3 >= l { 35768 break 35769 } 35770 } else { 35771 if r.CheckBreak() { 35772 break 35773 } 35774 } 35775 r.ReadMapElemKey() 35776 yys3 := z.StringView(r.DecodeStringAsBytes()) 35777 r.ReadMapElemValue() 35778 switch yys3 { 35779 case "JobID": 35780 if r.TryDecodeAsNil() { 35781 x.JobID = "" 35782 } else { 35783 x.JobID = (string)(r.DecodeString()) 35784 } 35785 case "All": 35786 if r.TryDecodeAsNil() { 35787 x.All = false 35788 } else { 35789 x.All = (bool)(r.DecodeBool()) 35790 } 35791 case "Region": 35792 if r.TryDecodeAsNil() { 35793 x.QueryOptions.Region = "" 35794 } else { 35795 x.Region = (string)(r.DecodeString()) 35796 } 35797 case "Namespace": 35798 if r.TryDecodeAsNil() { 35799 x.QueryOptions.Namespace = "" 35800 } else { 35801 x.Namespace = (string)(r.DecodeString()) 35802 } 35803 case "MinQueryIndex": 35804 if r.TryDecodeAsNil() { 35805 x.QueryOptions.MinQueryIndex = 0 35806 } else { 35807 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 35808 } 35809 case "MaxQueryTime": 35810 if r.TryDecodeAsNil() { 35811 x.QueryOptions.MaxQueryTime = 0 35812 } else { 35813 if false { 35814 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 35815 z.DecExtension(x.MaxQueryTime, yyxt10) 35816 } else { 35817 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 35818 } 35819 } 35820 case "AllowStale": 35821 if r.TryDecodeAsNil() { 35822 x.QueryOptions.AllowStale = false 35823 } else { 35824 x.AllowStale = (bool)(r.DecodeBool()) 35825 } 35826 case "Prefix": 35827 if r.TryDecodeAsNil() { 35828 x.QueryOptions.Prefix = "" 35829 } else { 35830 x.Prefix = (string)(r.DecodeString()) 35831 } 35832 case "AuthToken": 35833 if r.TryDecodeAsNil() { 35834 x.QueryOptions.AuthToken = "" 35835 } else { 35836 x.AuthToken = (string)(r.DecodeString()) 35837 } 35838 case "Forwarded": 35839 if r.TryDecodeAsNil() { 35840 x.QueryOptions.InternalRpcInfo.Forwarded = false 35841 } else { 35842 x.Forwarded = (bool)(r.DecodeBool()) 35843 } 35844 default: 35845 z.DecStructFieldNotFound(-1, yys3) 35846 } // end switch yys3 35847 } // end for yyj3 35848 r.ReadMapEnd() 35849 } 35850 35851 func (x *JobSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 35852 var h codecSelfer100 35853 z, r := codec1978.GenHelperDecoder(d) 35854 _, _, _ = h, z, r 35855 var yyj15 int 35856 var yyb15 bool 35857 var yyhl15 bool = l >= 0 35858 yyj15++ 35859 if yyhl15 { 35860 yyb15 = yyj15 > l 35861 } else { 35862 yyb15 = r.CheckBreak() 35863 } 35864 if yyb15 { 35865 r.ReadArrayEnd() 35866 return 35867 } 35868 r.ReadArrayElem() 35869 if r.TryDecodeAsNil() { 35870 x.JobID = "" 35871 } else { 35872 x.JobID = (string)(r.DecodeString()) 35873 } 35874 yyj15++ 35875 if yyhl15 { 35876 yyb15 = yyj15 > l 35877 } else { 35878 yyb15 = r.CheckBreak() 35879 } 35880 if yyb15 { 35881 r.ReadArrayEnd() 35882 return 35883 } 35884 r.ReadArrayElem() 35885 if r.TryDecodeAsNil() { 35886 x.All = false 35887 } else { 35888 x.All = (bool)(r.DecodeBool()) 35889 } 35890 yyj15++ 35891 if yyhl15 { 35892 yyb15 = yyj15 > l 35893 } else { 35894 yyb15 = r.CheckBreak() 35895 } 35896 if yyb15 { 35897 r.ReadArrayEnd() 35898 return 35899 } 35900 r.ReadArrayElem() 35901 if r.TryDecodeAsNil() { 35902 x.QueryOptions.Region = "" 35903 } else { 35904 x.Region = (string)(r.DecodeString()) 35905 } 35906 yyj15++ 35907 if yyhl15 { 35908 yyb15 = yyj15 > l 35909 } else { 35910 yyb15 = r.CheckBreak() 35911 } 35912 if yyb15 { 35913 r.ReadArrayEnd() 35914 return 35915 } 35916 r.ReadArrayElem() 35917 if r.TryDecodeAsNil() { 35918 x.QueryOptions.Namespace = "" 35919 } else { 35920 x.Namespace = (string)(r.DecodeString()) 35921 } 35922 yyj15++ 35923 if yyhl15 { 35924 yyb15 = yyj15 > l 35925 } else { 35926 yyb15 = r.CheckBreak() 35927 } 35928 if yyb15 { 35929 r.ReadArrayEnd() 35930 return 35931 } 35932 r.ReadArrayElem() 35933 if r.TryDecodeAsNil() { 35934 x.QueryOptions.MinQueryIndex = 0 35935 } else { 35936 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 35937 } 35938 yyj15++ 35939 if yyhl15 { 35940 yyb15 = yyj15 > l 35941 } else { 35942 yyb15 = r.CheckBreak() 35943 } 35944 if yyb15 { 35945 r.ReadArrayEnd() 35946 return 35947 } 35948 r.ReadArrayElem() 35949 if r.TryDecodeAsNil() { 35950 x.QueryOptions.MaxQueryTime = 0 35951 } else { 35952 if false { 35953 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 35954 z.DecExtension(x.MaxQueryTime, yyxt22) 35955 } else { 35956 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 35957 } 35958 } 35959 yyj15++ 35960 if yyhl15 { 35961 yyb15 = yyj15 > l 35962 } else { 35963 yyb15 = r.CheckBreak() 35964 } 35965 if yyb15 { 35966 r.ReadArrayEnd() 35967 return 35968 } 35969 r.ReadArrayElem() 35970 if r.TryDecodeAsNil() { 35971 x.QueryOptions.AllowStale = false 35972 } else { 35973 x.AllowStale = (bool)(r.DecodeBool()) 35974 } 35975 yyj15++ 35976 if yyhl15 { 35977 yyb15 = yyj15 > l 35978 } else { 35979 yyb15 = r.CheckBreak() 35980 } 35981 if yyb15 { 35982 r.ReadArrayEnd() 35983 return 35984 } 35985 r.ReadArrayElem() 35986 if r.TryDecodeAsNil() { 35987 x.QueryOptions.Prefix = "" 35988 } else { 35989 x.Prefix = (string)(r.DecodeString()) 35990 } 35991 yyj15++ 35992 if yyhl15 { 35993 yyb15 = yyj15 > l 35994 } else { 35995 yyb15 = r.CheckBreak() 35996 } 35997 if yyb15 { 35998 r.ReadArrayEnd() 35999 return 36000 } 36001 r.ReadArrayElem() 36002 if r.TryDecodeAsNil() { 36003 x.QueryOptions.AuthToken = "" 36004 } else { 36005 x.AuthToken = (string)(r.DecodeString()) 36006 } 36007 yyj15++ 36008 if yyhl15 { 36009 yyb15 = yyj15 > l 36010 } else { 36011 yyb15 = r.CheckBreak() 36012 } 36013 if yyb15 { 36014 r.ReadArrayEnd() 36015 return 36016 } 36017 r.ReadArrayElem() 36018 if r.TryDecodeAsNil() { 36019 x.QueryOptions.InternalRpcInfo.Forwarded = false 36020 } else { 36021 x.Forwarded = (bool)(r.DecodeBool()) 36022 } 36023 for { 36024 yyj15++ 36025 if yyhl15 { 36026 yyb15 = yyj15 > l 36027 } else { 36028 yyb15 = r.CheckBreak() 36029 } 36030 if yyb15 { 36031 break 36032 } 36033 r.ReadArrayElem() 36034 z.DecStructFieldNotFound(yyj15-1, "") 36035 } 36036 r.ReadArrayEnd() 36037 } 36038 36039 func (x *JobListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 36040 var h codecSelfer100 36041 z, r := codec1978.GenHelperEncoder(e) 36042 _, _, _ = h, z, r 36043 if x == nil { 36044 r.EncodeNil() 36045 } else { 36046 if false { 36047 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36048 z.EncExtension(x, yyxt1) 36049 } else { 36050 yysep2 := !z.EncBinary() 36051 yy2arr2 := z.EncBasicHandle().StructToArray 36052 _, _ = yysep2, yy2arr2 36053 const yyr2 bool = false // struct tag has 'toArray' 36054 if yyr2 || yy2arr2 { 36055 r.WriteArrayStart(8) 36056 } else { 36057 r.WriteMapStart(8) 36058 } 36059 if yyr2 || yy2arr2 { 36060 r.WriteArrayElem() 36061 if false { 36062 } else { 36063 if z.EncBasicHandle().StringToRaw { 36064 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36065 } else { 36066 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36067 } 36068 } 36069 } else { 36070 r.WriteMapElemKey() 36071 if z.IsJSONHandle() { 36072 z.WriteStr("\"Region\"") 36073 } else { 36074 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 36075 } 36076 r.WriteMapElemValue() 36077 if false { 36078 } else { 36079 if z.EncBasicHandle().StringToRaw { 36080 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36081 } else { 36082 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36083 } 36084 } 36085 } 36086 if yyr2 || yy2arr2 { 36087 r.WriteArrayElem() 36088 if false { 36089 } else { 36090 if z.EncBasicHandle().StringToRaw { 36091 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36092 } else { 36093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36094 } 36095 } 36096 } else { 36097 r.WriteMapElemKey() 36098 if z.IsJSONHandle() { 36099 z.WriteStr("\"Namespace\"") 36100 } else { 36101 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 36102 } 36103 r.WriteMapElemValue() 36104 if false { 36105 } else { 36106 if z.EncBasicHandle().StringToRaw { 36107 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36108 } else { 36109 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36110 } 36111 } 36112 } 36113 if yyr2 || yy2arr2 { 36114 r.WriteArrayElem() 36115 if false { 36116 } else { 36117 r.EncodeUint(uint64(x.MinQueryIndex)) 36118 } 36119 } else { 36120 r.WriteMapElemKey() 36121 if z.IsJSONHandle() { 36122 z.WriteStr("\"MinQueryIndex\"") 36123 } else { 36124 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 36125 } 36126 r.WriteMapElemValue() 36127 if false { 36128 } else { 36129 r.EncodeUint(uint64(x.MinQueryIndex)) 36130 } 36131 } 36132 if yyr2 || yy2arr2 { 36133 r.WriteArrayElem() 36134 if false { 36135 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 36136 z.EncExtension(x.MaxQueryTime, yyxt13) 36137 } else { 36138 r.EncodeInt(int64(x.MaxQueryTime)) 36139 } 36140 } else { 36141 r.WriteMapElemKey() 36142 if z.IsJSONHandle() { 36143 z.WriteStr("\"MaxQueryTime\"") 36144 } else { 36145 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 36146 } 36147 r.WriteMapElemValue() 36148 if false { 36149 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 36150 z.EncExtension(x.MaxQueryTime, yyxt14) 36151 } else { 36152 r.EncodeInt(int64(x.MaxQueryTime)) 36153 } 36154 } 36155 if yyr2 || yy2arr2 { 36156 r.WriteArrayElem() 36157 if false { 36158 } else { 36159 r.EncodeBool(bool(x.AllowStale)) 36160 } 36161 } else { 36162 r.WriteMapElemKey() 36163 if z.IsJSONHandle() { 36164 z.WriteStr("\"AllowStale\"") 36165 } else { 36166 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 36167 } 36168 r.WriteMapElemValue() 36169 if false { 36170 } else { 36171 r.EncodeBool(bool(x.AllowStale)) 36172 } 36173 } 36174 if yyr2 || yy2arr2 { 36175 r.WriteArrayElem() 36176 if false { 36177 } else { 36178 if z.EncBasicHandle().StringToRaw { 36179 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36180 } else { 36181 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36182 } 36183 } 36184 } else { 36185 r.WriteMapElemKey() 36186 if z.IsJSONHandle() { 36187 z.WriteStr("\"Prefix\"") 36188 } else { 36189 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 36190 } 36191 r.WriteMapElemValue() 36192 if false { 36193 } else { 36194 if z.EncBasicHandle().StringToRaw { 36195 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 36196 } else { 36197 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 36198 } 36199 } 36200 } 36201 if yyr2 || yy2arr2 { 36202 r.WriteArrayElem() 36203 if false { 36204 } else { 36205 if z.EncBasicHandle().StringToRaw { 36206 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36207 } else { 36208 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36209 } 36210 } 36211 } else { 36212 r.WriteMapElemKey() 36213 if z.IsJSONHandle() { 36214 z.WriteStr("\"AuthToken\"") 36215 } else { 36216 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 36217 } 36218 r.WriteMapElemValue() 36219 if false { 36220 } else { 36221 if z.EncBasicHandle().StringToRaw { 36222 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36223 } else { 36224 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36225 } 36226 } 36227 } 36228 if yyr2 || yy2arr2 { 36229 r.WriteArrayElem() 36230 if false { 36231 } else { 36232 r.EncodeBool(bool(x.Forwarded)) 36233 } 36234 } else { 36235 r.WriteMapElemKey() 36236 if z.IsJSONHandle() { 36237 z.WriteStr("\"Forwarded\"") 36238 } else { 36239 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 36240 } 36241 r.WriteMapElemValue() 36242 if false { 36243 } else { 36244 r.EncodeBool(bool(x.Forwarded)) 36245 } 36246 } 36247 if yyr2 || yy2arr2 { 36248 r.WriteArrayEnd() 36249 } else { 36250 r.WriteMapEnd() 36251 } 36252 } 36253 } 36254 } 36255 36256 func (x *JobListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 36257 var h codecSelfer100 36258 z, r := codec1978.GenHelperDecoder(d) 36259 _, _, _ = h, z, r 36260 if false { 36261 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36262 z.DecExtension(x, yyxt1) 36263 } else { 36264 yyct2 := r.ContainerType() 36265 if yyct2 == codecSelferValueTypeMap100 { 36266 yyl2 := r.ReadMapStart() 36267 if yyl2 == 0 { 36268 r.ReadMapEnd() 36269 } else { 36270 x.codecDecodeSelfFromMap(yyl2, d) 36271 } 36272 } else if yyct2 == codecSelferValueTypeArray100 { 36273 yyl2 := r.ReadArrayStart() 36274 if yyl2 == 0 { 36275 r.ReadArrayEnd() 36276 } else { 36277 x.codecDecodeSelfFromArray(yyl2, d) 36278 } 36279 } else { 36280 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 36281 } 36282 } 36283 } 36284 36285 func (x *JobListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 36286 var h codecSelfer100 36287 z, r := codec1978.GenHelperDecoder(d) 36288 _, _, _ = h, z, r 36289 var yyhl3 bool = l >= 0 36290 for yyj3 := 0; ; yyj3++ { 36291 if yyhl3 { 36292 if yyj3 >= l { 36293 break 36294 } 36295 } else { 36296 if r.CheckBreak() { 36297 break 36298 } 36299 } 36300 r.ReadMapElemKey() 36301 yys3 := z.StringView(r.DecodeStringAsBytes()) 36302 r.ReadMapElemValue() 36303 switch yys3 { 36304 case "Region": 36305 if r.TryDecodeAsNil() { 36306 x.QueryOptions.Region = "" 36307 } else { 36308 x.Region = (string)(r.DecodeString()) 36309 } 36310 case "Namespace": 36311 if r.TryDecodeAsNil() { 36312 x.QueryOptions.Namespace = "" 36313 } else { 36314 x.Namespace = (string)(r.DecodeString()) 36315 } 36316 case "MinQueryIndex": 36317 if r.TryDecodeAsNil() { 36318 x.QueryOptions.MinQueryIndex = 0 36319 } else { 36320 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36321 } 36322 case "MaxQueryTime": 36323 if r.TryDecodeAsNil() { 36324 x.QueryOptions.MaxQueryTime = 0 36325 } else { 36326 if false { 36327 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 36328 z.DecExtension(x.MaxQueryTime, yyxt8) 36329 } else { 36330 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36331 } 36332 } 36333 case "AllowStale": 36334 if r.TryDecodeAsNil() { 36335 x.QueryOptions.AllowStale = false 36336 } else { 36337 x.AllowStale = (bool)(r.DecodeBool()) 36338 } 36339 case "Prefix": 36340 if r.TryDecodeAsNil() { 36341 x.QueryOptions.Prefix = "" 36342 } else { 36343 x.Prefix = (string)(r.DecodeString()) 36344 } 36345 case "AuthToken": 36346 if r.TryDecodeAsNil() { 36347 x.QueryOptions.AuthToken = "" 36348 } else { 36349 x.AuthToken = (string)(r.DecodeString()) 36350 } 36351 case "Forwarded": 36352 if r.TryDecodeAsNil() { 36353 x.QueryOptions.InternalRpcInfo.Forwarded = false 36354 } else { 36355 x.Forwarded = (bool)(r.DecodeBool()) 36356 } 36357 default: 36358 z.DecStructFieldNotFound(-1, yys3) 36359 } // end switch yys3 36360 } // end for yyj3 36361 r.ReadMapEnd() 36362 } 36363 36364 func (x *JobListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 36365 var h codecSelfer100 36366 z, r := codec1978.GenHelperDecoder(d) 36367 _, _, _ = h, z, r 36368 var yyj13 int 36369 var yyb13 bool 36370 var yyhl13 bool = l >= 0 36371 yyj13++ 36372 if yyhl13 { 36373 yyb13 = yyj13 > l 36374 } else { 36375 yyb13 = r.CheckBreak() 36376 } 36377 if yyb13 { 36378 r.ReadArrayEnd() 36379 return 36380 } 36381 r.ReadArrayElem() 36382 if r.TryDecodeAsNil() { 36383 x.QueryOptions.Region = "" 36384 } else { 36385 x.Region = (string)(r.DecodeString()) 36386 } 36387 yyj13++ 36388 if yyhl13 { 36389 yyb13 = yyj13 > l 36390 } else { 36391 yyb13 = r.CheckBreak() 36392 } 36393 if yyb13 { 36394 r.ReadArrayEnd() 36395 return 36396 } 36397 r.ReadArrayElem() 36398 if r.TryDecodeAsNil() { 36399 x.QueryOptions.Namespace = "" 36400 } else { 36401 x.Namespace = (string)(r.DecodeString()) 36402 } 36403 yyj13++ 36404 if yyhl13 { 36405 yyb13 = yyj13 > l 36406 } else { 36407 yyb13 = r.CheckBreak() 36408 } 36409 if yyb13 { 36410 r.ReadArrayEnd() 36411 return 36412 } 36413 r.ReadArrayElem() 36414 if r.TryDecodeAsNil() { 36415 x.QueryOptions.MinQueryIndex = 0 36416 } else { 36417 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 36418 } 36419 yyj13++ 36420 if yyhl13 { 36421 yyb13 = yyj13 > l 36422 } else { 36423 yyb13 = r.CheckBreak() 36424 } 36425 if yyb13 { 36426 r.ReadArrayEnd() 36427 return 36428 } 36429 r.ReadArrayElem() 36430 if r.TryDecodeAsNil() { 36431 x.QueryOptions.MaxQueryTime = 0 36432 } else { 36433 if false { 36434 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 36435 z.DecExtension(x.MaxQueryTime, yyxt18) 36436 } else { 36437 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 36438 } 36439 } 36440 yyj13++ 36441 if yyhl13 { 36442 yyb13 = yyj13 > l 36443 } else { 36444 yyb13 = r.CheckBreak() 36445 } 36446 if yyb13 { 36447 r.ReadArrayEnd() 36448 return 36449 } 36450 r.ReadArrayElem() 36451 if r.TryDecodeAsNil() { 36452 x.QueryOptions.AllowStale = false 36453 } else { 36454 x.AllowStale = (bool)(r.DecodeBool()) 36455 } 36456 yyj13++ 36457 if yyhl13 { 36458 yyb13 = yyj13 > l 36459 } else { 36460 yyb13 = r.CheckBreak() 36461 } 36462 if yyb13 { 36463 r.ReadArrayEnd() 36464 return 36465 } 36466 r.ReadArrayElem() 36467 if r.TryDecodeAsNil() { 36468 x.QueryOptions.Prefix = "" 36469 } else { 36470 x.Prefix = (string)(r.DecodeString()) 36471 } 36472 yyj13++ 36473 if yyhl13 { 36474 yyb13 = yyj13 > l 36475 } else { 36476 yyb13 = r.CheckBreak() 36477 } 36478 if yyb13 { 36479 r.ReadArrayEnd() 36480 return 36481 } 36482 r.ReadArrayElem() 36483 if r.TryDecodeAsNil() { 36484 x.QueryOptions.AuthToken = "" 36485 } else { 36486 x.AuthToken = (string)(r.DecodeString()) 36487 } 36488 yyj13++ 36489 if yyhl13 { 36490 yyb13 = yyj13 > l 36491 } else { 36492 yyb13 = r.CheckBreak() 36493 } 36494 if yyb13 { 36495 r.ReadArrayEnd() 36496 return 36497 } 36498 r.ReadArrayElem() 36499 if r.TryDecodeAsNil() { 36500 x.QueryOptions.InternalRpcInfo.Forwarded = false 36501 } else { 36502 x.Forwarded = (bool)(r.DecodeBool()) 36503 } 36504 for { 36505 yyj13++ 36506 if yyhl13 { 36507 yyb13 = yyj13 > l 36508 } else { 36509 yyb13 = r.CheckBreak() 36510 } 36511 if yyb13 { 36512 break 36513 } 36514 r.ReadArrayElem() 36515 z.DecStructFieldNotFound(yyj13-1, "") 36516 } 36517 r.ReadArrayEnd() 36518 } 36519 36520 func (x *JobPlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { 36521 var h codecSelfer100 36522 z, r := codec1978.GenHelperEncoder(e) 36523 _, _, _ = h, z, r 36524 if x == nil { 36525 r.EncodeNil() 36526 } else { 36527 if false { 36528 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36529 z.EncExtension(x, yyxt1) 36530 } else { 36531 yysep2 := !z.EncBinary() 36532 yy2arr2 := z.EncBasicHandle().StructToArray 36533 _, _ = yysep2, yy2arr2 36534 const yyr2 bool = false // struct tag has 'toArray' 36535 if yyr2 || yy2arr2 { 36536 r.WriteArrayStart(7) 36537 } else { 36538 r.WriteMapStart(7) 36539 } 36540 var yyn3 bool 36541 if x.Job == nil { 36542 yyn3 = true 36543 goto LABEL3 36544 } 36545 LABEL3: 36546 if yyr2 || yy2arr2 { 36547 if yyn3 { 36548 r.WriteArrayElem() 36549 r.EncodeNil() 36550 } else { 36551 r.WriteArrayElem() 36552 if x.Job == nil { 36553 r.EncodeNil() 36554 } else { 36555 x.Job.CodecEncodeSelf(e) 36556 } 36557 } 36558 } else { 36559 r.WriteMapElemKey() 36560 if z.IsJSONHandle() { 36561 z.WriteStr("\"Job\"") 36562 } else { 36563 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 36564 } 36565 r.WriteMapElemValue() 36566 if yyn3 { 36567 r.EncodeNil() 36568 } else { 36569 if x.Job == nil { 36570 r.EncodeNil() 36571 } else { 36572 x.Job.CodecEncodeSelf(e) 36573 } 36574 } 36575 } 36576 if yyr2 || yy2arr2 { 36577 r.WriteArrayElem() 36578 if false { 36579 } else { 36580 r.EncodeBool(bool(x.Diff)) 36581 } 36582 } else { 36583 r.WriteMapElemKey() 36584 if z.IsJSONHandle() { 36585 z.WriteStr("\"Diff\"") 36586 } else { 36587 r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) 36588 } 36589 r.WriteMapElemValue() 36590 if false { 36591 } else { 36592 r.EncodeBool(bool(x.Diff)) 36593 } 36594 } 36595 if yyr2 || yy2arr2 { 36596 r.WriteArrayElem() 36597 if false { 36598 } else { 36599 r.EncodeBool(bool(x.PolicyOverride)) 36600 } 36601 } else { 36602 r.WriteMapElemKey() 36603 if z.IsJSONHandle() { 36604 z.WriteStr("\"PolicyOverride\"") 36605 } else { 36606 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 36607 } 36608 r.WriteMapElemValue() 36609 if false { 36610 } else { 36611 r.EncodeBool(bool(x.PolicyOverride)) 36612 } 36613 } 36614 if yyr2 || yy2arr2 { 36615 r.WriteArrayElem() 36616 if false { 36617 } else { 36618 if z.EncBasicHandle().StringToRaw { 36619 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36620 } else { 36621 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36622 } 36623 } 36624 } else { 36625 r.WriteMapElemKey() 36626 if z.IsJSONHandle() { 36627 z.WriteStr("\"Region\"") 36628 } else { 36629 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 36630 } 36631 r.WriteMapElemValue() 36632 if false { 36633 } else { 36634 if z.EncBasicHandle().StringToRaw { 36635 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 36636 } else { 36637 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 36638 } 36639 } 36640 } 36641 if yyr2 || yy2arr2 { 36642 r.WriteArrayElem() 36643 if false { 36644 } else { 36645 if z.EncBasicHandle().StringToRaw { 36646 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36647 } else { 36648 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36649 } 36650 } 36651 } else { 36652 r.WriteMapElemKey() 36653 if z.IsJSONHandle() { 36654 z.WriteStr("\"Namespace\"") 36655 } else { 36656 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 36657 } 36658 r.WriteMapElemValue() 36659 if false { 36660 } else { 36661 if z.EncBasicHandle().StringToRaw { 36662 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36663 } else { 36664 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36665 } 36666 } 36667 } 36668 if yyr2 || yy2arr2 { 36669 r.WriteArrayElem() 36670 if false { 36671 } else { 36672 if z.EncBasicHandle().StringToRaw { 36673 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36674 } else { 36675 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36676 } 36677 } 36678 } else { 36679 r.WriteMapElemKey() 36680 if z.IsJSONHandle() { 36681 z.WriteStr("\"AuthToken\"") 36682 } else { 36683 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 36684 } 36685 r.WriteMapElemValue() 36686 if false { 36687 } else { 36688 if z.EncBasicHandle().StringToRaw { 36689 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 36690 } else { 36691 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 36692 } 36693 } 36694 } 36695 if yyr2 || yy2arr2 { 36696 r.WriteArrayElem() 36697 if false { 36698 } else { 36699 r.EncodeBool(bool(x.Forwarded)) 36700 } 36701 } else { 36702 r.WriteMapElemKey() 36703 if z.IsJSONHandle() { 36704 z.WriteStr("\"Forwarded\"") 36705 } else { 36706 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 36707 } 36708 r.WriteMapElemValue() 36709 if false { 36710 } else { 36711 r.EncodeBool(bool(x.Forwarded)) 36712 } 36713 } 36714 if yyr2 || yy2arr2 { 36715 r.WriteArrayEnd() 36716 } else { 36717 r.WriteMapEnd() 36718 } 36719 } 36720 } 36721 } 36722 36723 func (x *JobPlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { 36724 var h codecSelfer100 36725 z, r := codec1978.GenHelperDecoder(d) 36726 _, _, _ = h, z, r 36727 if false { 36728 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36729 z.DecExtension(x, yyxt1) 36730 } else { 36731 yyct2 := r.ContainerType() 36732 if yyct2 == codecSelferValueTypeMap100 { 36733 yyl2 := r.ReadMapStart() 36734 if yyl2 == 0 { 36735 r.ReadMapEnd() 36736 } else { 36737 x.codecDecodeSelfFromMap(yyl2, d) 36738 } 36739 } else if yyct2 == codecSelferValueTypeArray100 { 36740 yyl2 := r.ReadArrayStart() 36741 if yyl2 == 0 { 36742 r.ReadArrayEnd() 36743 } else { 36744 x.codecDecodeSelfFromArray(yyl2, d) 36745 } 36746 } else { 36747 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 36748 } 36749 } 36750 } 36751 36752 func (x *JobPlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 36753 var h codecSelfer100 36754 z, r := codec1978.GenHelperDecoder(d) 36755 _, _, _ = h, z, r 36756 var yyhl3 bool = l >= 0 36757 for yyj3 := 0; ; yyj3++ { 36758 if yyhl3 { 36759 if yyj3 >= l { 36760 break 36761 } 36762 } else { 36763 if r.CheckBreak() { 36764 break 36765 } 36766 } 36767 r.ReadMapElemKey() 36768 yys3 := z.StringView(r.DecodeStringAsBytes()) 36769 r.ReadMapElemValue() 36770 switch yys3 { 36771 case "Job": 36772 if r.TryDecodeAsNil() { 36773 if true && x.Job != nil { 36774 x.Job = nil 36775 } 36776 } else { 36777 if x.Job == nil { 36778 x.Job = new(Job) 36779 } 36780 36781 x.Job.CodecDecodeSelf(d) 36782 } 36783 case "Diff": 36784 if r.TryDecodeAsNil() { 36785 x.Diff = false 36786 } else { 36787 x.Diff = (bool)(r.DecodeBool()) 36788 } 36789 case "PolicyOverride": 36790 if r.TryDecodeAsNil() { 36791 x.PolicyOverride = false 36792 } else { 36793 x.PolicyOverride = (bool)(r.DecodeBool()) 36794 } 36795 case "Region": 36796 if r.TryDecodeAsNil() { 36797 x.WriteRequest.Region = "" 36798 } else { 36799 x.Region = (string)(r.DecodeString()) 36800 } 36801 case "Namespace": 36802 if r.TryDecodeAsNil() { 36803 x.WriteRequest.Namespace = "" 36804 } else { 36805 x.Namespace = (string)(r.DecodeString()) 36806 } 36807 case "AuthToken": 36808 if r.TryDecodeAsNil() { 36809 x.WriteRequest.AuthToken = "" 36810 } else { 36811 x.AuthToken = (string)(r.DecodeString()) 36812 } 36813 case "Forwarded": 36814 if r.TryDecodeAsNil() { 36815 x.WriteRequest.InternalRpcInfo.Forwarded = false 36816 } else { 36817 x.Forwarded = (bool)(r.DecodeBool()) 36818 } 36819 default: 36820 z.DecStructFieldNotFound(-1, yys3) 36821 } // end switch yys3 36822 } // end for yyj3 36823 r.ReadMapEnd() 36824 } 36825 36826 func (x *JobPlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 36827 var h codecSelfer100 36828 z, r := codec1978.GenHelperDecoder(d) 36829 _, _, _ = h, z, r 36830 var yyj11 int 36831 var yyb11 bool 36832 var yyhl11 bool = l >= 0 36833 yyj11++ 36834 if yyhl11 { 36835 yyb11 = yyj11 > l 36836 } else { 36837 yyb11 = r.CheckBreak() 36838 } 36839 if yyb11 { 36840 r.ReadArrayEnd() 36841 return 36842 } 36843 r.ReadArrayElem() 36844 if r.TryDecodeAsNil() { 36845 if true && x.Job != nil { 36846 x.Job = nil 36847 } 36848 } else { 36849 if x.Job == nil { 36850 x.Job = new(Job) 36851 } 36852 36853 x.Job.CodecDecodeSelf(d) 36854 } 36855 yyj11++ 36856 if yyhl11 { 36857 yyb11 = yyj11 > l 36858 } else { 36859 yyb11 = r.CheckBreak() 36860 } 36861 if yyb11 { 36862 r.ReadArrayEnd() 36863 return 36864 } 36865 r.ReadArrayElem() 36866 if r.TryDecodeAsNil() { 36867 x.Diff = false 36868 } else { 36869 x.Diff = (bool)(r.DecodeBool()) 36870 } 36871 yyj11++ 36872 if yyhl11 { 36873 yyb11 = yyj11 > l 36874 } else { 36875 yyb11 = r.CheckBreak() 36876 } 36877 if yyb11 { 36878 r.ReadArrayEnd() 36879 return 36880 } 36881 r.ReadArrayElem() 36882 if r.TryDecodeAsNil() { 36883 x.PolicyOverride = false 36884 } else { 36885 x.PolicyOverride = (bool)(r.DecodeBool()) 36886 } 36887 yyj11++ 36888 if yyhl11 { 36889 yyb11 = yyj11 > l 36890 } else { 36891 yyb11 = r.CheckBreak() 36892 } 36893 if yyb11 { 36894 r.ReadArrayEnd() 36895 return 36896 } 36897 r.ReadArrayElem() 36898 if r.TryDecodeAsNil() { 36899 x.WriteRequest.Region = "" 36900 } else { 36901 x.Region = (string)(r.DecodeString()) 36902 } 36903 yyj11++ 36904 if yyhl11 { 36905 yyb11 = yyj11 > l 36906 } else { 36907 yyb11 = r.CheckBreak() 36908 } 36909 if yyb11 { 36910 r.ReadArrayEnd() 36911 return 36912 } 36913 r.ReadArrayElem() 36914 if r.TryDecodeAsNil() { 36915 x.WriteRequest.Namespace = "" 36916 } else { 36917 x.Namespace = (string)(r.DecodeString()) 36918 } 36919 yyj11++ 36920 if yyhl11 { 36921 yyb11 = yyj11 > l 36922 } else { 36923 yyb11 = r.CheckBreak() 36924 } 36925 if yyb11 { 36926 r.ReadArrayEnd() 36927 return 36928 } 36929 r.ReadArrayElem() 36930 if r.TryDecodeAsNil() { 36931 x.WriteRequest.AuthToken = "" 36932 } else { 36933 x.AuthToken = (string)(r.DecodeString()) 36934 } 36935 yyj11++ 36936 if yyhl11 { 36937 yyb11 = yyj11 > l 36938 } else { 36939 yyb11 = r.CheckBreak() 36940 } 36941 if yyb11 { 36942 r.ReadArrayEnd() 36943 return 36944 } 36945 r.ReadArrayElem() 36946 if r.TryDecodeAsNil() { 36947 x.WriteRequest.InternalRpcInfo.Forwarded = false 36948 } else { 36949 x.Forwarded = (bool)(r.DecodeBool()) 36950 } 36951 for { 36952 yyj11++ 36953 if yyhl11 { 36954 yyb11 = yyj11 > l 36955 } else { 36956 yyb11 = r.CheckBreak() 36957 } 36958 if yyb11 { 36959 break 36960 } 36961 r.ReadArrayElem() 36962 z.DecStructFieldNotFound(yyj11-1, "") 36963 } 36964 r.ReadArrayEnd() 36965 } 36966 36967 func (x *JobScaleRequest) CodecEncodeSelf(e *codec1978.Encoder) { 36968 var h codecSelfer100 36969 z, r := codec1978.GenHelperEncoder(e) 36970 _, _, _ = h, z, r 36971 if x == nil { 36972 r.EncodeNil() 36973 } else { 36974 if false { 36975 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 36976 z.EncExtension(x, yyxt1) 36977 } else { 36978 yysep2 := !z.EncBinary() 36979 yy2arr2 := z.EncBasicHandle().StructToArray 36980 _, _ = yysep2, yy2arr2 36981 const yyr2 bool = false // struct tag has 'toArray' 36982 if yyr2 || yy2arr2 { 36983 r.WriteArrayStart(11) 36984 } else { 36985 r.WriteMapStart(11) 36986 } 36987 if yyr2 || yy2arr2 { 36988 r.WriteArrayElem() 36989 if false { 36990 } else { 36991 if z.EncBasicHandle().StringToRaw { 36992 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 36993 } else { 36994 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 36995 } 36996 } 36997 } else { 36998 r.WriteMapElemKey() 36999 if z.IsJSONHandle() { 37000 z.WriteStr("\"Namespace\"") 37001 } else { 37002 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 37003 } 37004 r.WriteMapElemValue() 37005 if false { 37006 } else { 37007 if z.EncBasicHandle().StringToRaw { 37008 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37009 } else { 37010 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37011 } 37012 } 37013 } 37014 if yyr2 || yy2arr2 { 37015 r.WriteArrayElem() 37016 if false { 37017 } else { 37018 if z.EncBasicHandle().StringToRaw { 37019 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37020 } else { 37021 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37022 } 37023 } 37024 } else { 37025 r.WriteMapElemKey() 37026 if z.IsJSONHandle() { 37027 z.WriteStr("\"JobID\"") 37028 } else { 37029 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 37030 } 37031 r.WriteMapElemValue() 37032 if false { 37033 } else { 37034 if z.EncBasicHandle().StringToRaw { 37035 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37036 } else { 37037 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37038 } 37039 } 37040 } 37041 if yyr2 || yy2arr2 { 37042 r.WriteArrayElem() 37043 if x.Target == nil { 37044 r.EncodeNil() 37045 } else { 37046 if false { 37047 } else { 37048 z.F.EncMapStringStringV(x.Target, e) 37049 } 37050 } 37051 } else { 37052 r.WriteMapElemKey() 37053 if z.IsJSONHandle() { 37054 z.WriteStr("\"Target\"") 37055 } else { 37056 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 37057 } 37058 r.WriteMapElemValue() 37059 if x.Target == nil { 37060 r.EncodeNil() 37061 } else { 37062 if false { 37063 } else { 37064 z.F.EncMapStringStringV(x.Target, e) 37065 } 37066 } 37067 } 37068 var yyn12 bool 37069 if x.Count == nil { 37070 yyn12 = true 37071 goto LABEL12 37072 } 37073 LABEL12: 37074 if yyr2 || yy2arr2 { 37075 if yyn12 { 37076 r.WriteArrayElem() 37077 r.EncodeNil() 37078 } else { 37079 r.WriteArrayElem() 37080 if x.Count == nil { 37081 r.EncodeNil() 37082 } else { 37083 yy13 := *x.Count 37084 if false { 37085 } else { 37086 r.EncodeInt(int64(yy13)) 37087 } 37088 } 37089 } 37090 } else { 37091 r.WriteMapElemKey() 37092 if z.IsJSONHandle() { 37093 z.WriteStr("\"Count\"") 37094 } else { 37095 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 37096 } 37097 r.WriteMapElemValue() 37098 if yyn12 { 37099 r.EncodeNil() 37100 } else { 37101 if x.Count == nil { 37102 r.EncodeNil() 37103 } else { 37104 yy15 := *x.Count 37105 if false { 37106 } else { 37107 r.EncodeInt(int64(yy15)) 37108 } 37109 } 37110 } 37111 } 37112 if yyr2 || yy2arr2 { 37113 r.WriteArrayElem() 37114 if false { 37115 } else { 37116 if z.EncBasicHandle().StringToRaw { 37117 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 37118 } else { 37119 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 37120 } 37121 } 37122 } else { 37123 r.WriteMapElemKey() 37124 if z.IsJSONHandle() { 37125 z.WriteStr("\"Message\"") 37126 } else { 37127 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 37128 } 37129 r.WriteMapElemValue() 37130 if false { 37131 } else { 37132 if z.EncBasicHandle().StringToRaw { 37133 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 37134 } else { 37135 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 37136 } 37137 } 37138 } 37139 if yyr2 || yy2arr2 { 37140 r.WriteArrayElem() 37141 if false { 37142 } else { 37143 r.EncodeBool(bool(x.Error)) 37144 } 37145 } else { 37146 r.WriteMapElemKey() 37147 if z.IsJSONHandle() { 37148 z.WriteStr("\"Error\"") 37149 } else { 37150 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 37151 } 37152 r.WriteMapElemValue() 37153 if false { 37154 } else { 37155 r.EncodeBool(bool(x.Error)) 37156 } 37157 } 37158 if yyr2 || yy2arr2 { 37159 r.WriteArrayElem() 37160 if x.Meta == nil { 37161 r.EncodeNil() 37162 } else { 37163 if false { 37164 } else { 37165 z.F.EncMapStringIntfV(x.Meta, e) 37166 } 37167 } 37168 } else { 37169 r.WriteMapElemKey() 37170 if z.IsJSONHandle() { 37171 z.WriteStr("\"Meta\"") 37172 } else { 37173 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 37174 } 37175 r.WriteMapElemValue() 37176 if x.Meta == nil { 37177 r.EncodeNil() 37178 } else { 37179 if false { 37180 } else { 37181 z.F.EncMapStringIntfV(x.Meta, e) 37182 } 37183 } 37184 } 37185 if yyr2 || yy2arr2 { 37186 r.WriteArrayElem() 37187 if false { 37188 } else { 37189 r.EncodeBool(bool(x.PolicyOverride)) 37190 } 37191 } else { 37192 r.WriteMapElemKey() 37193 if z.IsJSONHandle() { 37194 z.WriteStr("\"PolicyOverride\"") 37195 } else { 37196 r.EncodeStringEnc(codecSelferCcUTF8100, `PolicyOverride`) 37197 } 37198 r.WriteMapElemValue() 37199 if false { 37200 } else { 37201 r.EncodeBool(bool(x.PolicyOverride)) 37202 } 37203 } 37204 if yyr2 || yy2arr2 { 37205 r.WriteArrayElem() 37206 if false { 37207 } else { 37208 if z.EncBasicHandle().StringToRaw { 37209 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37210 } else { 37211 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37212 } 37213 } 37214 } else { 37215 r.WriteMapElemKey() 37216 if z.IsJSONHandle() { 37217 z.WriteStr("\"Region\"") 37218 } else { 37219 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 37220 } 37221 r.WriteMapElemValue() 37222 if false { 37223 } else { 37224 if z.EncBasicHandle().StringToRaw { 37225 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37226 } else { 37227 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37228 } 37229 } 37230 } 37231 if yyr2 || yy2arr2 { 37232 r.WriteArrayElem() 37233 if false { 37234 } else { 37235 if z.EncBasicHandle().StringToRaw { 37236 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37237 } else { 37238 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37239 } 37240 } 37241 } else { 37242 r.WriteMapElemKey() 37243 if z.IsJSONHandle() { 37244 z.WriteStr("\"AuthToken\"") 37245 } else { 37246 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 37247 } 37248 r.WriteMapElemValue() 37249 if false { 37250 } else { 37251 if z.EncBasicHandle().StringToRaw { 37252 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37253 } else { 37254 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37255 } 37256 } 37257 } 37258 if yyr2 || yy2arr2 { 37259 r.WriteArrayElem() 37260 if false { 37261 } else { 37262 r.EncodeBool(bool(x.Forwarded)) 37263 } 37264 } else { 37265 r.WriteMapElemKey() 37266 if z.IsJSONHandle() { 37267 z.WriteStr("\"Forwarded\"") 37268 } else { 37269 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 37270 } 37271 r.WriteMapElemValue() 37272 if false { 37273 } else { 37274 r.EncodeBool(bool(x.Forwarded)) 37275 } 37276 } 37277 if yyr2 || yy2arr2 { 37278 r.WriteArrayEnd() 37279 } else { 37280 r.WriteMapEnd() 37281 } 37282 } 37283 } 37284 } 37285 37286 func (x *JobScaleRequest) CodecDecodeSelf(d *codec1978.Decoder) { 37287 var h codecSelfer100 37288 z, r := codec1978.GenHelperDecoder(d) 37289 _, _, _ = h, z, r 37290 if false { 37291 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37292 z.DecExtension(x, yyxt1) 37293 } else { 37294 yyct2 := r.ContainerType() 37295 if yyct2 == codecSelferValueTypeMap100 { 37296 yyl2 := r.ReadMapStart() 37297 if yyl2 == 0 { 37298 r.ReadMapEnd() 37299 } else { 37300 x.codecDecodeSelfFromMap(yyl2, d) 37301 } 37302 } else if yyct2 == codecSelferValueTypeArray100 { 37303 yyl2 := r.ReadArrayStart() 37304 if yyl2 == 0 { 37305 r.ReadArrayEnd() 37306 } else { 37307 x.codecDecodeSelfFromArray(yyl2, d) 37308 } 37309 } else { 37310 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 37311 } 37312 } 37313 } 37314 37315 func (x *JobScaleRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 37316 var h codecSelfer100 37317 z, r := codec1978.GenHelperDecoder(d) 37318 _, _, _ = h, z, r 37319 var yyhl3 bool = l >= 0 37320 for yyj3 := 0; ; yyj3++ { 37321 if yyhl3 { 37322 if yyj3 >= l { 37323 break 37324 } 37325 } else { 37326 if r.CheckBreak() { 37327 break 37328 } 37329 } 37330 r.ReadMapElemKey() 37331 yys3 := z.StringView(r.DecodeStringAsBytes()) 37332 r.ReadMapElemValue() 37333 switch yys3 { 37334 case "Namespace": 37335 if r.TryDecodeAsNil() { 37336 x.Namespace = "" 37337 } else { 37338 x.Namespace = (string)(r.DecodeString()) 37339 } 37340 case "JobID": 37341 if r.TryDecodeAsNil() { 37342 x.JobID = "" 37343 } else { 37344 x.JobID = (string)(r.DecodeString()) 37345 } 37346 case "Target": 37347 if r.TryDecodeAsNil() { 37348 x.Target = nil 37349 } else { 37350 if false { 37351 } else { 37352 z.F.DecMapStringStringX(&x.Target, d) 37353 } 37354 } 37355 case "Count": 37356 if r.TryDecodeAsNil() { 37357 if true && x.Count != nil { 37358 x.Count = nil 37359 } 37360 } else { 37361 if x.Count == nil { 37362 x.Count = new(int64) 37363 } 37364 37365 if false { 37366 } else { 37367 *x.Count = (int64)(r.DecodeInt64()) 37368 } 37369 } 37370 case "Message": 37371 if r.TryDecodeAsNil() { 37372 x.Message = "" 37373 } else { 37374 x.Message = (string)(r.DecodeString()) 37375 } 37376 case "Error": 37377 if r.TryDecodeAsNil() { 37378 x.Error = false 37379 } else { 37380 x.Error = (bool)(r.DecodeBool()) 37381 } 37382 case "Meta": 37383 if r.TryDecodeAsNil() { 37384 x.Meta = nil 37385 } else { 37386 if false { 37387 } else { 37388 z.F.DecMapStringIntfX(&x.Meta, d) 37389 } 37390 } 37391 case "PolicyOverride": 37392 if r.TryDecodeAsNil() { 37393 x.PolicyOverride = false 37394 } else { 37395 x.PolicyOverride = (bool)(r.DecodeBool()) 37396 } 37397 case "Region": 37398 if r.TryDecodeAsNil() { 37399 x.WriteRequest.Region = "" 37400 } else { 37401 x.Region = (string)(r.DecodeString()) 37402 } 37403 case "AuthToken": 37404 if r.TryDecodeAsNil() { 37405 x.WriteRequest.AuthToken = "" 37406 } else { 37407 x.AuthToken = (string)(r.DecodeString()) 37408 } 37409 case "Forwarded": 37410 if r.TryDecodeAsNil() { 37411 x.WriteRequest.InternalRpcInfo.Forwarded = false 37412 } else { 37413 x.Forwarded = (bool)(r.DecodeBool()) 37414 } 37415 default: 37416 z.DecStructFieldNotFound(-1, yys3) 37417 } // end switch yys3 37418 } // end for yyj3 37419 r.ReadMapEnd() 37420 } 37421 37422 func (x *JobScaleRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 37423 var h codecSelfer100 37424 z, r := codec1978.GenHelperDecoder(d) 37425 _, _, _ = h, z, r 37426 var yyj18 int 37427 var yyb18 bool 37428 var yyhl18 bool = l >= 0 37429 yyj18++ 37430 if yyhl18 { 37431 yyb18 = yyj18 > l 37432 } else { 37433 yyb18 = r.CheckBreak() 37434 } 37435 if yyb18 { 37436 r.ReadArrayEnd() 37437 return 37438 } 37439 r.ReadArrayElem() 37440 if r.TryDecodeAsNil() { 37441 x.Namespace = "" 37442 } else { 37443 x.Namespace = (string)(r.DecodeString()) 37444 } 37445 yyj18++ 37446 if yyhl18 { 37447 yyb18 = yyj18 > l 37448 } else { 37449 yyb18 = r.CheckBreak() 37450 } 37451 if yyb18 { 37452 r.ReadArrayEnd() 37453 return 37454 } 37455 r.ReadArrayElem() 37456 if r.TryDecodeAsNil() { 37457 x.JobID = "" 37458 } else { 37459 x.JobID = (string)(r.DecodeString()) 37460 } 37461 yyj18++ 37462 if yyhl18 { 37463 yyb18 = yyj18 > l 37464 } else { 37465 yyb18 = r.CheckBreak() 37466 } 37467 if yyb18 { 37468 r.ReadArrayEnd() 37469 return 37470 } 37471 r.ReadArrayElem() 37472 if r.TryDecodeAsNil() { 37473 x.Target = nil 37474 } else { 37475 if false { 37476 } else { 37477 z.F.DecMapStringStringX(&x.Target, d) 37478 } 37479 } 37480 yyj18++ 37481 if yyhl18 { 37482 yyb18 = yyj18 > l 37483 } else { 37484 yyb18 = r.CheckBreak() 37485 } 37486 if yyb18 { 37487 r.ReadArrayEnd() 37488 return 37489 } 37490 r.ReadArrayElem() 37491 if r.TryDecodeAsNil() { 37492 if true && x.Count != nil { 37493 x.Count = nil 37494 } 37495 } else { 37496 if x.Count == nil { 37497 x.Count = new(int64) 37498 } 37499 37500 if false { 37501 } else { 37502 *x.Count = (int64)(r.DecodeInt64()) 37503 } 37504 } 37505 yyj18++ 37506 if yyhl18 { 37507 yyb18 = yyj18 > l 37508 } else { 37509 yyb18 = r.CheckBreak() 37510 } 37511 if yyb18 { 37512 r.ReadArrayEnd() 37513 return 37514 } 37515 r.ReadArrayElem() 37516 if r.TryDecodeAsNil() { 37517 x.Message = "" 37518 } else { 37519 x.Message = (string)(r.DecodeString()) 37520 } 37521 yyj18++ 37522 if yyhl18 { 37523 yyb18 = yyj18 > l 37524 } else { 37525 yyb18 = r.CheckBreak() 37526 } 37527 if yyb18 { 37528 r.ReadArrayEnd() 37529 return 37530 } 37531 r.ReadArrayElem() 37532 if r.TryDecodeAsNil() { 37533 x.Error = false 37534 } else { 37535 x.Error = (bool)(r.DecodeBool()) 37536 } 37537 yyj18++ 37538 if yyhl18 { 37539 yyb18 = yyj18 > l 37540 } else { 37541 yyb18 = r.CheckBreak() 37542 } 37543 if yyb18 { 37544 r.ReadArrayEnd() 37545 return 37546 } 37547 r.ReadArrayElem() 37548 if r.TryDecodeAsNil() { 37549 x.Meta = nil 37550 } else { 37551 if false { 37552 } else { 37553 z.F.DecMapStringIntfX(&x.Meta, d) 37554 } 37555 } 37556 yyj18++ 37557 if yyhl18 { 37558 yyb18 = yyj18 > l 37559 } else { 37560 yyb18 = r.CheckBreak() 37561 } 37562 if yyb18 { 37563 r.ReadArrayEnd() 37564 return 37565 } 37566 r.ReadArrayElem() 37567 if r.TryDecodeAsNil() { 37568 x.PolicyOverride = false 37569 } else { 37570 x.PolicyOverride = (bool)(r.DecodeBool()) 37571 } 37572 yyj18++ 37573 if yyhl18 { 37574 yyb18 = yyj18 > l 37575 } else { 37576 yyb18 = r.CheckBreak() 37577 } 37578 if yyb18 { 37579 r.ReadArrayEnd() 37580 return 37581 } 37582 r.ReadArrayElem() 37583 if r.TryDecodeAsNil() { 37584 x.WriteRequest.Region = "" 37585 } else { 37586 x.Region = (string)(r.DecodeString()) 37587 } 37588 yyj18++ 37589 if yyhl18 { 37590 yyb18 = yyj18 > l 37591 } else { 37592 yyb18 = r.CheckBreak() 37593 } 37594 if yyb18 { 37595 r.ReadArrayEnd() 37596 return 37597 } 37598 r.ReadArrayElem() 37599 if r.TryDecodeAsNil() { 37600 x.WriteRequest.AuthToken = "" 37601 } else { 37602 x.AuthToken = (string)(r.DecodeString()) 37603 } 37604 yyj18++ 37605 if yyhl18 { 37606 yyb18 = yyj18 > l 37607 } else { 37608 yyb18 = r.CheckBreak() 37609 } 37610 if yyb18 { 37611 r.ReadArrayEnd() 37612 return 37613 } 37614 r.ReadArrayElem() 37615 if r.TryDecodeAsNil() { 37616 x.WriteRequest.InternalRpcInfo.Forwarded = false 37617 } else { 37618 x.Forwarded = (bool)(r.DecodeBool()) 37619 } 37620 for { 37621 yyj18++ 37622 if yyhl18 { 37623 yyb18 = yyj18 > l 37624 } else { 37625 yyb18 = r.CheckBreak() 37626 } 37627 if yyb18 { 37628 break 37629 } 37630 r.ReadArrayElem() 37631 z.DecStructFieldNotFound(yyj18-1, "") 37632 } 37633 r.ReadArrayEnd() 37634 } 37635 37636 func (x *JobSummaryRequest) CodecEncodeSelf(e *codec1978.Encoder) { 37637 var h codecSelfer100 37638 z, r := codec1978.GenHelperEncoder(e) 37639 _, _, _ = h, z, r 37640 if x == nil { 37641 r.EncodeNil() 37642 } else { 37643 if false { 37644 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37645 z.EncExtension(x, yyxt1) 37646 } else { 37647 yysep2 := !z.EncBinary() 37648 yy2arr2 := z.EncBasicHandle().StructToArray 37649 _, _ = yysep2, yy2arr2 37650 const yyr2 bool = false // struct tag has 'toArray' 37651 if yyr2 || yy2arr2 { 37652 r.WriteArrayStart(9) 37653 } else { 37654 r.WriteMapStart(9) 37655 } 37656 if yyr2 || yy2arr2 { 37657 r.WriteArrayElem() 37658 if false { 37659 } else { 37660 if z.EncBasicHandle().StringToRaw { 37661 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37662 } else { 37663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37664 } 37665 } 37666 } else { 37667 r.WriteMapElemKey() 37668 if z.IsJSONHandle() { 37669 z.WriteStr("\"JobID\"") 37670 } else { 37671 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 37672 } 37673 r.WriteMapElemValue() 37674 if false { 37675 } else { 37676 if z.EncBasicHandle().StringToRaw { 37677 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 37678 } else { 37679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 37680 } 37681 } 37682 } 37683 if yyr2 || yy2arr2 { 37684 r.WriteArrayElem() 37685 if false { 37686 } else { 37687 if z.EncBasicHandle().StringToRaw { 37688 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37689 } else { 37690 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37691 } 37692 } 37693 } else { 37694 r.WriteMapElemKey() 37695 if z.IsJSONHandle() { 37696 z.WriteStr("\"Region\"") 37697 } else { 37698 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 37699 } 37700 r.WriteMapElemValue() 37701 if false { 37702 } else { 37703 if z.EncBasicHandle().StringToRaw { 37704 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 37705 } else { 37706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 37707 } 37708 } 37709 } 37710 if yyr2 || yy2arr2 { 37711 r.WriteArrayElem() 37712 if false { 37713 } else { 37714 if z.EncBasicHandle().StringToRaw { 37715 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37716 } else { 37717 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37718 } 37719 } 37720 } else { 37721 r.WriteMapElemKey() 37722 if z.IsJSONHandle() { 37723 z.WriteStr("\"Namespace\"") 37724 } else { 37725 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 37726 } 37727 r.WriteMapElemValue() 37728 if false { 37729 } else { 37730 if z.EncBasicHandle().StringToRaw { 37731 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 37732 } else { 37733 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 37734 } 37735 } 37736 } 37737 if yyr2 || yy2arr2 { 37738 r.WriteArrayElem() 37739 if false { 37740 } else { 37741 r.EncodeUint(uint64(x.MinQueryIndex)) 37742 } 37743 } else { 37744 r.WriteMapElemKey() 37745 if z.IsJSONHandle() { 37746 z.WriteStr("\"MinQueryIndex\"") 37747 } else { 37748 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 37749 } 37750 r.WriteMapElemValue() 37751 if false { 37752 } else { 37753 r.EncodeUint(uint64(x.MinQueryIndex)) 37754 } 37755 } 37756 if yyr2 || yy2arr2 { 37757 r.WriteArrayElem() 37758 if false { 37759 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 37760 z.EncExtension(x.MaxQueryTime, yyxt16) 37761 } else { 37762 r.EncodeInt(int64(x.MaxQueryTime)) 37763 } 37764 } else { 37765 r.WriteMapElemKey() 37766 if z.IsJSONHandle() { 37767 z.WriteStr("\"MaxQueryTime\"") 37768 } else { 37769 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 37770 } 37771 r.WriteMapElemValue() 37772 if false { 37773 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 37774 z.EncExtension(x.MaxQueryTime, yyxt17) 37775 } else { 37776 r.EncodeInt(int64(x.MaxQueryTime)) 37777 } 37778 } 37779 if yyr2 || yy2arr2 { 37780 r.WriteArrayElem() 37781 if false { 37782 } else { 37783 r.EncodeBool(bool(x.AllowStale)) 37784 } 37785 } else { 37786 r.WriteMapElemKey() 37787 if z.IsJSONHandle() { 37788 z.WriteStr("\"AllowStale\"") 37789 } else { 37790 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 37791 } 37792 r.WriteMapElemValue() 37793 if false { 37794 } else { 37795 r.EncodeBool(bool(x.AllowStale)) 37796 } 37797 } 37798 if yyr2 || yy2arr2 { 37799 r.WriteArrayElem() 37800 if false { 37801 } else { 37802 if z.EncBasicHandle().StringToRaw { 37803 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 37804 } else { 37805 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 37806 } 37807 } 37808 } else { 37809 r.WriteMapElemKey() 37810 if z.IsJSONHandle() { 37811 z.WriteStr("\"Prefix\"") 37812 } else { 37813 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 37814 } 37815 r.WriteMapElemValue() 37816 if false { 37817 } else { 37818 if z.EncBasicHandle().StringToRaw { 37819 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 37820 } else { 37821 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 37822 } 37823 } 37824 } 37825 if yyr2 || yy2arr2 { 37826 r.WriteArrayElem() 37827 if false { 37828 } else { 37829 if z.EncBasicHandle().StringToRaw { 37830 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37831 } else { 37832 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37833 } 37834 } 37835 } else { 37836 r.WriteMapElemKey() 37837 if z.IsJSONHandle() { 37838 z.WriteStr("\"AuthToken\"") 37839 } else { 37840 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 37841 } 37842 r.WriteMapElemValue() 37843 if false { 37844 } else { 37845 if z.EncBasicHandle().StringToRaw { 37846 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 37847 } else { 37848 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 37849 } 37850 } 37851 } 37852 if yyr2 || yy2arr2 { 37853 r.WriteArrayElem() 37854 if false { 37855 } else { 37856 r.EncodeBool(bool(x.Forwarded)) 37857 } 37858 } else { 37859 r.WriteMapElemKey() 37860 if z.IsJSONHandle() { 37861 z.WriteStr("\"Forwarded\"") 37862 } else { 37863 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 37864 } 37865 r.WriteMapElemValue() 37866 if false { 37867 } else { 37868 r.EncodeBool(bool(x.Forwarded)) 37869 } 37870 } 37871 if yyr2 || yy2arr2 { 37872 r.WriteArrayEnd() 37873 } else { 37874 r.WriteMapEnd() 37875 } 37876 } 37877 } 37878 } 37879 37880 func (x *JobSummaryRequest) CodecDecodeSelf(d *codec1978.Decoder) { 37881 var h codecSelfer100 37882 z, r := codec1978.GenHelperDecoder(d) 37883 _, _, _ = h, z, r 37884 if false { 37885 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 37886 z.DecExtension(x, yyxt1) 37887 } else { 37888 yyct2 := r.ContainerType() 37889 if yyct2 == codecSelferValueTypeMap100 { 37890 yyl2 := r.ReadMapStart() 37891 if yyl2 == 0 { 37892 r.ReadMapEnd() 37893 } else { 37894 x.codecDecodeSelfFromMap(yyl2, d) 37895 } 37896 } else if yyct2 == codecSelferValueTypeArray100 { 37897 yyl2 := r.ReadArrayStart() 37898 if yyl2 == 0 { 37899 r.ReadArrayEnd() 37900 } else { 37901 x.codecDecodeSelfFromArray(yyl2, d) 37902 } 37903 } else { 37904 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 37905 } 37906 } 37907 } 37908 37909 func (x *JobSummaryRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 37910 var h codecSelfer100 37911 z, r := codec1978.GenHelperDecoder(d) 37912 _, _, _ = h, z, r 37913 var yyhl3 bool = l >= 0 37914 for yyj3 := 0; ; yyj3++ { 37915 if yyhl3 { 37916 if yyj3 >= l { 37917 break 37918 } 37919 } else { 37920 if r.CheckBreak() { 37921 break 37922 } 37923 } 37924 r.ReadMapElemKey() 37925 yys3 := z.StringView(r.DecodeStringAsBytes()) 37926 r.ReadMapElemValue() 37927 switch yys3 { 37928 case "JobID": 37929 if r.TryDecodeAsNil() { 37930 x.JobID = "" 37931 } else { 37932 x.JobID = (string)(r.DecodeString()) 37933 } 37934 case "Region": 37935 if r.TryDecodeAsNil() { 37936 x.QueryOptions.Region = "" 37937 } else { 37938 x.Region = (string)(r.DecodeString()) 37939 } 37940 case "Namespace": 37941 if r.TryDecodeAsNil() { 37942 x.QueryOptions.Namespace = "" 37943 } else { 37944 x.Namespace = (string)(r.DecodeString()) 37945 } 37946 case "MinQueryIndex": 37947 if r.TryDecodeAsNil() { 37948 x.QueryOptions.MinQueryIndex = 0 37949 } else { 37950 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 37951 } 37952 case "MaxQueryTime": 37953 if r.TryDecodeAsNil() { 37954 x.QueryOptions.MaxQueryTime = 0 37955 } else { 37956 if false { 37957 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 37958 z.DecExtension(x.MaxQueryTime, yyxt9) 37959 } else { 37960 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 37961 } 37962 } 37963 case "AllowStale": 37964 if r.TryDecodeAsNil() { 37965 x.QueryOptions.AllowStale = false 37966 } else { 37967 x.AllowStale = (bool)(r.DecodeBool()) 37968 } 37969 case "Prefix": 37970 if r.TryDecodeAsNil() { 37971 x.QueryOptions.Prefix = "" 37972 } else { 37973 x.Prefix = (string)(r.DecodeString()) 37974 } 37975 case "AuthToken": 37976 if r.TryDecodeAsNil() { 37977 x.QueryOptions.AuthToken = "" 37978 } else { 37979 x.AuthToken = (string)(r.DecodeString()) 37980 } 37981 case "Forwarded": 37982 if r.TryDecodeAsNil() { 37983 x.QueryOptions.InternalRpcInfo.Forwarded = false 37984 } else { 37985 x.Forwarded = (bool)(r.DecodeBool()) 37986 } 37987 default: 37988 z.DecStructFieldNotFound(-1, yys3) 37989 } // end switch yys3 37990 } // end for yyj3 37991 r.ReadMapEnd() 37992 } 37993 37994 func (x *JobSummaryRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 37995 var h codecSelfer100 37996 z, r := codec1978.GenHelperDecoder(d) 37997 _, _, _ = h, z, r 37998 var yyj14 int 37999 var yyb14 bool 38000 var yyhl14 bool = l >= 0 38001 yyj14++ 38002 if yyhl14 { 38003 yyb14 = yyj14 > l 38004 } else { 38005 yyb14 = r.CheckBreak() 38006 } 38007 if yyb14 { 38008 r.ReadArrayEnd() 38009 return 38010 } 38011 r.ReadArrayElem() 38012 if r.TryDecodeAsNil() { 38013 x.JobID = "" 38014 } else { 38015 x.JobID = (string)(r.DecodeString()) 38016 } 38017 yyj14++ 38018 if yyhl14 { 38019 yyb14 = yyj14 > l 38020 } else { 38021 yyb14 = r.CheckBreak() 38022 } 38023 if yyb14 { 38024 r.ReadArrayEnd() 38025 return 38026 } 38027 r.ReadArrayElem() 38028 if r.TryDecodeAsNil() { 38029 x.QueryOptions.Region = "" 38030 } else { 38031 x.Region = (string)(r.DecodeString()) 38032 } 38033 yyj14++ 38034 if yyhl14 { 38035 yyb14 = yyj14 > l 38036 } else { 38037 yyb14 = r.CheckBreak() 38038 } 38039 if yyb14 { 38040 r.ReadArrayEnd() 38041 return 38042 } 38043 r.ReadArrayElem() 38044 if r.TryDecodeAsNil() { 38045 x.QueryOptions.Namespace = "" 38046 } else { 38047 x.Namespace = (string)(r.DecodeString()) 38048 } 38049 yyj14++ 38050 if yyhl14 { 38051 yyb14 = yyj14 > l 38052 } else { 38053 yyb14 = r.CheckBreak() 38054 } 38055 if yyb14 { 38056 r.ReadArrayEnd() 38057 return 38058 } 38059 r.ReadArrayElem() 38060 if r.TryDecodeAsNil() { 38061 x.QueryOptions.MinQueryIndex = 0 38062 } else { 38063 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 38064 } 38065 yyj14++ 38066 if yyhl14 { 38067 yyb14 = yyj14 > l 38068 } else { 38069 yyb14 = r.CheckBreak() 38070 } 38071 if yyb14 { 38072 r.ReadArrayEnd() 38073 return 38074 } 38075 r.ReadArrayElem() 38076 if r.TryDecodeAsNil() { 38077 x.QueryOptions.MaxQueryTime = 0 38078 } else { 38079 if false { 38080 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 38081 z.DecExtension(x.MaxQueryTime, yyxt20) 38082 } else { 38083 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 38084 } 38085 } 38086 yyj14++ 38087 if yyhl14 { 38088 yyb14 = yyj14 > l 38089 } else { 38090 yyb14 = r.CheckBreak() 38091 } 38092 if yyb14 { 38093 r.ReadArrayEnd() 38094 return 38095 } 38096 r.ReadArrayElem() 38097 if r.TryDecodeAsNil() { 38098 x.QueryOptions.AllowStale = false 38099 } else { 38100 x.AllowStale = (bool)(r.DecodeBool()) 38101 } 38102 yyj14++ 38103 if yyhl14 { 38104 yyb14 = yyj14 > l 38105 } else { 38106 yyb14 = r.CheckBreak() 38107 } 38108 if yyb14 { 38109 r.ReadArrayEnd() 38110 return 38111 } 38112 r.ReadArrayElem() 38113 if r.TryDecodeAsNil() { 38114 x.QueryOptions.Prefix = "" 38115 } else { 38116 x.Prefix = (string)(r.DecodeString()) 38117 } 38118 yyj14++ 38119 if yyhl14 { 38120 yyb14 = yyj14 > l 38121 } else { 38122 yyb14 = r.CheckBreak() 38123 } 38124 if yyb14 { 38125 r.ReadArrayEnd() 38126 return 38127 } 38128 r.ReadArrayElem() 38129 if r.TryDecodeAsNil() { 38130 x.QueryOptions.AuthToken = "" 38131 } else { 38132 x.AuthToken = (string)(r.DecodeString()) 38133 } 38134 yyj14++ 38135 if yyhl14 { 38136 yyb14 = yyj14 > l 38137 } else { 38138 yyb14 = r.CheckBreak() 38139 } 38140 if yyb14 { 38141 r.ReadArrayEnd() 38142 return 38143 } 38144 r.ReadArrayElem() 38145 if r.TryDecodeAsNil() { 38146 x.QueryOptions.InternalRpcInfo.Forwarded = false 38147 } else { 38148 x.Forwarded = (bool)(r.DecodeBool()) 38149 } 38150 for { 38151 yyj14++ 38152 if yyhl14 { 38153 yyb14 = yyj14 > l 38154 } else { 38155 yyb14 = r.CheckBreak() 38156 } 38157 if yyb14 { 38158 break 38159 } 38160 r.ReadArrayElem() 38161 z.DecStructFieldNotFound(yyj14-1, "") 38162 } 38163 r.ReadArrayEnd() 38164 } 38165 38166 func (x *JobScaleStatusRequest) CodecEncodeSelf(e *codec1978.Encoder) { 38167 var h codecSelfer100 38168 z, r := codec1978.GenHelperEncoder(e) 38169 _, _, _ = h, z, r 38170 if x == nil { 38171 r.EncodeNil() 38172 } else { 38173 if false { 38174 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38175 z.EncExtension(x, yyxt1) 38176 } else { 38177 yysep2 := !z.EncBinary() 38178 yy2arr2 := z.EncBasicHandle().StructToArray 38179 _, _ = yysep2, yy2arr2 38180 const yyr2 bool = false // struct tag has 'toArray' 38181 if yyr2 || yy2arr2 { 38182 r.WriteArrayStart(9) 38183 } else { 38184 r.WriteMapStart(9) 38185 } 38186 if yyr2 || yy2arr2 { 38187 r.WriteArrayElem() 38188 if false { 38189 } else { 38190 if z.EncBasicHandle().StringToRaw { 38191 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38192 } else { 38193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38194 } 38195 } 38196 } else { 38197 r.WriteMapElemKey() 38198 if z.IsJSONHandle() { 38199 z.WriteStr("\"JobID\"") 38200 } else { 38201 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 38202 } 38203 r.WriteMapElemValue() 38204 if false { 38205 } else { 38206 if z.EncBasicHandle().StringToRaw { 38207 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38208 } else { 38209 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38210 } 38211 } 38212 } 38213 if yyr2 || yy2arr2 { 38214 r.WriteArrayElem() 38215 if false { 38216 } else { 38217 if z.EncBasicHandle().StringToRaw { 38218 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38219 } else { 38220 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38221 } 38222 } 38223 } else { 38224 r.WriteMapElemKey() 38225 if z.IsJSONHandle() { 38226 z.WriteStr("\"Region\"") 38227 } else { 38228 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 38229 } 38230 r.WriteMapElemValue() 38231 if false { 38232 } else { 38233 if z.EncBasicHandle().StringToRaw { 38234 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38235 } else { 38236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38237 } 38238 } 38239 } 38240 if yyr2 || yy2arr2 { 38241 r.WriteArrayElem() 38242 if false { 38243 } else { 38244 if z.EncBasicHandle().StringToRaw { 38245 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38246 } else { 38247 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38248 } 38249 } 38250 } else { 38251 r.WriteMapElemKey() 38252 if z.IsJSONHandle() { 38253 z.WriteStr("\"Namespace\"") 38254 } else { 38255 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 38256 } 38257 r.WriteMapElemValue() 38258 if false { 38259 } else { 38260 if z.EncBasicHandle().StringToRaw { 38261 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38262 } else { 38263 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38264 } 38265 } 38266 } 38267 if yyr2 || yy2arr2 { 38268 r.WriteArrayElem() 38269 if false { 38270 } else { 38271 r.EncodeUint(uint64(x.MinQueryIndex)) 38272 } 38273 } else { 38274 r.WriteMapElemKey() 38275 if z.IsJSONHandle() { 38276 z.WriteStr("\"MinQueryIndex\"") 38277 } else { 38278 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 38279 } 38280 r.WriteMapElemValue() 38281 if false { 38282 } else { 38283 r.EncodeUint(uint64(x.MinQueryIndex)) 38284 } 38285 } 38286 if yyr2 || yy2arr2 { 38287 r.WriteArrayElem() 38288 if false { 38289 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 38290 z.EncExtension(x.MaxQueryTime, yyxt16) 38291 } else { 38292 r.EncodeInt(int64(x.MaxQueryTime)) 38293 } 38294 } else { 38295 r.WriteMapElemKey() 38296 if z.IsJSONHandle() { 38297 z.WriteStr("\"MaxQueryTime\"") 38298 } else { 38299 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 38300 } 38301 r.WriteMapElemValue() 38302 if false { 38303 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 38304 z.EncExtension(x.MaxQueryTime, yyxt17) 38305 } else { 38306 r.EncodeInt(int64(x.MaxQueryTime)) 38307 } 38308 } 38309 if yyr2 || yy2arr2 { 38310 r.WriteArrayElem() 38311 if false { 38312 } else { 38313 r.EncodeBool(bool(x.AllowStale)) 38314 } 38315 } else { 38316 r.WriteMapElemKey() 38317 if z.IsJSONHandle() { 38318 z.WriteStr("\"AllowStale\"") 38319 } else { 38320 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 38321 } 38322 r.WriteMapElemValue() 38323 if false { 38324 } else { 38325 r.EncodeBool(bool(x.AllowStale)) 38326 } 38327 } 38328 if yyr2 || yy2arr2 { 38329 r.WriteArrayElem() 38330 if false { 38331 } else { 38332 if z.EncBasicHandle().StringToRaw { 38333 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 38334 } else { 38335 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 38336 } 38337 } 38338 } else { 38339 r.WriteMapElemKey() 38340 if z.IsJSONHandle() { 38341 z.WriteStr("\"Prefix\"") 38342 } else { 38343 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 38344 } 38345 r.WriteMapElemValue() 38346 if false { 38347 } else { 38348 if z.EncBasicHandle().StringToRaw { 38349 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 38350 } else { 38351 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 38352 } 38353 } 38354 } 38355 if yyr2 || yy2arr2 { 38356 r.WriteArrayElem() 38357 if false { 38358 } else { 38359 if z.EncBasicHandle().StringToRaw { 38360 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38361 } else { 38362 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38363 } 38364 } 38365 } else { 38366 r.WriteMapElemKey() 38367 if z.IsJSONHandle() { 38368 z.WriteStr("\"AuthToken\"") 38369 } else { 38370 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 38371 } 38372 r.WriteMapElemValue() 38373 if false { 38374 } else { 38375 if z.EncBasicHandle().StringToRaw { 38376 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38377 } else { 38378 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38379 } 38380 } 38381 } 38382 if yyr2 || yy2arr2 { 38383 r.WriteArrayElem() 38384 if false { 38385 } else { 38386 r.EncodeBool(bool(x.Forwarded)) 38387 } 38388 } else { 38389 r.WriteMapElemKey() 38390 if z.IsJSONHandle() { 38391 z.WriteStr("\"Forwarded\"") 38392 } else { 38393 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 38394 } 38395 r.WriteMapElemValue() 38396 if false { 38397 } else { 38398 r.EncodeBool(bool(x.Forwarded)) 38399 } 38400 } 38401 if yyr2 || yy2arr2 { 38402 r.WriteArrayEnd() 38403 } else { 38404 r.WriteMapEnd() 38405 } 38406 } 38407 } 38408 } 38409 38410 func (x *JobScaleStatusRequest) CodecDecodeSelf(d *codec1978.Decoder) { 38411 var h codecSelfer100 38412 z, r := codec1978.GenHelperDecoder(d) 38413 _, _, _ = h, z, r 38414 if false { 38415 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38416 z.DecExtension(x, yyxt1) 38417 } else { 38418 yyct2 := r.ContainerType() 38419 if yyct2 == codecSelferValueTypeMap100 { 38420 yyl2 := r.ReadMapStart() 38421 if yyl2 == 0 { 38422 r.ReadMapEnd() 38423 } else { 38424 x.codecDecodeSelfFromMap(yyl2, d) 38425 } 38426 } else if yyct2 == codecSelferValueTypeArray100 { 38427 yyl2 := r.ReadArrayStart() 38428 if yyl2 == 0 { 38429 r.ReadArrayEnd() 38430 } else { 38431 x.codecDecodeSelfFromArray(yyl2, d) 38432 } 38433 } else { 38434 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 38435 } 38436 } 38437 } 38438 38439 func (x *JobScaleStatusRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 38440 var h codecSelfer100 38441 z, r := codec1978.GenHelperDecoder(d) 38442 _, _, _ = h, z, r 38443 var yyhl3 bool = l >= 0 38444 for yyj3 := 0; ; yyj3++ { 38445 if yyhl3 { 38446 if yyj3 >= l { 38447 break 38448 } 38449 } else { 38450 if r.CheckBreak() { 38451 break 38452 } 38453 } 38454 r.ReadMapElemKey() 38455 yys3 := z.StringView(r.DecodeStringAsBytes()) 38456 r.ReadMapElemValue() 38457 switch yys3 { 38458 case "JobID": 38459 if r.TryDecodeAsNil() { 38460 x.JobID = "" 38461 } else { 38462 x.JobID = (string)(r.DecodeString()) 38463 } 38464 case "Region": 38465 if r.TryDecodeAsNil() { 38466 x.QueryOptions.Region = "" 38467 } else { 38468 x.Region = (string)(r.DecodeString()) 38469 } 38470 case "Namespace": 38471 if r.TryDecodeAsNil() { 38472 x.QueryOptions.Namespace = "" 38473 } else { 38474 x.Namespace = (string)(r.DecodeString()) 38475 } 38476 case "MinQueryIndex": 38477 if r.TryDecodeAsNil() { 38478 x.QueryOptions.MinQueryIndex = 0 38479 } else { 38480 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 38481 } 38482 case "MaxQueryTime": 38483 if r.TryDecodeAsNil() { 38484 x.QueryOptions.MaxQueryTime = 0 38485 } else { 38486 if false { 38487 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 38488 z.DecExtension(x.MaxQueryTime, yyxt9) 38489 } else { 38490 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 38491 } 38492 } 38493 case "AllowStale": 38494 if r.TryDecodeAsNil() { 38495 x.QueryOptions.AllowStale = false 38496 } else { 38497 x.AllowStale = (bool)(r.DecodeBool()) 38498 } 38499 case "Prefix": 38500 if r.TryDecodeAsNil() { 38501 x.QueryOptions.Prefix = "" 38502 } else { 38503 x.Prefix = (string)(r.DecodeString()) 38504 } 38505 case "AuthToken": 38506 if r.TryDecodeAsNil() { 38507 x.QueryOptions.AuthToken = "" 38508 } else { 38509 x.AuthToken = (string)(r.DecodeString()) 38510 } 38511 case "Forwarded": 38512 if r.TryDecodeAsNil() { 38513 x.QueryOptions.InternalRpcInfo.Forwarded = false 38514 } else { 38515 x.Forwarded = (bool)(r.DecodeBool()) 38516 } 38517 default: 38518 z.DecStructFieldNotFound(-1, yys3) 38519 } // end switch yys3 38520 } // end for yyj3 38521 r.ReadMapEnd() 38522 } 38523 38524 func (x *JobScaleStatusRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 38525 var h codecSelfer100 38526 z, r := codec1978.GenHelperDecoder(d) 38527 _, _, _ = h, z, r 38528 var yyj14 int 38529 var yyb14 bool 38530 var yyhl14 bool = l >= 0 38531 yyj14++ 38532 if yyhl14 { 38533 yyb14 = yyj14 > l 38534 } else { 38535 yyb14 = r.CheckBreak() 38536 } 38537 if yyb14 { 38538 r.ReadArrayEnd() 38539 return 38540 } 38541 r.ReadArrayElem() 38542 if r.TryDecodeAsNil() { 38543 x.JobID = "" 38544 } else { 38545 x.JobID = (string)(r.DecodeString()) 38546 } 38547 yyj14++ 38548 if yyhl14 { 38549 yyb14 = yyj14 > l 38550 } else { 38551 yyb14 = r.CheckBreak() 38552 } 38553 if yyb14 { 38554 r.ReadArrayEnd() 38555 return 38556 } 38557 r.ReadArrayElem() 38558 if r.TryDecodeAsNil() { 38559 x.QueryOptions.Region = "" 38560 } else { 38561 x.Region = (string)(r.DecodeString()) 38562 } 38563 yyj14++ 38564 if yyhl14 { 38565 yyb14 = yyj14 > l 38566 } else { 38567 yyb14 = r.CheckBreak() 38568 } 38569 if yyb14 { 38570 r.ReadArrayEnd() 38571 return 38572 } 38573 r.ReadArrayElem() 38574 if r.TryDecodeAsNil() { 38575 x.QueryOptions.Namespace = "" 38576 } else { 38577 x.Namespace = (string)(r.DecodeString()) 38578 } 38579 yyj14++ 38580 if yyhl14 { 38581 yyb14 = yyj14 > l 38582 } else { 38583 yyb14 = r.CheckBreak() 38584 } 38585 if yyb14 { 38586 r.ReadArrayEnd() 38587 return 38588 } 38589 r.ReadArrayElem() 38590 if r.TryDecodeAsNil() { 38591 x.QueryOptions.MinQueryIndex = 0 38592 } else { 38593 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 38594 } 38595 yyj14++ 38596 if yyhl14 { 38597 yyb14 = yyj14 > l 38598 } else { 38599 yyb14 = r.CheckBreak() 38600 } 38601 if yyb14 { 38602 r.ReadArrayEnd() 38603 return 38604 } 38605 r.ReadArrayElem() 38606 if r.TryDecodeAsNil() { 38607 x.QueryOptions.MaxQueryTime = 0 38608 } else { 38609 if false { 38610 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 38611 z.DecExtension(x.MaxQueryTime, yyxt20) 38612 } else { 38613 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 38614 } 38615 } 38616 yyj14++ 38617 if yyhl14 { 38618 yyb14 = yyj14 > l 38619 } else { 38620 yyb14 = r.CheckBreak() 38621 } 38622 if yyb14 { 38623 r.ReadArrayEnd() 38624 return 38625 } 38626 r.ReadArrayElem() 38627 if r.TryDecodeAsNil() { 38628 x.QueryOptions.AllowStale = false 38629 } else { 38630 x.AllowStale = (bool)(r.DecodeBool()) 38631 } 38632 yyj14++ 38633 if yyhl14 { 38634 yyb14 = yyj14 > l 38635 } else { 38636 yyb14 = r.CheckBreak() 38637 } 38638 if yyb14 { 38639 r.ReadArrayEnd() 38640 return 38641 } 38642 r.ReadArrayElem() 38643 if r.TryDecodeAsNil() { 38644 x.QueryOptions.Prefix = "" 38645 } else { 38646 x.Prefix = (string)(r.DecodeString()) 38647 } 38648 yyj14++ 38649 if yyhl14 { 38650 yyb14 = yyj14 > l 38651 } else { 38652 yyb14 = r.CheckBreak() 38653 } 38654 if yyb14 { 38655 r.ReadArrayEnd() 38656 return 38657 } 38658 r.ReadArrayElem() 38659 if r.TryDecodeAsNil() { 38660 x.QueryOptions.AuthToken = "" 38661 } else { 38662 x.AuthToken = (string)(r.DecodeString()) 38663 } 38664 yyj14++ 38665 if yyhl14 { 38666 yyb14 = yyj14 > l 38667 } else { 38668 yyb14 = r.CheckBreak() 38669 } 38670 if yyb14 { 38671 r.ReadArrayEnd() 38672 return 38673 } 38674 r.ReadArrayElem() 38675 if r.TryDecodeAsNil() { 38676 x.QueryOptions.InternalRpcInfo.Forwarded = false 38677 } else { 38678 x.Forwarded = (bool)(r.DecodeBool()) 38679 } 38680 for { 38681 yyj14++ 38682 if yyhl14 { 38683 yyb14 = yyj14 > l 38684 } else { 38685 yyb14 = r.CheckBreak() 38686 } 38687 if yyb14 { 38688 break 38689 } 38690 r.ReadArrayElem() 38691 z.DecStructFieldNotFound(yyj14-1, "") 38692 } 38693 r.ReadArrayEnd() 38694 } 38695 38696 func (x *JobDispatchRequest) CodecEncodeSelf(e *codec1978.Encoder) { 38697 var h codecSelfer100 38698 z, r := codec1978.GenHelperEncoder(e) 38699 _, _, _ = h, z, r 38700 if x == nil { 38701 r.EncodeNil() 38702 } else { 38703 if false { 38704 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38705 z.EncExtension(x, yyxt1) 38706 } else { 38707 yysep2 := !z.EncBinary() 38708 yy2arr2 := z.EncBasicHandle().StructToArray 38709 _, _ = yysep2, yy2arr2 38710 const yyr2 bool = false // struct tag has 'toArray' 38711 if yyr2 || yy2arr2 { 38712 r.WriteArrayStart(7) 38713 } else { 38714 r.WriteMapStart(7) 38715 } 38716 if yyr2 || yy2arr2 { 38717 r.WriteArrayElem() 38718 if false { 38719 } else { 38720 if z.EncBasicHandle().StringToRaw { 38721 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38722 } else { 38723 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38724 } 38725 } 38726 } else { 38727 r.WriteMapElemKey() 38728 if z.IsJSONHandle() { 38729 z.WriteStr("\"JobID\"") 38730 } else { 38731 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 38732 } 38733 r.WriteMapElemValue() 38734 if false { 38735 } else { 38736 if z.EncBasicHandle().StringToRaw { 38737 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 38738 } else { 38739 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 38740 } 38741 } 38742 } 38743 if yyr2 || yy2arr2 { 38744 r.WriteArrayElem() 38745 if x.Payload == nil { 38746 r.EncodeNil() 38747 } else { 38748 if false { 38749 } else { 38750 r.EncodeStringBytesRaw([]byte(x.Payload)) 38751 } 38752 } 38753 } else { 38754 r.WriteMapElemKey() 38755 if z.IsJSONHandle() { 38756 z.WriteStr("\"Payload\"") 38757 } else { 38758 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 38759 } 38760 r.WriteMapElemValue() 38761 if x.Payload == nil { 38762 r.EncodeNil() 38763 } else { 38764 if false { 38765 } else { 38766 r.EncodeStringBytesRaw([]byte(x.Payload)) 38767 } 38768 } 38769 } 38770 if yyr2 || yy2arr2 { 38771 r.WriteArrayElem() 38772 if x.Meta == nil { 38773 r.EncodeNil() 38774 } else { 38775 if false { 38776 } else { 38777 z.F.EncMapStringStringV(x.Meta, e) 38778 } 38779 } 38780 } else { 38781 r.WriteMapElemKey() 38782 if z.IsJSONHandle() { 38783 z.WriteStr("\"Meta\"") 38784 } else { 38785 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 38786 } 38787 r.WriteMapElemValue() 38788 if x.Meta == nil { 38789 r.EncodeNil() 38790 } else { 38791 if false { 38792 } else { 38793 z.F.EncMapStringStringV(x.Meta, e) 38794 } 38795 } 38796 } 38797 if yyr2 || yy2arr2 { 38798 r.WriteArrayElem() 38799 if false { 38800 } else { 38801 if z.EncBasicHandle().StringToRaw { 38802 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38803 } else { 38804 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38805 } 38806 } 38807 } else { 38808 r.WriteMapElemKey() 38809 if z.IsJSONHandle() { 38810 z.WriteStr("\"Region\"") 38811 } else { 38812 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 38813 } 38814 r.WriteMapElemValue() 38815 if false { 38816 } else { 38817 if z.EncBasicHandle().StringToRaw { 38818 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 38819 } else { 38820 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 38821 } 38822 } 38823 } 38824 if yyr2 || yy2arr2 { 38825 r.WriteArrayElem() 38826 if false { 38827 } else { 38828 if z.EncBasicHandle().StringToRaw { 38829 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38830 } else { 38831 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38832 } 38833 } 38834 } else { 38835 r.WriteMapElemKey() 38836 if z.IsJSONHandle() { 38837 z.WriteStr("\"Namespace\"") 38838 } else { 38839 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 38840 } 38841 r.WriteMapElemValue() 38842 if false { 38843 } else { 38844 if z.EncBasicHandle().StringToRaw { 38845 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 38846 } else { 38847 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 38848 } 38849 } 38850 } 38851 if yyr2 || yy2arr2 { 38852 r.WriteArrayElem() 38853 if false { 38854 } else { 38855 if z.EncBasicHandle().StringToRaw { 38856 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38857 } else { 38858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38859 } 38860 } 38861 } else { 38862 r.WriteMapElemKey() 38863 if z.IsJSONHandle() { 38864 z.WriteStr("\"AuthToken\"") 38865 } else { 38866 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 38867 } 38868 r.WriteMapElemValue() 38869 if false { 38870 } else { 38871 if z.EncBasicHandle().StringToRaw { 38872 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 38873 } else { 38874 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 38875 } 38876 } 38877 } 38878 if yyr2 || yy2arr2 { 38879 r.WriteArrayElem() 38880 if false { 38881 } else { 38882 r.EncodeBool(bool(x.Forwarded)) 38883 } 38884 } else { 38885 r.WriteMapElemKey() 38886 if z.IsJSONHandle() { 38887 z.WriteStr("\"Forwarded\"") 38888 } else { 38889 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 38890 } 38891 r.WriteMapElemValue() 38892 if false { 38893 } else { 38894 r.EncodeBool(bool(x.Forwarded)) 38895 } 38896 } 38897 if yyr2 || yy2arr2 { 38898 r.WriteArrayEnd() 38899 } else { 38900 r.WriteMapEnd() 38901 } 38902 } 38903 } 38904 } 38905 38906 func (x *JobDispatchRequest) CodecDecodeSelf(d *codec1978.Decoder) { 38907 var h codecSelfer100 38908 z, r := codec1978.GenHelperDecoder(d) 38909 _, _, _ = h, z, r 38910 if false { 38911 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 38912 z.DecExtension(x, yyxt1) 38913 } else { 38914 yyct2 := r.ContainerType() 38915 if yyct2 == codecSelferValueTypeMap100 { 38916 yyl2 := r.ReadMapStart() 38917 if yyl2 == 0 { 38918 r.ReadMapEnd() 38919 } else { 38920 x.codecDecodeSelfFromMap(yyl2, d) 38921 } 38922 } else if yyct2 == codecSelferValueTypeArray100 { 38923 yyl2 := r.ReadArrayStart() 38924 if yyl2 == 0 { 38925 r.ReadArrayEnd() 38926 } else { 38927 x.codecDecodeSelfFromArray(yyl2, d) 38928 } 38929 } else { 38930 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 38931 } 38932 } 38933 } 38934 38935 func (x *JobDispatchRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 38936 var h codecSelfer100 38937 z, r := codec1978.GenHelperDecoder(d) 38938 _, _, _ = h, z, r 38939 var yyhl3 bool = l >= 0 38940 for yyj3 := 0; ; yyj3++ { 38941 if yyhl3 { 38942 if yyj3 >= l { 38943 break 38944 } 38945 } else { 38946 if r.CheckBreak() { 38947 break 38948 } 38949 } 38950 r.ReadMapElemKey() 38951 yys3 := z.StringView(r.DecodeStringAsBytes()) 38952 r.ReadMapElemValue() 38953 switch yys3 { 38954 case "JobID": 38955 if r.TryDecodeAsNil() { 38956 x.JobID = "" 38957 } else { 38958 x.JobID = (string)(r.DecodeString()) 38959 } 38960 case "Payload": 38961 if r.TryDecodeAsNil() { 38962 x.Payload = nil 38963 } else { 38964 if false { 38965 } else { 38966 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 38967 } 38968 } 38969 case "Meta": 38970 if r.TryDecodeAsNil() { 38971 x.Meta = nil 38972 } else { 38973 if false { 38974 } else { 38975 z.F.DecMapStringStringX(&x.Meta, d) 38976 } 38977 } 38978 case "Region": 38979 if r.TryDecodeAsNil() { 38980 x.WriteRequest.Region = "" 38981 } else { 38982 x.Region = (string)(r.DecodeString()) 38983 } 38984 case "Namespace": 38985 if r.TryDecodeAsNil() { 38986 x.WriteRequest.Namespace = "" 38987 } else { 38988 x.Namespace = (string)(r.DecodeString()) 38989 } 38990 case "AuthToken": 38991 if r.TryDecodeAsNil() { 38992 x.WriteRequest.AuthToken = "" 38993 } else { 38994 x.AuthToken = (string)(r.DecodeString()) 38995 } 38996 case "Forwarded": 38997 if r.TryDecodeAsNil() { 38998 x.WriteRequest.InternalRpcInfo.Forwarded = false 38999 } else { 39000 x.Forwarded = (bool)(r.DecodeBool()) 39001 } 39002 default: 39003 z.DecStructFieldNotFound(-1, yys3) 39004 } // end switch yys3 39005 } // end for yyj3 39006 r.ReadMapEnd() 39007 } 39008 39009 func (x *JobDispatchRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 39010 var h codecSelfer100 39011 z, r := codec1978.GenHelperDecoder(d) 39012 _, _, _ = h, z, r 39013 var yyj13 int 39014 var yyb13 bool 39015 var yyhl13 bool = l >= 0 39016 yyj13++ 39017 if yyhl13 { 39018 yyb13 = yyj13 > l 39019 } else { 39020 yyb13 = r.CheckBreak() 39021 } 39022 if yyb13 { 39023 r.ReadArrayEnd() 39024 return 39025 } 39026 r.ReadArrayElem() 39027 if r.TryDecodeAsNil() { 39028 x.JobID = "" 39029 } else { 39030 x.JobID = (string)(r.DecodeString()) 39031 } 39032 yyj13++ 39033 if yyhl13 { 39034 yyb13 = yyj13 > l 39035 } else { 39036 yyb13 = r.CheckBreak() 39037 } 39038 if yyb13 { 39039 r.ReadArrayEnd() 39040 return 39041 } 39042 r.ReadArrayElem() 39043 if r.TryDecodeAsNil() { 39044 x.Payload = nil 39045 } else { 39046 if false { 39047 } else { 39048 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 39049 } 39050 } 39051 yyj13++ 39052 if yyhl13 { 39053 yyb13 = yyj13 > l 39054 } else { 39055 yyb13 = r.CheckBreak() 39056 } 39057 if yyb13 { 39058 r.ReadArrayEnd() 39059 return 39060 } 39061 r.ReadArrayElem() 39062 if r.TryDecodeAsNil() { 39063 x.Meta = nil 39064 } else { 39065 if false { 39066 } else { 39067 z.F.DecMapStringStringX(&x.Meta, d) 39068 } 39069 } 39070 yyj13++ 39071 if yyhl13 { 39072 yyb13 = yyj13 > l 39073 } else { 39074 yyb13 = r.CheckBreak() 39075 } 39076 if yyb13 { 39077 r.ReadArrayEnd() 39078 return 39079 } 39080 r.ReadArrayElem() 39081 if r.TryDecodeAsNil() { 39082 x.WriteRequest.Region = "" 39083 } else { 39084 x.Region = (string)(r.DecodeString()) 39085 } 39086 yyj13++ 39087 if yyhl13 { 39088 yyb13 = yyj13 > l 39089 } else { 39090 yyb13 = r.CheckBreak() 39091 } 39092 if yyb13 { 39093 r.ReadArrayEnd() 39094 return 39095 } 39096 r.ReadArrayElem() 39097 if r.TryDecodeAsNil() { 39098 x.WriteRequest.Namespace = "" 39099 } else { 39100 x.Namespace = (string)(r.DecodeString()) 39101 } 39102 yyj13++ 39103 if yyhl13 { 39104 yyb13 = yyj13 > l 39105 } else { 39106 yyb13 = r.CheckBreak() 39107 } 39108 if yyb13 { 39109 r.ReadArrayEnd() 39110 return 39111 } 39112 r.ReadArrayElem() 39113 if r.TryDecodeAsNil() { 39114 x.WriteRequest.AuthToken = "" 39115 } else { 39116 x.AuthToken = (string)(r.DecodeString()) 39117 } 39118 yyj13++ 39119 if yyhl13 { 39120 yyb13 = yyj13 > l 39121 } else { 39122 yyb13 = r.CheckBreak() 39123 } 39124 if yyb13 { 39125 r.ReadArrayEnd() 39126 return 39127 } 39128 r.ReadArrayElem() 39129 if r.TryDecodeAsNil() { 39130 x.WriteRequest.InternalRpcInfo.Forwarded = false 39131 } else { 39132 x.Forwarded = (bool)(r.DecodeBool()) 39133 } 39134 for { 39135 yyj13++ 39136 if yyhl13 { 39137 yyb13 = yyj13 > l 39138 } else { 39139 yyb13 = r.CheckBreak() 39140 } 39141 if yyb13 { 39142 break 39143 } 39144 r.ReadArrayElem() 39145 z.DecStructFieldNotFound(yyj13-1, "") 39146 } 39147 r.ReadArrayEnd() 39148 } 39149 39150 func (x *JobValidateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 39151 var h codecSelfer100 39152 z, r := codec1978.GenHelperEncoder(e) 39153 _, _, _ = h, z, r 39154 if x == nil { 39155 r.EncodeNil() 39156 } else { 39157 if false { 39158 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39159 z.EncExtension(x, yyxt1) 39160 } else { 39161 yysep2 := !z.EncBinary() 39162 yy2arr2 := z.EncBasicHandle().StructToArray 39163 _, _ = yysep2, yy2arr2 39164 const yyr2 bool = false // struct tag has 'toArray' 39165 if yyr2 || yy2arr2 { 39166 r.WriteArrayStart(5) 39167 } else { 39168 r.WriteMapStart(5) 39169 } 39170 var yyn3 bool 39171 if x.Job == nil { 39172 yyn3 = true 39173 goto LABEL3 39174 } 39175 LABEL3: 39176 if yyr2 || yy2arr2 { 39177 if yyn3 { 39178 r.WriteArrayElem() 39179 r.EncodeNil() 39180 } else { 39181 r.WriteArrayElem() 39182 if x.Job == nil { 39183 r.EncodeNil() 39184 } else { 39185 x.Job.CodecEncodeSelf(e) 39186 } 39187 } 39188 } else { 39189 r.WriteMapElemKey() 39190 if z.IsJSONHandle() { 39191 z.WriteStr("\"Job\"") 39192 } else { 39193 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 39194 } 39195 r.WriteMapElemValue() 39196 if yyn3 { 39197 r.EncodeNil() 39198 } else { 39199 if x.Job == nil { 39200 r.EncodeNil() 39201 } else { 39202 x.Job.CodecEncodeSelf(e) 39203 } 39204 } 39205 } 39206 if yyr2 || yy2arr2 { 39207 r.WriteArrayElem() 39208 if false { 39209 } else { 39210 if z.EncBasicHandle().StringToRaw { 39211 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39212 } else { 39213 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39214 } 39215 } 39216 } else { 39217 r.WriteMapElemKey() 39218 if z.IsJSONHandle() { 39219 z.WriteStr("\"Region\"") 39220 } else { 39221 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 39222 } 39223 r.WriteMapElemValue() 39224 if false { 39225 } else { 39226 if z.EncBasicHandle().StringToRaw { 39227 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39228 } else { 39229 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39230 } 39231 } 39232 } 39233 if yyr2 || yy2arr2 { 39234 r.WriteArrayElem() 39235 if false { 39236 } else { 39237 if z.EncBasicHandle().StringToRaw { 39238 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39239 } else { 39240 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39241 } 39242 } 39243 } else { 39244 r.WriteMapElemKey() 39245 if z.IsJSONHandle() { 39246 z.WriteStr("\"Namespace\"") 39247 } else { 39248 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 39249 } 39250 r.WriteMapElemValue() 39251 if false { 39252 } else { 39253 if z.EncBasicHandle().StringToRaw { 39254 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39255 } else { 39256 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39257 } 39258 } 39259 } 39260 if yyr2 || yy2arr2 { 39261 r.WriteArrayElem() 39262 if false { 39263 } else { 39264 if z.EncBasicHandle().StringToRaw { 39265 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39266 } else { 39267 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39268 } 39269 } 39270 } else { 39271 r.WriteMapElemKey() 39272 if z.IsJSONHandle() { 39273 z.WriteStr("\"AuthToken\"") 39274 } else { 39275 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 39276 } 39277 r.WriteMapElemValue() 39278 if false { 39279 } else { 39280 if z.EncBasicHandle().StringToRaw { 39281 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39282 } else { 39283 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39284 } 39285 } 39286 } 39287 if yyr2 || yy2arr2 { 39288 r.WriteArrayElem() 39289 if false { 39290 } else { 39291 r.EncodeBool(bool(x.Forwarded)) 39292 } 39293 } else { 39294 r.WriteMapElemKey() 39295 if z.IsJSONHandle() { 39296 z.WriteStr("\"Forwarded\"") 39297 } else { 39298 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 39299 } 39300 r.WriteMapElemValue() 39301 if false { 39302 } else { 39303 r.EncodeBool(bool(x.Forwarded)) 39304 } 39305 } 39306 if yyr2 || yy2arr2 { 39307 r.WriteArrayEnd() 39308 } else { 39309 r.WriteMapEnd() 39310 } 39311 } 39312 } 39313 } 39314 39315 func (x *JobValidateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 39316 var h codecSelfer100 39317 z, r := codec1978.GenHelperDecoder(d) 39318 _, _, _ = h, z, r 39319 if false { 39320 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39321 z.DecExtension(x, yyxt1) 39322 } else { 39323 yyct2 := r.ContainerType() 39324 if yyct2 == codecSelferValueTypeMap100 { 39325 yyl2 := r.ReadMapStart() 39326 if yyl2 == 0 { 39327 r.ReadMapEnd() 39328 } else { 39329 x.codecDecodeSelfFromMap(yyl2, d) 39330 } 39331 } else if yyct2 == codecSelferValueTypeArray100 { 39332 yyl2 := r.ReadArrayStart() 39333 if yyl2 == 0 { 39334 r.ReadArrayEnd() 39335 } else { 39336 x.codecDecodeSelfFromArray(yyl2, d) 39337 } 39338 } else { 39339 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 39340 } 39341 } 39342 } 39343 39344 func (x *JobValidateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 39345 var h codecSelfer100 39346 z, r := codec1978.GenHelperDecoder(d) 39347 _, _, _ = h, z, r 39348 var yyhl3 bool = l >= 0 39349 for yyj3 := 0; ; yyj3++ { 39350 if yyhl3 { 39351 if yyj3 >= l { 39352 break 39353 } 39354 } else { 39355 if r.CheckBreak() { 39356 break 39357 } 39358 } 39359 r.ReadMapElemKey() 39360 yys3 := z.StringView(r.DecodeStringAsBytes()) 39361 r.ReadMapElemValue() 39362 switch yys3 { 39363 case "Job": 39364 if r.TryDecodeAsNil() { 39365 if true && x.Job != nil { 39366 x.Job = nil 39367 } 39368 } else { 39369 if x.Job == nil { 39370 x.Job = new(Job) 39371 } 39372 39373 x.Job.CodecDecodeSelf(d) 39374 } 39375 case "Region": 39376 if r.TryDecodeAsNil() { 39377 x.WriteRequest.Region = "" 39378 } else { 39379 x.Region = (string)(r.DecodeString()) 39380 } 39381 case "Namespace": 39382 if r.TryDecodeAsNil() { 39383 x.WriteRequest.Namespace = "" 39384 } else { 39385 x.Namespace = (string)(r.DecodeString()) 39386 } 39387 case "AuthToken": 39388 if r.TryDecodeAsNil() { 39389 x.WriteRequest.AuthToken = "" 39390 } else { 39391 x.AuthToken = (string)(r.DecodeString()) 39392 } 39393 case "Forwarded": 39394 if r.TryDecodeAsNil() { 39395 x.WriteRequest.InternalRpcInfo.Forwarded = false 39396 } else { 39397 x.Forwarded = (bool)(r.DecodeBool()) 39398 } 39399 default: 39400 z.DecStructFieldNotFound(-1, yys3) 39401 } // end switch yys3 39402 } // end for yyj3 39403 r.ReadMapEnd() 39404 } 39405 39406 func (x *JobValidateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 39407 var h codecSelfer100 39408 z, r := codec1978.GenHelperDecoder(d) 39409 _, _, _ = h, z, r 39410 var yyj9 int 39411 var yyb9 bool 39412 var yyhl9 bool = l >= 0 39413 yyj9++ 39414 if yyhl9 { 39415 yyb9 = yyj9 > l 39416 } else { 39417 yyb9 = r.CheckBreak() 39418 } 39419 if yyb9 { 39420 r.ReadArrayEnd() 39421 return 39422 } 39423 r.ReadArrayElem() 39424 if r.TryDecodeAsNil() { 39425 if true && x.Job != nil { 39426 x.Job = nil 39427 } 39428 } else { 39429 if x.Job == nil { 39430 x.Job = new(Job) 39431 } 39432 39433 x.Job.CodecDecodeSelf(d) 39434 } 39435 yyj9++ 39436 if yyhl9 { 39437 yyb9 = yyj9 > l 39438 } else { 39439 yyb9 = r.CheckBreak() 39440 } 39441 if yyb9 { 39442 r.ReadArrayEnd() 39443 return 39444 } 39445 r.ReadArrayElem() 39446 if r.TryDecodeAsNil() { 39447 x.WriteRequest.Region = "" 39448 } else { 39449 x.Region = (string)(r.DecodeString()) 39450 } 39451 yyj9++ 39452 if yyhl9 { 39453 yyb9 = yyj9 > l 39454 } else { 39455 yyb9 = r.CheckBreak() 39456 } 39457 if yyb9 { 39458 r.ReadArrayEnd() 39459 return 39460 } 39461 r.ReadArrayElem() 39462 if r.TryDecodeAsNil() { 39463 x.WriteRequest.Namespace = "" 39464 } else { 39465 x.Namespace = (string)(r.DecodeString()) 39466 } 39467 yyj9++ 39468 if yyhl9 { 39469 yyb9 = yyj9 > l 39470 } else { 39471 yyb9 = r.CheckBreak() 39472 } 39473 if yyb9 { 39474 r.ReadArrayEnd() 39475 return 39476 } 39477 r.ReadArrayElem() 39478 if r.TryDecodeAsNil() { 39479 x.WriteRequest.AuthToken = "" 39480 } else { 39481 x.AuthToken = (string)(r.DecodeString()) 39482 } 39483 yyj9++ 39484 if yyhl9 { 39485 yyb9 = yyj9 > l 39486 } else { 39487 yyb9 = r.CheckBreak() 39488 } 39489 if yyb9 { 39490 r.ReadArrayEnd() 39491 return 39492 } 39493 r.ReadArrayElem() 39494 if r.TryDecodeAsNil() { 39495 x.WriteRequest.InternalRpcInfo.Forwarded = false 39496 } else { 39497 x.Forwarded = (bool)(r.DecodeBool()) 39498 } 39499 for { 39500 yyj9++ 39501 if yyhl9 { 39502 yyb9 = yyj9 > l 39503 } else { 39504 yyb9 = r.CheckBreak() 39505 } 39506 if yyb9 { 39507 break 39508 } 39509 r.ReadArrayElem() 39510 z.DecStructFieldNotFound(yyj9-1, "") 39511 } 39512 r.ReadArrayEnd() 39513 } 39514 39515 func (x *JobRevertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 39516 var h codecSelfer100 39517 z, r := codec1978.GenHelperEncoder(e) 39518 _, _, _ = h, z, r 39519 if x == nil { 39520 r.EncodeNil() 39521 } else { 39522 if false { 39523 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39524 z.EncExtension(x, yyxt1) 39525 } else { 39526 yysep2 := !z.EncBinary() 39527 yy2arr2 := z.EncBasicHandle().StructToArray 39528 _, _ = yysep2, yy2arr2 39529 const yyr2 bool = false // struct tag has 'toArray' 39530 if yyr2 || yy2arr2 { 39531 r.WriteArrayStart(9) 39532 } else { 39533 r.WriteMapStart(9) 39534 } 39535 if yyr2 || yy2arr2 { 39536 r.WriteArrayElem() 39537 if false { 39538 } else { 39539 if z.EncBasicHandle().StringToRaw { 39540 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 39541 } else { 39542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 39543 } 39544 } 39545 } else { 39546 r.WriteMapElemKey() 39547 if z.IsJSONHandle() { 39548 z.WriteStr("\"JobID\"") 39549 } else { 39550 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 39551 } 39552 r.WriteMapElemValue() 39553 if false { 39554 } else { 39555 if z.EncBasicHandle().StringToRaw { 39556 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 39557 } else { 39558 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 39559 } 39560 } 39561 } 39562 if yyr2 || yy2arr2 { 39563 r.WriteArrayElem() 39564 if false { 39565 } else { 39566 r.EncodeUint(uint64(x.JobVersion)) 39567 } 39568 } else { 39569 r.WriteMapElemKey() 39570 if z.IsJSONHandle() { 39571 z.WriteStr("\"JobVersion\"") 39572 } else { 39573 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 39574 } 39575 r.WriteMapElemValue() 39576 if false { 39577 } else { 39578 r.EncodeUint(uint64(x.JobVersion)) 39579 } 39580 } 39581 var yyn9 bool 39582 if x.EnforcePriorVersion == nil { 39583 yyn9 = true 39584 goto LABEL9 39585 } 39586 LABEL9: 39587 if yyr2 || yy2arr2 { 39588 if yyn9 { 39589 r.WriteArrayElem() 39590 r.EncodeNil() 39591 } else { 39592 r.WriteArrayElem() 39593 if x.EnforcePriorVersion == nil { 39594 r.EncodeNil() 39595 } else { 39596 yy10 := *x.EnforcePriorVersion 39597 if false { 39598 } else { 39599 r.EncodeUint(uint64(yy10)) 39600 } 39601 } 39602 } 39603 } else { 39604 r.WriteMapElemKey() 39605 if z.IsJSONHandle() { 39606 z.WriteStr("\"EnforcePriorVersion\"") 39607 } else { 39608 r.EncodeStringEnc(codecSelferCcUTF8100, `EnforcePriorVersion`) 39609 } 39610 r.WriteMapElemValue() 39611 if yyn9 { 39612 r.EncodeNil() 39613 } else { 39614 if x.EnforcePriorVersion == nil { 39615 r.EncodeNil() 39616 } else { 39617 yy12 := *x.EnforcePriorVersion 39618 if false { 39619 } else { 39620 r.EncodeUint(uint64(yy12)) 39621 } 39622 } 39623 } 39624 } 39625 if yyr2 || yy2arr2 { 39626 r.WriteArrayElem() 39627 if false { 39628 } else { 39629 if z.EncBasicHandle().StringToRaw { 39630 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 39631 } else { 39632 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 39633 } 39634 } 39635 } else { 39636 r.WriteMapElemKey() 39637 if z.IsJSONHandle() { 39638 z.WriteStr("\"ConsulToken\"") 39639 } else { 39640 r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulToken`) 39641 } 39642 r.WriteMapElemValue() 39643 if false { 39644 } else { 39645 if z.EncBasicHandle().StringToRaw { 39646 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 39647 } else { 39648 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 39649 } 39650 } 39651 } 39652 if yyr2 || yy2arr2 { 39653 r.WriteArrayElem() 39654 if false { 39655 } else { 39656 if z.EncBasicHandle().StringToRaw { 39657 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 39658 } else { 39659 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 39660 } 39661 } 39662 } else { 39663 r.WriteMapElemKey() 39664 if z.IsJSONHandle() { 39665 z.WriteStr("\"VaultToken\"") 39666 } else { 39667 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) 39668 } 39669 r.WriteMapElemValue() 39670 if false { 39671 } else { 39672 if z.EncBasicHandle().StringToRaw { 39673 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 39674 } else { 39675 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 39676 } 39677 } 39678 } 39679 if yyr2 || yy2arr2 { 39680 r.WriteArrayElem() 39681 if false { 39682 } else { 39683 if z.EncBasicHandle().StringToRaw { 39684 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39685 } else { 39686 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39687 } 39688 } 39689 } else { 39690 r.WriteMapElemKey() 39691 if z.IsJSONHandle() { 39692 z.WriteStr("\"Region\"") 39693 } else { 39694 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 39695 } 39696 r.WriteMapElemValue() 39697 if false { 39698 } else { 39699 if z.EncBasicHandle().StringToRaw { 39700 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 39701 } else { 39702 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 39703 } 39704 } 39705 } 39706 if yyr2 || yy2arr2 { 39707 r.WriteArrayElem() 39708 if false { 39709 } else { 39710 if z.EncBasicHandle().StringToRaw { 39711 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39712 } else { 39713 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39714 } 39715 } 39716 } else { 39717 r.WriteMapElemKey() 39718 if z.IsJSONHandle() { 39719 z.WriteStr("\"Namespace\"") 39720 } else { 39721 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 39722 } 39723 r.WriteMapElemValue() 39724 if false { 39725 } else { 39726 if z.EncBasicHandle().StringToRaw { 39727 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 39728 } else { 39729 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 39730 } 39731 } 39732 } 39733 if yyr2 || yy2arr2 { 39734 r.WriteArrayElem() 39735 if false { 39736 } else { 39737 if z.EncBasicHandle().StringToRaw { 39738 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39739 } else { 39740 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39741 } 39742 } 39743 } else { 39744 r.WriteMapElemKey() 39745 if z.IsJSONHandle() { 39746 z.WriteStr("\"AuthToken\"") 39747 } else { 39748 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 39749 } 39750 r.WriteMapElemValue() 39751 if false { 39752 } else { 39753 if z.EncBasicHandle().StringToRaw { 39754 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 39755 } else { 39756 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 39757 } 39758 } 39759 } 39760 if yyr2 || yy2arr2 { 39761 r.WriteArrayElem() 39762 if false { 39763 } else { 39764 r.EncodeBool(bool(x.Forwarded)) 39765 } 39766 } else { 39767 r.WriteMapElemKey() 39768 if z.IsJSONHandle() { 39769 z.WriteStr("\"Forwarded\"") 39770 } else { 39771 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 39772 } 39773 r.WriteMapElemValue() 39774 if false { 39775 } else { 39776 r.EncodeBool(bool(x.Forwarded)) 39777 } 39778 } 39779 if yyr2 || yy2arr2 { 39780 r.WriteArrayEnd() 39781 } else { 39782 r.WriteMapEnd() 39783 } 39784 } 39785 } 39786 } 39787 39788 func (x *JobRevertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 39789 var h codecSelfer100 39790 z, r := codec1978.GenHelperDecoder(d) 39791 _, _, _ = h, z, r 39792 if false { 39793 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 39794 z.DecExtension(x, yyxt1) 39795 } else { 39796 yyct2 := r.ContainerType() 39797 if yyct2 == codecSelferValueTypeMap100 { 39798 yyl2 := r.ReadMapStart() 39799 if yyl2 == 0 { 39800 r.ReadMapEnd() 39801 } else { 39802 x.codecDecodeSelfFromMap(yyl2, d) 39803 } 39804 } else if yyct2 == codecSelferValueTypeArray100 { 39805 yyl2 := r.ReadArrayStart() 39806 if yyl2 == 0 { 39807 r.ReadArrayEnd() 39808 } else { 39809 x.codecDecodeSelfFromArray(yyl2, d) 39810 } 39811 } else { 39812 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 39813 } 39814 } 39815 } 39816 39817 func (x *JobRevertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 39818 var h codecSelfer100 39819 z, r := codec1978.GenHelperDecoder(d) 39820 _, _, _ = h, z, r 39821 var yyhl3 bool = l >= 0 39822 for yyj3 := 0; ; yyj3++ { 39823 if yyhl3 { 39824 if yyj3 >= l { 39825 break 39826 } 39827 } else { 39828 if r.CheckBreak() { 39829 break 39830 } 39831 } 39832 r.ReadMapElemKey() 39833 yys3 := z.StringView(r.DecodeStringAsBytes()) 39834 r.ReadMapElemValue() 39835 switch yys3 { 39836 case "JobID": 39837 if r.TryDecodeAsNil() { 39838 x.JobID = "" 39839 } else { 39840 x.JobID = (string)(r.DecodeString()) 39841 } 39842 case "JobVersion": 39843 if r.TryDecodeAsNil() { 39844 x.JobVersion = 0 39845 } else { 39846 x.JobVersion = (uint64)(r.DecodeUint64()) 39847 } 39848 case "EnforcePriorVersion": 39849 if r.TryDecodeAsNil() { 39850 if true && x.EnforcePriorVersion != nil { 39851 x.EnforcePriorVersion = nil 39852 } 39853 } else { 39854 if x.EnforcePriorVersion == nil { 39855 x.EnforcePriorVersion = new(uint64) 39856 } 39857 39858 if false { 39859 } else { 39860 *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) 39861 } 39862 } 39863 case "ConsulToken": 39864 if r.TryDecodeAsNil() { 39865 x.ConsulToken = "" 39866 } else { 39867 x.ConsulToken = (string)(r.DecodeString()) 39868 } 39869 case "VaultToken": 39870 if r.TryDecodeAsNil() { 39871 x.VaultToken = "" 39872 } else { 39873 x.VaultToken = (string)(r.DecodeString()) 39874 } 39875 case "Region": 39876 if r.TryDecodeAsNil() { 39877 x.WriteRequest.Region = "" 39878 } else { 39879 x.Region = (string)(r.DecodeString()) 39880 } 39881 case "Namespace": 39882 if r.TryDecodeAsNil() { 39883 x.WriteRequest.Namespace = "" 39884 } else { 39885 x.Namespace = (string)(r.DecodeString()) 39886 } 39887 case "AuthToken": 39888 if r.TryDecodeAsNil() { 39889 x.WriteRequest.AuthToken = "" 39890 } else { 39891 x.AuthToken = (string)(r.DecodeString()) 39892 } 39893 case "Forwarded": 39894 if r.TryDecodeAsNil() { 39895 x.WriteRequest.InternalRpcInfo.Forwarded = false 39896 } else { 39897 x.Forwarded = (bool)(r.DecodeBool()) 39898 } 39899 default: 39900 z.DecStructFieldNotFound(-1, yys3) 39901 } // end switch yys3 39902 } // end for yyj3 39903 r.ReadMapEnd() 39904 } 39905 39906 func (x *JobRevertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 39907 var h codecSelfer100 39908 z, r := codec1978.GenHelperDecoder(d) 39909 _, _, _ = h, z, r 39910 var yyj14 int 39911 var yyb14 bool 39912 var yyhl14 bool = l >= 0 39913 yyj14++ 39914 if yyhl14 { 39915 yyb14 = yyj14 > l 39916 } else { 39917 yyb14 = r.CheckBreak() 39918 } 39919 if yyb14 { 39920 r.ReadArrayEnd() 39921 return 39922 } 39923 r.ReadArrayElem() 39924 if r.TryDecodeAsNil() { 39925 x.JobID = "" 39926 } else { 39927 x.JobID = (string)(r.DecodeString()) 39928 } 39929 yyj14++ 39930 if yyhl14 { 39931 yyb14 = yyj14 > l 39932 } else { 39933 yyb14 = r.CheckBreak() 39934 } 39935 if yyb14 { 39936 r.ReadArrayEnd() 39937 return 39938 } 39939 r.ReadArrayElem() 39940 if r.TryDecodeAsNil() { 39941 x.JobVersion = 0 39942 } else { 39943 x.JobVersion = (uint64)(r.DecodeUint64()) 39944 } 39945 yyj14++ 39946 if yyhl14 { 39947 yyb14 = yyj14 > l 39948 } else { 39949 yyb14 = r.CheckBreak() 39950 } 39951 if yyb14 { 39952 r.ReadArrayEnd() 39953 return 39954 } 39955 r.ReadArrayElem() 39956 if r.TryDecodeAsNil() { 39957 if true && x.EnforcePriorVersion != nil { 39958 x.EnforcePriorVersion = nil 39959 } 39960 } else { 39961 if x.EnforcePriorVersion == nil { 39962 x.EnforcePriorVersion = new(uint64) 39963 } 39964 39965 if false { 39966 } else { 39967 *x.EnforcePriorVersion = (uint64)(r.DecodeUint64()) 39968 } 39969 } 39970 yyj14++ 39971 if yyhl14 { 39972 yyb14 = yyj14 > l 39973 } else { 39974 yyb14 = r.CheckBreak() 39975 } 39976 if yyb14 { 39977 r.ReadArrayEnd() 39978 return 39979 } 39980 r.ReadArrayElem() 39981 if r.TryDecodeAsNil() { 39982 x.ConsulToken = "" 39983 } else { 39984 x.ConsulToken = (string)(r.DecodeString()) 39985 } 39986 yyj14++ 39987 if yyhl14 { 39988 yyb14 = yyj14 > l 39989 } else { 39990 yyb14 = r.CheckBreak() 39991 } 39992 if yyb14 { 39993 r.ReadArrayEnd() 39994 return 39995 } 39996 r.ReadArrayElem() 39997 if r.TryDecodeAsNil() { 39998 x.VaultToken = "" 39999 } else { 40000 x.VaultToken = (string)(r.DecodeString()) 40001 } 40002 yyj14++ 40003 if yyhl14 { 40004 yyb14 = yyj14 > l 40005 } else { 40006 yyb14 = r.CheckBreak() 40007 } 40008 if yyb14 { 40009 r.ReadArrayEnd() 40010 return 40011 } 40012 r.ReadArrayElem() 40013 if r.TryDecodeAsNil() { 40014 x.WriteRequest.Region = "" 40015 } else { 40016 x.Region = (string)(r.DecodeString()) 40017 } 40018 yyj14++ 40019 if yyhl14 { 40020 yyb14 = yyj14 > l 40021 } else { 40022 yyb14 = r.CheckBreak() 40023 } 40024 if yyb14 { 40025 r.ReadArrayEnd() 40026 return 40027 } 40028 r.ReadArrayElem() 40029 if r.TryDecodeAsNil() { 40030 x.WriteRequest.Namespace = "" 40031 } else { 40032 x.Namespace = (string)(r.DecodeString()) 40033 } 40034 yyj14++ 40035 if yyhl14 { 40036 yyb14 = yyj14 > l 40037 } else { 40038 yyb14 = r.CheckBreak() 40039 } 40040 if yyb14 { 40041 r.ReadArrayEnd() 40042 return 40043 } 40044 r.ReadArrayElem() 40045 if r.TryDecodeAsNil() { 40046 x.WriteRequest.AuthToken = "" 40047 } else { 40048 x.AuthToken = (string)(r.DecodeString()) 40049 } 40050 yyj14++ 40051 if yyhl14 { 40052 yyb14 = yyj14 > l 40053 } else { 40054 yyb14 = r.CheckBreak() 40055 } 40056 if yyb14 { 40057 r.ReadArrayEnd() 40058 return 40059 } 40060 r.ReadArrayElem() 40061 if r.TryDecodeAsNil() { 40062 x.WriteRequest.InternalRpcInfo.Forwarded = false 40063 } else { 40064 x.Forwarded = (bool)(r.DecodeBool()) 40065 } 40066 for { 40067 yyj14++ 40068 if yyhl14 { 40069 yyb14 = yyj14 > l 40070 } else { 40071 yyb14 = r.CheckBreak() 40072 } 40073 if yyb14 { 40074 break 40075 } 40076 r.ReadArrayElem() 40077 z.DecStructFieldNotFound(yyj14-1, "") 40078 } 40079 r.ReadArrayEnd() 40080 } 40081 40082 func (x *JobStabilityRequest) CodecEncodeSelf(e *codec1978.Encoder) { 40083 var h codecSelfer100 40084 z, r := codec1978.GenHelperEncoder(e) 40085 _, _, _ = h, z, r 40086 if x == nil { 40087 r.EncodeNil() 40088 } else { 40089 if false { 40090 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40091 z.EncExtension(x, yyxt1) 40092 } else { 40093 yysep2 := !z.EncBinary() 40094 yy2arr2 := z.EncBasicHandle().StructToArray 40095 _, _ = yysep2, yy2arr2 40096 const yyr2 bool = false // struct tag has 'toArray' 40097 if yyr2 || yy2arr2 { 40098 r.WriteArrayStart(7) 40099 } else { 40100 r.WriteMapStart(7) 40101 } 40102 if yyr2 || yy2arr2 { 40103 r.WriteArrayElem() 40104 if false { 40105 } else { 40106 if z.EncBasicHandle().StringToRaw { 40107 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 40108 } else { 40109 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 40110 } 40111 } 40112 } else { 40113 r.WriteMapElemKey() 40114 if z.IsJSONHandle() { 40115 z.WriteStr("\"JobID\"") 40116 } else { 40117 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 40118 } 40119 r.WriteMapElemValue() 40120 if false { 40121 } else { 40122 if z.EncBasicHandle().StringToRaw { 40123 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 40124 } else { 40125 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 40126 } 40127 } 40128 } 40129 if yyr2 || yy2arr2 { 40130 r.WriteArrayElem() 40131 if false { 40132 } else { 40133 r.EncodeUint(uint64(x.JobVersion)) 40134 } 40135 } else { 40136 r.WriteMapElemKey() 40137 if z.IsJSONHandle() { 40138 z.WriteStr("\"JobVersion\"") 40139 } else { 40140 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 40141 } 40142 r.WriteMapElemValue() 40143 if false { 40144 } else { 40145 r.EncodeUint(uint64(x.JobVersion)) 40146 } 40147 } 40148 if yyr2 || yy2arr2 { 40149 r.WriteArrayElem() 40150 if false { 40151 } else { 40152 r.EncodeBool(bool(x.Stable)) 40153 } 40154 } else { 40155 r.WriteMapElemKey() 40156 if z.IsJSONHandle() { 40157 z.WriteStr("\"Stable\"") 40158 } else { 40159 r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) 40160 } 40161 r.WriteMapElemValue() 40162 if false { 40163 } else { 40164 r.EncodeBool(bool(x.Stable)) 40165 } 40166 } 40167 if yyr2 || yy2arr2 { 40168 r.WriteArrayElem() 40169 if false { 40170 } else { 40171 if z.EncBasicHandle().StringToRaw { 40172 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40173 } else { 40174 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40175 } 40176 } 40177 } else { 40178 r.WriteMapElemKey() 40179 if z.IsJSONHandle() { 40180 z.WriteStr("\"Region\"") 40181 } else { 40182 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 40183 } 40184 r.WriteMapElemValue() 40185 if false { 40186 } else { 40187 if z.EncBasicHandle().StringToRaw { 40188 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40189 } else { 40190 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40191 } 40192 } 40193 } 40194 if yyr2 || yy2arr2 { 40195 r.WriteArrayElem() 40196 if false { 40197 } else { 40198 if z.EncBasicHandle().StringToRaw { 40199 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40200 } else { 40201 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40202 } 40203 } 40204 } else { 40205 r.WriteMapElemKey() 40206 if z.IsJSONHandle() { 40207 z.WriteStr("\"Namespace\"") 40208 } else { 40209 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 40210 } 40211 r.WriteMapElemValue() 40212 if false { 40213 } else { 40214 if z.EncBasicHandle().StringToRaw { 40215 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40216 } else { 40217 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40218 } 40219 } 40220 } 40221 if yyr2 || yy2arr2 { 40222 r.WriteArrayElem() 40223 if false { 40224 } else { 40225 if z.EncBasicHandle().StringToRaw { 40226 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40227 } else { 40228 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40229 } 40230 } 40231 } else { 40232 r.WriteMapElemKey() 40233 if z.IsJSONHandle() { 40234 z.WriteStr("\"AuthToken\"") 40235 } else { 40236 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 40237 } 40238 r.WriteMapElemValue() 40239 if false { 40240 } else { 40241 if z.EncBasicHandle().StringToRaw { 40242 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40243 } else { 40244 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40245 } 40246 } 40247 } 40248 if yyr2 || yy2arr2 { 40249 r.WriteArrayElem() 40250 if false { 40251 } else { 40252 r.EncodeBool(bool(x.Forwarded)) 40253 } 40254 } else { 40255 r.WriteMapElemKey() 40256 if z.IsJSONHandle() { 40257 z.WriteStr("\"Forwarded\"") 40258 } else { 40259 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 40260 } 40261 r.WriteMapElemValue() 40262 if false { 40263 } else { 40264 r.EncodeBool(bool(x.Forwarded)) 40265 } 40266 } 40267 if yyr2 || yy2arr2 { 40268 r.WriteArrayEnd() 40269 } else { 40270 r.WriteMapEnd() 40271 } 40272 } 40273 } 40274 } 40275 40276 func (x *JobStabilityRequest) CodecDecodeSelf(d *codec1978.Decoder) { 40277 var h codecSelfer100 40278 z, r := codec1978.GenHelperDecoder(d) 40279 _, _, _ = h, z, r 40280 if false { 40281 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40282 z.DecExtension(x, yyxt1) 40283 } else { 40284 yyct2 := r.ContainerType() 40285 if yyct2 == codecSelferValueTypeMap100 { 40286 yyl2 := r.ReadMapStart() 40287 if yyl2 == 0 { 40288 r.ReadMapEnd() 40289 } else { 40290 x.codecDecodeSelfFromMap(yyl2, d) 40291 } 40292 } else if yyct2 == codecSelferValueTypeArray100 { 40293 yyl2 := r.ReadArrayStart() 40294 if yyl2 == 0 { 40295 r.ReadArrayEnd() 40296 } else { 40297 x.codecDecodeSelfFromArray(yyl2, d) 40298 } 40299 } else { 40300 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 40301 } 40302 } 40303 } 40304 40305 func (x *JobStabilityRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 40306 var h codecSelfer100 40307 z, r := codec1978.GenHelperDecoder(d) 40308 _, _, _ = h, z, r 40309 var yyhl3 bool = l >= 0 40310 for yyj3 := 0; ; yyj3++ { 40311 if yyhl3 { 40312 if yyj3 >= l { 40313 break 40314 } 40315 } else { 40316 if r.CheckBreak() { 40317 break 40318 } 40319 } 40320 r.ReadMapElemKey() 40321 yys3 := z.StringView(r.DecodeStringAsBytes()) 40322 r.ReadMapElemValue() 40323 switch yys3 { 40324 case "JobID": 40325 if r.TryDecodeAsNil() { 40326 x.JobID = "" 40327 } else { 40328 x.JobID = (string)(r.DecodeString()) 40329 } 40330 case "JobVersion": 40331 if r.TryDecodeAsNil() { 40332 x.JobVersion = 0 40333 } else { 40334 x.JobVersion = (uint64)(r.DecodeUint64()) 40335 } 40336 case "Stable": 40337 if r.TryDecodeAsNil() { 40338 x.Stable = false 40339 } else { 40340 x.Stable = (bool)(r.DecodeBool()) 40341 } 40342 case "Region": 40343 if r.TryDecodeAsNil() { 40344 x.WriteRequest.Region = "" 40345 } else { 40346 x.Region = (string)(r.DecodeString()) 40347 } 40348 case "Namespace": 40349 if r.TryDecodeAsNil() { 40350 x.WriteRequest.Namespace = "" 40351 } else { 40352 x.Namespace = (string)(r.DecodeString()) 40353 } 40354 case "AuthToken": 40355 if r.TryDecodeAsNil() { 40356 x.WriteRequest.AuthToken = "" 40357 } else { 40358 x.AuthToken = (string)(r.DecodeString()) 40359 } 40360 case "Forwarded": 40361 if r.TryDecodeAsNil() { 40362 x.WriteRequest.InternalRpcInfo.Forwarded = false 40363 } else { 40364 x.Forwarded = (bool)(r.DecodeBool()) 40365 } 40366 default: 40367 z.DecStructFieldNotFound(-1, yys3) 40368 } // end switch yys3 40369 } // end for yyj3 40370 r.ReadMapEnd() 40371 } 40372 40373 func (x *JobStabilityRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 40374 var h codecSelfer100 40375 z, r := codec1978.GenHelperDecoder(d) 40376 _, _, _ = h, z, r 40377 var yyj11 int 40378 var yyb11 bool 40379 var yyhl11 bool = l >= 0 40380 yyj11++ 40381 if yyhl11 { 40382 yyb11 = yyj11 > l 40383 } else { 40384 yyb11 = r.CheckBreak() 40385 } 40386 if yyb11 { 40387 r.ReadArrayEnd() 40388 return 40389 } 40390 r.ReadArrayElem() 40391 if r.TryDecodeAsNil() { 40392 x.JobID = "" 40393 } else { 40394 x.JobID = (string)(r.DecodeString()) 40395 } 40396 yyj11++ 40397 if yyhl11 { 40398 yyb11 = yyj11 > l 40399 } else { 40400 yyb11 = r.CheckBreak() 40401 } 40402 if yyb11 { 40403 r.ReadArrayEnd() 40404 return 40405 } 40406 r.ReadArrayElem() 40407 if r.TryDecodeAsNil() { 40408 x.JobVersion = 0 40409 } else { 40410 x.JobVersion = (uint64)(r.DecodeUint64()) 40411 } 40412 yyj11++ 40413 if yyhl11 { 40414 yyb11 = yyj11 > l 40415 } else { 40416 yyb11 = r.CheckBreak() 40417 } 40418 if yyb11 { 40419 r.ReadArrayEnd() 40420 return 40421 } 40422 r.ReadArrayElem() 40423 if r.TryDecodeAsNil() { 40424 x.Stable = false 40425 } else { 40426 x.Stable = (bool)(r.DecodeBool()) 40427 } 40428 yyj11++ 40429 if yyhl11 { 40430 yyb11 = yyj11 > l 40431 } else { 40432 yyb11 = r.CheckBreak() 40433 } 40434 if yyb11 { 40435 r.ReadArrayEnd() 40436 return 40437 } 40438 r.ReadArrayElem() 40439 if r.TryDecodeAsNil() { 40440 x.WriteRequest.Region = "" 40441 } else { 40442 x.Region = (string)(r.DecodeString()) 40443 } 40444 yyj11++ 40445 if yyhl11 { 40446 yyb11 = yyj11 > l 40447 } else { 40448 yyb11 = r.CheckBreak() 40449 } 40450 if yyb11 { 40451 r.ReadArrayEnd() 40452 return 40453 } 40454 r.ReadArrayElem() 40455 if r.TryDecodeAsNil() { 40456 x.WriteRequest.Namespace = "" 40457 } else { 40458 x.Namespace = (string)(r.DecodeString()) 40459 } 40460 yyj11++ 40461 if yyhl11 { 40462 yyb11 = yyj11 > l 40463 } else { 40464 yyb11 = r.CheckBreak() 40465 } 40466 if yyb11 { 40467 r.ReadArrayEnd() 40468 return 40469 } 40470 r.ReadArrayElem() 40471 if r.TryDecodeAsNil() { 40472 x.WriteRequest.AuthToken = "" 40473 } else { 40474 x.AuthToken = (string)(r.DecodeString()) 40475 } 40476 yyj11++ 40477 if yyhl11 { 40478 yyb11 = yyj11 > l 40479 } else { 40480 yyb11 = r.CheckBreak() 40481 } 40482 if yyb11 { 40483 r.ReadArrayEnd() 40484 return 40485 } 40486 r.ReadArrayElem() 40487 if r.TryDecodeAsNil() { 40488 x.WriteRequest.InternalRpcInfo.Forwarded = false 40489 } else { 40490 x.Forwarded = (bool)(r.DecodeBool()) 40491 } 40492 for { 40493 yyj11++ 40494 if yyhl11 { 40495 yyb11 = yyj11 > l 40496 } else { 40497 yyb11 = r.CheckBreak() 40498 } 40499 if yyb11 { 40500 break 40501 } 40502 r.ReadArrayElem() 40503 z.DecStructFieldNotFound(yyj11-1, "") 40504 } 40505 r.ReadArrayEnd() 40506 } 40507 40508 func (x *JobStabilityResponse) CodecEncodeSelf(e *codec1978.Encoder) { 40509 var h codecSelfer100 40510 z, r := codec1978.GenHelperEncoder(e) 40511 _, _, _ = h, z, r 40512 if x == nil { 40513 r.EncodeNil() 40514 } else { 40515 if false { 40516 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40517 z.EncExtension(x, yyxt1) 40518 } else { 40519 yysep2 := !z.EncBinary() 40520 yy2arr2 := z.EncBasicHandle().StructToArray 40521 _, _ = yysep2, yy2arr2 40522 const yyr2 bool = false // struct tag has 'toArray' 40523 if yyr2 || yy2arr2 { 40524 r.WriteArrayStart(1) 40525 } else { 40526 r.WriteMapStart(1) 40527 } 40528 if yyr2 || yy2arr2 { 40529 r.WriteArrayElem() 40530 if false { 40531 } else { 40532 r.EncodeUint(uint64(x.Index)) 40533 } 40534 } else { 40535 r.WriteMapElemKey() 40536 if z.IsJSONHandle() { 40537 z.WriteStr("\"Index\"") 40538 } else { 40539 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 40540 } 40541 r.WriteMapElemValue() 40542 if false { 40543 } else { 40544 r.EncodeUint(uint64(x.Index)) 40545 } 40546 } 40547 if yyr2 || yy2arr2 { 40548 r.WriteArrayEnd() 40549 } else { 40550 r.WriteMapEnd() 40551 } 40552 } 40553 } 40554 } 40555 40556 func (x *JobStabilityResponse) CodecDecodeSelf(d *codec1978.Decoder) { 40557 var h codecSelfer100 40558 z, r := codec1978.GenHelperDecoder(d) 40559 _, _, _ = h, z, r 40560 if false { 40561 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40562 z.DecExtension(x, yyxt1) 40563 } else { 40564 yyct2 := r.ContainerType() 40565 if yyct2 == codecSelferValueTypeMap100 { 40566 yyl2 := r.ReadMapStart() 40567 if yyl2 == 0 { 40568 r.ReadMapEnd() 40569 } else { 40570 x.codecDecodeSelfFromMap(yyl2, d) 40571 } 40572 } else if yyct2 == codecSelferValueTypeArray100 { 40573 yyl2 := r.ReadArrayStart() 40574 if yyl2 == 0 { 40575 r.ReadArrayEnd() 40576 } else { 40577 x.codecDecodeSelfFromArray(yyl2, d) 40578 } 40579 } else { 40580 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 40581 } 40582 } 40583 } 40584 40585 func (x *JobStabilityResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 40586 var h codecSelfer100 40587 z, r := codec1978.GenHelperDecoder(d) 40588 _, _, _ = h, z, r 40589 var yyhl3 bool = l >= 0 40590 for yyj3 := 0; ; yyj3++ { 40591 if yyhl3 { 40592 if yyj3 >= l { 40593 break 40594 } 40595 } else { 40596 if r.CheckBreak() { 40597 break 40598 } 40599 } 40600 r.ReadMapElemKey() 40601 yys3 := z.StringView(r.DecodeStringAsBytes()) 40602 r.ReadMapElemValue() 40603 switch yys3 { 40604 case "Index": 40605 if r.TryDecodeAsNil() { 40606 x.WriteMeta.Index = 0 40607 } else { 40608 x.Index = (uint64)(r.DecodeUint64()) 40609 } 40610 default: 40611 z.DecStructFieldNotFound(-1, yys3) 40612 } // end switch yys3 40613 } // end for yyj3 40614 r.ReadMapEnd() 40615 } 40616 40617 func (x *JobStabilityResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 40618 var h codecSelfer100 40619 z, r := codec1978.GenHelperDecoder(d) 40620 _, _, _ = h, z, r 40621 var yyj5 int 40622 var yyb5 bool 40623 var yyhl5 bool = l >= 0 40624 yyj5++ 40625 if yyhl5 { 40626 yyb5 = yyj5 > l 40627 } else { 40628 yyb5 = r.CheckBreak() 40629 } 40630 if yyb5 { 40631 r.ReadArrayEnd() 40632 return 40633 } 40634 r.ReadArrayElem() 40635 if r.TryDecodeAsNil() { 40636 x.WriteMeta.Index = 0 40637 } else { 40638 x.Index = (uint64)(r.DecodeUint64()) 40639 } 40640 for { 40641 yyj5++ 40642 if yyhl5 { 40643 yyb5 = yyj5 > l 40644 } else { 40645 yyb5 = r.CheckBreak() 40646 } 40647 if yyb5 { 40648 break 40649 } 40650 r.ReadArrayElem() 40651 z.DecStructFieldNotFound(yyj5-1, "") 40652 } 40653 r.ReadArrayEnd() 40654 } 40655 40656 func (x *NodeListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 40657 var h codecSelfer100 40658 z, r := codec1978.GenHelperEncoder(e) 40659 _, _, _ = h, z, r 40660 if x == nil { 40661 r.EncodeNil() 40662 } else { 40663 if false { 40664 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40665 z.EncExtension(x, yyxt1) 40666 } else { 40667 yysep2 := !z.EncBinary() 40668 yy2arr2 := z.EncBasicHandle().StructToArray 40669 _, _ = yysep2, yy2arr2 40670 const yyr2 bool = false // struct tag has 'toArray' 40671 if yyr2 || yy2arr2 { 40672 r.WriteArrayStart(8) 40673 } else { 40674 r.WriteMapStart(8) 40675 } 40676 if yyr2 || yy2arr2 { 40677 r.WriteArrayElem() 40678 if false { 40679 } else { 40680 if z.EncBasicHandle().StringToRaw { 40681 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40682 } else { 40683 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40684 } 40685 } 40686 } else { 40687 r.WriteMapElemKey() 40688 if z.IsJSONHandle() { 40689 z.WriteStr("\"Region\"") 40690 } else { 40691 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 40692 } 40693 r.WriteMapElemValue() 40694 if false { 40695 } else { 40696 if z.EncBasicHandle().StringToRaw { 40697 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 40698 } else { 40699 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 40700 } 40701 } 40702 } 40703 if yyr2 || yy2arr2 { 40704 r.WriteArrayElem() 40705 if false { 40706 } else { 40707 if z.EncBasicHandle().StringToRaw { 40708 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40709 } else { 40710 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40711 } 40712 } 40713 } else { 40714 r.WriteMapElemKey() 40715 if z.IsJSONHandle() { 40716 z.WriteStr("\"Namespace\"") 40717 } else { 40718 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 40719 } 40720 r.WriteMapElemValue() 40721 if false { 40722 } else { 40723 if z.EncBasicHandle().StringToRaw { 40724 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 40725 } else { 40726 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 40727 } 40728 } 40729 } 40730 if yyr2 || yy2arr2 { 40731 r.WriteArrayElem() 40732 if false { 40733 } else { 40734 r.EncodeUint(uint64(x.MinQueryIndex)) 40735 } 40736 } else { 40737 r.WriteMapElemKey() 40738 if z.IsJSONHandle() { 40739 z.WriteStr("\"MinQueryIndex\"") 40740 } else { 40741 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 40742 } 40743 r.WriteMapElemValue() 40744 if false { 40745 } else { 40746 r.EncodeUint(uint64(x.MinQueryIndex)) 40747 } 40748 } 40749 if yyr2 || yy2arr2 { 40750 r.WriteArrayElem() 40751 if false { 40752 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 40753 z.EncExtension(x.MaxQueryTime, yyxt13) 40754 } else { 40755 r.EncodeInt(int64(x.MaxQueryTime)) 40756 } 40757 } else { 40758 r.WriteMapElemKey() 40759 if z.IsJSONHandle() { 40760 z.WriteStr("\"MaxQueryTime\"") 40761 } else { 40762 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 40763 } 40764 r.WriteMapElemValue() 40765 if false { 40766 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 40767 z.EncExtension(x.MaxQueryTime, yyxt14) 40768 } else { 40769 r.EncodeInt(int64(x.MaxQueryTime)) 40770 } 40771 } 40772 if yyr2 || yy2arr2 { 40773 r.WriteArrayElem() 40774 if false { 40775 } else { 40776 r.EncodeBool(bool(x.AllowStale)) 40777 } 40778 } else { 40779 r.WriteMapElemKey() 40780 if z.IsJSONHandle() { 40781 z.WriteStr("\"AllowStale\"") 40782 } else { 40783 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 40784 } 40785 r.WriteMapElemValue() 40786 if false { 40787 } else { 40788 r.EncodeBool(bool(x.AllowStale)) 40789 } 40790 } 40791 if yyr2 || yy2arr2 { 40792 r.WriteArrayElem() 40793 if false { 40794 } else { 40795 if z.EncBasicHandle().StringToRaw { 40796 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 40797 } else { 40798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 40799 } 40800 } 40801 } else { 40802 r.WriteMapElemKey() 40803 if z.IsJSONHandle() { 40804 z.WriteStr("\"Prefix\"") 40805 } else { 40806 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 40807 } 40808 r.WriteMapElemValue() 40809 if false { 40810 } else { 40811 if z.EncBasicHandle().StringToRaw { 40812 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 40813 } else { 40814 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 40815 } 40816 } 40817 } 40818 if yyr2 || yy2arr2 { 40819 r.WriteArrayElem() 40820 if false { 40821 } else { 40822 if z.EncBasicHandle().StringToRaw { 40823 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40824 } else { 40825 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40826 } 40827 } 40828 } else { 40829 r.WriteMapElemKey() 40830 if z.IsJSONHandle() { 40831 z.WriteStr("\"AuthToken\"") 40832 } else { 40833 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 40834 } 40835 r.WriteMapElemValue() 40836 if false { 40837 } else { 40838 if z.EncBasicHandle().StringToRaw { 40839 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 40840 } else { 40841 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 40842 } 40843 } 40844 } 40845 if yyr2 || yy2arr2 { 40846 r.WriteArrayElem() 40847 if false { 40848 } else { 40849 r.EncodeBool(bool(x.Forwarded)) 40850 } 40851 } else { 40852 r.WriteMapElemKey() 40853 if z.IsJSONHandle() { 40854 z.WriteStr("\"Forwarded\"") 40855 } else { 40856 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 40857 } 40858 r.WriteMapElemValue() 40859 if false { 40860 } else { 40861 r.EncodeBool(bool(x.Forwarded)) 40862 } 40863 } 40864 if yyr2 || yy2arr2 { 40865 r.WriteArrayEnd() 40866 } else { 40867 r.WriteMapEnd() 40868 } 40869 } 40870 } 40871 } 40872 40873 func (x *NodeListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 40874 var h codecSelfer100 40875 z, r := codec1978.GenHelperDecoder(d) 40876 _, _, _ = h, z, r 40877 if false { 40878 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 40879 z.DecExtension(x, yyxt1) 40880 } else { 40881 yyct2 := r.ContainerType() 40882 if yyct2 == codecSelferValueTypeMap100 { 40883 yyl2 := r.ReadMapStart() 40884 if yyl2 == 0 { 40885 r.ReadMapEnd() 40886 } else { 40887 x.codecDecodeSelfFromMap(yyl2, d) 40888 } 40889 } else if yyct2 == codecSelferValueTypeArray100 { 40890 yyl2 := r.ReadArrayStart() 40891 if yyl2 == 0 { 40892 r.ReadArrayEnd() 40893 } else { 40894 x.codecDecodeSelfFromArray(yyl2, d) 40895 } 40896 } else { 40897 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 40898 } 40899 } 40900 } 40901 40902 func (x *NodeListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 40903 var h codecSelfer100 40904 z, r := codec1978.GenHelperDecoder(d) 40905 _, _, _ = h, z, r 40906 var yyhl3 bool = l >= 0 40907 for yyj3 := 0; ; yyj3++ { 40908 if yyhl3 { 40909 if yyj3 >= l { 40910 break 40911 } 40912 } else { 40913 if r.CheckBreak() { 40914 break 40915 } 40916 } 40917 r.ReadMapElemKey() 40918 yys3 := z.StringView(r.DecodeStringAsBytes()) 40919 r.ReadMapElemValue() 40920 switch yys3 { 40921 case "Region": 40922 if r.TryDecodeAsNil() { 40923 x.QueryOptions.Region = "" 40924 } else { 40925 x.Region = (string)(r.DecodeString()) 40926 } 40927 case "Namespace": 40928 if r.TryDecodeAsNil() { 40929 x.QueryOptions.Namespace = "" 40930 } else { 40931 x.Namespace = (string)(r.DecodeString()) 40932 } 40933 case "MinQueryIndex": 40934 if r.TryDecodeAsNil() { 40935 x.QueryOptions.MinQueryIndex = 0 40936 } else { 40937 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 40938 } 40939 case "MaxQueryTime": 40940 if r.TryDecodeAsNil() { 40941 x.QueryOptions.MaxQueryTime = 0 40942 } else { 40943 if false { 40944 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 40945 z.DecExtension(x.MaxQueryTime, yyxt8) 40946 } else { 40947 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 40948 } 40949 } 40950 case "AllowStale": 40951 if r.TryDecodeAsNil() { 40952 x.QueryOptions.AllowStale = false 40953 } else { 40954 x.AllowStale = (bool)(r.DecodeBool()) 40955 } 40956 case "Prefix": 40957 if r.TryDecodeAsNil() { 40958 x.QueryOptions.Prefix = "" 40959 } else { 40960 x.Prefix = (string)(r.DecodeString()) 40961 } 40962 case "AuthToken": 40963 if r.TryDecodeAsNil() { 40964 x.QueryOptions.AuthToken = "" 40965 } else { 40966 x.AuthToken = (string)(r.DecodeString()) 40967 } 40968 case "Forwarded": 40969 if r.TryDecodeAsNil() { 40970 x.QueryOptions.InternalRpcInfo.Forwarded = false 40971 } else { 40972 x.Forwarded = (bool)(r.DecodeBool()) 40973 } 40974 default: 40975 z.DecStructFieldNotFound(-1, yys3) 40976 } // end switch yys3 40977 } // end for yyj3 40978 r.ReadMapEnd() 40979 } 40980 40981 func (x *NodeListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 40982 var h codecSelfer100 40983 z, r := codec1978.GenHelperDecoder(d) 40984 _, _, _ = h, z, r 40985 var yyj13 int 40986 var yyb13 bool 40987 var yyhl13 bool = l >= 0 40988 yyj13++ 40989 if yyhl13 { 40990 yyb13 = yyj13 > l 40991 } else { 40992 yyb13 = r.CheckBreak() 40993 } 40994 if yyb13 { 40995 r.ReadArrayEnd() 40996 return 40997 } 40998 r.ReadArrayElem() 40999 if r.TryDecodeAsNil() { 41000 x.QueryOptions.Region = "" 41001 } else { 41002 x.Region = (string)(r.DecodeString()) 41003 } 41004 yyj13++ 41005 if yyhl13 { 41006 yyb13 = yyj13 > l 41007 } else { 41008 yyb13 = r.CheckBreak() 41009 } 41010 if yyb13 { 41011 r.ReadArrayEnd() 41012 return 41013 } 41014 r.ReadArrayElem() 41015 if r.TryDecodeAsNil() { 41016 x.QueryOptions.Namespace = "" 41017 } else { 41018 x.Namespace = (string)(r.DecodeString()) 41019 } 41020 yyj13++ 41021 if yyhl13 { 41022 yyb13 = yyj13 > l 41023 } else { 41024 yyb13 = r.CheckBreak() 41025 } 41026 if yyb13 { 41027 r.ReadArrayEnd() 41028 return 41029 } 41030 r.ReadArrayElem() 41031 if r.TryDecodeAsNil() { 41032 x.QueryOptions.MinQueryIndex = 0 41033 } else { 41034 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 41035 } 41036 yyj13++ 41037 if yyhl13 { 41038 yyb13 = yyj13 > l 41039 } else { 41040 yyb13 = r.CheckBreak() 41041 } 41042 if yyb13 { 41043 r.ReadArrayEnd() 41044 return 41045 } 41046 r.ReadArrayElem() 41047 if r.TryDecodeAsNil() { 41048 x.QueryOptions.MaxQueryTime = 0 41049 } else { 41050 if false { 41051 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 41052 z.DecExtension(x.MaxQueryTime, yyxt18) 41053 } else { 41054 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 41055 } 41056 } 41057 yyj13++ 41058 if yyhl13 { 41059 yyb13 = yyj13 > l 41060 } else { 41061 yyb13 = r.CheckBreak() 41062 } 41063 if yyb13 { 41064 r.ReadArrayEnd() 41065 return 41066 } 41067 r.ReadArrayElem() 41068 if r.TryDecodeAsNil() { 41069 x.QueryOptions.AllowStale = false 41070 } else { 41071 x.AllowStale = (bool)(r.DecodeBool()) 41072 } 41073 yyj13++ 41074 if yyhl13 { 41075 yyb13 = yyj13 > l 41076 } else { 41077 yyb13 = r.CheckBreak() 41078 } 41079 if yyb13 { 41080 r.ReadArrayEnd() 41081 return 41082 } 41083 r.ReadArrayElem() 41084 if r.TryDecodeAsNil() { 41085 x.QueryOptions.Prefix = "" 41086 } else { 41087 x.Prefix = (string)(r.DecodeString()) 41088 } 41089 yyj13++ 41090 if yyhl13 { 41091 yyb13 = yyj13 > l 41092 } else { 41093 yyb13 = r.CheckBreak() 41094 } 41095 if yyb13 { 41096 r.ReadArrayEnd() 41097 return 41098 } 41099 r.ReadArrayElem() 41100 if r.TryDecodeAsNil() { 41101 x.QueryOptions.AuthToken = "" 41102 } else { 41103 x.AuthToken = (string)(r.DecodeString()) 41104 } 41105 yyj13++ 41106 if yyhl13 { 41107 yyb13 = yyj13 > l 41108 } else { 41109 yyb13 = r.CheckBreak() 41110 } 41111 if yyb13 { 41112 r.ReadArrayEnd() 41113 return 41114 } 41115 r.ReadArrayElem() 41116 if r.TryDecodeAsNil() { 41117 x.QueryOptions.InternalRpcInfo.Forwarded = false 41118 } else { 41119 x.Forwarded = (bool)(r.DecodeBool()) 41120 } 41121 for { 41122 yyj13++ 41123 if yyhl13 { 41124 yyb13 = yyj13 > l 41125 } else { 41126 yyb13 = r.CheckBreak() 41127 } 41128 if yyb13 { 41129 break 41130 } 41131 r.ReadArrayElem() 41132 z.DecStructFieldNotFound(yyj13-1, "") 41133 } 41134 r.ReadArrayEnd() 41135 } 41136 41137 func (x *EvalUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 41138 var h codecSelfer100 41139 z, r := codec1978.GenHelperEncoder(e) 41140 _, _, _ = h, z, r 41141 if x == nil { 41142 r.EncodeNil() 41143 } else { 41144 if false { 41145 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41146 z.EncExtension(x, yyxt1) 41147 } else { 41148 yysep2 := !z.EncBinary() 41149 yy2arr2 := z.EncBasicHandle().StructToArray 41150 _, _ = yysep2, yy2arr2 41151 const yyr2 bool = false // struct tag has 'toArray' 41152 if yyr2 || yy2arr2 { 41153 r.WriteArrayStart(6) 41154 } else { 41155 r.WriteMapStart(6) 41156 } 41157 if yyr2 || yy2arr2 { 41158 r.WriteArrayElem() 41159 if x.Evals == nil { 41160 r.EncodeNil() 41161 } else { 41162 if false { 41163 } else { 41164 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 41165 } 41166 } 41167 } else { 41168 r.WriteMapElemKey() 41169 if z.IsJSONHandle() { 41170 z.WriteStr("\"Evals\"") 41171 } else { 41172 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 41173 } 41174 r.WriteMapElemValue() 41175 if x.Evals == nil { 41176 r.EncodeNil() 41177 } else { 41178 if false { 41179 } else { 41180 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 41181 } 41182 } 41183 } 41184 if yyr2 || yy2arr2 { 41185 r.WriteArrayElem() 41186 if false { 41187 } else { 41188 if z.EncBasicHandle().StringToRaw { 41189 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 41190 } else { 41191 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 41192 } 41193 } 41194 } else { 41195 r.WriteMapElemKey() 41196 if z.IsJSONHandle() { 41197 z.WriteStr("\"EvalToken\"") 41198 } else { 41199 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) 41200 } 41201 r.WriteMapElemValue() 41202 if false { 41203 } else { 41204 if z.EncBasicHandle().StringToRaw { 41205 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 41206 } else { 41207 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 41208 } 41209 } 41210 } 41211 if yyr2 || yy2arr2 { 41212 r.WriteArrayElem() 41213 if false { 41214 } else { 41215 if z.EncBasicHandle().StringToRaw { 41216 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41217 } else { 41218 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41219 } 41220 } 41221 } else { 41222 r.WriteMapElemKey() 41223 if z.IsJSONHandle() { 41224 z.WriteStr("\"Region\"") 41225 } else { 41226 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 41227 } 41228 r.WriteMapElemValue() 41229 if false { 41230 } else { 41231 if z.EncBasicHandle().StringToRaw { 41232 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41233 } else { 41234 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41235 } 41236 } 41237 } 41238 if yyr2 || yy2arr2 { 41239 r.WriteArrayElem() 41240 if false { 41241 } else { 41242 if z.EncBasicHandle().StringToRaw { 41243 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41244 } else { 41245 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41246 } 41247 } 41248 } else { 41249 r.WriteMapElemKey() 41250 if z.IsJSONHandle() { 41251 z.WriteStr("\"Namespace\"") 41252 } else { 41253 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 41254 } 41255 r.WriteMapElemValue() 41256 if false { 41257 } else { 41258 if z.EncBasicHandle().StringToRaw { 41259 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41260 } else { 41261 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41262 } 41263 } 41264 } 41265 if yyr2 || yy2arr2 { 41266 r.WriteArrayElem() 41267 if false { 41268 } else { 41269 if z.EncBasicHandle().StringToRaw { 41270 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41271 } else { 41272 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41273 } 41274 } 41275 } else { 41276 r.WriteMapElemKey() 41277 if z.IsJSONHandle() { 41278 z.WriteStr("\"AuthToken\"") 41279 } else { 41280 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 41281 } 41282 r.WriteMapElemValue() 41283 if false { 41284 } else { 41285 if z.EncBasicHandle().StringToRaw { 41286 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41287 } else { 41288 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41289 } 41290 } 41291 } 41292 if yyr2 || yy2arr2 { 41293 r.WriteArrayElem() 41294 if false { 41295 } else { 41296 r.EncodeBool(bool(x.Forwarded)) 41297 } 41298 } else { 41299 r.WriteMapElemKey() 41300 if z.IsJSONHandle() { 41301 z.WriteStr("\"Forwarded\"") 41302 } else { 41303 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 41304 } 41305 r.WriteMapElemValue() 41306 if false { 41307 } else { 41308 r.EncodeBool(bool(x.Forwarded)) 41309 } 41310 } 41311 if yyr2 || yy2arr2 { 41312 r.WriteArrayEnd() 41313 } else { 41314 r.WriteMapEnd() 41315 } 41316 } 41317 } 41318 } 41319 41320 func (x *EvalUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 41321 var h codecSelfer100 41322 z, r := codec1978.GenHelperDecoder(d) 41323 _, _, _ = h, z, r 41324 if false { 41325 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41326 z.DecExtension(x, yyxt1) 41327 } else { 41328 yyct2 := r.ContainerType() 41329 if yyct2 == codecSelferValueTypeMap100 { 41330 yyl2 := r.ReadMapStart() 41331 if yyl2 == 0 { 41332 r.ReadMapEnd() 41333 } else { 41334 x.codecDecodeSelfFromMap(yyl2, d) 41335 } 41336 } else if yyct2 == codecSelferValueTypeArray100 { 41337 yyl2 := r.ReadArrayStart() 41338 if yyl2 == 0 { 41339 r.ReadArrayEnd() 41340 } else { 41341 x.codecDecodeSelfFromArray(yyl2, d) 41342 } 41343 } else { 41344 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 41345 } 41346 } 41347 } 41348 41349 func (x *EvalUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 41350 var h codecSelfer100 41351 z, r := codec1978.GenHelperDecoder(d) 41352 _, _, _ = h, z, r 41353 var yyhl3 bool = l >= 0 41354 for yyj3 := 0; ; yyj3++ { 41355 if yyhl3 { 41356 if yyj3 >= l { 41357 break 41358 } 41359 } else { 41360 if r.CheckBreak() { 41361 break 41362 } 41363 } 41364 r.ReadMapElemKey() 41365 yys3 := z.StringView(r.DecodeStringAsBytes()) 41366 r.ReadMapElemValue() 41367 switch yys3 { 41368 case "Evals": 41369 if r.TryDecodeAsNil() { 41370 x.Evals = nil 41371 } else { 41372 if false { 41373 } else { 41374 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 41375 } 41376 } 41377 case "EvalToken": 41378 if r.TryDecodeAsNil() { 41379 x.EvalToken = "" 41380 } else { 41381 x.EvalToken = (string)(r.DecodeString()) 41382 } 41383 case "Region": 41384 if r.TryDecodeAsNil() { 41385 x.WriteRequest.Region = "" 41386 } else { 41387 x.Region = (string)(r.DecodeString()) 41388 } 41389 case "Namespace": 41390 if r.TryDecodeAsNil() { 41391 x.WriteRequest.Namespace = "" 41392 } else { 41393 x.Namespace = (string)(r.DecodeString()) 41394 } 41395 case "AuthToken": 41396 if r.TryDecodeAsNil() { 41397 x.WriteRequest.AuthToken = "" 41398 } else { 41399 x.AuthToken = (string)(r.DecodeString()) 41400 } 41401 case "Forwarded": 41402 if r.TryDecodeAsNil() { 41403 x.WriteRequest.InternalRpcInfo.Forwarded = false 41404 } else { 41405 x.Forwarded = (bool)(r.DecodeBool()) 41406 } 41407 default: 41408 z.DecStructFieldNotFound(-1, yys3) 41409 } // end switch yys3 41410 } // end for yyj3 41411 r.ReadMapEnd() 41412 } 41413 41414 func (x *EvalUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 41415 var h codecSelfer100 41416 z, r := codec1978.GenHelperDecoder(d) 41417 _, _, _ = h, z, r 41418 var yyj11 int 41419 var yyb11 bool 41420 var yyhl11 bool = l >= 0 41421 yyj11++ 41422 if yyhl11 { 41423 yyb11 = yyj11 > l 41424 } else { 41425 yyb11 = r.CheckBreak() 41426 } 41427 if yyb11 { 41428 r.ReadArrayEnd() 41429 return 41430 } 41431 r.ReadArrayElem() 41432 if r.TryDecodeAsNil() { 41433 x.Evals = nil 41434 } else { 41435 if false { 41436 } else { 41437 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 41438 } 41439 } 41440 yyj11++ 41441 if yyhl11 { 41442 yyb11 = yyj11 > l 41443 } else { 41444 yyb11 = r.CheckBreak() 41445 } 41446 if yyb11 { 41447 r.ReadArrayEnd() 41448 return 41449 } 41450 r.ReadArrayElem() 41451 if r.TryDecodeAsNil() { 41452 x.EvalToken = "" 41453 } else { 41454 x.EvalToken = (string)(r.DecodeString()) 41455 } 41456 yyj11++ 41457 if yyhl11 { 41458 yyb11 = yyj11 > l 41459 } else { 41460 yyb11 = r.CheckBreak() 41461 } 41462 if yyb11 { 41463 r.ReadArrayEnd() 41464 return 41465 } 41466 r.ReadArrayElem() 41467 if r.TryDecodeAsNil() { 41468 x.WriteRequest.Region = "" 41469 } else { 41470 x.Region = (string)(r.DecodeString()) 41471 } 41472 yyj11++ 41473 if yyhl11 { 41474 yyb11 = yyj11 > l 41475 } else { 41476 yyb11 = r.CheckBreak() 41477 } 41478 if yyb11 { 41479 r.ReadArrayEnd() 41480 return 41481 } 41482 r.ReadArrayElem() 41483 if r.TryDecodeAsNil() { 41484 x.WriteRequest.Namespace = "" 41485 } else { 41486 x.Namespace = (string)(r.DecodeString()) 41487 } 41488 yyj11++ 41489 if yyhl11 { 41490 yyb11 = yyj11 > l 41491 } else { 41492 yyb11 = r.CheckBreak() 41493 } 41494 if yyb11 { 41495 r.ReadArrayEnd() 41496 return 41497 } 41498 r.ReadArrayElem() 41499 if r.TryDecodeAsNil() { 41500 x.WriteRequest.AuthToken = "" 41501 } else { 41502 x.AuthToken = (string)(r.DecodeString()) 41503 } 41504 yyj11++ 41505 if yyhl11 { 41506 yyb11 = yyj11 > l 41507 } else { 41508 yyb11 = r.CheckBreak() 41509 } 41510 if yyb11 { 41511 r.ReadArrayEnd() 41512 return 41513 } 41514 r.ReadArrayElem() 41515 if r.TryDecodeAsNil() { 41516 x.WriteRequest.InternalRpcInfo.Forwarded = false 41517 } else { 41518 x.Forwarded = (bool)(r.DecodeBool()) 41519 } 41520 for { 41521 yyj11++ 41522 if yyhl11 { 41523 yyb11 = yyj11 > l 41524 } else { 41525 yyb11 = r.CheckBreak() 41526 } 41527 if yyb11 { 41528 break 41529 } 41530 r.ReadArrayElem() 41531 z.DecStructFieldNotFound(yyj11-1, "") 41532 } 41533 r.ReadArrayEnd() 41534 } 41535 41536 func (x *EvalDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 41537 var h codecSelfer100 41538 z, r := codec1978.GenHelperEncoder(e) 41539 _, _, _ = h, z, r 41540 if x == nil { 41541 r.EncodeNil() 41542 } else { 41543 if false { 41544 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41545 z.EncExtension(x, yyxt1) 41546 } else { 41547 yysep2 := !z.EncBinary() 41548 yy2arr2 := z.EncBasicHandle().StructToArray 41549 _, _ = yysep2, yy2arr2 41550 const yyr2 bool = false // struct tag has 'toArray' 41551 if yyr2 || yy2arr2 { 41552 r.WriteArrayStart(6) 41553 } else { 41554 r.WriteMapStart(6) 41555 } 41556 if yyr2 || yy2arr2 { 41557 r.WriteArrayElem() 41558 if x.Evals == nil { 41559 r.EncodeNil() 41560 } else { 41561 if false { 41562 } else { 41563 z.F.EncSliceStringV(x.Evals, e) 41564 } 41565 } 41566 } else { 41567 r.WriteMapElemKey() 41568 if z.IsJSONHandle() { 41569 z.WriteStr("\"Evals\"") 41570 } else { 41571 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 41572 } 41573 r.WriteMapElemValue() 41574 if x.Evals == nil { 41575 r.EncodeNil() 41576 } else { 41577 if false { 41578 } else { 41579 z.F.EncSliceStringV(x.Evals, e) 41580 } 41581 } 41582 } 41583 if yyr2 || yy2arr2 { 41584 r.WriteArrayElem() 41585 if x.Allocs == nil { 41586 r.EncodeNil() 41587 } else { 41588 if false { 41589 } else { 41590 z.F.EncSliceStringV(x.Allocs, e) 41591 } 41592 } 41593 } else { 41594 r.WriteMapElemKey() 41595 if z.IsJSONHandle() { 41596 z.WriteStr("\"Allocs\"") 41597 } else { 41598 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 41599 } 41600 r.WriteMapElemValue() 41601 if x.Allocs == nil { 41602 r.EncodeNil() 41603 } else { 41604 if false { 41605 } else { 41606 z.F.EncSliceStringV(x.Allocs, e) 41607 } 41608 } 41609 } 41610 if yyr2 || yy2arr2 { 41611 r.WriteArrayElem() 41612 if false { 41613 } else { 41614 if z.EncBasicHandle().StringToRaw { 41615 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41616 } else { 41617 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41618 } 41619 } 41620 } else { 41621 r.WriteMapElemKey() 41622 if z.IsJSONHandle() { 41623 z.WriteStr("\"Region\"") 41624 } else { 41625 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 41626 } 41627 r.WriteMapElemValue() 41628 if false { 41629 } else { 41630 if z.EncBasicHandle().StringToRaw { 41631 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41632 } else { 41633 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41634 } 41635 } 41636 } 41637 if yyr2 || yy2arr2 { 41638 r.WriteArrayElem() 41639 if false { 41640 } else { 41641 if z.EncBasicHandle().StringToRaw { 41642 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41643 } else { 41644 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41645 } 41646 } 41647 } else { 41648 r.WriteMapElemKey() 41649 if z.IsJSONHandle() { 41650 z.WriteStr("\"Namespace\"") 41651 } else { 41652 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 41653 } 41654 r.WriteMapElemValue() 41655 if false { 41656 } else { 41657 if z.EncBasicHandle().StringToRaw { 41658 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 41659 } else { 41660 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 41661 } 41662 } 41663 } 41664 if yyr2 || yy2arr2 { 41665 r.WriteArrayElem() 41666 if false { 41667 } else { 41668 if z.EncBasicHandle().StringToRaw { 41669 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41670 } else { 41671 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41672 } 41673 } 41674 } else { 41675 r.WriteMapElemKey() 41676 if z.IsJSONHandle() { 41677 z.WriteStr("\"AuthToken\"") 41678 } else { 41679 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 41680 } 41681 r.WriteMapElemValue() 41682 if false { 41683 } else { 41684 if z.EncBasicHandle().StringToRaw { 41685 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 41686 } else { 41687 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 41688 } 41689 } 41690 } 41691 if yyr2 || yy2arr2 { 41692 r.WriteArrayElem() 41693 if false { 41694 } else { 41695 r.EncodeBool(bool(x.Forwarded)) 41696 } 41697 } else { 41698 r.WriteMapElemKey() 41699 if z.IsJSONHandle() { 41700 z.WriteStr("\"Forwarded\"") 41701 } else { 41702 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 41703 } 41704 r.WriteMapElemValue() 41705 if false { 41706 } else { 41707 r.EncodeBool(bool(x.Forwarded)) 41708 } 41709 } 41710 if yyr2 || yy2arr2 { 41711 r.WriteArrayEnd() 41712 } else { 41713 r.WriteMapEnd() 41714 } 41715 } 41716 } 41717 } 41718 41719 func (x *EvalDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 41720 var h codecSelfer100 41721 z, r := codec1978.GenHelperDecoder(d) 41722 _, _, _ = h, z, r 41723 if false { 41724 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41725 z.DecExtension(x, yyxt1) 41726 } else { 41727 yyct2 := r.ContainerType() 41728 if yyct2 == codecSelferValueTypeMap100 { 41729 yyl2 := r.ReadMapStart() 41730 if yyl2 == 0 { 41731 r.ReadMapEnd() 41732 } else { 41733 x.codecDecodeSelfFromMap(yyl2, d) 41734 } 41735 } else if yyct2 == codecSelferValueTypeArray100 { 41736 yyl2 := r.ReadArrayStart() 41737 if yyl2 == 0 { 41738 r.ReadArrayEnd() 41739 } else { 41740 x.codecDecodeSelfFromArray(yyl2, d) 41741 } 41742 } else { 41743 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 41744 } 41745 } 41746 } 41747 41748 func (x *EvalDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 41749 var h codecSelfer100 41750 z, r := codec1978.GenHelperDecoder(d) 41751 _, _, _ = h, z, r 41752 var yyhl3 bool = l >= 0 41753 for yyj3 := 0; ; yyj3++ { 41754 if yyhl3 { 41755 if yyj3 >= l { 41756 break 41757 } 41758 } else { 41759 if r.CheckBreak() { 41760 break 41761 } 41762 } 41763 r.ReadMapElemKey() 41764 yys3 := z.StringView(r.DecodeStringAsBytes()) 41765 r.ReadMapElemValue() 41766 switch yys3 { 41767 case "Evals": 41768 if r.TryDecodeAsNil() { 41769 x.Evals = nil 41770 } else { 41771 if false { 41772 } else { 41773 z.F.DecSliceStringX(&x.Evals, d) 41774 } 41775 } 41776 case "Allocs": 41777 if r.TryDecodeAsNil() { 41778 x.Allocs = nil 41779 } else { 41780 if false { 41781 } else { 41782 z.F.DecSliceStringX(&x.Allocs, d) 41783 } 41784 } 41785 case "Region": 41786 if r.TryDecodeAsNil() { 41787 x.WriteRequest.Region = "" 41788 } else { 41789 x.Region = (string)(r.DecodeString()) 41790 } 41791 case "Namespace": 41792 if r.TryDecodeAsNil() { 41793 x.WriteRequest.Namespace = "" 41794 } else { 41795 x.Namespace = (string)(r.DecodeString()) 41796 } 41797 case "AuthToken": 41798 if r.TryDecodeAsNil() { 41799 x.WriteRequest.AuthToken = "" 41800 } else { 41801 x.AuthToken = (string)(r.DecodeString()) 41802 } 41803 case "Forwarded": 41804 if r.TryDecodeAsNil() { 41805 x.WriteRequest.InternalRpcInfo.Forwarded = false 41806 } else { 41807 x.Forwarded = (bool)(r.DecodeBool()) 41808 } 41809 default: 41810 z.DecStructFieldNotFound(-1, yys3) 41811 } // end switch yys3 41812 } // end for yyj3 41813 r.ReadMapEnd() 41814 } 41815 41816 func (x *EvalDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 41817 var h codecSelfer100 41818 z, r := codec1978.GenHelperDecoder(d) 41819 _, _, _ = h, z, r 41820 var yyj12 int 41821 var yyb12 bool 41822 var yyhl12 bool = l >= 0 41823 yyj12++ 41824 if yyhl12 { 41825 yyb12 = yyj12 > l 41826 } else { 41827 yyb12 = r.CheckBreak() 41828 } 41829 if yyb12 { 41830 r.ReadArrayEnd() 41831 return 41832 } 41833 r.ReadArrayElem() 41834 if r.TryDecodeAsNil() { 41835 x.Evals = nil 41836 } else { 41837 if false { 41838 } else { 41839 z.F.DecSliceStringX(&x.Evals, d) 41840 } 41841 } 41842 yyj12++ 41843 if yyhl12 { 41844 yyb12 = yyj12 > l 41845 } else { 41846 yyb12 = r.CheckBreak() 41847 } 41848 if yyb12 { 41849 r.ReadArrayEnd() 41850 return 41851 } 41852 r.ReadArrayElem() 41853 if r.TryDecodeAsNil() { 41854 x.Allocs = nil 41855 } else { 41856 if false { 41857 } else { 41858 z.F.DecSliceStringX(&x.Allocs, d) 41859 } 41860 } 41861 yyj12++ 41862 if yyhl12 { 41863 yyb12 = yyj12 > l 41864 } else { 41865 yyb12 = r.CheckBreak() 41866 } 41867 if yyb12 { 41868 r.ReadArrayEnd() 41869 return 41870 } 41871 r.ReadArrayElem() 41872 if r.TryDecodeAsNil() { 41873 x.WriteRequest.Region = "" 41874 } else { 41875 x.Region = (string)(r.DecodeString()) 41876 } 41877 yyj12++ 41878 if yyhl12 { 41879 yyb12 = yyj12 > l 41880 } else { 41881 yyb12 = r.CheckBreak() 41882 } 41883 if yyb12 { 41884 r.ReadArrayEnd() 41885 return 41886 } 41887 r.ReadArrayElem() 41888 if r.TryDecodeAsNil() { 41889 x.WriteRequest.Namespace = "" 41890 } else { 41891 x.Namespace = (string)(r.DecodeString()) 41892 } 41893 yyj12++ 41894 if yyhl12 { 41895 yyb12 = yyj12 > l 41896 } else { 41897 yyb12 = r.CheckBreak() 41898 } 41899 if yyb12 { 41900 r.ReadArrayEnd() 41901 return 41902 } 41903 r.ReadArrayElem() 41904 if r.TryDecodeAsNil() { 41905 x.WriteRequest.AuthToken = "" 41906 } else { 41907 x.AuthToken = (string)(r.DecodeString()) 41908 } 41909 yyj12++ 41910 if yyhl12 { 41911 yyb12 = yyj12 > l 41912 } else { 41913 yyb12 = r.CheckBreak() 41914 } 41915 if yyb12 { 41916 r.ReadArrayEnd() 41917 return 41918 } 41919 r.ReadArrayElem() 41920 if r.TryDecodeAsNil() { 41921 x.WriteRequest.InternalRpcInfo.Forwarded = false 41922 } else { 41923 x.Forwarded = (bool)(r.DecodeBool()) 41924 } 41925 for { 41926 yyj12++ 41927 if yyhl12 { 41928 yyb12 = yyj12 > l 41929 } else { 41930 yyb12 = r.CheckBreak() 41931 } 41932 if yyb12 { 41933 break 41934 } 41935 r.ReadArrayElem() 41936 z.DecStructFieldNotFound(yyj12-1, "") 41937 } 41938 r.ReadArrayEnd() 41939 } 41940 41941 func (x *EvalSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 41942 var h codecSelfer100 41943 z, r := codec1978.GenHelperEncoder(e) 41944 _, _, _ = h, z, r 41945 if x == nil { 41946 r.EncodeNil() 41947 } else { 41948 if false { 41949 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 41950 z.EncExtension(x, yyxt1) 41951 } else { 41952 yysep2 := !z.EncBinary() 41953 yy2arr2 := z.EncBasicHandle().StructToArray 41954 _, _ = yysep2, yy2arr2 41955 const yyr2 bool = false // struct tag has 'toArray' 41956 if yyr2 || yy2arr2 { 41957 r.WriteArrayStart(9) 41958 } else { 41959 r.WriteMapStart(9) 41960 } 41961 if yyr2 || yy2arr2 { 41962 r.WriteArrayElem() 41963 if false { 41964 } else { 41965 if z.EncBasicHandle().StringToRaw { 41966 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 41967 } else { 41968 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 41969 } 41970 } 41971 } else { 41972 r.WriteMapElemKey() 41973 if z.IsJSONHandle() { 41974 z.WriteStr("\"EvalID\"") 41975 } else { 41976 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 41977 } 41978 r.WriteMapElemValue() 41979 if false { 41980 } else { 41981 if z.EncBasicHandle().StringToRaw { 41982 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 41983 } else { 41984 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 41985 } 41986 } 41987 } 41988 if yyr2 || yy2arr2 { 41989 r.WriteArrayElem() 41990 if false { 41991 } else { 41992 if z.EncBasicHandle().StringToRaw { 41993 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 41994 } else { 41995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 41996 } 41997 } 41998 } else { 41999 r.WriteMapElemKey() 42000 if z.IsJSONHandle() { 42001 z.WriteStr("\"Region\"") 42002 } else { 42003 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 42004 } 42005 r.WriteMapElemValue() 42006 if false { 42007 } else { 42008 if z.EncBasicHandle().StringToRaw { 42009 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42010 } else { 42011 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42012 } 42013 } 42014 } 42015 if yyr2 || yy2arr2 { 42016 r.WriteArrayElem() 42017 if false { 42018 } else { 42019 if z.EncBasicHandle().StringToRaw { 42020 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42021 } else { 42022 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42023 } 42024 } 42025 } else { 42026 r.WriteMapElemKey() 42027 if z.IsJSONHandle() { 42028 z.WriteStr("\"Namespace\"") 42029 } else { 42030 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 42031 } 42032 r.WriteMapElemValue() 42033 if false { 42034 } else { 42035 if z.EncBasicHandle().StringToRaw { 42036 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42037 } else { 42038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42039 } 42040 } 42041 } 42042 if yyr2 || yy2arr2 { 42043 r.WriteArrayElem() 42044 if false { 42045 } else { 42046 r.EncodeUint(uint64(x.MinQueryIndex)) 42047 } 42048 } else { 42049 r.WriteMapElemKey() 42050 if z.IsJSONHandle() { 42051 z.WriteStr("\"MinQueryIndex\"") 42052 } else { 42053 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 42054 } 42055 r.WriteMapElemValue() 42056 if false { 42057 } else { 42058 r.EncodeUint(uint64(x.MinQueryIndex)) 42059 } 42060 } 42061 if yyr2 || yy2arr2 { 42062 r.WriteArrayElem() 42063 if false { 42064 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 42065 z.EncExtension(x.MaxQueryTime, yyxt16) 42066 } else { 42067 r.EncodeInt(int64(x.MaxQueryTime)) 42068 } 42069 } else { 42070 r.WriteMapElemKey() 42071 if z.IsJSONHandle() { 42072 z.WriteStr("\"MaxQueryTime\"") 42073 } else { 42074 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 42075 } 42076 r.WriteMapElemValue() 42077 if false { 42078 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 42079 z.EncExtension(x.MaxQueryTime, yyxt17) 42080 } else { 42081 r.EncodeInt(int64(x.MaxQueryTime)) 42082 } 42083 } 42084 if yyr2 || yy2arr2 { 42085 r.WriteArrayElem() 42086 if false { 42087 } else { 42088 r.EncodeBool(bool(x.AllowStale)) 42089 } 42090 } else { 42091 r.WriteMapElemKey() 42092 if z.IsJSONHandle() { 42093 z.WriteStr("\"AllowStale\"") 42094 } else { 42095 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 42096 } 42097 r.WriteMapElemValue() 42098 if false { 42099 } else { 42100 r.EncodeBool(bool(x.AllowStale)) 42101 } 42102 } 42103 if yyr2 || yy2arr2 { 42104 r.WriteArrayElem() 42105 if false { 42106 } else { 42107 if z.EncBasicHandle().StringToRaw { 42108 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 42109 } else { 42110 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 42111 } 42112 } 42113 } else { 42114 r.WriteMapElemKey() 42115 if z.IsJSONHandle() { 42116 z.WriteStr("\"Prefix\"") 42117 } else { 42118 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 42119 } 42120 r.WriteMapElemValue() 42121 if false { 42122 } else { 42123 if z.EncBasicHandle().StringToRaw { 42124 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 42125 } else { 42126 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 42127 } 42128 } 42129 } 42130 if yyr2 || yy2arr2 { 42131 r.WriteArrayElem() 42132 if false { 42133 } else { 42134 if z.EncBasicHandle().StringToRaw { 42135 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42136 } else { 42137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42138 } 42139 } 42140 } else { 42141 r.WriteMapElemKey() 42142 if z.IsJSONHandle() { 42143 z.WriteStr("\"AuthToken\"") 42144 } else { 42145 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 42146 } 42147 r.WriteMapElemValue() 42148 if false { 42149 } else { 42150 if z.EncBasicHandle().StringToRaw { 42151 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42152 } else { 42153 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42154 } 42155 } 42156 } 42157 if yyr2 || yy2arr2 { 42158 r.WriteArrayElem() 42159 if false { 42160 } else { 42161 r.EncodeBool(bool(x.Forwarded)) 42162 } 42163 } else { 42164 r.WriteMapElemKey() 42165 if z.IsJSONHandle() { 42166 z.WriteStr("\"Forwarded\"") 42167 } else { 42168 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 42169 } 42170 r.WriteMapElemValue() 42171 if false { 42172 } else { 42173 r.EncodeBool(bool(x.Forwarded)) 42174 } 42175 } 42176 if yyr2 || yy2arr2 { 42177 r.WriteArrayEnd() 42178 } else { 42179 r.WriteMapEnd() 42180 } 42181 } 42182 } 42183 } 42184 42185 func (x *EvalSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 42186 var h codecSelfer100 42187 z, r := codec1978.GenHelperDecoder(d) 42188 _, _, _ = h, z, r 42189 if false { 42190 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42191 z.DecExtension(x, yyxt1) 42192 } else { 42193 yyct2 := r.ContainerType() 42194 if yyct2 == codecSelferValueTypeMap100 { 42195 yyl2 := r.ReadMapStart() 42196 if yyl2 == 0 { 42197 r.ReadMapEnd() 42198 } else { 42199 x.codecDecodeSelfFromMap(yyl2, d) 42200 } 42201 } else if yyct2 == codecSelferValueTypeArray100 { 42202 yyl2 := r.ReadArrayStart() 42203 if yyl2 == 0 { 42204 r.ReadArrayEnd() 42205 } else { 42206 x.codecDecodeSelfFromArray(yyl2, d) 42207 } 42208 } else { 42209 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 42210 } 42211 } 42212 } 42213 42214 func (x *EvalSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 42215 var h codecSelfer100 42216 z, r := codec1978.GenHelperDecoder(d) 42217 _, _, _ = h, z, r 42218 var yyhl3 bool = l >= 0 42219 for yyj3 := 0; ; yyj3++ { 42220 if yyhl3 { 42221 if yyj3 >= l { 42222 break 42223 } 42224 } else { 42225 if r.CheckBreak() { 42226 break 42227 } 42228 } 42229 r.ReadMapElemKey() 42230 yys3 := z.StringView(r.DecodeStringAsBytes()) 42231 r.ReadMapElemValue() 42232 switch yys3 { 42233 case "EvalID": 42234 if r.TryDecodeAsNil() { 42235 x.EvalID = "" 42236 } else { 42237 x.EvalID = (string)(r.DecodeString()) 42238 } 42239 case "Region": 42240 if r.TryDecodeAsNil() { 42241 x.QueryOptions.Region = "" 42242 } else { 42243 x.Region = (string)(r.DecodeString()) 42244 } 42245 case "Namespace": 42246 if r.TryDecodeAsNil() { 42247 x.QueryOptions.Namespace = "" 42248 } else { 42249 x.Namespace = (string)(r.DecodeString()) 42250 } 42251 case "MinQueryIndex": 42252 if r.TryDecodeAsNil() { 42253 x.QueryOptions.MinQueryIndex = 0 42254 } else { 42255 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 42256 } 42257 case "MaxQueryTime": 42258 if r.TryDecodeAsNil() { 42259 x.QueryOptions.MaxQueryTime = 0 42260 } else { 42261 if false { 42262 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 42263 z.DecExtension(x.MaxQueryTime, yyxt9) 42264 } else { 42265 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 42266 } 42267 } 42268 case "AllowStale": 42269 if r.TryDecodeAsNil() { 42270 x.QueryOptions.AllowStale = false 42271 } else { 42272 x.AllowStale = (bool)(r.DecodeBool()) 42273 } 42274 case "Prefix": 42275 if r.TryDecodeAsNil() { 42276 x.QueryOptions.Prefix = "" 42277 } else { 42278 x.Prefix = (string)(r.DecodeString()) 42279 } 42280 case "AuthToken": 42281 if r.TryDecodeAsNil() { 42282 x.QueryOptions.AuthToken = "" 42283 } else { 42284 x.AuthToken = (string)(r.DecodeString()) 42285 } 42286 case "Forwarded": 42287 if r.TryDecodeAsNil() { 42288 x.QueryOptions.InternalRpcInfo.Forwarded = false 42289 } else { 42290 x.Forwarded = (bool)(r.DecodeBool()) 42291 } 42292 default: 42293 z.DecStructFieldNotFound(-1, yys3) 42294 } // end switch yys3 42295 } // end for yyj3 42296 r.ReadMapEnd() 42297 } 42298 42299 func (x *EvalSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 42300 var h codecSelfer100 42301 z, r := codec1978.GenHelperDecoder(d) 42302 _, _, _ = h, z, r 42303 var yyj14 int 42304 var yyb14 bool 42305 var yyhl14 bool = l >= 0 42306 yyj14++ 42307 if yyhl14 { 42308 yyb14 = yyj14 > l 42309 } else { 42310 yyb14 = r.CheckBreak() 42311 } 42312 if yyb14 { 42313 r.ReadArrayEnd() 42314 return 42315 } 42316 r.ReadArrayElem() 42317 if r.TryDecodeAsNil() { 42318 x.EvalID = "" 42319 } else { 42320 x.EvalID = (string)(r.DecodeString()) 42321 } 42322 yyj14++ 42323 if yyhl14 { 42324 yyb14 = yyj14 > l 42325 } else { 42326 yyb14 = r.CheckBreak() 42327 } 42328 if yyb14 { 42329 r.ReadArrayEnd() 42330 return 42331 } 42332 r.ReadArrayElem() 42333 if r.TryDecodeAsNil() { 42334 x.QueryOptions.Region = "" 42335 } else { 42336 x.Region = (string)(r.DecodeString()) 42337 } 42338 yyj14++ 42339 if yyhl14 { 42340 yyb14 = yyj14 > l 42341 } else { 42342 yyb14 = r.CheckBreak() 42343 } 42344 if yyb14 { 42345 r.ReadArrayEnd() 42346 return 42347 } 42348 r.ReadArrayElem() 42349 if r.TryDecodeAsNil() { 42350 x.QueryOptions.Namespace = "" 42351 } else { 42352 x.Namespace = (string)(r.DecodeString()) 42353 } 42354 yyj14++ 42355 if yyhl14 { 42356 yyb14 = yyj14 > l 42357 } else { 42358 yyb14 = r.CheckBreak() 42359 } 42360 if yyb14 { 42361 r.ReadArrayEnd() 42362 return 42363 } 42364 r.ReadArrayElem() 42365 if r.TryDecodeAsNil() { 42366 x.QueryOptions.MinQueryIndex = 0 42367 } else { 42368 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 42369 } 42370 yyj14++ 42371 if yyhl14 { 42372 yyb14 = yyj14 > l 42373 } else { 42374 yyb14 = r.CheckBreak() 42375 } 42376 if yyb14 { 42377 r.ReadArrayEnd() 42378 return 42379 } 42380 r.ReadArrayElem() 42381 if r.TryDecodeAsNil() { 42382 x.QueryOptions.MaxQueryTime = 0 42383 } else { 42384 if false { 42385 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 42386 z.DecExtension(x.MaxQueryTime, yyxt20) 42387 } else { 42388 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 42389 } 42390 } 42391 yyj14++ 42392 if yyhl14 { 42393 yyb14 = yyj14 > l 42394 } else { 42395 yyb14 = r.CheckBreak() 42396 } 42397 if yyb14 { 42398 r.ReadArrayEnd() 42399 return 42400 } 42401 r.ReadArrayElem() 42402 if r.TryDecodeAsNil() { 42403 x.QueryOptions.AllowStale = false 42404 } else { 42405 x.AllowStale = (bool)(r.DecodeBool()) 42406 } 42407 yyj14++ 42408 if yyhl14 { 42409 yyb14 = yyj14 > l 42410 } else { 42411 yyb14 = r.CheckBreak() 42412 } 42413 if yyb14 { 42414 r.ReadArrayEnd() 42415 return 42416 } 42417 r.ReadArrayElem() 42418 if r.TryDecodeAsNil() { 42419 x.QueryOptions.Prefix = "" 42420 } else { 42421 x.Prefix = (string)(r.DecodeString()) 42422 } 42423 yyj14++ 42424 if yyhl14 { 42425 yyb14 = yyj14 > l 42426 } else { 42427 yyb14 = r.CheckBreak() 42428 } 42429 if yyb14 { 42430 r.ReadArrayEnd() 42431 return 42432 } 42433 r.ReadArrayElem() 42434 if r.TryDecodeAsNil() { 42435 x.QueryOptions.AuthToken = "" 42436 } else { 42437 x.AuthToken = (string)(r.DecodeString()) 42438 } 42439 yyj14++ 42440 if yyhl14 { 42441 yyb14 = yyj14 > l 42442 } else { 42443 yyb14 = r.CheckBreak() 42444 } 42445 if yyb14 { 42446 r.ReadArrayEnd() 42447 return 42448 } 42449 r.ReadArrayElem() 42450 if r.TryDecodeAsNil() { 42451 x.QueryOptions.InternalRpcInfo.Forwarded = false 42452 } else { 42453 x.Forwarded = (bool)(r.DecodeBool()) 42454 } 42455 for { 42456 yyj14++ 42457 if yyhl14 { 42458 yyb14 = yyj14 > l 42459 } else { 42460 yyb14 = r.CheckBreak() 42461 } 42462 if yyb14 { 42463 break 42464 } 42465 r.ReadArrayElem() 42466 z.DecStructFieldNotFound(yyj14-1, "") 42467 } 42468 r.ReadArrayEnd() 42469 } 42470 42471 func (x *EvalAckRequest) CodecEncodeSelf(e *codec1978.Encoder) { 42472 var h codecSelfer100 42473 z, r := codec1978.GenHelperEncoder(e) 42474 _, _, _ = h, z, r 42475 if x == nil { 42476 r.EncodeNil() 42477 } else { 42478 if false { 42479 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42480 z.EncExtension(x, yyxt1) 42481 } else { 42482 yysep2 := !z.EncBinary() 42483 yy2arr2 := z.EncBasicHandle().StructToArray 42484 _, _ = yysep2, yy2arr2 42485 const yyr2 bool = false // struct tag has 'toArray' 42486 if yyr2 || yy2arr2 { 42487 r.WriteArrayStart(6) 42488 } else { 42489 r.WriteMapStart(6) 42490 } 42491 if yyr2 || yy2arr2 { 42492 r.WriteArrayElem() 42493 if false { 42494 } else { 42495 if z.EncBasicHandle().StringToRaw { 42496 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 42497 } else { 42498 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 42499 } 42500 } 42501 } else { 42502 r.WriteMapElemKey() 42503 if z.IsJSONHandle() { 42504 z.WriteStr("\"EvalID\"") 42505 } else { 42506 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 42507 } 42508 r.WriteMapElemValue() 42509 if false { 42510 } else { 42511 if z.EncBasicHandle().StringToRaw { 42512 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 42513 } else { 42514 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 42515 } 42516 } 42517 } 42518 if yyr2 || yy2arr2 { 42519 r.WriteArrayElem() 42520 if false { 42521 } else { 42522 if z.EncBasicHandle().StringToRaw { 42523 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 42524 } else { 42525 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 42526 } 42527 } 42528 } else { 42529 r.WriteMapElemKey() 42530 if z.IsJSONHandle() { 42531 z.WriteStr("\"Token\"") 42532 } else { 42533 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 42534 } 42535 r.WriteMapElemValue() 42536 if false { 42537 } else { 42538 if z.EncBasicHandle().StringToRaw { 42539 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 42540 } else { 42541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 42542 } 42543 } 42544 } 42545 if yyr2 || yy2arr2 { 42546 r.WriteArrayElem() 42547 if false { 42548 } else { 42549 if z.EncBasicHandle().StringToRaw { 42550 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42551 } else { 42552 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42553 } 42554 } 42555 } else { 42556 r.WriteMapElemKey() 42557 if z.IsJSONHandle() { 42558 z.WriteStr("\"Region\"") 42559 } else { 42560 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 42561 } 42562 r.WriteMapElemValue() 42563 if false { 42564 } else { 42565 if z.EncBasicHandle().StringToRaw { 42566 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42567 } else { 42568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42569 } 42570 } 42571 } 42572 if yyr2 || yy2arr2 { 42573 r.WriteArrayElem() 42574 if false { 42575 } else { 42576 if z.EncBasicHandle().StringToRaw { 42577 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42578 } else { 42579 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42580 } 42581 } 42582 } else { 42583 r.WriteMapElemKey() 42584 if z.IsJSONHandle() { 42585 z.WriteStr("\"Namespace\"") 42586 } else { 42587 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 42588 } 42589 r.WriteMapElemValue() 42590 if false { 42591 } else { 42592 if z.EncBasicHandle().StringToRaw { 42593 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42594 } else { 42595 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42596 } 42597 } 42598 } 42599 if yyr2 || yy2arr2 { 42600 r.WriteArrayElem() 42601 if false { 42602 } else { 42603 if z.EncBasicHandle().StringToRaw { 42604 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42605 } else { 42606 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42607 } 42608 } 42609 } else { 42610 r.WriteMapElemKey() 42611 if z.IsJSONHandle() { 42612 z.WriteStr("\"AuthToken\"") 42613 } else { 42614 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 42615 } 42616 r.WriteMapElemValue() 42617 if false { 42618 } else { 42619 if z.EncBasicHandle().StringToRaw { 42620 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 42621 } else { 42622 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 42623 } 42624 } 42625 } 42626 if yyr2 || yy2arr2 { 42627 r.WriteArrayElem() 42628 if false { 42629 } else { 42630 r.EncodeBool(bool(x.Forwarded)) 42631 } 42632 } else { 42633 r.WriteMapElemKey() 42634 if z.IsJSONHandle() { 42635 z.WriteStr("\"Forwarded\"") 42636 } else { 42637 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 42638 } 42639 r.WriteMapElemValue() 42640 if false { 42641 } else { 42642 r.EncodeBool(bool(x.Forwarded)) 42643 } 42644 } 42645 if yyr2 || yy2arr2 { 42646 r.WriteArrayEnd() 42647 } else { 42648 r.WriteMapEnd() 42649 } 42650 } 42651 } 42652 } 42653 42654 func (x *EvalAckRequest) CodecDecodeSelf(d *codec1978.Decoder) { 42655 var h codecSelfer100 42656 z, r := codec1978.GenHelperDecoder(d) 42657 _, _, _ = h, z, r 42658 if false { 42659 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42660 z.DecExtension(x, yyxt1) 42661 } else { 42662 yyct2 := r.ContainerType() 42663 if yyct2 == codecSelferValueTypeMap100 { 42664 yyl2 := r.ReadMapStart() 42665 if yyl2 == 0 { 42666 r.ReadMapEnd() 42667 } else { 42668 x.codecDecodeSelfFromMap(yyl2, d) 42669 } 42670 } else if yyct2 == codecSelferValueTypeArray100 { 42671 yyl2 := r.ReadArrayStart() 42672 if yyl2 == 0 { 42673 r.ReadArrayEnd() 42674 } else { 42675 x.codecDecodeSelfFromArray(yyl2, d) 42676 } 42677 } else { 42678 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 42679 } 42680 } 42681 } 42682 42683 func (x *EvalAckRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 42684 var h codecSelfer100 42685 z, r := codec1978.GenHelperDecoder(d) 42686 _, _, _ = h, z, r 42687 var yyhl3 bool = l >= 0 42688 for yyj3 := 0; ; yyj3++ { 42689 if yyhl3 { 42690 if yyj3 >= l { 42691 break 42692 } 42693 } else { 42694 if r.CheckBreak() { 42695 break 42696 } 42697 } 42698 r.ReadMapElemKey() 42699 yys3 := z.StringView(r.DecodeStringAsBytes()) 42700 r.ReadMapElemValue() 42701 switch yys3 { 42702 case "EvalID": 42703 if r.TryDecodeAsNil() { 42704 x.EvalID = "" 42705 } else { 42706 x.EvalID = (string)(r.DecodeString()) 42707 } 42708 case "Token": 42709 if r.TryDecodeAsNil() { 42710 x.Token = "" 42711 } else { 42712 x.Token = (string)(r.DecodeString()) 42713 } 42714 case "Region": 42715 if r.TryDecodeAsNil() { 42716 x.WriteRequest.Region = "" 42717 } else { 42718 x.Region = (string)(r.DecodeString()) 42719 } 42720 case "Namespace": 42721 if r.TryDecodeAsNil() { 42722 x.WriteRequest.Namespace = "" 42723 } else { 42724 x.Namespace = (string)(r.DecodeString()) 42725 } 42726 case "AuthToken": 42727 if r.TryDecodeAsNil() { 42728 x.WriteRequest.AuthToken = "" 42729 } else { 42730 x.AuthToken = (string)(r.DecodeString()) 42731 } 42732 case "Forwarded": 42733 if r.TryDecodeAsNil() { 42734 x.WriteRequest.InternalRpcInfo.Forwarded = false 42735 } else { 42736 x.Forwarded = (bool)(r.DecodeBool()) 42737 } 42738 default: 42739 z.DecStructFieldNotFound(-1, yys3) 42740 } // end switch yys3 42741 } // end for yyj3 42742 r.ReadMapEnd() 42743 } 42744 42745 func (x *EvalAckRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 42746 var h codecSelfer100 42747 z, r := codec1978.GenHelperDecoder(d) 42748 _, _, _ = h, z, r 42749 var yyj10 int 42750 var yyb10 bool 42751 var yyhl10 bool = l >= 0 42752 yyj10++ 42753 if yyhl10 { 42754 yyb10 = yyj10 > l 42755 } else { 42756 yyb10 = r.CheckBreak() 42757 } 42758 if yyb10 { 42759 r.ReadArrayEnd() 42760 return 42761 } 42762 r.ReadArrayElem() 42763 if r.TryDecodeAsNil() { 42764 x.EvalID = "" 42765 } else { 42766 x.EvalID = (string)(r.DecodeString()) 42767 } 42768 yyj10++ 42769 if yyhl10 { 42770 yyb10 = yyj10 > l 42771 } else { 42772 yyb10 = r.CheckBreak() 42773 } 42774 if yyb10 { 42775 r.ReadArrayEnd() 42776 return 42777 } 42778 r.ReadArrayElem() 42779 if r.TryDecodeAsNil() { 42780 x.Token = "" 42781 } else { 42782 x.Token = (string)(r.DecodeString()) 42783 } 42784 yyj10++ 42785 if yyhl10 { 42786 yyb10 = yyj10 > l 42787 } else { 42788 yyb10 = r.CheckBreak() 42789 } 42790 if yyb10 { 42791 r.ReadArrayEnd() 42792 return 42793 } 42794 r.ReadArrayElem() 42795 if r.TryDecodeAsNil() { 42796 x.WriteRequest.Region = "" 42797 } else { 42798 x.Region = (string)(r.DecodeString()) 42799 } 42800 yyj10++ 42801 if yyhl10 { 42802 yyb10 = yyj10 > l 42803 } else { 42804 yyb10 = r.CheckBreak() 42805 } 42806 if yyb10 { 42807 r.ReadArrayEnd() 42808 return 42809 } 42810 r.ReadArrayElem() 42811 if r.TryDecodeAsNil() { 42812 x.WriteRequest.Namespace = "" 42813 } else { 42814 x.Namespace = (string)(r.DecodeString()) 42815 } 42816 yyj10++ 42817 if yyhl10 { 42818 yyb10 = yyj10 > l 42819 } else { 42820 yyb10 = r.CheckBreak() 42821 } 42822 if yyb10 { 42823 r.ReadArrayEnd() 42824 return 42825 } 42826 r.ReadArrayElem() 42827 if r.TryDecodeAsNil() { 42828 x.WriteRequest.AuthToken = "" 42829 } else { 42830 x.AuthToken = (string)(r.DecodeString()) 42831 } 42832 yyj10++ 42833 if yyhl10 { 42834 yyb10 = yyj10 > l 42835 } else { 42836 yyb10 = r.CheckBreak() 42837 } 42838 if yyb10 { 42839 r.ReadArrayEnd() 42840 return 42841 } 42842 r.ReadArrayElem() 42843 if r.TryDecodeAsNil() { 42844 x.WriteRequest.InternalRpcInfo.Forwarded = false 42845 } else { 42846 x.Forwarded = (bool)(r.DecodeBool()) 42847 } 42848 for { 42849 yyj10++ 42850 if yyhl10 { 42851 yyb10 = yyj10 > l 42852 } else { 42853 yyb10 = r.CheckBreak() 42854 } 42855 if yyb10 { 42856 break 42857 } 42858 r.ReadArrayElem() 42859 z.DecStructFieldNotFound(yyj10-1, "") 42860 } 42861 r.ReadArrayEnd() 42862 } 42863 42864 func (x *EvalDequeueRequest) CodecEncodeSelf(e *codec1978.Encoder) { 42865 var h codecSelfer100 42866 z, r := codec1978.GenHelperEncoder(e) 42867 _, _, _ = h, z, r 42868 if x == nil { 42869 r.EncodeNil() 42870 } else { 42871 if false { 42872 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 42873 z.EncExtension(x, yyxt1) 42874 } else { 42875 yysep2 := !z.EncBinary() 42876 yy2arr2 := z.EncBasicHandle().StructToArray 42877 _, _ = yysep2, yy2arr2 42878 const yyr2 bool = false // struct tag has 'toArray' 42879 if yyr2 || yy2arr2 { 42880 r.WriteArrayStart(7) 42881 } else { 42882 r.WriteMapStart(7) 42883 } 42884 if yyr2 || yy2arr2 { 42885 r.WriteArrayElem() 42886 if x.Schedulers == nil { 42887 r.EncodeNil() 42888 } else { 42889 if false { 42890 } else { 42891 z.F.EncSliceStringV(x.Schedulers, e) 42892 } 42893 } 42894 } else { 42895 r.WriteMapElemKey() 42896 if z.IsJSONHandle() { 42897 z.WriteStr("\"Schedulers\"") 42898 } else { 42899 r.EncodeStringEnc(codecSelferCcUTF8100, `Schedulers`) 42900 } 42901 r.WriteMapElemValue() 42902 if x.Schedulers == nil { 42903 r.EncodeNil() 42904 } else { 42905 if false { 42906 } else { 42907 z.F.EncSliceStringV(x.Schedulers, e) 42908 } 42909 } 42910 } 42911 if yyr2 || yy2arr2 { 42912 r.WriteArrayElem() 42913 if false { 42914 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { 42915 z.EncExtension(x.Timeout, yyxt7) 42916 } else { 42917 r.EncodeInt(int64(x.Timeout)) 42918 } 42919 } else { 42920 r.WriteMapElemKey() 42921 if z.IsJSONHandle() { 42922 z.WriteStr("\"Timeout\"") 42923 } else { 42924 r.EncodeStringEnc(codecSelferCcUTF8100, `Timeout`) 42925 } 42926 r.WriteMapElemValue() 42927 if false { 42928 } else if yyxt8 := z.Extension(z.I2Rtid(x.Timeout)); yyxt8 != nil { 42929 z.EncExtension(x.Timeout, yyxt8) 42930 } else { 42931 r.EncodeInt(int64(x.Timeout)) 42932 } 42933 } 42934 if yyr2 || yy2arr2 { 42935 r.WriteArrayElem() 42936 if false { 42937 } else { 42938 r.EncodeUint(uint64(x.SchedulerVersion)) 42939 } 42940 } else { 42941 r.WriteMapElemKey() 42942 if z.IsJSONHandle() { 42943 z.WriteStr("\"SchedulerVersion\"") 42944 } else { 42945 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulerVersion`) 42946 } 42947 r.WriteMapElemValue() 42948 if false { 42949 } else { 42950 r.EncodeUint(uint64(x.SchedulerVersion)) 42951 } 42952 } 42953 if yyr2 || yy2arr2 { 42954 r.WriteArrayElem() 42955 if false { 42956 } else { 42957 if z.EncBasicHandle().StringToRaw { 42958 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42959 } else { 42960 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42961 } 42962 } 42963 } else { 42964 r.WriteMapElemKey() 42965 if z.IsJSONHandle() { 42966 z.WriteStr("\"Region\"") 42967 } else { 42968 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 42969 } 42970 r.WriteMapElemValue() 42971 if false { 42972 } else { 42973 if z.EncBasicHandle().StringToRaw { 42974 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 42975 } else { 42976 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 42977 } 42978 } 42979 } 42980 if yyr2 || yy2arr2 { 42981 r.WriteArrayElem() 42982 if false { 42983 } else { 42984 if z.EncBasicHandle().StringToRaw { 42985 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 42986 } else { 42987 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 42988 } 42989 } 42990 } else { 42991 r.WriteMapElemKey() 42992 if z.IsJSONHandle() { 42993 z.WriteStr("\"Namespace\"") 42994 } else { 42995 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 42996 } 42997 r.WriteMapElemValue() 42998 if false { 42999 } else { 43000 if z.EncBasicHandle().StringToRaw { 43001 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43002 } else { 43003 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43004 } 43005 } 43006 } 43007 if yyr2 || yy2arr2 { 43008 r.WriteArrayElem() 43009 if false { 43010 } else { 43011 if z.EncBasicHandle().StringToRaw { 43012 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43013 } else { 43014 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43015 } 43016 } 43017 } else { 43018 r.WriteMapElemKey() 43019 if z.IsJSONHandle() { 43020 z.WriteStr("\"AuthToken\"") 43021 } else { 43022 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 43023 } 43024 r.WriteMapElemValue() 43025 if false { 43026 } else { 43027 if z.EncBasicHandle().StringToRaw { 43028 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43029 } else { 43030 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43031 } 43032 } 43033 } 43034 if yyr2 || yy2arr2 { 43035 r.WriteArrayElem() 43036 if false { 43037 } else { 43038 r.EncodeBool(bool(x.Forwarded)) 43039 } 43040 } else { 43041 r.WriteMapElemKey() 43042 if z.IsJSONHandle() { 43043 z.WriteStr("\"Forwarded\"") 43044 } else { 43045 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 43046 } 43047 r.WriteMapElemValue() 43048 if false { 43049 } else { 43050 r.EncodeBool(bool(x.Forwarded)) 43051 } 43052 } 43053 if yyr2 || yy2arr2 { 43054 r.WriteArrayEnd() 43055 } else { 43056 r.WriteMapEnd() 43057 } 43058 } 43059 } 43060 } 43061 43062 func (x *EvalDequeueRequest) CodecDecodeSelf(d *codec1978.Decoder) { 43063 var h codecSelfer100 43064 z, r := codec1978.GenHelperDecoder(d) 43065 _, _, _ = h, z, r 43066 if false { 43067 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43068 z.DecExtension(x, yyxt1) 43069 } else { 43070 yyct2 := r.ContainerType() 43071 if yyct2 == codecSelferValueTypeMap100 { 43072 yyl2 := r.ReadMapStart() 43073 if yyl2 == 0 { 43074 r.ReadMapEnd() 43075 } else { 43076 x.codecDecodeSelfFromMap(yyl2, d) 43077 } 43078 } else if yyct2 == codecSelferValueTypeArray100 { 43079 yyl2 := r.ReadArrayStart() 43080 if yyl2 == 0 { 43081 r.ReadArrayEnd() 43082 } else { 43083 x.codecDecodeSelfFromArray(yyl2, d) 43084 } 43085 } else { 43086 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 43087 } 43088 } 43089 } 43090 43091 func (x *EvalDequeueRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 43092 var h codecSelfer100 43093 z, r := codec1978.GenHelperDecoder(d) 43094 _, _, _ = h, z, r 43095 var yyhl3 bool = l >= 0 43096 for yyj3 := 0; ; yyj3++ { 43097 if yyhl3 { 43098 if yyj3 >= l { 43099 break 43100 } 43101 } else { 43102 if r.CheckBreak() { 43103 break 43104 } 43105 } 43106 r.ReadMapElemKey() 43107 yys3 := z.StringView(r.DecodeStringAsBytes()) 43108 r.ReadMapElemValue() 43109 switch yys3 { 43110 case "Schedulers": 43111 if r.TryDecodeAsNil() { 43112 x.Schedulers = nil 43113 } else { 43114 if false { 43115 } else { 43116 z.F.DecSliceStringX(&x.Schedulers, d) 43117 } 43118 } 43119 case "Timeout": 43120 if r.TryDecodeAsNil() { 43121 x.Timeout = 0 43122 } else { 43123 if false { 43124 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timeout)); yyxt7 != nil { 43125 z.DecExtension(x.Timeout, yyxt7) 43126 } else { 43127 x.Timeout = (time.Duration)(r.DecodeInt64()) 43128 } 43129 } 43130 case "SchedulerVersion": 43131 if r.TryDecodeAsNil() { 43132 x.SchedulerVersion = 0 43133 } else { 43134 x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 43135 } 43136 case "Region": 43137 if r.TryDecodeAsNil() { 43138 x.WriteRequest.Region = "" 43139 } else { 43140 x.Region = (string)(r.DecodeString()) 43141 } 43142 case "Namespace": 43143 if r.TryDecodeAsNil() { 43144 x.WriteRequest.Namespace = "" 43145 } else { 43146 x.Namespace = (string)(r.DecodeString()) 43147 } 43148 case "AuthToken": 43149 if r.TryDecodeAsNil() { 43150 x.WriteRequest.AuthToken = "" 43151 } else { 43152 x.AuthToken = (string)(r.DecodeString()) 43153 } 43154 case "Forwarded": 43155 if r.TryDecodeAsNil() { 43156 x.WriteRequest.InternalRpcInfo.Forwarded = false 43157 } else { 43158 x.Forwarded = (bool)(r.DecodeBool()) 43159 } 43160 default: 43161 z.DecStructFieldNotFound(-1, yys3) 43162 } // end switch yys3 43163 } // end for yyj3 43164 r.ReadMapEnd() 43165 } 43166 43167 func (x *EvalDequeueRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 43168 var h codecSelfer100 43169 z, r := codec1978.GenHelperDecoder(d) 43170 _, _, _ = h, z, r 43171 var yyj13 int 43172 var yyb13 bool 43173 var yyhl13 bool = l >= 0 43174 yyj13++ 43175 if yyhl13 { 43176 yyb13 = yyj13 > l 43177 } else { 43178 yyb13 = r.CheckBreak() 43179 } 43180 if yyb13 { 43181 r.ReadArrayEnd() 43182 return 43183 } 43184 r.ReadArrayElem() 43185 if r.TryDecodeAsNil() { 43186 x.Schedulers = nil 43187 } else { 43188 if false { 43189 } else { 43190 z.F.DecSliceStringX(&x.Schedulers, d) 43191 } 43192 } 43193 yyj13++ 43194 if yyhl13 { 43195 yyb13 = yyj13 > l 43196 } else { 43197 yyb13 = r.CheckBreak() 43198 } 43199 if yyb13 { 43200 r.ReadArrayEnd() 43201 return 43202 } 43203 r.ReadArrayElem() 43204 if r.TryDecodeAsNil() { 43205 x.Timeout = 0 43206 } else { 43207 if false { 43208 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timeout)); yyxt17 != nil { 43209 z.DecExtension(x.Timeout, yyxt17) 43210 } else { 43211 x.Timeout = (time.Duration)(r.DecodeInt64()) 43212 } 43213 } 43214 yyj13++ 43215 if yyhl13 { 43216 yyb13 = yyj13 > l 43217 } else { 43218 yyb13 = r.CheckBreak() 43219 } 43220 if yyb13 { 43221 r.ReadArrayEnd() 43222 return 43223 } 43224 r.ReadArrayElem() 43225 if r.TryDecodeAsNil() { 43226 x.SchedulerVersion = 0 43227 } else { 43228 x.SchedulerVersion = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 43229 } 43230 yyj13++ 43231 if yyhl13 { 43232 yyb13 = yyj13 > l 43233 } else { 43234 yyb13 = r.CheckBreak() 43235 } 43236 if yyb13 { 43237 r.ReadArrayEnd() 43238 return 43239 } 43240 r.ReadArrayElem() 43241 if r.TryDecodeAsNil() { 43242 x.WriteRequest.Region = "" 43243 } else { 43244 x.Region = (string)(r.DecodeString()) 43245 } 43246 yyj13++ 43247 if yyhl13 { 43248 yyb13 = yyj13 > l 43249 } else { 43250 yyb13 = r.CheckBreak() 43251 } 43252 if yyb13 { 43253 r.ReadArrayEnd() 43254 return 43255 } 43256 r.ReadArrayElem() 43257 if r.TryDecodeAsNil() { 43258 x.WriteRequest.Namespace = "" 43259 } else { 43260 x.Namespace = (string)(r.DecodeString()) 43261 } 43262 yyj13++ 43263 if yyhl13 { 43264 yyb13 = yyj13 > l 43265 } else { 43266 yyb13 = r.CheckBreak() 43267 } 43268 if yyb13 { 43269 r.ReadArrayEnd() 43270 return 43271 } 43272 r.ReadArrayElem() 43273 if r.TryDecodeAsNil() { 43274 x.WriteRequest.AuthToken = "" 43275 } else { 43276 x.AuthToken = (string)(r.DecodeString()) 43277 } 43278 yyj13++ 43279 if yyhl13 { 43280 yyb13 = yyj13 > l 43281 } else { 43282 yyb13 = r.CheckBreak() 43283 } 43284 if yyb13 { 43285 r.ReadArrayEnd() 43286 return 43287 } 43288 r.ReadArrayElem() 43289 if r.TryDecodeAsNil() { 43290 x.WriteRequest.InternalRpcInfo.Forwarded = false 43291 } else { 43292 x.Forwarded = (bool)(r.DecodeBool()) 43293 } 43294 for { 43295 yyj13++ 43296 if yyhl13 { 43297 yyb13 = yyj13 > l 43298 } else { 43299 yyb13 = r.CheckBreak() 43300 } 43301 if yyb13 { 43302 break 43303 } 43304 r.ReadArrayElem() 43305 z.DecStructFieldNotFound(yyj13-1, "") 43306 } 43307 r.ReadArrayEnd() 43308 } 43309 43310 func (x *EvalListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 43311 var h codecSelfer100 43312 z, r := codec1978.GenHelperEncoder(e) 43313 _, _, _ = h, z, r 43314 if x == nil { 43315 r.EncodeNil() 43316 } else { 43317 if false { 43318 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43319 z.EncExtension(x, yyxt1) 43320 } else { 43321 yysep2 := !z.EncBinary() 43322 yy2arr2 := z.EncBasicHandle().StructToArray 43323 _, _ = yysep2, yy2arr2 43324 const yyr2 bool = false // struct tag has 'toArray' 43325 if yyr2 || yy2arr2 { 43326 r.WriteArrayStart(8) 43327 } else { 43328 r.WriteMapStart(8) 43329 } 43330 if yyr2 || yy2arr2 { 43331 r.WriteArrayElem() 43332 if false { 43333 } else { 43334 if z.EncBasicHandle().StringToRaw { 43335 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43336 } else { 43337 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43338 } 43339 } 43340 } else { 43341 r.WriteMapElemKey() 43342 if z.IsJSONHandle() { 43343 z.WriteStr("\"Region\"") 43344 } else { 43345 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 43346 } 43347 r.WriteMapElemValue() 43348 if false { 43349 } else { 43350 if z.EncBasicHandle().StringToRaw { 43351 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43352 } else { 43353 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43354 } 43355 } 43356 } 43357 if yyr2 || yy2arr2 { 43358 r.WriteArrayElem() 43359 if false { 43360 } else { 43361 if z.EncBasicHandle().StringToRaw { 43362 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43363 } else { 43364 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43365 } 43366 } 43367 } else { 43368 r.WriteMapElemKey() 43369 if z.IsJSONHandle() { 43370 z.WriteStr("\"Namespace\"") 43371 } else { 43372 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 43373 } 43374 r.WriteMapElemValue() 43375 if false { 43376 } else { 43377 if z.EncBasicHandle().StringToRaw { 43378 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43379 } else { 43380 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43381 } 43382 } 43383 } 43384 if yyr2 || yy2arr2 { 43385 r.WriteArrayElem() 43386 if false { 43387 } else { 43388 r.EncodeUint(uint64(x.MinQueryIndex)) 43389 } 43390 } else { 43391 r.WriteMapElemKey() 43392 if z.IsJSONHandle() { 43393 z.WriteStr("\"MinQueryIndex\"") 43394 } else { 43395 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 43396 } 43397 r.WriteMapElemValue() 43398 if false { 43399 } else { 43400 r.EncodeUint(uint64(x.MinQueryIndex)) 43401 } 43402 } 43403 if yyr2 || yy2arr2 { 43404 r.WriteArrayElem() 43405 if false { 43406 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 43407 z.EncExtension(x.MaxQueryTime, yyxt13) 43408 } else { 43409 r.EncodeInt(int64(x.MaxQueryTime)) 43410 } 43411 } else { 43412 r.WriteMapElemKey() 43413 if z.IsJSONHandle() { 43414 z.WriteStr("\"MaxQueryTime\"") 43415 } else { 43416 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 43417 } 43418 r.WriteMapElemValue() 43419 if false { 43420 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 43421 z.EncExtension(x.MaxQueryTime, yyxt14) 43422 } else { 43423 r.EncodeInt(int64(x.MaxQueryTime)) 43424 } 43425 } 43426 if yyr2 || yy2arr2 { 43427 r.WriteArrayElem() 43428 if false { 43429 } else { 43430 r.EncodeBool(bool(x.AllowStale)) 43431 } 43432 } else { 43433 r.WriteMapElemKey() 43434 if z.IsJSONHandle() { 43435 z.WriteStr("\"AllowStale\"") 43436 } else { 43437 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 43438 } 43439 r.WriteMapElemValue() 43440 if false { 43441 } else { 43442 r.EncodeBool(bool(x.AllowStale)) 43443 } 43444 } 43445 if yyr2 || yy2arr2 { 43446 r.WriteArrayElem() 43447 if false { 43448 } else { 43449 if z.EncBasicHandle().StringToRaw { 43450 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 43451 } else { 43452 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 43453 } 43454 } 43455 } else { 43456 r.WriteMapElemKey() 43457 if z.IsJSONHandle() { 43458 z.WriteStr("\"Prefix\"") 43459 } else { 43460 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 43461 } 43462 r.WriteMapElemValue() 43463 if false { 43464 } else { 43465 if z.EncBasicHandle().StringToRaw { 43466 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 43467 } else { 43468 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 43469 } 43470 } 43471 } 43472 if yyr2 || yy2arr2 { 43473 r.WriteArrayElem() 43474 if false { 43475 } else { 43476 if z.EncBasicHandle().StringToRaw { 43477 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43478 } else { 43479 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43480 } 43481 } 43482 } else { 43483 r.WriteMapElemKey() 43484 if z.IsJSONHandle() { 43485 z.WriteStr("\"AuthToken\"") 43486 } else { 43487 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 43488 } 43489 r.WriteMapElemValue() 43490 if false { 43491 } else { 43492 if z.EncBasicHandle().StringToRaw { 43493 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43494 } else { 43495 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43496 } 43497 } 43498 } 43499 if yyr2 || yy2arr2 { 43500 r.WriteArrayElem() 43501 if false { 43502 } else { 43503 r.EncodeBool(bool(x.Forwarded)) 43504 } 43505 } else { 43506 r.WriteMapElemKey() 43507 if z.IsJSONHandle() { 43508 z.WriteStr("\"Forwarded\"") 43509 } else { 43510 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 43511 } 43512 r.WriteMapElemValue() 43513 if false { 43514 } else { 43515 r.EncodeBool(bool(x.Forwarded)) 43516 } 43517 } 43518 if yyr2 || yy2arr2 { 43519 r.WriteArrayEnd() 43520 } else { 43521 r.WriteMapEnd() 43522 } 43523 } 43524 } 43525 } 43526 43527 func (x *EvalListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 43528 var h codecSelfer100 43529 z, r := codec1978.GenHelperDecoder(d) 43530 _, _, _ = h, z, r 43531 if false { 43532 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43533 z.DecExtension(x, yyxt1) 43534 } else { 43535 yyct2 := r.ContainerType() 43536 if yyct2 == codecSelferValueTypeMap100 { 43537 yyl2 := r.ReadMapStart() 43538 if yyl2 == 0 { 43539 r.ReadMapEnd() 43540 } else { 43541 x.codecDecodeSelfFromMap(yyl2, d) 43542 } 43543 } else if yyct2 == codecSelferValueTypeArray100 { 43544 yyl2 := r.ReadArrayStart() 43545 if yyl2 == 0 { 43546 r.ReadArrayEnd() 43547 } else { 43548 x.codecDecodeSelfFromArray(yyl2, d) 43549 } 43550 } else { 43551 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 43552 } 43553 } 43554 } 43555 43556 func (x *EvalListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 43557 var h codecSelfer100 43558 z, r := codec1978.GenHelperDecoder(d) 43559 _, _, _ = h, z, r 43560 var yyhl3 bool = l >= 0 43561 for yyj3 := 0; ; yyj3++ { 43562 if yyhl3 { 43563 if yyj3 >= l { 43564 break 43565 } 43566 } else { 43567 if r.CheckBreak() { 43568 break 43569 } 43570 } 43571 r.ReadMapElemKey() 43572 yys3 := z.StringView(r.DecodeStringAsBytes()) 43573 r.ReadMapElemValue() 43574 switch yys3 { 43575 case "Region": 43576 if r.TryDecodeAsNil() { 43577 x.QueryOptions.Region = "" 43578 } else { 43579 x.Region = (string)(r.DecodeString()) 43580 } 43581 case "Namespace": 43582 if r.TryDecodeAsNil() { 43583 x.QueryOptions.Namespace = "" 43584 } else { 43585 x.Namespace = (string)(r.DecodeString()) 43586 } 43587 case "MinQueryIndex": 43588 if r.TryDecodeAsNil() { 43589 x.QueryOptions.MinQueryIndex = 0 43590 } else { 43591 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 43592 } 43593 case "MaxQueryTime": 43594 if r.TryDecodeAsNil() { 43595 x.QueryOptions.MaxQueryTime = 0 43596 } else { 43597 if false { 43598 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 43599 z.DecExtension(x.MaxQueryTime, yyxt8) 43600 } else { 43601 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 43602 } 43603 } 43604 case "AllowStale": 43605 if r.TryDecodeAsNil() { 43606 x.QueryOptions.AllowStale = false 43607 } else { 43608 x.AllowStale = (bool)(r.DecodeBool()) 43609 } 43610 case "Prefix": 43611 if r.TryDecodeAsNil() { 43612 x.QueryOptions.Prefix = "" 43613 } else { 43614 x.Prefix = (string)(r.DecodeString()) 43615 } 43616 case "AuthToken": 43617 if r.TryDecodeAsNil() { 43618 x.QueryOptions.AuthToken = "" 43619 } else { 43620 x.AuthToken = (string)(r.DecodeString()) 43621 } 43622 case "Forwarded": 43623 if r.TryDecodeAsNil() { 43624 x.QueryOptions.InternalRpcInfo.Forwarded = false 43625 } else { 43626 x.Forwarded = (bool)(r.DecodeBool()) 43627 } 43628 default: 43629 z.DecStructFieldNotFound(-1, yys3) 43630 } // end switch yys3 43631 } // end for yyj3 43632 r.ReadMapEnd() 43633 } 43634 43635 func (x *EvalListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 43636 var h codecSelfer100 43637 z, r := codec1978.GenHelperDecoder(d) 43638 _, _, _ = h, z, r 43639 var yyj13 int 43640 var yyb13 bool 43641 var yyhl13 bool = l >= 0 43642 yyj13++ 43643 if yyhl13 { 43644 yyb13 = yyj13 > l 43645 } else { 43646 yyb13 = r.CheckBreak() 43647 } 43648 if yyb13 { 43649 r.ReadArrayEnd() 43650 return 43651 } 43652 r.ReadArrayElem() 43653 if r.TryDecodeAsNil() { 43654 x.QueryOptions.Region = "" 43655 } else { 43656 x.Region = (string)(r.DecodeString()) 43657 } 43658 yyj13++ 43659 if yyhl13 { 43660 yyb13 = yyj13 > l 43661 } else { 43662 yyb13 = r.CheckBreak() 43663 } 43664 if yyb13 { 43665 r.ReadArrayEnd() 43666 return 43667 } 43668 r.ReadArrayElem() 43669 if r.TryDecodeAsNil() { 43670 x.QueryOptions.Namespace = "" 43671 } else { 43672 x.Namespace = (string)(r.DecodeString()) 43673 } 43674 yyj13++ 43675 if yyhl13 { 43676 yyb13 = yyj13 > l 43677 } else { 43678 yyb13 = r.CheckBreak() 43679 } 43680 if yyb13 { 43681 r.ReadArrayEnd() 43682 return 43683 } 43684 r.ReadArrayElem() 43685 if r.TryDecodeAsNil() { 43686 x.QueryOptions.MinQueryIndex = 0 43687 } else { 43688 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 43689 } 43690 yyj13++ 43691 if yyhl13 { 43692 yyb13 = yyj13 > l 43693 } else { 43694 yyb13 = r.CheckBreak() 43695 } 43696 if yyb13 { 43697 r.ReadArrayEnd() 43698 return 43699 } 43700 r.ReadArrayElem() 43701 if r.TryDecodeAsNil() { 43702 x.QueryOptions.MaxQueryTime = 0 43703 } else { 43704 if false { 43705 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 43706 z.DecExtension(x.MaxQueryTime, yyxt18) 43707 } else { 43708 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 43709 } 43710 } 43711 yyj13++ 43712 if yyhl13 { 43713 yyb13 = yyj13 > l 43714 } else { 43715 yyb13 = r.CheckBreak() 43716 } 43717 if yyb13 { 43718 r.ReadArrayEnd() 43719 return 43720 } 43721 r.ReadArrayElem() 43722 if r.TryDecodeAsNil() { 43723 x.QueryOptions.AllowStale = false 43724 } else { 43725 x.AllowStale = (bool)(r.DecodeBool()) 43726 } 43727 yyj13++ 43728 if yyhl13 { 43729 yyb13 = yyj13 > l 43730 } else { 43731 yyb13 = r.CheckBreak() 43732 } 43733 if yyb13 { 43734 r.ReadArrayEnd() 43735 return 43736 } 43737 r.ReadArrayElem() 43738 if r.TryDecodeAsNil() { 43739 x.QueryOptions.Prefix = "" 43740 } else { 43741 x.Prefix = (string)(r.DecodeString()) 43742 } 43743 yyj13++ 43744 if yyhl13 { 43745 yyb13 = yyj13 > l 43746 } else { 43747 yyb13 = r.CheckBreak() 43748 } 43749 if yyb13 { 43750 r.ReadArrayEnd() 43751 return 43752 } 43753 r.ReadArrayElem() 43754 if r.TryDecodeAsNil() { 43755 x.QueryOptions.AuthToken = "" 43756 } else { 43757 x.AuthToken = (string)(r.DecodeString()) 43758 } 43759 yyj13++ 43760 if yyhl13 { 43761 yyb13 = yyj13 > l 43762 } else { 43763 yyb13 = r.CheckBreak() 43764 } 43765 if yyb13 { 43766 r.ReadArrayEnd() 43767 return 43768 } 43769 r.ReadArrayElem() 43770 if r.TryDecodeAsNil() { 43771 x.QueryOptions.InternalRpcInfo.Forwarded = false 43772 } else { 43773 x.Forwarded = (bool)(r.DecodeBool()) 43774 } 43775 for { 43776 yyj13++ 43777 if yyhl13 { 43778 yyb13 = yyj13 > l 43779 } else { 43780 yyb13 = r.CheckBreak() 43781 } 43782 if yyb13 { 43783 break 43784 } 43785 r.ReadArrayElem() 43786 z.DecStructFieldNotFound(yyj13-1, "") 43787 } 43788 r.ReadArrayEnd() 43789 } 43790 43791 func (x *PlanRequest) CodecEncodeSelf(e *codec1978.Encoder) { 43792 var h codecSelfer100 43793 z, r := codec1978.GenHelperEncoder(e) 43794 _, _, _ = h, z, r 43795 if x == nil { 43796 r.EncodeNil() 43797 } else { 43798 if false { 43799 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43800 z.EncExtension(x, yyxt1) 43801 } else { 43802 yysep2 := !z.EncBinary() 43803 yy2arr2 := z.EncBasicHandle().StructToArray 43804 _, _ = yysep2, yy2arr2 43805 const yyr2 bool = false // struct tag has 'toArray' 43806 if yyr2 || yy2arr2 { 43807 r.WriteArrayStart(5) 43808 } else { 43809 r.WriteMapStart(5) 43810 } 43811 var yyn3 bool 43812 if x.Plan == nil { 43813 yyn3 = true 43814 goto LABEL3 43815 } 43816 LABEL3: 43817 if yyr2 || yy2arr2 { 43818 if yyn3 { 43819 r.WriteArrayElem() 43820 r.EncodeNil() 43821 } else { 43822 r.WriteArrayElem() 43823 if x.Plan == nil { 43824 r.EncodeNil() 43825 } else { 43826 x.Plan.CodecEncodeSelf(e) 43827 } 43828 } 43829 } else { 43830 r.WriteMapElemKey() 43831 if z.IsJSONHandle() { 43832 z.WriteStr("\"Plan\"") 43833 } else { 43834 r.EncodeStringEnc(codecSelferCcUTF8100, `Plan`) 43835 } 43836 r.WriteMapElemValue() 43837 if yyn3 { 43838 r.EncodeNil() 43839 } else { 43840 if x.Plan == nil { 43841 r.EncodeNil() 43842 } else { 43843 x.Plan.CodecEncodeSelf(e) 43844 } 43845 } 43846 } 43847 if yyr2 || yy2arr2 { 43848 r.WriteArrayElem() 43849 if false { 43850 } else { 43851 if z.EncBasicHandle().StringToRaw { 43852 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43853 } else { 43854 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43855 } 43856 } 43857 } else { 43858 r.WriteMapElemKey() 43859 if z.IsJSONHandle() { 43860 z.WriteStr("\"Region\"") 43861 } else { 43862 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 43863 } 43864 r.WriteMapElemValue() 43865 if false { 43866 } else { 43867 if z.EncBasicHandle().StringToRaw { 43868 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 43869 } else { 43870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 43871 } 43872 } 43873 } 43874 if yyr2 || yy2arr2 { 43875 r.WriteArrayElem() 43876 if false { 43877 } else { 43878 if z.EncBasicHandle().StringToRaw { 43879 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43880 } else { 43881 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43882 } 43883 } 43884 } else { 43885 r.WriteMapElemKey() 43886 if z.IsJSONHandle() { 43887 z.WriteStr("\"Namespace\"") 43888 } else { 43889 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 43890 } 43891 r.WriteMapElemValue() 43892 if false { 43893 } else { 43894 if z.EncBasicHandle().StringToRaw { 43895 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 43896 } else { 43897 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 43898 } 43899 } 43900 } 43901 if yyr2 || yy2arr2 { 43902 r.WriteArrayElem() 43903 if false { 43904 } else { 43905 if z.EncBasicHandle().StringToRaw { 43906 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43907 } else { 43908 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43909 } 43910 } 43911 } else { 43912 r.WriteMapElemKey() 43913 if z.IsJSONHandle() { 43914 z.WriteStr("\"AuthToken\"") 43915 } else { 43916 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 43917 } 43918 r.WriteMapElemValue() 43919 if false { 43920 } else { 43921 if z.EncBasicHandle().StringToRaw { 43922 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 43923 } else { 43924 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 43925 } 43926 } 43927 } 43928 if yyr2 || yy2arr2 { 43929 r.WriteArrayElem() 43930 if false { 43931 } else { 43932 r.EncodeBool(bool(x.Forwarded)) 43933 } 43934 } else { 43935 r.WriteMapElemKey() 43936 if z.IsJSONHandle() { 43937 z.WriteStr("\"Forwarded\"") 43938 } else { 43939 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 43940 } 43941 r.WriteMapElemValue() 43942 if false { 43943 } else { 43944 r.EncodeBool(bool(x.Forwarded)) 43945 } 43946 } 43947 if yyr2 || yy2arr2 { 43948 r.WriteArrayEnd() 43949 } else { 43950 r.WriteMapEnd() 43951 } 43952 } 43953 } 43954 } 43955 43956 func (x *PlanRequest) CodecDecodeSelf(d *codec1978.Decoder) { 43957 var h codecSelfer100 43958 z, r := codec1978.GenHelperDecoder(d) 43959 _, _, _ = h, z, r 43960 if false { 43961 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 43962 z.DecExtension(x, yyxt1) 43963 } else { 43964 yyct2 := r.ContainerType() 43965 if yyct2 == codecSelferValueTypeMap100 { 43966 yyl2 := r.ReadMapStart() 43967 if yyl2 == 0 { 43968 r.ReadMapEnd() 43969 } else { 43970 x.codecDecodeSelfFromMap(yyl2, d) 43971 } 43972 } else if yyct2 == codecSelferValueTypeArray100 { 43973 yyl2 := r.ReadArrayStart() 43974 if yyl2 == 0 { 43975 r.ReadArrayEnd() 43976 } else { 43977 x.codecDecodeSelfFromArray(yyl2, d) 43978 } 43979 } else { 43980 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 43981 } 43982 } 43983 } 43984 43985 func (x *PlanRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 43986 var h codecSelfer100 43987 z, r := codec1978.GenHelperDecoder(d) 43988 _, _, _ = h, z, r 43989 var yyhl3 bool = l >= 0 43990 for yyj3 := 0; ; yyj3++ { 43991 if yyhl3 { 43992 if yyj3 >= l { 43993 break 43994 } 43995 } else { 43996 if r.CheckBreak() { 43997 break 43998 } 43999 } 44000 r.ReadMapElemKey() 44001 yys3 := z.StringView(r.DecodeStringAsBytes()) 44002 r.ReadMapElemValue() 44003 switch yys3 { 44004 case "Plan": 44005 if r.TryDecodeAsNil() { 44006 if true && x.Plan != nil { 44007 x.Plan = nil 44008 } 44009 } else { 44010 if x.Plan == nil { 44011 x.Plan = new(Plan) 44012 } 44013 44014 x.Plan.CodecDecodeSelf(d) 44015 } 44016 case "Region": 44017 if r.TryDecodeAsNil() { 44018 x.WriteRequest.Region = "" 44019 } else { 44020 x.Region = (string)(r.DecodeString()) 44021 } 44022 case "Namespace": 44023 if r.TryDecodeAsNil() { 44024 x.WriteRequest.Namespace = "" 44025 } else { 44026 x.Namespace = (string)(r.DecodeString()) 44027 } 44028 case "AuthToken": 44029 if r.TryDecodeAsNil() { 44030 x.WriteRequest.AuthToken = "" 44031 } else { 44032 x.AuthToken = (string)(r.DecodeString()) 44033 } 44034 case "Forwarded": 44035 if r.TryDecodeAsNil() { 44036 x.WriteRequest.InternalRpcInfo.Forwarded = false 44037 } else { 44038 x.Forwarded = (bool)(r.DecodeBool()) 44039 } 44040 default: 44041 z.DecStructFieldNotFound(-1, yys3) 44042 } // end switch yys3 44043 } // end for yyj3 44044 r.ReadMapEnd() 44045 } 44046 44047 func (x *PlanRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 44048 var h codecSelfer100 44049 z, r := codec1978.GenHelperDecoder(d) 44050 _, _, _ = h, z, r 44051 var yyj9 int 44052 var yyb9 bool 44053 var yyhl9 bool = l >= 0 44054 yyj9++ 44055 if yyhl9 { 44056 yyb9 = yyj9 > l 44057 } else { 44058 yyb9 = r.CheckBreak() 44059 } 44060 if yyb9 { 44061 r.ReadArrayEnd() 44062 return 44063 } 44064 r.ReadArrayElem() 44065 if r.TryDecodeAsNil() { 44066 if true && x.Plan != nil { 44067 x.Plan = nil 44068 } 44069 } else { 44070 if x.Plan == nil { 44071 x.Plan = new(Plan) 44072 } 44073 44074 x.Plan.CodecDecodeSelf(d) 44075 } 44076 yyj9++ 44077 if yyhl9 { 44078 yyb9 = yyj9 > l 44079 } else { 44080 yyb9 = r.CheckBreak() 44081 } 44082 if yyb9 { 44083 r.ReadArrayEnd() 44084 return 44085 } 44086 r.ReadArrayElem() 44087 if r.TryDecodeAsNil() { 44088 x.WriteRequest.Region = "" 44089 } else { 44090 x.Region = (string)(r.DecodeString()) 44091 } 44092 yyj9++ 44093 if yyhl9 { 44094 yyb9 = yyj9 > l 44095 } else { 44096 yyb9 = r.CheckBreak() 44097 } 44098 if yyb9 { 44099 r.ReadArrayEnd() 44100 return 44101 } 44102 r.ReadArrayElem() 44103 if r.TryDecodeAsNil() { 44104 x.WriteRequest.Namespace = "" 44105 } else { 44106 x.Namespace = (string)(r.DecodeString()) 44107 } 44108 yyj9++ 44109 if yyhl9 { 44110 yyb9 = yyj9 > l 44111 } else { 44112 yyb9 = r.CheckBreak() 44113 } 44114 if yyb9 { 44115 r.ReadArrayEnd() 44116 return 44117 } 44118 r.ReadArrayElem() 44119 if r.TryDecodeAsNil() { 44120 x.WriteRequest.AuthToken = "" 44121 } else { 44122 x.AuthToken = (string)(r.DecodeString()) 44123 } 44124 yyj9++ 44125 if yyhl9 { 44126 yyb9 = yyj9 > l 44127 } else { 44128 yyb9 = r.CheckBreak() 44129 } 44130 if yyb9 { 44131 r.ReadArrayEnd() 44132 return 44133 } 44134 r.ReadArrayElem() 44135 if r.TryDecodeAsNil() { 44136 x.WriteRequest.InternalRpcInfo.Forwarded = false 44137 } else { 44138 x.Forwarded = (bool)(r.DecodeBool()) 44139 } 44140 for { 44141 yyj9++ 44142 if yyhl9 { 44143 yyb9 = yyj9 > l 44144 } else { 44145 yyb9 = r.CheckBreak() 44146 } 44147 if yyb9 { 44148 break 44149 } 44150 r.ReadArrayElem() 44151 z.DecStructFieldNotFound(yyj9-1, "") 44152 } 44153 r.ReadArrayEnd() 44154 } 44155 44156 func (x *ApplyPlanResultsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 44157 var h codecSelfer100 44158 z, r := codec1978.GenHelperEncoder(e) 44159 _, _, _ = h, z, r 44160 if x == nil { 44161 r.EncodeNil() 44162 } else { 44163 if false { 44164 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44165 z.EncExtension(x, yyxt1) 44166 } else { 44167 yysep2 := !z.EncBinary() 44168 yy2arr2 := z.EncBasicHandle().StructToArray 44169 _, _ = yysep2, yy2arr2 44170 const yyr2 bool = false // struct tag has 'toArray' 44171 if yyr2 || yy2arr2 { 44172 r.WriteArrayStart(15) 44173 } else { 44174 r.WriteMapStart(15) 44175 } 44176 if yyr2 || yy2arr2 { 44177 r.WriteArrayElem() 44178 if x.Alloc == nil { 44179 r.EncodeNil() 44180 } else { 44181 if false { 44182 } else { 44183 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 44184 } 44185 } 44186 } else { 44187 r.WriteMapElemKey() 44188 if z.IsJSONHandle() { 44189 z.WriteStr("\"Alloc\"") 44190 } else { 44191 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 44192 } 44193 r.WriteMapElemValue() 44194 if x.Alloc == nil { 44195 r.EncodeNil() 44196 } else { 44197 if false { 44198 } else { 44199 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 44200 } 44201 } 44202 } 44203 if yyr2 || yy2arr2 { 44204 r.WriteArrayElem() 44205 if x.AllocsStopped == nil { 44206 r.EncodeNil() 44207 } else { 44208 if false { 44209 } else { 44210 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 44211 } 44212 } 44213 } else { 44214 r.WriteMapElemKey() 44215 if z.IsJSONHandle() { 44216 z.WriteStr("\"AllocsStopped\"") 44217 } else { 44218 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) 44219 } 44220 r.WriteMapElemValue() 44221 if x.AllocsStopped == nil { 44222 r.EncodeNil() 44223 } else { 44224 if false { 44225 } else { 44226 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 44227 } 44228 } 44229 } 44230 if yyr2 || yy2arr2 { 44231 r.WriteArrayElem() 44232 if x.AllocsUpdated == nil { 44233 r.EncodeNil() 44234 } else { 44235 if false { 44236 } else { 44237 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 44238 } 44239 } 44240 } else { 44241 r.WriteMapElemKey() 44242 if z.IsJSONHandle() { 44243 z.WriteStr("\"AllocsUpdated\"") 44244 } else { 44245 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) 44246 } 44247 r.WriteMapElemValue() 44248 if x.AllocsUpdated == nil { 44249 r.EncodeNil() 44250 } else { 44251 if false { 44252 } else { 44253 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 44254 } 44255 } 44256 } 44257 if yyr2 || yy2arr2 { 44258 r.WriteArrayElem() 44259 if x.Evals == nil { 44260 r.EncodeNil() 44261 } else { 44262 if false { 44263 } else { 44264 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 44265 } 44266 } 44267 } else { 44268 r.WriteMapElemKey() 44269 if z.IsJSONHandle() { 44270 z.WriteStr("\"Evals\"") 44271 } else { 44272 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 44273 } 44274 r.WriteMapElemValue() 44275 if x.Evals == nil { 44276 r.EncodeNil() 44277 } else { 44278 if false { 44279 } else { 44280 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 44281 } 44282 } 44283 } 44284 var yyn15 bool 44285 if x.AllocUpdateRequest.Job == nil { 44286 yyn15 = true 44287 goto LABEL15 44288 } 44289 LABEL15: 44290 if yyr2 || yy2arr2 { 44291 if yyn15 { 44292 r.WriteArrayElem() 44293 r.EncodeNil() 44294 } else { 44295 r.WriteArrayElem() 44296 if x.Job == nil { 44297 r.EncodeNil() 44298 } else { 44299 x.Job.CodecEncodeSelf(e) 44300 } 44301 } 44302 } else { 44303 r.WriteMapElemKey() 44304 if z.IsJSONHandle() { 44305 z.WriteStr("\"Job\"") 44306 } else { 44307 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 44308 } 44309 r.WriteMapElemValue() 44310 if yyn15 { 44311 r.EncodeNil() 44312 } else { 44313 if x.Job == nil { 44314 r.EncodeNil() 44315 } else { 44316 x.Job.CodecEncodeSelf(e) 44317 } 44318 } 44319 } 44320 if yyr2 || yy2arr2 { 44321 r.WriteArrayElem() 44322 if false { 44323 } else { 44324 if z.EncBasicHandle().StringToRaw { 44325 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44326 } else { 44327 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44328 } 44329 } 44330 } else { 44331 r.WriteMapElemKey() 44332 if z.IsJSONHandle() { 44333 z.WriteStr("\"Region\"") 44334 } else { 44335 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 44336 } 44337 r.WriteMapElemValue() 44338 if false { 44339 } else { 44340 if z.EncBasicHandle().StringToRaw { 44341 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 44342 } else { 44343 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 44344 } 44345 } 44346 } 44347 if yyr2 || yy2arr2 { 44348 r.WriteArrayElem() 44349 if false { 44350 } else { 44351 if z.EncBasicHandle().StringToRaw { 44352 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44353 } else { 44354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44355 } 44356 } 44357 } else { 44358 r.WriteMapElemKey() 44359 if z.IsJSONHandle() { 44360 z.WriteStr("\"Namespace\"") 44361 } else { 44362 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 44363 } 44364 r.WriteMapElemValue() 44365 if false { 44366 } else { 44367 if z.EncBasicHandle().StringToRaw { 44368 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 44369 } else { 44370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 44371 } 44372 } 44373 } 44374 if yyr2 || yy2arr2 { 44375 r.WriteArrayElem() 44376 if false { 44377 } else { 44378 if z.EncBasicHandle().StringToRaw { 44379 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44380 } else { 44381 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44382 } 44383 } 44384 } else { 44385 r.WriteMapElemKey() 44386 if z.IsJSONHandle() { 44387 z.WriteStr("\"AuthToken\"") 44388 } else { 44389 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 44390 } 44391 r.WriteMapElemValue() 44392 if false { 44393 } else { 44394 if z.EncBasicHandle().StringToRaw { 44395 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 44396 } else { 44397 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 44398 } 44399 } 44400 } 44401 if yyr2 || yy2arr2 { 44402 r.WriteArrayElem() 44403 if false { 44404 } else { 44405 r.EncodeBool(bool(x.Forwarded)) 44406 } 44407 } else { 44408 r.WriteMapElemKey() 44409 if z.IsJSONHandle() { 44410 z.WriteStr("\"Forwarded\"") 44411 } else { 44412 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 44413 } 44414 r.WriteMapElemValue() 44415 if false { 44416 } else { 44417 r.EncodeBool(bool(x.Forwarded)) 44418 } 44419 } 44420 var yyn30 bool 44421 if x.Deployment == nil { 44422 yyn30 = true 44423 goto LABEL30 44424 } 44425 LABEL30: 44426 if yyr2 || yy2arr2 { 44427 if yyn30 { 44428 r.WriteArrayElem() 44429 r.EncodeNil() 44430 } else { 44431 r.WriteArrayElem() 44432 if x.Deployment == nil { 44433 r.EncodeNil() 44434 } else { 44435 x.Deployment.CodecEncodeSelf(e) 44436 } 44437 } 44438 } else { 44439 r.WriteMapElemKey() 44440 if z.IsJSONHandle() { 44441 z.WriteStr("\"Deployment\"") 44442 } else { 44443 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 44444 } 44445 r.WriteMapElemValue() 44446 if yyn30 { 44447 r.EncodeNil() 44448 } else { 44449 if x.Deployment == nil { 44450 r.EncodeNil() 44451 } else { 44452 x.Deployment.CodecEncodeSelf(e) 44453 } 44454 } 44455 } 44456 if yyr2 || yy2arr2 { 44457 r.WriteArrayElem() 44458 if x.DeploymentUpdates == nil { 44459 r.EncodeNil() 44460 } else { 44461 if false { 44462 } else { 44463 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 44464 } 44465 } 44466 } else { 44467 r.WriteMapElemKey() 44468 if z.IsJSONHandle() { 44469 z.WriteStr("\"DeploymentUpdates\"") 44470 } else { 44471 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 44472 } 44473 r.WriteMapElemValue() 44474 if x.DeploymentUpdates == nil { 44475 r.EncodeNil() 44476 } else { 44477 if false { 44478 } else { 44479 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 44480 } 44481 } 44482 } 44483 if yyr2 || yy2arr2 { 44484 r.WriteArrayElem() 44485 if false { 44486 } else { 44487 if z.EncBasicHandle().StringToRaw { 44488 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 44489 } else { 44490 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 44491 } 44492 } 44493 } else { 44494 r.WriteMapElemKey() 44495 if z.IsJSONHandle() { 44496 z.WriteStr("\"EvalID\"") 44497 } else { 44498 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 44499 } 44500 r.WriteMapElemValue() 44501 if false { 44502 } else { 44503 if z.EncBasicHandle().StringToRaw { 44504 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 44505 } else { 44506 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 44507 } 44508 } 44509 } 44510 if yyr2 || yy2arr2 { 44511 r.WriteArrayElem() 44512 if x.NodePreemptions == nil { 44513 r.EncodeNil() 44514 } else { 44515 if false { 44516 } else { 44517 h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) 44518 } 44519 } 44520 } else { 44521 r.WriteMapElemKey() 44522 if z.IsJSONHandle() { 44523 z.WriteStr("\"NodePreemptions\"") 44524 } else { 44525 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 44526 } 44527 r.WriteMapElemValue() 44528 if x.NodePreemptions == nil { 44529 r.EncodeNil() 44530 } else { 44531 if false { 44532 } else { 44533 h.encSlicePtrtoAllocation(([]*Allocation)(x.NodePreemptions), e) 44534 } 44535 } 44536 } 44537 if yyr2 || yy2arr2 { 44538 r.WriteArrayElem() 44539 if x.AllocsPreempted == nil { 44540 r.EncodeNil() 44541 } else { 44542 if false { 44543 } else { 44544 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) 44545 } 44546 } 44547 } else { 44548 r.WriteMapElemKey() 44549 if z.IsJSONHandle() { 44550 z.WriteStr("\"AllocsPreempted\"") 44551 } else { 44552 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsPreempted`) 44553 } 44554 r.WriteMapElemValue() 44555 if x.AllocsPreempted == nil { 44556 r.EncodeNil() 44557 } else { 44558 if false { 44559 } else { 44560 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsPreempted), e) 44561 } 44562 } 44563 } 44564 if yyr2 || yy2arr2 { 44565 r.WriteArrayElem() 44566 if x.PreemptionEvals == nil { 44567 r.EncodeNil() 44568 } else { 44569 if false { 44570 } else { 44571 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) 44572 } 44573 } 44574 } else { 44575 r.WriteMapElemKey() 44576 if z.IsJSONHandle() { 44577 z.WriteStr("\"PreemptionEvals\"") 44578 } else { 44579 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptionEvals`) 44580 } 44581 r.WriteMapElemValue() 44582 if x.PreemptionEvals == nil { 44583 r.EncodeNil() 44584 } else { 44585 if false { 44586 } else { 44587 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.PreemptionEvals), e) 44588 } 44589 } 44590 } 44591 if yyr2 || yy2arr2 { 44592 r.WriteArrayEnd() 44593 } else { 44594 r.WriteMapEnd() 44595 } 44596 } 44597 } 44598 } 44599 44600 func (x *ApplyPlanResultsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 44601 var h codecSelfer100 44602 z, r := codec1978.GenHelperDecoder(d) 44603 _, _, _ = h, z, r 44604 if false { 44605 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 44606 z.DecExtension(x, yyxt1) 44607 } else { 44608 yyct2 := r.ContainerType() 44609 if yyct2 == codecSelferValueTypeMap100 { 44610 yyl2 := r.ReadMapStart() 44611 if yyl2 == 0 { 44612 r.ReadMapEnd() 44613 } else { 44614 x.codecDecodeSelfFromMap(yyl2, d) 44615 } 44616 } else if yyct2 == codecSelferValueTypeArray100 { 44617 yyl2 := r.ReadArrayStart() 44618 if yyl2 == 0 { 44619 r.ReadArrayEnd() 44620 } else { 44621 x.codecDecodeSelfFromArray(yyl2, d) 44622 } 44623 } else { 44624 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 44625 } 44626 } 44627 } 44628 44629 func (x *ApplyPlanResultsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 44630 var h codecSelfer100 44631 z, r := codec1978.GenHelperDecoder(d) 44632 _, _, _ = h, z, r 44633 var yyhl3 bool = l >= 0 44634 for yyj3 := 0; ; yyj3++ { 44635 if yyhl3 { 44636 if yyj3 >= l { 44637 break 44638 } 44639 } else { 44640 if r.CheckBreak() { 44641 break 44642 } 44643 } 44644 r.ReadMapElemKey() 44645 yys3 := z.StringView(r.DecodeStringAsBytes()) 44646 r.ReadMapElemValue() 44647 switch yys3 { 44648 case "Alloc": 44649 if r.TryDecodeAsNil() { 44650 x.AllocUpdateRequest.Alloc = nil 44651 } else { 44652 if false { 44653 } else { 44654 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 44655 } 44656 } 44657 case "AllocsStopped": 44658 if r.TryDecodeAsNil() { 44659 x.AllocUpdateRequest.AllocsStopped = nil 44660 } else { 44661 if false { 44662 } else { 44663 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 44664 } 44665 } 44666 case "AllocsUpdated": 44667 if r.TryDecodeAsNil() { 44668 x.AllocUpdateRequest.AllocsUpdated = nil 44669 } else { 44670 if false { 44671 } else { 44672 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 44673 } 44674 } 44675 case "Evals": 44676 if r.TryDecodeAsNil() { 44677 x.AllocUpdateRequest.Evals = nil 44678 } else { 44679 if false { 44680 } else { 44681 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 44682 } 44683 } 44684 case "Job": 44685 if r.TryDecodeAsNil() { 44686 if true && x.AllocUpdateRequest.Job != nil { 44687 x.AllocUpdateRequest.Job = nil 44688 } 44689 } else { 44690 if x.AllocUpdateRequest.Job == nil { 44691 x.AllocUpdateRequest.Job = new(Job) 44692 } 44693 44694 x.Job.CodecDecodeSelf(d) 44695 } 44696 case "Region": 44697 if r.TryDecodeAsNil() { 44698 x.AllocUpdateRequest.WriteRequest.Region = "" 44699 } else { 44700 x.Region = (string)(r.DecodeString()) 44701 } 44702 case "Namespace": 44703 if r.TryDecodeAsNil() { 44704 x.AllocUpdateRequest.WriteRequest.Namespace = "" 44705 } else { 44706 x.Namespace = (string)(r.DecodeString()) 44707 } 44708 case "AuthToken": 44709 if r.TryDecodeAsNil() { 44710 x.AllocUpdateRequest.WriteRequest.AuthToken = "" 44711 } else { 44712 x.AuthToken = (string)(r.DecodeString()) 44713 } 44714 case "Forwarded": 44715 if r.TryDecodeAsNil() { 44716 x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false 44717 } else { 44718 x.Forwarded = (bool)(r.DecodeBool()) 44719 } 44720 case "Deployment": 44721 if r.TryDecodeAsNil() { 44722 if true && x.Deployment != nil { 44723 x.Deployment = nil 44724 } 44725 } else { 44726 if x.Deployment == nil { 44727 x.Deployment = new(Deployment) 44728 } 44729 44730 x.Deployment.CodecDecodeSelf(d) 44731 } 44732 case "DeploymentUpdates": 44733 if r.TryDecodeAsNil() { 44734 x.DeploymentUpdates = nil 44735 } else { 44736 if false { 44737 } else { 44738 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 44739 } 44740 } 44741 case "EvalID": 44742 if r.TryDecodeAsNil() { 44743 x.EvalID = "" 44744 } else { 44745 x.EvalID = (string)(r.DecodeString()) 44746 } 44747 case "NodePreemptions": 44748 if r.TryDecodeAsNil() { 44749 x.NodePreemptions = nil 44750 } else { 44751 if false { 44752 } else { 44753 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) 44754 } 44755 } 44756 case "AllocsPreempted": 44757 if r.TryDecodeAsNil() { 44758 x.AllocsPreempted = nil 44759 } else { 44760 if false { 44761 } else { 44762 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) 44763 } 44764 } 44765 case "PreemptionEvals": 44766 if r.TryDecodeAsNil() { 44767 x.PreemptionEvals = nil 44768 } else { 44769 if false { 44770 } else { 44771 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) 44772 } 44773 } 44774 default: 44775 z.DecStructFieldNotFound(-1, yys3) 44776 } // end switch yys3 44777 } // end for yyj3 44778 r.ReadMapEnd() 44779 } 44780 44781 func (x *ApplyPlanResultsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 44782 var h codecSelfer100 44783 z, r := codec1978.GenHelperDecoder(d) 44784 _, _, _ = h, z, r 44785 var yyj27 int 44786 var yyb27 bool 44787 var yyhl27 bool = l >= 0 44788 yyj27++ 44789 if yyhl27 { 44790 yyb27 = yyj27 > l 44791 } else { 44792 yyb27 = r.CheckBreak() 44793 } 44794 if yyb27 { 44795 r.ReadArrayEnd() 44796 return 44797 } 44798 r.ReadArrayElem() 44799 if r.TryDecodeAsNil() { 44800 x.AllocUpdateRequest.Alloc = nil 44801 } else { 44802 if false { 44803 } else { 44804 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 44805 } 44806 } 44807 yyj27++ 44808 if yyhl27 { 44809 yyb27 = yyj27 > l 44810 } else { 44811 yyb27 = r.CheckBreak() 44812 } 44813 if yyb27 { 44814 r.ReadArrayEnd() 44815 return 44816 } 44817 r.ReadArrayElem() 44818 if r.TryDecodeAsNil() { 44819 x.AllocUpdateRequest.AllocsStopped = nil 44820 } else { 44821 if false { 44822 } else { 44823 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 44824 } 44825 } 44826 yyj27++ 44827 if yyhl27 { 44828 yyb27 = yyj27 > l 44829 } else { 44830 yyb27 = r.CheckBreak() 44831 } 44832 if yyb27 { 44833 r.ReadArrayEnd() 44834 return 44835 } 44836 r.ReadArrayElem() 44837 if r.TryDecodeAsNil() { 44838 x.AllocUpdateRequest.AllocsUpdated = nil 44839 } else { 44840 if false { 44841 } else { 44842 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 44843 } 44844 } 44845 yyj27++ 44846 if yyhl27 { 44847 yyb27 = yyj27 > l 44848 } else { 44849 yyb27 = r.CheckBreak() 44850 } 44851 if yyb27 { 44852 r.ReadArrayEnd() 44853 return 44854 } 44855 r.ReadArrayElem() 44856 if r.TryDecodeAsNil() { 44857 x.AllocUpdateRequest.Evals = nil 44858 } else { 44859 if false { 44860 } else { 44861 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 44862 } 44863 } 44864 yyj27++ 44865 if yyhl27 { 44866 yyb27 = yyj27 > l 44867 } else { 44868 yyb27 = r.CheckBreak() 44869 } 44870 if yyb27 { 44871 r.ReadArrayEnd() 44872 return 44873 } 44874 r.ReadArrayElem() 44875 if r.TryDecodeAsNil() { 44876 if true && x.AllocUpdateRequest.Job != nil { 44877 x.AllocUpdateRequest.Job = nil 44878 } 44879 } else { 44880 if x.AllocUpdateRequest.Job == nil { 44881 x.AllocUpdateRequest.Job = new(Job) 44882 } 44883 44884 x.Job.CodecDecodeSelf(d) 44885 } 44886 yyj27++ 44887 if yyhl27 { 44888 yyb27 = yyj27 > l 44889 } else { 44890 yyb27 = r.CheckBreak() 44891 } 44892 if yyb27 { 44893 r.ReadArrayEnd() 44894 return 44895 } 44896 r.ReadArrayElem() 44897 if r.TryDecodeAsNil() { 44898 x.AllocUpdateRequest.WriteRequest.Region = "" 44899 } else { 44900 x.Region = (string)(r.DecodeString()) 44901 } 44902 yyj27++ 44903 if yyhl27 { 44904 yyb27 = yyj27 > l 44905 } else { 44906 yyb27 = r.CheckBreak() 44907 } 44908 if yyb27 { 44909 r.ReadArrayEnd() 44910 return 44911 } 44912 r.ReadArrayElem() 44913 if r.TryDecodeAsNil() { 44914 x.AllocUpdateRequest.WriteRequest.Namespace = "" 44915 } else { 44916 x.Namespace = (string)(r.DecodeString()) 44917 } 44918 yyj27++ 44919 if yyhl27 { 44920 yyb27 = yyj27 > l 44921 } else { 44922 yyb27 = r.CheckBreak() 44923 } 44924 if yyb27 { 44925 r.ReadArrayEnd() 44926 return 44927 } 44928 r.ReadArrayElem() 44929 if r.TryDecodeAsNil() { 44930 x.AllocUpdateRequest.WriteRequest.AuthToken = "" 44931 } else { 44932 x.AuthToken = (string)(r.DecodeString()) 44933 } 44934 yyj27++ 44935 if yyhl27 { 44936 yyb27 = yyj27 > l 44937 } else { 44938 yyb27 = r.CheckBreak() 44939 } 44940 if yyb27 { 44941 r.ReadArrayEnd() 44942 return 44943 } 44944 r.ReadArrayElem() 44945 if r.TryDecodeAsNil() { 44946 x.AllocUpdateRequest.WriteRequest.InternalRpcInfo.Forwarded = false 44947 } else { 44948 x.Forwarded = (bool)(r.DecodeBool()) 44949 } 44950 yyj27++ 44951 if yyhl27 { 44952 yyb27 = yyj27 > l 44953 } else { 44954 yyb27 = r.CheckBreak() 44955 } 44956 if yyb27 { 44957 r.ReadArrayEnd() 44958 return 44959 } 44960 r.ReadArrayElem() 44961 if r.TryDecodeAsNil() { 44962 if true && x.Deployment != nil { 44963 x.Deployment = nil 44964 } 44965 } else { 44966 if x.Deployment == nil { 44967 x.Deployment = new(Deployment) 44968 } 44969 44970 x.Deployment.CodecDecodeSelf(d) 44971 } 44972 yyj27++ 44973 if yyhl27 { 44974 yyb27 = yyj27 > l 44975 } else { 44976 yyb27 = r.CheckBreak() 44977 } 44978 if yyb27 { 44979 r.ReadArrayEnd() 44980 return 44981 } 44982 r.ReadArrayElem() 44983 if r.TryDecodeAsNil() { 44984 x.DeploymentUpdates = nil 44985 } else { 44986 if false { 44987 } else { 44988 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 44989 } 44990 } 44991 yyj27++ 44992 if yyhl27 { 44993 yyb27 = yyj27 > l 44994 } else { 44995 yyb27 = r.CheckBreak() 44996 } 44997 if yyb27 { 44998 r.ReadArrayEnd() 44999 return 45000 } 45001 r.ReadArrayElem() 45002 if r.TryDecodeAsNil() { 45003 x.EvalID = "" 45004 } else { 45005 x.EvalID = (string)(r.DecodeString()) 45006 } 45007 yyj27++ 45008 if yyhl27 { 45009 yyb27 = yyj27 > l 45010 } else { 45011 yyb27 = r.CheckBreak() 45012 } 45013 if yyb27 { 45014 r.ReadArrayEnd() 45015 return 45016 } 45017 r.ReadArrayElem() 45018 if r.TryDecodeAsNil() { 45019 x.NodePreemptions = nil 45020 } else { 45021 if false { 45022 } else { 45023 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.NodePreemptions), d) 45024 } 45025 } 45026 yyj27++ 45027 if yyhl27 { 45028 yyb27 = yyj27 > l 45029 } else { 45030 yyb27 = r.CheckBreak() 45031 } 45032 if yyb27 { 45033 r.ReadArrayEnd() 45034 return 45035 } 45036 r.ReadArrayElem() 45037 if r.TryDecodeAsNil() { 45038 x.AllocsPreempted = nil 45039 } else { 45040 if false { 45041 } else { 45042 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsPreempted), d) 45043 } 45044 } 45045 yyj27++ 45046 if yyhl27 { 45047 yyb27 = yyj27 > l 45048 } else { 45049 yyb27 = r.CheckBreak() 45050 } 45051 if yyb27 { 45052 r.ReadArrayEnd() 45053 return 45054 } 45055 r.ReadArrayElem() 45056 if r.TryDecodeAsNil() { 45057 x.PreemptionEvals = nil 45058 } else { 45059 if false { 45060 } else { 45061 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.PreemptionEvals), d) 45062 } 45063 } 45064 for { 45065 yyj27++ 45066 if yyhl27 { 45067 yyb27 = yyj27 > l 45068 } else { 45069 yyb27 = r.CheckBreak() 45070 } 45071 if yyb27 { 45072 break 45073 } 45074 r.ReadArrayElem() 45075 z.DecStructFieldNotFound(yyj27-1, "") 45076 } 45077 r.ReadArrayEnd() 45078 } 45079 45080 func (x *AllocUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 45081 var h codecSelfer100 45082 z, r := codec1978.GenHelperEncoder(e) 45083 _, _, _ = h, z, r 45084 if x == nil { 45085 r.EncodeNil() 45086 } else { 45087 if false { 45088 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45089 z.EncExtension(x, yyxt1) 45090 } else { 45091 yysep2 := !z.EncBinary() 45092 yy2arr2 := z.EncBasicHandle().StructToArray 45093 _, _ = yysep2, yy2arr2 45094 const yyr2 bool = false // struct tag has 'toArray' 45095 if yyr2 || yy2arr2 { 45096 r.WriteArrayStart(9) 45097 } else { 45098 r.WriteMapStart(9) 45099 } 45100 if yyr2 || yy2arr2 { 45101 r.WriteArrayElem() 45102 if x.Alloc == nil { 45103 r.EncodeNil() 45104 } else { 45105 if false { 45106 } else { 45107 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 45108 } 45109 } 45110 } else { 45111 r.WriteMapElemKey() 45112 if z.IsJSONHandle() { 45113 z.WriteStr("\"Alloc\"") 45114 } else { 45115 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 45116 } 45117 r.WriteMapElemValue() 45118 if x.Alloc == nil { 45119 r.EncodeNil() 45120 } else { 45121 if false { 45122 } else { 45123 h.encSlicePtrtoAllocation(([]*Allocation)(x.Alloc), e) 45124 } 45125 } 45126 } 45127 if yyr2 || yy2arr2 { 45128 r.WriteArrayElem() 45129 if x.AllocsStopped == nil { 45130 r.EncodeNil() 45131 } else { 45132 if false { 45133 } else { 45134 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 45135 } 45136 } 45137 } else { 45138 r.WriteMapElemKey() 45139 if z.IsJSONHandle() { 45140 z.WriteStr("\"AllocsStopped\"") 45141 } else { 45142 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsStopped`) 45143 } 45144 r.WriteMapElemValue() 45145 if x.AllocsStopped == nil { 45146 r.EncodeNil() 45147 } else { 45148 if false { 45149 } else { 45150 h.encSlicePtrtoAllocationDiff(([]*AllocationDiff)(x.AllocsStopped), e) 45151 } 45152 } 45153 } 45154 if yyr2 || yy2arr2 { 45155 r.WriteArrayElem() 45156 if x.AllocsUpdated == nil { 45157 r.EncodeNil() 45158 } else { 45159 if false { 45160 } else { 45161 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 45162 } 45163 } 45164 } else { 45165 r.WriteMapElemKey() 45166 if z.IsJSONHandle() { 45167 z.WriteStr("\"AllocsUpdated\"") 45168 } else { 45169 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocsUpdated`) 45170 } 45171 r.WriteMapElemValue() 45172 if x.AllocsUpdated == nil { 45173 r.EncodeNil() 45174 } else { 45175 if false { 45176 } else { 45177 h.encSlicePtrtoAllocation(([]*Allocation)(x.AllocsUpdated), e) 45178 } 45179 } 45180 } 45181 if yyr2 || yy2arr2 { 45182 r.WriteArrayElem() 45183 if x.Evals == nil { 45184 r.EncodeNil() 45185 } else { 45186 if false { 45187 } else { 45188 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 45189 } 45190 } 45191 } else { 45192 r.WriteMapElemKey() 45193 if z.IsJSONHandle() { 45194 z.WriteStr("\"Evals\"") 45195 } else { 45196 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 45197 } 45198 r.WriteMapElemValue() 45199 if x.Evals == nil { 45200 r.EncodeNil() 45201 } else { 45202 if false { 45203 } else { 45204 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 45205 } 45206 } 45207 } 45208 var yyn15 bool 45209 if x.Job == nil { 45210 yyn15 = true 45211 goto LABEL15 45212 } 45213 LABEL15: 45214 if yyr2 || yy2arr2 { 45215 if yyn15 { 45216 r.WriteArrayElem() 45217 r.EncodeNil() 45218 } else { 45219 r.WriteArrayElem() 45220 if x.Job == nil { 45221 r.EncodeNil() 45222 } else { 45223 x.Job.CodecEncodeSelf(e) 45224 } 45225 } 45226 } else { 45227 r.WriteMapElemKey() 45228 if z.IsJSONHandle() { 45229 z.WriteStr("\"Job\"") 45230 } else { 45231 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 45232 } 45233 r.WriteMapElemValue() 45234 if yyn15 { 45235 r.EncodeNil() 45236 } else { 45237 if x.Job == nil { 45238 r.EncodeNil() 45239 } else { 45240 x.Job.CodecEncodeSelf(e) 45241 } 45242 } 45243 } 45244 if yyr2 || yy2arr2 { 45245 r.WriteArrayElem() 45246 if false { 45247 } else { 45248 if z.EncBasicHandle().StringToRaw { 45249 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45250 } else { 45251 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45252 } 45253 } 45254 } else { 45255 r.WriteMapElemKey() 45256 if z.IsJSONHandle() { 45257 z.WriteStr("\"Region\"") 45258 } else { 45259 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 45260 } 45261 r.WriteMapElemValue() 45262 if false { 45263 } else { 45264 if z.EncBasicHandle().StringToRaw { 45265 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45266 } else { 45267 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45268 } 45269 } 45270 } 45271 if yyr2 || yy2arr2 { 45272 r.WriteArrayElem() 45273 if false { 45274 } else { 45275 if z.EncBasicHandle().StringToRaw { 45276 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45277 } else { 45278 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45279 } 45280 } 45281 } else { 45282 r.WriteMapElemKey() 45283 if z.IsJSONHandle() { 45284 z.WriteStr("\"Namespace\"") 45285 } else { 45286 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 45287 } 45288 r.WriteMapElemValue() 45289 if false { 45290 } else { 45291 if z.EncBasicHandle().StringToRaw { 45292 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45293 } else { 45294 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45295 } 45296 } 45297 } 45298 if yyr2 || yy2arr2 { 45299 r.WriteArrayElem() 45300 if false { 45301 } else { 45302 if z.EncBasicHandle().StringToRaw { 45303 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45304 } else { 45305 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45306 } 45307 } 45308 } else { 45309 r.WriteMapElemKey() 45310 if z.IsJSONHandle() { 45311 z.WriteStr("\"AuthToken\"") 45312 } else { 45313 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 45314 } 45315 r.WriteMapElemValue() 45316 if false { 45317 } else { 45318 if z.EncBasicHandle().StringToRaw { 45319 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45320 } else { 45321 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45322 } 45323 } 45324 } 45325 if yyr2 || yy2arr2 { 45326 r.WriteArrayElem() 45327 if false { 45328 } else { 45329 r.EncodeBool(bool(x.Forwarded)) 45330 } 45331 } else { 45332 r.WriteMapElemKey() 45333 if z.IsJSONHandle() { 45334 z.WriteStr("\"Forwarded\"") 45335 } else { 45336 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 45337 } 45338 r.WriteMapElemValue() 45339 if false { 45340 } else { 45341 r.EncodeBool(bool(x.Forwarded)) 45342 } 45343 } 45344 if yyr2 || yy2arr2 { 45345 r.WriteArrayEnd() 45346 } else { 45347 r.WriteMapEnd() 45348 } 45349 } 45350 } 45351 } 45352 45353 func (x *AllocUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 45354 var h codecSelfer100 45355 z, r := codec1978.GenHelperDecoder(d) 45356 _, _, _ = h, z, r 45357 if false { 45358 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45359 z.DecExtension(x, yyxt1) 45360 } else { 45361 yyct2 := r.ContainerType() 45362 if yyct2 == codecSelferValueTypeMap100 { 45363 yyl2 := r.ReadMapStart() 45364 if yyl2 == 0 { 45365 r.ReadMapEnd() 45366 } else { 45367 x.codecDecodeSelfFromMap(yyl2, d) 45368 } 45369 } else if yyct2 == codecSelferValueTypeArray100 { 45370 yyl2 := r.ReadArrayStart() 45371 if yyl2 == 0 { 45372 r.ReadArrayEnd() 45373 } else { 45374 x.codecDecodeSelfFromArray(yyl2, d) 45375 } 45376 } else { 45377 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 45378 } 45379 } 45380 } 45381 45382 func (x *AllocUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 45383 var h codecSelfer100 45384 z, r := codec1978.GenHelperDecoder(d) 45385 _, _, _ = h, z, r 45386 var yyhl3 bool = l >= 0 45387 for yyj3 := 0; ; yyj3++ { 45388 if yyhl3 { 45389 if yyj3 >= l { 45390 break 45391 } 45392 } else { 45393 if r.CheckBreak() { 45394 break 45395 } 45396 } 45397 r.ReadMapElemKey() 45398 yys3 := z.StringView(r.DecodeStringAsBytes()) 45399 r.ReadMapElemValue() 45400 switch yys3 { 45401 case "Alloc": 45402 if r.TryDecodeAsNil() { 45403 x.Alloc = nil 45404 } else { 45405 if false { 45406 } else { 45407 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 45408 } 45409 } 45410 case "AllocsStopped": 45411 if r.TryDecodeAsNil() { 45412 x.AllocsStopped = nil 45413 } else { 45414 if false { 45415 } else { 45416 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 45417 } 45418 } 45419 case "AllocsUpdated": 45420 if r.TryDecodeAsNil() { 45421 x.AllocsUpdated = nil 45422 } else { 45423 if false { 45424 } else { 45425 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 45426 } 45427 } 45428 case "Evals": 45429 if r.TryDecodeAsNil() { 45430 x.Evals = nil 45431 } else { 45432 if false { 45433 } else { 45434 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 45435 } 45436 } 45437 case "Job": 45438 if r.TryDecodeAsNil() { 45439 if true && x.Job != nil { 45440 x.Job = nil 45441 } 45442 } else { 45443 if x.Job == nil { 45444 x.Job = new(Job) 45445 } 45446 45447 x.Job.CodecDecodeSelf(d) 45448 } 45449 case "Region": 45450 if r.TryDecodeAsNil() { 45451 x.WriteRequest.Region = "" 45452 } else { 45453 x.Region = (string)(r.DecodeString()) 45454 } 45455 case "Namespace": 45456 if r.TryDecodeAsNil() { 45457 x.WriteRequest.Namespace = "" 45458 } else { 45459 x.Namespace = (string)(r.DecodeString()) 45460 } 45461 case "AuthToken": 45462 if r.TryDecodeAsNil() { 45463 x.WriteRequest.AuthToken = "" 45464 } else { 45465 x.AuthToken = (string)(r.DecodeString()) 45466 } 45467 case "Forwarded": 45468 if r.TryDecodeAsNil() { 45469 x.WriteRequest.InternalRpcInfo.Forwarded = false 45470 } else { 45471 x.Forwarded = (bool)(r.DecodeBool()) 45472 } 45473 default: 45474 z.DecStructFieldNotFound(-1, yys3) 45475 } // end switch yys3 45476 } // end for yyj3 45477 r.ReadMapEnd() 45478 } 45479 45480 func (x *AllocUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 45481 var h codecSelfer100 45482 z, r := codec1978.GenHelperDecoder(d) 45483 _, _, _ = h, z, r 45484 var yyj17 int 45485 var yyb17 bool 45486 var yyhl17 bool = l >= 0 45487 yyj17++ 45488 if yyhl17 { 45489 yyb17 = yyj17 > l 45490 } else { 45491 yyb17 = r.CheckBreak() 45492 } 45493 if yyb17 { 45494 r.ReadArrayEnd() 45495 return 45496 } 45497 r.ReadArrayElem() 45498 if r.TryDecodeAsNil() { 45499 x.Alloc = nil 45500 } else { 45501 if false { 45502 } else { 45503 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Alloc), d) 45504 } 45505 } 45506 yyj17++ 45507 if yyhl17 { 45508 yyb17 = yyj17 > l 45509 } else { 45510 yyb17 = r.CheckBreak() 45511 } 45512 if yyb17 { 45513 r.ReadArrayEnd() 45514 return 45515 } 45516 r.ReadArrayElem() 45517 if r.TryDecodeAsNil() { 45518 x.AllocsStopped = nil 45519 } else { 45520 if false { 45521 } else { 45522 h.decSlicePtrtoAllocationDiff((*[]*AllocationDiff)(&x.AllocsStopped), d) 45523 } 45524 } 45525 yyj17++ 45526 if yyhl17 { 45527 yyb17 = yyj17 > l 45528 } else { 45529 yyb17 = r.CheckBreak() 45530 } 45531 if yyb17 { 45532 r.ReadArrayEnd() 45533 return 45534 } 45535 r.ReadArrayElem() 45536 if r.TryDecodeAsNil() { 45537 x.AllocsUpdated = nil 45538 } else { 45539 if false { 45540 } else { 45541 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.AllocsUpdated), d) 45542 } 45543 } 45544 yyj17++ 45545 if yyhl17 { 45546 yyb17 = yyj17 > l 45547 } else { 45548 yyb17 = r.CheckBreak() 45549 } 45550 if yyb17 { 45551 r.ReadArrayEnd() 45552 return 45553 } 45554 r.ReadArrayElem() 45555 if r.TryDecodeAsNil() { 45556 x.Evals = nil 45557 } else { 45558 if false { 45559 } else { 45560 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 45561 } 45562 } 45563 yyj17++ 45564 if yyhl17 { 45565 yyb17 = yyj17 > l 45566 } else { 45567 yyb17 = r.CheckBreak() 45568 } 45569 if yyb17 { 45570 r.ReadArrayEnd() 45571 return 45572 } 45573 r.ReadArrayElem() 45574 if r.TryDecodeAsNil() { 45575 if true && x.Job != nil { 45576 x.Job = nil 45577 } 45578 } else { 45579 if x.Job == nil { 45580 x.Job = new(Job) 45581 } 45582 45583 x.Job.CodecDecodeSelf(d) 45584 } 45585 yyj17++ 45586 if yyhl17 { 45587 yyb17 = yyj17 > l 45588 } else { 45589 yyb17 = r.CheckBreak() 45590 } 45591 if yyb17 { 45592 r.ReadArrayEnd() 45593 return 45594 } 45595 r.ReadArrayElem() 45596 if r.TryDecodeAsNil() { 45597 x.WriteRequest.Region = "" 45598 } else { 45599 x.Region = (string)(r.DecodeString()) 45600 } 45601 yyj17++ 45602 if yyhl17 { 45603 yyb17 = yyj17 > l 45604 } else { 45605 yyb17 = r.CheckBreak() 45606 } 45607 if yyb17 { 45608 r.ReadArrayEnd() 45609 return 45610 } 45611 r.ReadArrayElem() 45612 if r.TryDecodeAsNil() { 45613 x.WriteRequest.Namespace = "" 45614 } else { 45615 x.Namespace = (string)(r.DecodeString()) 45616 } 45617 yyj17++ 45618 if yyhl17 { 45619 yyb17 = yyj17 > l 45620 } else { 45621 yyb17 = r.CheckBreak() 45622 } 45623 if yyb17 { 45624 r.ReadArrayEnd() 45625 return 45626 } 45627 r.ReadArrayElem() 45628 if r.TryDecodeAsNil() { 45629 x.WriteRequest.AuthToken = "" 45630 } else { 45631 x.AuthToken = (string)(r.DecodeString()) 45632 } 45633 yyj17++ 45634 if yyhl17 { 45635 yyb17 = yyj17 > l 45636 } else { 45637 yyb17 = r.CheckBreak() 45638 } 45639 if yyb17 { 45640 r.ReadArrayEnd() 45641 return 45642 } 45643 r.ReadArrayElem() 45644 if r.TryDecodeAsNil() { 45645 x.WriteRequest.InternalRpcInfo.Forwarded = false 45646 } else { 45647 x.Forwarded = (bool)(r.DecodeBool()) 45648 } 45649 for { 45650 yyj17++ 45651 if yyhl17 { 45652 yyb17 = yyj17 > l 45653 } else { 45654 yyb17 = r.CheckBreak() 45655 } 45656 if yyb17 { 45657 break 45658 } 45659 r.ReadArrayElem() 45660 z.DecStructFieldNotFound(yyj17-1, "") 45661 } 45662 r.ReadArrayEnd() 45663 } 45664 45665 func (x *AllocUpdateDesiredTransitionRequest) CodecEncodeSelf(e *codec1978.Encoder) { 45666 var h codecSelfer100 45667 z, r := codec1978.GenHelperEncoder(e) 45668 _, _, _ = h, z, r 45669 if x == nil { 45670 r.EncodeNil() 45671 } else { 45672 if false { 45673 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45674 z.EncExtension(x, yyxt1) 45675 } else { 45676 yysep2 := !z.EncBinary() 45677 yy2arr2 := z.EncBasicHandle().StructToArray 45678 _, _ = yysep2, yy2arr2 45679 const yyr2 bool = false // struct tag has 'toArray' 45680 if yyr2 || yy2arr2 { 45681 r.WriteArrayStart(6) 45682 } else { 45683 r.WriteMapStart(6) 45684 } 45685 if yyr2 || yy2arr2 { 45686 r.WriteArrayElem() 45687 if x.Allocs == nil { 45688 r.EncodeNil() 45689 } else { 45690 if false { 45691 } else { 45692 h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) 45693 } 45694 } 45695 } else { 45696 r.WriteMapElemKey() 45697 if z.IsJSONHandle() { 45698 z.WriteStr("\"Allocs\"") 45699 } else { 45700 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 45701 } 45702 r.WriteMapElemValue() 45703 if x.Allocs == nil { 45704 r.EncodeNil() 45705 } else { 45706 if false { 45707 } else { 45708 h.encMapstringPtrtoDesiredTransition((map[string]*DesiredTransition)(x.Allocs), e) 45709 } 45710 } 45711 } 45712 if yyr2 || yy2arr2 { 45713 r.WriteArrayElem() 45714 if x.Evals == nil { 45715 r.EncodeNil() 45716 } else { 45717 if false { 45718 } else { 45719 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 45720 } 45721 } 45722 } else { 45723 r.WriteMapElemKey() 45724 if z.IsJSONHandle() { 45725 z.WriteStr("\"Evals\"") 45726 } else { 45727 r.EncodeStringEnc(codecSelferCcUTF8100, `Evals`) 45728 } 45729 r.WriteMapElemValue() 45730 if x.Evals == nil { 45731 r.EncodeNil() 45732 } else { 45733 if false { 45734 } else { 45735 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evals), e) 45736 } 45737 } 45738 } 45739 if yyr2 || yy2arr2 { 45740 r.WriteArrayElem() 45741 if false { 45742 } else { 45743 if z.EncBasicHandle().StringToRaw { 45744 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45745 } else { 45746 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45747 } 45748 } 45749 } else { 45750 r.WriteMapElemKey() 45751 if z.IsJSONHandle() { 45752 z.WriteStr("\"Region\"") 45753 } else { 45754 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 45755 } 45756 r.WriteMapElemValue() 45757 if false { 45758 } else { 45759 if z.EncBasicHandle().StringToRaw { 45760 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 45761 } else { 45762 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 45763 } 45764 } 45765 } 45766 if yyr2 || yy2arr2 { 45767 r.WriteArrayElem() 45768 if false { 45769 } else { 45770 if z.EncBasicHandle().StringToRaw { 45771 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45772 } else { 45773 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45774 } 45775 } 45776 } else { 45777 r.WriteMapElemKey() 45778 if z.IsJSONHandle() { 45779 z.WriteStr("\"Namespace\"") 45780 } else { 45781 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 45782 } 45783 r.WriteMapElemValue() 45784 if false { 45785 } else { 45786 if z.EncBasicHandle().StringToRaw { 45787 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 45788 } else { 45789 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 45790 } 45791 } 45792 } 45793 if yyr2 || yy2arr2 { 45794 r.WriteArrayElem() 45795 if false { 45796 } else { 45797 if z.EncBasicHandle().StringToRaw { 45798 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45799 } else { 45800 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45801 } 45802 } 45803 } else { 45804 r.WriteMapElemKey() 45805 if z.IsJSONHandle() { 45806 z.WriteStr("\"AuthToken\"") 45807 } else { 45808 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 45809 } 45810 r.WriteMapElemValue() 45811 if false { 45812 } else { 45813 if z.EncBasicHandle().StringToRaw { 45814 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 45815 } else { 45816 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 45817 } 45818 } 45819 } 45820 if yyr2 || yy2arr2 { 45821 r.WriteArrayElem() 45822 if false { 45823 } else { 45824 r.EncodeBool(bool(x.Forwarded)) 45825 } 45826 } else { 45827 r.WriteMapElemKey() 45828 if z.IsJSONHandle() { 45829 z.WriteStr("\"Forwarded\"") 45830 } else { 45831 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 45832 } 45833 r.WriteMapElemValue() 45834 if false { 45835 } else { 45836 r.EncodeBool(bool(x.Forwarded)) 45837 } 45838 } 45839 if yyr2 || yy2arr2 { 45840 r.WriteArrayEnd() 45841 } else { 45842 r.WriteMapEnd() 45843 } 45844 } 45845 } 45846 } 45847 45848 func (x *AllocUpdateDesiredTransitionRequest) CodecDecodeSelf(d *codec1978.Decoder) { 45849 var h codecSelfer100 45850 z, r := codec1978.GenHelperDecoder(d) 45851 _, _, _ = h, z, r 45852 if false { 45853 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 45854 z.DecExtension(x, yyxt1) 45855 } else { 45856 yyct2 := r.ContainerType() 45857 if yyct2 == codecSelferValueTypeMap100 { 45858 yyl2 := r.ReadMapStart() 45859 if yyl2 == 0 { 45860 r.ReadMapEnd() 45861 } else { 45862 x.codecDecodeSelfFromMap(yyl2, d) 45863 } 45864 } else if yyct2 == codecSelferValueTypeArray100 { 45865 yyl2 := r.ReadArrayStart() 45866 if yyl2 == 0 { 45867 r.ReadArrayEnd() 45868 } else { 45869 x.codecDecodeSelfFromArray(yyl2, d) 45870 } 45871 } else { 45872 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 45873 } 45874 } 45875 } 45876 45877 func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 45878 var h codecSelfer100 45879 z, r := codec1978.GenHelperDecoder(d) 45880 _, _, _ = h, z, r 45881 var yyhl3 bool = l >= 0 45882 for yyj3 := 0; ; yyj3++ { 45883 if yyhl3 { 45884 if yyj3 >= l { 45885 break 45886 } 45887 } else { 45888 if r.CheckBreak() { 45889 break 45890 } 45891 } 45892 r.ReadMapElemKey() 45893 yys3 := z.StringView(r.DecodeStringAsBytes()) 45894 r.ReadMapElemValue() 45895 switch yys3 { 45896 case "Allocs": 45897 if r.TryDecodeAsNil() { 45898 x.Allocs = nil 45899 } else { 45900 if false { 45901 } else { 45902 h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) 45903 } 45904 } 45905 case "Evals": 45906 if r.TryDecodeAsNil() { 45907 x.Evals = nil 45908 } else { 45909 if false { 45910 } else { 45911 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 45912 } 45913 } 45914 case "Region": 45915 if r.TryDecodeAsNil() { 45916 x.WriteRequest.Region = "" 45917 } else { 45918 x.Region = (string)(r.DecodeString()) 45919 } 45920 case "Namespace": 45921 if r.TryDecodeAsNil() { 45922 x.WriteRequest.Namespace = "" 45923 } else { 45924 x.Namespace = (string)(r.DecodeString()) 45925 } 45926 case "AuthToken": 45927 if r.TryDecodeAsNil() { 45928 x.WriteRequest.AuthToken = "" 45929 } else { 45930 x.AuthToken = (string)(r.DecodeString()) 45931 } 45932 case "Forwarded": 45933 if r.TryDecodeAsNil() { 45934 x.WriteRequest.InternalRpcInfo.Forwarded = false 45935 } else { 45936 x.Forwarded = (bool)(r.DecodeBool()) 45937 } 45938 default: 45939 z.DecStructFieldNotFound(-1, yys3) 45940 } // end switch yys3 45941 } // end for yyj3 45942 r.ReadMapEnd() 45943 } 45944 45945 func (x *AllocUpdateDesiredTransitionRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 45946 var h codecSelfer100 45947 z, r := codec1978.GenHelperDecoder(d) 45948 _, _, _ = h, z, r 45949 var yyj12 int 45950 var yyb12 bool 45951 var yyhl12 bool = l >= 0 45952 yyj12++ 45953 if yyhl12 { 45954 yyb12 = yyj12 > l 45955 } else { 45956 yyb12 = r.CheckBreak() 45957 } 45958 if yyb12 { 45959 r.ReadArrayEnd() 45960 return 45961 } 45962 r.ReadArrayElem() 45963 if r.TryDecodeAsNil() { 45964 x.Allocs = nil 45965 } else { 45966 if false { 45967 } else { 45968 h.decMapstringPtrtoDesiredTransition((*map[string]*DesiredTransition)(&x.Allocs), d) 45969 } 45970 } 45971 yyj12++ 45972 if yyhl12 { 45973 yyb12 = yyj12 > l 45974 } else { 45975 yyb12 = r.CheckBreak() 45976 } 45977 if yyb12 { 45978 r.ReadArrayEnd() 45979 return 45980 } 45981 r.ReadArrayElem() 45982 if r.TryDecodeAsNil() { 45983 x.Evals = nil 45984 } else { 45985 if false { 45986 } else { 45987 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evals), d) 45988 } 45989 } 45990 yyj12++ 45991 if yyhl12 { 45992 yyb12 = yyj12 > l 45993 } else { 45994 yyb12 = r.CheckBreak() 45995 } 45996 if yyb12 { 45997 r.ReadArrayEnd() 45998 return 45999 } 46000 r.ReadArrayElem() 46001 if r.TryDecodeAsNil() { 46002 x.WriteRequest.Region = "" 46003 } else { 46004 x.Region = (string)(r.DecodeString()) 46005 } 46006 yyj12++ 46007 if yyhl12 { 46008 yyb12 = yyj12 > l 46009 } else { 46010 yyb12 = r.CheckBreak() 46011 } 46012 if yyb12 { 46013 r.ReadArrayEnd() 46014 return 46015 } 46016 r.ReadArrayElem() 46017 if r.TryDecodeAsNil() { 46018 x.WriteRequest.Namespace = "" 46019 } else { 46020 x.Namespace = (string)(r.DecodeString()) 46021 } 46022 yyj12++ 46023 if yyhl12 { 46024 yyb12 = yyj12 > l 46025 } else { 46026 yyb12 = r.CheckBreak() 46027 } 46028 if yyb12 { 46029 r.ReadArrayEnd() 46030 return 46031 } 46032 r.ReadArrayElem() 46033 if r.TryDecodeAsNil() { 46034 x.WriteRequest.AuthToken = "" 46035 } else { 46036 x.AuthToken = (string)(r.DecodeString()) 46037 } 46038 yyj12++ 46039 if yyhl12 { 46040 yyb12 = yyj12 > l 46041 } else { 46042 yyb12 = r.CheckBreak() 46043 } 46044 if yyb12 { 46045 r.ReadArrayEnd() 46046 return 46047 } 46048 r.ReadArrayElem() 46049 if r.TryDecodeAsNil() { 46050 x.WriteRequest.InternalRpcInfo.Forwarded = false 46051 } else { 46052 x.Forwarded = (bool)(r.DecodeBool()) 46053 } 46054 for { 46055 yyj12++ 46056 if yyhl12 { 46057 yyb12 = yyj12 > l 46058 } else { 46059 yyb12 = r.CheckBreak() 46060 } 46061 if yyb12 { 46062 break 46063 } 46064 r.ReadArrayElem() 46065 z.DecStructFieldNotFound(yyj12-1, "") 46066 } 46067 r.ReadArrayEnd() 46068 } 46069 46070 func (x *AllocStopRequest) CodecEncodeSelf(e *codec1978.Encoder) { 46071 var h codecSelfer100 46072 z, r := codec1978.GenHelperEncoder(e) 46073 _, _, _ = h, z, r 46074 if x == nil { 46075 r.EncodeNil() 46076 } else { 46077 if false { 46078 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46079 z.EncExtension(x, yyxt1) 46080 } else { 46081 yysep2 := !z.EncBinary() 46082 yy2arr2 := z.EncBasicHandle().StructToArray 46083 _, _ = yysep2, yy2arr2 46084 const yyr2 bool = false // struct tag has 'toArray' 46085 if yyr2 || yy2arr2 { 46086 r.WriteArrayStart(5) 46087 } else { 46088 r.WriteMapStart(5) 46089 } 46090 if yyr2 || yy2arr2 { 46091 r.WriteArrayElem() 46092 if false { 46093 } else { 46094 if z.EncBasicHandle().StringToRaw { 46095 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 46096 } else { 46097 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 46098 } 46099 } 46100 } else { 46101 r.WriteMapElemKey() 46102 if z.IsJSONHandle() { 46103 z.WriteStr("\"AllocID\"") 46104 } else { 46105 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 46106 } 46107 r.WriteMapElemValue() 46108 if false { 46109 } else { 46110 if z.EncBasicHandle().StringToRaw { 46111 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 46112 } else { 46113 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 46114 } 46115 } 46116 } 46117 if yyr2 || yy2arr2 { 46118 r.WriteArrayElem() 46119 if false { 46120 } else { 46121 if z.EncBasicHandle().StringToRaw { 46122 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46123 } else { 46124 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46125 } 46126 } 46127 } else { 46128 r.WriteMapElemKey() 46129 if z.IsJSONHandle() { 46130 z.WriteStr("\"Region\"") 46131 } else { 46132 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 46133 } 46134 r.WriteMapElemValue() 46135 if false { 46136 } else { 46137 if z.EncBasicHandle().StringToRaw { 46138 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46139 } else { 46140 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46141 } 46142 } 46143 } 46144 if yyr2 || yy2arr2 { 46145 r.WriteArrayElem() 46146 if false { 46147 } else { 46148 if z.EncBasicHandle().StringToRaw { 46149 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46150 } else { 46151 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46152 } 46153 } 46154 } else { 46155 r.WriteMapElemKey() 46156 if z.IsJSONHandle() { 46157 z.WriteStr("\"Namespace\"") 46158 } else { 46159 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 46160 } 46161 r.WriteMapElemValue() 46162 if false { 46163 } else { 46164 if z.EncBasicHandle().StringToRaw { 46165 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46166 } else { 46167 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46168 } 46169 } 46170 } 46171 if yyr2 || yy2arr2 { 46172 r.WriteArrayElem() 46173 if false { 46174 } else { 46175 if z.EncBasicHandle().StringToRaw { 46176 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46177 } else { 46178 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46179 } 46180 } 46181 } else { 46182 r.WriteMapElemKey() 46183 if z.IsJSONHandle() { 46184 z.WriteStr("\"AuthToken\"") 46185 } else { 46186 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 46187 } 46188 r.WriteMapElemValue() 46189 if false { 46190 } else { 46191 if z.EncBasicHandle().StringToRaw { 46192 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46193 } else { 46194 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46195 } 46196 } 46197 } 46198 if yyr2 || yy2arr2 { 46199 r.WriteArrayElem() 46200 if false { 46201 } else { 46202 r.EncodeBool(bool(x.Forwarded)) 46203 } 46204 } else { 46205 r.WriteMapElemKey() 46206 if z.IsJSONHandle() { 46207 z.WriteStr("\"Forwarded\"") 46208 } else { 46209 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 46210 } 46211 r.WriteMapElemValue() 46212 if false { 46213 } else { 46214 r.EncodeBool(bool(x.Forwarded)) 46215 } 46216 } 46217 if yyr2 || yy2arr2 { 46218 r.WriteArrayEnd() 46219 } else { 46220 r.WriteMapEnd() 46221 } 46222 } 46223 } 46224 } 46225 46226 func (x *AllocStopRequest) CodecDecodeSelf(d *codec1978.Decoder) { 46227 var h codecSelfer100 46228 z, r := codec1978.GenHelperDecoder(d) 46229 _, _, _ = h, z, r 46230 if false { 46231 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46232 z.DecExtension(x, yyxt1) 46233 } else { 46234 yyct2 := r.ContainerType() 46235 if yyct2 == codecSelferValueTypeMap100 { 46236 yyl2 := r.ReadMapStart() 46237 if yyl2 == 0 { 46238 r.ReadMapEnd() 46239 } else { 46240 x.codecDecodeSelfFromMap(yyl2, d) 46241 } 46242 } else if yyct2 == codecSelferValueTypeArray100 { 46243 yyl2 := r.ReadArrayStart() 46244 if yyl2 == 0 { 46245 r.ReadArrayEnd() 46246 } else { 46247 x.codecDecodeSelfFromArray(yyl2, d) 46248 } 46249 } else { 46250 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 46251 } 46252 } 46253 } 46254 46255 func (x *AllocStopRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 46256 var h codecSelfer100 46257 z, r := codec1978.GenHelperDecoder(d) 46258 _, _, _ = h, z, r 46259 var yyhl3 bool = l >= 0 46260 for yyj3 := 0; ; yyj3++ { 46261 if yyhl3 { 46262 if yyj3 >= l { 46263 break 46264 } 46265 } else { 46266 if r.CheckBreak() { 46267 break 46268 } 46269 } 46270 r.ReadMapElemKey() 46271 yys3 := z.StringView(r.DecodeStringAsBytes()) 46272 r.ReadMapElemValue() 46273 switch yys3 { 46274 case "AllocID": 46275 if r.TryDecodeAsNil() { 46276 x.AllocID = "" 46277 } else { 46278 x.AllocID = (string)(r.DecodeString()) 46279 } 46280 case "Region": 46281 if r.TryDecodeAsNil() { 46282 x.WriteRequest.Region = "" 46283 } else { 46284 x.Region = (string)(r.DecodeString()) 46285 } 46286 case "Namespace": 46287 if r.TryDecodeAsNil() { 46288 x.WriteRequest.Namespace = "" 46289 } else { 46290 x.Namespace = (string)(r.DecodeString()) 46291 } 46292 case "AuthToken": 46293 if r.TryDecodeAsNil() { 46294 x.WriteRequest.AuthToken = "" 46295 } else { 46296 x.AuthToken = (string)(r.DecodeString()) 46297 } 46298 case "Forwarded": 46299 if r.TryDecodeAsNil() { 46300 x.WriteRequest.InternalRpcInfo.Forwarded = false 46301 } else { 46302 x.Forwarded = (bool)(r.DecodeBool()) 46303 } 46304 default: 46305 z.DecStructFieldNotFound(-1, yys3) 46306 } // end switch yys3 46307 } // end for yyj3 46308 r.ReadMapEnd() 46309 } 46310 46311 func (x *AllocStopRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 46312 var h codecSelfer100 46313 z, r := codec1978.GenHelperDecoder(d) 46314 _, _, _ = h, z, r 46315 var yyj9 int 46316 var yyb9 bool 46317 var yyhl9 bool = l >= 0 46318 yyj9++ 46319 if yyhl9 { 46320 yyb9 = yyj9 > l 46321 } else { 46322 yyb9 = r.CheckBreak() 46323 } 46324 if yyb9 { 46325 r.ReadArrayEnd() 46326 return 46327 } 46328 r.ReadArrayElem() 46329 if r.TryDecodeAsNil() { 46330 x.AllocID = "" 46331 } else { 46332 x.AllocID = (string)(r.DecodeString()) 46333 } 46334 yyj9++ 46335 if yyhl9 { 46336 yyb9 = yyj9 > l 46337 } else { 46338 yyb9 = r.CheckBreak() 46339 } 46340 if yyb9 { 46341 r.ReadArrayEnd() 46342 return 46343 } 46344 r.ReadArrayElem() 46345 if r.TryDecodeAsNil() { 46346 x.WriteRequest.Region = "" 46347 } else { 46348 x.Region = (string)(r.DecodeString()) 46349 } 46350 yyj9++ 46351 if yyhl9 { 46352 yyb9 = yyj9 > l 46353 } else { 46354 yyb9 = r.CheckBreak() 46355 } 46356 if yyb9 { 46357 r.ReadArrayEnd() 46358 return 46359 } 46360 r.ReadArrayElem() 46361 if r.TryDecodeAsNil() { 46362 x.WriteRequest.Namespace = "" 46363 } else { 46364 x.Namespace = (string)(r.DecodeString()) 46365 } 46366 yyj9++ 46367 if yyhl9 { 46368 yyb9 = yyj9 > l 46369 } else { 46370 yyb9 = r.CheckBreak() 46371 } 46372 if yyb9 { 46373 r.ReadArrayEnd() 46374 return 46375 } 46376 r.ReadArrayElem() 46377 if r.TryDecodeAsNil() { 46378 x.WriteRequest.AuthToken = "" 46379 } else { 46380 x.AuthToken = (string)(r.DecodeString()) 46381 } 46382 yyj9++ 46383 if yyhl9 { 46384 yyb9 = yyj9 > l 46385 } else { 46386 yyb9 = r.CheckBreak() 46387 } 46388 if yyb9 { 46389 r.ReadArrayEnd() 46390 return 46391 } 46392 r.ReadArrayElem() 46393 if r.TryDecodeAsNil() { 46394 x.WriteRequest.InternalRpcInfo.Forwarded = false 46395 } else { 46396 x.Forwarded = (bool)(r.DecodeBool()) 46397 } 46398 for { 46399 yyj9++ 46400 if yyhl9 { 46401 yyb9 = yyj9 > l 46402 } else { 46403 yyb9 = r.CheckBreak() 46404 } 46405 if yyb9 { 46406 break 46407 } 46408 r.ReadArrayElem() 46409 z.DecStructFieldNotFound(yyj9-1, "") 46410 } 46411 r.ReadArrayEnd() 46412 } 46413 46414 func (x *AllocStopResponse) CodecEncodeSelf(e *codec1978.Encoder) { 46415 var h codecSelfer100 46416 z, r := codec1978.GenHelperEncoder(e) 46417 _, _, _ = h, z, r 46418 if x == nil { 46419 r.EncodeNil() 46420 } else { 46421 if false { 46422 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46423 z.EncExtension(x, yyxt1) 46424 } else { 46425 yysep2 := !z.EncBinary() 46426 yy2arr2 := z.EncBasicHandle().StructToArray 46427 _, _ = yysep2, yy2arr2 46428 const yyr2 bool = false // struct tag has 'toArray' 46429 if yyr2 || yy2arr2 { 46430 r.WriteArrayStart(2) 46431 } else { 46432 r.WriteMapStart(2) 46433 } 46434 if yyr2 || yy2arr2 { 46435 r.WriteArrayElem() 46436 if false { 46437 } else { 46438 if z.EncBasicHandle().StringToRaw { 46439 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 46440 } else { 46441 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 46442 } 46443 } 46444 } else { 46445 r.WriteMapElemKey() 46446 if z.IsJSONHandle() { 46447 z.WriteStr("\"EvalID\"") 46448 } else { 46449 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 46450 } 46451 r.WriteMapElemValue() 46452 if false { 46453 } else { 46454 if z.EncBasicHandle().StringToRaw { 46455 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 46456 } else { 46457 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 46458 } 46459 } 46460 } 46461 if yyr2 || yy2arr2 { 46462 r.WriteArrayElem() 46463 if false { 46464 } else { 46465 r.EncodeUint(uint64(x.Index)) 46466 } 46467 } else { 46468 r.WriteMapElemKey() 46469 if z.IsJSONHandle() { 46470 z.WriteStr("\"Index\"") 46471 } else { 46472 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 46473 } 46474 r.WriteMapElemValue() 46475 if false { 46476 } else { 46477 r.EncodeUint(uint64(x.Index)) 46478 } 46479 } 46480 if yyr2 || yy2arr2 { 46481 r.WriteArrayEnd() 46482 } else { 46483 r.WriteMapEnd() 46484 } 46485 } 46486 } 46487 } 46488 46489 func (x *AllocStopResponse) CodecDecodeSelf(d *codec1978.Decoder) { 46490 var h codecSelfer100 46491 z, r := codec1978.GenHelperDecoder(d) 46492 _, _, _ = h, z, r 46493 if false { 46494 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46495 z.DecExtension(x, yyxt1) 46496 } else { 46497 yyct2 := r.ContainerType() 46498 if yyct2 == codecSelferValueTypeMap100 { 46499 yyl2 := r.ReadMapStart() 46500 if yyl2 == 0 { 46501 r.ReadMapEnd() 46502 } else { 46503 x.codecDecodeSelfFromMap(yyl2, d) 46504 } 46505 } else if yyct2 == codecSelferValueTypeArray100 { 46506 yyl2 := r.ReadArrayStart() 46507 if yyl2 == 0 { 46508 r.ReadArrayEnd() 46509 } else { 46510 x.codecDecodeSelfFromArray(yyl2, d) 46511 } 46512 } else { 46513 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 46514 } 46515 } 46516 } 46517 46518 func (x *AllocStopResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 46519 var h codecSelfer100 46520 z, r := codec1978.GenHelperDecoder(d) 46521 _, _, _ = h, z, r 46522 var yyhl3 bool = l >= 0 46523 for yyj3 := 0; ; yyj3++ { 46524 if yyhl3 { 46525 if yyj3 >= l { 46526 break 46527 } 46528 } else { 46529 if r.CheckBreak() { 46530 break 46531 } 46532 } 46533 r.ReadMapElemKey() 46534 yys3 := z.StringView(r.DecodeStringAsBytes()) 46535 r.ReadMapElemValue() 46536 switch yys3 { 46537 case "EvalID": 46538 if r.TryDecodeAsNil() { 46539 x.EvalID = "" 46540 } else { 46541 x.EvalID = (string)(r.DecodeString()) 46542 } 46543 case "Index": 46544 if r.TryDecodeAsNil() { 46545 x.WriteMeta.Index = 0 46546 } else { 46547 x.Index = (uint64)(r.DecodeUint64()) 46548 } 46549 default: 46550 z.DecStructFieldNotFound(-1, yys3) 46551 } // end switch yys3 46552 } // end for yyj3 46553 r.ReadMapEnd() 46554 } 46555 46556 func (x *AllocStopResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 46557 var h codecSelfer100 46558 z, r := codec1978.GenHelperDecoder(d) 46559 _, _, _ = h, z, r 46560 var yyj6 int 46561 var yyb6 bool 46562 var yyhl6 bool = l >= 0 46563 yyj6++ 46564 if yyhl6 { 46565 yyb6 = yyj6 > l 46566 } else { 46567 yyb6 = r.CheckBreak() 46568 } 46569 if yyb6 { 46570 r.ReadArrayEnd() 46571 return 46572 } 46573 r.ReadArrayElem() 46574 if r.TryDecodeAsNil() { 46575 x.EvalID = "" 46576 } else { 46577 x.EvalID = (string)(r.DecodeString()) 46578 } 46579 yyj6++ 46580 if yyhl6 { 46581 yyb6 = yyj6 > l 46582 } else { 46583 yyb6 = r.CheckBreak() 46584 } 46585 if yyb6 { 46586 r.ReadArrayEnd() 46587 return 46588 } 46589 r.ReadArrayElem() 46590 if r.TryDecodeAsNil() { 46591 x.WriteMeta.Index = 0 46592 } else { 46593 x.Index = (uint64)(r.DecodeUint64()) 46594 } 46595 for { 46596 yyj6++ 46597 if yyhl6 { 46598 yyb6 = yyj6 > l 46599 } else { 46600 yyb6 = r.CheckBreak() 46601 } 46602 if yyb6 { 46603 break 46604 } 46605 r.ReadArrayElem() 46606 z.DecStructFieldNotFound(yyj6-1, "") 46607 } 46608 r.ReadArrayEnd() 46609 } 46610 46611 func (x *AllocListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 46612 var h codecSelfer100 46613 z, r := codec1978.GenHelperEncoder(e) 46614 _, _, _ = h, z, r 46615 if x == nil { 46616 r.EncodeNil() 46617 } else { 46618 if false { 46619 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46620 z.EncExtension(x, yyxt1) 46621 } else { 46622 yysep2 := !z.EncBinary() 46623 yy2arr2 := z.EncBasicHandle().StructToArray 46624 _, _ = yysep2, yy2arr2 46625 const yyr2 bool = false // struct tag has 'toArray' 46626 if yyr2 || yy2arr2 { 46627 r.WriteArrayStart(8) 46628 } else { 46629 r.WriteMapStart(8) 46630 } 46631 if yyr2 || yy2arr2 { 46632 r.WriteArrayElem() 46633 if false { 46634 } else { 46635 if z.EncBasicHandle().StringToRaw { 46636 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46637 } else { 46638 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46639 } 46640 } 46641 } else { 46642 r.WriteMapElemKey() 46643 if z.IsJSONHandle() { 46644 z.WriteStr("\"Region\"") 46645 } else { 46646 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 46647 } 46648 r.WriteMapElemValue() 46649 if false { 46650 } else { 46651 if z.EncBasicHandle().StringToRaw { 46652 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 46653 } else { 46654 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 46655 } 46656 } 46657 } 46658 if yyr2 || yy2arr2 { 46659 r.WriteArrayElem() 46660 if false { 46661 } else { 46662 if z.EncBasicHandle().StringToRaw { 46663 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46664 } else { 46665 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46666 } 46667 } 46668 } else { 46669 r.WriteMapElemKey() 46670 if z.IsJSONHandle() { 46671 z.WriteStr("\"Namespace\"") 46672 } else { 46673 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 46674 } 46675 r.WriteMapElemValue() 46676 if false { 46677 } else { 46678 if z.EncBasicHandle().StringToRaw { 46679 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 46680 } else { 46681 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 46682 } 46683 } 46684 } 46685 if yyr2 || yy2arr2 { 46686 r.WriteArrayElem() 46687 if false { 46688 } else { 46689 r.EncodeUint(uint64(x.MinQueryIndex)) 46690 } 46691 } else { 46692 r.WriteMapElemKey() 46693 if z.IsJSONHandle() { 46694 z.WriteStr("\"MinQueryIndex\"") 46695 } else { 46696 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 46697 } 46698 r.WriteMapElemValue() 46699 if false { 46700 } else { 46701 r.EncodeUint(uint64(x.MinQueryIndex)) 46702 } 46703 } 46704 if yyr2 || yy2arr2 { 46705 r.WriteArrayElem() 46706 if false { 46707 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 46708 z.EncExtension(x.MaxQueryTime, yyxt13) 46709 } else { 46710 r.EncodeInt(int64(x.MaxQueryTime)) 46711 } 46712 } else { 46713 r.WriteMapElemKey() 46714 if z.IsJSONHandle() { 46715 z.WriteStr("\"MaxQueryTime\"") 46716 } else { 46717 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 46718 } 46719 r.WriteMapElemValue() 46720 if false { 46721 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 46722 z.EncExtension(x.MaxQueryTime, yyxt14) 46723 } else { 46724 r.EncodeInt(int64(x.MaxQueryTime)) 46725 } 46726 } 46727 if yyr2 || yy2arr2 { 46728 r.WriteArrayElem() 46729 if false { 46730 } else { 46731 r.EncodeBool(bool(x.AllowStale)) 46732 } 46733 } else { 46734 r.WriteMapElemKey() 46735 if z.IsJSONHandle() { 46736 z.WriteStr("\"AllowStale\"") 46737 } else { 46738 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 46739 } 46740 r.WriteMapElemValue() 46741 if false { 46742 } else { 46743 r.EncodeBool(bool(x.AllowStale)) 46744 } 46745 } 46746 if yyr2 || yy2arr2 { 46747 r.WriteArrayElem() 46748 if false { 46749 } else { 46750 if z.EncBasicHandle().StringToRaw { 46751 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46752 } else { 46753 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46754 } 46755 } 46756 } else { 46757 r.WriteMapElemKey() 46758 if z.IsJSONHandle() { 46759 z.WriteStr("\"Prefix\"") 46760 } else { 46761 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 46762 } 46763 r.WriteMapElemValue() 46764 if false { 46765 } else { 46766 if z.EncBasicHandle().StringToRaw { 46767 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 46768 } else { 46769 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 46770 } 46771 } 46772 } 46773 if yyr2 || yy2arr2 { 46774 r.WriteArrayElem() 46775 if false { 46776 } else { 46777 if z.EncBasicHandle().StringToRaw { 46778 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46779 } else { 46780 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46781 } 46782 } 46783 } else { 46784 r.WriteMapElemKey() 46785 if z.IsJSONHandle() { 46786 z.WriteStr("\"AuthToken\"") 46787 } else { 46788 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 46789 } 46790 r.WriteMapElemValue() 46791 if false { 46792 } else { 46793 if z.EncBasicHandle().StringToRaw { 46794 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 46795 } else { 46796 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 46797 } 46798 } 46799 } 46800 if yyr2 || yy2arr2 { 46801 r.WriteArrayElem() 46802 if false { 46803 } else { 46804 r.EncodeBool(bool(x.Forwarded)) 46805 } 46806 } else { 46807 r.WriteMapElemKey() 46808 if z.IsJSONHandle() { 46809 z.WriteStr("\"Forwarded\"") 46810 } else { 46811 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 46812 } 46813 r.WriteMapElemValue() 46814 if false { 46815 } else { 46816 r.EncodeBool(bool(x.Forwarded)) 46817 } 46818 } 46819 if yyr2 || yy2arr2 { 46820 r.WriteArrayEnd() 46821 } else { 46822 r.WriteMapEnd() 46823 } 46824 } 46825 } 46826 } 46827 46828 func (x *AllocListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 46829 var h codecSelfer100 46830 z, r := codec1978.GenHelperDecoder(d) 46831 _, _, _ = h, z, r 46832 if false { 46833 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 46834 z.DecExtension(x, yyxt1) 46835 } else { 46836 yyct2 := r.ContainerType() 46837 if yyct2 == codecSelferValueTypeMap100 { 46838 yyl2 := r.ReadMapStart() 46839 if yyl2 == 0 { 46840 r.ReadMapEnd() 46841 } else { 46842 x.codecDecodeSelfFromMap(yyl2, d) 46843 } 46844 } else if yyct2 == codecSelferValueTypeArray100 { 46845 yyl2 := r.ReadArrayStart() 46846 if yyl2 == 0 { 46847 r.ReadArrayEnd() 46848 } else { 46849 x.codecDecodeSelfFromArray(yyl2, d) 46850 } 46851 } else { 46852 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 46853 } 46854 } 46855 } 46856 46857 func (x *AllocListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 46858 var h codecSelfer100 46859 z, r := codec1978.GenHelperDecoder(d) 46860 _, _, _ = h, z, r 46861 var yyhl3 bool = l >= 0 46862 for yyj3 := 0; ; yyj3++ { 46863 if yyhl3 { 46864 if yyj3 >= l { 46865 break 46866 } 46867 } else { 46868 if r.CheckBreak() { 46869 break 46870 } 46871 } 46872 r.ReadMapElemKey() 46873 yys3 := z.StringView(r.DecodeStringAsBytes()) 46874 r.ReadMapElemValue() 46875 switch yys3 { 46876 case "Region": 46877 if r.TryDecodeAsNil() { 46878 x.QueryOptions.Region = "" 46879 } else { 46880 x.Region = (string)(r.DecodeString()) 46881 } 46882 case "Namespace": 46883 if r.TryDecodeAsNil() { 46884 x.QueryOptions.Namespace = "" 46885 } else { 46886 x.Namespace = (string)(r.DecodeString()) 46887 } 46888 case "MinQueryIndex": 46889 if r.TryDecodeAsNil() { 46890 x.QueryOptions.MinQueryIndex = 0 46891 } else { 46892 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 46893 } 46894 case "MaxQueryTime": 46895 if r.TryDecodeAsNil() { 46896 x.QueryOptions.MaxQueryTime = 0 46897 } else { 46898 if false { 46899 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 46900 z.DecExtension(x.MaxQueryTime, yyxt8) 46901 } else { 46902 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 46903 } 46904 } 46905 case "AllowStale": 46906 if r.TryDecodeAsNil() { 46907 x.QueryOptions.AllowStale = false 46908 } else { 46909 x.AllowStale = (bool)(r.DecodeBool()) 46910 } 46911 case "Prefix": 46912 if r.TryDecodeAsNil() { 46913 x.QueryOptions.Prefix = "" 46914 } else { 46915 x.Prefix = (string)(r.DecodeString()) 46916 } 46917 case "AuthToken": 46918 if r.TryDecodeAsNil() { 46919 x.QueryOptions.AuthToken = "" 46920 } else { 46921 x.AuthToken = (string)(r.DecodeString()) 46922 } 46923 case "Forwarded": 46924 if r.TryDecodeAsNil() { 46925 x.QueryOptions.InternalRpcInfo.Forwarded = false 46926 } else { 46927 x.Forwarded = (bool)(r.DecodeBool()) 46928 } 46929 default: 46930 z.DecStructFieldNotFound(-1, yys3) 46931 } // end switch yys3 46932 } // end for yyj3 46933 r.ReadMapEnd() 46934 } 46935 46936 func (x *AllocListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 46937 var h codecSelfer100 46938 z, r := codec1978.GenHelperDecoder(d) 46939 _, _, _ = h, z, r 46940 var yyj13 int 46941 var yyb13 bool 46942 var yyhl13 bool = l >= 0 46943 yyj13++ 46944 if yyhl13 { 46945 yyb13 = yyj13 > l 46946 } else { 46947 yyb13 = r.CheckBreak() 46948 } 46949 if yyb13 { 46950 r.ReadArrayEnd() 46951 return 46952 } 46953 r.ReadArrayElem() 46954 if r.TryDecodeAsNil() { 46955 x.QueryOptions.Region = "" 46956 } else { 46957 x.Region = (string)(r.DecodeString()) 46958 } 46959 yyj13++ 46960 if yyhl13 { 46961 yyb13 = yyj13 > l 46962 } else { 46963 yyb13 = r.CheckBreak() 46964 } 46965 if yyb13 { 46966 r.ReadArrayEnd() 46967 return 46968 } 46969 r.ReadArrayElem() 46970 if r.TryDecodeAsNil() { 46971 x.QueryOptions.Namespace = "" 46972 } else { 46973 x.Namespace = (string)(r.DecodeString()) 46974 } 46975 yyj13++ 46976 if yyhl13 { 46977 yyb13 = yyj13 > l 46978 } else { 46979 yyb13 = r.CheckBreak() 46980 } 46981 if yyb13 { 46982 r.ReadArrayEnd() 46983 return 46984 } 46985 r.ReadArrayElem() 46986 if r.TryDecodeAsNil() { 46987 x.QueryOptions.MinQueryIndex = 0 46988 } else { 46989 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 46990 } 46991 yyj13++ 46992 if yyhl13 { 46993 yyb13 = yyj13 > l 46994 } else { 46995 yyb13 = r.CheckBreak() 46996 } 46997 if yyb13 { 46998 r.ReadArrayEnd() 46999 return 47000 } 47001 r.ReadArrayElem() 47002 if r.TryDecodeAsNil() { 47003 x.QueryOptions.MaxQueryTime = 0 47004 } else { 47005 if false { 47006 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 47007 z.DecExtension(x.MaxQueryTime, yyxt18) 47008 } else { 47009 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47010 } 47011 } 47012 yyj13++ 47013 if yyhl13 { 47014 yyb13 = yyj13 > l 47015 } else { 47016 yyb13 = r.CheckBreak() 47017 } 47018 if yyb13 { 47019 r.ReadArrayEnd() 47020 return 47021 } 47022 r.ReadArrayElem() 47023 if r.TryDecodeAsNil() { 47024 x.QueryOptions.AllowStale = false 47025 } else { 47026 x.AllowStale = (bool)(r.DecodeBool()) 47027 } 47028 yyj13++ 47029 if yyhl13 { 47030 yyb13 = yyj13 > l 47031 } else { 47032 yyb13 = r.CheckBreak() 47033 } 47034 if yyb13 { 47035 r.ReadArrayEnd() 47036 return 47037 } 47038 r.ReadArrayElem() 47039 if r.TryDecodeAsNil() { 47040 x.QueryOptions.Prefix = "" 47041 } else { 47042 x.Prefix = (string)(r.DecodeString()) 47043 } 47044 yyj13++ 47045 if yyhl13 { 47046 yyb13 = yyj13 > l 47047 } else { 47048 yyb13 = r.CheckBreak() 47049 } 47050 if yyb13 { 47051 r.ReadArrayEnd() 47052 return 47053 } 47054 r.ReadArrayElem() 47055 if r.TryDecodeAsNil() { 47056 x.QueryOptions.AuthToken = "" 47057 } else { 47058 x.AuthToken = (string)(r.DecodeString()) 47059 } 47060 yyj13++ 47061 if yyhl13 { 47062 yyb13 = yyj13 > l 47063 } else { 47064 yyb13 = r.CheckBreak() 47065 } 47066 if yyb13 { 47067 r.ReadArrayEnd() 47068 return 47069 } 47070 r.ReadArrayElem() 47071 if r.TryDecodeAsNil() { 47072 x.QueryOptions.InternalRpcInfo.Forwarded = false 47073 } else { 47074 x.Forwarded = (bool)(r.DecodeBool()) 47075 } 47076 for { 47077 yyj13++ 47078 if yyhl13 { 47079 yyb13 = yyj13 > l 47080 } else { 47081 yyb13 = r.CheckBreak() 47082 } 47083 if yyb13 { 47084 break 47085 } 47086 r.ReadArrayElem() 47087 z.DecStructFieldNotFound(yyj13-1, "") 47088 } 47089 r.ReadArrayEnd() 47090 } 47091 47092 func (x *AllocSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 47093 var h codecSelfer100 47094 z, r := codec1978.GenHelperEncoder(e) 47095 _, _, _ = h, z, r 47096 if x == nil { 47097 r.EncodeNil() 47098 } else { 47099 if false { 47100 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47101 z.EncExtension(x, yyxt1) 47102 } else { 47103 yysep2 := !z.EncBinary() 47104 yy2arr2 := z.EncBasicHandle().StructToArray 47105 _, _ = yysep2, yy2arr2 47106 const yyr2 bool = false // struct tag has 'toArray' 47107 if yyr2 || yy2arr2 { 47108 r.WriteArrayStart(9) 47109 } else { 47110 r.WriteMapStart(9) 47111 } 47112 if yyr2 || yy2arr2 { 47113 r.WriteArrayElem() 47114 if false { 47115 } else { 47116 if z.EncBasicHandle().StringToRaw { 47117 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47118 } else { 47119 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47120 } 47121 } 47122 } else { 47123 r.WriteMapElemKey() 47124 if z.IsJSONHandle() { 47125 z.WriteStr("\"AllocID\"") 47126 } else { 47127 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 47128 } 47129 r.WriteMapElemValue() 47130 if false { 47131 } else { 47132 if z.EncBasicHandle().StringToRaw { 47133 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47134 } else { 47135 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47136 } 47137 } 47138 } 47139 if yyr2 || yy2arr2 { 47140 r.WriteArrayElem() 47141 if false { 47142 } else { 47143 if z.EncBasicHandle().StringToRaw { 47144 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47145 } else { 47146 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47147 } 47148 } 47149 } else { 47150 r.WriteMapElemKey() 47151 if z.IsJSONHandle() { 47152 z.WriteStr("\"Region\"") 47153 } else { 47154 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 47155 } 47156 r.WriteMapElemValue() 47157 if false { 47158 } else { 47159 if z.EncBasicHandle().StringToRaw { 47160 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47161 } else { 47162 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47163 } 47164 } 47165 } 47166 if yyr2 || yy2arr2 { 47167 r.WriteArrayElem() 47168 if false { 47169 } else { 47170 if z.EncBasicHandle().StringToRaw { 47171 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47172 } else { 47173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47174 } 47175 } 47176 } else { 47177 r.WriteMapElemKey() 47178 if z.IsJSONHandle() { 47179 z.WriteStr("\"Namespace\"") 47180 } else { 47181 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 47182 } 47183 r.WriteMapElemValue() 47184 if false { 47185 } else { 47186 if z.EncBasicHandle().StringToRaw { 47187 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47188 } else { 47189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47190 } 47191 } 47192 } 47193 if yyr2 || yy2arr2 { 47194 r.WriteArrayElem() 47195 if false { 47196 } else { 47197 r.EncodeUint(uint64(x.MinQueryIndex)) 47198 } 47199 } else { 47200 r.WriteMapElemKey() 47201 if z.IsJSONHandle() { 47202 z.WriteStr("\"MinQueryIndex\"") 47203 } else { 47204 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 47205 } 47206 r.WriteMapElemValue() 47207 if false { 47208 } else { 47209 r.EncodeUint(uint64(x.MinQueryIndex)) 47210 } 47211 } 47212 if yyr2 || yy2arr2 { 47213 r.WriteArrayElem() 47214 if false { 47215 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 47216 z.EncExtension(x.MaxQueryTime, yyxt16) 47217 } else { 47218 r.EncodeInt(int64(x.MaxQueryTime)) 47219 } 47220 } else { 47221 r.WriteMapElemKey() 47222 if z.IsJSONHandle() { 47223 z.WriteStr("\"MaxQueryTime\"") 47224 } else { 47225 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 47226 } 47227 r.WriteMapElemValue() 47228 if false { 47229 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 47230 z.EncExtension(x.MaxQueryTime, yyxt17) 47231 } else { 47232 r.EncodeInt(int64(x.MaxQueryTime)) 47233 } 47234 } 47235 if yyr2 || yy2arr2 { 47236 r.WriteArrayElem() 47237 if false { 47238 } else { 47239 r.EncodeBool(bool(x.AllowStale)) 47240 } 47241 } else { 47242 r.WriteMapElemKey() 47243 if z.IsJSONHandle() { 47244 z.WriteStr("\"AllowStale\"") 47245 } else { 47246 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 47247 } 47248 r.WriteMapElemValue() 47249 if false { 47250 } else { 47251 r.EncodeBool(bool(x.AllowStale)) 47252 } 47253 } 47254 if yyr2 || yy2arr2 { 47255 r.WriteArrayElem() 47256 if false { 47257 } else { 47258 if z.EncBasicHandle().StringToRaw { 47259 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47260 } else { 47261 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47262 } 47263 } 47264 } else { 47265 r.WriteMapElemKey() 47266 if z.IsJSONHandle() { 47267 z.WriteStr("\"Prefix\"") 47268 } else { 47269 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 47270 } 47271 r.WriteMapElemValue() 47272 if false { 47273 } else { 47274 if z.EncBasicHandle().StringToRaw { 47275 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47276 } else { 47277 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47278 } 47279 } 47280 } 47281 if yyr2 || yy2arr2 { 47282 r.WriteArrayElem() 47283 if false { 47284 } else { 47285 if z.EncBasicHandle().StringToRaw { 47286 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47287 } else { 47288 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47289 } 47290 } 47291 } else { 47292 r.WriteMapElemKey() 47293 if z.IsJSONHandle() { 47294 z.WriteStr("\"AuthToken\"") 47295 } else { 47296 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 47297 } 47298 r.WriteMapElemValue() 47299 if false { 47300 } else { 47301 if z.EncBasicHandle().StringToRaw { 47302 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47303 } else { 47304 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47305 } 47306 } 47307 } 47308 if yyr2 || yy2arr2 { 47309 r.WriteArrayElem() 47310 if false { 47311 } else { 47312 r.EncodeBool(bool(x.Forwarded)) 47313 } 47314 } else { 47315 r.WriteMapElemKey() 47316 if z.IsJSONHandle() { 47317 z.WriteStr("\"Forwarded\"") 47318 } else { 47319 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 47320 } 47321 r.WriteMapElemValue() 47322 if false { 47323 } else { 47324 r.EncodeBool(bool(x.Forwarded)) 47325 } 47326 } 47327 if yyr2 || yy2arr2 { 47328 r.WriteArrayEnd() 47329 } else { 47330 r.WriteMapEnd() 47331 } 47332 } 47333 } 47334 } 47335 47336 func (x *AllocSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 47337 var h codecSelfer100 47338 z, r := codec1978.GenHelperDecoder(d) 47339 _, _, _ = h, z, r 47340 if false { 47341 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47342 z.DecExtension(x, yyxt1) 47343 } else { 47344 yyct2 := r.ContainerType() 47345 if yyct2 == codecSelferValueTypeMap100 { 47346 yyl2 := r.ReadMapStart() 47347 if yyl2 == 0 { 47348 r.ReadMapEnd() 47349 } else { 47350 x.codecDecodeSelfFromMap(yyl2, d) 47351 } 47352 } else if yyct2 == codecSelferValueTypeArray100 { 47353 yyl2 := r.ReadArrayStart() 47354 if yyl2 == 0 { 47355 r.ReadArrayEnd() 47356 } else { 47357 x.codecDecodeSelfFromArray(yyl2, d) 47358 } 47359 } else { 47360 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 47361 } 47362 } 47363 } 47364 47365 func (x *AllocSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 47366 var h codecSelfer100 47367 z, r := codec1978.GenHelperDecoder(d) 47368 _, _, _ = h, z, r 47369 var yyhl3 bool = l >= 0 47370 for yyj3 := 0; ; yyj3++ { 47371 if yyhl3 { 47372 if yyj3 >= l { 47373 break 47374 } 47375 } else { 47376 if r.CheckBreak() { 47377 break 47378 } 47379 } 47380 r.ReadMapElemKey() 47381 yys3 := z.StringView(r.DecodeStringAsBytes()) 47382 r.ReadMapElemValue() 47383 switch yys3 { 47384 case "AllocID": 47385 if r.TryDecodeAsNil() { 47386 x.AllocID = "" 47387 } else { 47388 x.AllocID = (string)(r.DecodeString()) 47389 } 47390 case "Region": 47391 if r.TryDecodeAsNil() { 47392 x.QueryOptions.Region = "" 47393 } else { 47394 x.Region = (string)(r.DecodeString()) 47395 } 47396 case "Namespace": 47397 if r.TryDecodeAsNil() { 47398 x.QueryOptions.Namespace = "" 47399 } else { 47400 x.Namespace = (string)(r.DecodeString()) 47401 } 47402 case "MinQueryIndex": 47403 if r.TryDecodeAsNil() { 47404 x.QueryOptions.MinQueryIndex = 0 47405 } else { 47406 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 47407 } 47408 case "MaxQueryTime": 47409 if r.TryDecodeAsNil() { 47410 x.QueryOptions.MaxQueryTime = 0 47411 } else { 47412 if false { 47413 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 47414 z.DecExtension(x.MaxQueryTime, yyxt9) 47415 } else { 47416 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47417 } 47418 } 47419 case "AllowStale": 47420 if r.TryDecodeAsNil() { 47421 x.QueryOptions.AllowStale = false 47422 } else { 47423 x.AllowStale = (bool)(r.DecodeBool()) 47424 } 47425 case "Prefix": 47426 if r.TryDecodeAsNil() { 47427 x.QueryOptions.Prefix = "" 47428 } else { 47429 x.Prefix = (string)(r.DecodeString()) 47430 } 47431 case "AuthToken": 47432 if r.TryDecodeAsNil() { 47433 x.QueryOptions.AuthToken = "" 47434 } else { 47435 x.AuthToken = (string)(r.DecodeString()) 47436 } 47437 case "Forwarded": 47438 if r.TryDecodeAsNil() { 47439 x.QueryOptions.InternalRpcInfo.Forwarded = false 47440 } else { 47441 x.Forwarded = (bool)(r.DecodeBool()) 47442 } 47443 default: 47444 z.DecStructFieldNotFound(-1, yys3) 47445 } // end switch yys3 47446 } // end for yyj3 47447 r.ReadMapEnd() 47448 } 47449 47450 func (x *AllocSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 47451 var h codecSelfer100 47452 z, r := codec1978.GenHelperDecoder(d) 47453 _, _, _ = h, z, r 47454 var yyj14 int 47455 var yyb14 bool 47456 var yyhl14 bool = l >= 0 47457 yyj14++ 47458 if yyhl14 { 47459 yyb14 = yyj14 > l 47460 } else { 47461 yyb14 = r.CheckBreak() 47462 } 47463 if yyb14 { 47464 r.ReadArrayEnd() 47465 return 47466 } 47467 r.ReadArrayElem() 47468 if r.TryDecodeAsNil() { 47469 x.AllocID = "" 47470 } else { 47471 x.AllocID = (string)(r.DecodeString()) 47472 } 47473 yyj14++ 47474 if yyhl14 { 47475 yyb14 = yyj14 > l 47476 } else { 47477 yyb14 = r.CheckBreak() 47478 } 47479 if yyb14 { 47480 r.ReadArrayEnd() 47481 return 47482 } 47483 r.ReadArrayElem() 47484 if r.TryDecodeAsNil() { 47485 x.QueryOptions.Region = "" 47486 } else { 47487 x.Region = (string)(r.DecodeString()) 47488 } 47489 yyj14++ 47490 if yyhl14 { 47491 yyb14 = yyj14 > l 47492 } else { 47493 yyb14 = r.CheckBreak() 47494 } 47495 if yyb14 { 47496 r.ReadArrayEnd() 47497 return 47498 } 47499 r.ReadArrayElem() 47500 if r.TryDecodeAsNil() { 47501 x.QueryOptions.Namespace = "" 47502 } else { 47503 x.Namespace = (string)(r.DecodeString()) 47504 } 47505 yyj14++ 47506 if yyhl14 { 47507 yyb14 = yyj14 > l 47508 } else { 47509 yyb14 = r.CheckBreak() 47510 } 47511 if yyb14 { 47512 r.ReadArrayEnd() 47513 return 47514 } 47515 r.ReadArrayElem() 47516 if r.TryDecodeAsNil() { 47517 x.QueryOptions.MinQueryIndex = 0 47518 } else { 47519 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 47520 } 47521 yyj14++ 47522 if yyhl14 { 47523 yyb14 = yyj14 > l 47524 } else { 47525 yyb14 = r.CheckBreak() 47526 } 47527 if yyb14 { 47528 r.ReadArrayEnd() 47529 return 47530 } 47531 r.ReadArrayElem() 47532 if r.TryDecodeAsNil() { 47533 x.QueryOptions.MaxQueryTime = 0 47534 } else { 47535 if false { 47536 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 47537 z.DecExtension(x.MaxQueryTime, yyxt20) 47538 } else { 47539 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 47540 } 47541 } 47542 yyj14++ 47543 if yyhl14 { 47544 yyb14 = yyj14 > l 47545 } else { 47546 yyb14 = r.CheckBreak() 47547 } 47548 if yyb14 { 47549 r.ReadArrayEnd() 47550 return 47551 } 47552 r.ReadArrayElem() 47553 if r.TryDecodeAsNil() { 47554 x.QueryOptions.AllowStale = false 47555 } else { 47556 x.AllowStale = (bool)(r.DecodeBool()) 47557 } 47558 yyj14++ 47559 if yyhl14 { 47560 yyb14 = yyj14 > l 47561 } else { 47562 yyb14 = r.CheckBreak() 47563 } 47564 if yyb14 { 47565 r.ReadArrayEnd() 47566 return 47567 } 47568 r.ReadArrayElem() 47569 if r.TryDecodeAsNil() { 47570 x.QueryOptions.Prefix = "" 47571 } else { 47572 x.Prefix = (string)(r.DecodeString()) 47573 } 47574 yyj14++ 47575 if yyhl14 { 47576 yyb14 = yyj14 > l 47577 } else { 47578 yyb14 = r.CheckBreak() 47579 } 47580 if yyb14 { 47581 r.ReadArrayEnd() 47582 return 47583 } 47584 r.ReadArrayElem() 47585 if r.TryDecodeAsNil() { 47586 x.QueryOptions.AuthToken = "" 47587 } else { 47588 x.AuthToken = (string)(r.DecodeString()) 47589 } 47590 yyj14++ 47591 if yyhl14 { 47592 yyb14 = yyj14 > l 47593 } else { 47594 yyb14 = r.CheckBreak() 47595 } 47596 if yyb14 { 47597 r.ReadArrayEnd() 47598 return 47599 } 47600 r.ReadArrayElem() 47601 if r.TryDecodeAsNil() { 47602 x.QueryOptions.InternalRpcInfo.Forwarded = false 47603 } else { 47604 x.Forwarded = (bool)(r.DecodeBool()) 47605 } 47606 for { 47607 yyj14++ 47608 if yyhl14 { 47609 yyb14 = yyj14 > l 47610 } else { 47611 yyb14 = r.CheckBreak() 47612 } 47613 if yyb14 { 47614 break 47615 } 47616 r.ReadArrayElem() 47617 z.DecStructFieldNotFound(yyj14-1, "") 47618 } 47619 r.ReadArrayEnd() 47620 } 47621 47622 func (x *AllocSignalRequest) CodecEncodeSelf(e *codec1978.Encoder) { 47623 var h codecSelfer100 47624 z, r := codec1978.GenHelperEncoder(e) 47625 _, _, _ = h, z, r 47626 if x == nil { 47627 r.EncodeNil() 47628 } else { 47629 if false { 47630 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47631 z.EncExtension(x, yyxt1) 47632 } else { 47633 yysep2 := !z.EncBinary() 47634 yy2arr2 := z.EncBasicHandle().StructToArray 47635 _, _ = yysep2, yy2arr2 47636 const yyr2 bool = false // struct tag has 'toArray' 47637 if yyr2 || yy2arr2 { 47638 r.WriteArrayStart(11) 47639 } else { 47640 r.WriteMapStart(11) 47641 } 47642 if yyr2 || yy2arr2 { 47643 r.WriteArrayElem() 47644 if false { 47645 } else { 47646 if z.EncBasicHandle().StringToRaw { 47647 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47648 } else { 47649 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47650 } 47651 } 47652 } else { 47653 r.WriteMapElemKey() 47654 if z.IsJSONHandle() { 47655 z.WriteStr("\"AllocID\"") 47656 } else { 47657 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 47658 } 47659 r.WriteMapElemValue() 47660 if false { 47661 } else { 47662 if z.EncBasicHandle().StringToRaw { 47663 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 47664 } else { 47665 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 47666 } 47667 } 47668 } 47669 if yyr2 || yy2arr2 { 47670 r.WriteArrayElem() 47671 if false { 47672 } else { 47673 if z.EncBasicHandle().StringToRaw { 47674 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 47675 } else { 47676 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 47677 } 47678 } 47679 } else { 47680 r.WriteMapElemKey() 47681 if z.IsJSONHandle() { 47682 z.WriteStr("\"Task\"") 47683 } else { 47684 r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) 47685 } 47686 r.WriteMapElemValue() 47687 if false { 47688 } else { 47689 if z.EncBasicHandle().StringToRaw { 47690 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 47691 } else { 47692 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 47693 } 47694 } 47695 } 47696 if yyr2 || yy2arr2 { 47697 r.WriteArrayElem() 47698 if false { 47699 } else { 47700 if z.EncBasicHandle().StringToRaw { 47701 r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) 47702 } else { 47703 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) 47704 } 47705 } 47706 } else { 47707 r.WriteMapElemKey() 47708 if z.IsJSONHandle() { 47709 z.WriteStr("\"Signal\"") 47710 } else { 47711 r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) 47712 } 47713 r.WriteMapElemValue() 47714 if false { 47715 } else { 47716 if z.EncBasicHandle().StringToRaw { 47717 r.EncodeStringBytesRaw(z.BytesView(string(x.Signal))) 47718 } else { 47719 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Signal)) 47720 } 47721 } 47722 } 47723 if yyr2 || yy2arr2 { 47724 r.WriteArrayElem() 47725 if false { 47726 } else { 47727 if z.EncBasicHandle().StringToRaw { 47728 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47729 } else { 47730 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47731 } 47732 } 47733 } else { 47734 r.WriteMapElemKey() 47735 if z.IsJSONHandle() { 47736 z.WriteStr("\"Region\"") 47737 } else { 47738 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 47739 } 47740 r.WriteMapElemValue() 47741 if false { 47742 } else { 47743 if z.EncBasicHandle().StringToRaw { 47744 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 47745 } else { 47746 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 47747 } 47748 } 47749 } 47750 if yyr2 || yy2arr2 { 47751 r.WriteArrayElem() 47752 if false { 47753 } else { 47754 if z.EncBasicHandle().StringToRaw { 47755 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47756 } else { 47757 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47758 } 47759 } 47760 } else { 47761 r.WriteMapElemKey() 47762 if z.IsJSONHandle() { 47763 z.WriteStr("\"Namespace\"") 47764 } else { 47765 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 47766 } 47767 r.WriteMapElemValue() 47768 if false { 47769 } else { 47770 if z.EncBasicHandle().StringToRaw { 47771 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 47772 } else { 47773 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 47774 } 47775 } 47776 } 47777 if yyr2 || yy2arr2 { 47778 r.WriteArrayElem() 47779 if false { 47780 } else { 47781 r.EncodeUint(uint64(x.MinQueryIndex)) 47782 } 47783 } else { 47784 r.WriteMapElemKey() 47785 if z.IsJSONHandle() { 47786 z.WriteStr("\"MinQueryIndex\"") 47787 } else { 47788 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 47789 } 47790 r.WriteMapElemValue() 47791 if false { 47792 } else { 47793 r.EncodeUint(uint64(x.MinQueryIndex)) 47794 } 47795 } 47796 if yyr2 || yy2arr2 { 47797 r.WriteArrayElem() 47798 if false { 47799 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 47800 z.EncExtension(x.MaxQueryTime, yyxt22) 47801 } else { 47802 r.EncodeInt(int64(x.MaxQueryTime)) 47803 } 47804 } else { 47805 r.WriteMapElemKey() 47806 if z.IsJSONHandle() { 47807 z.WriteStr("\"MaxQueryTime\"") 47808 } else { 47809 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 47810 } 47811 r.WriteMapElemValue() 47812 if false { 47813 } else if yyxt23 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt23 != nil { 47814 z.EncExtension(x.MaxQueryTime, yyxt23) 47815 } else { 47816 r.EncodeInt(int64(x.MaxQueryTime)) 47817 } 47818 } 47819 if yyr2 || yy2arr2 { 47820 r.WriteArrayElem() 47821 if false { 47822 } else { 47823 r.EncodeBool(bool(x.AllowStale)) 47824 } 47825 } else { 47826 r.WriteMapElemKey() 47827 if z.IsJSONHandle() { 47828 z.WriteStr("\"AllowStale\"") 47829 } else { 47830 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 47831 } 47832 r.WriteMapElemValue() 47833 if false { 47834 } else { 47835 r.EncodeBool(bool(x.AllowStale)) 47836 } 47837 } 47838 if yyr2 || yy2arr2 { 47839 r.WriteArrayElem() 47840 if false { 47841 } else { 47842 if z.EncBasicHandle().StringToRaw { 47843 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47844 } else { 47845 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47846 } 47847 } 47848 } else { 47849 r.WriteMapElemKey() 47850 if z.IsJSONHandle() { 47851 z.WriteStr("\"Prefix\"") 47852 } else { 47853 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 47854 } 47855 r.WriteMapElemValue() 47856 if false { 47857 } else { 47858 if z.EncBasicHandle().StringToRaw { 47859 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 47860 } else { 47861 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 47862 } 47863 } 47864 } 47865 if yyr2 || yy2arr2 { 47866 r.WriteArrayElem() 47867 if false { 47868 } else { 47869 if z.EncBasicHandle().StringToRaw { 47870 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47871 } else { 47872 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47873 } 47874 } 47875 } else { 47876 r.WriteMapElemKey() 47877 if z.IsJSONHandle() { 47878 z.WriteStr("\"AuthToken\"") 47879 } else { 47880 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 47881 } 47882 r.WriteMapElemValue() 47883 if false { 47884 } else { 47885 if z.EncBasicHandle().StringToRaw { 47886 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 47887 } else { 47888 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 47889 } 47890 } 47891 } 47892 if yyr2 || yy2arr2 { 47893 r.WriteArrayElem() 47894 if false { 47895 } else { 47896 r.EncodeBool(bool(x.Forwarded)) 47897 } 47898 } else { 47899 r.WriteMapElemKey() 47900 if z.IsJSONHandle() { 47901 z.WriteStr("\"Forwarded\"") 47902 } else { 47903 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 47904 } 47905 r.WriteMapElemValue() 47906 if false { 47907 } else { 47908 r.EncodeBool(bool(x.Forwarded)) 47909 } 47910 } 47911 if yyr2 || yy2arr2 { 47912 r.WriteArrayEnd() 47913 } else { 47914 r.WriteMapEnd() 47915 } 47916 } 47917 } 47918 } 47919 47920 func (x *AllocSignalRequest) CodecDecodeSelf(d *codec1978.Decoder) { 47921 var h codecSelfer100 47922 z, r := codec1978.GenHelperDecoder(d) 47923 _, _, _ = h, z, r 47924 if false { 47925 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 47926 z.DecExtension(x, yyxt1) 47927 } else { 47928 yyct2 := r.ContainerType() 47929 if yyct2 == codecSelferValueTypeMap100 { 47930 yyl2 := r.ReadMapStart() 47931 if yyl2 == 0 { 47932 r.ReadMapEnd() 47933 } else { 47934 x.codecDecodeSelfFromMap(yyl2, d) 47935 } 47936 } else if yyct2 == codecSelferValueTypeArray100 { 47937 yyl2 := r.ReadArrayStart() 47938 if yyl2 == 0 { 47939 r.ReadArrayEnd() 47940 } else { 47941 x.codecDecodeSelfFromArray(yyl2, d) 47942 } 47943 } else { 47944 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 47945 } 47946 } 47947 } 47948 47949 func (x *AllocSignalRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 47950 var h codecSelfer100 47951 z, r := codec1978.GenHelperDecoder(d) 47952 _, _, _ = h, z, r 47953 var yyhl3 bool = l >= 0 47954 for yyj3 := 0; ; yyj3++ { 47955 if yyhl3 { 47956 if yyj3 >= l { 47957 break 47958 } 47959 } else { 47960 if r.CheckBreak() { 47961 break 47962 } 47963 } 47964 r.ReadMapElemKey() 47965 yys3 := z.StringView(r.DecodeStringAsBytes()) 47966 r.ReadMapElemValue() 47967 switch yys3 { 47968 case "AllocID": 47969 if r.TryDecodeAsNil() { 47970 x.AllocID = "" 47971 } else { 47972 x.AllocID = (string)(r.DecodeString()) 47973 } 47974 case "Task": 47975 if r.TryDecodeAsNil() { 47976 x.Task = "" 47977 } else { 47978 x.Task = (string)(r.DecodeString()) 47979 } 47980 case "Signal": 47981 if r.TryDecodeAsNil() { 47982 x.Signal = "" 47983 } else { 47984 x.Signal = (string)(r.DecodeString()) 47985 } 47986 case "Region": 47987 if r.TryDecodeAsNil() { 47988 x.QueryOptions.Region = "" 47989 } else { 47990 x.Region = (string)(r.DecodeString()) 47991 } 47992 case "Namespace": 47993 if r.TryDecodeAsNil() { 47994 x.QueryOptions.Namespace = "" 47995 } else { 47996 x.Namespace = (string)(r.DecodeString()) 47997 } 47998 case "MinQueryIndex": 47999 if r.TryDecodeAsNil() { 48000 x.QueryOptions.MinQueryIndex = 0 48001 } else { 48002 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 48003 } 48004 case "MaxQueryTime": 48005 if r.TryDecodeAsNil() { 48006 x.QueryOptions.MaxQueryTime = 0 48007 } else { 48008 if false { 48009 } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt11 != nil { 48010 z.DecExtension(x.MaxQueryTime, yyxt11) 48011 } else { 48012 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 48013 } 48014 } 48015 case "AllowStale": 48016 if r.TryDecodeAsNil() { 48017 x.QueryOptions.AllowStale = false 48018 } else { 48019 x.AllowStale = (bool)(r.DecodeBool()) 48020 } 48021 case "Prefix": 48022 if r.TryDecodeAsNil() { 48023 x.QueryOptions.Prefix = "" 48024 } else { 48025 x.Prefix = (string)(r.DecodeString()) 48026 } 48027 case "AuthToken": 48028 if r.TryDecodeAsNil() { 48029 x.QueryOptions.AuthToken = "" 48030 } else { 48031 x.AuthToken = (string)(r.DecodeString()) 48032 } 48033 case "Forwarded": 48034 if r.TryDecodeAsNil() { 48035 x.QueryOptions.InternalRpcInfo.Forwarded = false 48036 } else { 48037 x.Forwarded = (bool)(r.DecodeBool()) 48038 } 48039 default: 48040 z.DecStructFieldNotFound(-1, yys3) 48041 } // end switch yys3 48042 } // end for yyj3 48043 r.ReadMapEnd() 48044 } 48045 48046 func (x *AllocSignalRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 48047 var h codecSelfer100 48048 z, r := codec1978.GenHelperDecoder(d) 48049 _, _, _ = h, z, r 48050 var yyj16 int 48051 var yyb16 bool 48052 var yyhl16 bool = l >= 0 48053 yyj16++ 48054 if yyhl16 { 48055 yyb16 = yyj16 > l 48056 } else { 48057 yyb16 = r.CheckBreak() 48058 } 48059 if yyb16 { 48060 r.ReadArrayEnd() 48061 return 48062 } 48063 r.ReadArrayElem() 48064 if r.TryDecodeAsNil() { 48065 x.AllocID = "" 48066 } else { 48067 x.AllocID = (string)(r.DecodeString()) 48068 } 48069 yyj16++ 48070 if yyhl16 { 48071 yyb16 = yyj16 > l 48072 } else { 48073 yyb16 = r.CheckBreak() 48074 } 48075 if yyb16 { 48076 r.ReadArrayEnd() 48077 return 48078 } 48079 r.ReadArrayElem() 48080 if r.TryDecodeAsNil() { 48081 x.Task = "" 48082 } else { 48083 x.Task = (string)(r.DecodeString()) 48084 } 48085 yyj16++ 48086 if yyhl16 { 48087 yyb16 = yyj16 > l 48088 } else { 48089 yyb16 = r.CheckBreak() 48090 } 48091 if yyb16 { 48092 r.ReadArrayEnd() 48093 return 48094 } 48095 r.ReadArrayElem() 48096 if r.TryDecodeAsNil() { 48097 x.Signal = "" 48098 } else { 48099 x.Signal = (string)(r.DecodeString()) 48100 } 48101 yyj16++ 48102 if yyhl16 { 48103 yyb16 = yyj16 > l 48104 } else { 48105 yyb16 = r.CheckBreak() 48106 } 48107 if yyb16 { 48108 r.ReadArrayEnd() 48109 return 48110 } 48111 r.ReadArrayElem() 48112 if r.TryDecodeAsNil() { 48113 x.QueryOptions.Region = "" 48114 } else { 48115 x.Region = (string)(r.DecodeString()) 48116 } 48117 yyj16++ 48118 if yyhl16 { 48119 yyb16 = yyj16 > l 48120 } else { 48121 yyb16 = r.CheckBreak() 48122 } 48123 if yyb16 { 48124 r.ReadArrayEnd() 48125 return 48126 } 48127 r.ReadArrayElem() 48128 if r.TryDecodeAsNil() { 48129 x.QueryOptions.Namespace = "" 48130 } else { 48131 x.Namespace = (string)(r.DecodeString()) 48132 } 48133 yyj16++ 48134 if yyhl16 { 48135 yyb16 = yyj16 > l 48136 } else { 48137 yyb16 = r.CheckBreak() 48138 } 48139 if yyb16 { 48140 r.ReadArrayEnd() 48141 return 48142 } 48143 r.ReadArrayElem() 48144 if r.TryDecodeAsNil() { 48145 x.QueryOptions.MinQueryIndex = 0 48146 } else { 48147 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 48148 } 48149 yyj16++ 48150 if yyhl16 { 48151 yyb16 = yyj16 > l 48152 } else { 48153 yyb16 = r.CheckBreak() 48154 } 48155 if yyb16 { 48156 r.ReadArrayEnd() 48157 return 48158 } 48159 r.ReadArrayElem() 48160 if r.TryDecodeAsNil() { 48161 x.QueryOptions.MaxQueryTime = 0 48162 } else { 48163 if false { 48164 } else if yyxt24 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt24 != nil { 48165 z.DecExtension(x.MaxQueryTime, yyxt24) 48166 } else { 48167 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 48168 } 48169 } 48170 yyj16++ 48171 if yyhl16 { 48172 yyb16 = yyj16 > l 48173 } else { 48174 yyb16 = r.CheckBreak() 48175 } 48176 if yyb16 { 48177 r.ReadArrayEnd() 48178 return 48179 } 48180 r.ReadArrayElem() 48181 if r.TryDecodeAsNil() { 48182 x.QueryOptions.AllowStale = false 48183 } else { 48184 x.AllowStale = (bool)(r.DecodeBool()) 48185 } 48186 yyj16++ 48187 if yyhl16 { 48188 yyb16 = yyj16 > l 48189 } else { 48190 yyb16 = r.CheckBreak() 48191 } 48192 if yyb16 { 48193 r.ReadArrayEnd() 48194 return 48195 } 48196 r.ReadArrayElem() 48197 if r.TryDecodeAsNil() { 48198 x.QueryOptions.Prefix = "" 48199 } else { 48200 x.Prefix = (string)(r.DecodeString()) 48201 } 48202 yyj16++ 48203 if yyhl16 { 48204 yyb16 = yyj16 > l 48205 } else { 48206 yyb16 = r.CheckBreak() 48207 } 48208 if yyb16 { 48209 r.ReadArrayEnd() 48210 return 48211 } 48212 r.ReadArrayElem() 48213 if r.TryDecodeAsNil() { 48214 x.QueryOptions.AuthToken = "" 48215 } else { 48216 x.AuthToken = (string)(r.DecodeString()) 48217 } 48218 yyj16++ 48219 if yyhl16 { 48220 yyb16 = yyj16 > l 48221 } else { 48222 yyb16 = r.CheckBreak() 48223 } 48224 if yyb16 { 48225 r.ReadArrayEnd() 48226 return 48227 } 48228 r.ReadArrayElem() 48229 if r.TryDecodeAsNil() { 48230 x.QueryOptions.InternalRpcInfo.Forwarded = false 48231 } else { 48232 x.Forwarded = (bool)(r.DecodeBool()) 48233 } 48234 for { 48235 yyj16++ 48236 if yyhl16 { 48237 yyb16 = yyj16 > l 48238 } else { 48239 yyb16 = r.CheckBreak() 48240 } 48241 if yyb16 { 48242 break 48243 } 48244 r.ReadArrayElem() 48245 z.DecStructFieldNotFound(yyj16-1, "") 48246 } 48247 r.ReadArrayEnd() 48248 } 48249 48250 func (x *AllocsGetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 48251 var h codecSelfer100 48252 z, r := codec1978.GenHelperEncoder(e) 48253 _, _, _ = h, z, r 48254 if x == nil { 48255 r.EncodeNil() 48256 } else { 48257 if false { 48258 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48259 z.EncExtension(x, yyxt1) 48260 } else { 48261 yysep2 := !z.EncBinary() 48262 yy2arr2 := z.EncBasicHandle().StructToArray 48263 _, _ = yysep2, yy2arr2 48264 const yyr2 bool = false // struct tag has 'toArray' 48265 if yyr2 || yy2arr2 { 48266 r.WriteArrayStart(9) 48267 } else { 48268 r.WriteMapStart(9) 48269 } 48270 if yyr2 || yy2arr2 { 48271 r.WriteArrayElem() 48272 if x.AllocIDs == nil { 48273 r.EncodeNil() 48274 } else { 48275 if false { 48276 } else { 48277 z.F.EncSliceStringV(x.AllocIDs, e) 48278 } 48279 } 48280 } else { 48281 r.WriteMapElemKey() 48282 if z.IsJSONHandle() { 48283 z.WriteStr("\"AllocIDs\"") 48284 } else { 48285 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIDs`) 48286 } 48287 r.WriteMapElemValue() 48288 if x.AllocIDs == nil { 48289 r.EncodeNil() 48290 } else { 48291 if false { 48292 } else { 48293 z.F.EncSliceStringV(x.AllocIDs, e) 48294 } 48295 } 48296 } 48297 if yyr2 || yy2arr2 { 48298 r.WriteArrayElem() 48299 if false { 48300 } else { 48301 if z.EncBasicHandle().StringToRaw { 48302 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 48303 } else { 48304 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 48305 } 48306 } 48307 } else { 48308 r.WriteMapElemKey() 48309 if z.IsJSONHandle() { 48310 z.WriteStr("\"Region\"") 48311 } else { 48312 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 48313 } 48314 r.WriteMapElemValue() 48315 if false { 48316 } else { 48317 if z.EncBasicHandle().StringToRaw { 48318 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 48319 } else { 48320 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 48321 } 48322 } 48323 } 48324 if yyr2 || yy2arr2 { 48325 r.WriteArrayElem() 48326 if false { 48327 } else { 48328 if z.EncBasicHandle().StringToRaw { 48329 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 48330 } else { 48331 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 48332 } 48333 } 48334 } else { 48335 r.WriteMapElemKey() 48336 if z.IsJSONHandle() { 48337 z.WriteStr("\"Namespace\"") 48338 } else { 48339 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 48340 } 48341 r.WriteMapElemValue() 48342 if false { 48343 } else { 48344 if z.EncBasicHandle().StringToRaw { 48345 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 48346 } else { 48347 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 48348 } 48349 } 48350 } 48351 if yyr2 || yy2arr2 { 48352 r.WriteArrayElem() 48353 if false { 48354 } else { 48355 r.EncodeUint(uint64(x.MinQueryIndex)) 48356 } 48357 } else { 48358 r.WriteMapElemKey() 48359 if z.IsJSONHandle() { 48360 z.WriteStr("\"MinQueryIndex\"") 48361 } else { 48362 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 48363 } 48364 r.WriteMapElemValue() 48365 if false { 48366 } else { 48367 r.EncodeUint(uint64(x.MinQueryIndex)) 48368 } 48369 } 48370 if yyr2 || yy2arr2 { 48371 r.WriteArrayElem() 48372 if false { 48373 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 48374 z.EncExtension(x.MaxQueryTime, yyxt16) 48375 } else { 48376 r.EncodeInt(int64(x.MaxQueryTime)) 48377 } 48378 } else { 48379 r.WriteMapElemKey() 48380 if z.IsJSONHandle() { 48381 z.WriteStr("\"MaxQueryTime\"") 48382 } else { 48383 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 48384 } 48385 r.WriteMapElemValue() 48386 if false { 48387 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 48388 z.EncExtension(x.MaxQueryTime, yyxt17) 48389 } else { 48390 r.EncodeInt(int64(x.MaxQueryTime)) 48391 } 48392 } 48393 if yyr2 || yy2arr2 { 48394 r.WriteArrayElem() 48395 if false { 48396 } else { 48397 r.EncodeBool(bool(x.AllowStale)) 48398 } 48399 } else { 48400 r.WriteMapElemKey() 48401 if z.IsJSONHandle() { 48402 z.WriteStr("\"AllowStale\"") 48403 } else { 48404 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 48405 } 48406 r.WriteMapElemValue() 48407 if false { 48408 } else { 48409 r.EncodeBool(bool(x.AllowStale)) 48410 } 48411 } 48412 if yyr2 || yy2arr2 { 48413 r.WriteArrayElem() 48414 if false { 48415 } else { 48416 if z.EncBasicHandle().StringToRaw { 48417 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 48418 } else { 48419 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 48420 } 48421 } 48422 } else { 48423 r.WriteMapElemKey() 48424 if z.IsJSONHandle() { 48425 z.WriteStr("\"Prefix\"") 48426 } else { 48427 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 48428 } 48429 r.WriteMapElemValue() 48430 if false { 48431 } else { 48432 if z.EncBasicHandle().StringToRaw { 48433 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 48434 } else { 48435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 48436 } 48437 } 48438 } 48439 if yyr2 || yy2arr2 { 48440 r.WriteArrayElem() 48441 if false { 48442 } else { 48443 if z.EncBasicHandle().StringToRaw { 48444 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 48445 } else { 48446 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 48447 } 48448 } 48449 } else { 48450 r.WriteMapElemKey() 48451 if z.IsJSONHandle() { 48452 z.WriteStr("\"AuthToken\"") 48453 } else { 48454 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 48455 } 48456 r.WriteMapElemValue() 48457 if false { 48458 } else { 48459 if z.EncBasicHandle().StringToRaw { 48460 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 48461 } else { 48462 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 48463 } 48464 } 48465 } 48466 if yyr2 || yy2arr2 { 48467 r.WriteArrayElem() 48468 if false { 48469 } else { 48470 r.EncodeBool(bool(x.Forwarded)) 48471 } 48472 } else { 48473 r.WriteMapElemKey() 48474 if z.IsJSONHandle() { 48475 z.WriteStr("\"Forwarded\"") 48476 } else { 48477 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 48478 } 48479 r.WriteMapElemValue() 48480 if false { 48481 } else { 48482 r.EncodeBool(bool(x.Forwarded)) 48483 } 48484 } 48485 if yyr2 || yy2arr2 { 48486 r.WriteArrayEnd() 48487 } else { 48488 r.WriteMapEnd() 48489 } 48490 } 48491 } 48492 } 48493 48494 func (x *AllocsGetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 48495 var h codecSelfer100 48496 z, r := codec1978.GenHelperDecoder(d) 48497 _, _, _ = h, z, r 48498 if false { 48499 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48500 z.DecExtension(x, yyxt1) 48501 } else { 48502 yyct2 := r.ContainerType() 48503 if yyct2 == codecSelferValueTypeMap100 { 48504 yyl2 := r.ReadMapStart() 48505 if yyl2 == 0 { 48506 r.ReadMapEnd() 48507 } else { 48508 x.codecDecodeSelfFromMap(yyl2, d) 48509 } 48510 } else if yyct2 == codecSelferValueTypeArray100 { 48511 yyl2 := r.ReadArrayStart() 48512 if yyl2 == 0 { 48513 r.ReadArrayEnd() 48514 } else { 48515 x.codecDecodeSelfFromArray(yyl2, d) 48516 } 48517 } else { 48518 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 48519 } 48520 } 48521 } 48522 48523 func (x *AllocsGetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 48524 var h codecSelfer100 48525 z, r := codec1978.GenHelperDecoder(d) 48526 _, _, _ = h, z, r 48527 var yyhl3 bool = l >= 0 48528 for yyj3 := 0; ; yyj3++ { 48529 if yyhl3 { 48530 if yyj3 >= l { 48531 break 48532 } 48533 } else { 48534 if r.CheckBreak() { 48535 break 48536 } 48537 } 48538 r.ReadMapElemKey() 48539 yys3 := z.StringView(r.DecodeStringAsBytes()) 48540 r.ReadMapElemValue() 48541 switch yys3 { 48542 case "AllocIDs": 48543 if r.TryDecodeAsNil() { 48544 x.AllocIDs = nil 48545 } else { 48546 if false { 48547 } else { 48548 z.F.DecSliceStringX(&x.AllocIDs, d) 48549 } 48550 } 48551 case "Region": 48552 if r.TryDecodeAsNil() { 48553 x.QueryOptions.Region = "" 48554 } else { 48555 x.Region = (string)(r.DecodeString()) 48556 } 48557 case "Namespace": 48558 if r.TryDecodeAsNil() { 48559 x.QueryOptions.Namespace = "" 48560 } else { 48561 x.Namespace = (string)(r.DecodeString()) 48562 } 48563 case "MinQueryIndex": 48564 if r.TryDecodeAsNil() { 48565 x.QueryOptions.MinQueryIndex = 0 48566 } else { 48567 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 48568 } 48569 case "MaxQueryTime": 48570 if r.TryDecodeAsNil() { 48571 x.QueryOptions.MaxQueryTime = 0 48572 } else { 48573 if false { 48574 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 48575 z.DecExtension(x.MaxQueryTime, yyxt10) 48576 } else { 48577 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 48578 } 48579 } 48580 case "AllowStale": 48581 if r.TryDecodeAsNil() { 48582 x.QueryOptions.AllowStale = false 48583 } else { 48584 x.AllowStale = (bool)(r.DecodeBool()) 48585 } 48586 case "Prefix": 48587 if r.TryDecodeAsNil() { 48588 x.QueryOptions.Prefix = "" 48589 } else { 48590 x.Prefix = (string)(r.DecodeString()) 48591 } 48592 case "AuthToken": 48593 if r.TryDecodeAsNil() { 48594 x.QueryOptions.AuthToken = "" 48595 } else { 48596 x.AuthToken = (string)(r.DecodeString()) 48597 } 48598 case "Forwarded": 48599 if r.TryDecodeAsNil() { 48600 x.QueryOptions.InternalRpcInfo.Forwarded = false 48601 } else { 48602 x.Forwarded = (bool)(r.DecodeBool()) 48603 } 48604 default: 48605 z.DecStructFieldNotFound(-1, yys3) 48606 } // end switch yys3 48607 } // end for yyj3 48608 r.ReadMapEnd() 48609 } 48610 48611 func (x *AllocsGetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 48612 var h codecSelfer100 48613 z, r := codec1978.GenHelperDecoder(d) 48614 _, _, _ = h, z, r 48615 var yyj15 int 48616 var yyb15 bool 48617 var yyhl15 bool = l >= 0 48618 yyj15++ 48619 if yyhl15 { 48620 yyb15 = yyj15 > l 48621 } else { 48622 yyb15 = r.CheckBreak() 48623 } 48624 if yyb15 { 48625 r.ReadArrayEnd() 48626 return 48627 } 48628 r.ReadArrayElem() 48629 if r.TryDecodeAsNil() { 48630 x.AllocIDs = nil 48631 } else { 48632 if false { 48633 } else { 48634 z.F.DecSliceStringX(&x.AllocIDs, d) 48635 } 48636 } 48637 yyj15++ 48638 if yyhl15 { 48639 yyb15 = yyj15 > l 48640 } else { 48641 yyb15 = r.CheckBreak() 48642 } 48643 if yyb15 { 48644 r.ReadArrayEnd() 48645 return 48646 } 48647 r.ReadArrayElem() 48648 if r.TryDecodeAsNil() { 48649 x.QueryOptions.Region = "" 48650 } else { 48651 x.Region = (string)(r.DecodeString()) 48652 } 48653 yyj15++ 48654 if yyhl15 { 48655 yyb15 = yyj15 > l 48656 } else { 48657 yyb15 = r.CheckBreak() 48658 } 48659 if yyb15 { 48660 r.ReadArrayEnd() 48661 return 48662 } 48663 r.ReadArrayElem() 48664 if r.TryDecodeAsNil() { 48665 x.QueryOptions.Namespace = "" 48666 } else { 48667 x.Namespace = (string)(r.DecodeString()) 48668 } 48669 yyj15++ 48670 if yyhl15 { 48671 yyb15 = yyj15 > l 48672 } else { 48673 yyb15 = r.CheckBreak() 48674 } 48675 if yyb15 { 48676 r.ReadArrayEnd() 48677 return 48678 } 48679 r.ReadArrayElem() 48680 if r.TryDecodeAsNil() { 48681 x.QueryOptions.MinQueryIndex = 0 48682 } else { 48683 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 48684 } 48685 yyj15++ 48686 if yyhl15 { 48687 yyb15 = yyj15 > l 48688 } else { 48689 yyb15 = r.CheckBreak() 48690 } 48691 if yyb15 { 48692 r.ReadArrayEnd() 48693 return 48694 } 48695 r.ReadArrayElem() 48696 if r.TryDecodeAsNil() { 48697 x.QueryOptions.MaxQueryTime = 0 48698 } else { 48699 if false { 48700 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 48701 z.DecExtension(x.MaxQueryTime, yyxt22) 48702 } else { 48703 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 48704 } 48705 } 48706 yyj15++ 48707 if yyhl15 { 48708 yyb15 = yyj15 > l 48709 } else { 48710 yyb15 = r.CheckBreak() 48711 } 48712 if yyb15 { 48713 r.ReadArrayEnd() 48714 return 48715 } 48716 r.ReadArrayElem() 48717 if r.TryDecodeAsNil() { 48718 x.QueryOptions.AllowStale = false 48719 } else { 48720 x.AllowStale = (bool)(r.DecodeBool()) 48721 } 48722 yyj15++ 48723 if yyhl15 { 48724 yyb15 = yyj15 > l 48725 } else { 48726 yyb15 = r.CheckBreak() 48727 } 48728 if yyb15 { 48729 r.ReadArrayEnd() 48730 return 48731 } 48732 r.ReadArrayElem() 48733 if r.TryDecodeAsNil() { 48734 x.QueryOptions.Prefix = "" 48735 } else { 48736 x.Prefix = (string)(r.DecodeString()) 48737 } 48738 yyj15++ 48739 if yyhl15 { 48740 yyb15 = yyj15 > l 48741 } else { 48742 yyb15 = r.CheckBreak() 48743 } 48744 if yyb15 { 48745 r.ReadArrayEnd() 48746 return 48747 } 48748 r.ReadArrayElem() 48749 if r.TryDecodeAsNil() { 48750 x.QueryOptions.AuthToken = "" 48751 } else { 48752 x.AuthToken = (string)(r.DecodeString()) 48753 } 48754 yyj15++ 48755 if yyhl15 { 48756 yyb15 = yyj15 > l 48757 } else { 48758 yyb15 = r.CheckBreak() 48759 } 48760 if yyb15 { 48761 r.ReadArrayEnd() 48762 return 48763 } 48764 r.ReadArrayElem() 48765 if r.TryDecodeAsNil() { 48766 x.QueryOptions.InternalRpcInfo.Forwarded = false 48767 } else { 48768 x.Forwarded = (bool)(r.DecodeBool()) 48769 } 48770 for { 48771 yyj15++ 48772 if yyhl15 { 48773 yyb15 = yyj15 > l 48774 } else { 48775 yyb15 = r.CheckBreak() 48776 } 48777 if yyb15 { 48778 break 48779 } 48780 r.ReadArrayElem() 48781 z.DecStructFieldNotFound(yyj15-1, "") 48782 } 48783 r.ReadArrayEnd() 48784 } 48785 48786 func (x *AllocRestartRequest) CodecEncodeSelf(e *codec1978.Encoder) { 48787 var h codecSelfer100 48788 z, r := codec1978.GenHelperEncoder(e) 48789 _, _, _ = h, z, r 48790 if x == nil { 48791 r.EncodeNil() 48792 } else { 48793 if false { 48794 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 48795 z.EncExtension(x, yyxt1) 48796 } else { 48797 yysep2 := !z.EncBinary() 48798 yy2arr2 := z.EncBasicHandle().StructToArray 48799 _, _ = yysep2, yy2arr2 48800 const yyr2 bool = false // struct tag has 'toArray' 48801 if yyr2 || yy2arr2 { 48802 r.WriteArrayStart(10) 48803 } else { 48804 r.WriteMapStart(10) 48805 } 48806 if yyr2 || yy2arr2 { 48807 r.WriteArrayElem() 48808 if false { 48809 } else { 48810 if z.EncBasicHandle().StringToRaw { 48811 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 48812 } else { 48813 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 48814 } 48815 } 48816 } else { 48817 r.WriteMapElemKey() 48818 if z.IsJSONHandle() { 48819 z.WriteStr("\"AllocID\"") 48820 } else { 48821 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 48822 } 48823 r.WriteMapElemValue() 48824 if false { 48825 } else { 48826 if z.EncBasicHandle().StringToRaw { 48827 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 48828 } else { 48829 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 48830 } 48831 } 48832 } 48833 if yyr2 || yy2arr2 { 48834 r.WriteArrayElem() 48835 if false { 48836 } else { 48837 if z.EncBasicHandle().StringToRaw { 48838 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 48839 } else { 48840 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 48841 } 48842 } 48843 } else { 48844 r.WriteMapElemKey() 48845 if z.IsJSONHandle() { 48846 z.WriteStr("\"TaskName\"") 48847 } else { 48848 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskName`) 48849 } 48850 r.WriteMapElemValue() 48851 if false { 48852 } else { 48853 if z.EncBasicHandle().StringToRaw { 48854 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskName))) 48855 } else { 48856 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskName)) 48857 } 48858 } 48859 } 48860 if yyr2 || yy2arr2 { 48861 r.WriteArrayElem() 48862 if false { 48863 } else { 48864 if z.EncBasicHandle().StringToRaw { 48865 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 48866 } else { 48867 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 48868 } 48869 } 48870 } else { 48871 r.WriteMapElemKey() 48872 if z.IsJSONHandle() { 48873 z.WriteStr("\"Region\"") 48874 } else { 48875 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 48876 } 48877 r.WriteMapElemValue() 48878 if false { 48879 } else { 48880 if z.EncBasicHandle().StringToRaw { 48881 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 48882 } else { 48883 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 48884 } 48885 } 48886 } 48887 if yyr2 || yy2arr2 { 48888 r.WriteArrayElem() 48889 if false { 48890 } else { 48891 if z.EncBasicHandle().StringToRaw { 48892 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 48893 } else { 48894 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 48895 } 48896 } 48897 } else { 48898 r.WriteMapElemKey() 48899 if z.IsJSONHandle() { 48900 z.WriteStr("\"Namespace\"") 48901 } else { 48902 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 48903 } 48904 r.WriteMapElemValue() 48905 if false { 48906 } else { 48907 if z.EncBasicHandle().StringToRaw { 48908 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 48909 } else { 48910 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 48911 } 48912 } 48913 } 48914 if yyr2 || yy2arr2 { 48915 r.WriteArrayElem() 48916 if false { 48917 } else { 48918 r.EncodeUint(uint64(x.MinQueryIndex)) 48919 } 48920 } else { 48921 r.WriteMapElemKey() 48922 if z.IsJSONHandle() { 48923 z.WriteStr("\"MinQueryIndex\"") 48924 } else { 48925 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 48926 } 48927 r.WriteMapElemValue() 48928 if false { 48929 } else { 48930 r.EncodeUint(uint64(x.MinQueryIndex)) 48931 } 48932 } 48933 if yyr2 || yy2arr2 { 48934 r.WriteArrayElem() 48935 if false { 48936 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 48937 z.EncExtension(x.MaxQueryTime, yyxt19) 48938 } else { 48939 r.EncodeInt(int64(x.MaxQueryTime)) 48940 } 48941 } else { 48942 r.WriteMapElemKey() 48943 if z.IsJSONHandle() { 48944 z.WriteStr("\"MaxQueryTime\"") 48945 } else { 48946 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 48947 } 48948 r.WriteMapElemValue() 48949 if false { 48950 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 48951 z.EncExtension(x.MaxQueryTime, yyxt20) 48952 } else { 48953 r.EncodeInt(int64(x.MaxQueryTime)) 48954 } 48955 } 48956 if yyr2 || yy2arr2 { 48957 r.WriteArrayElem() 48958 if false { 48959 } else { 48960 r.EncodeBool(bool(x.AllowStale)) 48961 } 48962 } else { 48963 r.WriteMapElemKey() 48964 if z.IsJSONHandle() { 48965 z.WriteStr("\"AllowStale\"") 48966 } else { 48967 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 48968 } 48969 r.WriteMapElemValue() 48970 if false { 48971 } else { 48972 r.EncodeBool(bool(x.AllowStale)) 48973 } 48974 } 48975 if yyr2 || yy2arr2 { 48976 r.WriteArrayElem() 48977 if false { 48978 } else { 48979 if z.EncBasicHandle().StringToRaw { 48980 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 48981 } else { 48982 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 48983 } 48984 } 48985 } else { 48986 r.WriteMapElemKey() 48987 if z.IsJSONHandle() { 48988 z.WriteStr("\"Prefix\"") 48989 } else { 48990 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 48991 } 48992 r.WriteMapElemValue() 48993 if false { 48994 } else { 48995 if z.EncBasicHandle().StringToRaw { 48996 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 48997 } else { 48998 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 48999 } 49000 } 49001 } 49002 if yyr2 || yy2arr2 { 49003 r.WriteArrayElem() 49004 if false { 49005 } else { 49006 if z.EncBasicHandle().StringToRaw { 49007 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49008 } else { 49009 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49010 } 49011 } 49012 } else { 49013 r.WriteMapElemKey() 49014 if z.IsJSONHandle() { 49015 z.WriteStr("\"AuthToken\"") 49016 } else { 49017 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 49018 } 49019 r.WriteMapElemValue() 49020 if false { 49021 } else { 49022 if z.EncBasicHandle().StringToRaw { 49023 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49024 } else { 49025 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49026 } 49027 } 49028 } 49029 if yyr2 || yy2arr2 { 49030 r.WriteArrayElem() 49031 if false { 49032 } else { 49033 r.EncodeBool(bool(x.Forwarded)) 49034 } 49035 } else { 49036 r.WriteMapElemKey() 49037 if z.IsJSONHandle() { 49038 z.WriteStr("\"Forwarded\"") 49039 } else { 49040 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 49041 } 49042 r.WriteMapElemValue() 49043 if false { 49044 } else { 49045 r.EncodeBool(bool(x.Forwarded)) 49046 } 49047 } 49048 if yyr2 || yy2arr2 { 49049 r.WriteArrayEnd() 49050 } else { 49051 r.WriteMapEnd() 49052 } 49053 } 49054 } 49055 } 49056 49057 func (x *AllocRestartRequest) CodecDecodeSelf(d *codec1978.Decoder) { 49058 var h codecSelfer100 49059 z, r := codec1978.GenHelperDecoder(d) 49060 _, _, _ = h, z, r 49061 if false { 49062 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49063 z.DecExtension(x, yyxt1) 49064 } else { 49065 yyct2 := r.ContainerType() 49066 if yyct2 == codecSelferValueTypeMap100 { 49067 yyl2 := r.ReadMapStart() 49068 if yyl2 == 0 { 49069 r.ReadMapEnd() 49070 } else { 49071 x.codecDecodeSelfFromMap(yyl2, d) 49072 } 49073 } else if yyct2 == codecSelferValueTypeArray100 { 49074 yyl2 := r.ReadArrayStart() 49075 if yyl2 == 0 { 49076 r.ReadArrayEnd() 49077 } else { 49078 x.codecDecodeSelfFromArray(yyl2, d) 49079 } 49080 } else { 49081 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49082 } 49083 } 49084 } 49085 49086 func (x *AllocRestartRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49087 var h codecSelfer100 49088 z, r := codec1978.GenHelperDecoder(d) 49089 _, _, _ = h, z, r 49090 var yyhl3 bool = l >= 0 49091 for yyj3 := 0; ; yyj3++ { 49092 if yyhl3 { 49093 if yyj3 >= l { 49094 break 49095 } 49096 } else { 49097 if r.CheckBreak() { 49098 break 49099 } 49100 } 49101 r.ReadMapElemKey() 49102 yys3 := z.StringView(r.DecodeStringAsBytes()) 49103 r.ReadMapElemValue() 49104 switch yys3 { 49105 case "AllocID": 49106 if r.TryDecodeAsNil() { 49107 x.AllocID = "" 49108 } else { 49109 x.AllocID = (string)(r.DecodeString()) 49110 } 49111 case "TaskName": 49112 if r.TryDecodeAsNil() { 49113 x.TaskName = "" 49114 } else { 49115 x.TaskName = (string)(r.DecodeString()) 49116 } 49117 case "Region": 49118 if r.TryDecodeAsNil() { 49119 x.QueryOptions.Region = "" 49120 } else { 49121 x.Region = (string)(r.DecodeString()) 49122 } 49123 case "Namespace": 49124 if r.TryDecodeAsNil() { 49125 x.QueryOptions.Namespace = "" 49126 } else { 49127 x.Namespace = (string)(r.DecodeString()) 49128 } 49129 case "MinQueryIndex": 49130 if r.TryDecodeAsNil() { 49131 x.QueryOptions.MinQueryIndex = 0 49132 } else { 49133 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 49134 } 49135 case "MaxQueryTime": 49136 if r.TryDecodeAsNil() { 49137 x.QueryOptions.MaxQueryTime = 0 49138 } else { 49139 if false { 49140 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 49141 z.DecExtension(x.MaxQueryTime, yyxt10) 49142 } else { 49143 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 49144 } 49145 } 49146 case "AllowStale": 49147 if r.TryDecodeAsNil() { 49148 x.QueryOptions.AllowStale = false 49149 } else { 49150 x.AllowStale = (bool)(r.DecodeBool()) 49151 } 49152 case "Prefix": 49153 if r.TryDecodeAsNil() { 49154 x.QueryOptions.Prefix = "" 49155 } else { 49156 x.Prefix = (string)(r.DecodeString()) 49157 } 49158 case "AuthToken": 49159 if r.TryDecodeAsNil() { 49160 x.QueryOptions.AuthToken = "" 49161 } else { 49162 x.AuthToken = (string)(r.DecodeString()) 49163 } 49164 case "Forwarded": 49165 if r.TryDecodeAsNil() { 49166 x.QueryOptions.InternalRpcInfo.Forwarded = false 49167 } else { 49168 x.Forwarded = (bool)(r.DecodeBool()) 49169 } 49170 default: 49171 z.DecStructFieldNotFound(-1, yys3) 49172 } // end switch yys3 49173 } // end for yyj3 49174 r.ReadMapEnd() 49175 } 49176 49177 func (x *AllocRestartRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 49178 var h codecSelfer100 49179 z, r := codec1978.GenHelperDecoder(d) 49180 _, _, _ = h, z, r 49181 var yyj15 int 49182 var yyb15 bool 49183 var yyhl15 bool = l >= 0 49184 yyj15++ 49185 if yyhl15 { 49186 yyb15 = yyj15 > l 49187 } else { 49188 yyb15 = r.CheckBreak() 49189 } 49190 if yyb15 { 49191 r.ReadArrayEnd() 49192 return 49193 } 49194 r.ReadArrayElem() 49195 if r.TryDecodeAsNil() { 49196 x.AllocID = "" 49197 } else { 49198 x.AllocID = (string)(r.DecodeString()) 49199 } 49200 yyj15++ 49201 if yyhl15 { 49202 yyb15 = yyj15 > l 49203 } else { 49204 yyb15 = r.CheckBreak() 49205 } 49206 if yyb15 { 49207 r.ReadArrayEnd() 49208 return 49209 } 49210 r.ReadArrayElem() 49211 if r.TryDecodeAsNil() { 49212 x.TaskName = "" 49213 } else { 49214 x.TaskName = (string)(r.DecodeString()) 49215 } 49216 yyj15++ 49217 if yyhl15 { 49218 yyb15 = yyj15 > l 49219 } else { 49220 yyb15 = r.CheckBreak() 49221 } 49222 if yyb15 { 49223 r.ReadArrayEnd() 49224 return 49225 } 49226 r.ReadArrayElem() 49227 if r.TryDecodeAsNil() { 49228 x.QueryOptions.Region = "" 49229 } else { 49230 x.Region = (string)(r.DecodeString()) 49231 } 49232 yyj15++ 49233 if yyhl15 { 49234 yyb15 = yyj15 > l 49235 } else { 49236 yyb15 = r.CheckBreak() 49237 } 49238 if yyb15 { 49239 r.ReadArrayEnd() 49240 return 49241 } 49242 r.ReadArrayElem() 49243 if r.TryDecodeAsNil() { 49244 x.QueryOptions.Namespace = "" 49245 } else { 49246 x.Namespace = (string)(r.DecodeString()) 49247 } 49248 yyj15++ 49249 if yyhl15 { 49250 yyb15 = yyj15 > l 49251 } else { 49252 yyb15 = r.CheckBreak() 49253 } 49254 if yyb15 { 49255 r.ReadArrayEnd() 49256 return 49257 } 49258 r.ReadArrayElem() 49259 if r.TryDecodeAsNil() { 49260 x.QueryOptions.MinQueryIndex = 0 49261 } else { 49262 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 49263 } 49264 yyj15++ 49265 if yyhl15 { 49266 yyb15 = yyj15 > l 49267 } else { 49268 yyb15 = r.CheckBreak() 49269 } 49270 if yyb15 { 49271 r.ReadArrayEnd() 49272 return 49273 } 49274 r.ReadArrayElem() 49275 if r.TryDecodeAsNil() { 49276 x.QueryOptions.MaxQueryTime = 0 49277 } else { 49278 if false { 49279 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 49280 z.DecExtension(x.MaxQueryTime, yyxt22) 49281 } else { 49282 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 49283 } 49284 } 49285 yyj15++ 49286 if yyhl15 { 49287 yyb15 = yyj15 > l 49288 } else { 49289 yyb15 = r.CheckBreak() 49290 } 49291 if yyb15 { 49292 r.ReadArrayEnd() 49293 return 49294 } 49295 r.ReadArrayElem() 49296 if r.TryDecodeAsNil() { 49297 x.QueryOptions.AllowStale = false 49298 } else { 49299 x.AllowStale = (bool)(r.DecodeBool()) 49300 } 49301 yyj15++ 49302 if yyhl15 { 49303 yyb15 = yyj15 > l 49304 } else { 49305 yyb15 = r.CheckBreak() 49306 } 49307 if yyb15 { 49308 r.ReadArrayEnd() 49309 return 49310 } 49311 r.ReadArrayElem() 49312 if r.TryDecodeAsNil() { 49313 x.QueryOptions.Prefix = "" 49314 } else { 49315 x.Prefix = (string)(r.DecodeString()) 49316 } 49317 yyj15++ 49318 if yyhl15 { 49319 yyb15 = yyj15 > l 49320 } else { 49321 yyb15 = r.CheckBreak() 49322 } 49323 if yyb15 { 49324 r.ReadArrayEnd() 49325 return 49326 } 49327 r.ReadArrayElem() 49328 if r.TryDecodeAsNil() { 49329 x.QueryOptions.AuthToken = "" 49330 } else { 49331 x.AuthToken = (string)(r.DecodeString()) 49332 } 49333 yyj15++ 49334 if yyhl15 { 49335 yyb15 = yyj15 > l 49336 } else { 49337 yyb15 = r.CheckBreak() 49338 } 49339 if yyb15 { 49340 r.ReadArrayEnd() 49341 return 49342 } 49343 r.ReadArrayElem() 49344 if r.TryDecodeAsNil() { 49345 x.QueryOptions.InternalRpcInfo.Forwarded = false 49346 } else { 49347 x.Forwarded = (bool)(r.DecodeBool()) 49348 } 49349 for { 49350 yyj15++ 49351 if yyhl15 { 49352 yyb15 = yyj15 > l 49353 } else { 49354 yyb15 = r.CheckBreak() 49355 } 49356 if yyb15 { 49357 break 49358 } 49359 r.ReadArrayElem() 49360 z.DecStructFieldNotFound(yyj15-1, "") 49361 } 49362 r.ReadArrayEnd() 49363 } 49364 49365 func (x *PeriodicForceRequest) CodecEncodeSelf(e *codec1978.Encoder) { 49366 var h codecSelfer100 49367 z, r := codec1978.GenHelperEncoder(e) 49368 _, _, _ = h, z, r 49369 if x == nil { 49370 r.EncodeNil() 49371 } else { 49372 if false { 49373 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49374 z.EncExtension(x, yyxt1) 49375 } else { 49376 yysep2 := !z.EncBinary() 49377 yy2arr2 := z.EncBasicHandle().StructToArray 49378 _, _ = yysep2, yy2arr2 49379 const yyr2 bool = false // struct tag has 'toArray' 49380 if yyr2 || yy2arr2 { 49381 r.WriteArrayStart(5) 49382 } else { 49383 r.WriteMapStart(5) 49384 } 49385 if yyr2 || yy2arr2 { 49386 r.WriteArrayElem() 49387 if false { 49388 } else { 49389 if z.EncBasicHandle().StringToRaw { 49390 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 49391 } else { 49392 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 49393 } 49394 } 49395 } else { 49396 r.WriteMapElemKey() 49397 if z.IsJSONHandle() { 49398 z.WriteStr("\"JobID\"") 49399 } else { 49400 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 49401 } 49402 r.WriteMapElemValue() 49403 if false { 49404 } else { 49405 if z.EncBasicHandle().StringToRaw { 49406 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 49407 } else { 49408 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 49409 } 49410 } 49411 } 49412 if yyr2 || yy2arr2 { 49413 r.WriteArrayElem() 49414 if false { 49415 } else { 49416 if z.EncBasicHandle().StringToRaw { 49417 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 49418 } else { 49419 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 49420 } 49421 } 49422 } else { 49423 r.WriteMapElemKey() 49424 if z.IsJSONHandle() { 49425 z.WriteStr("\"Region\"") 49426 } else { 49427 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 49428 } 49429 r.WriteMapElemValue() 49430 if false { 49431 } else { 49432 if z.EncBasicHandle().StringToRaw { 49433 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 49434 } else { 49435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 49436 } 49437 } 49438 } 49439 if yyr2 || yy2arr2 { 49440 r.WriteArrayElem() 49441 if false { 49442 } else { 49443 if z.EncBasicHandle().StringToRaw { 49444 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 49445 } else { 49446 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 49447 } 49448 } 49449 } else { 49450 r.WriteMapElemKey() 49451 if z.IsJSONHandle() { 49452 z.WriteStr("\"Namespace\"") 49453 } else { 49454 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 49455 } 49456 r.WriteMapElemValue() 49457 if false { 49458 } else { 49459 if z.EncBasicHandle().StringToRaw { 49460 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 49461 } else { 49462 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 49463 } 49464 } 49465 } 49466 if yyr2 || yy2arr2 { 49467 r.WriteArrayElem() 49468 if false { 49469 } else { 49470 if z.EncBasicHandle().StringToRaw { 49471 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49472 } else { 49473 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49474 } 49475 } 49476 } else { 49477 r.WriteMapElemKey() 49478 if z.IsJSONHandle() { 49479 z.WriteStr("\"AuthToken\"") 49480 } else { 49481 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 49482 } 49483 r.WriteMapElemValue() 49484 if false { 49485 } else { 49486 if z.EncBasicHandle().StringToRaw { 49487 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 49488 } else { 49489 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 49490 } 49491 } 49492 } 49493 if yyr2 || yy2arr2 { 49494 r.WriteArrayElem() 49495 if false { 49496 } else { 49497 r.EncodeBool(bool(x.Forwarded)) 49498 } 49499 } else { 49500 r.WriteMapElemKey() 49501 if z.IsJSONHandle() { 49502 z.WriteStr("\"Forwarded\"") 49503 } else { 49504 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 49505 } 49506 r.WriteMapElemValue() 49507 if false { 49508 } else { 49509 r.EncodeBool(bool(x.Forwarded)) 49510 } 49511 } 49512 if yyr2 || yy2arr2 { 49513 r.WriteArrayEnd() 49514 } else { 49515 r.WriteMapEnd() 49516 } 49517 } 49518 } 49519 } 49520 49521 func (x *PeriodicForceRequest) CodecDecodeSelf(d *codec1978.Decoder) { 49522 var h codecSelfer100 49523 z, r := codec1978.GenHelperDecoder(d) 49524 _, _, _ = h, z, r 49525 if false { 49526 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49527 z.DecExtension(x, yyxt1) 49528 } else { 49529 yyct2 := r.ContainerType() 49530 if yyct2 == codecSelferValueTypeMap100 { 49531 yyl2 := r.ReadMapStart() 49532 if yyl2 == 0 { 49533 r.ReadMapEnd() 49534 } else { 49535 x.codecDecodeSelfFromMap(yyl2, d) 49536 } 49537 } else if yyct2 == codecSelferValueTypeArray100 { 49538 yyl2 := r.ReadArrayStart() 49539 if yyl2 == 0 { 49540 r.ReadArrayEnd() 49541 } else { 49542 x.codecDecodeSelfFromArray(yyl2, d) 49543 } 49544 } else { 49545 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49546 } 49547 } 49548 } 49549 49550 func (x *PeriodicForceRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49551 var h codecSelfer100 49552 z, r := codec1978.GenHelperDecoder(d) 49553 _, _, _ = h, z, r 49554 var yyhl3 bool = l >= 0 49555 for yyj3 := 0; ; yyj3++ { 49556 if yyhl3 { 49557 if yyj3 >= l { 49558 break 49559 } 49560 } else { 49561 if r.CheckBreak() { 49562 break 49563 } 49564 } 49565 r.ReadMapElemKey() 49566 yys3 := z.StringView(r.DecodeStringAsBytes()) 49567 r.ReadMapElemValue() 49568 switch yys3 { 49569 case "JobID": 49570 if r.TryDecodeAsNil() { 49571 x.JobID = "" 49572 } else { 49573 x.JobID = (string)(r.DecodeString()) 49574 } 49575 case "Region": 49576 if r.TryDecodeAsNil() { 49577 x.WriteRequest.Region = "" 49578 } else { 49579 x.Region = (string)(r.DecodeString()) 49580 } 49581 case "Namespace": 49582 if r.TryDecodeAsNil() { 49583 x.WriteRequest.Namespace = "" 49584 } else { 49585 x.Namespace = (string)(r.DecodeString()) 49586 } 49587 case "AuthToken": 49588 if r.TryDecodeAsNil() { 49589 x.WriteRequest.AuthToken = "" 49590 } else { 49591 x.AuthToken = (string)(r.DecodeString()) 49592 } 49593 case "Forwarded": 49594 if r.TryDecodeAsNil() { 49595 x.WriteRequest.InternalRpcInfo.Forwarded = false 49596 } else { 49597 x.Forwarded = (bool)(r.DecodeBool()) 49598 } 49599 default: 49600 z.DecStructFieldNotFound(-1, yys3) 49601 } // end switch yys3 49602 } // end for yyj3 49603 r.ReadMapEnd() 49604 } 49605 49606 func (x *PeriodicForceRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 49607 var h codecSelfer100 49608 z, r := codec1978.GenHelperDecoder(d) 49609 _, _, _ = h, z, r 49610 var yyj9 int 49611 var yyb9 bool 49612 var yyhl9 bool = l >= 0 49613 yyj9++ 49614 if yyhl9 { 49615 yyb9 = yyj9 > l 49616 } else { 49617 yyb9 = r.CheckBreak() 49618 } 49619 if yyb9 { 49620 r.ReadArrayEnd() 49621 return 49622 } 49623 r.ReadArrayElem() 49624 if r.TryDecodeAsNil() { 49625 x.JobID = "" 49626 } else { 49627 x.JobID = (string)(r.DecodeString()) 49628 } 49629 yyj9++ 49630 if yyhl9 { 49631 yyb9 = yyj9 > l 49632 } else { 49633 yyb9 = r.CheckBreak() 49634 } 49635 if yyb9 { 49636 r.ReadArrayEnd() 49637 return 49638 } 49639 r.ReadArrayElem() 49640 if r.TryDecodeAsNil() { 49641 x.WriteRequest.Region = "" 49642 } else { 49643 x.Region = (string)(r.DecodeString()) 49644 } 49645 yyj9++ 49646 if yyhl9 { 49647 yyb9 = yyj9 > l 49648 } else { 49649 yyb9 = r.CheckBreak() 49650 } 49651 if yyb9 { 49652 r.ReadArrayEnd() 49653 return 49654 } 49655 r.ReadArrayElem() 49656 if r.TryDecodeAsNil() { 49657 x.WriteRequest.Namespace = "" 49658 } else { 49659 x.Namespace = (string)(r.DecodeString()) 49660 } 49661 yyj9++ 49662 if yyhl9 { 49663 yyb9 = yyj9 > l 49664 } else { 49665 yyb9 = r.CheckBreak() 49666 } 49667 if yyb9 { 49668 r.ReadArrayEnd() 49669 return 49670 } 49671 r.ReadArrayElem() 49672 if r.TryDecodeAsNil() { 49673 x.WriteRequest.AuthToken = "" 49674 } else { 49675 x.AuthToken = (string)(r.DecodeString()) 49676 } 49677 yyj9++ 49678 if yyhl9 { 49679 yyb9 = yyj9 > l 49680 } else { 49681 yyb9 = r.CheckBreak() 49682 } 49683 if yyb9 { 49684 r.ReadArrayEnd() 49685 return 49686 } 49687 r.ReadArrayElem() 49688 if r.TryDecodeAsNil() { 49689 x.WriteRequest.InternalRpcInfo.Forwarded = false 49690 } else { 49691 x.Forwarded = (bool)(r.DecodeBool()) 49692 } 49693 for { 49694 yyj9++ 49695 if yyhl9 { 49696 yyb9 = yyj9 > l 49697 } else { 49698 yyb9 = r.CheckBreak() 49699 } 49700 if yyb9 { 49701 break 49702 } 49703 r.ReadArrayElem() 49704 z.DecStructFieldNotFound(yyj9-1, "") 49705 } 49706 r.ReadArrayEnd() 49707 } 49708 49709 func (x *ServerMembersResponse) CodecEncodeSelf(e *codec1978.Encoder) { 49710 var h codecSelfer100 49711 z, r := codec1978.GenHelperEncoder(e) 49712 _, _, _ = h, z, r 49713 if x == nil { 49714 r.EncodeNil() 49715 } else { 49716 if false { 49717 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49718 z.EncExtension(x, yyxt1) 49719 } else { 49720 yysep2 := !z.EncBinary() 49721 yy2arr2 := z.EncBasicHandle().StructToArray 49722 _, _ = yysep2, yy2arr2 49723 const yyr2 bool = false // struct tag has 'toArray' 49724 if yyr2 || yy2arr2 { 49725 r.WriteArrayStart(4) 49726 } else { 49727 r.WriteMapStart(4) 49728 } 49729 if yyr2 || yy2arr2 { 49730 r.WriteArrayElem() 49731 if false { 49732 } else { 49733 if z.EncBasicHandle().StringToRaw { 49734 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) 49735 } else { 49736 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) 49737 } 49738 } 49739 } else { 49740 r.WriteMapElemKey() 49741 if z.IsJSONHandle() { 49742 z.WriteStr("\"ServerName\"") 49743 } else { 49744 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerName`) 49745 } 49746 r.WriteMapElemValue() 49747 if false { 49748 } else { 49749 if z.EncBasicHandle().StringToRaw { 49750 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerName))) 49751 } else { 49752 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerName)) 49753 } 49754 } 49755 } 49756 if yyr2 || yy2arr2 { 49757 r.WriteArrayElem() 49758 if false { 49759 } else { 49760 if z.EncBasicHandle().StringToRaw { 49761 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) 49762 } else { 49763 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) 49764 } 49765 } 49766 } else { 49767 r.WriteMapElemKey() 49768 if z.IsJSONHandle() { 49769 z.WriteStr("\"ServerRegion\"") 49770 } else { 49771 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerRegion`) 49772 } 49773 r.WriteMapElemValue() 49774 if false { 49775 } else { 49776 if z.EncBasicHandle().StringToRaw { 49777 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerRegion))) 49778 } else { 49779 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerRegion)) 49780 } 49781 } 49782 } 49783 if yyr2 || yy2arr2 { 49784 r.WriteArrayElem() 49785 if false { 49786 } else { 49787 if z.EncBasicHandle().StringToRaw { 49788 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) 49789 } else { 49790 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) 49791 } 49792 } 49793 } else { 49794 r.WriteMapElemKey() 49795 if z.IsJSONHandle() { 49796 z.WriteStr("\"ServerDC\"") 49797 } else { 49798 r.EncodeStringEnc(codecSelferCcUTF8100, `ServerDC`) 49799 } 49800 r.WriteMapElemValue() 49801 if false { 49802 } else { 49803 if z.EncBasicHandle().StringToRaw { 49804 r.EncodeStringBytesRaw(z.BytesView(string(x.ServerDC))) 49805 } else { 49806 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ServerDC)) 49807 } 49808 } 49809 } 49810 if yyr2 || yy2arr2 { 49811 r.WriteArrayElem() 49812 if x.Members == nil { 49813 r.EncodeNil() 49814 } else { 49815 if false { 49816 } else { 49817 h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) 49818 } 49819 } 49820 } else { 49821 r.WriteMapElemKey() 49822 if z.IsJSONHandle() { 49823 z.WriteStr("\"Members\"") 49824 } else { 49825 r.EncodeStringEnc(codecSelferCcUTF8100, `Members`) 49826 } 49827 r.WriteMapElemValue() 49828 if x.Members == nil { 49829 r.EncodeNil() 49830 } else { 49831 if false { 49832 } else { 49833 h.encSlicePtrtoServerMember(([]*ServerMember)(x.Members), e) 49834 } 49835 } 49836 } 49837 if yyr2 || yy2arr2 { 49838 r.WriteArrayEnd() 49839 } else { 49840 r.WriteMapEnd() 49841 } 49842 } 49843 } 49844 } 49845 49846 func (x *ServerMembersResponse) CodecDecodeSelf(d *codec1978.Decoder) { 49847 var h codecSelfer100 49848 z, r := codec1978.GenHelperDecoder(d) 49849 _, _, _ = h, z, r 49850 if false { 49851 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 49852 z.DecExtension(x, yyxt1) 49853 } else { 49854 yyct2 := r.ContainerType() 49855 if yyct2 == codecSelferValueTypeMap100 { 49856 yyl2 := r.ReadMapStart() 49857 if yyl2 == 0 { 49858 r.ReadMapEnd() 49859 } else { 49860 x.codecDecodeSelfFromMap(yyl2, d) 49861 } 49862 } else if yyct2 == codecSelferValueTypeArray100 { 49863 yyl2 := r.ReadArrayStart() 49864 if yyl2 == 0 { 49865 r.ReadArrayEnd() 49866 } else { 49867 x.codecDecodeSelfFromArray(yyl2, d) 49868 } 49869 } else { 49870 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 49871 } 49872 } 49873 } 49874 49875 func (x *ServerMembersResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 49876 var h codecSelfer100 49877 z, r := codec1978.GenHelperDecoder(d) 49878 _, _, _ = h, z, r 49879 var yyhl3 bool = l >= 0 49880 for yyj3 := 0; ; yyj3++ { 49881 if yyhl3 { 49882 if yyj3 >= l { 49883 break 49884 } 49885 } else { 49886 if r.CheckBreak() { 49887 break 49888 } 49889 } 49890 r.ReadMapElemKey() 49891 yys3 := z.StringView(r.DecodeStringAsBytes()) 49892 r.ReadMapElemValue() 49893 switch yys3 { 49894 case "ServerName": 49895 if r.TryDecodeAsNil() { 49896 x.ServerName = "" 49897 } else { 49898 x.ServerName = (string)(r.DecodeString()) 49899 } 49900 case "ServerRegion": 49901 if r.TryDecodeAsNil() { 49902 x.ServerRegion = "" 49903 } else { 49904 x.ServerRegion = (string)(r.DecodeString()) 49905 } 49906 case "ServerDC": 49907 if r.TryDecodeAsNil() { 49908 x.ServerDC = "" 49909 } else { 49910 x.ServerDC = (string)(r.DecodeString()) 49911 } 49912 case "Members": 49913 if r.TryDecodeAsNil() { 49914 x.Members = nil 49915 } else { 49916 if false { 49917 } else { 49918 h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) 49919 } 49920 } 49921 default: 49922 z.DecStructFieldNotFound(-1, yys3) 49923 } // end switch yys3 49924 } // end for yyj3 49925 r.ReadMapEnd() 49926 } 49927 49928 func (x *ServerMembersResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 49929 var h codecSelfer100 49930 z, r := codec1978.GenHelperDecoder(d) 49931 _, _, _ = h, z, r 49932 var yyj9 int 49933 var yyb9 bool 49934 var yyhl9 bool = l >= 0 49935 yyj9++ 49936 if yyhl9 { 49937 yyb9 = yyj9 > l 49938 } else { 49939 yyb9 = r.CheckBreak() 49940 } 49941 if yyb9 { 49942 r.ReadArrayEnd() 49943 return 49944 } 49945 r.ReadArrayElem() 49946 if r.TryDecodeAsNil() { 49947 x.ServerName = "" 49948 } else { 49949 x.ServerName = (string)(r.DecodeString()) 49950 } 49951 yyj9++ 49952 if yyhl9 { 49953 yyb9 = yyj9 > l 49954 } else { 49955 yyb9 = r.CheckBreak() 49956 } 49957 if yyb9 { 49958 r.ReadArrayEnd() 49959 return 49960 } 49961 r.ReadArrayElem() 49962 if r.TryDecodeAsNil() { 49963 x.ServerRegion = "" 49964 } else { 49965 x.ServerRegion = (string)(r.DecodeString()) 49966 } 49967 yyj9++ 49968 if yyhl9 { 49969 yyb9 = yyj9 > l 49970 } else { 49971 yyb9 = r.CheckBreak() 49972 } 49973 if yyb9 { 49974 r.ReadArrayEnd() 49975 return 49976 } 49977 r.ReadArrayElem() 49978 if r.TryDecodeAsNil() { 49979 x.ServerDC = "" 49980 } else { 49981 x.ServerDC = (string)(r.DecodeString()) 49982 } 49983 yyj9++ 49984 if yyhl9 { 49985 yyb9 = yyj9 > l 49986 } else { 49987 yyb9 = r.CheckBreak() 49988 } 49989 if yyb9 { 49990 r.ReadArrayEnd() 49991 return 49992 } 49993 r.ReadArrayElem() 49994 if r.TryDecodeAsNil() { 49995 x.Members = nil 49996 } else { 49997 if false { 49998 } else { 49999 h.decSlicePtrtoServerMember((*[]*ServerMember)(&x.Members), d) 50000 } 50001 } 50002 for { 50003 yyj9++ 50004 if yyhl9 { 50005 yyb9 = yyj9 > l 50006 } else { 50007 yyb9 = r.CheckBreak() 50008 } 50009 if yyb9 { 50010 break 50011 } 50012 r.ReadArrayElem() 50013 z.DecStructFieldNotFound(yyj9-1, "") 50014 } 50015 r.ReadArrayEnd() 50016 } 50017 50018 func (x *ServerMember) CodecEncodeSelf(e *codec1978.Encoder) { 50019 var h codecSelfer100 50020 z, r := codec1978.GenHelperEncoder(e) 50021 _, _, _ = h, z, r 50022 if x == nil { 50023 r.EncodeNil() 50024 } else { 50025 if false { 50026 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50027 z.EncExtension(x, yyxt1) 50028 } else { 50029 yysep2 := !z.EncBinary() 50030 yy2arr2 := z.EncBasicHandle().StructToArray 50031 _, _ = yysep2, yy2arr2 50032 const yyr2 bool = false // struct tag has 'toArray' 50033 if yyr2 || yy2arr2 { 50034 r.WriteArrayStart(11) 50035 } else { 50036 r.WriteMapStart(11) 50037 } 50038 if yyr2 || yy2arr2 { 50039 r.WriteArrayElem() 50040 if false { 50041 } else { 50042 if z.EncBasicHandle().StringToRaw { 50043 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 50044 } else { 50045 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 50046 } 50047 } 50048 } else { 50049 r.WriteMapElemKey() 50050 if z.IsJSONHandle() { 50051 z.WriteStr("\"Name\"") 50052 } else { 50053 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 50054 } 50055 r.WriteMapElemValue() 50056 if false { 50057 } else { 50058 if z.EncBasicHandle().StringToRaw { 50059 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 50060 } else { 50061 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 50062 } 50063 } 50064 } 50065 if yyr2 || yy2arr2 { 50066 r.WriteArrayElem() 50067 if x.Addr == nil { 50068 r.EncodeNil() 50069 } else { 50070 if false { 50071 } else if yyxt7 := z.Extension(z.I2Rtid(x.Addr)); yyxt7 != nil { 50072 z.EncExtension(x.Addr, yyxt7) 50073 } else if !z.EncBinary() { 50074 z.EncTextMarshal(x.Addr) 50075 } else { 50076 h.encnet_IP((net.IP)(x.Addr), e) 50077 } 50078 } 50079 } else { 50080 r.WriteMapElemKey() 50081 if z.IsJSONHandle() { 50082 z.WriteStr("\"Addr\"") 50083 } else { 50084 r.EncodeStringEnc(codecSelferCcUTF8100, `Addr`) 50085 } 50086 r.WriteMapElemValue() 50087 if x.Addr == nil { 50088 r.EncodeNil() 50089 } else { 50090 if false { 50091 } else if yyxt8 := z.Extension(z.I2Rtid(x.Addr)); yyxt8 != nil { 50092 z.EncExtension(x.Addr, yyxt8) 50093 } else if !z.EncBinary() { 50094 z.EncTextMarshal(x.Addr) 50095 } else { 50096 h.encnet_IP((net.IP)(x.Addr), e) 50097 } 50098 } 50099 } 50100 if yyr2 || yy2arr2 { 50101 r.WriteArrayElem() 50102 if false { 50103 } else { 50104 r.EncodeUint(uint64(x.Port)) 50105 } 50106 } else { 50107 r.WriteMapElemKey() 50108 if z.IsJSONHandle() { 50109 z.WriteStr("\"Port\"") 50110 } else { 50111 r.EncodeStringEnc(codecSelferCcUTF8100, `Port`) 50112 } 50113 r.WriteMapElemValue() 50114 if false { 50115 } else { 50116 r.EncodeUint(uint64(x.Port)) 50117 } 50118 } 50119 if yyr2 || yy2arr2 { 50120 r.WriteArrayElem() 50121 if x.Tags == nil { 50122 r.EncodeNil() 50123 } else { 50124 if false { 50125 } else { 50126 z.F.EncMapStringStringV(x.Tags, e) 50127 } 50128 } 50129 } else { 50130 r.WriteMapElemKey() 50131 if z.IsJSONHandle() { 50132 z.WriteStr("\"Tags\"") 50133 } else { 50134 r.EncodeStringEnc(codecSelferCcUTF8100, `Tags`) 50135 } 50136 r.WriteMapElemValue() 50137 if x.Tags == nil { 50138 r.EncodeNil() 50139 } else { 50140 if false { 50141 } else { 50142 z.F.EncMapStringStringV(x.Tags, e) 50143 } 50144 } 50145 } 50146 if yyr2 || yy2arr2 { 50147 r.WriteArrayElem() 50148 if false { 50149 } else { 50150 if z.EncBasicHandle().StringToRaw { 50151 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 50152 } else { 50153 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 50154 } 50155 } 50156 } else { 50157 r.WriteMapElemKey() 50158 if z.IsJSONHandle() { 50159 z.WriteStr("\"Status\"") 50160 } else { 50161 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 50162 } 50163 r.WriteMapElemValue() 50164 if false { 50165 } else { 50166 if z.EncBasicHandle().StringToRaw { 50167 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 50168 } else { 50169 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 50170 } 50171 } 50172 } 50173 if yyr2 || yy2arr2 { 50174 r.WriteArrayElem() 50175 if false { 50176 } else { 50177 r.EncodeUint(uint64(x.ProtocolMin)) 50178 } 50179 } else { 50180 r.WriteMapElemKey() 50181 if z.IsJSONHandle() { 50182 z.WriteStr("\"ProtocolMin\"") 50183 } else { 50184 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMin`) 50185 } 50186 r.WriteMapElemValue() 50187 if false { 50188 } else { 50189 r.EncodeUint(uint64(x.ProtocolMin)) 50190 } 50191 } 50192 if yyr2 || yy2arr2 { 50193 r.WriteArrayElem() 50194 if false { 50195 } else { 50196 r.EncodeUint(uint64(x.ProtocolMax)) 50197 } 50198 } else { 50199 r.WriteMapElemKey() 50200 if z.IsJSONHandle() { 50201 z.WriteStr("\"ProtocolMax\"") 50202 } else { 50203 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolMax`) 50204 } 50205 r.WriteMapElemValue() 50206 if false { 50207 } else { 50208 r.EncodeUint(uint64(x.ProtocolMax)) 50209 } 50210 } 50211 if yyr2 || yy2arr2 { 50212 r.WriteArrayElem() 50213 if false { 50214 } else { 50215 r.EncodeUint(uint64(x.ProtocolCur)) 50216 } 50217 } else { 50218 r.WriteMapElemKey() 50219 if z.IsJSONHandle() { 50220 z.WriteStr("\"ProtocolCur\"") 50221 } else { 50222 r.EncodeStringEnc(codecSelferCcUTF8100, `ProtocolCur`) 50223 } 50224 r.WriteMapElemValue() 50225 if false { 50226 } else { 50227 r.EncodeUint(uint64(x.ProtocolCur)) 50228 } 50229 } 50230 if yyr2 || yy2arr2 { 50231 r.WriteArrayElem() 50232 if false { 50233 } else { 50234 r.EncodeUint(uint64(x.DelegateMin)) 50235 } 50236 } else { 50237 r.WriteMapElemKey() 50238 if z.IsJSONHandle() { 50239 z.WriteStr("\"DelegateMin\"") 50240 } else { 50241 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMin`) 50242 } 50243 r.WriteMapElemValue() 50244 if false { 50245 } else { 50246 r.EncodeUint(uint64(x.DelegateMin)) 50247 } 50248 } 50249 if yyr2 || yy2arr2 { 50250 r.WriteArrayElem() 50251 if false { 50252 } else { 50253 r.EncodeUint(uint64(x.DelegateMax)) 50254 } 50255 } else { 50256 r.WriteMapElemKey() 50257 if z.IsJSONHandle() { 50258 z.WriteStr("\"DelegateMax\"") 50259 } else { 50260 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateMax`) 50261 } 50262 r.WriteMapElemValue() 50263 if false { 50264 } else { 50265 r.EncodeUint(uint64(x.DelegateMax)) 50266 } 50267 } 50268 if yyr2 || yy2arr2 { 50269 r.WriteArrayElem() 50270 if false { 50271 } else { 50272 r.EncodeUint(uint64(x.DelegateCur)) 50273 } 50274 } else { 50275 r.WriteMapElemKey() 50276 if z.IsJSONHandle() { 50277 z.WriteStr("\"DelegateCur\"") 50278 } else { 50279 r.EncodeStringEnc(codecSelferCcUTF8100, `DelegateCur`) 50280 } 50281 r.WriteMapElemValue() 50282 if false { 50283 } else { 50284 r.EncodeUint(uint64(x.DelegateCur)) 50285 } 50286 } 50287 if yyr2 || yy2arr2 { 50288 r.WriteArrayEnd() 50289 } else { 50290 r.WriteMapEnd() 50291 } 50292 } 50293 } 50294 } 50295 50296 func (x *ServerMember) CodecDecodeSelf(d *codec1978.Decoder) { 50297 var h codecSelfer100 50298 z, r := codec1978.GenHelperDecoder(d) 50299 _, _, _ = h, z, r 50300 if false { 50301 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50302 z.DecExtension(x, yyxt1) 50303 } else { 50304 yyct2 := r.ContainerType() 50305 if yyct2 == codecSelferValueTypeMap100 { 50306 yyl2 := r.ReadMapStart() 50307 if yyl2 == 0 { 50308 r.ReadMapEnd() 50309 } else { 50310 x.codecDecodeSelfFromMap(yyl2, d) 50311 } 50312 } else if yyct2 == codecSelferValueTypeArray100 { 50313 yyl2 := r.ReadArrayStart() 50314 if yyl2 == 0 { 50315 r.ReadArrayEnd() 50316 } else { 50317 x.codecDecodeSelfFromArray(yyl2, d) 50318 } 50319 } else { 50320 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 50321 } 50322 } 50323 } 50324 50325 func (x *ServerMember) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 50326 var h codecSelfer100 50327 z, r := codec1978.GenHelperDecoder(d) 50328 _, _, _ = h, z, r 50329 var yyhl3 bool = l >= 0 50330 for yyj3 := 0; ; yyj3++ { 50331 if yyhl3 { 50332 if yyj3 >= l { 50333 break 50334 } 50335 } else { 50336 if r.CheckBreak() { 50337 break 50338 } 50339 } 50340 r.ReadMapElemKey() 50341 yys3 := z.StringView(r.DecodeStringAsBytes()) 50342 r.ReadMapElemValue() 50343 switch yys3 { 50344 case "Name": 50345 if r.TryDecodeAsNil() { 50346 x.Name = "" 50347 } else { 50348 x.Name = (string)(r.DecodeString()) 50349 } 50350 case "Addr": 50351 if r.TryDecodeAsNil() { 50352 x.Addr = nil 50353 } else { 50354 if false { 50355 } else if yyxt6 := z.Extension(z.I2Rtid(x.Addr)); yyxt6 != nil { 50356 z.DecExtension(x.Addr, yyxt6) 50357 } else if !z.DecBinary() { 50358 z.DecTextUnmarshal(&x.Addr) 50359 } else { 50360 h.decnet_IP((*net.IP)(&x.Addr), d) 50361 } 50362 } 50363 case "Port": 50364 if r.TryDecodeAsNil() { 50365 x.Port = 0 50366 } else { 50367 x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 50368 } 50369 case "Tags": 50370 if r.TryDecodeAsNil() { 50371 x.Tags = nil 50372 } else { 50373 if false { 50374 } else { 50375 z.F.DecMapStringStringX(&x.Tags, d) 50376 } 50377 } 50378 case "Status": 50379 if r.TryDecodeAsNil() { 50380 x.Status = "" 50381 } else { 50382 x.Status = (string)(r.DecodeString()) 50383 } 50384 case "ProtocolMin": 50385 if r.TryDecodeAsNil() { 50386 x.ProtocolMin = 0 50387 } else { 50388 x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50389 } 50390 case "ProtocolMax": 50391 if r.TryDecodeAsNil() { 50392 x.ProtocolMax = 0 50393 } else { 50394 x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50395 } 50396 case "ProtocolCur": 50397 if r.TryDecodeAsNil() { 50398 x.ProtocolCur = 0 50399 } else { 50400 x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50401 } 50402 case "DelegateMin": 50403 if r.TryDecodeAsNil() { 50404 x.DelegateMin = 0 50405 } else { 50406 x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50407 } 50408 case "DelegateMax": 50409 if r.TryDecodeAsNil() { 50410 x.DelegateMax = 0 50411 } else { 50412 x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50413 } 50414 case "DelegateCur": 50415 if r.TryDecodeAsNil() { 50416 x.DelegateCur = 0 50417 } else { 50418 x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50419 } 50420 default: 50421 z.DecStructFieldNotFound(-1, yys3) 50422 } // end switch yys3 50423 } // end for yyj3 50424 r.ReadMapEnd() 50425 } 50426 50427 func (x *ServerMember) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 50428 var h codecSelfer100 50429 z, r := codec1978.GenHelperDecoder(d) 50430 _, _, _ = h, z, r 50431 var yyj17 int 50432 var yyb17 bool 50433 var yyhl17 bool = l >= 0 50434 yyj17++ 50435 if yyhl17 { 50436 yyb17 = yyj17 > l 50437 } else { 50438 yyb17 = r.CheckBreak() 50439 } 50440 if yyb17 { 50441 r.ReadArrayEnd() 50442 return 50443 } 50444 r.ReadArrayElem() 50445 if r.TryDecodeAsNil() { 50446 x.Name = "" 50447 } else { 50448 x.Name = (string)(r.DecodeString()) 50449 } 50450 yyj17++ 50451 if yyhl17 { 50452 yyb17 = yyj17 > l 50453 } else { 50454 yyb17 = r.CheckBreak() 50455 } 50456 if yyb17 { 50457 r.ReadArrayEnd() 50458 return 50459 } 50460 r.ReadArrayElem() 50461 if r.TryDecodeAsNil() { 50462 x.Addr = nil 50463 } else { 50464 if false { 50465 } else if yyxt20 := z.Extension(z.I2Rtid(x.Addr)); yyxt20 != nil { 50466 z.DecExtension(x.Addr, yyxt20) 50467 } else if !z.DecBinary() { 50468 z.DecTextUnmarshal(&x.Addr) 50469 } else { 50470 h.decnet_IP((*net.IP)(&x.Addr), d) 50471 } 50472 } 50473 yyj17++ 50474 if yyhl17 { 50475 yyb17 = yyj17 > l 50476 } else { 50477 yyb17 = r.CheckBreak() 50478 } 50479 if yyb17 { 50480 r.ReadArrayEnd() 50481 return 50482 } 50483 r.ReadArrayElem() 50484 if r.TryDecodeAsNil() { 50485 x.Port = 0 50486 } else { 50487 x.Port = (uint16)(z.C.UintV(r.DecodeUint64(), 16)) 50488 } 50489 yyj17++ 50490 if yyhl17 { 50491 yyb17 = yyj17 > l 50492 } else { 50493 yyb17 = r.CheckBreak() 50494 } 50495 if yyb17 { 50496 r.ReadArrayEnd() 50497 return 50498 } 50499 r.ReadArrayElem() 50500 if r.TryDecodeAsNil() { 50501 x.Tags = nil 50502 } else { 50503 if false { 50504 } else { 50505 z.F.DecMapStringStringX(&x.Tags, d) 50506 } 50507 } 50508 yyj17++ 50509 if yyhl17 { 50510 yyb17 = yyj17 > l 50511 } else { 50512 yyb17 = r.CheckBreak() 50513 } 50514 if yyb17 { 50515 r.ReadArrayEnd() 50516 return 50517 } 50518 r.ReadArrayElem() 50519 if r.TryDecodeAsNil() { 50520 x.Status = "" 50521 } else { 50522 x.Status = (string)(r.DecodeString()) 50523 } 50524 yyj17++ 50525 if yyhl17 { 50526 yyb17 = yyj17 > l 50527 } else { 50528 yyb17 = r.CheckBreak() 50529 } 50530 if yyb17 { 50531 r.ReadArrayEnd() 50532 return 50533 } 50534 r.ReadArrayElem() 50535 if r.TryDecodeAsNil() { 50536 x.ProtocolMin = 0 50537 } else { 50538 x.ProtocolMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50539 } 50540 yyj17++ 50541 if yyhl17 { 50542 yyb17 = yyj17 > l 50543 } else { 50544 yyb17 = r.CheckBreak() 50545 } 50546 if yyb17 { 50547 r.ReadArrayEnd() 50548 return 50549 } 50550 r.ReadArrayElem() 50551 if r.TryDecodeAsNil() { 50552 x.ProtocolMax = 0 50553 } else { 50554 x.ProtocolMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50555 } 50556 yyj17++ 50557 if yyhl17 { 50558 yyb17 = yyj17 > l 50559 } else { 50560 yyb17 = r.CheckBreak() 50561 } 50562 if yyb17 { 50563 r.ReadArrayEnd() 50564 return 50565 } 50566 r.ReadArrayElem() 50567 if r.TryDecodeAsNil() { 50568 x.ProtocolCur = 0 50569 } else { 50570 x.ProtocolCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50571 } 50572 yyj17++ 50573 if yyhl17 { 50574 yyb17 = yyj17 > l 50575 } else { 50576 yyb17 = r.CheckBreak() 50577 } 50578 if yyb17 { 50579 r.ReadArrayEnd() 50580 return 50581 } 50582 r.ReadArrayElem() 50583 if r.TryDecodeAsNil() { 50584 x.DelegateMin = 0 50585 } else { 50586 x.DelegateMin = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50587 } 50588 yyj17++ 50589 if yyhl17 { 50590 yyb17 = yyj17 > l 50591 } else { 50592 yyb17 = r.CheckBreak() 50593 } 50594 if yyb17 { 50595 r.ReadArrayEnd() 50596 return 50597 } 50598 r.ReadArrayElem() 50599 if r.TryDecodeAsNil() { 50600 x.DelegateMax = 0 50601 } else { 50602 x.DelegateMax = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50603 } 50604 yyj17++ 50605 if yyhl17 { 50606 yyb17 = yyj17 > l 50607 } else { 50608 yyb17 = r.CheckBreak() 50609 } 50610 if yyb17 { 50611 r.ReadArrayEnd() 50612 return 50613 } 50614 r.ReadArrayElem() 50615 if r.TryDecodeAsNil() { 50616 x.DelegateCur = 0 50617 } else { 50618 x.DelegateCur = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 50619 } 50620 for { 50621 yyj17++ 50622 if yyhl17 { 50623 yyb17 = yyj17 > l 50624 } else { 50625 yyb17 = r.CheckBreak() 50626 } 50627 if yyb17 { 50628 break 50629 } 50630 r.ReadArrayElem() 50631 z.DecStructFieldNotFound(yyj17-1, "") 50632 } 50633 r.ReadArrayEnd() 50634 } 50635 50636 func (x *ClusterMetadata) CodecEncodeSelf(e *codec1978.Encoder) { 50637 var h codecSelfer100 50638 z, r := codec1978.GenHelperEncoder(e) 50639 _, _, _ = h, z, r 50640 if x == nil { 50641 r.EncodeNil() 50642 } else { 50643 if false { 50644 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50645 z.EncExtension(x, yyxt1) 50646 } else { 50647 yysep2 := !z.EncBinary() 50648 yy2arr2 := z.EncBasicHandle().StructToArray 50649 _, _ = yysep2, yy2arr2 50650 const yyr2 bool = false // struct tag has 'toArray' 50651 if yyr2 || yy2arr2 { 50652 r.WriteArrayStart(2) 50653 } else { 50654 r.WriteMapStart(2) 50655 } 50656 if yyr2 || yy2arr2 { 50657 r.WriteArrayElem() 50658 if false { 50659 } else { 50660 if z.EncBasicHandle().StringToRaw { 50661 r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) 50662 } else { 50663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) 50664 } 50665 } 50666 } else { 50667 r.WriteMapElemKey() 50668 if z.IsJSONHandle() { 50669 z.WriteStr("\"ClusterID\"") 50670 } else { 50671 r.EncodeStringEnc(codecSelferCcUTF8100, `ClusterID`) 50672 } 50673 r.WriteMapElemValue() 50674 if false { 50675 } else { 50676 if z.EncBasicHandle().StringToRaw { 50677 r.EncodeStringBytesRaw(z.BytesView(string(x.ClusterID))) 50678 } else { 50679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClusterID)) 50680 } 50681 } 50682 } 50683 if yyr2 || yy2arr2 { 50684 r.WriteArrayElem() 50685 if false { 50686 } else { 50687 r.EncodeInt(int64(x.CreateTime)) 50688 } 50689 } else { 50690 r.WriteMapElemKey() 50691 if z.IsJSONHandle() { 50692 z.WriteStr("\"CreateTime\"") 50693 } else { 50694 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 50695 } 50696 r.WriteMapElemValue() 50697 if false { 50698 } else { 50699 r.EncodeInt(int64(x.CreateTime)) 50700 } 50701 } 50702 if yyr2 || yy2arr2 { 50703 r.WriteArrayEnd() 50704 } else { 50705 r.WriteMapEnd() 50706 } 50707 } 50708 } 50709 } 50710 50711 func (x *ClusterMetadata) CodecDecodeSelf(d *codec1978.Decoder) { 50712 var h codecSelfer100 50713 z, r := codec1978.GenHelperDecoder(d) 50714 _, _, _ = h, z, r 50715 if false { 50716 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50717 z.DecExtension(x, yyxt1) 50718 } else { 50719 yyct2 := r.ContainerType() 50720 if yyct2 == codecSelferValueTypeMap100 { 50721 yyl2 := r.ReadMapStart() 50722 if yyl2 == 0 { 50723 r.ReadMapEnd() 50724 } else { 50725 x.codecDecodeSelfFromMap(yyl2, d) 50726 } 50727 } else if yyct2 == codecSelferValueTypeArray100 { 50728 yyl2 := r.ReadArrayStart() 50729 if yyl2 == 0 { 50730 r.ReadArrayEnd() 50731 } else { 50732 x.codecDecodeSelfFromArray(yyl2, d) 50733 } 50734 } else { 50735 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 50736 } 50737 } 50738 } 50739 50740 func (x *ClusterMetadata) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 50741 var h codecSelfer100 50742 z, r := codec1978.GenHelperDecoder(d) 50743 _, _, _ = h, z, r 50744 var yyhl3 bool = l >= 0 50745 for yyj3 := 0; ; yyj3++ { 50746 if yyhl3 { 50747 if yyj3 >= l { 50748 break 50749 } 50750 } else { 50751 if r.CheckBreak() { 50752 break 50753 } 50754 } 50755 r.ReadMapElemKey() 50756 yys3 := z.StringView(r.DecodeStringAsBytes()) 50757 r.ReadMapElemValue() 50758 switch yys3 { 50759 case "ClusterID": 50760 if r.TryDecodeAsNil() { 50761 x.ClusterID = "" 50762 } else { 50763 x.ClusterID = (string)(r.DecodeString()) 50764 } 50765 case "CreateTime": 50766 if r.TryDecodeAsNil() { 50767 x.CreateTime = 0 50768 } else { 50769 x.CreateTime = (int64)(r.DecodeInt64()) 50770 } 50771 default: 50772 z.DecStructFieldNotFound(-1, yys3) 50773 } // end switch yys3 50774 } // end for yyj3 50775 r.ReadMapEnd() 50776 } 50777 50778 func (x *ClusterMetadata) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 50779 var h codecSelfer100 50780 z, r := codec1978.GenHelperDecoder(d) 50781 _, _, _ = h, z, r 50782 var yyj6 int 50783 var yyb6 bool 50784 var yyhl6 bool = l >= 0 50785 yyj6++ 50786 if yyhl6 { 50787 yyb6 = yyj6 > l 50788 } else { 50789 yyb6 = r.CheckBreak() 50790 } 50791 if yyb6 { 50792 r.ReadArrayEnd() 50793 return 50794 } 50795 r.ReadArrayElem() 50796 if r.TryDecodeAsNil() { 50797 x.ClusterID = "" 50798 } else { 50799 x.ClusterID = (string)(r.DecodeString()) 50800 } 50801 yyj6++ 50802 if yyhl6 { 50803 yyb6 = yyj6 > l 50804 } else { 50805 yyb6 = r.CheckBreak() 50806 } 50807 if yyb6 { 50808 r.ReadArrayEnd() 50809 return 50810 } 50811 r.ReadArrayElem() 50812 if r.TryDecodeAsNil() { 50813 x.CreateTime = 0 50814 } else { 50815 x.CreateTime = (int64)(r.DecodeInt64()) 50816 } 50817 for { 50818 yyj6++ 50819 if yyhl6 { 50820 yyb6 = yyj6 > l 50821 } else { 50822 yyb6 = r.CheckBreak() 50823 } 50824 if yyb6 { 50825 break 50826 } 50827 r.ReadArrayElem() 50828 z.DecStructFieldNotFound(yyj6-1, "") 50829 } 50830 r.ReadArrayEnd() 50831 } 50832 50833 func (x *DeriveVaultTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 50834 var h codecSelfer100 50835 z, r := codec1978.GenHelperEncoder(e) 50836 _, _, _ = h, z, r 50837 if x == nil { 50838 r.EncodeNil() 50839 } else { 50840 if false { 50841 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 50842 z.EncExtension(x, yyxt1) 50843 } else { 50844 yysep2 := !z.EncBinary() 50845 yy2arr2 := z.EncBasicHandle().StructToArray 50846 _, _ = yysep2, yy2arr2 50847 const yyr2 bool = false // struct tag has 'toArray' 50848 if yyr2 || yy2arr2 { 50849 r.WriteArrayStart(12) 50850 } else { 50851 r.WriteMapStart(12) 50852 } 50853 if yyr2 || yy2arr2 { 50854 r.WriteArrayElem() 50855 if false { 50856 } else { 50857 if z.EncBasicHandle().StringToRaw { 50858 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 50859 } else { 50860 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 50861 } 50862 } 50863 } else { 50864 r.WriteMapElemKey() 50865 if z.IsJSONHandle() { 50866 z.WriteStr("\"NodeID\"") 50867 } else { 50868 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 50869 } 50870 r.WriteMapElemValue() 50871 if false { 50872 } else { 50873 if z.EncBasicHandle().StringToRaw { 50874 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 50875 } else { 50876 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 50877 } 50878 } 50879 } 50880 if yyr2 || yy2arr2 { 50881 r.WriteArrayElem() 50882 if false { 50883 } else { 50884 if z.EncBasicHandle().StringToRaw { 50885 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 50886 } else { 50887 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 50888 } 50889 } 50890 } else { 50891 r.WriteMapElemKey() 50892 if z.IsJSONHandle() { 50893 z.WriteStr("\"SecretID\"") 50894 } else { 50895 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 50896 } 50897 r.WriteMapElemValue() 50898 if false { 50899 } else { 50900 if z.EncBasicHandle().StringToRaw { 50901 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 50902 } else { 50903 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 50904 } 50905 } 50906 } 50907 if yyr2 || yy2arr2 { 50908 r.WriteArrayElem() 50909 if false { 50910 } else { 50911 if z.EncBasicHandle().StringToRaw { 50912 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 50913 } else { 50914 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 50915 } 50916 } 50917 } else { 50918 r.WriteMapElemKey() 50919 if z.IsJSONHandle() { 50920 z.WriteStr("\"AllocID\"") 50921 } else { 50922 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 50923 } 50924 r.WriteMapElemValue() 50925 if false { 50926 } else { 50927 if z.EncBasicHandle().StringToRaw { 50928 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 50929 } else { 50930 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 50931 } 50932 } 50933 } 50934 if yyr2 || yy2arr2 { 50935 r.WriteArrayElem() 50936 if x.Tasks == nil { 50937 r.EncodeNil() 50938 } else { 50939 if false { 50940 } else { 50941 z.F.EncSliceStringV(x.Tasks, e) 50942 } 50943 } 50944 } else { 50945 r.WriteMapElemKey() 50946 if z.IsJSONHandle() { 50947 z.WriteStr("\"Tasks\"") 50948 } else { 50949 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 50950 } 50951 r.WriteMapElemValue() 50952 if x.Tasks == nil { 50953 r.EncodeNil() 50954 } else { 50955 if false { 50956 } else { 50957 z.F.EncSliceStringV(x.Tasks, e) 50958 } 50959 } 50960 } 50961 if yyr2 || yy2arr2 { 50962 r.WriteArrayElem() 50963 if false { 50964 } else { 50965 if z.EncBasicHandle().StringToRaw { 50966 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 50967 } else { 50968 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 50969 } 50970 } 50971 } else { 50972 r.WriteMapElemKey() 50973 if z.IsJSONHandle() { 50974 z.WriteStr("\"Region\"") 50975 } else { 50976 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 50977 } 50978 r.WriteMapElemValue() 50979 if false { 50980 } else { 50981 if z.EncBasicHandle().StringToRaw { 50982 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 50983 } else { 50984 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 50985 } 50986 } 50987 } 50988 if yyr2 || yy2arr2 { 50989 r.WriteArrayElem() 50990 if false { 50991 } else { 50992 if z.EncBasicHandle().StringToRaw { 50993 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 50994 } else { 50995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 50996 } 50997 } 50998 } else { 50999 r.WriteMapElemKey() 51000 if z.IsJSONHandle() { 51001 z.WriteStr("\"Namespace\"") 51002 } else { 51003 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 51004 } 51005 r.WriteMapElemValue() 51006 if false { 51007 } else { 51008 if z.EncBasicHandle().StringToRaw { 51009 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 51010 } else { 51011 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 51012 } 51013 } 51014 } 51015 if yyr2 || yy2arr2 { 51016 r.WriteArrayElem() 51017 if false { 51018 } else { 51019 r.EncodeUint(uint64(x.MinQueryIndex)) 51020 } 51021 } else { 51022 r.WriteMapElemKey() 51023 if z.IsJSONHandle() { 51024 z.WriteStr("\"MinQueryIndex\"") 51025 } else { 51026 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 51027 } 51028 r.WriteMapElemValue() 51029 if false { 51030 } else { 51031 r.EncodeUint(uint64(x.MinQueryIndex)) 51032 } 51033 } 51034 if yyr2 || yy2arr2 { 51035 r.WriteArrayElem() 51036 if false { 51037 } else if yyxt25 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt25 != nil { 51038 z.EncExtension(x.MaxQueryTime, yyxt25) 51039 } else { 51040 r.EncodeInt(int64(x.MaxQueryTime)) 51041 } 51042 } else { 51043 r.WriteMapElemKey() 51044 if z.IsJSONHandle() { 51045 z.WriteStr("\"MaxQueryTime\"") 51046 } else { 51047 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 51048 } 51049 r.WriteMapElemValue() 51050 if false { 51051 } else if yyxt26 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt26 != nil { 51052 z.EncExtension(x.MaxQueryTime, yyxt26) 51053 } else { 51054 r.EncodeInt(int64(x.MaxQueryTime)) 51055 } 51056 } 51057 if yyr2 || yy2arr2 { 51058 r.WriteArrayElem() 51059 if false { 51060 } else { 51061 r.EncodeBool(bool(x.AllowStale)) 51062 } 51063 } else { 51064 r.WriteMapElemKey() 51065 if z.IsJSONHandle() { 51066 z.WriteStr("\"AllowStale\"") 51067 } else { 51068 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 51069 } 51070 r.WriteMapElemValue() 51071 if false { 51072 } else { 51073 r.EncodeBool(bool(x.AllowStale)) 51074 } 51075 } 51076 if yyr2 || yy2arr2 { 51077 r.WriteArrayElem() 51078 if false { 51079 } else { 51080 if z.EncBasicHandle().StringToRaw { 51081 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 51082 } else { 51083 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 51084 } 51085 } 51086 } else { 51087 r.WriteMapElemKey() 51088 if z.IsJSONHandle() { 51089 z.WriteStr("\"Prefix\"") 51090 } else { 51091 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 51092 } 51093 r.WriteMapElemValue() 51094 if false { 51095 } else { 51096 if z.EncBasicHandle().StringToRaw { 51097 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 51098 } else { 51099 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 51100 } 51101 } 51102 } 51103 if yyr2 || yy2arr2 { 51104 r.WriteArrayElem() 51105 if false { 51106 } else { 51107 if z.EncBasicHandle().StringToRaw { 51108 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51109 } else { 51110 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51111 } 51112 } 51113 } else { 51114 r.WriteMapElemKey() 51115 if z.IsJSONHandle() { 51116 z.WriteStr("\"AuthToken\"") 51117 } else { 51118 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 51119 } 51120 r.WriteMapElemValue() 51121 if false { 51122 } else { 51123 if z.EncBasicHandle().StringToRaw { 51124 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 51125 } else { 51126 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 51127 } 51128 } 51129 } 51130 if yyr2 || yy2arr2 { 51131 r.WriteArrayElem() 51132 if false { 51133 } else { 51134 r.EncodeBool(bool(x.Forwarded)) 51135 } 51136 } else { 51137 r.WriteMapElemKey() 51138 if z.IsJSONHandle() { 51139 z.WriteStr("\"Forwarded\"") 51140 } else { 51141 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 51142 } 51143 r.WriteMapElemValue() 51144 if false { 51145 } else { 51146 r.EncodeBool(bool(x.Forwarded)) 51147 } 51148 } 51149 if yyr2 || yy2arr2 { 51150 r.WriteArrayEnd() 51151 } else { 51152 r.WriteMapEnd() 51153 } 51154 } 51155 } 51156 } 51157 51158 func (x *DeriveVaultTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 51159 var h codecSelfer100 51160 z, r := codec1978.GenHelperDecoder(d) 51161 _, _, _ = h, z, r 51162 if false { 51163 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51164 z.DecExtension(x, yyxt1) 51165 } else { 51166 yyct2 := r.ContainerType() 51167 if yyct2 == codecSelferValueTypeMap100 { 51168 yyl2 := r.ReadMapStart() 51169 if yyl2 == 0 { 51170 r.ReadMapEnd() 51171 } else { 51172 x.codecDecodeSelfFromMap(yyl2, d) 51173 } 51174 } else if yyct2 == codecSelferValueTypeArray100 { 51175 yyl2 := r.ReadArrayStart() 51176 if yyl2 == 0 { 51177 r.ReadArrayEnd() 51178 } else { 51179 x.codecDecodeSelfFromArray(yyl2, d) 51180 } 51181 } else { 51182 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51183 } 51184 } 51185 } 51186 51187 func (x *DeriveVaultTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51188 var h codecSelfer100 51189 z, r := codec1978.GenHelperDecoder(d) 51190 _, _, _ = h, z, r 51191 var yyhl3 bool = l >= 0 51192 for yyj3 := 0; ; yyj3++ { 51193 if yyhl3 { 51194 if yyj3 >= l { 51195 break 51196 } 51197 } else { 51198 if r.CheckBreak() { 51199 break 51200 } 51201 } 51202 r.ReadMapElemKey() 51203 yys3 := z.StringView(r.DecodeStringAsBytes()) 51204 r.ReadMapElemValue() 51205 switch yys3 { 51206 case "NodeID": 51207 if r.TryDecodeAsNil() { 51208 x.NodeID = "" 51209 } else { 51210 x.NodeID = (string)(r.DecodeString()) 51211 } 51212 case "SecretID": 51213 if r.TryDecodeAsNil() { 51214 x.SecretID = "" 51215 } else { 51216 x.SecretID = (string)(r.DecodeString()) 51217 } 51218 case "AllocID": 51219 if r.TryDecodeAsNil() { 51220 x.AllocID = "" 51221 } else { 51222 x.AllocID = (string)(r.DecodeString()) 51223 } 51224 case "Tasks": 51225 if r.TryDecodeAsNil() { 51226 x.Tasks = nil 51227 } else { 51228 if false { 51229 } else { 51230 z.F.DecSliceStringX(&x.Tasks, d) 51231 } 51232 } 51233 case "Region": 51234 if r.TryDecodeAsNil() { 51235 x.QueryOptions.Region = "" 51236 } else { 51237 x.Region = (string)(r.DecodeString()) 51238 } 51239 case "Namespace": 51240 if r.TryDecodeAsNil() { 51241 x.QueryOptions.Namespace = "" 51242 } else { 51243 x.Namespace = (string)(r.DecodeString()) 51244 } 51245 case "MinQueryIndex": 51246 if r.TryDecodeAsNil() { 51247 x.QueryOptions.MinQueryIndex = 0 51248 } else { 51249 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51250 } 51251 case "MaxQueryTime": 51252 if r.TryDecodeAsNil() { 51253 x.QueryOptions.MaxQueryTime = 0 51254 } else { 51255 if false { 51256 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 51257 z.DecExtension(x.MaxQueryTime, yyxt13) 51258 } else { 51259 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51260 } 51261 } 51262 case "AllowStale": 51263 if r.TryDecodeAsNil() { 51264 x.QueryOptions.AllowStale = false 51265 } else { 51266 x.AllowStale = (bool)(r.DecodeBool()) 51267 } 51268 case "Prefix": 51269 if r.TryDecodeAsNil() { 51270 x.QueryOptions.Prefix = "" 51271 } else { 51272 x.Prefix = (string)(r.DecodeString()) 51273 } 51274 case "AuthToken": 51275 if r.TryDecodeAsNil() { 51276 x.QueryOptions.AuthToken = "" 51277 } else { 51278 x.AuthToken = (string)(r.DecodeString()) 51279 } 51280 case "Forwarded": 51281 if r.TryDecodeAsNil() { 51282 x.QueryOptions.InternalRpcInfo.Forwarded = false 51283 } else { 51284 x.Forwarded = (bool)(r.DecodeBool()) 51285 } 51286 default: 51287 z.DecStructFieldNotFound(-1, yys3) 51288 } // end switch yys3 51289 } // end for yyj3 51290 r.ReadMapEnd() 51291 } 51292 51293 func (x *DeriveVaultTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 51294 var h codecSelfer100 51295 z, r := codec1978.GenHelperDecoder(d) 51296 _, _, _ = h, z, r 51297 var yyj18 int 51298 var yyb18 bool 51299 var yyhl18 bool = l >= 0 51300 yyj18++ 51301 if yyhl18 { 51302 yyb18 = yyj18 > l 51303 } else { 51304 yyb18 = r.CheckBreak() 51305 } 51306 if yyb18 { 51307 r.ReadArrayEnd() 51308 return 51309 } 51310 r.ReadArrayElem() 51311 if r.TryDecodeAsNil() { 51312 x.NodeID = "" 51313 } else { 51314 x.NodeID = (string)(r.DecodeString()) 51315 } 51316 yyj18++ 51317 if yyhl18 { 51318 yyb18 = yyj18 > l 51319 } else { 51320 yyb18 = r.CheckBreak() 51321 } 51322 if yyb18 { 51323 r.ReadArrayEnd() 51324 return 51325 } 51326 r.ReadArrayElem() 51327 if r.TryDecodeAsNil() { 51328 x.SecretID = "" 51329 } else { 51330 x.SecretID = (string)(r.DecodeString()) 51331 } 51332 yyj18++ 51333 if yyhl18 { 51334 yyb18 = yyj18 > l 51335 } else { 51336 yyb18 = r.CheckBreak() 51337 } 51338 if yyb18 { 51339 r.ReadArrayEnd() 51340 return 51341 } 51342 r.ReadArrayElem() 51343 if r.TryDecodeAsNil() { 51344 x.AllocID = "" 51345 } else { 51346 x.AllocID = (string)(r.DecodeString()) 51347 } 51348 yyj18++ 51349 if yyhl18 { 51350 yyb18 = yyj18 > l 51351 } else { 51352 yyb18 = r.CheckBreak() 51353 } 51354 if yyb18 { 51355 r.ReadArrayEnd() 51356 return 51357 } 51358 r.ReadArrayElem() 51359 if r.TryDecodeAsNil() { 51360 x.Tasks = nil 51361 } else { 51362 if false { 51363 } else { 51364 z.F.DecSliceStringX(&x.Tasks, d) 51365 } 51366 } 51367 yyj18++ 51368 if yyhl18 { 51369 yyb18 = yyj18 > l 51370 } else { 51371 yyb18 = r.CheckBreak() 51372 } 51373 if yyb18 { 51374 r.ReadArrayEnd() 51375 return 51376 } 51377 r.ReadArrayElem() 51378 if r.TryDecodeAsNil() { 51379 x.QueryOptions.Region = "" 51380 } else { 51381 x.Region = (string)(r.DecodeString()) 51382 } 51383 yyj18++ 51384 if yyhl18 { 51385 yyb18 = yyj18 > l 51386 } else { 51387 yyb18 = r.CheckBreak() 51388 } 51389 if yyb18 { 51390 r.ReadArrayEnd() 51391 return 51392 } 51393 r.ReadArrayElem() 51394 if r.TryDecodeAsNil() { 51395 x.QueryOptions.Namespace = "" 51396 } else { 51397 x.Namespace = (string)(r.DecodeString()) 51398 } 51399 yyj18++ 51400 if yyhl18 { 51401 yyb18 = yyj18 > l 51402 } else { 51403 yyb18 = r.CheckBreak() 51404 } 51405 if yyb18 { 51406 r.ReadArrayEnd() 51407 return 51408 } 51409 r.ReadArrayElem() 51410 if r.TryDecodeAsNil() { 51411 x.QueryOptions.MinQueryIndex = 0 51412 } else { 51413 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 51414 } 51415 yyj18++ 51416 if yyhl18 { 51417 yyb18 = yyj18 > l 51418 } else { 51419 yyb18 = r.CheckBreak() 51420 } 51421 if yyb18 { 51422 r.ReadArrayEnd() 51423 return 51424 } 51425 r.ReadArrayElem() 51426 if r.TryDecodeAsNil() { 51427 x.QueryOptions.MaxQueryTime = 0 51428 } else { 51429 if false { 51430 } else if yyxt28 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt28 != nil { 51431 z.DecExtension(x.MaxQueryTime, yyxt28) 51432 } else { 51433 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 51434 } 51435 } 51436 yyj18++ 51437 if yyhl18 { 51438 yyb18 = yyj18 > l 51439 } else { 51440 yyb18 = r.CheckBreak() 51441 } 51442 if yyb18 { 51443 r.ReadArrayEnd() 51444 return 51445 } 51446 r.ReadArrayElem() 51447 if r.TryDecodeAsNil() { 51448 x.QueryOptions.AllowStale = false 51449 } else { 51450 x.AllowStale = (bool)(r.DecodeBool()) 51451 } 51452 yyj18++ 51453 if yyhl18 { 51454 yyb18 = yyj18 > l 51455 } else { 51456 yyb18 = r.CheckBreak() 51457 } 51458 if yyb18 { 51459 r.ReadArrayEnd() 51460 return 51461 } 51462 r.ReadArrayElem() 51463 if r.TryDecodeAsNil() { 51464 x.QueryOptions.Prefix = "" 51465 } else { 51466 x.Prefix = (string)(r.DecodeString()) 51467 } 51468 yyj18++ 51469 if yyhl18 { 51470 yyb18 = yyj18 > l 51471 } else { 51472 yyb18 = r.CheckBreak() 51473 } 51474 if yyb18 { 51475 r.ReadArrayEnd() 51476 return 51477 } 51478 r.ReadArrayElem() 51479 if r.TryDecodeAsNil() { 51480 x.QueryOptions.AuthToken = "" 51481 } else { 51482 x.AuthToken = (string)(r.DecodeString()) 51483 } 51484 yyj18++ 51485 if yyhl18 { 51486 yyb18 = yyj18 > l 51487 } else { 51488 yyb18 = r.CheckBreak() 51489 } 51490 if yyb18 { 51491 r.ReadArrayEnd() 51492 return 51493 } 51494 r.ReadArrayElem() 51495 if r.TryDecodeAsNil() { 51496 x.QueryOptions.InternalRpcInfo.Forwarded = false 51497 } else { 51498 x.Forwarded = (bool)(r.DecodeBool()) 51499 } 51500 for { 51501 yyj18++ 51502 if yyhl18 { 51503 yyb18 = yyj18 > l 51504 } else { 51505 yyb18 = r.CheckBreak() 51506 } 51507 if yyb18 { 51508 break 51509 } 51510 r.ReadArrayElem() 51511 z.DecStructFieldNotFound(yyj18-1, "") 51512 } 51513 r.ReadArrayEnd() 51514 } 51515 51516 func (x *VaultAccessorsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 51517 var h codecSelfer100 51518 z, r := codec1978.GenHelperEncoder(e) 51519 _, _, _ = h, z, r 51520 if x == nil { 51521 r.EncodeNil() 51522 } else { 51523 if false { 51524 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51525 z.EncExtension(x, yyxt1) 51526 } else { 51527 yysep2 := !z.EncBinary() 51528 yy2arr2 := z.EncBasicHandle().StructToArray 51529 _, _ = yysep2, yy2arr2 51530 const yyr2 bool = false // struct tag has 'toArray' 51531 if yyr2 || yy2arr2 { 51532 r.WriteArrayStart(1) 51533 } else { 51534 r.WriteMapStart(1) 51535 } 51536 if yyr2 || yy2arr2 { 51537 r.WriteArrayElem() 51538 if x.Accessors == nil { 51539 r.EncodeNil() 51540 } else { 51541 if false { 51542 } else { 51543 h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) 51544 } 51545 } 51546 } else { 51547 r.WriteMapElemKey() 51548 if z.IsJSONHandle() { 51549 z.WriteStr("\"Accessors\"") 51550 } else { 51551 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessors`) 51552 } 51553 r.WriteMapElemValue() 51554 if x.Accessors == nil { 51555 r.EncodeNil() 51556 } else { 51557 if false { 51558 } else { 51559 h.encSlicePtrtoVaultAccessor(([]*VaultAccessor)(x.Accessors), e) 51560 } 51561 } 51562 } 51563 if yyr2 || yy2arr2 { 51564 r.WriteArrayEnd() 51565 } else { 51566 r.WriteMapEnd() 51567 } 51568 } 51569 } 51570 } 51571 51572 func (x *VaultAccessorsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 51573 var h codecSelfer100 51574 z, r := codec1978.GenHelperDecoder(d) 51575 _, _, _ = h, z, r 51576 if false { 51577 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51578 z.DecExtension(x, yyxt1) 51579 } else { 51580 yyct2 := r.ContainerType() 51581 if yyct2 == codecSelferValueTypeMap100 { 51582 yyl2 := r.ReadMapStart() 51583 if yyl2 == 0 { 51584 r.ReadMapEnd() 51585 } else { 51586 x.codecDecodeSelfFromMap(yyl2, d) 51587 } 51588 } else if yyct2 == codecSelferValueTypeArray100 { 51589 yyl2 := r.ReadArrayStart() 51590 if yyl2 == 0 { 51591 r.ReadArrayEnd() 51592 } else { 51593 x.codecDecodeSelfFromArray(yyl2, d) 51594 } 51595 } else { 51596 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51597 } 51598 } 51599 } 51600 51601 func (x *VaultAccessorsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51602 var h codecSelfer100 51603 z, r := codec1978.GenHelperDecoder(d) 51604 _, _, _ = h, z, r 51605 var yyhl3 bool = l >= 0 51606 for yyj3 := 0; ; yyj3++ { 51607 if yyhl3 { 51608 if yyj3 >= l { 51609 break 51610 } 51611 } else { 51612 if r.CheckBreak() { 51613 break 51614 } 51615 } 51616 r.ReadMapElemKey() 51617 yys3 := z.StringView(r.DecodeStringAsBytes()) 51618 r.ReadMapElemValue() 51619 switch yys3 { 51620 case "Accessors": 51621 if r.TryDecodeAsNil() { 51622 x.Accessors = nil 51623 } else { 51624 if false { 51625 } else { 51626 h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) 51627 } 51628 } 51629 default: 51630 z.DecStructFieldNotFound(-1, yys3) 51631 } // end switch yys3 51632 } // end for yyj3 51633 r.ReadMapEnd() 51634 } 51635 51636 func (x *VaultAccessorsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 51637 var h codecSelfer100 51638 z, r := codec1978.GenHelperDecoder(d) 51639 _, _, _ = h, z, r 51640 var yyj6 int 51641 var yyb6 bool 51642 var yyhl6 bool = l >= 0 51643 yyj6++ 51644 if yyhl6 { 51645 yyb6 = yyj6 > l 51646 } else { 51647 yyb6 = r.CheckBreak() 51648 } 51649 if yyb6 { 51650 r.ReadArrayEnd() 51651 return 51652 } 51653 r.ReadArrayElem() 51654 if r.TryDecodeAsNil() { 51655 x.Accessors = nil 51656 } else { 51657 if false { 51658 } else { 51659 h.decSlicePtrtoVaultAccessor((*[]*VaultAccessor)(&x.Accessors), d) 51660 } 51661 } 51662 for { 51663 yyj6++ 51664 if yyhl6 { 51665 yyb6 = yyj6 > l 51666 } else { 51667 yyb6 = r.CheckBreak() 51668 } 51669 if yyb6 { 51670 break 51671 } 51672 r.ReadArrayElem() 51673 z.DecStructFieldNotFound(yyj6-1, "") 51674 } 51675 r.ReadArrayEnd() 51676 } 51677 51678 func (x *VaultAccessor) CodecEncodeSelf(e *codec1978.Encoder) { 51679 var h codecSelfer100 51680 z, r := codec1978.GenHelperEncoder(e) 51681 _, _, _ = h, z, r 51682 if x == nil { 51683 r.EncodeNil() 51684 } else { 51685 if false { 51686 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51687 z.EncExtension(x, yyxt1) 51688 } else { 51689 yysep2 := !z.EncBinary() 51690 yy2arr2 := z.EncBasicHandle().StructToArray 51691 _, _ = yysep2, yy2arr2 51692 const yyr2 bool = false // struct tag has 'toArray' 51693 if yyr2 || yy2arr2 { 51694 r.WriteArrayStart(6) 51695 } else { 51696 r.WriteMapStart(6) 51697 } 51698 if yyr2 || yy2arr2 { 51699 r.WriteArrayElem() 51700 if false { 51701 } else { 51702 if z.EncBasicHandle().StringToRaw { 51703 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 51704 } else { 51705 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 51706 } 51707 } 51708 } else { 51709 r.WriteMapElemKey() 51710 if z.IsJSONHandle() { 51711 z.WriteStr("\"AllocID\"") 51712 } else { 51713 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocID`) 51714 } 51715 r.WriteMapElemValue() 51716 if false { 51717 } else { 51718 if z.EncBasicHandle().StringToRaw { 51719 r.EncodeStringBytesRaw(z.BytesView(string(x.AllocID))) 51720 } else { 51721 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AllocID)) 51722 } 51723 } 51724 } 51725 if yyr2 || yy2arr2 { 51726 r.WriteArrayElem() 51727 if false { 51728 } else { 51729 if z.EncBasicHandle().StringToRaw { 51730 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 51731 } else { 51732 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 51733 } 51734 } 51735 } else { 51736 r.WriteMapElemKey() 51737 if z.IsJSONHandle() { 51738 z.WriteStr("\"Task\"") 51739 } else { 51740 r.EncodeStringEnc(codecSelferCcUTF8100, `Task`) 51741 } 51742 r.WriteMapElemValue() 51743 if false { 51744 } else { 51745 if z.EncBasicHandle().StringToRaw { 51746 r.EncodeStringBytesRaw(z.BytesView(string(x.Task))) 51747 } else { 51748 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Task)) 51749 } 51750 } 51751 } 51752 if yyr2 || yy2arr2 { 51753 r.WriteArrayElem() 51754 if false { 51755 } else { 51756 if z.EncBasicHandle().StringToRaw { 51757 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 51758 } else { 51759 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 51760 } 51761 } 51762 } else { 51763 r.WriteMapElemKey() 51764 if z.IsJSONHandle() { 51765 z.WriteStr("\"NodeID\"") 51766 } else { 51767 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 51768 } 51769 r.WriteMapElemValue() 51770 if false { 51771 } else { 51772 if z.EncBasicHandle().StringToRaw { 51773 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 51774 } else { 51775 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 51776 } 51777 } 51778 } 51779 if yyr2 || yy2arr2 { 51780 r.WriteArrayElem() 51781 if false { 51782 } else { 51783 if z.EncBasicHandle().StringToRaw { 51784 r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) 51785 } else { 51786 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) 51787 } 51788 } 51789 } else { 51790 r.WriteMapElemKey() 51791 if z.IsJSONHandle() { 51792 z.WriteStr("\"Accessor\"") 51793 } else { 51794 r.EncodeStringEnc(codecSelferCcUTF8100, `Accessor`) 51795 } 51796 r.WriteMapElemValue() 51797 if false { 51798 } else { 51799 if z.EncBasicHandle().StringToRaw { 51800 r.EncodeStringBytesRaw(z.BytesView(string(x.Accessor))) 51801 } else { 51802 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Accessor)) 51803 } 51804 } 51805 } 51806 if yyr2 || yy2arr2 { 51807 r.WriteArrayElem() 51808 if false { 51809 } else { 51810 r.EncodeInt(int64(x.CreationTTL)) 51811 } 51812 } else { 51813 r.WriteMapElemKey() 51814 if z.IsJSONHandle() { 51815 z.WriteStr("\"CreationTTL\"") 51816 } else { 51817 r.EncodeStringEnc(codecSelferCcUTF8100, `CreationTTL`) 51818 } 51819 r.WriteMapElemValue() 51820 if false { 51821 } else { 51822 r.EncodeInt(int64(x.CreationTTL)) 51823 } 51824 } 51825 if yyr2 || yy2arr2 { 51826 r.WriteArrayElem() 51827 if false { 51828 } else { 51829 r.EncodeUint(uint64(x.CreateIndex)) 51830 } 51831 } else { 51832 r.WriteMapElemKey() 51833 if z.IsJSONHandle() { 51834 z.WriteStr("\"CreateIndex\"") 51835 } else { 51836 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 51837 } 51838 r.WriteMapElemValue() 51839 if false { 51840 } else { 51841 r.EncodeUint(uint64(x.CreateIndex)) 51842 } 51843 } 51844 if yyr2 || yy2arr2 { 51845 r.WriteArrayEnd() 51846 } else { 51847 r.WriteMapEnd() 51848 } 51849 } 51850 } 51851 } 51852 51853 func (x *VaultAccessor) CodecDecodeSelf(d *codec1978.Decoder) { 51854 var h codecSelfer100 51855 z, r := codec1978.GenHelperDecoder(d) 51856 _, _, _ = h, z, r 51857 if false { 51858 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 51859 z.DecExtension(x, yyxt1) 51860 } else { 51861 yyct2 := r.ContainerType() 51862 if yyct2 == codecSelferValueTypeMap100 { 51863 yyl2 := r.ReadMapStart() 51864 if yyl2 == 0 { 51865 r.ReadMapEnd() 51866 } else { 51867 x.codecDecodeSelfFromMap(yyl2, d) 51868 } 51869 } else if yyct2 == codecSelferValueTypeArray100 { 51870 yyl2 := r.ReadArrayStart() 51871 if yyl2 == 0 { 51872 r.ReadArrayEnd() 51873 } else { 51874 x.codecDecodeSelfFromArray(yyl2, d) 51875 } 51876 } else { 51877 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 51878 } 51879 } 51880 } 51881 51882 func (x *VaultAccessor) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 51883 var h codecSelfer100 51884 z, r := codec1978.GenHelperDecoder(d) 51885 _, _, _ = h, z, r 51886 var yyhl3 bool = l >= 0 51887 for yyj3 := 0; ; yyj3++ { 51888 if yyhl3 { 51889 if yyj3 >= l { 51890 break 51891 } 51892 } else { 51893 if r.CheckBreak() { 51894 break 51895 } 51896 } 51897 r.ReadMapElemKey() 51898 yys3 := z.StringView(r.DecodeStringAsBytes()) 51899 r.ReadMapElemValue() 51900 switch yys3 { 51901 case "AllocID": 51902 if r.TryDecodeAsNil() { 51903 x.AllocID = "" 51904 } else { 51905 x.AllocID = (string)(r.DecodeString()) 51906 } 51907 case "Task": 51908 if r.TryDecodeAsNil() { 51909 x.Task = "" 51910 } else { 51911 x.Task = (string)(r.DecodeString()) 51912 } 51913 case "NodeID": 51914 if r.TryDecodeAsNil() { 51915 x.NodeID = "" 51916 } else { 51917 x.NodeID = (string)(r.DecodeString()) 51918 } 51919 case "Accessor": 51920 if r.TryDecodeAsNil() { 51921 x.Accessor = "" 51922 } else { 51923 x.Accessor = (string)(r.DecodeString()) 51924 } 51925 case "CreationTTL": 51926 if r.TryDecodeAsNil() { 51927 x.CreationTTL = 0 51928 } else { 51929 x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 51930 } 51931 case "CreateIndex": 51932 if r.TryDecodeAsNil() { 51933 x.CreateIndex = 0 51934 } else { 51935 x.CreateIndex = (uint64)(r.DecodeUint64()) 51936 } 51937 default: 51938 z.DecStructFieldNotFound(-1, yys3) 51939 } // end switch yys3 51940 } // end for yyj3 51941 r.ReadMapEnd() 51942 } 51943 51944 func (x *VaultAccessor) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 51945 var h codecSelfer100 51946 z, r := codec1978.GenHelperDecoder(d) 51947 _, _, _ = h, z, r 51948 var yyj10 int 51949 var yyb10 bool 51950 var yyhl10 bool = l >= 0 51951 yyj10++ 51952 if yyhl10 { 51953 yyb10 = yyj10 > l 51954 } else { 51955 yyb10 = r.CheckBreak() 51956 } 51957 if yyb10 { 51958 r.ReadArrayEnd() 51959 return 51960 } 51961 r.ReadArrayElem() 51962 if r.TryDecodeAsNil() { 51963 x.AllocID = "" 51964 } else { 51965 x.AllocID = (string)(r.DecodeString()) 51966 } 51967 yyj10++ 51968 if yyhl10 { 51969 yyb10 = yyj10 > l 51970 } else { 51971 yyb10 = r.CheckBreak() 51972 } 51973 if yyb10 { 51974 r.ReadArrayEnd() 51975 return 51976 } 51977 r.ReadArrayElem() 51978 if r.TryDecodeAsNil() { 51979 x.Task = "" 51980 } else { 51981 x.Task = (string)(r.DecodeString()) 51982 } 51983 yyj10++ 51984 if yyhl10 { 51985 yyb10 = yyj10 > l 51986 } else { 51987 yyb10 = r.CheckBreak() 51988 } 51989 if yyb10 { 51990 r.ReadArrayEnd() 51991 return 51992 } 51993 r.ReadArrayElem() 51994 if r.TryDecodeAsNil() { 51995 x.NodeID = "" 51996 } else { 51997 x.NodeID = (string)(r.DecodeString()) 51998 } 51999 yyj10++ 52000 if yyhl10 { 52001 yyb10 = yyj10 > l 52002 } else { 52003 yyb10 = r.CheckBreak() 52004 } 52005 if yyb10 { 52006 r.ReadArrayEnd() 52007 return 52008 } 52009 r.ReadArrayElem() 52010 if r.TryDecodeAsNil() { 52011 x.Accessor = "" 52012 } else { 52013 x.Accessor = (string)(r.DecodeString()) 52014 } 52015 yyj10++ 52016 if yyhl10 { 52017 yyb10 = yyj10 > l 52018 } else { 52019 yyb10 = r.CheckBreak() 52020 } 52021 if yyb10 { 52022 r.ReadArrayEnd() 52023 return 52024 } 52025 r.ReadArrayElem() 52026 if r.TryDecodeAsNil() { 52027 x.CreationTTL = 0 52028 } else { 52029 x.CreationTTL = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 52030 } 52031 yyj10++ 52032 if yyhl10 { 52033 yyb10 = yyj10 > l 52034 } else { 52035 yyb10 = r.CheckBreak() 52036 } 52037 if yyb10 { 52038 r.ReadArrayEnd() 52039 return 52040 } 52041 r.ReadArrayElem() 52042 if r.TryDecodeAsNil() { 52043 x.CreateIndex = 0 52044 } else { 52045 x.CreateIndex = (uint64)(r.DecodeUint64()) 52046 } 52047 for { 52048 yyj10++ 52049 if yyhl10 { 52050 yyb10 = yyj10 > l 52051 } else { 52052 yyb10 = r.CheckBreak() 52053 } 52054 if yyb10 { 52055 break 52056 } 52057 r.ReadArrayElem() 52058 z.DecStructFieldNotFound(yyj10-1, "") 52059 } 52060 r.ReadArrayEnd() 52061 } 52062 52063 func (x *DeriveVaultTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 52064 var h codecSelfer100 52065 z, r := codec1978.GenHelperEncoder(e) 52066 _, _, _ = h, z, r 52067 if x == nil { 52068 r.EncodeNil() 52069 } else { 52070 if false { 52071 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52072 z.EncExtension(x, yyxt1) 52073 } else { 52074 yysep2 := !z.EncBinary() 52075 yy2arr2 := z.EncBasicHandle().StructToArray 52076 _, _ = yysep2, yy2arr2 52077 const yyr2 bool = false // struct tag has 'toArray' 52078 if yyr2 || yy2arr2 { 52079 r.WriteArrayStart(5) 52080 } else { 52081 r.WriteMapStart(5) 52082 } 52083 if yyr2 || yy2arr2 { 52084 r.WriteArrayElem() 52085 if x.Tasks == nil { 52086 r.EncodeNil() 52087 } else { 52088 if false { 52089 } else { 52090 z.F.EncMapStringStringV(x.Tasks, e) 52091 } 52092 } 52093 } else { 52094 r.WriteMapElemKey() 52095 if z.IsJSONHandle() { 52096 z.WriteStr("\"Tasks\"") 52097 } else { 52098 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 52099 } 52100 r.WriteMapElemValue() 52101 if x.Tasks == nil { 52102 r.EncodeNil() 52103 } else { 52104 if false { 52105 } else { 52106 z.F.EncMapStringStringV(x.Tasks, e) 52107 } 52108 } 52109 } 52110 var yyn6 bool 52111 if x.Error == nil { 52112 yyn6 = true 52113 goto LABEL6 52114 } 52115 LABEL6: 52116 if yyr2 || yy2arr2 { 52117 if yyn6 { 52118 r.WriteArrayElem() 52119 r.EncodeNil() 52120 } else { 52121 r.WriteArrayElem() 52122 if x.Error == nil { 52123 r.EncodeNil() 52124 } else { 52125 x.Error.CodecEncodeSelf(e) 52126 } 52127 } 52128 } else { 52129 r.WriteMapElemKey() 52130 if z.IsJSONHandle() { 52131 z.WriteStr("\"Error\"") 52132 } else { 52133 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 52134 } 52135 r.WriteMapElemValue() 52136 if yyn6 { 52137 r.EncodeNil() 52138 } else { 52139 if x.Error == nil { 52140 r.EncodeNil() 52141 } else { 52142 x.Error.CodecEncodeSelf(e) 52143 } 52144 } 52145 } 52146 if yyr2 || yy2arr2 { 52147 r.WriteArrayElem() 52148 if false { 52149 } else { 52150 r.EncodeUint(uint64(x.Index)) 52151 } 52152 } else { 52153 r.WriteMapElemKey() 52154 if z.IsJSONHandle() { 52155 z.WriteStr("\"Index\"") 52156 } else { 52157 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 52158 } 52159 r.WriteMapElemValue() 52160 if false { 52161 } else { 52162 r.EncodeUint(uint64(x.Index)) 52163 } 52164 } 52165 if yyr2 || yy2arr2 { 52166 r.WriteArrayElem() 52167 if false { 52168 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 52169 z.EncExtension(x.LastContact, yyxt13) 52170 } else { 52171 r.EncodeInt(int64(x.LastContact)) 52172 } 52173 } else { 52174 r.WriteMapElemKey() 52175 if z.IsJSONHandle() { 52176 z.WriteStr("\"LastContact\"") 52177 } else { 52178 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 52179 } 52180 r.WriteMapElemValue() 52181 if false { 52182 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 52183 z.EncExtension(x.LastContact, yyxt14) 52184 } else { 52185 r.EncodeInt(int64(x.LastContact)) 52186 } 52187 } 52188 if yyr2 || yy2arr2 { 52189 r.WriteArrayElem() 52190 if false { 52191 } else { 52192 r.EncodeBool(bool(x.KnownLeader)) 52193 } 52194 } else { 52195 r.WriteMapElemKey() 52196 if z.IsJSONHandle() { 52197 z.WriteStr("\"KnownLeader\"") 52198 } else { 52199 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 52200 } 52201 r.WriteMapElemValue() 52202 if false { 52203 } else { 52204 r.EncodeBool(bool(x.KnownLeader)) 52205 } 52206 } 52207 if yyr2 || yy2arr2 { 52208 r.WriteArrayEnd() 52209 } else { 52210 r.WriteMapEnd() 52211 } 52212 } 52213 } 52214 } 52215 52216 func (x *DeriveVaultTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 52217 var h codecSelfer100 52218 z, r := codec1978.GenHelperDecoder(d) 52219 _, _, _ = h, z, r 52220 if false { 52221 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52222 z.DecExtension(x, yyxt1) 52223 } else { 52224 yyct2 := r.ContainerType() 52225 if yyct2 == codecSelferValueTypeMap100 { 52226 yyl2 := r.ReadMapStart() 52227 if yyl2 == 0 { 52228 r.ReadMapEnd() 52229 } else { 52230 x.codecDecodeSelfFromMap(yyl2, d) 52231 } 52232 } else if yyct2 == codecSelferValueTypeArray100 { 52233 yyl2 := r.ReadArrayStart() 52234 if yyl2 == 0 { 52235 r.ReadArrayEnd() 52236 } else { 52237 x.codecDecodeSelfFromArray(yyl2, d) 52238 } 52239 } else { 52240 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 52241 } 52242 } 52243 } 52244 52245 func (x *DeriveVaultTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 52246 var h codecSelfer100 52247 z, r := codec1978.GenHelperDecoder(d) 52248 _, _, _ = h, z, r 52249 var yyhl3 bool = l >= 0 52250 for yyj3 := 0; ; yyj3++ { 52251 if yyhl3 { 52252 if yyj3 >= l { 52253 break 52254 } 52255 } else { 52256 if r.CheckBreak() { 52257 break 52258 } 52259 } 52260 r.ReadMapElemKey() 52261 yys3 := z.StringView(r.DecodeStringAsBytes()) 52262 r.ReadMapElemValue() 52263 switch yys3 { 52264 case "Tasks": 52265 if r.TryDecodeAsNil() { 52266 x.Tasks = nil 52267 } else { 52268 if false { 52269 } else { 52270 z.F.DecMapStringStringX(&x.Tasks, d) 52271 } 52272 } 52273 case "Error": 52274 if r.TryDecodeAsNil() { 52275 if true && x.Error != nil { 52276 x.Error = nil 52277 } 52278 } else { 52279 if x.Error == nil { 52280 x.Error = new(RecoverableError) 52281 } 52282 52283 x.Error.CodecDecodeSelf(d) 52284 } 52285 case "Index": 52286 if r.TryDecodeAsNil() { 52287 x.QueryMeta.Index = 0 52288 } else { 52289 x.Index = (uint64)(r.DecodeUint64()) 52290 } 52291 case "LastContact": 52292 if r.TryDecodeAsNil() { 52293 x.QueryMeta.LastContact = 0 52294 } else { 52295 if false { 52296 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 52297 z.DecExtension(x.LastContact, yyxt9) 52298 } else { 52299 x.LastContact = (time.Duration)(r.DecodeInt64()) 52300 } 52301 } 52302 case "KnownLeader": 52303 if r.TryDecodeAsNil() { 52304 x.QueryMeta.KnownLeader = false 52305 } else { 52306 x.KnownLeader = (bool)(r.DecodeBool()) 52307 } 52308 default: 52309 z.DecStructFieldNotFound(-1, yys3) 52310 } // end switch yys3 52311 } // end for yyj3 52312 r.ReadMapEnd() 52313 } 52314 52315 func (x *DeriveVaultTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 52316 var h codecSelfer100 52317 z, r := codec1978.GenHelperDecoder(d) 52318 _, _, _ = h, z, r 52319 var yyj11 int 52320 var yyb11 bool 52321 var yyhl11 bool = l >= 0 52322 yyj11++ 52323 if yyhl11 { 52324 yyb11 = yyj11 > l 52325 } else { 52326 yyb11 = r.CheckBreak() 52327 } 52328 if yyb11 { 52329 r.ReadArrayEnd() 52330 return 52331 } 52332 r.ReadArrayElem() 52333 if r.TryDecodeAsNil() { 52334 x.Tasks = nil 52335 } else { 52336 if false { 52337 } else { 52338 z.F.DecMapStringStringX(&x.Tasks, d) 52339 } 52340 } 52341 yyj11++ 52342 if yyhl11 { 52343 yyb11 = yyj11 > l 52344 } else { 52345 yyb11 = r.CheckBreak() 52346 } 52347 if yyb11 { 52348 r.ReadArrayEnd() 52349 return 52350 } 52351 r.ReadArrayElem() 52352 if r.TryDecodeAsNil() { 52353 if true && x.Error != nil { 52354 x.Error = nil 52355 } 52356 } else { 52357 if x.Error == nil { 52358 x.Error = new(RecoverableError) 52359 } 52360 52361 x.Error.CodecDecodeSelf(d) 52362 } 52363 yyj11++ 52364 if yyhl11 { 52365 yyb11 = yyj11 > l 52366 } else { 52367 yyb11 = r.CheckBreak() 52368 } 52369 if yyb11 { 52370 r.ReadArrayEnd() 52371 return 52372 } 52373 r.ReadArrayElem() 52374 if r.TryDecodeAsNil() { 52375 x.QueryMeta.Index = 0 52376 } else { 52377 x.Index = (uint64)(r.DecodeUint64()) 52378 } 52379 yyj11++ 52380 if yyhl11 { 52381 yyb11 = yyj11 > l 52382 } else { 52383 yyb11 = r.CheckBreak() 52384 } 52385 if yyb11 { 52386 r.ReadArrayEnd() 52387 return 52388 } 52389 r.ReadArrayElem() 52390 if r.TryDecodeAsNil() { 52391 x.QueryMeta.LastContact = 0 52392 } else { 52393 if false { 52394 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 52395 z.DecExtension(x.LastContact, yyxt17) 52396 } else { 52397 x.LastContact = (time.Duration)(r.DecodeInt64()) 52398 } 52399 } 52400 yyj11++ 52401 if yyhl11 { 52402 yyb11 = yyj11 > l 52403 } else { 52404 yyb11 = r.CheckBreak() 52405 } 52406 if yyb11 { 52407 r.ReadArrayEnd() 52408 return 52409 } 52410 r.ReadArrayElem() 52411 if r.TryDecodeAsNil() { 52412 x.QueryMeta.KnownLeader = false 52413 } else { 52414 x.KnownLeader = (bool)(r.DecodeBool()) 52415 } 52416 for { 52417 yyj11++ 52418 if yyhl11 { 52419 yyb11 = yyj11 > l 52420 } else { 52421 yyb11 = r.CheckBreak() 52422 } 52423 if yyb11 { 52424 break 52425 } 52426 r.ReadArrayElem() 52427 z.DecStructFieldNotFound(yyj11-1, "") 52428 } 52429 r.ReadArrayEnd() 52430 } 52431 52432 func (x *GenericRequest) CodecEncodeSelf(e *codec1978.Encoder) { 52433 var h codecSelfer100 52434 z, r := codec1978.GenHelperEncoder(e) 52435 _, _, _ = h, z, r 52436 if x == nil { 52437 r.EncodeNil() 52438 } else { 52439 if false { 52440 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52441 z.EncExtension(x, yyxt1) 52442 } else { 52443 yysep2 := !z.EncBinary() 52444 yy2arr2 := z.EncBasicHandle().StructToArray 52445 _, _ = yysep2, yy2arr2 52446 const yyr2 bool = false // struct tag has 'toArray' 52447 if yyr2 || yy2arr2 { 52448 r.WriteArrayStart(8) 52449 } else { 52450 r.WriteMapStart(8) 52451 } 52452 if yyr2 || yy2arr2 { 52453 r.WriteArrayElem() 52454 if false { 52455 } else { 52456 if z.EncBasicHandle().StringToRaw { 52457 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52458 } else { 52459 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52460 } 52461 } 52462 } else { 52463 r.WriteMapElemKey() 52464 if z.IsJSONHandle() { 52465 z.WriteStr("\"Region\"") 52466 } else { 52467 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 52468 } 52469 r.WriteMapElemValue() 52470 if false { 52471 } else { 52472 if z.EncBasicHandle().StringToRaw { 52473 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52474 } else { 52475 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52476 } 52477 } 52478 } 52479 if yyr2 || yy2arr2 { 52480 r.WriteArrayElem() 52481 if false { 52482 } else { 52483 if z.EncBasicHandle().StringToRaw { 52484 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52485 } else { 52486 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52487 } 52488 } 52489 } else { 52490 r.WriteMapElemKey() 52491 if z.IsJSONHandle() { 52492 z.WriteStr("\"Namespace\"") 52493 } else { 52494 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 52495 } 52496 r.WriteMapElemValue() 52497 if false { 52498 } else { 52499 if z.EncBasicHandle().StringToRaw { 52500 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52501 } else { 52502 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52503 } 52504 } 52505 } 52506 if yyr2 || yy2arr2 { 52507 r.WriteArrayElem() 52508 if false { 52509 } else { 52510 r.EncodeUint(uint64(x.MinQueryIndex)) 52511 } 52512 } else { 52513 r.WriteMapElemKey() 52514 if z.IsJSONHandle() { 52515 z.WriteStr("\"MinQueryIndex\"") 52516 } else { 52517 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 52518 } 52519 r.WriteMapElemValue() 52520 if false { 52521 } else { 52522 r.EncodeUint(uint64(x.MinQueryIndex)) 52523 } 52524 } 52525 if yyr2 || yy2arr2 { 52526 r.WriteArrayElem() 52527 if false { 52528 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 52529 z.EncExtension(x.MaxQueryTime, yyxt13) 52530 } else { 52531 r.EncodeInt(int64(x.MaxQueryTime)) 52532 } 52533 } else { 52534 r.WriteMapElemKey() 52535 if z.IsJSONHandle() { 52536 z.WriteStr("\"MaxQueryTime\"") 52537 } else { 52538 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 52539 } 52540 r.WriteMapElemValue() 52541 if false { 52542 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 52543 z.EncExtension(x.MaxQueryTime, yyxt14) 52544 } else { 52545 r.EncodeInt(int64(x.MaxQueryTime)) 52546 } 52547 } 52548 if yyr2 || yy2arr2 { 52549 r.WriteArrayElem() 52550 if false { 52551 } else { 52552 r.EncodeBool(bool(x.AllowStale)) 52553 } 52554 } else { 52555 r.WriteMapElemKey() 52556 if z.IsJSONHandle() { 52557 z.WriteStr("\"AllowStale\"") 52558 } else { 52559 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 52560 } 52561 r.WriteMapElemValue() 52562 if false { 52563 } else { 52564 r.EncodeBool(bool(x.AllowStale)) 52565 } 52566 } 52567 if yyr2 || yy2arr2 { 52568 r.WriteArrayElem() 52569 if false { 52570 } else { 52571 if z.EncBasicHandle().StringToRaw { 52572 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 52573 } else { 52574 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 52575 } 52576 } 52577 } else { 52578 r.WriteMapElemKey() 52579 if z.IsJSONHandle() { 52580 z.WriteStr("\"Prefix\"") 52581 } else { 52582 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 52583 } 52584 r.WriteMapElemValue() 52585 if false { 52586 } else { 52587 if z.EncBasicHandle().StringToRaw { 52588 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 52589 } else { 52590 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 52591 } 52592 } 52593 } 52594 if yyr2 || yy2arr2 { 52595 r.WriteArrayElem() 52596 if false { 52597 } else { 52598 if z.EncBasicHandle().StringToRaw { 52599 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 52600 } else { 52601 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 52602 } 52603 } 52604 } else { 52605 r.WriteMapElemKey() 52606 if z.IsJSONHandle() { 52607 z.WriteStr("\"AuthToken\"") 52608 } else { 52609 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 52610 } 52611 r.WriteMapElemValue() 52612 if false { 52613 } else { 52614 if z.EncBasicHandle().StringToRaw { 52615 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 52616 } else { 52617 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 52618 } 52619 } 52620 } 52621 if yyr2 || yy2arr2 { 52622 r.WriteArrayElem() 52623 if false { 52624 } else { 52625 r.EncodeBool(bool(x.Forwarded)) 52626 } 52627 } else { 52628 r.WriteMapElemKey() 52629 if z.IsJSONHandle() { 52630 z.WriteStr("\"Forwarded\"") 52631 } else { 52632 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 52633 } 52634 r.WriteMapElemValue() 52635 if false { 52636 } else { 52637 r.EncodeBool(bool(x.Forwarded)) 52638 } 52639 } 52640 if yyr2 || yy2arr2 { 52641 r.WriteArrayEnd() 52642 } else { 52643 r.WriteMapEnd() 52644 } 52645 } 52646 } 52647 } 52648 52649 func (x *GenericRequest) CodecDecodeSelf(d *codec1978.Decoder) { 52650 var h codecSelfer100 52651 z, r := codec1978.GenHelperDecoder(d) 52652 _, _, _ = h, z, r 52653 if false { 52654 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52655 z.DecExtension(x, yyxt1) 52656 } else { 52657 yyct2 := r.ContainerType() 52658 if yyct2 == codecSelferValueTypeMap100 { 52659 yyl2 := r.ReadMapStart() 52660 if yyl2 == 0 { 52661 r.ReadMapEnd() 52662 } else { 52663 x.codecDecodeSelfFromMap(yyl2, d) 52664 } 52665 } else if yyct2 == codecSelferValueTypeArray100 { 52666 yyl2 := r.ReadArrayStart() 52667 if yyl2 == 0 { 52668 r.ReadArrayEnd() 52669 } else { 52670 x.codecDecodeSelfFromArray(yyl2, d) 52671 } 52672 } else { 52673 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 52674 } 52675 } 52676 } 52677 52678 func (x *GenericRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 52679 var h codecSelfer100 52680 z, r := codec1978.GenHelperDecoder(d) 52681 _, _, _ = h, z, r 52682 var yyhl3 bool = l >= 0 52683 for yyj3 := 0; ; yyj3++ { 52684 if yyhl3 { 52685 if yyj3 >= l { 52686 break 52687 } 52688 } else { 52689 if r.CheckBreak() { 52690 break 52691 } 52692 } 52693 r.ReadMapElemKey() 52694 yys3 := z.StringView(r.DecodeStringAsBytes()) 52695 r.ReadMapElemValue() 52696 switch yys3 { 52697 case "Region": 52698 if r.TryDecodeAsNil() { 52699 x.QueryOptions.Region = "" 52700 } else { 52701 x.Region = (string)(r.DecodeString()) 52702 } 52703 case "Namespace": 52704 if r.TryDecodeAsNil() { 52705 x.QueryOptions.Namespace = "" 52706 } else { 52707 x.Namespace = (string)(r.DecodeString()) 52708 } 52709 case "MinQueryIndex": 52710 if r.TryDecodeAsNil() { 52711 x.QueryOptions.MinQueryIndex = 0 52712 } else { 52713 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 52714 } 52715 case "MaxQueryTime": 52716 if r.TryDecodeAsNil() { 52717 x.QueryOptions.MaxQueryTime = 0 52718 } else { 52719 if false { 52720 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 52721 z.DecExtension(x.MaxQueryTime, yyxt8) 52722 } else { 52723 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 52724 } 52725 } 52726 case "AllowStale": 52727 if r.TryDecodeAsNil() { 52728 x.QueryOptions.AllowStale = false 52729 } else { 52730 x.AllowStale = (bool)(r.DecodeBool()) 52731 } 52732 case "Prefix": 52733 if r.TryDecodeAsNil() { 52734 x.QueryOptions.Prefix = "" 52735 } else { 52736 x.Prefix = (string)(r.DecodeString()) 52737 } 52738 case "AuthToken": 52739 if r.TryDecodeAsNil() { 52740 x.QueryOptions.AuthToken = "" 52741 } else { 52742 x.AuthToken = (string)(r.DecodeString()) 52743 } 52744 case "Forwarded": 52745 if r.TryDecodeAsNil() { 52746 x.QueryOptions.InternalRpcInfo.Forwarded = false 52747 } else { 52748 x.Forwarded = (bool)(r.DecodeBool()) 52749 } 52750 default: 52751 z.DecStructFieldNotFound(-1, yys3) 52752 } // end switch yys3 52753 } // end for yyj3 52754 r.ReadMapEnd() 52755 } 52756 52757 func (x *GenericRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 52758 var h codecSelfer100 52759 z, r := codec1978.GenHelperDecoder(d) 52760 _, _, _ = h, z, r 52761 var yyj13 int 52762 var yyb13 bool 52763 var yyhl13 bool = l >= 0 52764 yyj13++ 52765 if yyhl13 { 52766 yyb13 = yyj13 > l 52767 } else { 52768 yyb13 = r.CheckBreak() 52769 } 52770 if yyb13 { 52771 r.ReadArrayEnd() 52772 return 52773 } 52774 r.ReadArrayElem() 52775 if r.TryDecodeAsNil() { 52776 x.QueryOptions.Region = "" 52777 } else { 52778 x.Region = (string)(r.DecodeString()) 52779 } 52780 yyj13++ 52781 if yyhl13 { 52782 yyb13 = yyj13 > l 52783 } else { 52784 yyb13 = r.CheckBreak() 52785 } 52786 if yyb13 { 52787 r.ReadArrayEnd() 52788 return 52789 } 52790 r.ReadArrayElem() 52791 if r.TryDecodeAsNil() { 52792 x.QueryOptions.Namespace = "" 52793 } else { 52794 x.Namespace = (string)(r.DecodeString()) 52795 } 52796 yyj13++ 52797 if yyhl13 { 52798 yyb13 = yyj13 > l 52799 } else { 52800 yyb13 = r.CheckBreak() 52801 } 52802 if yyb13 { 52803 r.ReadArrayEnd() 52804 return 52805 } 52806 r.ReadArrayElem() 52807 if r.TryDecodeAsNil() { 52808 x.QueryOptions.MinQueryIndex = 0 52809 } else { 52810 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 52811 } 52812 yyj13++ 52813 if yyhl13 { 52814 yyb13 = yyj13 > l 52815 } else { 52816 yyb13 = r.CheckBreak() 52817 } 52818 if yyb13 { 52819 r.ReadArrayEnd() 52820 return 52821 } 52822 r.ReadArrayElem() 52823 if r.TryDecodeAsNil() { 52824 x.QueryOptions.MaxQueryTime = 0 52825 } else { 52826 if false { 52827 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 52828 z.DecExtension(x.MaxQueryTime, yyxt18) 52829 } else { 52830 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 52831 } 52832 } 52833 yyj13++ 52834 if yyhl13 { 52835 yyb13 = yyj13 > l 52836 } else { 52837 yyb13 = r.CheckBreak() 52838 } 52839 if yyb13 { 52840 r.ReadArrayEnd() 52841 return 52842 } 52843 r.ReadArrayElem() 52844 if r.TryDecodeAsNil() { 52845 x.QueryOptions.AllowStale = false 52846 } else { 52847 x.AllowStale = (bool)(r.DecodeBool()) 52848 } 52849 yyj13++ 52850 if yyhl13 { 52851 yyb13 = yyj13 > l 52852 } else { 52853 yyb13 = r.CheckBreak() 52854 } 52855 if yyb13 { 52856 r.ReadArrayEnd() 52857 return 52858 } 52859 r.ReadArrayElem() 52860 if r.TryDecodeAsNil() { 52861 x.QueryOptions.Prefix = "" 52862 } else { 52863 x.Prefix = (string)(r.DecodeString()) 52864 } 52865 yyj13++ 52866 if yyhl13 { 52867 yyb13 = yyj13 > l 52868 } else { 52869 yyb13 = r.CheckBreak() 52870 } 52871 if yyb13 { 52872 r.ReadArrayEnd() 52873 return 52874 } 52875 r.ReadArrayElem() 52876 if r.TryDecodeAsNil() { 52877 x.QueryOptions.AuthToken = "" 52878 } else { 52879 x.AuthToken = (string)(r.DecodeString()) 52880 } 52881 yyj13++ 52882 if yyhl13 { 52883 yyb13 = yyj13 > l 52884 } else { 52885 yyb13 = r.CheckBreak() 52886 } 52887 if yyb13 { 52888 r.ReadArrayEnd() 52889 return 52890 } 52891 r.ReadArrayElem() 52892 if r.TryDecodeAsNil() { 52893 x.QueryOptions.InternalRpcInfo.Forwarded = false 52894 } else { 52895 x.Forwarded = (bool)(r.DecodeBool()) 52896 } 52897 for { 52898 yyj13++ 52899 if yyhl13 { 52900 yyb13 = yyj13 > l 52901 } else { 52902 yyb13 = r.CheckBreak() 52903 } 52904 if yyb13 { 52905 break 52906 } 52907 r.ReadArrayElem() 52908 z.DecStructFieldNotFound(yyj13-1, "") 52909 } 52910 r.ReadArrayEnd() 52911 } 52912 52913 func (x *DeploymentListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 52914 var h codecSelfer100 52915 z, r := codec1978.GenHelperEncoder(e) 52916 _, _, _ = h, z, r 52917 if x == nil { 52918 r.EncodeNil() 52919 } else { 52920 if false { 52921 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 52922 z.EncExtension(x, yyxt1) 52923 } else { 52924 yysep2 := !z.EncBinary() 52925 yy2arr2 := z.EncBasicHandle().StructToArray 52926 _, _ = yysep2, yy2arr2 52927 const yyr2 bool = false // struct tag has 'toArray' 52928 if yyr2 || yy2arr2 { 52929 r.WriteArrayStart(8) 52930 } else { 52931 r.WriteMapStart(8) 52932 } 52933 if yyr2 || yy2arr2 { 52934 r.WriteArrayElem() 52935 if false { 52936 } else { 52937 if z.EncBasicHandle().StringToRaw { 52938 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52939 } else { 52940 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52941 } 52942 } 52943 } else { 52944 r.WriteMapElemKey() 52945 if z.IsJSONHandle() { 52946 z.WriteStr("\"Region\"") 52947 } else { 52948 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 52949 } 52950 r.WriteMapElemValue() 52951 if false { 52952 } else { 52953 if z.EncBasicHandle().StringToRaw { 52954 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 52955 } else { 52956 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 52957 } 52958 } 52959 } 52960 if yyr2 || yy2arr2 { 52961 r.WriteArrayElem() 52962 if false { 52963 } else { 52964 if z.EncBasicHandle().StringToRaw { 52965 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52966 } else { 52967 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52968 } 52969 } 52970 } else { 52971 r.WriteMapElemKey() 52972 if z.IsJSONHandle() { 52973 z.WriteStr("\"Namespace\"") 52974 } else { 52975 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 52976 } 52977 r.WriteMapElemValue() 52978 if false { 52979 } else { 52980 if z.EncBasicHandle().StringToRaw { 52981 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 52982 } else { 52983 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 52984 } 52985 } 52986 } 52987 if yyr2 || yy2arr2 { 52988 r.WriteArrayElem() 52989 if false { 52990 } else { 52991 r.EncodeUint(uint64(x.MinQueryIndex)) 52992 } 52993 } else { 52994 r.WriteMapElemKey() 52995 if z.IsJSONHandle() { 52996 z.WriteStr("\"MinQueryIndex\"") 52997 } else { 52998 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 52999 } 53000 r.WriteMapElemValue() 53001 if false { 53002 } else { 53003 r.EncodeUint(uint64(x.MinQueryIndex)) 53004 } 53005 } 53006 if yyr2 || yy2arr2 { 53007 r.WriteArrayElem() 53008 if false { 53009 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 53010 z.EncExtension(x.MaxQueryTime, yyxt13) 53011 } else { 53012 r.EncodeInt(int64(x.MaxQueryTime)) 53013 } 53014 } else { 53015 r.WriteMapElemKey() 53016 if z.IsJSONHandle() { 53017 z.WriteStr("\"MaxQueryTime\"") 53018 } else { 53019 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 53020 } 53021 r.WriteMapElemValue() 53022 if false { 53023 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 53024 z.EncExtension(x.MaxQueryTime, yyxt14) 53025 } else { 53026 r.EncodeInt(int64(x.MaxQueryTime)) 53027 } 53028 } 53029 if yyr2 || yy2arr2 { 53030 r.WriteArrayElem() 53031 if false { 53032 } else { 53033 r.EncodeBool(bool(x.AllowStale)) 53034 } 53035 } else { 53036 r.WriteMapElemKey() 53037 if z.IsJSONHandle() { 53038 z.WriteStr("\"AllowStale\"") 53039 } else { 53040 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 53041 } 53042 r.WriteMapElemValue() 53043 if false { 53044 } else { 53045 r.EncodeBool(bool(x.AllowStale)) 53046 } 53047 } 53048 if yyr2 || yy2arr2 { 53049 r.WriteArrayElem() 53050 if false { 53051 } else { 53052 if z.EncBasicHandle().StringToRaw { 53053 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 53054 } else { 53055 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 53056 } 53057 } 53058 } else { 53059 r.WriteMapElemKey() 53060 if z.IsJSONHandle() { 53061 z.WriteStr("\"Prefix\"") 53062 } else { 53063 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 53064 } 53065 r.WriteMapElemValue() 53066 if false { 53067 } else { 53068 if z.EncBasicHandle().StringToRaw { 53069 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 53070 } else { 53071 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 53072 } 53073 } 53074 } 53075 if yyr2 || yy2arr2 { 53076 r.WriteArrayElem() 53077 if false { 53078 } else { 53079 if z.EncBasicHandle().StringToRaw { 53080 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53081 } else { 53082 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53083 } 53084 } 53085 } else { 53086 r.WriteMapElemKey() 53087 if z.IsJSONHandle() { 53088 z.WriteStr("\"AuthToken\"") 53089 } else { 53090 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 53091 } 53092 r.WriteMapElemValue() 53093 if false { 53094 } else { 53095 if z.EncBasicHandle().StringToRaw { 53096 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53097 } else { 53098 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53099 } 53100 } 53101 } 53102 if yyr2 || yy2arr2 { 53103 r.WriteArrayElem() 53104 if false { 53105 } else { 53106 r.EncodeBool(bool(x.Forwarded)) 53107 } 53108 } else { 53109 r.WriteMapElemKey() 53110 if z.IsJSONHandle() { 53111 z.WriteStr("\"Forwarded\"") 53112 } else { 53113 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 53114 } 53115 r.WriteMapElemValue() 53116 if false { 53117 } else { 53118 r.EncodeBool(bool(x.Forwarded)) 53119 } 53120 } 53121 if yyr2 || yy2arr2 { 53122 r.WriteArrayEnd() 53123 } else { 53124 r.WriteMapEnd() 53125 } 53126 } 53127 } 53128 } 53129 53130 func (x *DeploymentListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 53131 var h codecSelfer100 53132 z, r := codec1978.GenHelperDecoder(d) 53133 _, _, _ = h, z, r 53134 if false { 53135 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53136 z.DecExtension(x, yyxt1) 53137 } else { 53138 yyct2 := r.ContainerType() 53139 if yyct2 == codecSelferValueTypeMap100 { 53140 yyl2 := r.ReadMapStart() 53141 if yyl2 == 0 { 53142 r.ReadMapEnd() 53143 } else { 53144 x.codecDecodeSelfFromMap(yyl2, d) 53145 } 53146 } else if yyct2 == codecSelferValueTypeArray100 { 53147 yyl2 := r.ReadArrayStart() 53148 if yyl2 == 0 { 53149 r.ReadArrayEnd() 53150 } else { 53151 x.codecDecodeSelfFromArray(yyl2, d) 53152 } 53153 } else { 53154 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 53155 } 53156 } 53157 } 53158 53159 func (x *DeploymentListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 53160 var h codecSelfer100 53161 z, r := codec1978.GenHelperDecoder(d) 53162 _, _, _ = h, z, r 53163 var yyhl3 bool = l >= 0 53164 for yyj3 := 0; ; yyj3++ { 53165 if yyhl3 { 53166 if yyj3 >= l { 53167 break 53168 } 53169 } else { 53170 if r.CheckBreak() { 53171 break 53172 } 53173 } 53174 r.ReadMapElemKey() 53175 yys3 := z.StringView(r.DecodeStringAsBytes()) 53176 r.ReadMapElemValue() 53177 switch yys3 { 53178 case "Region": 53179 if r.TryDecodeAsNil() { 53180 x.QueryOptions.Region = "" 53181 } else { 53182 x.Region = (string)(r.DecodeString()) 53183 } 53184 case "Namespace": 53185 if r.TryDecodeAsNil() { 53186 x.QueryOptions.Namespace = "" 53187 } else { 53188 x.Namespace = (string)(r.DecodeString()) 53189 } 53190 case "MinQueryIndex": 53191 if r.TryDecodeAsNil() { 53192 x.QueryOptions.MinQueryIndex = 0 53193 } else { 53194 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 53195 } 53196 case "MaxQueryTime": 53197 if r.TryDecodeAsNil() { 53198 x.QueryOptions.MaxQueryTime = 0 53199 } else { 53200 if false { 53201 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 53202 z.DecExtension(x.MaxQueryTime, yyxt8) 53203 } else { 53204 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 53205 } 53206 } 53207 case "AllowStale": 53208 if r.TryDecodeAsNil() { 53209 x.QueryOptions.AllowStale = false 53210 } else { 53211 x.AllowStale = (bool)(r.DecodeBool()) 53212 } 53213 case "Prefix": 53214 if r.TryDecodeAsNil() { 53215 x.QueryOptions.Prefix = "" 53216 } else { 53217 x.Prefix = (string)(r.DecodeString()) 53218 } 53219 case "AuthToken": 53220 if r.TryDecodeAsNil() { 53221 x.QueryOptions.AuthToken = "" 53222 } else { 53223 x.AuthToken = (string)(r.DecodeString()) 53224 } 53225 case "Forwarded": 53226 if r.TryDecodeAsNil() { 53227 x.QueryOptions.InternalRpcInfo.Forwarded = false 53228 } else { 53229 x.Forwarded = (bool)(r.DecodeBool()) 53230 } 53231 default: 53232 z.DecStructFieldNotFound(-1, yys3) 53233 } // end switch yys3 53234 } // end for yyj3 53235 r.ReadMapEnd() 53236 } 53237 53238 func (x *DeploymentListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 53239 var h codecSelfer100 53240 z, r := codec1978.GenHelperDecoder(d) 53241 _, _, _ = h, z, r 53242 var yyj13 int 53243 var yyb13 bool 53244 var yyhl13 bool = l >= 0 53245 yyj13++ 53246 if yyhl13 { 53247 yyb13 = yyj13 > l 53248 } else { 53249 yyb13 = r.CheckBreak() 53250 } 53251 if yyb13 { 53252 r.ReadArrayEnd() 53253 return 53254 } 53255 r.ReadArrayElem() 53256 if r.TryDecodeAsNil() { 53257 x.QueryOptions.Region = "" 53258 } else { 53259 x.Region = (string)(r.DecodeString()) 53260 } 53261 yyj13++ 53262 if yyhl13 { 53263 yyb13 = yyj13 > l 53264 } else { 53265 yyb13 = r.CheckBreak() 53266 } 53267 if yyb13 { 53268 r.ReadArrayEnd() 53269 return 53270 } 53271 r.ReadArrayElem() 53272 if r.TryDecodeAsNil() { 53273 x.QueryOptions.Namespace = "" 53274 } else { 53275 x.Namespace = (string)(r.DecodeString()) 53276 } 53277 yyj13++ 53278 if yyhl13 { 53279 yyb13 = yyj13 > l 53280 } else { 53281 yyb13 = r.CheckBreak() 53282 } 53283 if yyb13 { 53284 r.ReadArrayEnd() 53285 return 53286 } 53287 r.ReadArrayElem() 53288 if r.TryDecodeAsNil() { 53289 x.QueryOptions.MinQueryIndex = 0 53290 } else { 53291 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 53292 } 53293 yyj13++ 53294 if yyhl13 { 53295 yyb13 = yyj13 > l 53296 } else { 53297 yyb13 = r.CheckBreak() 53298 } 53299 if yyb13 { 53300 r.ReadArrayEnd() 53301 return 53302 } 53303 r.ReadArrayElem() 53304 if r.TryDecodeAsNil() { 53305 x.QueryOptions.MaxQueryTime = 0 53306 } else { 53307 if false { 53308 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 53309 z.DecExtension(x.MaxQueryTime, yyxt18) 53310 } else { 53311 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 53312 } 53313 } 53314 yyj13++ 53315 if yyhl13 { 53316 yyb13 = yyj13 > l 53317 } else { 53318 yyb13 = r.CheckBreak() 53319 } 53320 if yyb13 { 53321 r.ReadArrayEnd() 53322 return 53323 } 53324 r.ReadArrayElem() 53325 if r.TryDecodeAsNil() { 53326 x.QueryOptions.AllowStale = false 53327 } else { 53328 x.AllowStale = (bool)(r.DecodeBool()) 53329 } 53330 yyj13++ 53331 if yyhl13 { 53332 yyb13 = yyj13 > l 53333 } else { 53334 yyb13 = r.CheckBreak() 53335 } 53336 if yyb13 { 53337 r.ReadArrayEnd() 53338 return 53339 } 53340 r.ReadArrayElem() 53341 if r.TryDecodeAsNil() { 53342 x.QueryOptions.Prefix = "" 53343 } else { 53344 x.Prefix = (string)(r.DecodeString()) 53345 } 53346 yyj13++ 53347 if yyhl13 { 53348 yyb13 = yyj13 > l 53349 } else { 53350 yyb13 = r.CheckBreak() 53351 } 53352 if yyb13 { 53353 r.ReadArrayEnd() 53354 return 53355 } 53356 r.ReadArrayElem() 53357 if r.TryDecodeAsNil() { 53358 x.QueryOptions.AuthToken = "" 53359 } else { 53360 x.AuthToken = (string)(r.DecodeString()) 53361 } 53362 yyj13++ 53363 if yyhl13 { 53364 yyb13 = yyj13 > l 53365 } else { 53366 yyb13 = r.CheckBreak() 53367 } 53368 if yyb13 { 53369 r.ReadArrayEnd() 53370 return 53371 } 53372 r.ReadArrayElem() 53373 if r.TryDecodeAsNil() { 53374 x.QueryOptions.InternalRpcInfo.Forwarded = false 53375 } else { 53376 x.Forwarded = (bool)(r.DecodeBool()) 53377 } 53378 for { 53379 yyj13++ 53380 if yyhl13 { 53381 yyb13 = yyj13 > l 53382 } else { 53383 yyb13 = r.CheckBreak() 53384 } 53385 if yyb13 { 53386 break 53387 } 53388 r.ReadArrayElem() 53389 z.DecStructFieldNotFound(yyj13-1, "") 53390 } 53391 r.ReadArrayEnd() 53392 } 53393 53394 func (x *DeploymentDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 53395 var h codecSelfer100 53396 z, r := codec1978.GenHelperEncoder(e) 53397 _, _, _ = h, z, r 53398 if x == nil { 53399 r.EncodeNil() 53400 } else { 53401 if false { 53402 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53403 z.EncExtension(x, yyxt1) 53404 } else { 53405 yysep2 := !z.EncBinary() 53406 yy2arr2 := z.EncBasicHandle().StructToArray 53407 _, _ = yysep2, yy2arr2 53408 const yyr2 bool = false // struct tag has 'toArray' 53409 if yyr2 || yy2arr2 { 53410 r.WriteArrayStart(5) 53411 } else { 53412 r.WriteMapStart(5) 53413 } 53414 if yyr2 || yy2arr2 { 53415 r.WriteArrayElem() 53416 if x.Deployments == nil { 53417 r.EncodeNil() 53418 } else { 53419 if false { 53420 } else { 53421 z.F.EncSliceStringV(x.Deployments, e) 53422 } 53423 } 53424 } else { 53425 r.WriteMapElemKey() 53426 if z.IsJSONHandle() { 53427 z.WriteStr("\"Deployments\"") 53428 } else { 53429 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) 53430 } 53431 r.WriteMapElemValue() 53432 if x.Deployments == nil { 53433 r.EncodeNil() 53434 } else { 53435 if false { 53436 } else { 53437 z.F.EncSliceStringV(x.Deployments, e) 53438 } 53439 } 53440 } 53441 if yyr2 || yy2arr2 { 53442 r.WriteArrayElem() 53443 if false { 53444 } else { 53445 if z.EncBasicHandle().StringToRaw { 53446 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 53447 } else { 53448 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 53449 } 53450 } 53451 } else { 53452 r.WriteMapElemKey() 53453 if z.IsJSONHandle() { 53454 z.WriteStr("\"Region\"") 53455 } else { 53456 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 53457 } 53458 r.WriteMapElemValue() 53459 if false { 53460 } else { 53461 if z.EncBasicHandle().StringToRaw { 53462 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 53463 } else { 53464 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 53465 } 53466 } 53467 } 53468 if yyr2 || yy2arr2 { 53469 r.WriteArrayElem() 53470 if false { 53471 } else { 53472 if z.EncBasicHandle().StringToRaw { 53473 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53474 } else { 53475 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53476 } 53477 } 53478 } else { 53479 r.WriteMapElemKey() 53480 if z.IsJSONHandle() { 53481 z.WriteStr("\"Namespace\"") 53482 } else { 53483 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 53484 } 53485 r.WriteMapElemValue() 53486 if false { 53487 } else { 53488 if z.EncBasicHandle().StringToRaw { 53489 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 53490 } else { 53491 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 53492 } 53493 } 53494 } 53495 if yyr2 || yy2arr2 { 53496 r.WriteArrayElem() 53497 if false { 53498 } else { 53499 if z.EncBasicHandle().StringToRaw { 53500 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53501 } else { 53502 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53503 } 53504 } 53505 } else { 53506 r.WriteMapElemKey() 53507 if z.IsJSONHandle() { 53508 z.WriteStr("\"AuthToken\"") 53509 } else { 53510 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 53511 } 53512 r.WriteMapElemValue() 53513 if false { 53514 } else { 53515 if z.EncBasicHandle().StringToRaw { 53516 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 53517 } else { 53518 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 53519 } 53520 } 53521 } 53522 if yyr2 || yy2arr2 { 53523 r.WriteArrayElem() 53524 if false { 53525 } else { 53526 r.EncodeBool(bool(x.Forwarded)) 53527 } 53528 } else { 53529 r.WriteMapElemKey() 53530 if z.IsJSONHandle() { 53531 z.WriteStr("\"Forwarded\"") 53532 } else { 53533 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 53534 } 53535 r.WriteMapElemValue() 53536 if false { 53537 } else { 53538 r.EncodeBool(bool(x.Forwarded)) 53539 } 53540 } 53541 if yyr2 || yy2arr2 { 53542 r.WriteArrayEnd() 53543 } else { 53544 r.WriteMapEnd() 53545 } 53546 } 53547 } 53548 } 53549 53550 func (x *DeploymentDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 53551 var h codecSelfer100 53552 z, r := codec1978.GenHelperDecoder(d) 53553 _, _, _ = h, z, r 53554 if false { 53555 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53556 z.DecExtension(x, yyxt1) 53557 } else { 53558 yyct2 := r.ContainerType() 53559 if yyct2 == codecSelferValueTypeMap100 { 53560 yyl2 := r.ReadMapStart() 53561 if yyl2 == 0 { 53562 r.ReadMapEnd() 53563 } else { 53564 x.codecDecodeSelfFromMap(yyl2, d) 53565 } 53566 } else if yyct2 == codecSelferValueTypeArray100 { 53567 yyl2 := r.ReadArrayStart() 53568 if yyl2 == 0 { 53569 r.ReadArrayEnd() 53570 } else { 53571 x.codecDecodeSelfFromArray(yyl2, d) 53572 } 53573 } else { 53574 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 53575 } 53576 } 53577 } 53578 53579 func (x *DeploymentDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 53580 var h codecSelfer100 53581 z, r := codec1978.GenHelperDecoder(d) 53582 _, _, _ = h, z, r 53583 var yyhl3 bool = l >= 0 53584 for yyj3 := 0; ; yyj3++ { 53585 if yyhl3 { 53586 if yyj3 >= l { 53587 break 53588 } 53589 } else { 53590 if r.CheckBreak() { 53591 break 53592 } 53593 } 53594 r.ReadMapElemKey() 53595 yys3 := z.StringView(r.DecodeStringAsBytes()) 53596 r.ReadMapElemValue() 53597 switch yys3 { 53598 case "Deployments": 53599 if r.TryDecodeAsNil() { 53600 x.Deployments = nil 53601 } else { 53602 if false { 53603 } else { 53604 z.F.DecSliceStringX(&x.Deployments, d) 53605 } 53606 } 53607 case "Region": 53608 if r.TryDecodeAsNil() { 53609 x.WriteRequest.Region = "" 53610 } else { 53611 x.Region = (string)(r.DecodeString()) 53612 } 53613 case "Namespace": 53614 if r.TryDecodeAsNil() { 53615 x.WriteRequest.Namespace = "" 53616 } else { 53617 x.Namespace = (string)(r.DecodeString()) 53618 } 53619 case "AuthToken": 53620 if r.TryDecodeAsNil() { 53621 x.WriteRequest.AuthToken = "" 53622 } else { 53623 x.AuthToken = (string)(r.DecodeString()) 53624 } 53625 case "Forwarded": 53626 if r.TryDecodeAsNil() { 53627 x.WriteRequest.InternalRpcInfo.Forwarded = false 53628 } else { 53629 x.Forwarded = (bool)(r.DecodeBool()) 53630 } 53631 default: 53632 z.DecStructFieldNotFound(-1, yys3) 53633 } // end switch yys3 53634 } // end for yyj3 53635 r.ReadMapEnd() 53636 } 53637 53638 func (x *DeploymentDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 53639 var h codecSelfer100 53640 z, r := codec1978.GenHelperDecoder(d) 53641 _, _, _ = h, z, r 53642 var yyj10 int 53643 var yyb10 bool 53644 var yyhl10 bool = l >= 0 53645 yyj10++ 53646 if yyhl10 { 53647 yyb10 = yyj10 > l 53648 } else { 53649 yyb10 = r.CheckBreak() 53650 } 53651 if yyb10 { 53652 r.ReadArrayEnd() 53653 return 53654 } 53655 r.ReadArrayElem() 53656 if r.TryDecodeAsNil() { 53657 x.Deployments = nil 53658 } else { 53659 if false { 53660 } else { 53661 z.F.DecSliceStringX(&x.Deployments, d) 53662 } 53663 } 53664 yyj10++ 53665 if yyhl10 { 53666 yyb10 = yyj10 > l 53667 } else { 53668 yyb10 = r.CheckBreak() 53669 } 53670 if yyb10 { 53671 r.ReadArrayEnd() 53672 return 53673 } 53674 r.ReadArrayElem() 53675 if r.TryDecodeAsNil() { 53676 x.WriteRequest.Region = "" 53677 } else { 53678 x.Region = (string)(r.DecodeString()) 53679 } 53680 yyj10++ 53681 if yyhl10 { 53682 yyb10 = yyj10 > l 53683 } else { 53684 yyb10 = r.CheckBreak() 53685 } 53686 if yyb10 { 53687 r.ReadArrayEnd() 53688 return 53689 } 53690 r.ReadArrayElem() 53691 if r.TryDecodeAsNil() { 53692 x.WriteRequest.Namespace = "" 53693 } else { 53694 x.Namespace = (string)(r.DecodeString()) 53695 } 53696 yyj10++ 53697 if yyhl10 { 53698 yyb10 = yyj10 > l 53699 } else { 53700 yyb10 = r.CheckBreak() 53701 } 53702 if yyb10 { 53703 r.ReadArrayEnd() 53704 return 53705 } 53706 r.ReadArrayElem() 53707 if r.TryDecodeAsNil() { 53708 x.WriteRequest.AuthToken = "" 53709 } else { 53710 x.AuthToken = (string)(r.DecodeString()) 53711 } 53712 yyj10++ 53713 if yyhl10 { 53714 yyb10 = yyj10 > l 53715 } else { 53716 yyb10 = r.CheckBreak() 53717 } 53718 if yyb10 { 53719 r.ReadArrayEnd() 53720 return 53721 } 53722 r.ReadArrayElem() 53723 if r.TryDecodeAsNil() { 53724 x.WriteRequest.InternalRpcInfo.Forwarded = false 53725 } else { 53726 x.Forwarded = (bool)(r.DecodeBool()) 53727 } 53728 for { 53729 yyj10++ 53730 if yyhl10 { 53731 yyb10 = yyj10 > l 53732 } else { 53733 yyb10 = r.CheckBreak() 53734 } 53735 if yyb10 { 53736 break 53737 } 53738 r.ReadArrayElem() 53739 z.DecStructFieldNotFound(yyj10-1, "") 53740 } 53741 r.ReadArrayEnd() 53742 } 53743 53744 func (x *DeploymentStatusUpdateRequest) CodecEncodeSelf(e *codec1978.Encoder) { 53745 var h codecSelfer100 53746 z, r := codec1978.GenHelperEncoder(e) 53747 _, _, _ = h, z, r 53748 if x == nil { 53749 r.EncodeNil() 53750 } else { 53751 if false { 53752 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53753 z.EncExtension(x, yyxt1) 53754 } else { 53755 yysep2 := !z.EncBinary() 53756 yy2arr2 := z.EncBasicHandle().StructToArray 53757 _, _ = yysep2, yy2arr2 53758 const yyr2 bool = false // struct tag has 'toArray' 53759 if yyr2 || yy2arr2 { 53760 r.WriteArrayStart(3) 53761 } else { 53762 r.WriteMapStart(3) 53763 } 53764 var yyn3 bool 53765 if x.Eval == nil { 53766 yyn3 = true 53767 goto LABEL3 53768 } 53769 LABEL3: 53770 if yyr2 || yy2arr2 { 53771 if yyn3 { 53772 r.WriteArrayElem() 53773 r.EncodeNil() 53774 } else { 53775 r.WriteArrayElem() 53776 if x.Eval == nil { 53777 r.EncodeNil() 53778 } else { 53779 x.Eval.CodecEncodeSelf(e) 53780 } 53781 } 53782 } else { 53783 r.WriteMapElemKey() 53784 if z.IsJSONHandle() { 53785 z.WriteStr("\"Eval\"") 53786 } else { 53787 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 53788 } 53789 r.WriteMapElemValue() 53790 if yyn3 { 53791 r.EncodeNil() 53792 } else { 53793 if x.Eval == nil { 53794 r.EncodeNil() 53795 } else { 53796 x.Eval.CodecEncodeSelf(e) 53797 } 53798 } 53799 } 53800 var yyn6 bool 53801 if x.DeploymentUpdate == nil { 53802 yyn6 = true 53803 goto LABEL6 53804 } 53805 LABEL6: 53806 if yyr2 || yy2arr2 { 53807 if yyn6 { 53808 r.WriteArrayElem() 53809 r.EncodeNil() 53810 } else { 53811 r.WriteArrayElem() 53812 if x.DeploymentUpdate == nil { 53813 r.EncodeNil() 53814 } else { 53815 x.DeploymentUpdate.CodecEncodeSelf(e) 53816 } 53817 } 53818 } else { 53819 r.WriteMapElemKey() 53820 if z.IsJSONHandle() { 53821 z.WriteStr("\"DeploymentUpdate\"") 53822 } else { 53823 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) 53824 } 53825 r.WriteMapElemValue() 53826 if yyn6 { 53827 r.EncodeNil() 53828 } else { 53829 if x.DeploymentUpdate == nil { 53830 r.EncodeNil() 53831 } else { 53832 x.DeploymentUpdate.CodecEncodeSelf(e) 53833 } 53834 } 53835 } 53836 var yyn9 bool 53837 if x.Job == nil { 53838 yyn9 = true 53839 goto LABEL9 53840 } 53841 LABEL9: 53842 if yyr2 || yy2arr2 { 53843 if yyn9 { 53844 r.WriteArrayElem() 53845 r.EncodeNil() 53846 } else { 53847 r.WriteArrayElem() 53848 if x.Job == nil { 53849 r.EncodeNil() 53850 } else { 53851 x.Job.CodecEncodeSelf(e) 53852 } 53853 } 53854 } else { 53855 r.WriteMapElemKey() 53856 if z.IsJSONHandle() { 53857 z.WriteStr("\"Job\"") 53858 } else { 53859 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 53860 } 53861 r.WriteMapElemValue() 53862 if yyn9 { 53863 r.EncodeNil() 53864 } else { 53865 if x.Job == nil { 53866 r.EncodeNil() 53867 } else { 53868 x.Job.CodecEncodeSelf(e) 53869 } 53870 } 53871 } 53872 if yyr2 || yy2arr2 { 53873 r.WriteArrayEnd() 53874 } else { 53875 r.WriteMapEnd() 53876 } 53877 } 53878 } 53879 } 53880 53881 func (x *DeploymentStatusUpdateRequest) CodecDecodeSelf(d *codec1978.Decoder) { 53882 var h codecSelfer100 53883 z, r := codec1978.GenHelperDecoder(d) 53884 _, _, _ = h, z, r 53885 if false { 53886 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 53887 z.DecExtension(x, yyxt1) 53888 } else { 53889 yyct2 := r.ContainerType() 53890 if yyct2 == codecSelferValueTypeMap100 { 53891 yyl2 := r.ReadMapStart() 53892 if yyl2 == 0 { 53893 r.ReadMapEnd() 53894 } else { 53895 x.codecDecodeSelfFromMap(yyl2, d) 53896 } 53897 } else if yyct2 == codecSelferValueTypeArray100 { 53898 yyl2 := r.ReadArrayStart() 53899 if yyl2 == 0 { 53900 r.ReadArrayEnd() 53901 } else { 53902 x.codecDecodeSelfFromArray(yyl2, d) 53903 } 53904 } else { 53905 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 53906 } 53907 } 53908 } 53909 53910 func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 53911 var h codecSelfer100 53912 z, r := codec1978.GenHelperDecoder(d) 53913 _, _, _ = h, z, r 53914 var yyhl3 bool = l >= 0 53915 for yyj3 := 0; ; yyj3++ { 53916 if yyhl3 { 53917 if yyj3 >= l { 53918 break 53919 } 53920 } else { 53921 if r.CheckBreak() { 53922 break 53923 } 53924 } 53925 r.ReadMapElemKey() 53926 yys3 := z.StringView(r.DecodeStringAsBytes()) 53927 r.ReadMapElemValue() 53928 switch yys3 { 53929 case "Eval": 53930 if r.TryDecodeAsNil() { 53931 if true && x.Eval != nil { 53932 x.Eval = nil 53933 } 53934 } else { 53935 if x.Eval == nil { 53936 x.Eval = new(Evaluation) 53937 } 53938 53939 x.Eval.CodecDecodeSelf(d) 53940 } 53941 case "DeploymentUpdate": 53942 if r.TryDecodeAsNil() { 53943 if true && x.DeploymentUpdate != nil { 53944 x.DeploymentUpdate = nil 53945 } 53946 } else { 53947 if x.DeploymentUpdate == nil { 53948 x.DeploymentUpdate = new(DeploymentStatusUpdate) 53949 } 53950 53951 x.DeploymentUpdate.CodecDecodeSelf(d) 53952 } 53953 case "Job": 53954 if r.TryDecodeAsNil() { 53955 if true && x.Job != nil { 53956 x.Job = nil 53957 } 53958 } else { 53959 if x.Job == nil { 53960 x.Job = new(Job) 53961 } 53962 53963 x.Job.CodecDecodeSelf(d) 53964 } 53965 default: 53966 z.DecStructFieldNotFound(-1, yys3) 53967 } // end switch yys3 53968 } // end for yyj3 53969 r.ReadMapEnd() 53970 } 53971 53972 func (x *DeploymentStatusUpdateRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 53973 var h codecSelfer100 53974 z, r := codec1978.GenHelperDecoder(d) 53975 _, _, _ = h, z, r 53976 var yyj7 int 53977 var yyb7 bool 53978 var yyhl7 bool = l >= 0 53979 yyj7++ 53980 if yyhl7 { 53981 yyb7 = yyj7 > l 53982 } else { 53983 yyb7 = r.CheckBreak() 53984 } 53985 if yyb7 { 53986 r.ReadArrayEnd() 53987 return 53988 } 53989 r.ReadArrayElem() 53990 if r.TryDecodeAsNil() { 53991 if true && x.Eval != nil { 53992 x.Eval = nil 53993 } 53994 } else { 53995 if x.Eval == nil { 53996 x.Eval = new(Evaluation) 53997 } 53998 53999 x.Eval.CodecDecodeSelf(d) 54000 } 54001 yyj7++ 54002 if yyhl7 { 54003 yyb7 = yyj7 > l 54004 } else { 54005 yyb7 = r.CheckBreak() 54006 } 54007 if yyb7 { 54008 r.ReadArrayEnd() 54009 return 54010 } 54011 r.ReadArrayElem() 54012 if r.TryDecodeAsNil() { 54013 if true && x.DeploymentUpdate != nil { 54014 x.DeploymentUpdate = nil 54015 } 54016 } else { 54017 if x.DeploymentUpdate == nil { 54018 x.DeploymentUpdate = new(DeploymentStatusUpdate) 54019 } 54020 54021 x.DeploymentUpdate.CodecDecodeSelf(d) 54022 } 54023 yyj7++ 54024 if yyhl7 { 54025 yyb7 = yyj7 > l 54026 } else { 54027 yyb7 = r.CheckBreak() 54028 } 54029 if yyb7 { 54030 r.ReadArrayEnd() 54031 return 54032 } 54033 r.ReadArrayElem() 54034 if r.TryDecodeAsNil() { 54035 if true && x.Job != nil { 54036 x.Job = nil 54037 } 54038 } else { 54039 if x.Job == nil { 54040 x.Job = new(Job) 54041 } 54042 54043 x.Job.CodecDecodeSelf(d) 54044 } 54045 for { 54046 yyj7++ 54047 if yyhl7 { 54048 yyb7 = yyj7 > l 54049 } else { 54050 yyb7 = r.CheckBreak() 54051 } 54052 if yyb7 { 54053 break 54054 } 54055 r.ReadArrayElem() 54056 z.DecStructFieldNotFound(yyj7-1, "") 54057 } 54058 r.ReadArrayEnd() 54059 } 54060 54061 func (x *DeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { 54062 var h codecSelfer100 54063 z, r := codec1978.GenHelperEncoder(e) 54064 _, _, _ = h, z, r 54065 if x == nil { 54066 r.EncodeNil() 54067 } else { 54068 if false { 54069 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54070 z.EncExtension(x, yyxt1) 54071 } else { 54072 yysep2 := !z.EncBinary() 54073 yy2arr2 := z.EncBasicHandle().StructToArray 54074 _, _ = yysep2, yy2arr2 54075 const yyr2 bool = false // struct tag has 'toArray' 54076 if yyr2 || yy2arr2 { 54077 r.WriteArrayStart(7) 54078 } else { 54079 r.WriteMapStart(7) 54080 } 54081 if yyr2 || yy2arr2 { 54082 r.WriteArrayElem() 54083 if false { 54084 } else { 54085 if z.EncBasicHandle().StringToRaw { 54086 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54087 } else { 54088 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54089 } 54090 } 54091 } else { 54092 r.WriteMapElemKey() 54093 if z.IsJSONHandle() { 54094 z.WriteStr("\"DeploymentID\"") 54095 } else { 54096 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 54097 } 54098 r.WriteMapElemValue() 54099 if false { 54100 } else { 54101 if z.EncBasicHandle().StringToRaw { 54102 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54103 } else { 54104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54105 } 54106 } 54107 } 54108 if yyr2 || yy2arr2 { 54109 r.WriteArrayElem() 54110 if x.HealthyAllocationIDs == nil { 54111 r.EncodeNil() 54112 } else { 54113 if false { 54114 } else { 54115 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 54116 } 54117 } 54118 } else { 54119 r.WriteMapElemKey() 54120 if z.IsJSONHandle() { 54121 z.WriteStr("\"HealthyAllocationIDs\"") 54122 } else { 54123 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) 54124 } 54125 r.WriteMapElemValue() 54126 if x.HealthyAllocationIDs == nil { 54127 r.EncodeNil() 54128 } else { 54129 if false { 54130 } else { 54131 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 54132 } 54133 } 54134 } 54135 if yyr2 || yy2arr2 { 54136 r.WriteArrayElem() 54137 if x.UnhealthyAllocationIDs == nil { 54138 r.EncodeNil() 54139 } else { 54140 if false { 54141 } else { 54142 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 54143 } 54144 } 54145 } else { 54146 r.WriteMapElemKey() 54147 if z.IsJSONHandle() { 54148 z.WriteStr("\"UnhealthyAllocationIDs\"") 54149 } else { 54150 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) 54151 } 54152 r.WriteMapElemValue() 54153 if x.UnhealthyAllocationIDs == nil { 54154 r.EncodeNil() 54155 } else { 54156 if false { 54157 } else { 54158 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 54159 } 54160 } 54161 } 54162 if yyr2 || yy2arr2 { 54163 r.WriteArrayElem() 54164 if false { 54165 } else { 54166 if z.EncBasicHandle().StringToRaw { 54167 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54168 } else { 54169 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54170 } 54171 } 54172 } else { 54173 r.WriteMapElemKey() 54174 if z.IsJSONHandle() { 54175 z.WriteStr("\"Region\"") 54176 } else { 54177 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 54178 } 54179 r.WriteMapElemValue() 54180 if false { 54181 } else { 54182 if z.EncBasicHandle().StringToRaw { 54183 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54184 } else { 54185 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54186 } 54187 } 54188 } 54189 if yyr2 || yy2arr2 { 54190 r.WriteArrayElem() 54191 if false { 54192 } else { 54193 if z.EncBasicHandle().StringToRaw { 54194 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54195 } else { 54196 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54197 } 54198 } 54199 } else { 54200 r.WriteMapElemKey() 54201 if z.IsJSONHandle() { 54202 z.WriteStr("\"Namespace\"") 54203 } else { 54204 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 54205 } 54206 r.WriteMapElemValue() 54207 if false { 54208 } else { 54209 if z.EncBasicHandle().StringToRaw { 54210 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54211 } else { 54212 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54213 } 54214 } 54215 } 54216 if yyr2 || yy2arr2 { 54217 r.WriteArrayElem() 54218 if false { 54219 } else { 54220 if z.EncBasicHandle().StringToRaw { 54221 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54222 } else { 54223 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54224 } 54225 } 54226 } else { 54227 r.WriteMapElemKey() 54228 if z.IsJSONHandle() { 54229 z.WriteStr("\"AuthToken\"") 54230 } else { 54231 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 54232 } 54233 r.WriteMapElemValue() 54234 if false { 54235 } else { 54236 if z.EncBasicHandle().StringToRaw { 54237 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54238 } else { 54239 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54240 } 54241 } 54242 } 54243 if yyr2 || yy2arr2 { 54244 r.WriteArrayElem() 54245 if false { 54246 } else { 54247 r.EncodeBool(bool(x.Forwarded)) 54248 } 54249 } else { 54250 r.WriteMapElemKey() 54251 if z.IsJSONHandle() { 54252 z.WriteStr("\"Forwarded\"") 54253 } else { 54254 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 54255 } 54256 r.WriteMapElemValue() 54257 if false { 54258 } else { 54259 r.EncodeBool(bool(x.Forwarded)) 54260 } 54261 } 54262 if yyr2 || yy2arr2 { 54263 r.WriteArrayEnd() 54264 } else { 54265 r.WriteMapEnd() 54266 } 54267 } 54268 } 54269 } 54270 54271 func (x *DeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { 54272 var h codecSelfer100 54273 z, r := codec1978.GenHelperDecoder(d) 54274 _, _, _ = h, z, r 54275 if false { 54276 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54277 z.DecExtension(x, yyxt1) 54278 } else { 54279 yyct2 := r.ContainerType() 54280 if yyct2 == codecSelferValueTypeMap100 { 54281 yyl2 := r.ReadMapStart() 54282 if yyl2 == 0 { 54283 r.ReadMapEnd() 54284 } else { 54285 x.codecDecodeSelfFromMap(yyl2, d) 54286 } 54287 } else if yyct2 == codecSelferValueTypeArray100 { 54288 yyl2 := r.ReadArrayStart() 54289 if yyl2 == 0 { 54290 r.ReadArrayEnd() 54291 } else { 54292 x.codecDecodeSelfFromArray(yyl2, d) 54293 } 54294 } else { 54295 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 54296 } 54297 } 54298 } 54299 54300 func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 54301 var h codecSelfer100 54302 z, r := codec1978.GenHelperDecoder(d) 54303 _, _, _ = h, z, r 54304 var yyhl3 bool = l >= 0 54305 for yyj3 := 0; ; yyj3++ { 54306 if yyhl3 { 54307 if yyj3 >= l { 54308 break 54309 } 54310 } else { 54311 if r.CheckBreak() { 54312 break 54313 } 54314 } 54315 r.ReadMapElemKey() 54316 yys3 := z.StringView(r.DecodeStringAsBytes()) 54317 r.ReadMapElemValue() 54318 switch yys3 { 54319 case "DeploymentID": 54320 if r.TryDecodeAsNil() { 54321 x.DeploymentID = "" 54322 } else { 54323 x.DeploymentID = (string)(r.DecodeString()) 54324 } 54325 case "HealthyAllocationIDs": 54326 if r.TryDecodeAsNil() { 54327 x.HealthyAllocationIDs = nil 54328 } else { 54329 if false { 54330 } else { 54331 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 54332 } 54333 } 54334 case "UnhealthyAllocationIDs": 54335 if r.TryDecodeAsNil() { 54336 x.UnhealthyAllocationIDs = nil 54337 } else { 54338 if false { 54339 } else { 54340 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 54341 } 54342 } 54343 case "Region": 54344 if r.TryDecodeAsNil() { 54345 x.WriteRequest.Region = "" 54346 } else { 54347 x.Region = (string)(r.DecodeString()) 54348 } 54349 case "Namespace": 54350 if r.TryDecodeAsNil() { 54351 x.WriteRequest.Namespace = "" 54352 } else { 54353 x.Namespace = (string)(r.DecodeString()) 54354 } 54355 case "AuthToken": 54356 if r.TryDecodeAsNil() { 54357 x.WriteRequest.AuthToken = "" 54358 } else { 54359 x.AuthToken = (string)(r.DecodeString()) 54360 } 54361 case "Forwarded": 54362 if r.TryDecodeAsNil() { 54363 x.WriteRequest.InternalRpcInfo.Forwarded = false 54364 } else { 54365 x.Forwarded = (bool)(r.DecodeBool()) 54366 } 54367 default: 54368 z.DecStructFieldNotFound(-1, yys3) 54369 } // end switch yys3 54370 } // end for yyj3 54371 r.ReadMapEnd() 54372 } 54373 54374 func (x *DeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 54375 var h codecSelfer100 54376 z, r := codec1978.GenHelperDecoder(d) 54377 _, _, _ = h, z, r 54378 var yyj13 int 54379 var yyb13 bool 54380 var yyhl13 bool = l >= 0 54381 yyj13++ 54382 if yyhl13 { 54383 yyb13 = yyj13 > l 54384 } else { 54385 yyb13 = r.CheckBreak() 54386 } 54387 if yyb13 { 54388 r.ReadArrayEnd() 54389 return 54390 } 54391 r.ReadArrayElem() 54392 if r.TryDecodeAsNil() { 54393 x.DeploymentID = "" 54394 } else { 54395 x.DeploymentID = (string)(r.DecodeString()) 54396 } 54397 yyj13++ 54398 if yyhl13 { 54399 yyb13 = yyj13 > l 54400 } else { 54401 yyb13 = r.CheckBreak() 54402 } 54403 if yyb13 { 54404 r.ReadArrayEnd() 54405 return 54406 } 54407 r.ReadArrayElem() 54408 if r.TryDecodeAsNil() { 54409 x.HealthyAllocationIDs = nil 54410 } else { 54411 if false { 54412 } else { 54413 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 54414 } 54415 } 54416 yyj13++ 54417 if yyhl13 { 54418 yyb13 = yyj13 > l 54419 } else { 54420 yyb13 = r.CheckBreak() 54421 } 54422 if yyb13 { 54423 r.ReadArrayEnd() 54424 return 54425 } 54426 r.ReadArrayElem() 54427 if r.TryDecodeAsNil() { 54428 x.UnhealthyAllocationIDs = nil 54429 } else { 54430 if false { 54431 } else { 54432 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 54433 } 54434 } 54435 yyj13++ 54436 if yyhl13 { 54437 yyb13 = yyj13 > l 54438 } else { 54439 yyb13 = r.CheckBreak() 54440 } 54441 if yyb13 { 54442 r.ReadArrayEnd() 54443 return 54444 } 54445 r.ReadArrayElem() 54446 if r.TryDecodeAsNil() { 54447 x.WriteRequest.Region = "" 54448 } else { 54449 x.Region = (string)(r.DecodeString()) 54450 } 54451 yyj13++ 54452 if yyhl13 { 54453 yyb13 = yyj13 > l 54454 } else { 54455 yyb13 = r.CheckBreak() 54456 } 54457 if yyb13 { 54458 r.ReadArrayEnd() 54459 return 54460 } 54461 r.ReadArrayElem() 54462 if r.TryDecodeAsNil() { 54463 x.WriteRequest.Namespace = "" 54464 } else { 54465 x.Namespace = (string)(r.DecodeString()) 54466 } 54467 yyj13++ 54468 if yyhl13 { 54469 yyb13 = yyj13 > l 54470 } else { 54471 yyb13 = r.CheckBreak() 54472 } 54473 if yyb13 { 54474 r.ReadArrayEnd() 54475 return 54476 } 54477 r.ReadArrayElem() 54478 if r.TryDecodeAsNil() { 54479 x.WriteRequest.AuthToken = "" 54480 } else { 54481 x.AuthToken = (string)(r.DecodeString()) 54482 } 54483 yyj13++ 54484 if yyhl13 { 54485 yyb13 = yyj13 > l 54486 } else { 54487 yyb13 = r.CheckBreak() 54488 } 54489 if yyb13 { 54490 r.ReadArrayEnd() 54491 return 54492 } 54493 r.ReadArrayElem() 54494 if r.TryDecodeAsNil() { 54495 x.WriteRequest.InternalRpcInfo.Forwarded = false 54496 } else { 54497 x.Forwarded = (bool)(r.DecodeBool()) 54498 } 54499 for { 54500 yyj13++ 54501 if yyhl13 { 54502 yyb13 = yyj13 > l 54503 } else { 54504 yyb13 = r.CheckBreak() 54505 } 54506 if yyb13 { 54507 break 54508 } 54509 r.ReadArrayElem() 54510 z.DecStructFieldNotFound(yyj13-1, "") 54511 } 54512 r.ReadArrayEnd() 54513 } 54514 54515 func (x *ApplyDeploymentAllocHealthRequest) CodecEncodeSelf(e *codec1978.Encoder) { 54516 var h codecSelfer100 54517 z, r := codec1978.GenHelperEncoder(e) 54518 _, _, _ = h, z, r 54519 if x == nil { 54520 r.EncodeNil() 54521 } else { 54522 if false { 54523 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54524 z.EncExtension(x, yyxt1) 54525 } else { 54526 yysep2 := !z.EncBinary() 54527 yy2arr2 := z.EncBasicHandle().StructToArray 54528 _, _ = yysep2, yy2arr2 54529 const yyr2 bool = false // struct tag has 'toArray' 54530 if yyr2 || yy2arr2 { 54531 r.WriteArrayStart(11) 54532 } else { 54533 r.WriteMapStart(11) 54534 } 54535 if yyr2 || yy2arr2 { 54536 r.WriteArrayElem() 54537 if false { 54538 } else { 54539 if z.EncBasicHandle().StringToRaw { 54540 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54541 } else { 54542 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54543 } 54544 } 54545 } else { 54546 r.WriteMapElemKey() 54547 if z.IsJSONHandle() { 54548 z.WriteStr("\"DeploymentID\"") 54549 } else { 54550 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 54551 } 54552 r.WriteMapElemValue() 54553 if false { 54554 } else { 54555 if z.EncBasicHandle().StringToRaw { 54556 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 54557 } else { 54558 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 54559 } 54560 } 54561 } 54562 if yyr2 || yy2arr2 { 54563 r.WriteArrayElem() 54564 if x.HealthyAllocationIDs == nil { 54565 r.EncodeNil() 54566 } else { 54567 if false { 54568 } else { 54569 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 54570 } 54571 } 54572 } else { 54573 r.WriteMapElemKey() 54574 if z.IsJSONHandle() { 54575 z.WriteStr("\"HealthyAllocationIDs\"") 54576 } else { 54577 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocationIDs`) 54578 } 54579 r.WriteMapElemValue() 54580 if x.HealthyAllocationIDs == nil { 54581 r.EncodeNil() 54582 } else { 54583 if false { 54584 } else { 54585 z.F.EncSliceStringV(x.HealthyAllocationIDs, e) 54586 } 54587 } 54588 } 54589 if yyr2 || yy2arr2 { 54590 r.WriteArrayElem() 54591 if x.UnhealthyAllocationIDs == nil { 54592 r.EncodeNil() 54593 } else { 54594 if false { 54595 } else { 54596 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 54597 } 54598 } 54599 } else { 54600 r.WriteMapElemKey() 54601 if z.IsJSONHandle() { 54602 z.WriteStr("\"UnhealthyAllocationIDs\"") 54603 } else { 54604 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocationIDs`) 54605 } 54606 r.WriteMapElemValue() 54607 if x.UnhealthyAllocationIDs == nil { 54608 r.EncodeNil() 54609 } else { 54610 if false { 54611 } else { 54612 z.F.EncSliceStringV(x.UnhealthyAllocationIDs, e) 54613 } 54614 } 54615 } 54616 if yyr2 || yy2arr2 { 54617 r.WriteArrayElem() 54618 if false { 54619 } else { 54620 if z.EncBasicHandle().StringToRaw { 54621 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54622 } else { 54623 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54624 } 54625 } 54626 } else { 54627 r.WriteMapElemKey() 54628 if z.IsJSONHandle() { 54629 z.WriteStr("\"Region\"") 54630 } else { 54631 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 54632 } 54633 r.WriteMapElemValue() 54634 if false { 54635 } else { 54636 if z.EncBasicHandle().StringToRaw { 54637 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 54638 } else { 54639 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 54640 } 54641 } 54642 } 54643 if yyr2 || yy2arr2 { 54644 r.WriteArrayElem() 54645 if false { 54646 } else { 54647 if z.EncBasicHandle().StringToRaw { 54648 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54649 } else { 54650 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54651 } 54652 } 54653 } else { 54654 r.WriteMapElemKey() 54655 if z.IsJSONHandle() { 54656 z.WriteStr("\"Namespace\"") 54657 } else { 54658 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 54659 } 54660 r.WriteMapElemValue() 54661 if false { 54662 } else { 54663 if z.EncBasicHandle().StringToRaw { 54664 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 54665 } else { 54666 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 54667 } 54668 } 54669 } 54670 if yyr2 || yy2arr2 { 54671 r.WriteArrayElem() 54672 if false { 54673 } else { 54674 if z.EncBasicHandle().StringToRaw { 54675 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54676 } else { 54677 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54678 } 54679 } 54680 } else { 54681 r.WriteMapElemKey() 54682 if z.IsJSONHandle() { 54683 z.WriteStr("\"AuthToken\"") 54684 } else { 54685 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 54686 } 54687 r.WriteMapElemValue() 54688 if false { 54689 } else { 54690 if z.EncBasicHandle().StringToRaw { 54691 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 54692 } else { 54693 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 54694 } 54695 } 54696 } 54697 if yyr2 || yy2arr2 { 54698 r.WriteArrayElem() 54699 if false { 54700 } else { 54701 r.EncodeBool(bool(x.Forwarded)) 54702 } 54703 } else { 54704 r.WriteMapElemKey() 54705 if z.IsJSONHandle() { 54706 z.WriteStr("\"Forwarded\"") 54707 } else { 54708 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 54709 } 54710 r.WriteMapElemValue() 54711 if false { 54712 } else { 54713 r.EncodeBool(bool(x.Forwarded)) 54714 } 54715 } 54716 if yyr2 || yy2arr2 { 54717 r.WriteArrayElem() 54718 if false { 54719 } else if !z.EncBasicHandle().TimeNotBuiltin { 54720 r.EncodeTime(x.Timestamp) 54721 } else if yyxt25 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt25 != nil { 54722 z.EncExtension(x.Timestamp, yyxt25) 54723 } else if z.EncBinary() { 54724 z.EncBinaryMarshal(x.Timestamp) 54725 } else if !z.EncBinary() && z.IsJSONHandle() { 54726 z.EncJSONMarshal(x.Timestamp) 54727 } else { 54728 z.EncFallback(x.Timestamp) 54729 } 54730 } else { 54731 r.WriteMapElemKey() 54732 if z.IsJSONHandle() { 54733 z.WriteStr("\"Timestamp\"") 54734 } else { 54735 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 54736 } 54737 r.WriteMapElemValue() 54738 if false { 54739 } else if !z.EncBasicHandle().TimeNotBuiltin { 54740 r.EncodeTime(x.Timestamp) 54741 } else if yyxt26 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt26 != nil { 54742 z.EncExtension(x.Timestamp, yyxt26) 54743 } else if z.EncBinary() { 54744 z.EncBinaryMarshal(x.Timestamp) 54745 } else if !z.EncBinary() && z.IsJSONHandle() { 54746 z.EncJSONMarshal(x.Timestamp) 54747 } else { 54748 z.EncFallback(x.Timestamp) 54749 } 54750 } 54751 var yyn27 bool 54752 if x.DeploymentUpdate == nil { 54753 yyn27 = true 54754 goto LABEL27 54755 } 54756 LABEL27: 54757 if yyr2 || yy2arr2 { 54758 if yyn27 { 54759 r.WriteArrayElem() 54760 r.EncodeNil() 54761 } else { 54762 r.WriteArrayElem() 54763 if x.DeploymentUpdate == nil { 54764 r.EncodeNil() 54765 } else { 54766 x.DeploymentUpdate.CodecEncodeSelf(e) 54767 } 54768 } 54769 } else { 54770 r.WriteMapElemKey() 54771 if z.IsJSONHandle() { 54772 z.WriteStr("\"DeploymentUpdate\"") 54773 } else { 54774 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdate`) 54775 } 54776 r.WriteMapElemValue() 54777 if yyn27 { 54778 r.EncodeNil() 54779 } else { 54780 if x.DeploymentUpdate == nil { 54781 r.EncodeNil() 54782 } else { 54783 x.DeploymentUpdate.CodecEncodeSelf(e) 54784 } 54785 } 54786 } 54787 var yyn30 bool 54788 if x.Job == nil { 54789 yyn30 = true 54790 goto LABEL30 54791 } 54792 LABEL30: 54793 if yyr2 || yy2arr2 { 54794 if yyn30 { 54795 r.WriteArrayElem() 54796 r.EncodeNil() 54797 } else { 54798 r.WriteArrayElem() 54799 if x.Job == nil { 54800 r.EncodeNil() 54801 } else { 54802 x.Job.CodecEncodeSelf(e) 54803 } 54804 } 54805 } else { 54806 r.WriteMapElemKey() 54807 if z.IsJSONHandle() { 54808 z.WriteStr("\"Job\"") 54809 } else { 54810 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 54811 } 54812 r.WriteMapElemValue() 54813 if yyn30 { 54814 r.EncodeNil() 54815 } else { 54816 if x.Job == nil { 54817 r.EncodeNil() 54818 } else { 54819 x.Job.CodecEncodeSelf(e) 54820 } 54821 } 54822 } 54823 var yyn33 bool 54824 if x.Eval == nil { 54825 yyn33 = true 54826 goto LABEL33 54827 } 54828 LABEL33: 54829 if yyr2 || yy2arr2 { 54830 if yyn33 { 54831 r.WriteArrayElem() 54832 r.EncodeNil() 54833 } else { 54834 r.WriteArrayElem() 54835 if x.Eval == nil { 54836 r.EncodeNil() 54837 } else { 54838 x.Eval.CodecEncodeSelf(e) 54839 } 54840 } 54841 } else { 54842 r.WriteMapElemKey() 54843 if z.IsJSONHandle() { 54844 z.WriteStr("\"Eval\"") 54845 } else { 54846 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 54847 } 54848 r.WriteMapElemValue() 54849 if yyn33 { 54850 r.EncodeNil() 54851 } else { 54852 if x.Eval == nil { 54853 r.EncodeNil() 54854 } else { 54855 x.Eval.CodecEncodeSelf(e) 54856 } 54857 } 54858 } 54859 if yyr2 || yy2arr2 { 54860 r.WriteArrayEnd() 54861 } else { 54862 r.WriteMapEnd() 54863 } 54864 } 54865 } 54866 } 54867 54868 func (x *ApplyDeploymentAllocHealthRequest) CodecDecodeSelf(d *codec1978.Decoder) { 54869 var h codecSelfer100 54870 z, r := codec1978.GenHelperDecoder(d) 54871 _, _, _ = h, z, r 54872 if false { 54873 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 54874 z.DecExtension(x, yyxt1) 54875 } else { 54876 yyct2 := r.ContainerType() 54877 if yyct2 == codecSelferValueTypeMap100 { 54878 yyl2 := r.ReadMapStart() 54879 if yyl2 == 0 { 54880 r.ReadMapEnd() 54881 } else { 54882 x.codecDecodeSelfFromMap(yyl2, d) 54883 } 54884 } else if yyct2 == codecSelferValueTypeArray100 { 54885 yyl2 := r.ReadArrayStart() 54886 if yyl2 == 0 { 54887 r.ReadArrayEnd() 54888 } else { 54889 x.codecDecodeSelfFromArray(yyl2, d) 54890 } 54891 } else { 54892 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 54893 } 54894 } 54895 } 54896 54897 func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 54898 var h codecSelfer100 54899 z, r := codec1978.GenHelperDecoder(d) 54900 _, _, _ = h, z, r 54901 var yyhl3 bool = l >= 0 54902 for yyj3 := 0; ; yyj3++ { 54903 if yyhl3 { 54904 if yyj3 >= l { 54905 break 54906 } 54907 } else { 54908 if r.CheckBreak() { 54909 break 54910 } 54911 } 54912 r.ReadMapElemKey() 54913 yys3 := z.StringView(r.DecodeStringAsBytes()) 54914 r.ReadMapElemValue() 54915 switch yys3 { 54916 case "DeploymentID": 54917 if r.TryDecodeAsNil() { 54918 x.DeploymentAllocHealthRequest.DeploymentID = "" 54919 } else { 54920 x.DeploymentID = (string)(r.DecodeString()) 54921 } 54922 case "HealthyAllocationIDs": 54923 if r.TryDecodeAsNil() { 54924 x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil 54925 } else { 54926 if false { 54927 } else { 54928 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 54929 } 54930 } 54931 case "UnhealthyAllocationIDs": 54932 if r.TryDecodeAsNil() { 54933 x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil 54934 } else { 54935 if false { 54936 } else { 54937 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 54938 } 54939 } 54940 case "Region": 54941 if r.TryDecodeAsNil() { 54942 x.DeploymentAllocHealthRequest.WriteRequest.Region = "" 54943 } else { 54944 x.Region = (string)(r.DecodeString()) 54945 } 54946 case "Namespace": 54947 if r.TryDecodeAsNil() { 54948 x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" 54949 } else { 54950 x.Namespace = (string)(r.DecodeString()) 54951 } 54952 case "AuthToken": 54953 if r.TryDecodeAsNil() { 54954 x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" 54955 } else { 54956 x.AuthToken = (string)(r.DecodeString()) 54957 } 54958 case "Forwarded": 54959 if r.TryDecodeAsNil() { 54960 x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false 54961 } else { 54962 x.Forwarded = (bool)(r.DecodeBool()) 54963 } 54964 case "Timestamp": 54965 if r.TryDecodeAsNil() { 54966 x.Timestamp = time.Time{} 54967 } else { 54968 if false { 54969 } else if !z.DecBasicHandle().TimeNotBuiltin { 54970 x.Timestamp = r.DecodeTime() 54971 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 54972 z.DecExtension(x.Timestamp, yyxt14) 54973 } else if z.DecBinary() { 54974 z.DecBinaryUnmarshal(&x.Timestamp) 54975 } else if !z.DecBinary() && z.IsJSONHandle() { 54976 z.DecJSONUnmarshal(&x.Timestamp) 54977 } else { 54978 z.DecFallback(&x.Timestamp, false) 54979 } 54980 } 54981 case "DeploymentUpdate": 54982 if r.TryDecodeAsNil() { 54983 if true && x.DeploymentUpdate != nil { 54984 x.DeploymentUpdate = nil 54985 } 54986 } else { 54987 if x.DeploymentUpdate == nil { 54988 x.DeploymentUpdate = new(DeploymentStatusUpdate) 54989 } 54990 54991 x.DeploymentUpdate.CodecDecodeSelf(d) 54992 } 54993 case "Job": 54994 if r.TryDecodeAsNil() { 54995 if true && x.Job != nil { 54996 x.Job = nil 54997 } 54998 } else { 54999 if x.Job == nil { 55000 x.Job = new(Job) 55001 } 55002 55003 x.Job.CodecDecodeSelf(d) 55004 } 55005 case "Eval": 55006 if r.TryDecodeAsNil() { 55007 if true && x.Eval != nil { 55008 x.Eval = nil 55009 } 55010 } else { 55011 if x.Eval == nil { 55012 x.Eval = new(Evaluation) 55013 } 55014 55015 x.Eval.CodecDecodeSelf(d) 55016 } 55017 default: 55018 z.DecStructFieldNotFound(-1, yys3) 55019 } // end switch yys3 55020 } // end for yyj3 55021 r.ReadMapEnd() 55022 } 55023 55024 func (x *ApplyDeploymentAllocHealthRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 55025 var h codecSelfer100 55026 z, r := codec1978.GenHelperDecoder(d) 55027 _, _, _ = h, z, r 55028 var yyj18 int 55029 var yyb18 bool 55030 var yyhl18 bool = l >= 0 55031 yyj18++ 55032 if yyhl18 { 55033 yyb18 = yyj18 > l 55034 } else { 55035 yyb18 = r.CheckBreak() 55036 } 55037 if yyb18 { 55038 r.ReadArrayEnd() 55039 return 55040 } 55041 r.ReadArrayElem() 55042 if r.TryDecodeAsNil() { 55043 x.DeploymentAllocHealthRequest.DeploymentID = "" 55044 } else { 55045 x.DeploymentID = (string)(r.DecodeString()) 55046 } 55047 yyj18++ 55048 if yyhl18 { 55049 yyb18 = yyj18 > l 55050 } else { 55051 yyb18 = r.CheckBreak() 55052 } 55053 if yyb18 { 55054 r.ReadArrayEnd() 55055 return 55056 } 55057 r.ReadArrayElem() 55058 if r.TryDecodeAsNil() { 55059 x.DeploymentAllocHealthRequest.HealthyAllocationIDs = nil 55060 } else { 55061 if false { 55062 } else { 55063 z.F.DecSliceStringX(&x.HealthyAllocationIDs, d) 55064 } 55065 } 55066 yyj18++ 55067 if yyhl18 { 55068 yyb18 = yyj18 > l 55069 } else { 55070 yyb18 = r.CheckBreak() 55071 } 55072 if yyb18 { 55073 r.ReadArrayEnd() 55074 return 55075 } 55076 r.ReadArrayElem() 55077 if r.TryDecodeAsNil() { 55078 x.DeploymentAllocHealthRequest.UnhealthyAllocationIDs = nil 55079 } else { 55080 if false { 55081 } else { 55082 z.F.DecSliceStringX(&x.UnhealthyAllocationIDs, d) 55083 } 55084 } 55085 yyj18++ 55086 if yyhl18 { 55087 yyb18 = yyj18 > l 55088 } else { 55089 yyb18 = r.CheckBreak() 55090 } 55091 if yyb18 { 55092 r.ReadArrayEnd() 55093 return 55094 } 55095 r.ReadArrayElem() 55096 if r.TryDecodeAsNil() { 55097 x.DeploymentAllocHealthRequest.WriteRequest.Region = "" 55098 } else { 55099 x.Region = (string)(r.DecodeString()) 55100 } 55101 yyj18++ 55102 if yyhl18 { 55103 yyb18 = yyj18 > l 55104 } else { 55105 yyb18 = r.CheckBreak() 55106 } 55107 if yyb18 { 55108 r.ReadArrayEnd() 55109 return 55110 } 55111 r.ReadArrayElem() 55112 if r.TryDecodeAsNil() { 55113 x.DeploymentAllocHealthRequest.WriteRequest.Namespace = "" 55114 } else { 55115 x.Namespace = (string)(r.DecodeString()) 55116 } 55117 yyj18++ 55118 if yyhl18 { 55119 yyb18 = yyj18 > l 55120 } else { 55121 yyb18 = r.CheckBreak() 55122 } 55123 if yyb18 { 55124 r.ReadArrayEnd() 55125 return 55126 } 55127 r.ReadArrayElem() 55128 if r.TryDecodeAsNil() { 55129 x.DeploymentAllocHealthRequest.WriteRequest.AuthToken = "" 55130 } else { 55131 x.AuthToken = (string)(r.DecodeString()) 55132 } 55133 yyj18++ 55134 if yyhl18 { 55135 yyb18 = yyj18 > l 55136 } else { 55137 yyb18 = r.CheckBreak() 55138 } 55139 if yyb18 { 55140 r.ReadArrayEnd() 55141 return 55142 } 55143 r.ReadArrayElem() 55144 if r.TryDecodeAsNil() { 55145 x.DeploymentAllocHealthRequest.WriteRequest.InternalRpcInfo.Forwarded = false 55146 } else { 55147 x.Forwarded = (bool)(r.DecodeBool()) 55148 } 55149 yyj18++ 55150 if yyhl18 { 55151 yyb18 = yyj18 > l 55152 } else { 55153 yyb18 = r.CheckBreak() 55154 } 55155 if yyb18 { 55156 r.ReadArrayEnd() 55157 return 55158 } 55159 r.ReadArrayElem() 55160 if r.TryDecodeAsNil() { 55161 x.Timestamp = time.Time{} 55162 } else { 55163 if false { 55164 } else if !z.DecBasicHandle().TimeNotBuiltin { 55165 x.Timestamp = r.DecodeTime() 55166 } else if yyxt29 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt29 != nil { 55167 z.DecExtension(x.Timestamp, yyxt29) 55168 } else if z.DecBinary() { 55169 z.DecBinaryUnmarshal(&x.Timestamp) 55170 } else if !z.DecBinary() && z.IsJSONHandle() { 55171 z.DecJSONUnmarshal(&x.Timestamp) 55172 } else { 55173 z.DecFallback(&x.Timestamp, false) 55174 } 55175 } 55176 yyj18++ 55177 if yyhl18 { 55178 yyb18 = yyj18 > l 55179 } else { 55180 yyb18 = r.CheckBreak() 55181 } 55182 if yyb18 { 55183 r.ReadArrayEnd() 55184 return 55185 } 55186 r.ReadArrayElem() 55187 if r.TryDecodeAsNil() { 55188 if true && x.DeploymentUpdate != nil { 55189 x.DeploymentUpdate = nil 55190 } 55191 } else { 55192 if x.DeploymentUpdate == nil { 55193 x.DeploymentUpdate = new(DeploymentStatusUpdate) 55194 } 55195 55196 x.DeploymentUpdate.CodecDecodeSelf(d) 55197 } 55198 yyj18++ 55199 if yyhl18 { 55200 yyb18 = yyj18 > l 55201 } else { 55202 yyb18 = r.CheckBreak() 55203 } 55204 if yyb18 { 55205 r.ReadArrayEnd() 55206 return 55207 } 55208 r.ReadArrayElem() 55209 if r.TryDecodeAsNil() { 55210 if true && x.Job != nil { 55211 x.Job = nil 55212 } 55213 } else { 55214 if x.Job == nil { 55215 x.Job = new(Job) 55216 } 55217 55218 x.Job.CodecDecodeSelf(d) 55219 } 55220 yyj18++ 55221 if yyhl18 { 55222 yyb18 = yyj18 > l 55223 } else { 55224 yyb18 = r.CheckBreak() 55225 } 55226 if yyb18 { 55227 r.ReadArrayEnd() 55228 return 55229 } 55230 r.ReadArrayElem() 55231 if r.TryDecodeAsNil() { 55232 if true && x.Eval != nil { 55233 x.Eval = nil 55234 } 55235 } else { 55236 if x.Eval == nil { 55237 x.Eval = new(Evaluation) 55238 } 55239 55240 x.Eval.CodecDecodeSelf(d) 55241 } 55242 for { 55243 yyj18++ 55244 if yyhl18 { 55245 yyb18 = yyj18 > l 55246 } else { 55247 yyb18 = r.CheckBreak() 55248 } 55249 if yyb18 { 55250 break 55251 } 55252 r.ReadArrayElem() 55253 z.DecStructFieldNotFound(yyj18-1, "") 55254 } 55255 r.ReadArrayEnd() 55256 } 55257 55258 func (x *DeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 55259 var h codecSelfer100 55260 z, r := codec1978.GenHelperEncoder(e) 55261 _, _, _ = h, z, r 55262 if x == nil { 55263 r.EncodeNil() 55264 } else { 55265 if false { 55266 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55267 z.EncExtension(x, yyxt1) 55268 } else { 55269 yysep2 := !z.EncBinary() 55270 yy2arr2 := z.EncBasicHandle().StructToArray 55271 _, _ = yysep2, yy2arr2 55272 const yyr2 bool = false // struct tag has 'toArray' 55273 if yyr2 || yy2arr2 { 55274 r.WriteArrayStart(7) 55275 } else { 55276 r.WriteMapStart(7) 55277 } 55278 if yyr2 || yy2arr2 { 55279 r.WriteArrayElem() 55280 if false { 55281 } else { 55282 if z.EncBasicHandle().StringToRaw { 55283 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55284 } else { 55285 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55286 } 55287 } 55288 } else { 55289 r.WriteMapElemKey() 55290 if z.IsJSONHandle() { 55291 z.WriteStr("\"DeploymentID\"") 55292 } else { 55293 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 55294 } 55295 r.WriteMapElemValue() 55296 if false { 55297 } else { 55298 if z.EncBasicHandle().StringToRaw { 55299 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55300 } else { 55301 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55302 } 55303 } 55304 } 55305 if yyr2 || yy2arr2 { 55306 r.WriteArrayElem() 55307 if false { 55308 } else { 55309 r.EncodeBool(bool(x.All)) 55310 } 55311 } else { 55312 r.WriteMapElemKey() 55313 if z.IsJSONHandle() { 55314 z.WriteStr("\"All\"") 55315 } else { 55316 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 55317 } 55318 r.WriteMapElemValue() 55319 if false { 55320 } else { 55321 r.EncodeBool(bool(x.All)) 55322 } 55323 } 55324 if yyr2 || yy2arr2 { 55325 r.WriteArrayElem() 55326 if x.Groups == nil { 55327 r.EncodeNil() 55328 } else { 55329 if false { 55330 } else { 55331 z.F.EncSliceStringV(x.Groups, e) 55332 } 55333 } 55334 } else { 55335 r.WriteMapElemKey() 55336 if z.IsJSONHandle() { 55337 z.WriteStr("\"Groups\"") 55338 } else { 55339 r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) 55340 } 55341 r.WriteMapElemValue() 55342 if x.Groups == nil { 55343 r.EncodeNil() 55344 } else { 55345 if false { 55346 } else { 55347 z.F.EncSliceStringV(x.Groups, e) 55348 } 55349 } 55350 } 55351 if yyr2 || yy2arr2 { 55352 r.WriteArrayElem() 55353 if false { 55354 } else { 55355 if z.EncBasicHandle().StringToRaw { 55356 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55357 } else { 55358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55359 } 55360 } 55361 } else { 55362 r.WriteMapElemKey() 55363 if z.IsJSONHandle() { 55364 z.WriteStr("\"Region\"") 55365 } else { 55366 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 55367 } 55368 r.WriteMapElemValue() 55369 if false { 55370 } else { 55371 if z.EncBasicHandle().StringToRaw { 55372 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55373 } else { 55374 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55375 } 55376 } 55377 } 55378 if yyr2 || yy2arr2 { 55379 r.WriteArrayElem() 55380 if false { 55381 } else { 55382 if z.EncBasicHandle().StringToRaw { 55383 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55384 } else { 55385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55386 } 55387 } 55388 } else { 55389 r.WriteMapElemKey() 55390 if z.IsJSONHandle() { 55391 z.WriteStr("\"Namespace\"") 55392 } else { 55393 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 55394 } 55395 r.WriteMapElemValue() 55396 if false { 55397 } else { 55398 if z.EncBasicHandle().StringToRaw { 55399 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55400 } else { 55401 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55402 } 55403 } 55404 } 55405 if yyr2 || yy2arr2 { 55406 r.WriteArrayElem() 55407 if false { 55408 } else { 55409 if z.EncBasicHandle().StringToRaw { 55410 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55411 } else { 55412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55413 } 55414 } 55415 } else { 55416 r.WriteMapElemKey() 55417 if z.IsJSONHandle() { 55418 z.WriteStr("\"AuthToken\"") 55419 } else { 55420 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 55421 } 55422 r.WriteMapElemValue() 55423 if false { 55424 } else { 55425 if z.EncBasicHandle().StringToRaw { 55426 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55427 } else { 55428 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55429 } 55430 } 55431 } 55432 if yyr2 || yy2arr2 { 55433 r.WriteArrayElem() 55434 if false { 55435 } else { 55436 r.EncodeBool(bool(x.Forwarded)) 55437 } 55438 } else { 55439 r.WriteMapElemKey() 55440 if z.IsJSONHandle() { 55441 z.WriteStr("\"Forwarded\"") 55442 } else { 55443 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 55444 } 55445 r.WriteMapElemValue() 55446 if false { 55447 } else { 55448 r.EncodeBool(bool(x.Forwarded)) 55449 } 55450 } 55451 if yyr2 || yy2arr2 { 55452 r.WriteArrayEnd() 55453 } else { 55454 r.WriteMapEnd() 55455 } 55456 } 55457 } 55458 } 55459 55460 func (x *DeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 55461 var h codecSelfer100 55462 z, r := codec1978.GenHelperDecoder(d) 55463 _, _, _ = h, z, r 55464 if false { 55465 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55466 z.DecExtension(x, yyxt1) 55467 } else { 55468 yyct2 := r.ContainerType() 55469 if yyct2 == codecSelferValueTypeMap100 { 55470 yyl2 := r.ReadMapStart() 55471 if yyl2 == 0 { 55472 r.ReadMapEnd() 55473 } else { 55474 x.codecDecodeSelfFromMap(yyl2, d) 55475 } 55476 } else if yyct2 == codecSelferValueTypeArray100 { 55477 yyl2 := r.ReadArrayStart() 55478 if yyl2 == 0 { 55479 r.ReadArrayEnd() 55480 } else { 55481 x.codecDecodeSelfFromArray(yyl2, d) 55482 } 55483 } else { 55484 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 55485 } 55486 } 55487 } 55488 55489 func (x *DeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 55490 var h codecSelfer100 55491 z, r := codec1978.GenHelperDecoder(d) 55492 _, _, _ = h, z, r 55493 var yyhl3 bool = l >= 0 55494 for yyj3 := 0; ; yyj3++ { 55495 if yyhl3 { 55496 if yyj3 >= l { 55497 break 55498 } 55499 } else { 55500 if r.CheckBreak() { 55501 break 55502 } 55503 } 55504 r.ReadMapElemKey() 55505 yys3 := z.StringView(r.DecodeStringAsBytes()) 55506 r.ReadMapElemValue() 55507 switch yys3 { 55508 case "DeploymentID": 55509 if r.TryDecodeAsNil() { 55510 x.DeploymentID = "" 55511 } else { 55512 x.DeploymentID = (string)(r.DecodeString()) 55513 } 55514 case "All": 55515 if r.TryDecodeAsNil() { 55516 x.All = false 55517 } else { 55518 x.All = (bool)(r.DecodeBool()) 55519 } 55520 case "Groups": 55521 if r.TryDecodeAsNil() { 55522 x.Groups = nil 55523 } else { 55524 if false { 55525 } else { 55526 z.F.DecSliceStringX(&x.Groups, d) 55527 } 55528 } 55529 case "Region": 55530 if r.TryDecodeAsNil() { 55531 x.WriteRequest.Region = "" 55532 } else { 55533 x.Region = (string)(r.DecodeString()) 55534 } 55535 case "Namespace": 55536 if r.TryDecodeAsNil() { 55537 x.WriteRequest.Namespace = "" 55538 } else { 55539 x.Namespace = (string)(r.DecodeString()) 55540 } 55541 case "AuthToken": 55542 if r.TryDecodeAsNil() { 55543 x.WriteRequest.AuthToken = "" 55544 } else { 55545 x.AuthToken = (string)(r.DecodeString()) 55546 } 55547 case "Forwarded": 55548 if r.TryDecodeAsNil() { 55549 x.WriteRequest.InternalRpcInfo.Forwarded = false 55550 } else { 55551 x.Forwarded = (bool)(r.DecodeBool()) 55552 } 55553 default: 55554 z.DecStructFieldNotFound(-1, yys3) 55555 } // end switch yys3 55556 } // end for yyj3 55557 r.ReadMapEnd() 55558 } 55559 55560 func (x *DeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 55561 var h codecSelfer100 55562 z, r := codec1978.GenHelperDecoder(d) 55563 _, _, _ = h, z, r 55564 var yyj12 int 55565 var yyb12 bool 55566 var yyhl12 bool = l >= 0 55567 yyj12++ 55568 if yyhl12 { 55569 yyb12 = yyj12 > l 55570 } else { 55571 yyb12 = r.CheckBreak() 55572 } 55573 if yyb12 { 55574 r.ReadArrayEnd() 55575 return 55576 } 55577 r.ReadArrayElem() 55578 if r.TryDecodeAsNil() { 55579 x.DeploymentID = "" 55580 } else { 55581 x.DeploymentID = (string)(r.DecodeString()) 55582 } 55583 yyj12++ 55584 if yyhl12 { 55585 yyb12 = yyj12 > l 55586 } else { 55587 yyb12 = r.CheckBreak() 55588 } 55589 if yyb12 { 55590 r.ReadArrayEnd() 55591 return 55592 } 55593 r.ReadArrayElem() 55594 if r.TryDecodeAsNil() { 55595 x.All = false 55596 } else { 55597 x.All = (bool)(r.DecodeBool()) 55598 } 55599 yyj12++ 55600 if yyhl12 { 55601 yyb12 = yyj12 > l 55602 } else { 55603 yyb12 = r.CheckBreak() 55604 } 55605 if yyb12 { 55606 r.ReadArrayEnd() 55607 return 55608 } 55609 r.ReadArrayElem() 55610 if r.TryDecodeAsNil() { 55611 x.Groups = nil 55612 } else { 55613 if false { 55614 } else { 55615 z.F.DecSliceStringX(&x.Groups, d) 55616 } 55617 } 55618 yyj12++ 55619 if yyhl12 { 55620 yyb12 = yyj12 > l 55621 } else { 55622 yyb12 = r.CheckBreak() 55623 } 55624 if yyb12 { 55625 r.ReadArrayEnd() 55626 return 55627 } 55628 r.ReadArrayElem() 55629 if r.TryDecodeAsNil() { 55630 x.WriteRequest.Region = "" 55631 } else { 55632 x.Region = (string)(r.DecodeString()) 55633 } 55634 yyj12++ 55635 if yyhl12 { 55636 yyb12 = yyj12 > l 55637 } else { 55638 yyb12 = r.CheckBreak() 55639 } 55640 if yyb12 { 55641 r.ReadArrayEnd() 55642 return 55643 } 55644 r.ReadArrayElem() 55645 if r.TryDecodeAsNil() { 55646 x.WriteRequest.Namespace = "" 55647 } else { 55648 x.Namespace = (string)(r.DecodeString()) 55649 } 55650 yyj12++ 55651 if yyhl12 { 55652 yyb12 = yyj12 > l 55653 } else { 55654 yyb12 = r.CheckBreak() 55655 } 55656 if yyb12 { 55657 r.ReadArrayEnd() 55658 return 55659 } 55660 r.ReadArrayElem() 55661 if r.TryDecodeAsNil() { 55662 x.WriteRequest.AuthToken = "" 55663 } else { 55664 x.AuthToken = (string)(r.DecodeString()) 55665 } 55666 yyj12++ 55667 if yyhl12 { 55668 yyb12 = yyj12 > l 55669 } else { 55670 yyb12 = r.CheckBreak() 55671 } 55672 if yyb12 { 55673 r.ReadArrayEnd() 55674 return 55675 } 55676 r.ReadArrayElem() 55677 if r.TryDecodeAsNil() { 55678 x.WriteRequest.InternalRpcInfo.Forwarded = false 55679 } else { 55680 x.Forwarded = (bool)(r.DecodeBool()) 55681 } 55682 for { 55683 yyj12++ 55684 if yyhl12 { 55685 yyb12 = yyj12 > l 55686 } else { 55687 yyb12 = r.CheckBreak() 55688 } 55689 if yyb12 { 55690 break 55691 } 55692 r.ReadArrayElem() 55693 z.DecStructFieldNotFound(yyj12-1, "") 55694 } 55695 r.ReadArrayEnd() 55696 } 55697 55698 func (x *ApplyDeploymentPromoteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 55699 var h codecSelfer100 55700 z, r := codec1978.GenHelperEncoder(e) 55701 _, _, _ = h, z, r 55702 if x == nil { 55703 r.EncodeNil() 55704 } else { 55705 if false { 55706 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55707 z.EncExtension(x, yyxt1) 55708 } else { 55709 yysep2 := !z.EncBinary() 55710 yy2arr2 := z.EncBasicHandle().StructToArray 55711 _, _ = yysep2, yy2arr2 55712 const yyr2 bool = false // struct tag has 'toArray' 55713 if yyr2 || yy2arr2 { 55714 r.WriteArrayStart(8) 55715 } else { 55716 r.WriteMapStart(8) 55717 } 55718 if yyr2 || yy2arr2 { 55719 r.WriteArrayElem() 55720 if false { 55721 } else { 55722 if z.EncBasicHandle().StringToRaw { 55723 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55724 } else { 55725 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55726 } 55727 } 55728 } else { 55729 r.WriteMapElemKey() 55730 if z.IsJSONHandle() { 55731 z.WriteStr("\"DeploymentID\"") 55732 } else { 55733 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 55734 } 55735 r.WriteMapElemValue() 55736 if false { 55737 } else { 55738 if z.EncBasicHandle().StringToRaw { 55739 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 55740 } else { 55741 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 55742 } 55743 } 55744 } 55745 if yyr2 || yy2arr2 { 55746 r.WriteArrayElem() 55747 if false { 55748 } else { 55749 r.EncodeBool(bool(x.All)) 55750 } 55751 } else { 55752 r.WriteMapElemKey() 55753 if z.IsJSONHandle() { 55754 z.WriteStr("\"All\"") 55755 } else { 55756 r.EncodeStringEnc(codecSelferCcUTF8100, `All`) 55757 } 55758 r.WriteMapElemValue() 55759 if false { 55760 } else { 55761 r.EncodeBool(bool(x.All)) 55762 } 55763 } 55764 if yyr2 || yy2arr2 { 55765 r.WriteArrayElem() 55766 if x.Groups == nil { 55767 r.EncodeNil() 55768 } else { 55769 if false { 55770 } else { 55771 z.F.EncSliceStringV(x.Groups, e) 55772 } 55773 } 55774 } else { 55775 r.WriteMapElemKey() 55776 if z.IsJSONHandle() { 55777 z.WriteStr("\"Groups\"") 55778 } else { 55779 r.EncodeStringEnc(codecSelferCcUTF8100, `Groups`) 55780 } 55781 r.WriteMapElemValue() 55782 if x.Groups == nil { 55783 r.EncodeNil() 55784 } else { 55785 if false { 55786 } else { 55787 z.F.EncSliceStringV(x.Groups, e) 55788 } 55789 } 55790 } 55791 if yyr2 || yy2arr2 { 55792 r.WriteArrayElem() 55793 if false { 55794 } else { 55795 if z.EncBasicHandle().StringToRaw { 55796 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55797 } else { 55798 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55799 } 55800 } 55801 } else { 55802 r.WriteMapElemKey() 55803 if z.IsJSONHandle() { 55804 z.WriteStr("\"Region\"") 55805 } else { 55806 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 55807 } 55808 r.WriteMapElemValue() 55809 if false { 55810 } else { 55811 if z.EncBasicHandle().StringToRaw { 55812 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 55813 } else { 55814 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 55815 } 55816 } 55817 } 55818 if yyr2 || yy2arr2 { 55819 r.WriteArrayElem() 55820 if false { 55821 } else { 55822 if z.EncBasicHandle().StringToRaw { 55823 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55824 } else { 55825 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55826 } 55827 } 55828 } else { 55829 r.WriteMapElemKey() 55830 if z.IsJSONHandle() { 55831 z.WriteStr("\"Namespace\"") 55832 } else { 55833 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 55834 } 55835 r.WriteMapElemValue() 55836 if false { 55837 } else { 55838 if z.EncBasicHandle().StringToRaw { 55839 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 55840 } else { 55841 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 55842 } 55843 } 55844 } 55845 if yyr2 || yy2arr2 { 55846 r.WriteArrayElem() 55847 if false { 55848 } else { 55849 if z.EncBasicHandle().StringToRaw { 55850 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55851 } else { 55852 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55853 } 55854 } 55855 } else { 55856 r.WriteMapElemKey() 55857 if z.IsJSONHandle() { 55858 z.WriteStr("\"AuthToken\"") 55859 } else { 55860 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 55861 } 55862 r.WriteMapElemValue() 55863 if false { 55864 } else { 55865 if z.EncBasicHandle().StringToRaw { 55866 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 55867 } else { 55868 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 55869 } 55870 } 55871 } 55872 if yyr2 || yy2arr2 { 55873 r.WriteArrayElem() 55874 if false { 55875 } else { 55876 r.EncodeBool(bool(x.Forwarded)) 55877 } 55878 } else { 55879 r.WriteMapElemKey() 55880 if z.IsJSONHandle() { 55881 z.WriteStr("\"Forwarded\"") 55882 } else { 55883 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 55884 } 55885 r.WriteMapElemValue() 55886 if false { 55887 } else { 55888 r.EncodeBool(bool(x.Forwarded)) 55889 } 55890 } 55891 var yyn24 bool 55892 if x.Eval == nil { 55893 yyn24 = true 55894 goto LABEL24 55895 } 55896 LABEL24: 55897 if yyr2 || yy2arr2 { 55898 if yyn24 { 55899 r.WriteArrayElem() 55900 r.EncodeNil() 55901 } else { 55902 r.WriteArrayElem() 55903 if x.Eval == nil { 55904 r.EncodeNil() 55905 } else { 55906 x.Eval.CodecEncodeSelf(e) 55907 } 55908 } 55909 } else { 55910 r.WriteMapElemKey() 55911 if z.IsJSONHandle() { 55912 z.WriteStr("\"Eval\"") 55913 } else { 55914 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 55915 } 55916 r.WriteMapElemValue() 55917 if yyn24 { 55918 r.EncodeNil() 55919 } else { 55920 if x.Eval == nil { 55921 r.EncodeNil() 55922 } else { 55923 x.Eval.CodecEncodeSelf(e) 55924 } 55925 } 55926 } 55927 if yyr2 || yy2arr2 { 55928 r.WriteArrayEnd() 55929 } else { 55930 r.WriteMapEnd() 55931 } 55932 } 55933 } 55934 } 55935 55936 func (x *ApplyDeploymentPromoteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 55937 var h codecSelfer100 55938 z, r := codec1978.GenHelperDecoder(d) 55939 _, _, _ = h, z, r 55940 if false { 55941 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 55942 z.DecExtension(x, yyxt1) 55943 } else { 55944 yyct2 := r.ContainerType() 55945 if yyct2 == codecSelferValueTypeMap100 { 55946 yyl2 := r.ReadMapStart() 55947 if yyl2 == 0 { 55948 r.ReadMapEnd() 55949 } else { 55950 x.codecDecodeSelfFromMap(yyl2, d) 55951 } 55952 } else if yyct2 == codecSelferValueTypeArray100 { 55953 yyl2 := r.ReadArrayStart() 55954 if yyl2 == 0 { 55955 r.ReadArrayEnd() 55956 } else { 55957 x.codecDecodeSelfFromArray(yyl2, d) 55958 } 55959 } else { 55960 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 55961 } 55962 } 55963 } 55964 55965 func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 55966 var h codecSelfer100 55967 z, r := codec1978.GenHelperDecoder(d) 55968 _, _, _ = h, z, r 55969 var yyhl3 bool = l >= 0 55970 for yyj3 := 0; ; yyj3++ { 55971 if yyhl3 { 55972 if yyj3 >= l { 55973 break 55974 } 55975 } else { 55976 if r.CheckBreak() { 55977 break 55978 } 55979 } 55980 r.ReadMapElemKey() 55981 yys3 := z.StringView(r.DecodeStringAsBytes()) 55982 r.ReadMapElemValue() 55983 switch yys3 { 55984 case "DeploymentID": 55985 if r.TryDecodeAsNil() { 55986 x.DeploymentPromoteRequest.DeploymentID = "" 55987 } else { 55988 x.DeploymentID = (string)(r.DecodeString()) 55989 } 55990 case "All": 55991 if r.TryDecodeAsNil() { 55992 x.DeploymentPromoteRequest.All = false 55993 } else { 55994 x.All = (bool)(r.DecodeBool()) 55995 } 55996 case "Groups": 55997 if r.TryDecodeAsNil() { 55998 x.DeploymentPromoteRequest.Groups = nil 55999 } else { 56000 if false { 56001 } else { 56002 z.F.DecSliceStringX(&x.Groups, d) 56003 } 56004 } 56005 case "Region": 56006 if r.TryDecodeAsNil() { 56007 x.DeploymentPromoteRequest.WriteRequest.Region = "" 56008 } else { 56009 x.Region = (string)(r.DecodeString()) 56010 } 56011 case "Namespace": 56012 if r.TryDecodeAsNil() { 56013 x.DeploymentPromoteRequest.WriteRequest.Namespace = "" 56014 } else { 56015 x.Namespace = (string)(r.DecodeString()) 56016 } 56017 case "AuthToken": 56018 if r.TryDecodeAsNil() { 56019 x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" 56020 } else { 56021 x.AuthToken = (string)(r.DecodeString()) 56022 } 56023 case "Forwarded": 56024 if r.TryDecodeAsNil() { 56025 x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false 56026 } else { 56027 x.Forwarded = (bool)(r.DecodeBool()) 56028 } 56029 case "Eval": 56030 if r.TryDecodeAsNil() { 56031 if true && x.Eval != nil { 56032 x.Eval = nil 56033 } 56034 } else { 56035 if x.Eval == nil { 56036 x.Eval = new(Evaluation) 56037 } 56038 56039 x.Eval.CodecDecodeSelf(d) 56040 } 56041 default: 56042 z.DecStructFieldNotFound(-1, yys3) 56043 } // end switch yys3 56044 } // end for yyj3 56045 r.ReadMapEnd() 56046 } 56047 56048 func (x *ApplyDeploymentPromoteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 56049 var h codecSelfer100 56050 z, r := codec1978.GenHelperDecoder(d) 56051 _, _, _ = h, z, r 56052 var yyj13 int 56053 var yyb13 bool 56054 var yyhl13 bool = l >= 0 56055 yyj13++ 56056 if yyhl13 { 56057 yyb13 = yyj13 > l 56058 } else { 56059 yyb13 = r.CheckBreak() 56060 } 56061 if yyb13 { 56062 r.ReadArrayEnd() 56063 return 56064 } 56065 r.ReadArrayElem() 56066 if r.TryDecodeAsNil() { 56067 x.DeploymentPromoteRequest.DeploymentID = "" 56068 } else { 56069 x.DeploymentID = (string)(r.DecodeString()) 56070 } 56071 yyj13++ 56072 if yyhl13 { 56073 yyb13 = yyj13 > l 56074 } else { 56075 yyb13 = r.CheckBreak() 56076 } 56077 if yyb13 { 56078 r.ReadArrayEnd() 56079 return 56080 } 56081 r.ReadArrayElem() 56082 if r.TryDecodeAsNil() { 56083 x.DeploymentPromoteRequest.All = false 56084 } else { 56085 x.All = (bool)(r.DecodeBool()) 56086 } 56087 yyj13++ 56088 if yyhl13 { 56089 yyb13 = yyj13 > l 56090 } else { 56091 yyb13 = r.CheckBreak() 56092 } 56093 if yyb13 { 56094 r.ReadArrayEnd() 56095 return 56096 } 56097 r.ReadArrayElem() 56098 if r.TryDecodeAsNil() { 56099 x.DeploymentPromoteRequest.Groups = nil 56100 } else { 56101 if false { 56102 } else { 56103 z.F.DecSliceStringX(&x.Groups, d) 56104 } 56105 } 56106 yyj13++ 56107 if yyhl13 { 56108 yyb13 = yyj13 > l 56109 } else { 56110 yyb13 = r.CheckBreak() 56111 } 56112 if yyb13 { 56113 r.ReadArrayEnd() 56114 return 56115 } 56116 r.ReadArrayElem() 56117 if r.TryDecodeAsNil() { 56118 x.DeploymentPromoteRequest.WriteRequest.Region = "" 56119 } else { 56120 x.Region = (string)(r.DecodeString()) 56121 } 56122 yyj13++ 56123 if yyhl13 { 56124 yyb13 = yyj13 > l 56125 } else { 56126 yyb13 = r.CheckBreak() 56127 } 56128 if yyb13 { 56129 r.ReadArrayEnd() 56130 return 56131 } 56132 r.ReadArrayElem() 56133 if r.TryDecodeAsNil() { 56134 x.DeploymentPromoteRequest.WriteRequest.Namespace = "" 56135 } else { 56136 x.Namespace = (string)(r.DecodeString()) 56137 } 56138 yyj13++ 56139 if yyhl13 { 56140 yyb13 = yyj13 > l 56141 } else { 56142 yyb13 = r.CheckBreak() 56143 } 56144 if yyb13 { 56145 r.ReadArrayEnd() 56146 return 56147 } 56148 r.ReadArrayElem() 56149 if r.TryDecodeAsNil() { 56150 x.DeploymentPromoteRequest.WriteRequest.AuthToken = "" 56151 } else { 56152 x.AuthToken = (string)(r.DecodeString()) 56153 } 56154 yyj13++ 56155 if yyhl13 { 56156 yyb13 = yyj13 > l 56157 } else { 56158 yyb13 = r.CheckBreak() 56159 } 56160 if yyb13 { 56161 r.ReadArrayEnd() 56162 return 56163 } 56164 r.ReadArrayElem() 56165 if r.TryDecodeAsNil() { 56166 x.DeploymentPromoteRequest.WriteRequest.InternalRpcInfo.Forwarded = false 56167 } else { 56168 x.Forwarded = (bool)(r.DecodeBool()) 56169 } 56170 yyj13++ 56171 if yyhl13 { 56172 yyb13 = yyj13 > l 56173 } else { 56174 yyb13 = r.CheckBreak() 56175 } 56176 if yyb13 { 56177 r.ReadArrayEnd() 56178 return 56179 } 56180 r.ReadArrayElem() 56181 if r.TryDecodeAsNil() { 56182 if true && x.Eval != nil { 56183 x.Eval = nil 56184 } 56185 } else { 56186 if x.Eval == nil { 56187 x.Eval = new(Evaluation) 56188 } 56189 56190 x.Eval.CodecDecodeSelf(d) 56191 } 56192 for { 56193 yyj13++ 56194 if yyhl13 { 56195 yyb13 = yyj13 > l 56196 } else { 56197 yyb13 = r.CheckBreak() 56198 } 56199 if yyb13 { 56200 break 56201 } 56202 r.ReadArrayElem() 56203 z.DecStructFieldNotFound(yyj13-1, "") 56204 } 56205 r.ReadArrayEnd() 56206 } 56207 56208 func (x *DeploymentPauseRequest) CodecEncodeSelf(e *codec1978.Encoder) { 56209 var h codecSelfer100 56210 z, r := codec1978.GenHelperEncoder(e) 56211 _, _, _ = h, z, r 56212 if x == nil { 56213 r.EncodeNil() 56214 } else { 56215 if false { 56216 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56217 z.EncExtension(x, yyxt1) 56218 } else { 56219 yysep2 := !z.EncBinary() 56220 yy2arr2 := z.EncBasicHandle().StructToArray 56221 _, _ = yysep2, yy2arr2 56222 const yyr2 bool = false // struct tag has 'toArray' 56223 if yyr2 || yy2arr2 { 56224 r.WriteArrayStart(6) 56225 } else { 56226 r.WriteMapStart(6) 56227 } 56228 if yyr2 || yy2arr2 { 56229 r.WriteArrayElem() 56230 if false { 56231 } else { 56232 if z.EncBasicHandle().StringToRaw { 56233 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 56234 } else { 56235 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 56236 } 56237 } 56238 } else { 56239 r.WriteMapElemKey() 56240 if z.IsJSONHandle() { 56241 z.WriteStr("\"DeploymentID\"") 56242 } else { 56243 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 56244 } 56245 r.WriteMapElemValue() 56246 if false { 56247 } else { 56248 if z.EncBasicHandle().StringToRaw { 56249 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 56250 } else { 56251 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 56252 } 56253 } 56254 } 56255 if yyr2 || yy2arr2 { 56256 r.WriteArrayElem() 56257 if false { 56258 } else { 56259 r.EncodeBool(bool(x.Pause)) 56260 } 56261 } else { 56262 r.WriteMapElemKey() 56263 if z.IsJSONHandle() { 56264 z.WriteStr("\"Pause\"") 56265 } else { 56266 r.EncodeStringEnc(codecSelferCcUTF8100, `Pause`) 56267 } 56268 r.WriteMapElemValue() 56269 if false { 56270 } else { 56271 r.EncodeBool(bool(x.Pause)) 56272 } 56273 } 56274 if yyr2 || yy2arr2 { 56275 r.WriteArrayElem() 56276 if false { 56277 } else { 56278 if z.EncBasicHandle().StringToRaw { 56279 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56280 } else { 56281 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56282 } 56283 } 56284 } else { 56285 r.WriteMapElemKey() 56286 if z.IsJSONHandle() { 56287 z.WriteStr("\"Region\"") 56288 } else { 56289 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 56290 } 56291 r.WriteMapElemValue() 56292 if false { 56293 } else { 56294 if z.EncBasicHandle().StringToRaw { 56295 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56296 } else { 56297 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56298 } 56299 } 56300 } 56301 if yyr2 || yy2arr2 { 56302 r.WriteArrayElem() 56303 if false { 56304 } else { 56305 if z.EncBasicHandle().StringToRaw { 56306 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56307 } else { 56308 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56309 } 56310 } 56311 } else { 56312 r.WriteMapElemKey() 56313 if z.IsJSONHandle() { 56314 z.WriteStr("\"Namespace\"") 56315 } else { 56316 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 56317 } 56318 r.WriteMapElemValue() 56319 if false { 56320 } else { 56321 if z.EncBasicHandle().StringToRaw { 56322 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56323 } else { 56324 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56325 } 56326 } 56327 } 56328 if yyr2 || yy2arr2 { 56329 r.WriteArrayElem() 56330 if false { 56331 } else { 56332 if z.EncBasicHandle().StringToRaw { 56333 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56334 } else { 56335 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56336 } 56337 } 56338 } else { 56339 r.WriteMapElemKey() 56340 if z.IsJSONHandle() { 56341 z.WriteStr("\"AuthToken\"") 56342 } else { 56343 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 56344 } 56345 r.WriteMapElemValue() 56346 if false { 56347 } else { 56348 if z.EncBasicHandle().StringToRaw { 56349 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56350 } else { 56351 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56352 } 56353 } 56354 } 56355 if yyr2 || yy2arr2 { 56356 r.WriteArrayElem() 56357 if false { 56358 } else { 56359 r.EncodeBool(bool(x.Forwarded)) 56360 } 56361 } else { 56362 r.WriteMapElemKey() 56363 if z.IsJSONHandle() { 56364 z.WriteStr("\"Forwarded\"") 56365 } else { 56366 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 56367 } 56368 r.WriteMapElemValue() 56369 if false { 56370 } else { 56371 r.EncodeBool(bool(x.Forwarded)) 56372 } 56373 } 56374 if yyr2 || yy2arr2 { 56375 r.WriteArrayEnd() 56376 } else { 56377 r.WriteMapEnd() 56378 } 56379 } 56380 } 56381 } 56382 56383 func (x *DeploymentPauseRequest) CodecDecodeSelf(d *codec1978.Decoder) { 56384 var h codecSelfer100 56385 z, r := codec1978.GenHelperDecoder(d) 56386 _, _, _ = h, z, r 56387 if false { 56388 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56389 z.DecExtension(x, yyxt1) 56390 } else { 56391 yyct2 := r.ContainerType() 56392 if yyct2 == codecSelferValueTypeMap100 { 56393 yyl2 := r.ReadMapStart() 56394 if yyl2 == 0 { 56395 r.ReadMapEnd() 56396 } else { 56397 x.codecDecodeSelfFromMap(yyl2, d) 56398 } 56399 } else if yyct2 == codecSelferValueTypeArray100 { 56400 yyl2 := r.ReadArrayStart() 56401 if yyl2 == 0 { 56402 r.ReadArrayEnd() 56403 } else { 56404 x.codecDecodeSelfFromArray(yyl2, d) 56405 } 56406 } else { 56407 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 56408 } 56409 } 56410 } 56411 56412 func (x *DeploymentPauseRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 56413 var h codecSelfer100 56414 z, r := codec1978.GenHelperDecoder(d) 56415 _, _, _ = h, z, r 56416 var yyhl3 bool = l >= 0 56417 for yyj3 := 0; ; yyj3++ { 56418 if yyhl3 { 56419 if yyj3 >= l { 56420 break 56421 } 56422 } else { 56423 if r.CheckBreak() { 56424 break 56425 } 56426 } 56427 r.ReadMapElemKey() 56428 yys3 := z.StringView(r.DecodeStringAsBytes()) 56429 r.ReadMapElemValue() 56430 switch yys3 { 56431 case "DeploymentID": 56432 if r.TryDecodeAsNil() { 56433 x.DeploymentID = "" 56434 } else { 56435 x.DeploymentID = (string)(r.DecodeString()) 56436 } 56437 case "Pause": 56438 if r.TryDecodeAsNil() { 56439 x.Pause = false 56440 } else { 56441 x.Pause = (bool)(r.DecodeBool()) 56442 } 56443 case "Region": 56444 if r.TryDecodeAsNil() { 56445 x.WriteRequest.Region = "" 56446 } else { 56447 x.Region = (string)(r.DecodeString()) 56448 } 56449 case "Namespace": 56450 if r.TryDecodeAsNil() { 56451 x.WriteRequest.Namespace = "" 56452 } else { 56453 x.Namespace = (string)(r.DecodeString()) 56454 } 56455 case "AuthToken": 56456 if r.TryDecodeAsNil() { 56457 x.WriteRequest.AuthToken = "" 56458 } else { 56459 x.AuthToken = (string)(r.DecodeString()) 56460 } 56461 case "Forwarded": 56462 if r.TryDecodeAsNil() { 56463 x.WriteRequest.InternalRpcInfo.Forwarded = false 56464 } else { 56465 x.Forwarded = (bool)(r.DecodeBool()) 56466 } 56467 default: 56468 z.DecStructFieldNotFound(-1, yys3) 56469 } // end switch yys3 56470 } // end for yyj3 56471 r.ReadMapEnd() 56472 } 56473 56474 func (x *DeploymentPauseRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 56475 var h codecSelfer100 56476 z, r := codec1978.GenHelperDecoder(d) 56477 _, _, _ = h, z, r 56478 var yyj10 int 56479 var yyb10 bool 56480 var yyhl10 bool = l >= 0 56481 yyj10++ 56482 if yyhl10 { 56483 yyb10 = yyj10 > l 56484 } else { 56485 yyb10 = r.CheckBreak() 56486 } 56487 if yyb10 { 56488 r.ReadArrayEnd() 56489 return 56490 } 56491 r.ReadArrayElem() 56492 if r.TryDecodeAsNil() { 56493 x.DeploymentID = "" 56494 } else { 56495 x.DeploymentID = (string)(r.DecodeString()) 56496 } 56497 yyj10++ 56498 if yyhl10 { 56499 yyb10 = yyj10 > l 56500 } else { 56501 yyb10 = r.CheckBreak() 56502 } 56503 if yyb10 { 56504 r.ReadArrayEnd() 56505 return 56506 } 56507 r.ReadArrayElem() 56508 if r.TryDecodeAsNil() { 56509 x.Pause = false 56510 } else { 56511 x.Pause = (bool)(r.DecodeBool()) 56512 } 56513 yyj10++ 56514 if yyhl10 { 56515 yyb10 = yyj10 > l 56516 } else { 56517 yyb10 = r.CheckBreak() 56518 } 56519 if yyb10 { 56520 r.ReadArrayEnd() 56521 return 56522 } 56523 r.ReadArrayElem() 56524 if r.TryDecodeAsNil() { 56525 x.WriteRequest.Region = "" 56526 } else { 56527 x.Region = (string)(r.DecodeString()) 56528 } 56529 yyj10++ 56530 if yyhl10 { 56531 yyb10 = yyj10 > l 56532 } else { 56533 yyb10 = r.CheckBreak() 56534 } 56535 if yyb10 { 56536 r.ReadArrayEnd() 56537 return 56538 } 56539 r.ReadArrayElem() 56540 if r.TryDecodeAsNil() { 56541 x.WriteRequest.Namespace = "" 56542 } else { 56543 x.Namespace = (string)(r.DecodeString()) 56544 } 56545 yyj10++ 56546 if yyhl10 { 56547 yyb10 = yyj10 > l 56548 } else { 56549 yyb10 = r.CheckBreak() 56550 } 56551 if yyb10 { 56552 r.ReadArrayEnd() 56553 return 56554 } 56555 r.ReadArrayElem() 56556 if r.TryDecodeAsNil() { 56557 x.WriteRequest.AuthToken = "" 56558 } else { 56559 x.AuthToken = (string)(r.DecodeString()) 56560 } 56561 yyj10++ 56562 if yyhl10 { 56563 yyb10 = yyj10 > l 56564 } else { 56565 yyb10 = r.CheckBreak() 56566 } 56567 if yyb10 { 56568 r.ReadArrayEnd() 56569 return 56570 } 56571 r.ReadArrayElem() 56572 if r.TryDecodeAsNil() { 56573 x.WriteRequest.InternalRpcInfo.Forwarded = false 56574 } else { 56575 x.Forwarded = (bool)(r.DecodeBool()) 56576 } 56577 for { 56578 yyj10++ 56579 if yyhl10 { 56580 yyb10 = yyj10 > l 56581 } else { 56582 yyb10 = r.CheckBreak() 56583 } 56584 if yyb10 { 56585 break 56586 } 56587 r.ReadArrayElem() 56588 z.DecStructFieldNotFound(yyj10-1, "") 56589 } 56590 r.ReadArrayEnd() 56591 } 56592 56593 func (x *DeploymentSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 56594 var h codecSelfer100 56595 z, r := codec1978.GenHelperEncoder(e) 56596 _, _, _ = h, z, r 56597 if x == nil { 56598 r.EncodeNil() 56599 } else { 56600 if false { 56601 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56602 z.EncExtension(x, yyxt1) 56603 } else { 56604 yysep2 := !z.EncBinary() 56605 yy2arr2 := z.EncBasicHandle().StructToArray 56606 _, _ = yysep2, yy2arr2 56607 const yyr2 bool = false // struct tag has 'toArray' 56608 if yyr2 || yy2arr2 { 56609 r.WriteArrayStart(9) 56610 } else { 56611 r.WriteMapStart(9) 56612 } 56613 if yyr2 || yy2arr2 { 56614 r.WriteArrayElem() 56615 if false { 56616 } else { 56617 if z.EncBasicHandle().StringToRaw { 56618 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 56619 } else { 56620 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 56621 } 56622 } 56623 } else { 56624 r.WriteMapElemKey() 56625 if z.IsJSONHandle() { 56626 z.WriteStr("\"DeploymentID\"") 56627 } else { 56628 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 56629 } 56630 r.WriteMapElemValue() 56631 if false { 56632 } else { 56633 if z.EncBasicHandle().StringToRaw { 56634 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 56635 } else { 56636 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 56637 } 56638 } 56639 } 56640 if yyr2 || yy2arr2 { 56641 r.WriteArrayElem() 56642 if false { 56643 } else { 56644 if z.EncBasicHandle().StringToRaw { 56645 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56646 } else { 56647 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56648 } 56649 } 56650 } else { 56651 r.WriteMapElemKey() 56652 if z.IsJSONHandle() { 56653 z.WriteStr("\"Region\"") 56654 } else { 56655 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 56656 } 56657 r.WriteMapElemValue() 56658 if false { 56659 } else { 56660 if z.EncBasicHandle().StringToRaw { 56661 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 56662 } else { 56663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 56664 } 56665 } 56666 } 56667 if yyr2 || yy2arr2 { 56668 r.WriteArrayElem() 56669 if false { 56670 } else { 56671 if z.EncBasicHandle().StringToRaw { 56672 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56673 } else { 56674 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56675 } 56676 } 56677 } else { 56678 r.WriteMapElemKey() 56679 if z.IsJSONHandle() { 56680 z.WriteStr("\"Namespace\"") 56681 } else { 56682 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 56683 } 56684 r.WriteMapElemValue() 56685 if false { 56686 } else { 56687 if z.EncBasicHandle().StringToRaw { 56688 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 56689 } else { 56690 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 56691 } 56692 } 56693 } 56694 if yyr2 || yy2arr2 { 56695 r.WriteArrayElem() 56696 if false { 56697 } else { 56698 r.EncodeUint(uint64(x.MinQueryIndex)) 56699 } 56700 } else { 56701 r.WriteMapElemKey() 56702 if z.IsJSONHandle() { 56703 z.WriteStr("\"MinQueryIndex\"") 56704 } else { 56705 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 56706 } 56707 r.WriteMapElemValue() 56708 if false { 56709 } else { 56710 r.EncodeUint(uint64(x.MinQueryIndex)) 56711 } 56712 } 56713 if yyr2 || yy2arr2 { 56714 r.WriteArrayElem() 56715 if false { 56716 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 56717 z.EncExtension(x.MaxQueryTime, yyxt16) 56718 } else { 56719 r.EncodeInt(int64(x.MaxQueryTime)) 56720 } 56721 } else { 56722 r.WriteMapElemKey() 56723 if z.IsJSONHandle() { 56724 z.WriteStr("\"MaxQueryTime\"") 56725 } else { 56726 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 56727 } 56728 r.WriteMapElemValue() 56729 if false { 56730 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 56731 z.EncExtension(x.MaxQueryTime, yyxt17) 56732 } else { 56733 r.EncodeInt(int64(x.MaxQueryTime)) 56734 } 56735 } 56736 if yyr2 || yy2arr2 { 56737 r.WriteArrayElem() 56738 if false { 56739 } else { 56740 r.EncodeBool(bool(x.AllowStale)) 56741 } 56742 } else { 56743 r.WriteMapElemKey() 56744 if z.IsJSONHandle() { 56745 z.WriteStr("\"AllowStale\"") 56746 } else { 56747 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 56748 } 56749 r.WriteMapElemValue() 56750 if false { 56751 } else { 56752 r.EncodeBool(bool(x.AllowStale)) 56753 } 56754 } 56755 if yyr2 || yy2arr2 { 56756 r.WriteArrayElem() 56757 if false { 56758 } else { 56759 if z.EncBasicHandle().StringToRaw { 56760 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56761 } else { 56762 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56763 } 56764 } 56765 } else { 56766 r.WriteMapElemKey() 56767 if z.IsJSONHandle() { 56768 z.WriteStr("\"Prefix\"") 56769 } else { 56770 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 56771 } 56772 r.WriteMapElemValue() 56773 if false { 56774 } else { 56775 if z.EncBasicHandle().StringToRaw { 56776 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 56777 } else { 56778 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 56779 } 56780 } 56781 } 56782 if yyr2 || yy2arr2 { 56783 r.WriteArrayElem() 56784 if false { 56785 } else { 56786 if z.EncBasicHandle().StringToRaw { 56787 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56788 } else { 56789 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56790 } 56791 } 56792 } else { 56793 r.WriteMapElemKey() 56794 if z.IsJSONHandle() { 56795 z.WriteStr("\"AuthToken\"") 56796 } else { 56797 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 56798 } 56799 r.WriteMapElemValue() 56800 if false { 56801 } else { 56802 if z.EncBasicHandle().StringToRaw { 56803 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 56804 } else { 56805 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 56806 } 56807 } 56808 } 56809 if yyr2 || yy2arr2 { 56810 r.WriteArrayElem() 56811 if false { 56812 } else { 56813 r.EncodeBool(bool(x.Forwarded)) 56814 } 56815 } else { 56816 r.WriteMapElemKey() 56817 if z.IsJSONHandle() { 56818 z.WriteStr("\"Forwarded\"") 56819 } else { 56820 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 56821 } 56822 r.WriteMapElemValue() 56823 if false { 56824 } else { 56825 r.EncodeBool(bool(x.Forwarded)) 56826 } 56827 } 56828 if yyr2 || yy2arr2 { 56829 r.WriteArrayEnd() 56830 } else { 56831 r.WriteMapEnd() 56832 } 56833 } 56834 } 56835 } 56836 56837 func (x *DeploymentSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 56838 var h codecSelfer100 56839 z, r := codec1978.GenHelperDecoder(d) 56840 _, _, _ = h, z, r 56841 if false { 56842 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 56843 z.DecExtension(x, yyxt1) 56844 } else { 56845 yyct2 := r.ContainerType() 56846 if yyct2 == codecSelferValueTypeMap100 { 56847 yyl2 := r.ReadMapStart() 56848 if yyl2 == 0 { 56849 r.ReadMapEnd() 56850 } else { 56851 x.codecDecodeSelfFromMap(yyl2, d) 56852 } 56853 } else if yyct2 == codecSelferValueTypeArray100 { 56854 yyl2 := r.ReadArrayStart() 56855 if yyl2 == 0 { 56856 r.ReadArrayEnd() 56857 } else { 56858 x.codecDecodeSelfFromArray(yyl2, d) 56859 } 56860 } else { 56861 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 56862 } 56863 } 56864 } 56865 56866 func (x *DeploymentSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 56867 var h codecSelfer100 56868 z, r := codec1978.GenHelperDecoder(d) 56869 _, _, _ = h, z, r 56870 var yyhl3 bool = l >= 0 56871 for yyj3 := 0; ; yyj3++ { 56872 if yyhl3 { 56873 if yyj3 >= l { 56874 break 56875 } 56876 } else { 56877 if r.CheckBreak() { 56878 break 56879 } 56880 } 56881 r.ReadMapElemKey() 56882 yys3 := z.StringView(r.DecodeStringAsBytes()) 56883 r.ReadMapElemValue() 56884 switch yys3 { 56885 case "DeploymentID": 56886 if r.TryDecodeAsNil() { 56887 x.DeploymentID = "" 56888 } else { 56889 x.DeploymentID = (string)(r.DecodeString()) 56890 } 56891 case "Region": 56892 if r.TryDecodeAsNil() { 56893 x.QueryOptions.Region = "" 56894 } else { 56895 x.Region = (string)(r.DecodeString()) 56896 } 56897 case "Namespace": 56898 if r.TryDecodeAsNil() { 56899 x.QueryOptions.Namespace = "" 56900 } else { 56901 x.Namespace = (string)(r.DecodeString()) 56902 } 56903 case "MinQueryIndex": 56904 if r.TryDecodeAsNil() { 56905 x.QueryOptions.MinQueryIndex = 0 56906 } else { 56907 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 56908 } 56909 case "MaxQueryTime": 56910 if r.TryDecodeAsNil() { 56911 x.QueryOptions.MaxQueryTime = 0 56912 } else { 56913 if false { 56914 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 56915 z.DecExtension(x.MaxQueryTime, yyxt9) 56916 } else { 56917 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 56918 } 56919 } 56920 case "AllowStale": 56921 if r.TryDecodeAsNil() { 56922 x.QueryOptions.AllowStale = false 56923 } else { 56924 x.AllowStale = (bool)(r.DecodeBool()) 56925 } 56926 case "Prefix": 56927 if r.TryDecodeAsNil() { 56928 x.QueryOptions.Prefix = "" 56929 } else { 56930 x.Prefix = (string)(r.DecodeString()) 56931 } 56932 case "AuthToken": 56933 if r.TryDecodeAsNil() { 56934 x.QueryOptions.AuthToken = "" 56935 } else { 56936 x.AuthToken = (string)(r.DecodeString()) 56937 } 56938 case "Forwarded": 56939 if r.TryDecodeAsNil() { 56940 x.QueryOptions.InternalRpcInfo.Forwarded = false 56941 } else { 56942 x.Forwarded = (bool)(r.DecodeBool()) 56943 } 56944 default: 56945 z.DecStructFieldNotFound(-1, yys3) 56946 } // end switch yys3 56947 } // end for yyj3 56948 r.ReadMapEnd() 56949 } 56950 56951 func (x *DeploymentSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 56952 var h codecSelfer100 56953 z, r := codec1978.GenHelperDecoder(d) 56954 _, _, _ = h, z, r 56955 var yyj14 int 56956 var yyb14 bool 56957 var yyhl14 bool = l >= 0 56958 yyj14++ 56959 if yyhl14 { 56960 yyb14 = yyj14 > l 56961 } else { 56962 yyb14 = r.CheckBreak() 56963 } 56964 if yyb14 { 56965 r.ReadArrayEnd() 56966 return 56967 } 56968 r.ReadArrayElem() 56969 if r.TryDecodeAsNil() { 56970 x.DeploymentID = "" 56971 } else { 56972 x.DeploymentID = (string)(r.DecodeString()) 56973 } 56974 yyj14++ 56975 if yyhl14 { 56976 yyb14 = yyj14 > l 56977 } else { 56978 yyb14 = r.CheckBreak() 56979 } 56980 if yyb14 { 56981 r.ReadArrayEnd() 56982 return 56983 } 56984 r.ReadArrayElem() 56985 if r.TryDecodeAsNil() { 56986 x.QueryOptions.Region = "" 56987 } else { 56988 x.Region = (string)(r.DecodeString()) 56989 } 56990 yyj14++ 56991 if yyhl14 { 56992 yyb14 = yyj14 > l 56993 } else { 56994 yyb14 = r.CheckBreak() 56995 } 56996 if yyb14 { 56997 r.ReadArrayEnd() 56998 return 56999 } 57000 r.ReadArrayElem() 57001 if r.TryDecodeAsNil() { 57002 x.QueryOptions.Namespace = "" 57003 } else { 57004 x.Namespace = (string)(r.DecodeString()) 57005 } 57006 yyj14++ 57007 if yyhl14 { 57008 yyb14 = yyj14 > l 57009 } else { 57010 yyb14 = r.CheckBreak() 57011 } 57012 if yyb14 { 57013 r.ReadArrayEnd() 57014 return 57015 } 57016 r.ReadArrayElem() 57017 if r.TryDecodeAsNil() { 57018 x.QueryOptions.MinQueryIndex = 0 57019 } else { 57020 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 57021 } 57022 yyj14++ 57023 if yyhl14 { 57024 yyb14 = yyj14 > l 57025 } else { 57026 yyb14 = r.CheckBreak() 57027 } 57028 if yyb14 { 57029 r.ReadArrayEnd() 57030 return 57031 } 57032 r.ReadArrayElem() 57033 if r.TryDecodeAsNil() { 57034 x.QueryOptions.MaxQueryTime = 0 57035 } else { 57036 if false { 57037 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 57038 z.DecExtension(x.MaxQueryTime, yyxt20) 57039 } else { 57040 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 57041 } 57042 } 57043 yyj14++ 57044 if yyhl14 { 57045 yyb14 = yyj14 > l 57046 } else { 57047 yyb14 = r.CheckBreak() 57048 } 57049 if yyb14 { 57050 r.ReadArrayEnd() 57051 return 57052 } 57053 r.ReadArrayElem() 57054 if r.TryDecodeAsNil() { 57055 x.QueryOptions.AllowStale = false 57056 } else { 57057 x.AllowStale = (bool)(r.DecodeBool()) 57058 } 57059 yyj14++ 57060 if yyhl14 { 57061 yyb14 = yyj14 > l 57062 } else { 57063 yyb14 = r.CheckBreak() 57064 } 57065 if yyb14 { 57066 r.ReadArrayEnd() 57067 return 57068 } 57069 r.ReadArrayElem() 57070 if r.TryDecodeAsNil() { 57071 x.QueryOptions.Prefix = "" 57072 } else { 57073 x.Prefix = (string)(r.DecodeString()) 57074 } 57075 yyj14++ 57076 if yyhl14 { 57077 yyb14 = yyj14 > l 57078 } else { 57079 yyb14 = r.CheckBreak() 57080 } 57081 if yyb14 { 57082 r.ReadArrayEnd() 57083 return 57084 } 57085 r.ReadArrayElem() 57086 if r.TryDecodeAsNil() { 57087 x.QueryOptions.AuthToken = "" 57088 } else { 57089 x.AuthToken = (string)(r.DecodeString()) 57090 } 57091 yyj14++ 57092 if yyhl14 { 57093 yyb14 = yyj14 > l 57094 } else { 57095 yyb14 = r.CheckBreak() 57096 } 57097 if yyb14 { 57098 r.ReadArrayEnd() 57099 return 57100 } 57101 r.ReadArrayElem() 57102 if r.TryDecodeAsNil() { 57103 x.QueryOptions.InternalRpcInfo.Forwarded = false 57104 } else { 57105 x.Forwarded = (bool)(r.DecodeBool()) 57106 } 57107 for { 57108 yyj14++ 57109 if yyhl14 { 57110 yyb14 = yyj14 > l 57111 } else { 57112 yyb14 = r.CheckBreak() 57113 } 57114 if yyb14 { 57115 break 57116 } 57117 r.ReadArrayElem() 57118 z.DecStructFieldNotFound(yyj14-1, "") 57119 } 57120 r.ReadArrayEnd() 57121 } 57122 57123 func (x *DeploymentFailRequest) CodecEncodeSelf(e *codec1978.Encoder) { 57124 var h codecSelfer100 57125 z, r := codec1978.GenHelperEncoder(e) 57126 _, _, _ = h, z, r 57127 if x == nil { 57128 r.EncodeNil() 57129 } else { 57130 if false { 57131 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57132 z.EncExtension(x, yyxt1) 57133 } else { 57134 yysep2 := !z.EncBinary() 57135 yy2arr2 := z.EncBasicHandle().StructToArray 57136 _, _ = yysep2, yy2arr2 57137 const yyr2 bool = false // struct tag has 'toArray' 57138 if yyr2 || yy2arr2 { 57139 r.WriteArrayStart(5) 57140 } else { 57141 r.WriteMapStart(5) 57142 } 57143 if yyr2 || yy2arr2 { 57144 r.WriteArrayElem() 57145 if false { 57146 } else { 57147 if z.EncBasicHandle().StringToRaw { 57148 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 57149 } else { 57150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 57151 } 57152 } 57153 } else { 57154 r.WriteMapElemKey() 57155 if z.IsJSONHandle() { 57156 z.WriteStr("\"DeploymentID\"") 57157 } else { 57158 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 57159 } 57160 r.WriteMapElemValue() 57161 if false { 57162 } else { 57163 if z.EncBasicHandle().StringToRaw { 57164 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 57165 } else { 57166 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 57167 } 57168 } 57169 } 57170 if yyr2 || yy2arr2 { 57171 r.WriteArrayElem() 57172 if false { 57173 } else { 57174 if z.EncBasicHandle().StringToRaw { 57175 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 57176 } else { 57177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 57178 } 57179 } 57180 } else { 57181 r.WriteMapElemKey() 57182 if z.IsJSONHandle() { 57183 z.WriteStr("\"Region\"") 57184 } else { 57185 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 57186 } 57187 r.WriteMapElemValue() 57188 if false { 57189 } else { 57190 if z.EncBasicHandle().StringToRaw { 57191 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 57192 } else { 57193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 57194 } 57195 } 57196 } 57197 if yyr2 || yy2arr2 { 57198 r.WriteArrayElem() 57199 if false { 57200 } else { 57201 if z.EncBasicHandle().StringToRaw { 57202 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 57203 } else { 57204 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 57205 } 57206 } 57207 } else { 57208 r.WriteMapElemKey() 57209 if z.IsJSONHandle() { 57210 z.WriteStr("\"Namespace\"") 57211 } else { 57212 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 57213 } 57214 r.WriteMapElemValue() 57215 if false { 57216 } else { 57217 if z.EncBasicHandle().StringToRaw { 57218 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 57219 } else { 57220 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 57221 } 57222 } 57223 } 57224 if yyr2 || yy2arr2 { 57225 r.WriteArrayElem() 57226 if false { 57227 } else { 57228 if z.EncBasicHandle().StringToRaw { 57229 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 57230 } else { 57231 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 57232 } 57233 } 57234 } else { 57235 r.WriteMapElemKey() 57236 if z.IsJSONHandle() { 57237 z.WriteStr("\"AuthToken\"") 57238 } else { 57239 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 57240 } 57241 r.WriteMapElemValue() 57242 if false { 57243 } else { 57244 if z.EncBasicHandle().StringToRaw { 57245 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 57246 } else { 57247 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 57248 } 57249 } 57250 } 57251 if yyr2 || yy2arr2 { 57252 r.WriteArrayElem() 57253 if false { 57254 } else { 57255 r.EncodeBool(bool(x.Forwarded)) 57256 } 57257 } else { 57258 r.WriteMapElemKey() 57259 if z.IsJSONHandle() { 57260 z.WriteStr("\"Forwarded\"") 57261 } else { 57262 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 57263 } 57264 r.WriteMapElemValue() 57265 if false { 57266 } else { 57267 r.EncodeBool(bool(x.Forwarded)) 57268 } 57269 } 57270 if yyr2 || yy2arr2 { 57271 r.WriteArrayEnd() 57272 } else { 57273 r.WriteMapEnd() 57274 } 57275 } 57276 } 57277 } 57278 57279 func (x *DeploymentFailRequest) CodecDecodeSelf(d *codec1978.Decoder) { 57280 var h codecSelfer100 57281 z, r := codec1978.GenHelperDecoder(d) 57282 _, _, _ = h, z, r 57283 if false { 57284 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57285 z.DecExtension(x, yyxt1) 57286 } else { 57287 yyct2 := r.ContainerType() 57288 if yyct2 == codecSelferValueTypeMap100 { 57289 yyl2 := r.ReadMapStart() 57290 if yyl2 == 0 { 57291 r.ReadMapEnd() 57292 } else { 57293 x.codecDecodeSelfFromMap(yyl2, d) 57294 } 57295 } else if yyct2 == codecSelferValueTypeArray100 { 57296 yyl2 := r.ReadArrayStart() 57297 if yyl2 == 0 { 57298 r.ReadArrayEnd() 57299 } else { 57300 x.codecDecodeSelfFromArray(yyl2, d) 57301 } 57302 } else { 57303 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 57304 } 57305 } 57306 } 57307 57308 func (x *DeploymentFailRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 57309 var h codecSelfer100 57310 z, r := codec1978.GenHelperDecoder(d) 57311 _, _, _ = h, z, r 57312 var yyhl3 bool = l >= 0 57313 for yyj3 := 0; ; yyj3++ { 57314 if yyhl3 { 57315 if yyj3 >= l { 57316 break 57317 } 57318 } else { 57319 if r.CheckBreak() { 57320 break 57321 } 57322 } 57323 r.ReadMapElemKey() 57324 yys3 := z.StringView(r.DecodeStringAsBytes()) 57325 r.ReadMapElemValue() 57326 switch yys3 { 57327 case "DeploymentID": 57328 if r.TryDecodeAsNil() { 57329 x.DeploymentID = "" 57330 } else { 57331 x.DeploymentID = (string)(r.DecodeString()) 57332 } 57333 case "Region": 57334 if r.TryDecodeAsNil() { 57335 x.WriteRequest.Region = "" 57336 } else { 57337 x.Region = (string)(r.DecodeString()) 57338 } 57339 case "Namespace": 57340 if r.TryDecodeAsNil() { 57341 x.WriteRequest.Namespace = "" 57342 } else { 57343 x.Namespace = (string)(r.DecodeString()) 57344 } 57345 case "AuthToken": 57346 if r.TryDecodeAsNil() { 57347 x.WriteRequest.AuthToken = "" 57348 } else { 57349 x.AuthToken = (string)(r.DecodeString()) 57350 } 57351 case "Forwarded": 57352 if r.TryDecodeAsNil() { 57353 x.WriteRequest.InternalRpcInfo.Forwarded = false 57354 } else { 57355 x.Forwarded = (bool)(r.DecodeBool()) 57356 } 57357 default: 57358 z.DecStructFieldNotFound(-1, yys3) 57359 } // end switch yys3 57360 } // end for yyj3 57361 r.ReadMapEnd() 57362 } 57363 57364 func (x *DeploymentFailRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57365 var h codecSelfer100 57366 z, r := codec1978.GenHelperDecoder(d) 57367 _, _, _ = h, z, r 57368 var yyj9 int 57369 var yyb9 bool 57370 var yyhl9 bool = l >= 0 57371 yyj9++ 57372 if yyhl9 { 57373 yyb9 = yyj9 > l 57374 } else { 57375 yyb9 = r.CheckBreak() 57376 } 57377 if yyb9 { 57378 r.ReadArrayEnd() 57379 return 57380 } 57381 r.ReadArrayElem() 57382 if r.TryDecodeAsNil() { 57383 x.DeploymentID = "" 57384 } else { 57385 x.DeploymentID = (string)(r.DecodeString()) 57386 } 57387 yyj9++ 57388 if yyhl9 { 57389 yyb9 = yyj9 > l 57390 } else { 57391 yyb9 = r.CheckBreak() 57392 } 57393 if yyb9 { 57394 r.ReadArrayEnd() 57395 return 57396 } 57397 r.ReadArrayElem() 57398 if r.TryDecodeAsNil() { 57399 x.WriteRequest.Region = "" 57400 } else { 57401 x.Region = (string)(r.DecodeString()) 57402 } 57403 yyj9++ 57404 if yyhl9 { 57405 yyb9 = yyj9 > l 57406 } else { 57407 yyb9 = r.CheckBreak() 57408 } 57409 if yyb9 { 57410 r.ReadArrayEnd() 57411 return 57412 } 57413 r.ReadArrayElem() 57414 if r.TryDecodeAsNil() { 57415 x.WriteRequest.Namespace = "" 57416 } else { 57417 x.Namespace = (string)(r.DecodeString()) 57418 } 57419 yyj9++ 57420 if yyhl9 { 57421 yyb9 = yyj9 > l 57422 } else { 57423 yyb9 = r.CheckBreak() 57424 } 57425 if yyb9 { 57426 r.ReadArrayEnd() 57427 return 57428 } 57429 r.ReadArrayElem() 57430 if r.TryDecodeAsNil() { 57431 x.WriteRequest.AuthToken = "" 57432 } else { 57433 x.AuthToken = (string)(r.DecodeString()) 57434 } 57435 yyj9++ 57436 if yyhl9 { 57437 yyb9 = yyj9 > l 57438 } else { 57439 yyb9 = r.CheckBreak() 57440 } 57441 if yyb9 { 57442 r.ReadArrayEnd() 57443 return 57444 } 57445 r.ReadArrayElem() 57446 if r.TryDecodeAsNil() { 57447 x.WriteRequest.InternalRpcInfo.Forwarded = false 57448 } else { 57449 x.Forwarded = (bool)(r.DecodeBool()) 57450 } 57451 for { 57452 yyj9++ 57453 if yyhl9 { 57454 yyb9 = yyj9 > l 57455 } else { 57456 yyb9 = r.CheckBreak() 57457 } 57458 if yyb9 { 57459 break 57460 } 57461 r.ReadArrayElem() 57462 z.DecStructFieldNotFound(yyj9-1, "") 57463 } 57464 r.ReadArrayEnd() 57465 } 57466 57467 func (x *ScalingPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 57468 var h codecSelfer100 57469 z, r := codec1978.GenHelperEncoder(e) 57470 _, _, _ = h, z, r 57471 if x == nil { 57472 r.EncodeNil() 57473 } else { 57474 if false { 57475 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57476 z.EncExtension(x, yyxt1) 57477 } else { 57478 yysep2 := !z.EncBinary() 57479 yy2arr2 := z.EncBasicHandle().StructToArray 57480 _, _ = yysep2, yy2arr2 57481 const yyr2 bool = false // struct tag has 'toArray' 57482 if yyr2 || yy2arr2 { 57483 r.WriteArrayStart(9) 57484 } else { 57485 r.WriteMapStart(9) 57486 } 57487 if yyr2 || yy2arr2 { 57488 r.WriteArrayElem() 57489 if false { 57490 } else { 57491 if z.EncBasicHandle().StringToRaw { 57492 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 57493 } else { 57494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 57495 } 57496 } 57497 } else { 57498 r.WriteMapElemKey() 57499 if z.IsJSONHandle() { 57500 z.WriteStr("\"ID\"") 57501 } else { 57502 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 57503 } 57504 r.WriteMapElemValue() 57505 if false { 57506 } else { 57507 if z.EncBasicHandle().StringToRaw { 57508 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 57509 } else { 57510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 57511 } 57512 } 57513 } 57514 if yyr2 || yy2arr2 { 57515 r.WriteArrayElem() 57516 if false { 57517 } else { 57518 if z.EncBasicHandle().StringToRaw { 57519 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 57520 } else { 57521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 57522 } 57523 } 57524 } else { 57525 r.WriteMapElemKey() 57526 if z.IsJSONHandle() { 57527 z.WriteStr("\"Region\"") 57528 } else { 57529 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 57530 } 57531 r.WriteMapElemValue() 57532 if false { 57533 } else { 57534 if z.EncBasicHandle().StringToRaw { 57535 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 57536 } else { 57537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 57538 } 57539 } 57540 } 57541 if yyr2 || yy2arr2 { 57542 r.WriteArrayElem() 57543 if false { 57544 } else { 57545 if z.EncBasicHandle().StringToRaw { 57546 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 57547 } else { 57548 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 57549 } 57550 } 57551 } else { 57552 r.WriteMapElemKey() 57553 if z.IsJSONHandle() { 57554 z.WriteStr("\"Namespace\"") 57555 } else { 57556 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 57557 } 57558 r.WriteMapElemValue() 57559 if false { 57560 } else { 57561 if z.EncBasicHandle().StringToRaw { 57562 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 57563 } else { 57564 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 57565 } 57566 } 57567 } 57568 if yyr2 || yy2arr2 { 57569 r.WriteArrayElem() 57570 if false { 57571 } else { 57572 r.EncodeUint(uint64(x.MinQueryIndex)) 57573 } 57574 } else { 57575 r.WriteMapElemKey() 57576 if z.IsJSONHandle() { 57577 z.WriteStr("\"MinQueryIndex\"") 57578 } else { 57579 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 57580 } 57581 r.WriteMapElemValue() 57582 if false { 57583 } else { 57584 r.EncodeUint(uint64(x.MinQueryIndex)) 57585 } 57586 } 57587 if yyr2 || yy2arr2 { 57588 r.WriteArrayElem() 57589 if false { 57590 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 57591 z.EncExtension(x.MaxQueryTime, yyxt16) 57592 } else { 57593 r.EncodeInt(int64(x.MaxQueryTime)) 57594 } 57595 } else { 57596 r.WriteMapElemKey() 57597 if z.IsJSONHandle() { 57598 z.WriteStr("\"MaxQueryTime\"") 57599 } else { 57600 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 57601 } 57602 r.WriteMapElemValue() 57603 if false { 57604 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 57605 z.EncExtension(x.MaxQueryTime, yyxt17) 57606 } else { 57607 r.EncodeInt(int64(x.MaxQueryTime)) 57608 } 57609 } 57610 if yyr2 || yy2arr2 { 57611 r.WriteArrayElem() 57612 if false { 57613 } else { 57614 r.EncodeBool(bool(x.AllowStale)) 57615 } 57616 } else { 57617 r.WriteMapElemKey() 57618 if z.IsJSONHandle() { 57619 z.WriteStr("\"AllowStale\"") 57620 } else { 57621 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 57622 } 57623 r.WriteMapElemValue() 57624 if false { 57625 } else { 57626 r.EncodeBool(bool(x.AllowStale)) 57627 } 57628 } 57629 if yyr2 || yy2arr2 { 57630 r.WriteArrayElem() 57631 if false { 57632 } else { 57633 if z.EncBasicHandle().StringToRaw { 57634 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 57635 } else { 57636 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 57637 } 57638 } 57639 } else { 57640 r.WriteMapElemKey() 57641 if z.IsJSONHandle() { 57642 z.WriteStr("\"Prefix\"") 57643 } else { 57644 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 57645 } 57646 r.WriteMapElemValue() 57647 if false { 57648 } else { 57649 if z.EncBasicHandle().StringToRaw { 57650 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 57651 } else { 57652 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 57653 } 57654 } 57655 } 57656 if yyr2 || yy2arr2 { 57657 r.WriteArrayElem() 57658 if false { 57659 } else { 57660 if z.EncBasicHandle().StringToRaw { 57661 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 57662 } else { 57663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 57664 } 57665 } 57666 } else { 57667 r.WriteMapElemKey() 57668 if z.IsJSONHandle() { 57669 z.WriteStr("\"AuthToken\"") 57670 } else { 57671 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 57672 } 57673 r.WriteMapElemValue() 57674 if false { 57675 } else { 57676 if z.EncBasicHandle().StringToRaw { 57677 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 57678 } else { 57679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 57680 } 57681 } 57682 } 57683 if yyr2 || yy2arr2 { 57684 r.WriteArrayElem() 57685 if false { 57686 } else { 57687 r.EncodeBool(bool(x.Forwarded)) 57688 } 57689 } else { 57690 r.WriteMapElemKey() 57691 if z.IsJSONHandle() { 57692 z.WriteStr("\"Forwarded\"") 57693 } else { 57694 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 57695 } 57696 r.WriteMapElemValue() 57697 if false { 57698 } else { 57699 r.EncodeBool(bool(x.Forwarded)) 57700 } 57701 } 57702 if yyr2 || yy2arr2 { 57703 r.WriteArrayEnd() 57704 } else { 57705 r.WriteMapEnd() 57706 } 57707 } 57708 } 57709 } 57710 57711 func (x *ScalingPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 57712 var h codecSelfer100 57713 z, r := codec1978.GenHelperDecoder(d) 57714 _, _, _ = h, z, r 57715 if false { 57716 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 57717 z.DecExtension(x, yyxt1) 57718 } else { 57719 yyct2 := r.ContainerType() 57720 if yyct2 == codecSelferValueTypeMap100 { 57721 yyl2 := r.ReadMapStart() 57722 if yyl2 == 0 { 57723 r.ReadMapEnd() 57724 } else { 57725 x.codecDecodeSelfFromMap(yyl2, d) 57726 } 57727 } else if yyct2 == codecSelferValueTypeArray100 { 57728 yyl2 := r.ReadArrayStart() 57729 if yyl2 == 0 { 57730 r.ReadArrayEnd() 57731 } else { 57732 x.codecDecodeSelfFromArray(yyl2, d) 57733 } 57734 } else { 57735 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 57736 } 57737 } 57738 } 57739 57740 func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 57741 var h codecSelfer100 57742 z, r := codec1978.GenHelperDecoder(d) 57743 _, _, _ = h, z, r 57744 var yyhl3 bool = l >= 0 57745 for yyj3 := 0; ; yyj3++ { 57746 if yyhl3 { 57747 if yyj3 >= l { 57748 break 57749 } 57750 } else { 57751 if r.CheckBreak() { 57752 break 57753 } 57754 } 57755 r.ReadMapElemKey() 57756 yys3 := z.StringView(r.DecodeStringAsBytes()) 57757 r.ReadMapElemValue() 57758 switch yys3 { 57759 case "ID": 57760 if r.TryDecodeAsNil() { 57761 x.ID = "" 57762 } else { 57763 x.ID = (string)(r.DecodeString()) 57764 } 57765 case "Region": 57766 if r.TryDecodeAsNil() { 57767 x.QueryOptions.Region = "" 57768 } else { 57769 x.Region = (string)(r.DecodeString()) 57770 } 57771 case "Namespace": 57772 if r.TryDecodeAsNil() { 57773 x.QueryOptions.Namespace = "" 57774 } else { 57775 x.Namespace = (string)(r.DecodeString()) 57776 } 57777 case "MinQueryIndex": 57778 if r.TryDecodeAsNil() { 57779 x.QueryOptions.MinQueryIndex = 0 57780 } else { 57781 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 57782 } 57783 case "MaxQueryTime": 57784 if r.TryDecodeAsNil() { 57785 x.QueryOptions.MaxQueryTime = 0 57786 } else { 57787 if false { 57788 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 57789 z.DecExtension(x.MaxQueryTime, yyxt9) 57790 } else { 57791 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 57792 } 57793 } 57794 case "AllowStale": 57795 if r.TryDecodeAsNil() { 57796 x.QueryOptions.AllowStale = false 57797 } else { 57798 x.AllowStale = (bool)(r.DecodeBool()) 57799 } 57800 case "Prefix": 57801 if r.TryDecodeAsNil() { 57802 x.QueryOptions.Prefix = "" 57803 } else { 57804 x.Prefix = (string)(r.DecodeString()) 57805 } 57806 case "AuthToken": 57807 if r.TryDecodeAsNil() { 57808 x.QueryOptions.AuthToken = "" 57809 } else { 57810 x.AuthToken = (string)(r.DecodeString()) 57811 } 57812 case "Forwarded": 57813 if r.TryDecodeAsNil() { 57814 x.QueryOptions.InternalRpcInfo.Forwarded = false 57815 } else { 57816 x.Forwarded = (bool)(r.DecodeBool()) 57817 } 57818 default: 57819 z.DecStructFieldNotFound(-1, yys3) 57820 } // end switch yys3 57821 } // end for yyj3 57822 r.ReadMapEnd() 57823 } 57824 57825 func (x *ScalingPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 57826 var h codecSelfer100 57827 z, r := codec1978.GenHelperDecoder(d) 57828 _, _, _ = h, z, r 57829 var yyj14 int 57830 var yyb14 bool 57831 var yyhl14 bool = l >= 0 57832 yyj14++ 57833 if yyhl14 { 57834 yyb14 = yyj14 > l 57835 } else { 57836 yyb14 = r.CheckBreak() 57837 } 57838 if yyb14 { 57839 r.ReadArrayEnd() 57840 return 57841 } 57842 r.ReadArrayElem() 57843 if r.TryDecodeAsNil() { 57844 x.ID = "" 57845 } else { 57846 x.ID = (string)(r.DecodeString()) 57847 } 57848 yyj14++ 57849 if yyhl14 { 57850 yyb14 = yyj14 > l 57851 } else { 57852 yyb14 = r.CheckBreak() 57853 } 57854 if yyb14 { 57855 r.ReadArrayEnd() 57856 return 57857 } 57858 r.ReadArrayElem() 57859 if r.TryDecodeAsNil() { 57860 x.QueryOptions.Region = "" 57861 } else { 57862 x.Region = (string)(r.DecodeString()) 57863 } 57864 yyj14++ 57865 if yyhl14 { 57866 yyb14 = yyj14 > l 57867 } else { 57868 yyb14 = r.CheckBreak() 57869 } 57870 if yyb14 { 57871 r.ReadArrayEnd() 57872 return 57873 } 57874 r.ReadArrayElem() 57875 if r.TryDecodeAsNil() { 57876 x.QueryOptions.Namespace = "" 57877 } else { 57878 x.Namespace = (string)(r.DecodeString()) 57879 } 57880 yyj14++ 57881 if yyhl14 { 57882 yyb14 = yyj14 > l 57883 } else { 57884 yyb14 = r.CheckBreak() 57885 } 57886 if yyb14 { 57887 r.ReadArrayEnd() 57888 return 57889 } 57890 r.ReadArrayElem() 57891 if r.TryDecodeAsNil() { 57892 x.QueryOptions.MinQueryIndex = 0 57893 } else { 57894 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 57895 } 57896 yyj14++ 57897 if yyhl14 { 57898 yyb14 = yyj14 > l 57899 } else { 57900 yyb14 = r.CheckBreak() 57901 } 57902 if yyb14 { 57903 r.ReadArrayEnd() 57904 return 57905 } 57906 r.ReadArrayElem() 57907 if r.TryDecodeAsNil() { 57908 x.QueryOptions.MaxQueryTime = 0 57909 } else { 57910 if false { 57911 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 57912 z.DecExtension(x.MaxQueryTime, yyxt20) 57913 } else { 57914 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 57915 } 57916 } 57917 yyj14++ 57918 if yyhl14 { 57919 yyb14 = yyj14 > l 57920 } else { 57921 yyb14 = r.CheckBreak() 57922 } 57923 if yyb14 { 57924 r.ReadArrayEnd() 57925 return 57926 } 57927 r.ReadArrayElem() 57928 if r.TryDecodeAsNil() { 57929 x.QueryOptions.AllowStale = false 57930 } else { 57931 x.AllowStale = (bool)(r.DecodeBool()) 57932 } 57933 yyj14++ 57934 if yyhl14 { 57935 yyb14 = yyj14 > l 57936 } else { 57937 yyb14 = r.CheckBreak() 57938 } 57939 if yyb14 { 57940 r.ReadArrayEnd() 57941 return 57942 } 57943 r.ReadArrayElem() 57944 if r.TryDecodeAsNil() { 57945 x.QueryOptions.Prefix = "" 57946 } else { 57947 x.Prefix = (string)(r.DecodeString()) 57948 } 57949 yyj14++ 57950 if yyhl14 { 57951 yyb14 = yyj14 > l 57952 } else { 57953 yyb14 = r.CheckBreak() 57954 } 57955 if yyb14 { 57956 r.ReadArrayEnd() 57957 return 57958 } 57959 r.ReadArrayElem() 57960 if r.TryDecodeAsNil() { 57961 x.QueryOptions.AuthToken = "" 57962 } else { 57963 x.AuthToken = (string)(r.DecodeString()) 57964 } 57965 yyj14++ 57966 if yyhl14 { 57967 yyb14 = yyj14 > l 57968 } else { 57969 yyb14 = r.CheckBreak() 57970 } 57971 if yyb14 { 57972 r.ReadArrayEnd() 57973 return 57974 } 57975 r.ReadArrayElem() 57976 if r.TryDecodeAsNil() { 57977 x.QueryOptions.InternalRpcInfo.Forwarded = false 57978 } else { 57979 x.Forwarded = (bool)(r.DecodeBool()) 57980 } 57981 for { 57982 yyj14++ 57983 if yyhl14 { 57984 yyb14 = yyj14 > l 57985 } else { 57986 yyb14 = r.CheckBreak() 57987 } 57988 if yyb14 { 57989 break 57990 } 57991 r.ReadArrayElem() 57992 z.DecStructFieldNotFound(yyj14-1, "") 57993 } 57994 r.ReadArrayEnd() 57995 } 57996 57997 func (x *SingleScalingPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { 57998 var h codecSelfer100 57999 z, r := codec1978.GenHelperEncoder(e) 58000 _, _, _ = h, z, r 58001 if x == nil { 58002 r.EncodeNil() 58003 } else { 58004 if false { 58005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58006 z.EncExtension(x, yyxt1) 58007 } else { 58008 yysep2 := !z.EncBinary() 58009 yy2arr2 := z.EncBasicHandle().StructToArray 58010 _, _ = yysep2, yy2arr2 58011 const yyr2 bool = false // struct tag has 'toArray' 58012 if yyr2 || yy2arr2 { 58013 r.WriteArrayStart(4) 58014 } else { 58015 r.WriteMapStart(4) 58016 } 58017 var yyn3 bool 58018 if x.Policy == nil { 58019 yyn3 = true 58020 goto LABEL3 58021 } 58022 LABEL3: 58023 if yyr2 || yy2arr2 { 58024 if yyn3 { 58025 r.WriteArrayElem() 58026 r.EncodeNil() 58027 } else { 58028 r.WriteArrayElem() 58029 if x.Policy == nil { 58030 r.EncodeNil() 58031 } else { 58032 x.Policy.CodecEncodeSelf(e) 58033 } 58034 } 58035 } else { 58036 r.WriteMapElemKey() 58037 if z.IsJSONHandle() { 58038 z.WriteStr("\"Policy\"") 58039 } else { 58040 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 58041 } 58042 r.WriteMapElemValue() 58043 if yyn3 { 58044 r.EncodeNil() 58045 } else { 58046 if x.Policy == nil { 58047 r.EncodeNil() 58048 } else { 58049 x.Policy.CodecEncodeSelf(e) 58050 } 58051 } 58052 } 58053 if yyr2 || yy2arr2 { 58054 r.WriteArrayElem() 58055 if false { 58056 } else { 58057 r.EncodeUint(uint64(x.Index)) 58058 } 58059 } else { 58060 r.WriteMapElemKey() 58061 if z.IsJSONHandle() { 58062 z.WriteStr("\"Index\"") 58063 } else { 58064 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 58065 } 58066 r.WriteMapElemValue() 58067 if false { 58068 } else { 58069 r.EncodeUint(uint64(x.Index)) 58070 } 58071 } 58072 if yyr2 || yy2arr2 { 58073 r.WriteArrayElem() 58074 if false { 58075 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 58076 z.EncExtension(x.LastContact, yyxt10) 58077 } else { 58078 r.EncodeInt(int64(x.LastContact)) 58079 } 58080 } else { 58081 r.WriteMapElemKey() 58082 if z.IsJSONHandle() { 58083 z.WriteStr("\"LastContact\"") 58084 } else { 58085 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 58086 } 58087 r.WriteMapElemValue() 58088 if false { 58089 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 58090 z.EncExtension(x.LastContact, yyxt11) 58091 } else { 58092 r.EncodeInt(int64(x.LastContact)) 58093 } 58094 } 58095 if yyr2 || yy2arr2 { 58096 r.WriteArrayElem() 58097 if false { 58098 } else { 58099 r.EncodeBool(bool(x.KnownLeader)) 58100 } 58101 } else { 58102 r.WriteMapElemKey() 58103 if z.IsJSONHandle() { 58104 z.WriteStr("\"KnownLeader\"") 58105 } else { 58106 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 58107 } 58108 r.WriteMapElemValue() 58109 if false { 58110 } else { 58111 r.EncodeBool(bool(x.KnownLeader)) 58112 } 58113 } 58114 if yyr2 || yy2arr2 { 58115 r.WriteArrayEnd() 58116 } else { 58117 r.WriteMapEnd() 58118 } 58119 } 58120 } 58121 } 58122 58123 func (x *SingleScalingPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { 58124 var h codecSelfer100 58125 z, r := codec1978.GenHelperDecoder(d) 58126 _, _, _ = h, z, r 58127 if false { 58128 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58129 z.DecExtension(x, yyxt1) 58130 } else { 58131 yyct2 := r.ContainerType() 58132 if yyct2 == codecSelferValueTypeMap100 { 58133 yyl2 := r.ReadMapStart() 58134 if yyl2 == 0 { 58135 r.ReadMapEnd() 58136 } else { 58137 x.codecDecodeSelfFromMap(yyl2, d) 58138 } 58139 } else if yyct2 == codecSelferValueTypeArray100 { 58140 yyl2 := r.ReadArrayStart() 58141 if yyl2 == 0 { 58142 r.ReadArrayEnd() 58143 } else { 58144 x.codecDecodeSelfFromArray(yyl2, d) 58145 } 58146 } else { 58147 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58148 } 58149 } 58150 } 58151 58152 func (x *SingleScalingPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58153 var h codecSelfer100 58154 z, r := codec1978.GenHelperDecoder(d) 58155 _, _, _ = h, z, r 58156 var yyhl3 bool = l >= 0 58157 for yyj3 := 0; ; yyj3++ { 58158 if yyhl3 { 58159 if yyj3 >= l { 58160 break 58161 } 58162 } else { 58163 if r.CheckBreak() { 58164 break 58165 } 58166 } 58167 r.ReadMapElemKey() 58168 yys3 := z.StringView(r.DecodeStringAsBytes()) 58169 r.ReadMapElemValue() 58170 switch yys3 { 58171 case "Policy": 58172 if r.TryDecodeAsNil() { 58173 if true && x.Policy != nil { 58174 x.Policy = nil 58175 } 58176 } else { 58177 if x.Policy == nil { 58178 x.Policy = new(ScalingPolicy) 58179 } 58180 58181 x.Policy.CodecDecodeSelf(d) 58182 } 58183 case "Index": 58184 if r.TryDecodeAsNil() { 58185 x.QueryMeta.Index = 0 58186 } else { 58187 x.Index = (uint64)(r.DecodeUint64()) 58188 } 58189 case "LastContact": 58190 if r.TryDecodeAsNil() { 58191 x.QueryMeta.LastContact = 0 58192 } else { 58193 if false { 58194 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 58195 z.DecExtension(x.LastContact, yyxt7) 58196 } else { 58197 x.LastContact = (time.Duration)(r.DecodeInt64()) 58198 } 58199 } 58200 case "KnownLeader": 58201 if r.TryDecodeAsNil() { 58202 x.QueryMeta.KnownLeader = false 58203 } else { 58204 x.KnownLeader = (bool)(r.DecodeBool()) 58205 } 58206 default: 58207 z.DecStructFieldNotFound(-1, yys3) 58208 } // end switch yys3 58209 } // end for yyj3 58210 r.ReadMapEnd() 58211 } 58212 58213 func (x *SingleScalingPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 58214 var h codecSelfer100 58215 z, r := codec1978.GenHelperDecoder(d) 58216 _, _, _ = h, z, r 58217 var yyj9 int 58218 var yyb9 bool 58219 var yyhl9 bool = l >= 0 58220 yyj9++ 58221 if yyhl9 { 58222 yyb9 = yyj9 > l 58223 } else { 58224 yyb9 = r.CheckBreak() 58225 } 58226 if yyb9 { 58227 r.ReadArrayEnd() 58228 return 58229 } 58230 r.ReadArrayElem() 58231 if r.TryDecodeAsNil() { 58232 if true && x.Policy != nil { 58233 x.Policy = nil 58234 } 58235 } else { 58236 if x.Policy == nil { 58237 x.Policy = new(ScalingPolicy) 58238 } 58239 58240 x.Policy.CodecDecodeSelf(d) 58241 } 58242 yyj9++ 58243 if yyhl9 { 58244 yyb9 = yyj9 > l 58245 } else { 58246 yyb9 = r.CheckBreak() 58247 } 58248 if yyb9 { 58249 r.ReadArrayEnd() 58250 return 58251 } 58252 r.ReadArrayElem() 58253 if r.TryDecodeAsNil() { 58254 x.QueryMeta.Index = 0 58255 } else { 58256 x.Index = (uint64)(r.DecodeUint64()) 58257 } 58258 yyj9++ 58259 if yyhl9 { 58260 yyb9 = yyj9 > l 58261 } else { 58262 yyb9 = r.CheckBreak() 58263 } 58264 if yyb9 { 58265 r.ReadArrayEnd() 58266 return 58267 } 58268 r.ReadArrayElem() 58269 if r.TryDecodeAsNil() { 58270 x.QueryMeta.LastContact = 0 58271 } else { 58272 if false { 58273 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 58274 z.DecExtension(x.LastContact, yyxt13) 58275 } else { 58276 x.LastContact = (time.Duration)(r.DecodeInt64()) 58277 } 58278 } 58279 yyj9++ 58280 if yyhl9 { 58281 yyb9 = yyj9 > l 58282 } else { 58283 yyb9 = r.CheckBreak() 58284 } 58285 if yyb9 { 58286 r.ReadArrayEnd() 58287 return 58288 } 58289 r.ReadArrayElem() 58290 if r.TryDecodeAsNil() { 58291 x.QueryMeta.KnownLeader = false 58292 } else { 58293 x.KnownLeader = (bool)(r.DecodeBool()) 58294 } 58295 for { 58296 yyj9++ 58297 if yyhl9 { 58298 yyb9 = yyj9 > l 58299 } else { 58300 yyb9 = r.CheckBreak() 58301 } 58302 if yyb9 { 58303 break 58304 } 58305 r.ReadArrayElem() 58306 z.DecStructFieldNotFound(yyj9-1, "") 58307 } 58308 r.ReadArrayEnd() 58309 } 58310 58311 func (x *ScalingPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 58312 var h codecSelfer100 58313 z, r := codec1978.GenHelperEncoder(e) 58314 _, _, _ = h, z, r 58315 if x == nil { 58316 r.EncodeNil() 58317 } else { 58318 if false { 58319 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58320 z.EncExtension(x, yyxt1) 58321 } else { 58322 yysep2 := !z.EncBinary() 58323 yy2arr2 := z.EncBasicHandle().StructToArray 58324 _, _ = yysep2, yy2arr2 58325 const yyr2 bool = false // struct tag has 'toArray' 58326 if yyr2 || yy2arr2 { 58327 r.WriteArrayStart(8) 58328 } else { 58329 r.WriteMapStart(8) 58330 } 58331 if yyr2 || yy2arr2 { 58332 r.WriteArrayElem() 58333 if false { 58334 } else { 58335 if z.EncBasicHandle().StringToRaw { 58336 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 58337 } else { 58338 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 58339 } 58340 } 58341 } else { 58342 r.WriteMapElemKey() 58343 if z.IsJSONHandle() { 58344 z.WriteStr("\"Region\"") 58345 } else { 58346 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 58347 } 58348 r.WriteMapElemValue() 58349 if false { 58350 } else { 58351 if z.EncBasicHandle().StringToRaw { 58352 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 58353 } else { 58354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 58355 } 58356 } 58357 } 58358 if yyr2 || yy2arr2 { 58359 r.WriteArrayElem() 58360 if false { 58361 } else { 58362 if z.EncBasicHandle().StringToRaw { 58363 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 58364 } else { 58365 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 58366 } 58367 } 58368 } else { 58369 r.WriteMapElemKey() 58370 if z.IsJSONHandle() { 58371 z.WriteStr("\"Namespace\"") 58372 } else { 58373 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 58374 } 58375 r.WriteMapElemValue() 58376 if false { 58377 } else { 58378 if z.EncBasicHandle().StringToRaw { 58379 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 58380 } else { 58381 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 58382 } 58383 } 58384 } 58385 if yyr2 || yy2arr2 { 58386 r.WriteArrayElem() 58387 if false { 58388 } else { 58389 r.EncodeUint(uint64(x.MinQueryIndex)) 58390 } 58391 } else { 58392 r.WriteMapElemKey() 58393 if z.IsJSONHandle() { 58394 z.WriteStr("\"MinQueryIndex\"") 58395 } else { 58396 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 58397 } 58398 r.WriteMapElemValue() 58399 if false { 58400 } else { 58401 r.EncodeUint(uint64(x.MinQueryIndex)) 58402 } 58403 } 58404 if yyr2 || yy2arr2 { 58405 r.WriteArrayElem() 58406 if false { 58407 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 58408 z.EncExtension(x.MaxQueryTime, yyxt13) 58409 } else { 58410 r.EncodeInt(int64(x.MaxQueryTime)) 58411 } 58412 } else { 58413 r.WriteMapElemKey() 58414 if z.IsJSONHandle() { 58415 z.WriteStr("\"MaxQueryTime\"") 58416 } else { 58417 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 58418 } 58419 r.WriteMapElemValue() 58420 if false { 58421 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 58422 z.EncExtension(x.MaxQueryTime, yyxt14) 58423 } else { 58424 r.EncodeInt(int64(x.MaxQueryTime)) 58425 } 58426 } 58427 if yyr2 || yy2arr2 { 58428 r.WriteArrayElem() 58429 if false { 58430 } else { 58431 r.EncodeBool(bool(x.AllowStale)) 58432 } 58433 } else { 58434 r.WriteMapElemKey() 58435 if z.IsJSONHandle() { 58436 z.WriteStr("\"AllowStale\"") 58437 } else { 58438 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 58439 } 58440 r.WriteMapElemValue() 58441 if false { 58442 } else { 58443 r.EncodeBool(bool(x.AllowStale)) 58444 } 58445 } 58446 if yyr2 || yy2arr2 { 58447 r.WriteArrayElem() 58448 if false { 58449 } else { 58450 if z.EncBasicHandle().StringToRaw { 58451 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 58452 } else { 58453 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 58454 } 58455 } 58456 } else { 58457 r.WriteMapElemKey() 58458 if z.IsJSONHandle() { 58459 z.WriteStr("\"Prefix\"") 58460 } else { 58461 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 58462 } 58463 r.WriteMapElemValue() 58464 if false { 58465 } else { 58466 if z.EncBasicHandle().StringToRaw { 58467 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 58468 } else { 58469 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 58470 } 58471 } 58472 } 58473 if yyr2 || yy2arr2 { 58474 r.WriteArrayElem() 58475 if false { 58476 } else { 58477 if z.EncBasicHandle().StringToRaw { 58478 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 58479 } else { 58480 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 58481 } 58482 } 58483 } else { 58484 r.WriteMapElemKey() 58485 if z.IsJSONHandle() { 58486 z.WriteStr("\"AuthToken\"") 58487 } else { 58488 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 58489 } 58490 r.WriteMapElemValue() 58491 if false { 58492 } else { 58493 if z.EncBasicHandle().StringToRaw { 58494 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 58495 } else { 58496 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 58497 } 58498 } 58499 } 58500 if yyr2 || yy2arr2 { 58501 r.WriteArrayElem() 58502 if false { 58503 } else { 58504 r.EncodeBool(bool(x.Forwarded)) 58505 } 58506 } else { 58507 r.WriteMapElemKey() 58508 if z.IsJSONHandle() { 58509 z.WriteStr("\"Forwarded\"") 58510 } else { 58511 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 58512 } 58513 r.WriteMapElemValue() 58514 if false { 58515 } else { 58516 r.EncodeBool(bool(x.Forwarded)) 58517 } 58518 } 58519 if yyr2 || yy2arr2 { 58520 r.WriteArrayEnd() 58521 } else { 58522 r.WriteMapEnd() 58523 } 58524 } 58525 } 58526 } 58527 58528 func (x *ScalingPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 58529 var h codecSelfer100 58530 z, r := codec1978.GenHelperDecoder(d) 58531 _, _, _ = h, z, r 58532 if false { 58533 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58534 z.DecExtension(x, yyxt1) 58535 } else { 58536 yyct2 := r.ContainerType() 58537 if yyct2 == codecSelferValueTypeMap100 { 58538 yyl2 := r.ReadMapStart() 58539 if yyl2 == 0 { 58540 r.ReadMapEnd() 58541 } else { 58542 x.codecDecodeSelfFromMap(yyl2, d) 58543 } 58544 } else if yyct2 == codecSelferValueTypeArray100 { 58545 yyl2 := r.ReadArrayStart() 58546 if yyl2 == 0 { 58547 r.ReadArrayEnd() 58548 } else { 58549 x.codecDecodeSelfFromArray(yyl2, d) 58550 } 58551 } else { 58552 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58553 } 58554 } 58555 } 58556 58557 func (x *ScalingPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58558 var h codecSelfer100 58559 z, r := codec1978.GenHelperDecoder(d) 58560 _, _, _ = h, z, r 58561 var yyhl3 bool = l >= 0 58562 for yyj3 := 0; ; yyj3++ { 58563 if yyhl3 { 58564 if yyj3 >= l { 58565 break 58566 } 58567 } else { 58568 if r.CheckBreak() { 58569 break 58570 } 58571 } 58572 r.ReadMapElemKey() 58573 yys3 := z.StringView(r.DecodeStringAsBytes()) 58574 r.ReadMapElemValue() 58575 switch yys3 { 58576 case "Region": 58577 if r.TryDecodeAsNil() { 58578 x.QueryOptions.Region = "" 58579 } else { 58580 x.Region = (string)(r.DecodeString()) 58581 } 58582 case "Namespace": 58583 if r.TryDecodeAsNil() { 58584 x.QueryOptions.Namespace = "" 58585 } else { 58586 x.Namespace = (string)(r.DecodeString()) 58587 } 58588 case "MinQueryIndex": 58589 if r.TryDecodeAsNil() { 58590 x.QueryOptions.MinQueryIndex = 0 58591 } else { 58592 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 58593 } 58594 case "MaxQueryTime": 58595 if r.TryDecodeAsNil() { 58596 x.QueryOptions.MaxQueryTime = 0 58597 } else { 58598 if false { 58599 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 58600 z.DecExtension(x.MaxQueryTime, yyxt8) 58601 } else { 58602 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 58603 } 58604 } 58605 case "AllowStale": 58606 if r.TryDecodeAsNil() { 58607 x.QueryOptions.AllowStale = false 58608 } else { 58609 x.AllowStale = (bool)(r.DecodeBool()) 58610 } 58611 case "Prefix": 58612 if r.TryDecodeAsNil() { 58613 x.QueryOptions.Prefix = "" 58614 } else { 58615 x.Prefix = (string)(r.DecodeString()) 58616 } 58617 case "AuthToken": 58618 if r.TryDecodeAsNil() { 58619 x.QueryOptions.AuthToken = "" 58620 } else { 58621 x.AuthToken = (string)(r.DecodeString()) 58622 } 58623 case "Forwarded": 58624 if r.TryDecodeAsNil() { 58625 x.QueryOptions.InternalRpcInfo.Forwarded = false 58626 } else { 58627 x.Forwarded = (bool)(r.DecodeBool()) 58628 } 58629 default: 58630 z.DecStructFieldNotFound(-1, yys3) 58631 } // end switch yys3 58632 } // end for yyj3 58633 r.ReadMapEnd() 58634 } 58635 58636 func (x *ScalingPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 58637 var h codecSelfer100 58638 z, r := codec1978.GenHelperDecoder(d) 58639 _, _, _ = h, z, r 58640 var yyj13 int 58641 var yyb13 bool 58642 var yyhl13 bool = l >= 0 58643 yyj13++ 58644 if yyhl13 { 58645 yyb13 = yyj13 > l 58646 } else { 58647 yyb13 = r.CheckBreak() 58648 } 58649 if yyb13 { 58650 r.ReadArrayEnd() 58651 return 58652 } 58653 r.ReadArrayElem() 58654 if r.TryDecodeAsNil() { 58655 x.QueryOptions.Region = "" 58656 } else { 58657 x.Region = (string)(r.DecodeString()) 58658 } 58659 yyj13++ 58660 if yyhl13 { 58661 yyb13 = yyj13 > l 58662 } else { 58663 yyb13 = r.CheckBreak() 58664 } 58665 if yyb13 { 58666 r.ReadArrayEnd() 58667 return 58668 } 58669 r.ReadArrayElem() 58670 if r.TryDecodeAsNil() { 58671 x.QueryOptions.Namespace = "" 58672 } else { 58673 x.Namespace = (string)(r.DecodeString()) 58674 } 58675 yyj13++ 58676 if yyhl13 { 58677 yyb13 = yyj13 > l 58678 } else { 58679 yyb13 = r.CheckBreak() 58680 } 58681 if yyb13 { 58682 r.ReadArrayEnd() 58683 return 58684 } 58685 r.ReadArrayElem() 58686 if r.TryDecodeAsNil() { 58687 x.QueryOptions.MinQueryIndex = 0 58688 } else { 58689 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 58690 } 58691 yyj13++ 58692 if yyhl13 { 58693 yyb13 = yyj13 > l 58694 } else { 58695 yyb13 = r.CheckBreak() 58696 } 58697 if yyb13 { 58698 r.ReadArrayEnd() 58699 return 58700 } 58701 r.ReadArrayElem() 58702 if r.TryDecodeAsNil() { 58703 x.QueryOptions.MaxQueryTime = 0 58704 } else { 58705 if false { 58706 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 58707 z.DecExtension(x.MaxQueryTime, yyxt18) 58708 } else { 58709 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 58710 } 58711 } 58712 yyj13++ 58713 if yyhl13 { 58714 yyb13 = yyj13 > l 58715 } else { 58716 yyb13 = r.CheckBreak() 58717 } 58718 if yyb13 { 58719 r.ReadArrayEnd() 58720 return 58721 } 58722 r.ReadArrayElem() 58723 if r.TryDecodeAsNil() { 58724 x.QueryOptions.AllowStale = false 58725 } else { 58726 x.AllowStale = (bool)(r.DecodeBool()) 58727 } 58728 yyj13++ 58729 if yyhl13 { 58730 yyb13 = yyj13 > l 58731 } else { 58732 yyb13 = r.CheckBreak() 58733 } 58734 if yyb13 { 58735 r.ReadArrayEnd() 58736 return 58737 } 58738 r.ReadArrayElem() 58739 if r.TryDecodeAsNil() { 58740 x.QueryOptions.Prefix = "" 58741 } else { 58742 x.Prefix = (string)(r.DecodeString()) 58743 } 58744 yyj13++ 58745 if yyhl13 { 58746 yyb13 = yyj13 > l 58747 } else { 58748 yyb13 = r.CheckBreak() 58749 } 58750 if yyb13 { 58751 r.ReadArrayEnd() 58752 return 58753 } 58754 r.ReadArrayElem() 58755 if r.TryDecodeAsNil() { 58756 x.QueryOptions.AuthToken = "" 58757 } else { 58758 x.AuthToken = (string)(r.DecodeString()) 58759 } 58760 yyj13++ 58761 if yyhl13 { 58762 yyb13 = yyj13 > l 58763 } else { 58764 yyb13 = r.CheckBreak() 58765 } 58766 if yyb13 { 58767 r.ReadArrayEnd() 58768 return 58769 } 58770 r.ReadArrayElem() 58771 if r.TryDecodeAsNil() { 58772 x.QueryOptions.InternalRpcInfo.Forwarded = false 58773 } else { 58774 x.Forwarded = (bool)(r.DecodeBool()) 58775 } 58776 for { 58777 yyj13++ 58778 if yyhl13 { 58779 yyb13 = yyj13 > l 58780 } else { 58781 yyb13 = r.CheckBreak() 58782 } 58783 if yyb13 { 58784 break 58785 } 58786 r.ReadArrayElem() 58787 z.DecStructFieldNotFound(yyj13-1, "") 58788 } 58789 r.ReadArrayEnd() 58790 } 58791 58792 func (x *ScalingPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 58793 var h codecSelfer100 58794 z, r := codec1978.GenHelperEncoder(e) 58795 _, _, _ = h, z, r 58796 if x == nil { 58797 r.EncodeNil() 58798 } else { 58799 if false { 58800 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58801 z.EncExtension(x, yyxt1) 58802 } else { 58803 yysep2 := !z.EncBinary() 58804 yy2arr2 := z.EncBasicHandle().StructToArray 58805 _, _ = yysep2, yy2arr2 58806 const yyr2 bool = false // struct tag has 'toArray' 58807 if yyr2 || yy2arr2 { 58808 r.WriteArrayStart(4) 58809 } else { 58810 r.WriteMapStart(4) 58811 } 58812 if yyr2 || yy2arr2 { 58813 r.WriteArrayElem() 58814 if x.Policies == nil { 58815 r.EncodeNil() 58816 } else { 58817 if false { 58818 } else { 58819 h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) 58820 } 58821 } 58822 } else { 58823 r.WriteMapElemKey() 58824 if z.IsJSONHandle() { 58825 z.WriteStr("\"Policies\"") 58826 } else { 58827 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 58828 } 58829 r.WriteMapElemValue() 58830 if x.Policies == nil { 58831 r.EncodeNil() 58832 } else { 58833 if false { 58834 } else { 58835 h.encSlicePtrtoScalingPolicyListStub(([]*ScalingPolicyListStub)(x.Policies), e) 58836 } 58837 } 58838 } 58839 if yyr2 || yy2arr2 { 58840 r.WriteArrayElem() 58841 if false { 58842 } else { 58843 r.EncodeUint(uint64(x.Index)) 58844 } 58845 } else { 58846 r.WriteMapElemKey() 58847 if z.IsJSONHandle() { 58848 z.WriteStr("\"Index\"") 58849 } else { 58850 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 58851 } 58852 r.WriteMapElemValue() 58853 if false { 58854 } else { 58855 r.EncodeUint(uint64(x.Index)) 58856 } 58857 } 58858 if yyr2 || yy2arr2 { 58859 r.WriteArrayElem() 58860 if false { 58861 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 58862 z.EncExtension(x.LastContact, yyxt10) 58863 } else { 58864 r.EncodeInt(int64(x.LastContact)) 58865 } 58866 } else { 58867 r.WriteMapElemKey() 58868 if z.IsJSONHandle() { 58869 z.WriteStr("\"LastContact\"") 58870 } else { 58871 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 58872 } 58873 r.WriteMapElemValue() 58874 if false { 58875 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 58876 z.EncExtension(x.LastContact, yyxt11) 58877 } else { 58878 r.EncodeInt(int64(x.LastContact)) 58879 } 58880 } 58881 if yyr2 || yy2arr2 { 58882 r.WriteArrayElem() 58883 if false { 58884 } else { 58885 r.EncodeBool(bool(x.KnownLeader)) 58886 } 58887 } else { 58888 r.WriteMapElemKey() 58889 if z.IsJSONHandle() { 58890 z.WriteStr("\"KnownLeader\"") 58891 } else { 58892 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 58893 } 58894 r.WriteMapElemValue() 58895 if false { 58896 } else { 58897 r.EncodeBool(bool(x.KnownLeader)) 58898 } 58899 } 58900 if yyr2 || yy2arr2 { 58901 r.WriteArrayEnd() 58902 } else { 58903 r.WriteMapEnd() 58904 } 58905 } 58906 } 58907 } 58908 58909 func (x *ScalingPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 58910 var h codecSelfer100 58911 z, r := codec1978.GenHelperDecoder(d) 58912 _, _, _ = h, z, r 58913 if false { 58914 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 58915 z.DecExtension(x, yyxt1) 58916 } else { 58917 yyct2 := r.ContainerType() 58918 if yyct2 == codecSelferValueTypeMap100 { 58919 yyl2 := r.ReadMapStart() 58920 if yyl2 == 0 { 58921 r.ReadMapEnd() 58922 } else { 58923 x.codecDecodeSelfFromMap(yyl2, d) 58924 } 58925 } else if yyct2 == codecSelferValueTypeArray100 { 58926 yyl2 := r.ReadArrayStart() 58927 if yyl2 == 0 { 58928 r.ReadArrayEnd() 58929 } else { 58930 x.codecDecodeSelfFromArray(yyl2, d) 58931 } 58932 } else { 58933 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 58934 } 58935 } 58936 } 58937 58938 func (x *ScalingPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 58939 var h codecSelfer100 58940 z, r := codec1978.GenHelperDecoder(d) 58941 _, _, _ = h, z, r 58942 var yyhl3 bool = l >= 0 58943 for yyj3 := 0; ; yyj3++ { 58944 if yyhl3 { 58945 if yyj3 >= l { 58946 break 58947 } 58948 } else { 58949 if r.CheckBreak() { 58950 break 58951 } 58952 } 58953 r.ReadMapElemKey() 58954 yys3 := z.StringView(r.DecodeStringAsBytes()) 58955 r.ReadMapElemValue() 58956 switch yys3 { 58957 case "Policies": 58958 if r.TryDecodeAsNil() { 58959 x.Policies = nil 58960 } else { 58961 if false { 58962 } else { 58963 h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) 58964 } 58965 } 58966 case "Index": 58967 if r.TryDecodeAsNil() { 58968 x.QueryMeta.Index = 0 58969 } else { 58970 x.Index = (uint64)(r.DecodeUint64()) 58971 } 58972 case "LastContact": 58973 if r.TryDecodeAsNil() { 58974 x.QueryMeta.LastContact = 0 58975 } else { 58976 if false { 58977 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 58978 z.DecExtension(x.LastContact, yyxt8) 58979 } else { 58980 x.LastContact = (time.Duration)(r.DecodeInt64()) 58981 } 58982 } 58983 case "KnownLeader": 58984 if r.TryDecodeAsNil() { 58985 x.QueryMeta.KnownLeader = false 58986 } else { 58987 x.KnownLeader = (bool)(r.DecodeBool()) 58988 } 58989 default: 58990 z.DecStructFieldNotFound(-1, yys3) 58991 } // end switch yys3 58992 } // end for yyj3 58993 r.ReadMapEnd() 58994 } 58995 58996 func (x *ScalingPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 58997 var h codecSelfer100 58998 z, r := codec1978.GenHelperDecoder(d) 58999 _, _, _ = h, z, r 59000 var yyj10 int 59001 var yyb10 bool 59002 var yyhl10 bool = l >= 0 59003 yyj10++ 59004 if yyhl10 { 59005 yyb10 = yyj10 > l 59006 } else { 59007 yyb10 = r.CheckBreak() 59008 } 59009 if yyb10 { 59010 r.ReadArrayEnd() 59011 return 59012 } 59013 r.ReadArrayElem() 59014 if r.TryDecodeAsNil() { 59015 x.Policies = nil 59016 } else { 59017 if false { 59018 } else { 59019 h.decSlicePtrtoScalingPolicyListStub((*[]*ScalingPolicyListStub)(&x.Policies), d) 59020 } 59021 } 59022 yyj10++ 59023 if yyhl10 { 59024 yyb10 = yyj10 > l 59025 } else { 59026 yyb10 = r.CheckBreak() 59027 } 59028 if yyb10 { 59029 r.ReadArrayEnd() 59030 return 59031 } 59032 r.ReadArrayElem() 59033 if r.TryDecodeAsNil() { 59034 x.QueryMeta.Index = 0 59035 } else { 59036 x.Index = (uint64)(r.DecodeUint64()) 59037 } 59038 yyj10++ 59039 if yyhl10 { 59040 yyb10 = yyj10 > l 59041 } else { 59042 yyb10 = r.CheckBreak() 59043 } 59044 if yyb10 { 59045 r.ReadArrayEnd() 59046 return 59047 } 59048 r.ReadArrayElem() 59049 if r.TryDecodeAsNil() { 59050 x.QueryMeta.LastContact = 0 59051 } else { 59052 if false { 59053 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 59054 z.DecExtension(x.LastContact, yyxt15) 59055 } else { 59056 x.LastContact = (time.Duration)(r.DecodeInt64()) 59057 } 59058 } 59059 yyj10++ 59060 if yyhl10 { 59061 yyb10 = yyj10 > l 59062 } else { 59063 yyb10 = r.CheckBreak() 59064 } 59065 if yyb10 { 59066 r.ReadArrayEnd() 59067 return 59068 } 59069 r.ReadArrayElem() 59070 if r.TryDecodeAsNil() { 59071 x.QueryMeta.KnownLeader = false 59072 } else { 59073 x.KnownLeader = (bool)(r.DecodeBool()) 59074 } 59075 for { 59076 yyj10++ 59077 if yyhl10 { 59078 yyb10 = yyj10 > l 59079 } else { 59080 yyb10 = r.CheckBreak() 59081 } 59082 if yyb10 { 59083 break 59084 } 59085 r.ReadArrayElem() 59086 z.DecStructFieldNotFound(yyj10-1, "") 59087 } 59088 r.ReadArrayEnd() 59089 } 59090 59091 func (x *SingleDeploymentResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59092 var h codecSelfer100 59093 z, r := codec1978.GenHelperEncoder(e) 59094 _, _, _ = h, z, r 59095 if x == nil { 59096 r.EncodeNil() 59097 } else { 59098 if false { 59099 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59100 z.EncExtension(x, yyxt1) 59101 } else { 59102 yysep2 := !z.EncBinary() 59103 yy2arr2 := z.EncBasicHandle().StructToArray 59104 _, _ = yysep2, yy2arr2 59105 const yyr2 bool = false // struct tag has 'toArray' 59106 if yyr2 || yy2arr2 { 59107 r.WriteArrayStart(4) 59108 } else { 59109 r.WriteMapStart(4) 59110 } 59111 var yyn3 bool 59112 if x.Deployment == nil { 59113 yyn3 = true 59114 goto LABEL3 59115 } 59116 LABEL3: 59117 if yyr2 || yy2arr2 { 59118 if yyn3 { 59119 r.WriteArrayElem() 59120 r.EncodeNil() 59121 } else { 59122 r.WriteArrayElem() 59123 if x.Deployment == nil { 59124 r.EncodeNil() 59125 } else { 59126 x.Deployment.CodecEncodeSelf(e) 59127 } 59128 } 59129 } else { 59130 r.WriteMapElemKey() 59131 if z.IsJSONHandle() { 59132 z.WriteStr("\"Deployment\"") 59133 } else { 59134 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 59135 } 59136 r.WriteMapElemValue() 59137 if yyn3 { 59138 r.EncodeNil() 59139 } else { 59140 if x.Deployment == nil { 59141 r.EncodeNil() 59142 } else { 59143 x.Deployment.CodecEncodeSelf(e) 59144 } 59145 } 59146 } 59147 if yyr2 || yy2arr2 { 59148 r.WriteArrayElem() 59149 if false { 59150 } else { 59151 r.EncodeUint(uint64(x.Index)) 59152 } 59153 } else { 59154 r.WriteMapElemKey() 59155 if z.IsJSONHandle() { 59156 z.WriteStr("\"Index\"") 59157 } else { 59158 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 59159 } 59160 r.WriteMapElemValue() 59161 if false { 59162 } else { 59163 r.EncodeUint(uint64(x.Index)) 59164 } 59165 } 59166 if yyr2 || yy2arr2 { 59167 r.WriteArrayElem() 59168 if false { 59169 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 59170 z.EncExtension(x.LastContact, yyxt10) 59171 } else { 59172 r.EncodeInt(int64(x.LastContact)) 59173 } 59174 } else { 59175 r.WriteMapElemKey() 59176 if z.IsJSONHandle() { 59177 z.WriteStr("\"LastContact\"") 59178 } else { 59179 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 59180 } 59181 r.WriteMapElemValue() 59182 if false { 59183 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 59184 z.EncExtension(x.LastContact, yyxt11) 59185 } else { 59186 r.EncodeInt(int64(x.LastContact)) 59187 } 59188 } 59189 if yyr2 || yy2arr2 { 59190 r.WriteArrayElem() 59191 if false { 59192 } else { 59193 r.EncodeBool(bool(x.KnownLeader)) 59194 } 59195 } else { 59196 r.WriteMapElemKey() 59197 if z.IsJSONHandle() { 59198 z.WriteStr("\"KnownLeader\"") 59199 } else { 59200 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 59201 } 59202 r.WriteMapElemValue() 59203 if false { 59204 } else { 59205 r.EncodeBool(bool(x.KnownLeader)) 59206 } 59207 } 59208 if yyr2 || yy2arr2 { 59209 r.WriteArrayEnd() 59210 } else { 59211 r.WriteMapEnd() 59212 } 59213 } 59214 } 59215 } 59216 59217 func (x *SingleDeploymentResponse) CodecDecodeSelf(d *codec1978.Decoder) { 59218 var h codecSelfer100 59219 z, r := codec1978.GenHelperDecoder(d) 59220 _, _, _ = h, z, r 59221 if false { 59222 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59223 z.DecExtension(x, yyxt1) 59224 } else { 59225 yyct2 := r.ContainerType() 59226 if yyct2 == codecSelferValueTypeMap100 { 59227 yyl2 := r.ReadMapStart() 59228 if yyl2 == 0 { 59229 r.ReadMapEnd() 59230 } else { 59231 x.codecDecodeSelfFromMap(yyl2, d) 59232 } 59233 } else if yyct2 == codecSelferValueTypeArray100 { 59234 yyl2 := r.ReadArrayStart() 59235 if yyl2 == 0 { 59236 r.ReadArrayEnd() 59237 } else { 59238 x.codecDecodeSelfFromArray(yyl2, d) 59239 } 59240 } else { 59241 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 59242 } 59243 } 59244 } 59245 59246 func (x *SingleDeploymentResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 59247 var h codecSelfer100 59248 z, r := codec1978.GenHelperDecoder(d) 59249 _, _, _ = h, z, r 59250 var yyhl3 bool = l >= 0 59251 for yyj3 := 0; ; yyj3++ { 59252 if yyhl3 { 59253 if yyj3 >= l { 59254 break 59255 } 59256 } else { 59257 if r.CheckBreak() { 59258 break 59259 } 59260 } 59261 r.ReadMapElemKey() 59262 yys3 := z.StringView(r.DecodeStringAsBytes()) 59263 r.ReadMapElemValue() 59264 switch yys3 { 59265 case "Deployment": 59266 if r.TryDecodeAsNil() { 59267 if true && x.Deployment != nil { 59268 x.Deployment = nil 59269 } 59270 } else { 59271 if x.Deployment == nil { 59272 x.Deployment = new(Deployment) 59273 } 59274 59275 x.Deployment.CodecDecodeSelf(d) 59276 } 59277 case "Index": 59278 if r.TryDecodeAsNil() { 59279 x.QueryMeta.Index = 0 59280 } else { 59281 x.Index = (uint64)(r.DecodeUint64()) 59282 } 59283 case "LastContact": 59284 if r.TryDecodeAsNil() { 59285 x.QueryMeta.LastContact = 0 59286 } else { 59287 if false { 59288 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 59289 z.DecExtension(x.LastContact, yyxt7) 59290 } else { 59291 x.LastContact = (time.Duration)(r.DecodeInt64()) 59292 } 59293 } 59294 case "KnownLeader": 59295 if r.TryDecodeAsNil() { 59296 x.QueryMeta.KnownLeader = false 59297 } else { 59298 x.KnownLeader = (bool)(r.DecodeBool()) 59299 } 59300 default: 59301 z.DecStructFieldNotFound(-1, yys3) 59302 } // end switch yys3 59303 } // end for yyj3 59304 r.ReadMapEnd() 59305 } 59306 59307 func (x *SingleDeploymentResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59308 var h codecSelfer100 59309 z, r := codec1978.GenHelperDecoder(d) 59310 _, _, _ = h, z, r 59311 var yyj9 int 59312 var yyb9 bool 59313 var yyhl9 bool = l >= 0 59314 yyj9++ 59315 if yyhl9 { 59316 yyb9 = yyj9 > l 59317 } else { 59318 yyb9 = r.CheckBreak() 59319 } 59320 if yyb9 { 59321 r.ReadArrayEnd() 59322 return 59323 } 59324 r.ReadArrayElem() 59325 if r.TryDecodeAsNil() { 59326 if true && x.Deployment != nil { 59327 x.Deployment = nil 59328 } 59329 } else { 59330 if x.Deployment == nil { 59331 x.Deployment = new(Deployment) 59332 } 59333 59334 x.Deployment.CodecDecodeSelf(d) 59335 } 59336 yyj9++ 59337 if yyhl9 { 59338 yyb9 = yyj9 > l 59339 } else { 59340 yyb9 = r.CheckBreak() 59341 } 59342 if yyb9 { 59343 r.ReadArrayEnd() 59344 return 59345 } 59346 r.ReadArrayElem() 59347 if r.TryDecodeAsNil() { 59348 x.QueryMeta.Index = 0 59349 } else { 59350 x.Index = (uint64)(r.DecodeUint64()) 59351 } 59352 yyj9++ 59353 if yyhl9 { 59354 yyb9 = yyj9 > l 59355 } else { 59356 yyb9 = r.CheckBreak() 59357 } 59358 if yyb9 { 59359 r.ReadArrayEnd() 59360 return 59361 } 59362 r.ReadArrayElem() 59363 if r.TryDecodeAsNil() { 59364 x.QueryMeta.LastContact = 0 59365 } else { 59366 if false { 59367 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 59368 z.DecExtension(x.LastContact, yyxt13) 59369 } else { 59370 x.LastContact = (time.Duration)(r.DecodeInt64()) 59371 } 59372 } 59373 yyj9++ 59374 if yyhl9 { 59375 yyb9 = yyj9 > l 59376 } else { 59377 yyb9 = r.CheckBreak() 59378 } 59379 if yyb9 { 59380 r.ReadArrayEnd() 59381 return 59382 } 59383 r.ReadArrayElem() 59384 if r.TryDecodeAsNil() { 59385 x.QueryMeta.KnownLeader = false 59386 } else { 59387 x.KnownLeader = (bool)(r.DecodeBool()) 59388 } 59389 for { 59390 yyj9++ 59391 if yyhl9 { 59392 yyb9 = yyj9 > l 59393 } else { 59394 yyb9 = r.CheckBreak() 59395 } 59396 if yyb9 { 59397 break 59398 } 59399 r.ReadArrayElem() 59400 z.DecStructFieldNotFound(yyj9-1, "") 59401 } 59402 r.ReadArrayEnd() 59403 } 59404 59405 func (x *GenericResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59406 var h codecSelfer100 59407 z, r := codec1978.GenHelperEncoder(e) 59408 _, _, _ = h, z, r 59409 if x == nil { 59410 r.EncodeNil() 59411 } else { 59412 if false { 59413 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59414 z.EncExtension(x, yyxt1) 59415 } else { 59416 yysep2 := !z.EncBinary() 59417 yy2arr2 := z.EncBasicHandle().StructToArray 59418 _, _ = yysep2, yy2arr2 59419 const yyr2 bool = false // struct tag has 'toArray' 59420 if yyr2 || yy2arr2 { 59421 r.WriteArrayStart(1) 59422 } else { 59423 r.WriteMapStart(1) 59424 } 59425 if yyr2 || yy2arr2 { 59426 r.WriteArrayElem() 59427 if false { 59428 } else { 59429 r.EncodeUint(uint64(x.Index)) 59430 } 59431 } else { 59432 r.WriteMapElemKey() 59433 if z.IsJSONHandle() { 59434 z.WriteStr("\"Index\"") 59435 } else { 59436 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 59437 } 59438 r.WriteMapElemValue() 59439 if false { 59440 } else { 59441 r.EncodeUint(uint64(x.Index)) 59442 } 59443 } 59444 if yyr2 || yy2arr2 { 59445 r.WriteArrayEnd() 59446 } else { 59447 r.WriteMapEnd() 59448 } 59449 } 59450 } 59451 } 59452 59453 func (x *GenericResponse) CodecDecodeSelf(d *codec1978.Decoder) { 59454 var h codecSelfer100 59455 z, r := codec1978.GenHelperDecoder(d) 59456 _, _, _ = h, z, r 59457 if false { 59458 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59459 z.DecExtension(x, yyxt1) 59460 } else { 59461 yyct2 := r.ContainerType() 59462 if yyct2 == codecSelferValueTypeMap100 { 59463 yyl2 := r.ReadMapStart() 59464 if yyl2 == 0 { 59465 r.ReadMapEnd() 59466 } else { 59467 x.codecDecodeSelfFromMap(yyl2, d) 59468 } 59469 } else if yyct2 == codecSelferValueTypeArray100 { 59470 yyl2 := r.ReadArrayStart() 59471 if yyl2 == 0 { 59472 r.ReadArrayEnd() 59473 } else { 59474 x.codecDecodeSelfFromArray(yyl2, d) 59475 } 59476 } else { 59477 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 59478 } 59479 } 59480 } 59481 59482 func (x *GenericResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 59483 var h codecSelfer100 59484 z, r := codec1978.GenHelperDecoder(d) 59485 _, _, _ = h, z, r 59486 var yyhl3 bool = l >= 0 59487 for yyj3 := 0; ; yyj3++ { 59488 if yyhl3 { 59489 if yyj3 >= l { 59490 break 59491 } 59492 } else { 59493 if r.CheckBreak() { 59494 break 59495 } 59496 } 59497 r.ReadMapElemKey() 59498 yys3 := z.StringView(r.DecodeStringAsBytes()) 59499 r.ReadMapElemValue() 59500 switch yys3 { 59501 case "Index": 59502 if r.TryDecodeAsNil() { 59503 x.WriteMeta.Index = 0 59504 } else { 59505 x.Index = (uint64)(r.DecodeUint64()) 59506 } 59507 default: 59508 z.DecStructFieldNotFound(-1, yys3) 59509 } // end switch yys3 59510 } // end for yyj3 59511 r.ReadMapEnd() 59512 } 59513 59514 func (x *GenericResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59515 var h codecSelfer100 59516 z, r := codec1978.GenHelperDecoder(d) 59517 _, _, _ = h, z, r 59518 var yyj5 int 59519 var yyb5 bool 59520 var yyhl5 bool = l >= 0 59521 yyj5++ 59522 if yyhl5 { 59523 yyb5 = yyj5 > l 59524 } else { 59525 yyb5 = r.CheckBreak() 59526 } 59527 if yyb5 { 59528 r.ReadArrayEnd() 59529 return 59530 } 59531 r.ReadArrayElem() 59532 if r.TryDecodeAsNil() { 59533 x.WriteMeta.Index = 0 59534 } else { 59535 x.Index = (uint64)(r.DecodeUint64()) 59536 } 59537 for { 59538 yyj5++ 59539 if yyhl5 { 59540 yyb5 = yyj5 > l 59541 } else { 59542 yyb5 = r.CheckBreak() 59543 } 59544 if yyb5 { 59545 break 59546 } 59547 r.ReadArrayElem() 59548 z.DecStructFieldNotFound(yyj5-1, "") 59549 } 59550 r.ReadArrayEnd() 59551 } 59552 59553 func (x *VersionResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59554 var h codecSelfer100 59555 z, r := codec1978.GenHelperEncoder(e) 59556 _, _, _ = h, z, r 59557 if x == nil { 59558 r.EncodeNil() 59559 } else { 59560 if false { 59561 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59562 z.EncExtension(x, yyxt1) 59563 } else { 59564 yysep2 := !z.EncBinary() 59565 yy2arr2 := z.EncBasicHandle().StructToArray 59566 _, _ = yysep2, yy2arr2 59567 const yyr2 bool = false // struct tag has 'toArray' 59568 if yyr2 || yy2arr2 { 59569 r.WriteArrayStart(5) 59570 } else { 59571 r.WriteMapStart(5) 59572 } 59573 if yyr2 || yy2arr2 { 59574 r.WriteArrayElem() 59575 if false { 59576 } else { 59577 if z.EncBasicHandle().StringToRaw { 59578 r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) 59579 } else { 59580 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) 59581 } 59582 } 59583 } else { 59584 r.WriteMapElemKey() 59585 if z.IsJSONHandle() { 59586 z.WriteStr("\"Build\"") 59587 } else { 59588 r.EncodeStringEnc(codecSelferCcUTF8100, `Build`) 59589 } 59590 r.WriteMapElemValue() 59591 if false { 59592 } else { 59593 if z.EncBasicHandle().StringToRaw { 59594 r.EncodeStringBytesRaw(z.BytesView(string(x.Build))) 59595 } else { 59596 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Build)) 59597 } 59598 } 59599 } 59600 if yyr2 || yy2arr2 { 59601 r.WriteArrayElem() 59602 if x.Versions == nil { 59603 r.EncodeNil() 59604 } else { 59605 if false { 59606 } else { 59607 z.F.EncMapStringIntV(x.Versions, e) 59608 } 59609 } 59610 } else { 59611 r.WriteMapElemKey() 59612 if z.IsJSONHandle() { 59613 z.WriteStr("\"Versions\"") 59614 } else { 59615 r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) 59616 } 59617 r.WriteMapElemValue() 59618 if x.Versions == nil { 59619 r.EncodeNil() 59620 } else { 59621 if false { 59622 } else { 59623 z.F.EncMapStringIntV(x.Versions, e) 59624 } 59625 } 59626 } 59627 if yyr2 || yy2arr2 { 59628 r.WriteArrayElem() 59629 if false { 59630 } else { 59631 r.EncodeUint(uint64(x.Index)) 59632 } 59633 } else { 59634 r.WriteMapElemKey() 59635 if z.IsJSONHandle() { 59636 z.WriteStr("\"Index\"") 59637 } else { 59638 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 59639 } 59640 r.WriteMapElemValue() 59641 if false { 59642 } else { 59643 r.EncodeUint(uint64(x.Index)) 59644 } 59645 } 59646 if yyr2 || yy2arr2 { 59647 r.WriteArrayElem() 59648 if false { 59649 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 59650 z.EncExtension(x.LastContact, yyxt13) 59651 } else { 59652 r.EncodeInt(int64(x.LastContact)) 59653 } 59654 } else { 59655 r.WriteMapElemKey() 59656 if z.IsJSONHandle() { 59657 z.WriteStr("\"LastContact\"") 59658 } else { 59659 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 59660 } 59661 r.WriteMapElemValue() 59662 if false { 59663 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 59664 z.EncExtension(x.LastContact, yyxt14) 59665 } else { 59666 r.EncodeInt(int64(x.LastContact)) 59667 } 59668 } 59669 if yyr2 || yy2arr2 { 59670 r.WriteArrayElem() 59671 if false { 59672 } else { 59673 r.EncodeBool(bool(x.KnownLeader)) 59674 } 59675 } else { 59676 r.WriteMapElemKey() 59677 if z.IsJSONHandle() { 59678 z.WriteStr("\"KnownLeader\"") 59679 } else { 59680 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 59681 } 59682 r.WriteMapElemValue() 59683 if false { 59684 } else { 59685 r.EncodeBool(bool(x.KnownLeader)) 59686 } 59687 } 59688 if yyr2 || yy2arr2 { 59689 r.WriteArrayEnd() 59690 } else { 59691 r.WriteMapEnd() 59692 } 59693 } 59694 } 59695 } 59696 59697 func (x *VersionResponse) CodecDecodeSelf(d *codec1978.Decoder) { 59698 var h codecSelfer100 59699 z, r := codec1978.GenHelperDecoder(d) 59700 _, _, _ = h, z, r 59701 if false { 59702 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59703 z.DecExtension(x, yyxt1) 59704 } else { 59705 yyct2 := r.ContainerType() 59706 if yyct2 == codecSelferValueTypeMap100 { 59707 yyl2 := r.ReadMapStart() 59708 if yyl2 == 0 { 59709 r.ReadMapEnd() 59710 } else { 59711 x.codecDecodeSelfFromMap(yyl2, d) 59712 } 59713 } else if yyct2 == codecSelferValueTypeArray100 { 59714 yyl2 := r.ReadArrayStart() 59715 if yyl2 == 0 { 59716 r.ReadArrayEnd() 59717 } else { 59718 x.codecDecodeSelfFromArray(yyl2, d) 59719 } 59720 } else { 59721 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 59722 } 59723 } 59724 } 59725 59726 func (x *VersionResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 59727 var h codecSelfer100 59728 z, r := codec1978.GenHelperDecoder(d) 59729 _, _, _ = h, z, r 59730 var yyhl3 bool = l >= 0 59731 for yyj3 := 0; ; yyj3++ { 59732 if yyhl3 { 59733 if yyj3 >= l { 59734 break 59735 } 59736 } else { 59737 if r.CheckBreak() { 59738 break 59739 } 59740 } 59741 r.ReadMapElemKey() 59742 yys3 := z.StringView(r.DecodeStringAsBytes()) 59743 r.ReadMapElemValue() 59744 switch yys3 { 59745 case "Build": 59746 if r.TryDecodeAsNil() { 59747 x.Build = "" 59748 } else { 59749 x.Build = (string)(r.DecodeString()) 59750 } 59751 case "Versions": 59752 if r.TryDecodeAsNil() { 59753 x.Versions = nil 59754 } else { 59755 if false { 59756 } else { 59757 z.F.DecMapStringIntX(&x.Versions, d) 59758 } 59759 } 59760 case "Index": 59761 if r.TryDecodeAsNil() { 59762 x.QueryMeta.Index = 0 59763 } else { 59764 x.Index = (uint64)(r.DecodeUint64()) 59765 } 59766 case "LastContact": 59767 if r.TryDecodeAsNil() { 59768 x.QueryMeta.LastContact = 0 59769 } else { 59770 if false { 59771 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 59772 z.DecExtension(x.LastContact, yyxt9) 59773 } else { 59774 x.LastContact = (time.Duration)(r.DecodeInt64()) 59775 } 59776 } 59777 case "KnownLeader": 59778 if r.TryDecodeAsNil() { 59779 x.QueryMeta.KnownLeader = false 59780 } else { 59781 x.KnownLeader = (bool)(r.DecodeBool()) 59782 } 59783 default: 59784 z.DecStructFieldNotFound(-1, yys3) 59785 } // end switch yys3 59786 } // end for yyj3 59787 r.ReadMapEnd() 59788 } 59789 59790 func (x *VersionResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 59791 var h codecSelfer100 59792 z, r := codec1978.GenHelperDecoder(d) 59793 _, _, _ = h, z, r 59794 var yyj11 int 59795 var yyb11 bool 59796 var yyhl11 bool = l >= 0 59797 yyj11++ 59798 if yyhl11 { 59799 yyb11 = yyj11 > l 59800 } else { 59801 yyb11 = r.CheckBreak() 59802 } 59803 if yyb11 { 59804 r.ReadArrayEnd() 59805 return 59806 } 59807 r.ReadArrayElem() 59808 if r.TryDecodeAsNil() { 59809 x.Build = "" 59810 } else { 59811 x.Build = (string)(r.DecodeString()) 59812 } 59813 yyj11++ 59814 if yyhl11 { 59815 yyb11 = yyj11 > l 59816 } else { 59817 yyb11 = r.CheckBreak() 59818 } 59819 if yyb11 { 59820 r.ReadArrayEnd() 59821 return 59822 } 59823 r.ReadArrayElem() 59824 if r.TryDecodeAsNil() { 59825 x.Versions = nil 59826 } else { 59827 if false { 59828 } else { 59829 z.F.DecMapStringIntX(&x.Versions, d) 59830 } 59831 } 59832 yyj11++ 59833 if yyhl11 { 59834 yyb11 = yyj11 > l 59835 } else { 59836 yyb11 = r.CheckBreak() 59837 } 59838 if yyb11 { 59839 r.ReadArrayEnd() 59840 return 59841 } 59842 r.ReadArrayElem() 59843 if r.TryDecodeAsNil() { 59844 x.QueryMeta.Index = 0 59845 } else { 59846 x.Index = (uint64)(r.DecodeUint64()) 59847 } 59848 yyj11++ 59849 if yyhl11 { 59850 yyb11 = yyj11 > l 59851 } else { 59852 yyb11 = r.CheckBreak() 59853 } 59854 if yyb11 { 59855 r.ReadArrayEnd() 59856 return 59857 } 59858 r.ReadArrayElem() 59859 if r.TryDecodeAsNil() { 59860 x.QueryMeta.LastContact = 0 59861 } else { 59862 if false { 59863 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 59864 z.DecExtension(x.LastContact, yyxt17) 59865 } else { 59866 x.LastContact = (time.Duration)(r.DecodeInt64()) 59867 } 59868 } 59869 yyj11++ 59870 if yyhl11 { 59871 yyb11 = yyj11 > l 59872 } else { 59873 yyb11 = r.CheckBreak() 59874 } 59875 if yyb11 { 59876 r.ReadArrayEnd() 59877 return 59878 } 59879 r.ReadArrayElem() 59880 if r.TryDecodeAsNil() { 59881 x.QueryMeta.KnownLeader = false 59882 } else { 59883 x.KnownLeader = (bool)(r.DecodeBool()) 59884 } 59885 for { 59886 yyj11++ 59887 if yyhl11 { 59888 yyb11 = yyj11 > l 59889 } else { 59890 yyb11 = r.CheckBreak() 59891 } 59892 if yyb11 { 59893 break 59894 } 59895 r.ReadArrayElem() 59896 z.DecStructFieldNotFound(yyj11-1, "") 59897 } 59898 r.ReadArrayEnd() 59899 } 59900 59901 func (x *JobRegisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 59902 var h codecSelfer100 59903 z, r := codec1978.GenHelperEncoder(e) 59904 _, _, _ = h, z, r 59905 if x == nil { 59906 r.EncodeNil() 59907 } else { 59908 if false { 59909 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 59910 z.EncExtension(x, yyxt1) 59911 } else { 59912 yysep2 := !z.EncBinary() 59913 yy2arr2 := z.EncBasicHandle().StructToArray 59914 _, _ = yysep2, yy2arr2 59915 const yyr2 bool = false // struct tag has 'toArray' 59916 if yyr2 || yy2arr2 { 59917 r.WriteArrayStart(7) 59918 } else { 59919 r.WriteMapStart(7) 59920 } 59921 if yyr2 || yy2arr2 { 59922 r.WriteArrayElem() 59923 if false { 59924 } else { 59925 if z.EncBasicHandle().StringToRaw { 59926 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 59927 } else { 59928 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 59929 } 59930 } 59931 } else { 59932 r.WriteMapElemKey() 59933 if z.IsJSONHandle() { 59934 z.WriteStr("\"EvalID\"") 59935 } else { 59936 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 59937 } 59938 r.WriteMapElemValue() 59939 if false { 59940 } else { 59941 if z.EncBasicHandle().StringToRaw { 59942 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 59943 } else { 59944 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 59945 } 59946 } 59947 } 59948 if yyr2 || yy2arr2 { 59949 r.WriteArrayElem() 59950 if false { 59951 } else { 59952 r.EncodeUint(uint64(x.EvalCreateIndex)) 59953 } 59954 } else { 59955 r.WriteMapElemKey() 59956 if z.IsJSONHandle() { 59957 z.WriteStr("\"EvalCreateIndex\"") 59958 } else { 59959 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 59960 } 59961 r.WriteMapElemValue() 59962 if false { 59963 } else { 59964 r.EncodeUint(uint64(x.EvalCreateIndex)) 59965 } 59966 } 59967 if yyr2 || yy2arr2 { 59968 r.WriteArrayElem() 59969 if false { 59970 } else { 59971 r.EncodeUint(uint64(x.JobModifyIndex)) 59972 } 59973 } else { 59974 r.WriteMapElemKey() 59975 if z.IsJSONHandle() { 59976 z.WriteStr("\"JobModifyIndex\"") 59977 } else { 59978 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 59979 } 59980 r.WriteMapElemValue() 59981 if false { 59982 } else { 59983 r.EncodeUint(uint64(x.JobModifyIndex)) 59984 } 59985 } 59986 if yyr2 || yy2arr2 { 59987 r.WriteArrayElem() 59988 if false { 59989 } else { 59990 if z.EncBasicHandle().StringToRaw { 59991 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 59992 } else { 59993 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 59994 } 59995 } 59996 } else { 59997 r.WriteMapElemKey() 59998 if z.IsJSONHandle() { 59999 z.WriteStr("\"Warnings\"") 60000 } else { 60001 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 60002 } 60003 r.WriteMapElemValue() 60004 if false { 60005 } else { 60006 if z.EncBasicHandle().StringToRaw { 60007 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 60008 } else { 60009 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 60010 } 60011 } 60012 } 60013 if yyr2 || yy2arr2 { 60014 r.WriteArrayElem() 60015 if false { 60016 } else { 60017 r.EncodeUint(uint64(x.Index)) 60018 } 60019 } else { 60020 r.WriteMapElemKey() 60021 if z.IsJSONHandle() { 60022 z.WriteStr("\"Index\"") 60023 } else { 60024 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60025 } 60026 r.WriteMapElemValue() 60027 if false { 60028 } else { 60029 r.EncodeUint(uint64(x.Index)) 60030 } 60031 } 60032 if yyr2 || yy2arr2 { 60033 r.WriteArrayElem() 60034 if false { 60035 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 60036 z.EncExtension(x.LastContact, yyxt19) 60037 } else { 60038 r.EncodeInt(int64(x.LastContact)) 60039 } 60040 } else { 60041 r.WriteMapElemKey() 60042 if z.IsJSONHandle() { 60043 z.WriteStr("\"LastContact\"") 60044 } else { 60045 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 60046 } 60047 r.WriteMapElemValue() 60048 if false { 60049 } else if yyxt20 := z.Extension(z.I2Rtid(x.LastContact)); yyxt20 != nil { 60050 z.EncExtension(x.LastContact, yyxt20) 60051 } else { 60052 r.EncodeInt(int64(x.LastContact)) 60053 } 60054 } 60055 if yyr2 || yy2arr2 { 60056 r.WriteArrayElem() 60057 if false { 60058 } else { 60059 r.EncodeBool(bool(x.KnownLeader)) 60060 } 60061 } else { 60062 r.WriteMapElemKey() 60063 if z.IsJSONHandle() { 60064 z.WriteStr("\"KnownLeader\"") 60065 } else { 60066 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 60067 } 60068 r.WriteMapElemValue() 60069 if false { 60070 } else { 60071 r.EncodeBool(bool(x.KnownLeader)) 60072 } 60073 } 60074 if yyr2 || yy2arr2 { 60075 r.WriteArrayEnd() 60076 } else { 60077 r.WriteMapEnd() 60078 } 60079 } 60080 } 60081 } 60082 60083 func (x *JobRegisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60084 var h codecSelfer100 60085 z, r := codec1978.GenHelperDecoder(d) 60086 _, _, _ = h, z, r 60087 if false { 60088 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60089 z.DecExtension(x, yyxt1) 60090 } else { 60091 yyct2 := r.ContainerType() 60092 if yyct2 == codecSelferValueTypeMap100 { 60093 yyl2 := r.ReadMapStart() 60094 if yyl2 == 0 { 60095 r.ReadMapEnd() 60096 } else { 60097 x.codecDecodeSelfFromMap(yyl2, d) 60098 } 60099 } else if yyct2 == codecSelferValueTypeArray100 { 60100 yyl2 := r.ReadArrayStart() 60101 if yyl2 == 0 { 60102 r.ReadArrayEnd() 60103 } else { 60104 x.codecDecodeSelfFromArray(yyl2, d) 60105 } 60106 } else { 60107 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60108 } 60109 } 60110 } 60111 60112 func (x *JobRegisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60113 var h codecSelfer100 60114 z, r := codec1978.GenHelperDecoder(d) 60115 _, _, _ = h, z, r 60116 var yyhl3 bool = l >= 0 60117 for yyj3 := 0; ; yyj3++ { 60118 if yyhl3 { 60119 if yyj3 >= l { 60120 break 60121 } 60122 } else { 60123 if r.CheckBreak() { 60124 break 60125 } 60126 } 60127 r.ReadMapElemKey() 60128 yys3 := z.StringView(r.DecodeStringAsBytes()) 60129 r.ReadMapElemValue() 60130 switch yys3 { 60131 case "EvalID": 60132 if r.TryDecodeAsNil() { 60133 x.EvalID = "" 60134 } else { 60135 x.EvalID = (string)(r.DecodeString()) 60136 } 60137 case "EvalCreateIndex": 60138 if r.TryDecodeAsNil() { 60139 x.EvalCreateIndex = 0 60140 } else { 60141 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60142 } 60143 case "JobModifyIndex": 60144 if r.TryDecodeAsNil() { 60145 x.JobModifyIndex = 0 60146 } else { 60147 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 60148 } 60149 case "Warnings": 60150 if r.TryDecodeAsNil() { 60151 x.Warnings = "" 60152 } else { 60153 x.Warnings = (string)(r.DecodeString()) 60154 } 60155 case "Index": 60156 if r.TryDecodeAsNil() { 60157 x.QueryMeta.Index = 0 60158 } else { 60159 x.Index = (uint64)(r.DecodeUint64()) 60160 } 60161 case "LastContact": 60162 if r.TryDecodeAsNil() { 60163 x.QueryMeta.LastContact = 0 60164 } else { 60165 if false { 60166 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 60167 z.DecExtension(x.LastContact, yyxt10) 60168 } else { 60169 x.LastContact = (time.Duration)(r.DecodeInt64()) 60170 } 60171 } 60172 case "KnownLeader": 60173 if r.TryDecodeAsNil() { 60174 x.QueryMeta.KnownLeader = false 60175 } else { 60176 x.KnownLeader = (bool)(r.DecodeBool()) 60177 } 60178 default: 60179 z.DecStructFieldNotFound(-1, yys3) 60180 } // end switch yys3 60181 } // end for yyj3 60182 r.ReadMapEnd() 60183 } 60184 60185 func (x *JobRegisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60186 var h codecSelfer100 60187 z, r := codec1978.GenHelperDecoder(d) 60188 _, _, _ = h, z, r 60189 var yyj12 int 60190 var yyb12 bool 60191 var yyhl12 bool = l >= 0 60192 yyj12++ 60193 if yyhl12 { 60194 yyb12 = yyj12 > l 60195 } else { 60196 yyb12 = r.CheckBreak() 60197 } 60198 if yyb12 { 60199 r.ReadArrayEnd() 60200 return 60201 } 60202 r.ReadArrayElem() 60203 if r.TryDecodeAsNil() { 60204 x.EvalID = "" 60205 } else { 60206 x.EvalID = (string)(r.DecodeString()) 60207 } 60208 yyj12++ 60209 if yyhl12 { 60210 yyb12 = yyj12 > l 60211 } else { 60212 yyb12 = r.CheckBreak() 60213 } 60214 if yyb12 { 60215 r.ReadArrayEnd() 60216 return 60217 } 60218 r.ReadArrayElem() 60219 if r.TryDecodeAsNil() { 60220 x.EvalCreateIndex = 0 60221 } else { 60222 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60223 } 60224 yyj12++ 60225 if yyhl12 { 60226 yyb12 = yyj12 > l 60227 } else { 60228 yyb12 = r.CheckBreak() 60229 } 60230 if yyb12 { 60231 r.ReadArrayEnd() 60232 return 60233 } 60234 r.ReadArrayElem() 60235 if r.TryDecodeAsNil() { 60236 x.JobModifyIndex = 0 60237 } else { 60238 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 60239 } 60240 yyj12++ 60241 if yyhl12 { 60242 yyb12 = yyj12 > l 60243 } else { 60244 yyb12 = r.CheckBreak() 60245 } 60246 if yyb12 { 60247 r.ReadArrayEnd() 60248 return 60249 } 60250 r.ReadArrayElem() 60251 if r.TryDecodeAsNil() { 60252 x.Warnings = "" 60253 } else { 60254 x.Warnings = (string)(r.DecodeString()) 60255 } 60256 yyj12++ 60257 if yyhl12 { 60258 yyb12 = yyj12 > l 60259 } else { 60260 yyb12 = r.CheckBreak() 60261 } 60262 if yyb12 { 60263 r.ReadArrayEnd() 60264 return 60265 } 60266 r.ReadArrayElem() 60267 if r.TryDecodeAsNil() { 60268 x.QueryMeta.Index = 0 60269 } else { 60270 x.Index = (uint64)(r.DecodeUint64()) 60271 } 60272 yyj12++ 60273 if yyhl12 { 60274 yyb12 = yyj12 > l 60275 } else { 60276 yyb12 = r.CheckBreak() 60277 } 60278 if yyb12 { 60279 r.ReadArrayEnd() 60280 return 60281 } 60282 r.ReadArrayElem() 60283 if r.TryDecodeAsNil() { 60284 x.QueryMeta.LastContact = 0 60285 } else { 60286 if false { 60287 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 60288 z.DecExtension(x.LastContact, yyxt19) 60289 } else { 60290 x.LastContact = (time.Duration)(r.DecodeInt64()) 60291 } 60292 } 60293 yyj12++ 60294 if yyhl12 { 60295 yyb12 = yyj12 > l 60296 } else { 60297 yyb12 = r.CheckBreak() 60298 } 60299 if yyb12 { 60300 r.ReadArrayEnd() 60301 return 60302 } 60303 r.ReadArrayElem() 60304 if r.TryDecodeAsNil() { 60305 x.QueryMeta.KnownLeader = false 60306 } else { 60307 x.KnownLeader = (bool)(r.DecodeBool()) 60308 } 60309 for { 60310 yyj12++ 60311 if yyhl12 { 60312 yyb12 = yyj12 > l 60313 } else { 60314 yyb12 = r.CheckBreak() 60315 } 60316 if yyb12 { 60317 break 60318 } 60319 r.ReadArrayElem() 60320 z.DecStructFieldNotFound(yyj12-1, "") 60321 } 60322 r.ReadArrayEnd() 60323 } 60324 60325 func (x *JobDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 60326 var h codecSelfer100 60327 z, r := codec1978.GenHelperEncoder(e) 60328 _, _, _ = h, z, r 60329 if x == nil { 60330 r.EncodeNil() 60331 } else { 60332 if false { 60333 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60334 z.EncExtension(x, yyxt1) 60335 } else { 60336 yysep2 := !z.EncBinary() 60337 yy2arr2 := z.EncBasicHandle().StructToArray 60338 _, _ = yysep2, yy2arr2 60339 const yyr2 bool = false // struct tag has 'toArray' 60340 if yyr2 || yy2arr2 { 60341 r.WriteArrayStart(8) 60342 } else { 60343 r.WriteMapStart(8) 60344 } 60345 if yyr2 || yy2arr2 { 60346 r.WriteArrayElem() 60347 if false { 60348 } else { 60349 if z.EncBasicHandle().StringToRaw { 60350 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 60351 } else { 60352 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 60353 } 60354 } 60355 } else { 60356 r.WriteMapElemKey() 60357 if z.IsJSONHandle() { 60358 z.WriteStr("\"EvalID\"") 60359 } else { 60360 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 60361 } 60362 r.WriteMapElemValue() 60363 if false { 60364 } else { 60365 if z.EncBasicHandle().StringToRaw { 60366 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 60367 } else { 60368 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 60369 } 60370 } 60371 } 60372 if yyr2 || yy2arr2 { 60373 r.WriteArrayElem() 60374 if false { 60375 } else { 60376 r.EncodeUint(uint64(x.EvalCreateIndex)) 60377 } 60378 } else { 60379 r.WriteMapElemKey() 60380 if z.IsJSONHandle() { 60381 z.WriteStr("\"EvalCreateIndex\"") 60382 } else { 60383 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 60384 } 60385 r.WriteMapElemValue() 60386 if false { 60387 } else { 60388 r.EncodeUint(uint64(x.EvalCreateIndex)) 60389 } 60390 } 60391 if yyr2 || yy2arr2 { 60392 r.WriteArrayElem() 60393 if false { 60394 } else { 60395 r.EncodeUint(uint64(x.JobModifyIndex)) 60396 } 60397 } else { 60398 r.WriteMapElemKey() 60399 if z.IsJSONHandle() { 60400 z.WriteStr("\"JobModifyIndex\"") 60401 } else { 60402 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 60403 } 60404 r.WriteMapElemValue() 60405 if false { 60406 } else { 60407 r.EncodeUint(uint64(x.JobModifyIndex)) 60408 } 60409 } 60410 if yyr2 || yy2arr2 { 60411 r.WriteArrayElem() 60412 if false { 60413 } else { 60414 if z.EncBasicHandle().StringToRaw { 60415 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) 60416 } else { 60417 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) 60418 } 60419 } 60420 } else { 60421 r.WriteMapElemKey() 60422 if z.IsJSONHandle() { 60423 z.WriteStr("\"VolumeEvalID\"") 60424 } else { 60425 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalID`) 60426 } 60427 r.WriteMapElemValue() 60428 if false { 60429 } else { 60430 if z.EncBasicHandle().StringToRaw { 60431 r.EncodeStringBytesRaw(z.BytesView(string(x.VolumeEvalID))) 60432 } else { 60433 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VolumeEvalID)) 60434 } 60435 } 60436 } 60437 if yyr2 || yy2arr2 { 60438 r.WriteArrayElem() 60439 if false { 60440 } else { 60441 r.EncodeUint(uint64(x.VolumeEvalIndex)) 60442 } 60443 } else { 60444 r.WriteMapElemKey() 60445 if z.IsJSONHandle() { 60446 z.WriteStr("\"VolumeEvalIndex\"") 60447 } else { 60448 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeEvalIndex`) 60449 } 60450 r.WriteMapElemValue() 60451 if false { 60452 } else { 60453 r.EncodeUint(uint64(x.VolumeEvalIndex)) 60454 } 60455 } 60456 if yyr2 || yy2arr2 { 60457 r.WriteArrayElem() 60458 if false { 60459 } else { 60460 r.EncodeUint(uint64(x.Index)) 60461 } 60462 } else { 60463 r.WriteMapElemKey() 60464 if z.IsJSONHandle() { 60465 z.WriteStr("\"Index\"") 60466 } else { 60467 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60468 } 60469 r.WriteMapElemValue() 60470 if false { 60471 } else { 60472 r.EncodeUint(uint64(x.Index)) 60473 } 60474 } 60475 if yyr2 || yy2arr2 { 60476 r.WriteArrayElem() 60477 if false { 60478 } else if yyxt22 := z.Extension(z.I2Rtid(x.LastContact)); yyxt22 != nil { 60479 z.EncExtension(x.LastContact, yyxt22) 60480 } else { 60481 r.EncodeInt(int64(x.LastContact)) 60482 } 60483 } else { 60484 r.WriteMapElemKey() 60485 if z.IsJSONHandle() { 60486 z.WriteStr("\"LastContact\"") 60487 } else { 60488 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 60489 } 60490 r.WriteMapElemValue() 60491 if false { 60492 } else if yyxt23 := z.Extension(z.I2Rtid(x.LastContact)); yyxt23 != nil { 60493 z.EncExtension(x.LastContact, yyxt23) 60494 } else { 60495 r.EncodeInt(int64(x.LastContact)) 60496 } 60497 } 60498 if yyr2 || yy2arr2 { 60499 r.WriteArrayElem() 60500 if false { 60501 } else { 60502 r.EncodeBool(bool(x.KnownLeader)) 60503 } 60504 } else { 60505 r.WriteMapElemKey() 60506 if z.IsJSONHandle() { 60507 z.WriteStr("\"KnownLeader\"") 60508 } else { 60509 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 60510 } 60511 r.WriteMapElemValue() 60512 if false { 60513 } else { 60514 r.EncodeBool(bool(x.KnownLeader)) 60515 } 60516 } 60517 if yyr2 || yy2arr2 { 60518 r.WriteArrayEnd() 60519 } else { 60520 r.WriteMapEnd() 60521 } 60522 } 60523 } 60524 } 60525 60526 func (x *JobDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60527 var h codecSelfer100 60528 z, r := codec1978.GenHelperDecoder(d) 60529 _, _, _ = h, z, r 60530 if false { 60531 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60532 z.DecExtension(x, yyxt1) 60533 } else { 60534 yyct2 := r.ContainerType() 60535 if yyct2 == codecSelferValueTypeMap100 { 60536 yyl2 := r.ReadMapStart() 60537 if yyl2 == 0 { 60538 r.ReadMapEnd() 60539 } else { 60540 x.codecDecodeSelfFromMap(yyl2, d) 60541 } 60542 } else if yyct2 == codecSelferValueTypeArray100 { 60543 yyl2 := r.ReadArrayStart() 60544 if yyl2 == 0 { 60545 r.ReadArrayEnd() 60546 } else { 60547 x.codecDecodeSelfFromArray(yyl2, d) 60548 } 60549 } else { 60550 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60551 } 60552 } 60553 } 60554 60555 func (x *JobDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60556 var h codecSelfer100 60557 z, r := codec1978.GenHelperDecoder(d) 60558 _, _, _ = h, z, r 60559 var yyhl3 bool = l >= 0 60560 for yyj3 := 0; ; yyj3++ { 60561 if yyhl3 { 60562 if yyj3 >= l { 60563 break 60564 } 60565 } else { 60566 if r.CheckBreak() { 60567 break 60568 } 60569 } 60570 r.ReadMapElemKey() 60571 yys3 := z.StringView(r.DecodeStringAsBytes()) 60572 r.ReadMapElemValue() 60573 switch yys3 { 60574 case "EvalID": 60575 if r.TryDecodeAsNil() { 60576 x.EvalID = "" 60577 } else { 60578 x.EvalID = (string)(r.DecodeString()) 60579 } 60580 case "EvalCreateIndex": 60581 if r.TryDecodeAsNil() { 60582 x.EvalCreateIndex = 0 60583 } else { 60584 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60585 } 60586 case "JobModifyIndex": 60587 if r.TryDecodeAsNil() { 60588 x.JobModifyIndex = 0 60589 } else { 60590 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 60591 } 60592 case "VolumeEvalID": 60593 if r.TryDecodeAsNil() { 60594 x.VolumeEvalID = "" 60595 } else { 60596 x.VolumeEvalID = (string)(r.DecodeString()) 60597 } 60598 case "VolumeEvalIndex": 60599 if r.TryDecodeAsNil() { 60600 x.VolumeEvalIndex = 0 60601 } else { 60602 x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) 60603 } 60604 case "Index": 60605 if r.TryDecodeAsNil() { 60606 x.QueryMeta.Index = 0 60607 } else { 60608 x.Index = (uint64)(r.DecodeUint64()) 60609 } 60610 case "LastContact": 60611 if r.TryDecodeAsNil() { 60612 x.QueryMeta.LastContact = 0 60613 } else { 60614 if false { 60615 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 60616 z.DecExtension(x.LastContact, yyxt11) 60617 } else { 60618 x.LastContact = (time.Duration)(r.DecodeInt64()) 60619 } 60620 } 60621 case "KnownLeader": 60622 if r.TryDecodeAsNil() { 60623 x.QueryMeta.KnownLeader = false 60624 } else { 60625 x.KnownLeader = (bool)(r.DecodeBool()) 60626 } 60627 default: 60628 z.DecStructFieldNotFound(-1, yys3) 60629 } // end switch yys3 60630 } // end for yyj3 60631 r.ReadMapEnd() 60632 } 60633 60634 func (x *JobDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60635 var h codecSelfer100 60636 z, r := codec1978.GenHelperDecoder(d) 60637 _, _, _ = h, z, r 60638 var yyj13 int 60639 var yyb13 bool 60640 var yyhl13 bool = l >= 0 60641 yyj13++ 60642 if yyhl13 { 60643 yyb13 = yyj13 > l 60644 } else { 60645 yyb13 = r.CheckBreak() 60646 } 60647 if yyb13 { 60648 r.ReadArrayEnd() 60649 return 60650 } 60651 r.ReadArrayElem() 60652 if r.TryDecodeAsNil() { 60653 x.EvalID = "" 60654 } else { 60655 x.EvalID = (string)(r.DecodeString()) 60656 } 60657 yyj13++ 60658 if yyhl13 { 60659 yyb13 = yyj13 > l 60660 } else { 60661 yyb13 = r.CheckBreak() 60662 } 60663 if yyb13 { 60664 r.ReadArrayEnd() 60665 return 60666 } 60667 r.ReadArrayElem() 60668 if r.TryDecodeAsNil() { 60669 x.EvalCreateIndex = 0 60670 } else { 60671 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 60672 } 60673 yyj13++ 60674 if yyhl13 { 60675 yyb13 = yyj13 > l 60676 } else { 60677 yyb13 = r.CheckBreak() 60678 } 60679 if yyb13 { 60680 r.ReadArrayEnd() 60681 return 60682 } 60683 r.ReadArrayElem() 60684 if r.TryDecodeAsNil() { 60685 x.JobModifyIndex = 0 60686 } else { 60687 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 60688 } 60689 yyj13++ 60690 if yyhl13 { 60691 yyb13 = yyj13 > l 60692 } else { 60693 yyb13 = r.CheckBreak() 60694 } 60695 if yyb13 { 60696 r.ReadArrayEnd() 60697 return 60698 } 60699 r.ReadArrayElem() 60700 if r.TryDecodeAsNil() { 60701 x.VolumeEvalID = "" 60702 } else { 60703 x.VolumeEvalID = (string)(r.DecodeString()) 60704 } 60705 yyj13++ 60706 if yyhl13 { 60707 yyb13 = yyj13 > l 60708 } else { 60709 yyb13 = r.CheckBreak() 60710 } 60711 if yyb13 { 60712 r.ReadArrayEnd() 60713 return 60714 } 60715 r.ReadArrayElem() 60716 if r.TryDecodeAsNil() { 60717 x.VolumeEvalIndex = 0 60718 } else { 60719 x.VolumeEvalIndex = (uint64)(r.DecodeUint64()) 60720 } 60721 yyj13++ 60722 if yyhl13 { 60723 yyb13 = yyj13 > l 60724 } else { 60725 yyb13 = r.CheckBreak() 60726 } 60727 if yyb13 { 60728 r.ReadArrayEnd() 60729 return 60730 } 60731 r.ReadArrayElem() 60732 if r.TryDecodeAsNil() { 60733 x.QueryMeta.Index = 0 60734 } else { 60735 x.Index = (uint64)(r.DecodeUint64()) 60736 } 60737 yyj13++ 60738 if yyhl13 { 60739 yyb13 = yyj13 > l 60740 } else { 60741 yyb13 = r.CheckBreak() 60742 } 60743 if yyb13 { 60744 r.ReadArrayEnd() 60745 return 60746 } 60747 r.ReadArrayElem() 60748 if r.TryDecodeAsNil() { 60749 x.QueryMeta.LastContact = 0 60750 } else { 60751 if false { 60752 } else if yyxt21 := z.Extension(z.I2Rtid(x.LastContact)); yyxt21 != nil { 60753 z.DecExtension(x.LastContact, yyxt21) 60754 } else { 60755 x.LastContact = (time.Duration)(r.DecodeInt64()) 60756 } 60757 } 60758 yyj13++ 60759 if yyhl13 { 60760 yyb13 = yyj13 > l 60761 } else { 60762 yyb13 = r.CheckBreak() 60763 } 60764 if yyb13 { 60765 r.ReadArrayEnd() 60766 return 60767 } 60768 r.ReadArrayElem() 60769 if r.TryDecodeAsNil() { 60770 x.QueryMeta.KnownLeader = false 60771 } else { 60772 x.KnownLeader = (bool)(r.DecodeBool()) 60773 } 60774 for { 60775 yyj13++ 60776 if yyhl13 { 60777 yyb13 = yyj13 > l 60778 } else { 60779 yyb13 = r.CheckBreak() 60780 } 60781 if yyb13 { 60782 break 60783 } 60784 r.ReadArrayElem() 60785 z.DecStructFieldNotFound(yyj13-1, "") 60786 } 60787 r.ReadArrayEnd() 60788 } 60789 60790 func (x *JobBatchDeregisterResponse) CodecEncodeSelf(e *codec1978.Encoder) { 60791 var h codecSelfer100 60792 z, r := codec1978.GenHelperEncoder(e) 60793 _, _, _ = h, z, r 60794 if x == nil { 60795 r.EncodeNil() 60796 } else { 60797 if false { 60798 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60799 z.EncExtension(x, yyxt1) 60800 } else { 60801 yysep2 := !z.EncBinary() 60802 yy2arr2 := z.EncBasicHandle().StructToArray 60803 _, _ = yysep2, yy2arr2 60804 const yyr2 bool = false // struct tag has 'toArray' 60805 if yyr2 || yy2arr2 { 60806 r.WriteArrayStart(4) 60807 } else { 60808 r.WriteMapStart(4) 60809 } 60810 if yyr2 || yy2arr2 { 60811 r.WriteArrayElem() 60812 if x.JobEvals == nil { 60813 r.EncodeNil() 60814 } else { 60815 if false { 60816 } else { 60817 h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) 60818 } 60819 } 60820 } else { 60821 r.WriteMapElemKey() 60822 if z.IsJSONHandle() { 60823 z.WriteStr("\"JobEvals\"") 60824 } else { 60825 r.EncodeStringEnc(codecSelferCcUTF8100, `JobEvals`) 60826 } 60827 r.WriteMapElemValue() 60828 if x.JobEvals == nil { 60829 r.EncodeNil() 60830 } else { 60831 if false { 60832 } else { 60833 h.encMapNamespacedIDstring((map[NamespacedID]string)(x.JobEvals), e) 60834 } 60835 } 60836 } 60837 if yyr2 || yy2arr2 { 60838 r.WriteArrayElem() 60839 if false { 60840 } else { 60841 r.EncodeUint(uint64(x.Index)) 60842 } 60843 } else { 60844 r.WriteMapElemKey() 60845 if z.IsJSONHandle() { 60846 z.WriteStr("\"Index\"") 60847 } else { 60848 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 60849 } 60850 r.WriteMapElemValue() 60851 if false { 60852 } else { 60853 r.EncodeUint(uint64(x.Index)) 60854 } 60855 } 60856 if yyr2 || yy2arr2 { 60857 r.WriteArrayElem() 60858 if false { 60859 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 60860 z.EncExtension(x.LastContact, yyxt10) 60861 } else { 60862 r.EncodeInt(int64(x.LastContact)) 60863 } 60864 } else { 60865 r.WriteMapElemKey() 60866 if z.IsJSONHandle() { 60867 z.WriteStr("\"LastContact\"") 60868 } else { 60869 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 60870 } 60871 r.WriteMapElemValue() 60872 if false { 60873 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 60874 z.EncExtension(x.LastContact, yyxt11) 60875 } else { 60876 r.EncodeInt(int64(x.LastContact)) 60877 } 60878 } 60879 if yyr2 || yy2arr2 { 60880 r.WriteArrayElem() 60881 if false { 60882 } else { 60883 r.EncodeBool(bool(x.KnownLeader)) 60884 } 60885 } else { 60886 r.WriteMapElemKey() 60887 if z.IsJSONHandle() { 60888 z.WriteStr("\"KnownLeader\"") 60889 } else { 60890 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 60891 } 60892 r.WriteMapElemValue() 60893 if false { 60894 } else { 60895 r.EncodeBool(bool(x.KnownLeader)) 60896 } 60897 } 60898 if yyr2 || yy2arr2 { 60899 r.WriteArrayEnd() 60900 } else { 60901 r.WriteMapEnd() 60902 } 60903 } 60904 } 60905 } 60906 60907 func (x *JobBatchDeregisterResponse) CodecDecodeSelf(d *codec1978.Decoder) { 60908 var h codecSelfer100 60909 z, r := codec1978.GenHelperDecoder(d) 60910 _, _, _ = h, z, r 60911 if false { 60912 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 60913 z.DecExtension(x, yyxt1) 60914 } else { 60915 yyct2 := r.ContainerType() 60916 if yyct2 == codecSelferValueTypeMap100 { 60917 yyl2 := r.ReadMapStart() 60918 if yyl2 == 0 { 60919 r.ReadMapEnd() 60920 } else { 60921 x.codecDecodeSelfFromMap(yyl2, d) 60922 } 60923 } else if yyct2 == codecSelferValueTypeArray100 { 60924 yyl2 := r.ReadArrayStart() 60925 if yyl2 == 0 { 60926 r.ReadArrayEnd() 60927 } else { 60928 x.codecDecodeSelfFromArray(yyl2, d) 60929 } 60930 } else { 60931 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 60932 } 60933 } 60934 } 60935 60936 func (x *JobBatchDeregisterResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 60937 var h codecSelfer100 60938 z, r := codec1978.GenHelperDecoder(d) 60939 _, _, _ = h, z, r 60940 var yyhl3 bool = l >= 0 60941 for yyj3 := 0; ; yyj3++ { 60942 if yyhl3 { 60943 if yyj3 >= l { 60944 break 60945 } 60946 } else { 60947 if r.CheckBreak() { 60948 break 60949 } 60950 } 60951 r.ReadMapElemKey() 60952 yys3 := z.StringView(r.DecodeStringAsBytes()) 60953 r.ReadMapElemValue() 60954 switch yys3 { 60955 case "JobEvals": 60956 if r.TryDecodeAsNil() { 60957 x.JobEvals = nil 60958 } else { 60959 if false { 60960 } else { 60961 h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) 60962 } 60963 } 60964 case "Index": 60965 if r.TryDecodeAsNil() { 60966 x.QueryMeta.Index = 0 60967 } else { 60968 x.Index = (uint64)(r.DecodeUint64()) 60969 } 60970 case "LastContact": 60971 if r.TryDecodeAsNil() { 60972 x.QueryMeta.LastContact = 0 60973 } else { 60974 if false { 60975 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 60976 z.DecExtension(x.LastContact, yyxt8) 60977 } else { 60978 x.LastContact = (time.Duration)(r.DecodeInt64()) 60979 } 60980 } 60981 case "KnownLeader": 60982 if r.TryDecodeAsNil() { 60983 x.QueryMeta.KnownLeader = false 60984 } else { 60985 x.KnownLeader = (bool)(r.DecodeBool()) 60986 } 60987 default: 60988 z.DecStructFieldNotFound(-1, yys3) 60989 } // end switch yys3 60990 } // end for yyj3 60991 r.ReadMapEnd() 60992 } 60993 60994 func (x *JobBatchDeregisterResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 60995 var h codecSelfer100 60996 z, r := codec1978.GenHelperDecoder(d) 60997 _, _, _ = h, z, r 60998 var yyj10 int 60999 var yyb10 bool 61000 var yyhl10 bool = l >= 0 61001 yyj10++ 61002 if yyhl10 { 61003 yyb10 = yyj10 > l 61004 } else { 61005 yyb10 = r.CheckBreak() 61006 } 61007 if yyb10 { 61008 r.ReadArrayEnd() 61009 return 61010 } 61011 r.ReadArrayElem() 61012 if r.TryDecodeAsNil() { 61013 x.JobEvals = nil 61014 } else { 61015 if false { 61016 } else { 61017 h.decMapNamespacedIDstring((*map[NamespacedID]string)(&x.JobEvals), d) 61018 } 61019 } 61020 yyj10++ 61021 if yyhl10 { 61022 yyb10 = yyj10 > l 61023 } else { 61024 yyb10 = r.CheckBreak() 61025 } 61026 if yyb10 { 61027 r.ReadArrayEnd() 61028 return 61029 } 61030 r.ReadArrayElem() 61031 if r.TryDecodeAsNil() { 61032 x.QueryMeta.Index = 0 61033 } else { 61034 x.Index = (uint64)(r.DecodeUint64()) 61035 } 61036 yyj10++ 61037 if yyhl10 { 61038 yyb10 = yyj10 > l 61039 } else { 61040 yyb10 = r.CheckBreak() 61041 } 61042 if yyb10 { 61043 r.ReadArrayEnd() 61044 return 61045 } 61046 r.ReadArrayElem() 61047 if r.TryDecodeAsNil() { 61048 x.QueryMeta.LastContact = 0 61049 } else { 61050 if false { 61051 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 61052 z.DecExtension(x.LastContact, yyxt15) 61053 } else { 61054 x.LastContact = (time.Duration)(r.DecodeInt64()) 61055 } 61056 } 61057 yyj10++ 61058 if yyhl10 { 61059 yyb10 = yyj10 > l 61060 } else { 61061 yyb10 = r.CheckBreak() 61062 } 61063 if yyb10 { 61064 r.ReadArrayEnd() 61065 return 61066 } 61067 r.ReadArrayElem() 61068 if r.TryDecodeAsNil() { 61069 x.QueryMeta.KnownLeader = false 61070 } else { 61071 x.KnownLeader = (bool)(r.DecodeBool()) 61072 } 61073 for { 61074 yyj10++ 61075 if yyhl10 { 61076 yyb10 = yyj10 > l 61077 } else { 61078 yyb10 = r.CheckBreak() 61079 } 61080 if yyb10 { 61081 break 61082 } 61083 r.ReadArrayElem() 61084 z.DecStructFieldNotFound(yyj10-1, "") 61085 } 61086 r.ReadArrayEnd() 61087 } 61088 61089 func (x *JobValidateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61090 var h codecSelfer100 61091 z, r := codec1978.GenHelperEncoder(e) 61092 _, _, _ = h, z, r 61093 if x == nil { 61094 r.EncodeNil() 61095 } else { 61096 if false { 61097 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61098 z.EncExtension(x, yyxt1) 61099 } else { 61100 yysep2 := !z.EncBinary() 61101 yy2arr2 := z.EncBasicHandle().StructToArray 61102 _, _ = yysep2, yy2arr2 61103 const yyr2 bool = false // struct tag has 'toArray' 61104 if yyr2 || yy2arr2 { 61105 r.WriteArrayStart(4) 61106 } else { 61107 r.WriteMapStart(4) 61108 } 61109 if yyr2 || yy2arr2 { 61110 r.WriteArrayElem() 61111 if false { 61112 } else { 61113 r.EncodeBool(bool(x.DriverConfigValidated)) 61114 } 61115 } else { 61116 r.WriteMapElemKey() 61117 if z.IsJSONHandle() { 61118 z.WriteStr("\"DriverConfigValidated\"") 61119 } else { 61120 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverConfigValidated`) 61121 } 61122 r.WriteMapElemValue() 61123 if false { 61124 } else { 61125 r.EncodeBool(bool(x.DriverConfigValidated)) 61126 } 61127 } 61128 if yyr2 || yy2arr2 { 61129 r.WriteArrayElem() 61130 if x.ValidationErrors == nil { 61131 r.EncodeNil() 61132 } else { 61133 if false { 61134 } else { 61135 z.F.EncSliceStringV(x.ValidationErrors, e) 61136 } 61137 } 61138 } else { 61139 r.WriteMapElemKey() 61140 if z.IsJSONHandle() { 61141 z.WriteStr("\"ValidationErrors\"") 61142 } else { 61143 r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationErrors`) 61144 } 61145 r.WriteMapElemValue() 61146 if x.ValidationErrors == nil { 61147 r.EncodeNil() 61148 } else { 61149 if false { 61150 } else { 61151 z.F.EncSliceStringV(x.ValidationErrors, e) 61152 } 61153 } 61154 } 61155 if yyr2 || yy2arr2 { 61156 r.WriteArrayElem() 61157 if false { 61158 } else { 61159 if z.EncBasicHandle().StringToRaw { 61160 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 61161 } else { 61162 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 61163 } 61164 } 61165 } else { 61166 r.WriteMapElemKey() 61167 if z.IsJSONHandle() { 61168 z.WriteStr("\"Error\"") 61169 } else { 61170 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 61171 } 61172 r.WriteMapElemValue() 61173 if false { 61174 } else { 61175 if z.EncBasicHandle().StringToRaw { 61176 r.EncodeStringBytesRaw(z.BytesView(string(x.Error))) 61177 } else { 61178 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Error)) 61179 } 61180 } 61181 } 61182 if yyr2 || yy2arr2 { 61183 r.WriteArrayElem() 61184 if false { 61185 } else { 61186 if z.EncBasicHandle().StringToRaw { 61187 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 61188 } else { 61189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 61190 } 61191 } 61192 } else { 61193 r.WriteMapElemKey() 61194 if z.IsJSONHandle() { 61195 z.WriteStr("\"Warnings\"") 61196 } else { 61197 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 61198 } 61199 r.WriteMapElemValue() 61200 if false { 61201 } else { 61202 if z.EncBasicHandle().StringToRaw { 61203 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 61204 } else { 61205 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 61206 } 61207 } 61208 } 61209 if yyr2 || yy2arr2 { 61210 r.WriteArrayEnd() 61211 } else { 61212 r.WriteMapEnd() 61213 } 61214 } 61215 } 61216 } 61217 61218 func (x *JobValidateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 61219 var h codecSelfer100 61220 z, r := codec1978.GenHelperDecoder(d) 61221 _, _, _ = h, z, r 61222 if false { 61223 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61224 z.DecExtension(x, yyxt1) 61225 } else { 61226 yyct2 := r.ContainerType() 61227 if yyct2 == codecSelferValueTypeMap100 { 61228 yyl2 := r.ReadMapStart() 61229 if yyl2 == 0 { 61230 r.ReadMapEnd() 61231 } else { 61232 x.codecDecodeSelfFromMap(yyl2, d) 61233 } 61234 } else if yyct2 == codecSelferValueTypeArray100 { 61235 yyl2 := r.ReadArrayStart() 61236 if yyl2 == 0 { 61237 r.ReadArrayEnd() 61238 } else { 61239 x.codecDecodeSelfFromArray(yyl2, d) 61240 } 61241 } else { 61242 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 61243 } 61244 } 61245 } 61246 61247 func (x *JobValidateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 61248 var h codecSelfer100 61249 z, r := codec1978.GenHelperDecoder(d) 61250 _, _, _ = h, z, r 61251 var yyhl3 bool = l >= 0 61252 for yyj3 := 0; ; yyj3++ { 61253 if yyhl3 { 61254 if yyj3 >= l { 61255 break 61256 } 61257 } else { 61258 if r.CheckBreak() { 61259 break 61260 } 61261 } 61262 r.ReadMapElemKey() 61263 yys3 := z.StringView(r.DecodeStringAsBytes()) 61264 r.ReadMapElemValue() 61265 switch yys3 { 61266 case "DriverConfigValidated": 61267 if r.TryDecodeAsNil() { 61268 x.DriverConfigValidated = false 61269 } else { 61270 x.DriverConfigValidated = (bool)(r.DecodeBool()) 61271 } 61272 case "ValidationErrors": 61273 if r.TryDecodeAsNil() { 61274 x.ValidationErrors = nil 61275 } else { 61276 if false { 61277 } else { 61278 z.F.DecSliceStringX(&x.ValidationErrors, d) 61279 } 61280 } 61281 case "Error": 61282 if r.TryDecodeAsNil() { 61283 x.Error = "" 61284 } else { 61285 x.Error = (string)(r.DecodeString()) 61286 } 61287 case "Warnings": 61288 if r.TryDecodeAsNil() { 61289 x.Warnings = "" 61290 } else { 61291 x.Warnings = (string)(r.DecodeString()) 61292 } 61293 default: 61294 z.DecStructFieldNotFound(-1, yys3) 61295 } // end switch yys3 61296 } // end for yyj3 61297 r.ReadMapEnd() 61298 } 61299 61300 func (x *JobValidateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 61301 var h codecSelfer100 61302 z, r := codec1978.GenHelperDecoder(d) 61303 _, _, _ = h, z, r 61304 var yyj9 int 61305 var yyb9 bool 61306 var yyhl9 bool = l >= 0 61307 yyj9++ 61308 if yyhl9 { 61309 yyb9 = yyj9 > l 61310 } else { 61311 yyb9 = r.CheckBreak() 61312 } 61313 if yyb9 { 61314 r.ReadArrayEnd() 61315 return 61316 } 61317 r.ReadArrayElem() 61318 if r.TryDecodeAsNil() { 61319 x.DriverConfigValidated = false 61320 } else { 61321 x.DriverConfigValidated = (bool)(r.DecodeBool()) 61322 } 61323 yyj9++ 61324 if yyhl9 { 61325 yyb9 = yyj9 > l 61326 } else { 61327 yyb9 = r.CheckBreak() 61328 } 61329 if yyb9 { 61330 r.ReadArrayEnd() 61331 return 61332 } 61333 r.ReadArrayElem() 61334 if r.TryDecodeAsNil() { 61335 x.ValidationErrors = nil 61336 } else { 61337 if false { 61338 } else { 61339 z.F.DecSliceStringX(&x.ValidationErrors, d) 61340 } 61341 } 61342 yyj9++ 61343 if yyhl9 { 61344 yyb9 = yyj9 > l 61345 } else { 61346 yyb9 = r.CheckBreak() 61347 } 61348 if yyb9 { 61349 r.ReadArrayEnd() 61350 return 61351 } 61352 r.ReadArrayElem() 61353 if r.TryDecodeAsNil() { 61354 x.Error = "" 61355 } else { 61356 x.Error = (string)(r.DecodeString()) 61357 } 61358 yyj9++ 61359 if yyhl9 { 61360 yyb9 = yyj9 > l 61361 } else { 61362 yyb9 = r.CheckBreak() 61363 } 61364 if yyb9 { 61365 r.ReadArrayEnd() 61366 return 61367 } 61368 r.ReadArrayElem() 61369 if r.TryDecodeAsNil() { 61370 x.Warnings = "" 61371 } else { 61372 x.Warnings = (string)(r.DecodeString()) 61373 } 61374 for { 61375 yyj9++ 61376 if yyhl9 { 61377 yyb9 = yyj9 > l 61378 } else { 61379 yyb9 = r.CheckBreak() 61380 } 61381 if yyb9 { 61382 break 61383 } 61384 r.ReadArrayElem() 61385 z.DecStructFieldNotFound(yyj9-1, "") 61386 } 61387 r.ReadArrayEnd() 61388 } 61389 61390 func (x *NodeUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61391 var h codecSelfer100 61392 z, r := codec1978.GenHelperEncoder(e) 61393 _, _, _ = h, z, r 61394 if x == nil { 61395 r.EncodeNil() 61396 } else { 61397 if false { 61398 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61399 z.EncExtension(x, yyxt1) 61400 } else { 61401 yysep2 := !z.EncBinary() 61402 yy2arr2 := z.EncBasicHandle().StructToArray 61403 _, _ = yysep2, yy2arr2 61404 const yyr2 bool = false // struct tag has 'toArray' 61405 if yyr2 || yy2arr2 { 61406 r.WriteArrayStart(10) 61407 } else { 61408 r.WriteMapStart(10) 61409 } 61410 if yyr2 || yy2arr2 { 61411 r.WriteArrayElem() 61412 if false { 61413 } else if yyxt4 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt4 != nil { 61414 z.EncExtension(x.HeartbeatTTL, yyxt4) 61415 } else { 61416 r.EncodeInt(int64(x.HeartbeatTTL)) 61417 } 61418 } else { 61419 r.WriteMapElemKey() 61420 if z.IsJSONHandle() { 61421 z.WriteStr("\"HeartbeatTTL\"") 61422 } else { 61423 r.EncodeStringEnc(codecSelferCcUTF8100, `HeartbeatTTL`) 61424 } 61425 r.WriteMapElemValue() 61426 if false { 61427 } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { 61428 z.EncExtension(x.HeartbeatTTL, yyxt5) 61429 } else { 61430 r.EncodeInt(int64(x.HeartbeatTTL)) 61431 } 61432 } 61433 if yyr2 || yy2arr2 { 61434 r.WriteArrayElem() 61435 if x.EvalIDs == nil { 61436 r.EncodeNil() 61437 } else { 61438 if false { 61439 } else { 61440 z.F.EncSliceStringV(x.EvalIDs, e) 61441 } 61442 } 61443 } else { 61444 r.WriteMapElemKey() 61445 if z.IsJSONHandle() { 61446 z.WriteStr("\"EvalIDs\"") 61447 } else { 61448 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 61449 } 61450 r.WriteMapElemValue() 61451 if x.EvalIDs == nil { 61452 r.EncodeNil() 61453 } else { 61454 if false { 61455 } else { 61456 z.F.EncSliceStringV(x.EvalIDs, e) 61457 } 61458 } 61459 } 61460 if yyr2 || yy2arr2 { 61461 r.WriteArrayElem() 61462 if false { 61463 } else { 61464 r.EncodeUint(uint64(x.EvalCreateIndex)) 61465 } 61466 } else { 61467 r.WriteMapElemKey() 61468 if z.IsJSONHandle() { 61469 z.WriteStr("\"EvalCreateIndex\"") 61470 } else { 61471 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 61472 } 61473 r.WriteMapElemValue() 61474 if false { 61475 } else { 61476 r.EncodeUint(uint64(x.EvalCreateIndex)) 61477 } 61478 } 61479 if yyr2 || yy2arr2 { 61480 r.WriteArrayElem() 61481 if false { 61482 } else { 61483 r.EncodeUint(uint64(x.NodeModifyIndex)) 61484 } 61485 } else { 61486 r.WriteMapElemKey() 61487 if z.IsJSONHandle() { 61488 z.WriteStr("\"NodeModifyIndex\"") 61489 } else { 61490 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 61491 } 61492 r.WriteMapElemValue() 61493 if false { 61494 } else { 61495 r.EncodeUint(uint64(x.NodeModifyIndex)) 61496 } 61497 } 61498 if yyr2 || yy2arr2 { 61499 r.WriteArrayElem() 61500 if false { 61501 } else { 61502 if z.EncBasicHandle().StringToRaw { 61503 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) 61504 } else { 61505 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) 61506 } 61507 } 61508 } else { 61509 r.WriteMapElemKey() 61510 if z.IsJSONHandle() { 61511 z.WriteStr("\"LeaderRPCAddr\"") 61512 } else { 61513 r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderRPCAddr`) 61514 } 61515 r.WriteMapElemValue() 61516 if false { 61517 } else { 61518 if z.EncBasicHandle().StringToRaw { 61519 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderRPCAddr))) 61520 } else { 61521 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderRPCAddr)) 61522 } 61523 } 61524 } 61525 if yyr2 || yy2arr2 { 61526 r.WriteArrayElem() 61527 if false { 61528 } else { 61529 r.EncodeInt(int64(x.NumNodes)) 61530 } 61531 } else { 61532 r.WriteMapElemKey() 61533 if z.IsJSONHandle() { 61534 z.WriteStr("\"NumNodes\"") 61535 } else { 61536 r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) 61537 } 61538 r.WriteMapElemValue() 61539 if false { 61540 } else { 61541 r.EncodeInt(int64(x.NumNodes)) 61542 } 61543 } 61544 if yyr2 || yy2arr2 { 61545 r.WriteArrayElem() 61546 if x.Servers == nil { 61547 r.EncodeNil() 61548 } else { 61549 if false { 61550 } else { 61551 h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) 61552 } 61553 } 61554 } else { 61555 r.WriteMapElemKey() 61556 if z.IsJSONHandle() { 61557 z.WriteStr("\"Servers\"") 61558 } else { 61559 r.EncodeStringEnc(codecSelferCcUTF8100, `Servers`) 61560 } 61561 r.WriteMapElemValue() 61562 if x.Servers == nil { 61563 r.EncodeNil() 61564 } else { 61565 if false { 61566 } else { 61567 h.encSlicePtrtoNodeServerInfo(([]*NodeServerInfo)(x.Servers), e) 61568 } 61569 } 61570 } 61571 if yyr2 || yy2arr2 { 61572 r.WriteArrayElem() 61573 if false { 61574 } else { 61575 r.EncodeUint(uint64(x.Index)) 61576 } 61577 } else { 61578 r.WriteMapElemKey() 61579 if z.IsJSONHandle() { 61580 z.WriteStr("\"Index\"") 61581 } else { 61582 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 61583 } 61584 r.WriteMapElemValue() 61585 if false { 61586 } else { 61587 r.EncodeUint(uint64(x.Index)) 61588 } 61589 } 61590 if yyr2 || yy2arr2 { 61591 r.WriteArrayElem() 61592 if false { 61593 } else if yyxt28 := z.Extension(z.I2Rtid(x.LastContact)); yyxt28 != nil { 61594 z.EncExtension(x.LastContact, yyxt28) 61595 } else { 61596 r.EncodeInt(int64(x.LastContact)) 61597 } 61598 } else { 61599 r.WriteMapElemKey() 61600 if z.IsJSONHandle() { 61601 z.WriteStr("\"LastContact\"") 61602 } else { 61603 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 61604 } 61605 r.WriteMapElemValue() 61606 if false { 61607 } else if yyxt29 := z.Extension(z.I2Rtid(x.LastContact)); yyxt29 != nil { 61608 z.EncExtension(x.LastContact, yyxt29) 61609 } else { 61610 r.EncodeInt(int64(x.LastContact)) 61611 } 61612 } 61613 if yyr2 || yy2arr2 { 61614 r.WriteArrayElem() 61615 if false { 61616 } else { 61617 r.EncodeBool(bool(x.KnownLeader)) 61618 } 61619 } else { 61620 r.WriteMapElemKey() 61621 if z.IsJSONHandle() { 61622 z.WriteStr("\"KnownLeader\"") 61623 } else { 61624 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 61625 } 61626 r.WriteMapElemValue() 61627 if false { 61628 } else { 61629 r.EncodeBool(bool(x.KnownLeader)) 61630 } 61631 } 61632 if yyr2 || yy2arr2 { 61633 r.WriteArrayEnd() 61634 } else { 61635 r.WriteMapEnd() 61636 } 61637 } 61638 } 61639 } 61640 61641 func (x *NodeUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 61642 var h codecSelfer100 61643 z, r := codec1978.GenHelperDecoder(d) 61644 _, _, _ = h, z, r 61645 if false { 61646 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61647 z.DecExtension(x, yyxt1) 61648 } else { 61649 yyct2 := r.ContainerType() 61650 if yyct2 == codecSelferValueTypeMap100 { 61651 yyl2 := r.ReadMapStart() 61652 if yyl2 == 0 { 61653 r.ReadMapEnd() 61654 } else { 61655 x.codecDecodeSelfFromMap(yyl2, d) 61656 } 61657 } else if yyct2 == codecSelferValueTypeArray100 { 61658 yyl2 := r.ReadArrayStart() 61659 if yyl2 == 0 { 61660 r.ReadArrayEnd() 61661 } else { 61662 x.codecDecodeSelfFromArray(yyl2, d) 61663 } 61664 } else { 61665 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 61666 } 61667 } 61668 } 61669 61670 func (x *NodeUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 61671 var h codecSelfer100 61672 z, r := codec1978.GenHelperDecoder(d) 61673 _, _, _ = h, z, r 61674 var yyhl3 bool = l >= 0 61675 for yyj3 := 0; ; yyj3++ { 61676 if yyhl3 { 61677 if yyj3 >= l { 61678 break 61679 } 61680 } else { 61681 if r.CheckBreak() { 61682 break 61683 } 61684 } 61685 r.ReadMapElemKey() 61686 yys3 := z.StringView(r.DecodeStringAsBytes()) 61687 r.ReadMapElemValue() 61688 switch yys3 { 61689 case "HeartbeatTTL": 61690 if r.TryDecodeAsNil() { 61691 x.HeartbeatTTL = 0 61692 } else { 61693 if false { 61694 } else if yyxt5 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt5 != nil { 61695 z.DecExtension(x.HeartbeatTTL, yyxt5) 61696 } else { 61697 x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) 61698 } 61699 } 61700 case "EvalIDs": 61701 if r.TryDecodeAsNil() { 61702 x.EvalIDs = nil 61703 } else { 61704 if false { 61705 } else { 61706 z.F.DecSliceStringX(&x.EvalIDs, d) 61707 } 61708 } 61709 case "EvalCreateIndex": 61710 if r.TryDecodeAsNil() { 61711 x.EvalCreateIndex = 0 61712 } else { 61713 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 61714 } 61715 case "NodeModifyIndex": 61716 if r.TryDecodeAsNil() { 61717 x.NodeModifyIndex = 0 61718 } else { 61719 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 61720 } 61721 case "LeaderRPCAddr": 61722 if r.TryDecodeAsNil() { 61723 x.LeaderRPCAddr = "" 61724 } else { 61725 x.LeaderRPCAddr = (string)(r.DecodeString()) 61726 } 61727 case "NumNodes": 61728 if r.TryDecodeAsNil() { 61729 x.NumNodes = 0 61730 } else { 61731 x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 61732 } 61733 case "Servers": 61734 if r.TryDecodeAsNil() { 61735 x.Servers = nil 61736 } else { 61737 if false { 61738 } else { 61739 h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) 61740 } 61741 } 61742 case "Index": 61743 if r.TryDecodeAsNil() { 61744 x.QueryMeta.Index = 0 61745 } else { 61746 x.Index = (uint64)(r.DecodeUint64()) 61747 } 61748 case "LastContact": 61749 if r.TryDecodeAsNil() { 61750 x.QueryMeta.LastContact = 0 61751 } else { 61752 if false { 61753 } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { 61754 z.DecExtension(x.LastContact, yyxt16) 61755 } else { 61756 x.LastContact = (time.Duration)(r.DecodeInt64()) 61757 } 61758 } 61759 case "KnownLeader": 61760 if r.TryDecodeAsNil() { 61761 x.QueryMeta.KnownLeader = false 61762 } else { 61763 x.KnownLeader = (bool)(r.DecodeBool()) 61764 } 61765 default: 61766 z.DecStructFieldNotFound(-1, yys3) 61767 } // end switch yys3 61768 } // end for yyj3 61769 r.ReadMapEnd() 61770 } 61771 61772 func (x *NodeUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 61773 var h codecSelfer100 61774 z, r := codec1978.GenHelperDecoder(d) 61775 _, _, _ = h, z, r 61776 var yyj18 int 61777 var yyb18 bool 61778 var yyhl18 bool = l >= 0 61779 yyj18++ 61780 if yyhl18 { 61781 yyb18 = yyj18 > l 61782 } else { 61783 yyb18 = r.CheckBreak() 61784 } 61785 if yyb18 { 61786 r.ReadArrayEnd() 61787 return 61788 } 61789 r.ReadArrayElem() 61790 if r.TryDecodeAsNil() { 61791 x.HeartbeatTTL = 0 61792 } else { 61793 if false { 61794 } else if yyxt20 := z.Extension(z.I2Rtid(x.HeartbeatTTL)); yyxt20 != nil { 61795 z.DecExtension(x.HeartbeatTTL, yyxt20) 61796 } else { 61797 x.HeartbeatTTL = (time.Duration)(r.DecodeInt64()) 61798 } 61799 } 61800 yyj18++ 61801 if yyhl18 { 61802 yyb18 = yyj18 > l 61803 } else { 61804 yyb18 = r.CheckBreak() 61805 } 61806 if yyb18 { 61807 r.ReadArrayEnd() 61808 return 61809 } 61810 r.ReadArrayElem() 61811 if r.TryDecodeAsNil() { 61812 x.EvalIDs = nil 61813 } else { 61814 if false { 61815 } else { 61816 z.F.DecSliceStringX(&x.EvalIDs, d) 61817 } 61818 } 61819 yyj18++ 61820 if yyhl18 { 61821 yyb18 = yyj18 > l 61822 } else { 61823 yyb18 = r.CheckBreak() 61824 } 61825 if yyb18 { 61826 r.ReadArrayEnd() 61827 return 61828 } 61829 r.ReadArrayElem() 61830 if r.TryDecodeAsNil() { 61831 x.EvalCreateIndex = 0 61832 } else { 61833 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 61834 } 61835 yyj18++ 61836 if yyhl18 { 61837 yyb18 = yyj18 > l 61838 } else { 61839 yyb18 = r.CheckBreak() 61840 } 61841 if yyb18 { 61842 r.ReadArrayEnd() 61843 return 61844 } 61845 r.ReadArrayElem() 61846 if r.TryDecodeAsNil() { 61847 x.NodeModifyIndex = 0 61848 } else { 61849 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 61850 } 61851 yyj18++ 61852 if yyhl18 { 61853 yyb18 = yyj18 > l 61854 } else { 61855 yyb18 = r.CheckBreak() 61856 } 61857 if yyb18 { 61858 r.ReadArrayEnd() 61859 return 61860 } 61861 r.ReadArrayElem() 61862 if r.TryDecodeAsNil() { 61863 x.LeaderRPCAddr = "" 61864 } else { 61865 x.LeaderRPCAddr = (string)(r.DecodeString()) 61866 } 61867 yyj18++ 61868 if yyhl18 { 61869 yyb18 = yyj18 > l 61870 } else { 61871 yyb18 = r.CheckBreak() 61872 } 61873 if yyb18 { 61874 r.ReadArrayEnd() 61875 return 61876 } 61877 r.ReadArrayElem() 61878 if r.TryDecodeAsNil() { 61879 x.NumNodes = 0 61880 } else { 61881 x.NumNodes = (int32)(z.C.IntV(r.DecodeInt64(), 32)) 61882 } 61883 yyj18++ 61884 if yyhl18 { 61885 yyb18 = yyj18 > l 61886 } else { 61887 yyb18 = r.CheckBreak() 61888 } 61889 if yyb18 { 61890 r.ReadArrayEnd() 61891 return 61892 } 61893 r.ReadArrayElem() 61894 if r.TryDecodeAsNil() { 61895 x.Servers = nil 61896 } else { 61897 if false { 61898 } else { 61899 h.decSlicePtrtoNodeServerInfo((*[]*NodeServerInfo)(&x.Servers), d) 61900 } 61901 } 61902 yyj18++ 61903 if yyhl18 { 61904 yyb18 = yyj18 > l 61905 } else { 61906 yyb18 = r.CheckBreak() 61907 } 61908 if yyb18 { 61909 r.ReadArrayEnd() 61910 return 61911 } 61912 r.ReadArrayElem() 61913 if r.TryDecodeAsNil() { 61914 x.QueryMeta.Index = 0 61915 } else { 61916 x.Index = (uint64)(r.DecodeUint64()) 61917 } 61918 yyj18++ 61919 if yyhl18 { 61920 yyb18 = yyj18 > l 61921 } else { 61922 yyb18 = r.CheckBreak() 61923 } 61924 if yyb18 { 61925 r.ReadArrayEnd() 61926 return 61927 } 61928 r.ReadArrayElem() 61929 if r.TryDecodeAsNil() { 61930 x.QueryMeta.LastContact = 0 61931 } else { 61932 if false { 61933 } else if yyxt31 := z.Extension(z.I2Rtid(x.LastContact)); yyxt31 != nil { 61934 z.DecExtension(x.LastContact, yyxt31) 61935 } else { 61936 x.LastContact = (time.Duration)(r.DecodeInt64()) 61937 } 61938 } 61939 yyj18++ 61940 if yyhl18 { 61941 yyb18 = yyj18 > l 61942 } else { 61943 yyb18 = r.CheckBreak() 61944 } 61945 if yyb18 { 61946 r.ReadArrayEnd() 61947 return 61948 } 61949 r.ReadArrayElem() 61950 if r.TryDecodeAsNil() { 61951 x.QueryMeta.KnownLeader = false 61952 } else { 61953 x.KnownLeader = (bool)(r.DecodeBool()) 61954 } 61955 for { 61956 yyj18++ 61957 if yyhl18 { 61958 yyb18 = yyj18 > l 61959 } else { 61960 yyb18 = r.CheckBreak() 61961 } 61962 if yyb18 { 61963 break 61964 } 61965 r.ReadArrayElem() 61966 z.DecStructFieldNotFound(yyj18-1, "") 61967 } 61968 r.ReadArrayEnd() 61969 } 61970 61971 func (x *NodeDrainUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 61972 var h codecSelfer100 61973 z, r := codec1978.GenHelperEncoder(e) 61974 _, _, _ = h, z, r 61975 if x == nil { 61976 r.EncodeNil() 61977 } else { 61978 if false { 61979 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 61980 z.EncExtension(x, yyxt1) 61981 } else { 61982 yysep2 := !z.EncBinary() 61983 yy2arr2 := z.EncBasicHandle().StructToArray 61984 _, _ = yysep2, yy2arr2 61985 const yyr2 bool = false // struct tag has 'toArray' 61986 if yyr2 || yy2arr2 { 61987 r.WriteArrayStart(4) 61988 } else { 61989 r.WriteMapStart(4) 61990 } 61991 if yyr2 || yy2arr2 { 61992 r.WriteArrayElem() 61993 if false { 61994 } else { 61995 r.EncodeUint(uint64(x.NodeModifyIndex)) 61996 } 61997 } else { 61998 r.WriteMapElemKey() 61999 if z.IsJSONHandle() { 62000 z.WriteStr("\"NodeModifyIndex\"") 62001 } else { 62002 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 62003 } 62004 r.WriteMapElemValue() 62005 if false { 62006 } else { 62007 r.EncodeUint(uint64(x.NodeModifyIndex)) 62008 } 62009 } 62010 if yyr2 || yy2arr2 { 62011 r.WriteArrayElem() 62012 if x.EvalIDs == nil { 62013 r.EncodeNil() 62014 } else { 62015 if false { 62016 } else { 62017 z.F.EncSliceStringV(x.EvalIDs, e) 62018 } 62019 } 62020 } else { 62021 r.WriteMapElemKey() 62022 if z.IsJSONHandle() { 62023 z.WriteStr("\"EvalIDs\"") 62024 } else { 62025 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 62026 } 62027 r.WriteMapElemValue() 62028 if x.EvalIDs == nil { 62029 r.EncodeNil() 62030 } else { 62031 if false { 62032 } else { 62033 z.F.EncSliceStringV(x.EvalIDs, e) 62034 } 62035 } 62036 } 62037 if yyr2 || yy2arr2 { 62038 r.WriteArrayElem() 62039 if false { 62040 } else { 62041 r.EncodeUint(uint64(x.EvalCreateIndex)) 62042 } 62043 } else { 62044 r.WriteMapElemKey() 62045 if z.IsJSONHandle() { 62046 z.WriteStr("\"EvalCreateIndex\"") 62047 } else { 62048 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 62049 } 62050 r.WriteMapElemValue() 62051 if false { 62052 } else { 62053 r.EncodeUint(uint64(x.EvalCreateIndex)) 62054 } 62055 } 62056 if yyr2 || yy2arr2 { 62057 r.WriteArrayElem() 62058 if false { 62059 } else { 62060 r.EncodeUint(uint64(x.Index)) 62061 } 62062 } else { 62063 r.WriteMapElemKey() 62064 if z.IsJSONHandle() { 62065 z.WriteStr("\"Index\"") 62066 } else { 62067 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62068 } 62069 r.WriteMapElemValue() 62070 if false { 62071 } else { 62072 r.EncodeUint(uint64(x.Index)) 62073 } 62074 } 62075 if yyr2 || yy2arr2 { 62076 r.WriteArrayEnd() 62077 } else { 62078 r.WriteMapEnd() 62079 } 62080 } 62081 } 62082 } 62083 62084 func (x *NodeDrainUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62085 var h codecSelfer100 62086 z, r := codec1978.GenHelperDecoder(d) 62087 _, _, _ = h, z, r 62088 if false { 62089 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62090 z.DecExtension(x, yyxt1) 62091 } else { 62092 yyct2 := r.ContainerType() 62093 if yyct2 == codecSelferValueTypeMap100 { 62094 yyl2 := r.ReadMapStart() 62095 if yyl2 == 0 { 62096 r.ReadMapEnd() 62097 } else { 62098 x.codecDecodeSelfFromMap(yyl2, d) 62099 } 62100 } else if yyct2 == codecSelferValueTypeArray100 { 62101 yyl2 := r.ReadArrayStart() 62102 if yyl2 == 0 { 62103 r.ReadArrayEnd() 62104 } else { 62105 x.codecDecodeSelfFromArray(yyl2, d) 62106 } 62107 } else { 62108 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62109 } 62110 } 62111 } 62112 62113 func (x *NodeDrainUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62114 var h codecSelfer100 62115 z, r := codec1978.GenHelperDecoder(d) 62116 _, _, _ = h, z, r 62117 var yyhl3 bool = l >= 0 62118 for yyj3 := 0; ; yyj3++ { 62119 if yyhl3 { 62120 if yyj3 >= l { 62121 break 62122 } 62123 } else { 62124 if r.CheckBreak() { 62125 break 62126 } 62127 } 62128 r.ReadMapElemKey() 62129 yys3 := z.StringView(r.DecodeStringAsBytes()) 62130 r.ReadMapElemValue() 62131 switch yys3 { 62132 case "NodeModifyIndex": 62133 if r.TryDecodeAsNil() { 62134 x.NodeModifyIndex = 0 62135 } else { 62136 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 62137 } 62138 case "EvalIDs": 62139 if r.TryDecodeAsNil() { 62140 x.EvalIDs = nil 62141 } else { 62142 if false { 62143 } else { 62144 z.F.DecSliceStringX(&x.EvalIDs, d) 62145 } 62146 } 62147 case "EvalCreateIndex": 62148 if r.TryDecodeAsNil() { 62149 x.EvalCreateIndex = 0 62150 } else { 62151 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 62152 } 62153 case "Index": 62154 if r.TryDecodeAsNil() { 62155 x.WriteMeta.Index = 0 62156 } else { 62157 x.Index = (uint64)(r.DecodeUint64()) 62158 } 62159 default: 62160 z.DecStructFieldNotFound(-1, yys3) 62161 } // end switch yys3 62162 } // end for yyj3 62163 r.ReadMapEnd() 62164 } 62165 62166 func (x *NodeDrainUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62167 var h codecSelfer100 62168 z, r := codec1978.GenHelperDecoder(d) 62169 _, _, _ = h, z, r 62170 var yyj9 int 62171 var yyb9 bool 62172 var yyhl9 bool = l >= 0 62173 yyj9++ 62174 if yyhl9 { 62175 yyb9 = yyj9 > l 62176 } else { 62177 yyb9 = r.CheckBreak() 62178 } 62179 if yyb9 { 62180 r.ReadArrayEnd() 62181 return 62182 } 62183 r.ReadArrayElem() 62184 if r.TryDecodeAsNil() { 62185 x.NodeModifyIndex = 0 62186 } else { 62187 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 62188 } 62189 yyj9++ 62190 if yyhl9 { 62191 yyb9 = yyj9 > l 62192 } else { 62193 yyb9 = r.CheckBreak() 62194 } 62195 if yyb9 { 62196 r.ReadArrayEnd() 62197 return 62198 } 62199 r.ReadArrayElem() 62200 if r.TryDecodeAsNil() { 62201 x.EvalIDs = nil 62202 } else { 62203 if false { 62204 } else { 62205 z.F.DecSliceStringX(&x.EvalIDs, d) 62206 } 62207 } 62208 yyj9++ 62209 if yyhl9 { 62210 yyb9 = yyj9 > l 62211 } else { 62212 yyb9 = r.CheckBreak() 62213 } 62214 if yyb9 { 62215 r.ReadArrayEnd() 62216 return 62217 } 62218 r.ReadArrayElem() 62219 if r.TryDecodeAsNil() { 62220 x.EvalCreateIndex = 0 62221 } else { 62222 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 62223 } 62224 yyj9++ 62225 if yyhl9 { 62226 yyb9 = yyj9 > l 62227 } else { 62228 yyb9 = r.CheckBreak() 62229 } 62230 if yyb9 { 62231 r.ReadArrayEnd() 62232 return 62233 } 62234 r.ReadArrayElem() 62235 if r.TryDecodeAsNil() { 62236 x.WriteMeta.Index = 0 62237 } else { 62238 x.Index = (uint64)(r.DecodeUint64()) 62239 } 62240 for { 62241 yyj9++ 62242 if yyhl9 { 62243 yyb9 = yyj9 > l 62244 } else { 62245 yyb9 = r.CheckBreak() 62246 } 62247 if yyb9 { 62248 break 62249 } 62250 r.ReadArrayElem() 62251 z.DecStructFieldNotFound(yyj9-1, "") 62252 } 62253 r.ReadArrayEnd() 62254 } 62255 62256 func (x *NodeEligibilityUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62257 var h codecSelfer100 62258 z, r := codec1978.GenHelperEncoder(e) 62259 _, _, _ = h, z, r 62260 if x == nil { 62261 r.EncodeNil() 62262 } else { 62263 if false { 62264 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62265 z.EncExtension(x, yyxt1) 62266 } else { 62267 yysep2 := !z.EncBinary() 62268 yy2arr2 := z.EncBasicHandle().StructToArray 62269 _, _ = yysep2, yy2arr2 62270 const yyr2 bool = false // struct tag has 'toArray' 62271 if yyr2 || yy2arr2 { 62272 r.WriteArrayStart(4) 62273 } else { 62274 r.WriteMapStart(4) 62275 } 62276 if yyr2 || yy2arr2 { 62277 r.WriteArrayElem() 62278 if false { 62279 } else { 62280 r.EncodeUint(uint64(x.NodeModifyIndex)) 62281 } 62282 } else { 62283 r.WriteMapElemKey() 62284 if z.IsJSONHandle() { 62285 z.WriteStr("\"NodeModifyIndex\"") 62286 } else { 62287 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 62288 } 62289 r.WriteMapElemValue() 62290 if false { 62291 } else { 62292 r.EncodeUint(uint64(x.NodeModifyIndex)) 62293 } 62294 } 62295 if yyr2 || yy2arr2 { 62296 r.WriteArrayElem() 62297 if x.EvalIDs == nil { 62298 r.EncodeNil() 62299 } else { 62300 if false { 62301 } else { 62302 z.F.EncSliceStringV(x.EvalIDs, e) 62303 } 62304 } 62305 } else { 62306 r.WriteMapElemKey() 62307 if z.IsJSONHandle() { 62308 z.WriteStr("\"EvalIDs\"") 62309 } else { 62310 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalIDs`) 62311 } 62312 r.WriteMapElemValue() 62313 if x.EvalIDs == nil { 62314 r.EncodeNil() 62315 } else { 62316 if false { 62317 } else { 62318 z.F.EncSliceStringV(x.EvalIDs, e) 62319 } 62320 } 62321 } 62322 if yyr2 || yy2arr2 { 62323 r.WriteArrayElem() 62324 if false { 62325 } else { 62326 r.EncodeUint(uint64(x.EvalCreateIndex)) 62327 } 62328 } else { 62329 r.WriteMapElemKey() 62330 if z.IsJSONHandle() { 62331 z.WriteStr("\"EvalCreateIndex\"") 62332 } else { 62333 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 62334 } 62335 r.WriteMapElemValue() 62336 if false { 62337 } else { 62338 r.EncodeUint(uint64(x.EvalCreateIndex)) 62339 } 62340 } 62341 if yyr2 || yy2arr2 { 62342 r.WriteArrayElem() 62343 if false { 62344 } else { 62345 r.EncodeUint(uint64(x.Index)) 62346 } 62347 } else { 62348 r.WriteMapElemKey() 62349 if z.IsJSONHandle() { 62350 z.WriteStr("\"Index\"") 62351 } else { 62352 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62353 } 62354 r.WriteMapElemValue() 62355 if false { 62356 } else { 62357 r.EncodeUint(uint64(x.Index)) 62358 } 62359 } 62360 if yyr2 || yy2arr2 { 62361 r.WriteArrayEnd() 62362 } else { 62363 r.WriteMapEnd() 62364 } 62365 } 62366 } 62367 } 62368 62369 func (x *NodeEligibilityUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62370 var h codecSelfer100 62371 z, r := codec1978.GenHelperDecoder(d) 62372 _, _, _ = h, z, r 62373 if false { 62374 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62375 z.DecExtension(x, yyxt1) 62376 } else { 62377 yyct2 := r.ContainerType() 62378 if yyct2 == codecSelferValueTypeMap100 { 62379 yyl2 := r.ReadMapStart() 62380 if yyl2 == 0 { 62381 r.ReadMapEnd() 62382 } else { 62383 x.codecDecodeSelfFromMap(yyl2, d) 62384 } 62385 } else if yyct2 == codecSelferValueTypeArray100 { 62386 yyl2 := r.ReadArrayStart() 62387 if yyl2 == 0 { 62388 r.ReadArrayEnd() 62389 } else { 62390 x.codecDecodeSelfFromArray(yyl2, d) 62391 } 62392 } else { 62393 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62394 } 62395 } 62396 } 62397 62398 func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62399 var h codecSelfer100 62400 z, r := codec1978.GenHelperDecoder(d) 62401 _, _, _ = h, z, r 62402 var yyhl3 bool = l >= 0 62403 for yyj3 := 0; ; yyj3++ { 62404 if yyhl3 { 62405 if yyj3 >= l { 62406 break 62407 } 62408 } else { 62409 if r.CheckBreak() { 62410 break 62411 } 62412 } 62413 r.ReadMapElemKey() 62414 yys3 := z.StringView(r.DecodeStringAsBytes()) 62415 r.ReadMapElemValue() 62416 switch yys3 { 62417 case "NodeModifyIndex": 62418 if r.TryDecodeAsNil() { 62419 x.NodeModifyIndex = 0 62420 } else { 62421 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 62422 } 62423 case "EvalIDs": 62424 if r.TryDecodeAsNil() { 62425 x.EvalIDs = nil 62426 } else { 62427 if false { 62428 } else { 62429 z.F.DecSliceStringX(&x.EvalIDs, d) 62430 } 62431 } 62432 case "EvalCreateIndex": 62433 if r.TryDecodeAsNil() { 62434 x.EvalCreateIndex = 0 62435 } else { 62436 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 62437 } 62438 case "Index": 62439 if r.TryDecodeAsNil() { 62440 x.WriteMeta.Index = 0 62441 } else { 62442 x.Index = (uint64)(r.DecodeUint64()) 62443 } 62444 default: 62445 z.DecStructFieldNotFound(-1, yys3) 62446 } // end switch yys3 62447 } // end for yyj3 62448 r.ReadMapEnd() 62449 } 62450 62451 func (x *NodeEligibilityUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62452 var h codecSelfer100 62453 z, r := codec1978.GenHelperDecoder(d) 62454 _, _, _ = h, z, r 62455 var yyj9 int 62456 var yyb9 bool 62457 var yyhl9 bool = l >= 0 62458 yyj9++ 62459 if yyhl9 { 62460 yyb9 = yyj9 > l 62461 } else { 62462 yyb9 = r.CheckBreak() 62463 } 62464 if yyb9 { 62465 r.ReadArrayEnd() 62466 return 62467 } 62468 r.ReadArrayElem() 62469 if r.TryDecodeAsNil() { 62470 x.NodeModifyIndex = 0 62471 } else { 62472 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 62473 } 62474 yyj9++ 62475 if yyhl9 { 62476 yyb9 = yyj9 > l 62477 } else { 62478 yyb9 = r.CheckBreak() 62479 } 62480 if yyb9 { 62481 r.ReadArrayEnd() 62482 return 62483 } 62484 r.ReadArrayElem() 62485 if r.TryDecodeAsNil() { 62486 x.EvalIDs = nil 62487 } else { 62488 if false { 62489 } else { 62490 z.F.DecSliceStringX(&x.EvalIDs, d) 62491 } 62492 } 62493 yyj9++ 62494 if yyhl9 { 62495 yyb9 = yyj9 > l 62496 } else { 62497 yyb9 = r.CheckBreak() 62498 } 62499 if yyb9 { 62500 r.ReadArrayEnd() 62501 return 62502 } 62503 r.ReadArrayElem() 62504 if r.TryDecodeAsNil() { 62505 x.EvalCreateIndex = 0 62506 } else { 62507 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 62508 } 62509 yyj9++ 62510 if yyhl9 { 62511 yyb9 = yyj9 > l 62512 } else { 62513 yyb9 = r.CheckBreak() 62514 } 62515 if yyb9 { 62516 r.ReadArrayEnd() 62517 return 62518 } 62519 r.ReadArrayElem() 62520 if r.TryDecodeAsNil() { 62521 x.WriteMeta.Index = 0 62522 } else { 62523 x.Index = (uint64)(r.DecodeUint64()) 62524 } 62525 for { 62526 yyj9++ 62527 if yyhl9 { 62528 yyb9 = yyj9 > l 62529 } else { 62530 yyb9 = r.CheckBreak() 62531 } 62532 if yyb9 { 62533 break 62534 } 62535 r.ReadArrayElem() 62536 z.DecStructFieldNotFound(yyj9-1, "") 62537 } 62538 r.ReadArrayEnd() 62539 } 62540 62541 func (x *NodeAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62542 var h codecSelfer100 62543 z, r := codec1978.GenHelperEncoder(e) 62544 _, _, _ = h, z, r 62545 if x == nil { 62546 r.EncodeNil() 62547 } else { 62548 if false { 62549 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62550 z.EncExtension(x, yyxt1) 62551 } else { 62552 yysep2 := !z.EncBinary() 62553 yy2arr2 := z.EncBasicHandle().StructToArray 62554 _, _ = yysep2, yy2arr2 62555 const yyr2 bool = false // struct tag has 'toArray' 62556 if yyr2 || yy2arr2 { 62557 r.WriteArrayStart(4) 62558 } else { 62559 r.WriteMapStart(4) 62560 } 62561 if yyr2 || yy2arr2 { 62562 r.WriteArrayElem() 62563 if x.Allocs == nil { 62564 r.EncodeNil() 62565 } else { 62566 if false { 62567 } else { 62568 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 62569 } 62570 } 62571 } else { 62572 r.WriteMapElemKey() 62573 if z.IsJSONHandle() { 62574 z.WriteStr("\"Allocs\"") 62575 } else { 62576 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 62577 } 62578 r.WriteMapElemValue() 62579 if x.Allocs == nil { 62580 r.EncodeNil() 62581 } else { 62582 if false { 62583 } else { 62584 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 62585 } 62586 } 62587 } 62588 if yyr2 || yy2arr2 { 62589 r.WriteArrayElem() 62590 if false { 62591 } else { 62592 r.EncodeUint(uint64(x.Index)) 62593 } 62594 } else { 62595 r.WriteMapElemKey() 62596 if z.IsJSONHandle() { 62597 z.WriteStr("\"Index\"") 62598 } else { 62599 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62600 } 62601 r.WriteMapElemValue() 62602 if false { 62603 } else { 62604 r.EncodeUint(uint64(x.Index)) 62605 } 62606 } 62607 if yyr2 || yy2arr2 { 62608 r.WriteArrayElem() 62609 if false { 62610 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 62611 z.EncExtension(x.LastContact, yyxt10) 62612 } else { 62613 r.EncodeInt(int64(x.LastContact)) 62614 } 62615 } else { 62616 r.WriteMapElemKey() 62617 if z.IsJSONHandle() { 62618 z.WriteStr("\"LastContact\"") 62619 } else { 62620 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 62621 } 62622 r.WriteMapElemValue() 62623 if false { 62624 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 62625 z.EncExtension(x.LastContact, yyxt11) 62626 } else { 62627 r.EncodeInt(int64(x.LastContact)) 62628 } 62629 } 62630 if yyr2 || yy2arr2 { 62631 r.WriteArrayElem() 62632 if false { 62633 } else { 62634 r.EncodeBool(bool(x.KnownLeader)) 62635 } 62636 } else { 62637 r.WriteMapElemKey() 62638 if z.IsJSONHandle() { 62639 z.WriteStr("\"KnownLeader\"") 62640 } else { 62641 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 62642 } 62643 r.WriteMapElemValue() 62644 if false { 62645 } else { 62646 r.EncodeBool(bool(x.KnownLeader)) 62647 } 62648 } 62649 if yyr2 || yy2arr2 { 62650 r.WriteArrayEnd() 62651 } else { 62652 r.WriteMapEnd() 62653 } 62654 } 62655 } 62656 } 62657 62658 func (x *NodeAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62659 var h codecSelfer100 62660 z, r := codec1978.GenHelperDecoder(d) 62661 _, _, _ = h, z, r 62662 if false { 62663 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62664 z.DecExtension(x, yyxt1) 62665 } else { 62666 yyct2 := r.ContainerType() 62667 if yyct2 == codecSelferValueTypeMap100 { 62668 yyl2 := r.ReadMapStart() 62669 if yyl2 == 0 { 62670 r.ReadMapEnd() 62671 } else { 62672 x.codecDecodeSelfFromMap(yyl2, d) 62673 } 62674 } else if yyct2 == codecSelferValueTypeArray100 { 62675 yyl2 := r.ReadArrayStart() 62676 if yyl2 == 0 { 62677 r.ReadArrayEnd() 62678 } else { 62679 x.codecDecodeSelfFromArray(yyl2, d) 62680 } 62681 } else { 62682 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 62683 } 62684 } 62685 } 62686 62687 func (x *NodeAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 62688 var h codecSelfer100 62689 z, r := codec1978.GenHelperDecoder(d) 62690 _, _, _ = h, z, r 62691 var yyhl3 bool = l >= 0 62692 for yyj3 := 0; ; yyj3++ { 62693 if yyhl3 { 62694 if yyj3 >= l { 62695 break 62696 } 62697 } else { 62698 if r.CheckBreak() { 62699 break 62700 } 62701 } 62702 r.ReadMapElemKey() 62703 yys3 := z.StringView(r.DecodeStringAsBytes()) 62704 r.ReadMapElemValue() 62705 switch yys3 { 62706 case "Allocs": 62707 if r.TryDecodeAsNil() { 62708 x.Allocs = nil 62709 } else { 62710 if false { 62711 } else { 62712 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 62713 } 62714 } 62715 case "Index": 62716 if r.TryDecodeAsNil() { 62717 x.QueryMeta.Index = 0 62718 } else { 62719 x.Index = (uint64)(r.DecodeUint64()) 62720 } 62721 case "LastContact": 62722 if r.TryDecodeAsNil() { 62723 x.QueryMeta.LastContact = 0 62724 } else { 62725 if false { 62726 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 62727 z.DecExtension(x.LastContact, yyxt8) 62728 } else { 62729 x.LastContact = (time.Duration)(r.DecodeInt64()) 62730 } 62731 } 62732 case "KnownLeader": 62733 if r.TryDecodeAsNil() { 62734 x.QueryMeta.KnownLeader = false 62735 } else { 62736 x.KnownLeader = (bool)(r.DecodeBool()) 62737 } 62738 default: 62739 z.DecStructFieldNotFound(-1, yys3) 62740 } // end switch yys3 62741 } // end for yyj3 62742 r.ReadMapEnd() 62743 } 62744 62745 func (x *NodeAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 62746 var h codecSelfer100 62747 z, r := codec1978.GenHelperDecoder(d) 62748 _, _, _ = h, z, r 62749 var yyj10 int 62750 var yyb10 bool 62751 var yyhl10 bool = l >= 0 62752 yyj10++ 62753 if yyhl10 { 62754 yyb10 = yyj10 > l 62755 } else { 62756 yyb10 = r.CheckBreak() 62757 } 62758 if yyb10 { 62759 r.ReadArrayEnd() 62760 return 62761 } 62762 r.ReadArrayElem() 62763 if r.TryDecodeAsNil() { 62764 x.Allocs = nil 62765 } else { 62766 if false { 62767 } else { 62768 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 62769 } 62770 } 62771 yyj10++ 62772 if yyhl10 { 62773 yyb10 = yyj10 > l 62774 } else { 62775 yyb10 = r.CheckBreak() 62776 } 62777 if yyb10 { 62778 r.ReadArrayEnd() 62779 return 62780 } 62781 r.ReadArrayElem() 62782 if r.TryDecodeAsNil() { 62783 x.QueryMeta.Index = 0 62784 } else { 62785 x.Index = (uint64)(r.DecodeUint64()) 62786 } 62787 yyj10++ 62788 if yyhl10 { 62789 yyb10 = yyj10 > l 62790 } else { 62791 yyb10 = r.CheckBreak() 62792 } 62793 if yyb10 { 62794 r.ReadArrayEnd() 62795 return 62796 } 62797 r.ReadArrayElem() 62798 if r.TryDecodeAsNil() { 62799 x.QueryMeta.LastContact = 0 62800 } else { 62801 if false { 62802 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 62803 z.DecExtension(x.LastContact, yyxt15) 62804 } else { 62805 x.LastContact = (time.Duration)(r.DecodeInt64()) 62806 } 62807 } 62808 yyj10++ 62809 if yyhl10 { 62810 yyb10 = yyj10 > l 62811 } else { 62812 yyb10 = r.CheckBreak() 62813 } 62814 if yyb10 { 62815 r.ReadArrayEnd() 62816 return 62817 } 62818 r.ReadArrayElem() 62819 if r.TryDecodeAsNil() { 62820 x.QueryMeta.KnownLeader = false 62821 } else { 62822 x.KnownLeader = (bool)(r.DecodeBool()) 62823 } 62824 for { 62825 yyj10++ 62826 if yyhl10 { 62827 yyb10 = yyj10 > l 62828 } else { 62829 yyb10 = r.CheckBreak() 62830 } 62831 if yyb10 { 62832 break 62833 } 62834 r.ReadArrayElem() 62835 z.DecStructFieldNotFound(yyj10-1, "") 62836 } 62837 r.ReadArrayEnd() 62838 } 62839 62840 func (x *NodeClientAllocsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 62841 var h codecSelfer100 62842 z, r := codec1978.GenHelperEncoder(e) 62843 _, _, _ = h, z, r 62844 if x == nil { 62845 r.EncodeNil() 62846 } else { 62847 if false { 62848 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62849 z.EncExtension(x, yyxt1) 62850 } else { 62851 yysep2 := !z.EncBinary() 62852 yy2arr2 := z.EncBasicHandle().StructToArray 62853 _, _ = yysep2, yy2arr2 62854 const yyr2 bool = false // struct tag has 'toArray' 62855 if yyr2 || yy2arr2 { 62856 r.WriteArrayStart(5) 62857 } else { 62858 r.WriteMapStart(5) 62859 } 62860 if yyr2 || yy2arr2 { 62861 r.WriteArrayElem() 62862 if x.Allocs == nil { 62863 r.EncodeNil() 62864 } else { 62865 if false { 62866 } else { 62867 z.F.EncMapStringUint64V(x.Allocs, e) 62868 } 62869 } 62870 } else { 62871 r.WriteMapElemKey() 62872 if z.IsJSONHandle() { 62873 z.WriteStr("\"Allocs\"") 62874 } else { 62875 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 62876 } 62877 r.WriteMapElemValue() 62878 if x.Allocs == nil { 62879 r.EncodeNil() 62880 } else { 62881 if false { 62882 } else { 62883 z.F.EncMapStringUint64V(x.Allocs, e) 62884 } 62885 } 62886 } 62887 if yyr2 || yy2arr2 { 62888 r.WriteArrayElem() 62889 if x.MigrateTokens == nil { 62890 r.EncodeNil() 62891 } else { 62892 if false { 62893 } else { 62894 z.F.EncMapStringStringV(x.MigrateTokens, e) 62895 } 62896 } 62897 } else { 62898 r.WriteMapElemKey() 62899 if z.IsJSONHandle() { 62900 z.WriteStr("\"MigrateTokens\"") 62901 } else { 62902 r.EncodeStringEnc(codecSelferCcUTF8100, `MigrateTokens`) 62903 } 62904 r.WriteMapElemValue() 62905 if x.MigrateTokens == nil { 62906 r.EncodeNil() 62907 } else { 62908 if false { 62909 } else { 62910 z.F.EncMapStringStringV(x.MigrateTokens, e) 62911 } 62912 } 62913 } 62914 if yyr2 || yy2arr2 { 62915 r.WriteArrayElem() 62916 if false { 62917 } else { 62918 r.EncodeUint(uint64(x.Index)) 62919 } 62920 } else { 62921 r.WriteMapElemKey() 62922 if z.IsJSONHandle() { 62923 z.WriteStr("\"Index\"") 62924 } else { 62925 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 62926 } 62927 r.WriteMapElemValue() 62928 if false { 62929 } else { 62930 r.EncodeUint(uint64(x.Index)) 62931 } 62932 } 62933 if yyr2 || yy2arr2 { 62934 r.WriteArrayElem() 62935 if false { 62936 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 62937 z.EncExtension(x.LastContact, yyxt13) 62938 } else { 62939 r.EncodeInt(int64(x.LastContact)) 62940 } 62941 } else { 62942 r.WriteMapElemKey() 62943 if z.IsJSONHandle() { 62944 z.WriteStr("\"LastContact\"") 62945 } else { 62946 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 62947 } 62948 r.WriteMapElemValue() 62949 if false { 62950 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 62951 z.EncExtension(x.LastContact, yyxt14) 62952 } else { 62953 r.EncodeInt(int64(x.LastContact)) 62954 } 62955 } 62956 if yyr2 || yy2arr2 { 62957 r.WriteArrayElem() 62958 if false { 62959 } else { 62960 r.EncodeBool(bool(x.KnownLeader)) 62961 } 62962 } else { 62963 r.WriteMapElemKey() 62964 if z.IsJSONHandle() { 62965 z.WriteStr("\"KnownLeader\"") 62966 } else { 62967 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 62968 } 62969 r.WriteMapElemValue() 62970 if false { 62971 } else { 62972 r.EncodeBool(bool(x.KnownLeader)) 62973 } 62974 } 62975 if yyr2 || yy2arr2 { 62976 r.WriteArrayEnd() 62977 } else { 62978 r.WriteMapEnd() 62979 } 62980 } 62981 } 62982 } 62983 62984 func (x *NodeClientAllocsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 62985 var h codecSelfer100 62986 z, r := codec1978.GenHelperDecoder(d) 62987 _, _, _ = h, z, r 62988 if false { 62989 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 62990 z.DecExtension(x, yyxt1) 62991 } else { 62992 yyct2 := r.ContainerType() 62993 if yyct2 == codecSelferValueTypeMap100 { 62994 yyl2 := r.ReadMapStart() 62995 if yyl2 == 0 { 62996 r.ReadMapEnd() 62997 } else { 62998 x.codecDecodeSelfFromMap(yyl2, d) 62999 } 63000 } else if yyct2 == codecSelferValueTypeArray100 { 63001 yyl2 := r.ReadArrayStart() 63002 if yyl2 == 0 { 63003 r.ReadArrayEnd() 63004 } else { 63005 x.codecDecodeSelfFromArray(yyl2, d) 63006 } 63007 } else { 63008 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63009 } 63010 } 63011 } 63012 63013 func (x *NodeClientAllocsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63014 var h codecSelfer100 63015 z, r := codec1978.GenHelperDecoder(d) 63016 _, _, _ = h, z, r 63017 var yyhl3 bool = l >= 0 63018 for yyj3 := 0; ; yyj3++ { 63019 if yyhl3 { 63020 if yyj3 >= l { 63021 break 63022 } 63023 } else { 63024 if r.CheckBreak() { 63025 break 63026 } 63027 } 63028 r.ReadMapElemKey() 63029 yys3 := z.StringView(r.DecodeStringAsBytes()) 63030 r.ReadMapElemValue() 63031 switch yys3 { 63032 case "Allocs": 63033 if r.TryDecodeAsNil() { 63034 x.Allocs = nil 63035 } else { 63036 if false { 63037 } else { 63038 z.F.DecMapStringUint64X(&x.Allocs, d) 63039 } 63040 } 63041 case "MigrateTokens": 63042 if r.TryDecodeAsNil() { 63043 x.MigrateTokens = nil 63044 } else { 63045 if false { 63046 } else { 63047 z.F.DecMapStringStringX(&x.MigrateTokens, d) 63048 } 63049 } 63050 case "Index": 63051 if r.TryDecodeAsNil() { 63052 x.QueryMeta.Index = 0 63053 } else { 63054 x.Index = (uint64)(r.DecodeUint64()) 63055 } 63056 case "LastContact": 63057 if r.TryDecodeAsNil() { 63058 x.QueryMeta.LastContact = 0 63059 } else { 63060 if false { 63061 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 63062 z.DecExtension(x.LastContact, yyxt10) 63063 } else { 63064 x.LastContact = (time.Duration)(r.DecodeInt64()) 63065 } 63066 } 63067 case "KnownLeader": 63068 if r.TryDecodeAsNil() { 63069 x.QueryMeta.KnownLeader = false 63070 } else { 63071 x.KnownLeader = (bool)(r.DecodeBool()) 63072 } 63073 default: 63074 z.DecStructFieldNotFound(-1, yys3) 63075 } // end switch yys3 63076 } // end for yyj3 63077 r.ReadMapEnd() 63078 } 63079 63080 func (x *NodeClientAllocsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63081 var h codecSelfer100 63082 z, r := codec1978.GenHelperDecoder(d) 63083 _, _, _ = h, z, r 63084 var yyj12 int 63085 var yyb12 bool 63086 var yyhl12 bool = l >= 0 63087 yyj12++ 63088 if yyhl12 { 63089 yyb12 = yyj12 > l 63090 } else { 63091 yyb12 = r.CheckBreak() 63092 } 63093 if yyb12 { 63094 r.ReadArrayEnd() 63095 return 63096 } 63097 r.ReadArrayElem() 63098 if r.TryDecodeAsNil() { 63099 x.Allocs = nil 63100 } else { 63101 if false { 63102 } else { 63103 z.F.DecMapStringUint64X(&x.Allocs, d) 63104 } 63105 } 63106 yyj12++ 63107 if yyhl12 { 63108 yyb12 = yyj12 > l 63109 } else { 63110 yyb12 = r.CheckBreak() 63111 } 63112 if yyb12 { 63113 r.ReadArrayEnd() 63114 return 63115 } 63116 r.ReadArrayElem() 63117 if r.TryDecodeAsNil() { 63118 x.MigrateTokens = nil 63119 } else { 63120 if false { 63121 } else { 63122 z.F.DecMapStringStringX(&x.MigrateTokens, d) 63123 } 63124 } 63125 yyj12++ 63126 if yyhl12 { 63127 yyb12 = yyj12 > l 63128 } else { 63129 yyb12 = r.CheckBreak() 63130 } 63131 if yyb12 { 63132 r.ReadArrayEnd() 63133 return 63134 } 63135 r.ReadArrayElem() 63136 if r.TryDecodeAsNil() { 63137 x.QueryMeta.Index = 0 63138 } else { 63139 x.Index = (uint64)(r.DecodeUint64()) 63140 } 63141 yyj12++ 63142 if yyhl12 { 63143 yyb12 = yyj12 > l 63144 } else { 63145 yyb12 = r.CheckBreak() 63146 } 63147 if yyb12 { 63148 r.ReadArrayEnd() 63149 return 63150 } 63151 r.ReadArrayElem() 63152 if r.TryDecodeAsNil() { 63153 x.QueryMeta.LastContact = 0 63154 } else { 63155 if false { 63156 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 63157 z.DecExtension(x.LastContact, yyxt19) 63158 } else { 63159 x.LastContact = (time.Duration)(r.DecodeInt64()) 63160 } 63161 } 63162 yyj12++ 63163 if yyhl12 { 63164 yyb12 = yyj12 > l 63165 } else { 63166 yyb12 = r.CheckBreak() 63167 } 63168 if yyb12 { 63169 r.ReadArrayEnd() 63170 return 63171 } 63172 r.ReadArrayElem() 63173 if r.TryDecodeAsNil() { 63174 x.QueryMeta.KnownLeader = false 63175 } else { 63176 x.KnownLeader = (bool)(r.DecodeBool()) 63177 } 63178 for { 63179 yyj12++ 63180 if yyhl12 { 63181 yyb12 = yyj12 > l 63182 } else { 63183 yyb12 = r.CheckBreak() 63184 } 63185 if yyb12 { 63186 break 63187 } 63188 r.ReadArrayElem() 63189 z.DecStructFieldNotFound(yyj12-1, "") 63190 } 63191 r.ReadArrayEnd() 63192 } 63193 63194 func (x *SingleNodeResponse) CodecEncodeSelf(e *codec1978.Encoder) { 63195 var h codecSelfer100 63196 z, r := codec1978.GenHelperEncoder(e) 63197 _, _, _ = h, z, r 63198 if x == nil { 63199 r.EncodeNil() 63200 } else { 63201 if false { 63202 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63203 z.EncExtension(x, yyxt1) 63204 } else { 63205 yysep2 := !z.EncBinary() 63206 yy2arr2 := z.EncBasicHandle().StructToArray 63207 _, _ = yysep2, yy2arr2 63208 const yyr2 bool = false // struct tag has 'toArray' 63209 if yyr2 || yy2arr2 { 63210 r.WriteArrayStart(4) 63211 } else { 63212 r.WriteMapStart(4) 63213 } 63214 var yyn3 bool 63215 if x.Node == nil { 63216 yyn3 = true 63217 goto LABEL3 63218 } 63219 LABEL3: 63220 if yyr2 || yy2arr2 { 63221 if yyn3 { 63222 r.WriteArrayElem() 63223 r.EncodeNil() 63224 } else { 63225 r.WriteArrayElem() 63226 if x.Node == nil { 63227 r.EncodeNil() 63228 } else { 63229 x.Node.CodecEncodeSelf(e) 63230 } 63231 } 63232 } else { 63233 r.WriteMapElemKey() 63234 if z.IsJSONHandle() { 63235 z.WriteStr("\"Node\"") 63236 } else { 63237 r.EncodeStringEnc(codecSelferCcUTF8100, `Node`) 63238 } 63239 r.WriteMapElemValue() 63240 if yyn3 { 63241 r.EncodeNil() 63242 } else { 63243 if x.Node == nil { 63244 r.EncodeNil() 63245 } else { 63246 x.Node.CodecEncodeSelf(e) 63247 } 63248 } 63249 } 63250 if yyr2 || yy2arr2 { 63251 r.WriteArrayElem() 63252 if false { 63253 } else { 63254 r.EncodeUint(uint64(x.Index)) 63255 } 63256 } else { 63257 r.WriteMapElemKey() 63258 if z.IsJSONHandle() { 63259 z.WriteStr("\"Index\"") 63260 } else { 63261 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 63262 } 63263 r.WriteMapElemValue() 63264 if false { 63265 } else { 63266 r.EncodeUint(uint64(x.Index)) 63267 } 63268 } 63269 if yyr2 || yy2arr2 { 63270 r.WriteArrayElem() 63271 if false { 63272 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 63273 z.EncExtension(x.LastContact, yyxt10) 63274 } else { 63275 r.EncodeInt(int64(x.LastContact)) 63276 } 63277 } else { 63278 r.WriteMapElemKey() 63279 if z.IsJSONHandle() { 63280 z.WriteStr("\"LastContact\"") 63281 } else { 63282 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 63283 } 63284 r.WriteMapElemValue() 63285 if false { 63286 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 63287 z.EncExtension(x.LastContact, yyxt11) 63288 } else { 63289 r.EncodeInt(int64(x.LastContact)) 63290 } 63291 } 63292 if yyr2 || yy2arr2 { 63293 r.WriteArrayElem() 63294 if false { 63295 } else { 63296 r.EncodeBool(bool(x.KnownLeader)) 63297 } 63298 } else { 63299 r.WriteMapElemKey() 63300 if z.IsJSONHandle() { 63301 z.WriteStr("\"KnownLeader\"") 63302 } else { 63303 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 63304 } 63305 r.WriteMapElemValue() 63306 if false { 63307 } else { 63308 r.EncodeBool(bool(x.KnownLeader)) 63309 } 63310 } 63311 if yyr2 || yy2arr2 { 63312 r.WriteArrayEnd() 63313 } else { 63314 r.WriteMapEnd() 63315 } 63316 } 63317 } 63318 } 63319 63320 func (x *SingleNodeResponse) CodecDecodeSelf(d *codec1978.Decoder) { 63321 var h codecSelfer100 63322 z, r := codec1978.GenHelperDecoder(d) 63323 _, _, _ = h, z, r 63324 if false { 63325 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63326 z.DecExtension(x, yyxt1) 63327 } else { 63328 yyct2 := r.ContainerType() 63329 if yyct2 == codecSelferValueTypeMap100 { 63330 yyl2 := r.ReadMapStart() 63331 if yyl2 == 0 { 63332 r.ReadMapEnd() 63333 } else { 63334 x.codecDecodeSelfFromMap(yyl2, d) 63335 } 63336 } else if yyct2 == codecSelferValueTypeArray100 { 63337 yyl2 := r.ReadArrayStart() 63338 if yyl2 == 0 { 63339 r.ReadArrayEnd() 63340 } else { 63341 x.codecDecodeSelfFromArray(yyl2, d) 63342 } 63343 } else { 63344 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63345 } 63346 } 63347 } 63348 63349 func (x *SingleNodeResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63350 var h codecSelfer100 63351 z, r := codec1978.GenHelperDecoder(d) 63352 _, _, _ = h, z, r 63353 var yyhl3 bool = l >= 0 63354 for yyj3 := 0; ; yyj3++ { 63355 if yyhl3 { 63356 if yyj3 >= l { 63357 break 63358 } 63359 } else { 63360 if r.CheckBreak() { 63361 break 63362 } 63363 } 63364 r.ReadMapElemKey() 63365 yys3 := z.StringView(r.DecodeStringAsBytes()) 63366 r.ReadMapElemValue() 63367 switch yys3 { 63368 case "Node": 63369 if r.TryDecodeAsNil() { 63370 if true && x.Node != nil { 63371 x.Node = nil 63372 } 63373 } else { 63374 if x.Node == nil { 63375 x.Node = new(Node) 63376 } 63377 63378 x.Node.CodecDecodeSelf(d) 63379 } 63380 case "Index": 63381 if r.TryDecodeAsNil() { 63382 x.QueryMeta.Index = 0 63383 } else { 63384 x.Index = (uint64)(r.DecodeUint64()) 63385 } 63386 case "LastContact": 63387 if r.TryDecodeAsNil() { 63388 x.QueryMeta.LastContact = 0 63389 } else { 63390 if false { 63391 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 63392 z.DecExtension(x.LastContact, yyxt7) 63393 } else { 63394 x.LastContact = (time.Duration)(r.DecodeInt64()) 63395 } 63396 } 63397 case "KnownLeader": 63398 if r.TryDecodeAsNil() { 63399 x.QueryMeta.KnownLeader = false 63400 } else { 63401 x.KnownLeader = (bool)(r.DecodeBool()) 63402 } 63403 default: 63404 z.DecStructFieldNotFound(-1, yys3) 63405 } // end switch yys3 63406 } // end for yyj3 63407 r.ReadMapEnd() 63408 } 63409 63410 func (x *SingleNodeResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63411 var h codecSelfer100 63412 z, r := codec1978.GenHelperDecoder(d) 63413 _, _, _ = h, z, r 63414 var yyj9 int 63415 var yyb9 bool 63416 var yyhl9 bool = l >= 0 63417 yyj9++ 63418 if yyhl9 { 63419 yyb9 = yyj9 > l 63420 } else { 63421 yyb9 = r.CheckBreak() 63422 } 63423 if yyb9 { 63424 r.ReadArrayEnd() 63425 return 63426 } 63427 r.ReadArrayElem() 63428 if r.TryDecodeAsNil() { 63429 if true && x.Node != nil { 63430 x.Node = nil 63431 } 63432 } else { 63433 if x.Node == nil { 63434 x.Node = new(Node) 63435 } 63436 63437 x.Node.CodecDecodeSelf(d) 63438 } 63439 yyj9++ 63440 if yyhl9 { 63441 yyb9 = yyj9 > l 63442 } else { 63443 yyb9 = r.CheckBreak() 63444 } 63445 if yyb9 { 63446 r.ReadArrayEnd() 63447 return 63448 } 63449 r.ReadArrayElem() 63450 if r.TryDecodeAsNil() { 63451 x.QueryMeta.Index = 0 63452 } else { 63453 x.Index = (uint64)(r.DecodeUint64()) 63454 } 63455 yyj9++ 63456 if yyhl9 { 63457 yyb9 = yyj9 > l 63458 } else { 63459 yyb9 = r.CheckBreak() 63460 } 63461 if yyb9 { 63462 r.ReadArrayEnd() 63463 return 63464 } 63465 r.ReadArrayElem() 63466 if r.TryDecodeAsNil() { 63467 x.QueryMeta.LastContact = 0 63468 } else { 63469 if false { 63470 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 63471 z.DecExtension(x.LastContact, yyxt13) 63472 } else { 63473 x.LastContact = (time.Duration)(r.DecodeInt64()) 63474 } 63475 } 63476 yyj9++ 63477 if yyhl9 { 63478 yyb9 = yyj9 > l 63479 } else { 63480 yyb9 = r.CheckBreak() 63481 } 63482 if yyb9 { 63483 r.ReadArrayEnd() 63484 return 63485 } 63486 r.ReadArrayElem() 63487 if r.TryDecodeAsNil() { 63488 x.QueryMeta.KnownLeader = false 63489 } else { 63490 x.KnownLeader = (bool)(r.DecodeBool()) 63491 } 63492 for { 63493 yyj9++ 63494 if yyhl9 { 63495 yyb9 = yyj9 > l 63496 } else { 63497 yyb9 = r.CheckBreak() 63498 } 63499 if yyb9 { 63500 break 63501 } 63502 r.ReadArrayElem() 63503 z.DecStructFieldNotFound(yyj9-1, "") 63504 } 63505 r.ReadArrayEnd() 63506 } 63507 63508 func (x *NodeListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 63509 var h codecSelfer100 63510 z, r := codec1978.GenHelperEncoder(e) 63511 _, _, _ = h, z, r 63512 if x == nil { 63513 r.EncodeNil() 63514 } else { 63515 if false { 63516 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63517 z.EncExtension(x, yyxt1) 63518 } else { 63519 yysep2 := !z.EncBinary() 63520 yy2arr2 := z.EncBasicHandle().StructToArray 63521 _, _ = yysep2, yy2arr2 63522 const yyr2 bool = false // struct tag has 'toArray' 63523 if yyr2 || yy2arr2 { 63524 r.WriteArrayStart(4) 63525 } else { 63526 r.WriteMapStart(4) 63527 } 63528 if yyr2 || yy2arr2 { 63529 r.WriteArrayElem() 63530 if x.Nodes == nil { 63531 r.EncodeNil() 63532 } else { 63533 if false { 63534 } else { 63535 h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) 63536 } 63537 } 63538 } else { 63539 r.WriteMapElemKey() 63540 if z.IsJSONHandle() { 63541 z.WriteStr("\"Nodes\"") 63542 } else { 63543 r.EncodeStringEnc(codecSelferCcUTF8100, `Nodes`) 63544 } 63545 r.WriteMapElemValue() 63546 if x.Nodes == nil { 63547 r.EncodeNil() 63548 } else { 63549 if false { 63550 } else { 63551 h.encSlicePtrtoNodeListStub(([]*NodeListStub)(x.Nodes), e) 63552 } 63553 } 63554 } 63555 if yyr2 || yy2arr2 { 63556 r.WriteArrayElem() 63557 if false { 63558 } else { 63559 r.EncodeUint(uint64(x.Index)) 63560 } 63561 } else { 63562 r.WriteMapElemKey() 63563 if z.IsJSONHandle() { 63564 z.WriteStr("\"Index\"") 63565 } else { 63566 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 63567 } 63568 r.WriteMapElemValue() 63569 if false { 63570 } else { 63571 r.EncodeUint(uint64(x.Index)) 63572 } 63573 } 63574 if yyr2 || yy2arr2 { 63575 r.WriteArrayElem() 63576 if false { 63577 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 63578 z.EncExtension(x.LastContact, yyxt10) 63579 } else { 63580 r.EncodeInt(int64(x.LastContact)) 63581 } 63582 } else { 63583 r.WriteMapElemKey() 63584 if z.IsJSONHandle() { 63585 z.WriteStr("\"LastContact\"") 63586 } else { 63587 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 63588 } 63589 r.WriteMapElemValue() 63590 if false { 63591 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 63592 z.EncExtension(x.LastContact, yyxt11) 63593 } else { 63594 r.EncodeInt(int64(x.LastContact)) 63595 } 63596 } 63597 if yyr2 || yy2arr2 { 63598 r.WriteArrayElem() 63599 if false { 63600 } else { 63601 r.EncodeBool(bool(x.KnownLeader)) 63602 } 63603 } else { 63604 r.WriteMapElemKey() 63605 if z.IsJSONHandle() { 63606 z.WriteStr("\"KnownLeader\"") 63607 } else { 63608 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 63609 } 63610 r.WriteMapElemValue() 63611 if false { 63612 } else { 63613 r.EncodeBool(bool(x.KnownLeader)) 63614 } 63615 } 63616 if yyr2 || yy2arr2 { 63617 r.WriteArrayEnd() 63618 } else { 63619 r.WriteMapEnd() 63620 } 63621 } 63622 } 63623 } 63624 63625 func (x *NodeListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 63626 var h codecSelfer100 63627 z, r := codec1978.GenHelperDecoder(d) 63628 _, _, _ = h, z, r 63629 if false { 63630 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63631 z.DecExtension(x, yyxt1) 63632 } else { 63633 yyct2 := r.ContainerType() 63634 if yyct2 == codecSelferValueTypeMap100 { 63635 yyl2 := r.ReadMapStart() 63636 if yyl2 == 0 { 63637 r.ReadMapEnd() 63638 } else { 63639 x.codecDecodeSelfFromMap(yyl2, d) 63640 } 63641 } else if yyct2 == codecSelferValueTypeArray100 { 63642 yyl2 := r.ReadArrayStart() 63643 if yyl2 == 0 { 63644 r.ReadArrayEnd() 63645 } else { 63646 x.codecDecodeSelfFromArray(yyl2, d) 63647 } 63648 } else { 63649 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63650 } 63651 } 63652 } 63653 63654 func (x *NodeListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63655 var h codecSelfer100 63656 z, r := codec1978.GenHelperDecoder(d) 63657 _, _, _ = h, z, r 63658 var yyhl3 bool = l >= 0 63659 for yyj3 := 0; ; yyj3++ { 63660 if yyhl3 { 63661 if yyj3 >= l { 63662 break 63663 } 63664 } else { 63665 if r.CheckBreak() { 63666 break 63667 } 63668 } 63669 r.ReadMapElemKey() 63670 yys3 := z.StringView(r.DecodeStringAsBytes()) 63671 r.ReadMapElemValue() 63672 switch yys3 { 63673 case "Nodes": 63674 if r.TryDecodeAsNil() { 63675 x.Nodes = nil 63676 } else { 63677 if false { 63678 } else { 63679 h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) 63680 } 63681 } 63682 case "Index": 63683 if r.TryDecodeAsNil() { 63684 x.QueryMeta.Index = 0 63685 } else { 63686 x.Index = (uint64)(r.DecodeUint64()) 63687 } 63688 case "LastContact": 63689 if r.TryDecodeAsNil() { 63690 x.QueryMeta.LastContact = 0 63691 } else { 63692 if false { 63693 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 63694 z.DecExtension(x.LastContact, yyxt8) 63695 } else { 63696 x.LastContact = (time.Duration)(r.DecodeInt64()) 63697 } 63698 } 63699 case "KnownLeader": 63700 if r.TryDecodeAsNil() { 63701 x.QueryMeta.KnownLeader = false 63702 } else { 63703 x.KnownLeader = (bool)(r.DecodeBool()) 63704 } 63705 default: 63706 z.DecStructFieldNotFound(-1, yys3) 63707 } // end switch yys3 63708 } // end for yyj3 63709 r.ReadMapEnd() 63710 } 63711 63712 func (x *NodeListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 63713 var h codecSelfer100 63714 z, r := codec1978.GenHelperDecoder(d) 63715 _, _, _ = h, z, r 63716 var yyj10 int 63717 var yyb10 bool 63718 var yyhl10 bool = l >= 0 63719 yyj10++ 63720 if yyhl10 { 63721 yyb10 = yyj10 > l 63722 } else { 63723 yyb10 = r.CheckBreak() 63724 } 63725 if yyb10 { 63726 r.ReadArrayEnd() 63727 return 63728 } 63729 r.ReadArrayElem() 63730 if r.TryDecodeAsNil() { 63731 x.Nodes = nil 63732 } else { 63733 if false { 63734 } else { 63735 h.decSlicePtrtoNodeListStub((*[]*NodeListStub)(&x.Nodes), d) 63736 } 63737 } 63738 yyj10++ 63739 if yyhl10 { 63740 yyb10 = yyj10 > l 63741 } else { 63742 yyb10 = r.CheckBreak() 63743 } 63744 if yyb10 { 63745 r.ReadArrayEnd() 63746 return 63747 } 63748 r.ReadArrayElem() 63749 if r.TryDecodeAsNil() { 63750 x.QueryMeta.Index = 0 63751 } else { 63752 x.Index = (uint64)(r.DecodeUint64()) 63753 } 63754 yyj10++ 63755 if yyhl10 { 63756 yyb10 = yyj10 > l 63757 } else { 63758 yyb10 = r.CheckBreak() 63759 } 63760 if yyb10 { 63761 r.ReadArrayEnd() 63762 return 63763 } 63764 r.ReadArrayElem() 63765 if r.TryDecodeAsNil() { 63766 x.QueryMeta.LastContact = 0 63767 } else { 63768 if false { 63769 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 63770 z.DecExtension(x.LastContact, yyxt15) 63771 } else { 63772 x.LastContact = (time.Duration)(r.DecodeInt64()) 63773 } 63774 } 63775 yyj10++ 63776 if yyhl10 { 63777 yyb10 = yyj10 > l 63778 } else { 63779 yyb10 = r.CheckBreak() 63780 } 63781 if yyb10 { 63782 r.ReadArrayEnd() 63783 return 63784 } 63785 r.ReadArrayElem() 63786 if r.TryDecodeAsNil() { 63787 x.QueryMeta.KnownLeader = false 63788 } else { 63789 x.KnownLeader = (bool)(r.DecodeBool()) 63790 } 63791 for { 63792 yyj10++ 63793 if yyhl10 { 63794 yyb10 = yyj10 > l 63795 } else { 63796 yyb10 = r.CheckBreak() 63797 } 63798 if yyb10 { 63799 break 63800 } 63801 r.ReadArrayElem() 63802 z.DecStructFieldNotFound(yyj10-1, "") 63803 } 63804 r.ReadArrayEnd() 63805 } 63806 63807 func (x *SingleJobResponse) CodecEncodeSelf(e *codec1978.Encoder) { 63808 var h codecSelfer100 63809 z, r := codec1978.GenHelperEncoder(e) 63810 _, _, _ = h, z, r 63811 if x == nil { 63812 r.EncodeNil() 63813 } else { 63814 if false { 63815 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63816 z.EncExtension(x, yyxt1) 63817 } else { 63818 yysep2 := !z.EncBinary() 63819 yy2arr2 := z.EncBasicHandle().StructToArray 63820 _, _ = yysep2, yy2arr2 63821 const yyr2 bool = false // struct tag has 'toArray' 63822 if yyr2 || yy2arr2 { 63823 r.WriteArrayStart(4) 63824 } else { 63825 r.WriteMapStart(4) 63826 } 63827 var yyn3 bool 63828 if x.Job == nil { 63829 yyn3 = true 63830 goto LABEL3 63831 } 63832 LABEL3: 63833 if yyr2 || yy2arr2 { 63834 if yyn3 { 63835 r.WriteArrayElem() 63836 r.EncodeNil() 63837 } else { 63838 r.WriteArrayElem() 63839 if x.Job == nil { 63840 r.EncodeNil() 63841 } else { 63842 x.Job.CodecEncodeSelf(e) 63843 } 63844 } 63845 } else { 63846 r.WriteMapElemKey() 63847 if z.IsJSONHandle() { 63848 z.WriteStr("\"Job\"") 63849 } else { 63850 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 63851 } 63852 r.WriteMapElemValue() 63853 if yyn3 { 63854 r.EncodeNil() 63855 } else { 63856 if x.Job == nil { 63857 r.EncodeNil() 63858 } else { 63859 x.Job.CodecEncodeSelf(e) 63860 } 63861 } 63862 } 63863 if yyr2 || yy2arr2 { 63864 r.WriteArrayElem() 63865 if false { 63866 } else { 63867 r.EncodeUint(uint64(x.Index)) 63868 } 63869 } else { 63870 r.WriteMapElemKey() 63871 if z.IsJSONHandle() { 63872 z.WriteStr("\"Index\"") 63873 } else { 63874 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 63875 } 63876 r.WriteMapElemValue() 63877 if false { 63878 } else { 63879 r.EncodeUint(uint64(x.Index)) 63880 } 63881 } 63882 if yyr2 || yy2arr2 { 63883 r.WriteArrayElem() 63884 if false { 63885 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 63886 z.EncExtension(x.LastContact, yyxt10) 63887 } else { 63888 r.EncodeInt(int64(x.LastContact)) 63889 } 63890 } else { 63891 r.WriteMapElemKey() 63892 if z.IsJSONHandle() { 63893 z.WriteStr("\"LastContact\"") 63894 } else { 63895 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 63896 } 63897 r.WriteMapElemValue() 63898 if false { 63899 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 63900 z.EncExtension(x.LastContact, yyxt11) 63901 } else { 63902 r.EncodeInt(int64(x.LastContact)) 63903 } 63904 } 63905 if yyr2 || yy2arr2 { 63906 r.WriteArrayElem() 63907 if false { 63908 } else { 63909 r.EncodeBool(bool(x.KnownLeader)) 63910 } 63911 } else { 63912 r.WriteMapElemKey() 63913 if z.IsJSONHandle() { 63914 z.WriteStr("\"KnownLeader\"") 63915 } else { 63916 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 63917 } 63918 r.WriteMapElemValue() 63919 if false { 63920 } else { 63921 r.EncodeBool(bool(x.KnownLeader)) 63922 } 63923 } 63924 if yyr2 || yy2arr2 { 63925 r.WriteArrayEnd() 63926 } else { 63927 r.WriteMapEnd() 63928 } 63929 } 63930 } 63931 } 63932 63933 func (x *SingleJobResponse) CodecDecodeSelf(d *codec1978.Decoder) { 63934 var h codecSelfer100 63935 z, r := codec1978.GenHelperDecoder(d) 63936 _, _, _ = h, z, r 63937 if false { 63938 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 63939 z.DecExtension(x, yyxt1) 63940 } else { 63941 yyct2 := r.ContainerType() 63942 if yyct2 == codecSelferValueTypeMap100 { 63943 yyl2 := r.ReadMapStart() 63944 if yyl2 == 0 { 63945 r.ReadMapEnd() 63946 } else { 63947 x.codecDecodeSelfFromMap(yyl2, d) 63948 } 63949 } else if yyct2 == codecSelferValueTypeArray100 { 63950 yyl2 := r.ReadArrayStart() 63951 if yyl2 == 0 { 63952 r.ReadArrayEnd() 63953 } else { 63954 x.codecDecodeSelfFromArray(yyl2, d) 63955 } 63956 } else { 63957 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 63958 } 63959 } 63960 } 63961 63962 func (x *SingleJobResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 63963 var h codecSelfer100 63964 z, r := codec1978.GenHelperDecoder(d) 63965 _, _, _ = h, z, r 63966 var yyhl3 bool = l >= 0 63967 for yyj3 := 0; ; yyj3++ { 63968 if yyhl3 { 63969 if yyj3 >= l { 63970 break 63971 } 63972 } else { 63973 if r.CheckBreak() { 63974 break 63975 } 63976 } 63977 r.ReadMapElemKey() 63978 yys3 := z.StringView(r.DecodeStringAsBytes()) 63979 r.ReadMapElemValue() 63980 switch yys3 { 63981 case "Job": 63982 if r.TryDecodeAsNil() { 63983 if true && x.Job != nil { 63984 x.Job = nil 63985 } 63986 } else { 63987 if x.Job == nil { 63988 x.Job = new(Job) 63989 } 63990 63991 x.Job.CodecDecodeSelf(d) 63992 } 63993 case "Index": 63994 if r.TryDecodeAsNil() { 63995 x.QueryMeta.Index = 0 63996 } else { 63997 x.Index = (uint64)(r.DecodeUint64()) 63998 } 63999 case "LastContact": 64000 if r.TryDecodeAsNil() { 64001 x.QueryMeta.LastContact = 0 64002 } else { 64003 if false { 64004 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 64005 z.DecExtension(x.LastContact, yyxt7) 64006 } else { 64007 x.LastContact = (time.Duration)(r.DecodeInt64()) 64008 } 64009 } 64010 case "KnownLeader": 64011 if r.TryDecodeAsNil() { 64012 x.QueryMeta.KnownLeader = false 64013 } else { 64014 x.KnownLeader = (bool)(r.DecodeBool()) 64015 } 64016 default: 64017 z.DecStructFieldNotFound(-1, yys3) 64018 } // end switch yys3 64019 } // end for yyj3 64020 r.ReadMapEnd() 64021 } 64022 64023 func (x *SingleJobResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64024 var h codecSelfer100 64025 z, r := codec1978.GenHelperDecoder(d) 64026 _, _, _ = h, z, r 64027 var yyj9 int 64028 var yyb9 bool 64029 var yyhl9 bool = l >= 0 64030 yyj9++ 64031 if yyhl9 { 64032 yyb9 = yyj9 > l 64033 } else { 64034 yyb9 = r.CheckBreak() 64035 } 64036 if yyb9 { 64037 r.ReadArrayEnd() 64038 return 64039 } 64040 r.ReadArrayElem() 64041 if r.TryDecodeAsNil() { 64042 if true && x.Job != nil { 64043 x.Job = nil 64044 } 64045 } else { 64046 if x.Job == nil { 64047 x.Job = new(Job) 64048 } 64049 64050 x.Job.CodecDecodeSelf(d) 64051 } 64052 yyj9++ 64053 if yyhl9 { 64054 yyb9 = yyj9 > l 64055 } else { 64056 yyb9 = r.CheckBreak() 64057 } 64058 if yyb9 { 64059 r.ReadArrayEnd() 64060 return 64061 } 64062 r.ReadArrayElem() 64063 if r.TryDecodeAsNil() { 64064 x.QueryMeta.Index = 0 64065 } else { 64066 x.Index = (uint64)(r.DecodeUint64()) 64067 } 64068 yyj9++ 64069 if yyhl9 { 64070 yyb9 = yyj9 > l 64071 } else { 64072 yyb9 = r.CheckBreak() 64073 } 64074 if yyb9 { 64075 r.ReadArrayEnd() 64076 return 64077 } 64078 r.ReadArrayElem() 64079 if r.TryDecodeAsNil() { 64080 x.QueryMeta.LastContact = 0 64081 } else { 64082 if false { 64083 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 64084 z.DecExtension(x.LastContact, yyxt13) 64085 } else { 64086 x.LastContact = (time.Duration)(r.DecodeInt64()) 64087 } 64088 } 64089 yyj9++ 64090 if yyhl9 { 64091 yyb9 = yyj9 > l 64092 } else { 64093 yyb9 = r.CheckBreak() 64094 } 64095 if yyb9 { 64096 r.ReadArrayEnd() 64097 return 64098 } 64099 r.ReadArrayElem() 64100 if r.TryDecodeAsNil() { 64101 x.QueryMeta.KnownLeader = false 64102 } else { 64103 x.KnownLeader = (bool)(r.DecodeBool()) 64104 } 64105 for { 64106 yyj9++ 64107 if yyhl9 { 64108 yyb9 = yyj9 > l 64109 } else { 64110 yyb9 = r.CheckBreak() 64111 } 64112 if yyb9 { 64113 break 64114 } 64115 r.ReadArrayElem() 64116 z.DecStructFieldNotFound(yyj9-1, "") 64117 } 64118 r.ReadArrayEnd() 64119 } 64120 64121 func (x *JobSummaryResponse) CodecEncodeSelf(e *codec1978.Encoder) { 64122 var h codecSelfer100 64123 z, r := codec1978.GenHelperEncoder(e) 64124 _, _, _ = h, z, r 64125 if x == nil { 64126 r.EncodeNil() 64127 } else { 64128 if false { 64129 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64130 z.EncExtension(x, yyxt1) 64131 } else { 64132 yysep2 := !z.EncBinary() 64133 yy2arr2 := z.EncBasicHandle().StructToArray 64134 _, _ = yysep2, yy2arr2 64135 const yyr2 bool = false // struct tag has 'toArray' 64136 if yyr2 || yy2arr2 { 64137 r.WriteArrayStart(4) 64138 } else { 64139 r.WriteMapStart(4) 64140 } 64141 var yyn3 bool 64142 if x.JobSummary == nil { 64143 yyn3 = true 64144 goto LABEL3 64145 } 64146 LABEL3: 64147 if yyr2 || yy2arr2 { 64148 if yyn3 { 64149 r.WriteArrayElem() 64150 r.EncodeNil() 64151 } else { 64152 r.WriteArrayElem() 64153 if x.JobSummary == nil { 64154 r.EncodeNil() 64155 } else { 64156 x.JobSummary.CodecEncodeSelf(e) 64157 } 64158 } 64159 } else { 64160 r.WriteMapElemKey() 64161 if z.IsJSONHandle() { 64162 z.WriteStr("\"JobSummary\"") 64163 } else { 64164 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) 64165 } 64166 r.WriteMapElemValue() 64167 if yyn3 { 64168 r.EncodeNil() 64169 } else { 64170 if x.JobSummary == nil { 64171 r.EncodeNil() 64172 } else { 64173 x.JobSummary.CodecEncodeSelf(e) 64174 } 64175 } 64176 } 64177 if yyr2 || yy2arr2 { 64178 r.WriteArrayElem() 64179 if false { 64180 } else { 64181 r.EncodeUint(uint64(x.Index)) 64182 } 64183 } else { 64184 r.WriteMapElemKey() 64185 if z.IsJSONHandle() { 64186 z.WriteStr("\"Index\"") 64187 } else { 64188 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 64189 } 64190 r.WriteMapElemValue() 64191 if false { 64192 } else { 64193 r.EncodeUint(uint64(x.Index)) 64194 } 64195 } 64196 if yyr2 || yy2arr2 { 64197 r.WriteArrayElem() 64198 if false { 64199 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 64200 z.EncExtension(x.LastContact, yyxt10) 64201 } else { 64202 r.EncodeInt(int64(x.LastContact)) 64203 } 64204 } else { 64205 r.WriteMapElemKey() 64206 if z.IsJSONHandle() { 64207 z.WriteStr("\"LastContact\"") 64208 } else { 64209 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 64210 } 64211 r.WriteMapElemValue() 64212 if false { 64213 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 64214 z.EncExtension(x.LastContact, yyxt11) 64215 } else { 64216 r.EncodeInt(int64(x.LastContact)) 64217 } 64218 } 64219 if yyr2 || yy2arr2 { 64220 r.WriteArrayElem() 64221 if false { 64222 } else { 64223 r.EncodeBool(bool(x.KnownLeader)) 64224 } 64225 } else { 64226 r.WriteMapElemKey() 64227 if z.IsJSONHandle() { 64228 z.WriteStr("\"KnownLeader\"") 64229 } else { 64230 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 64231 } 64232 r.WriteMapElemValue() 64233 if false { 64234 } else { 64235 r.EncodeBool(bool(x.KnownLeader)) 64236 } 64237 } 64238 if yyr2 || yy2arr2 { 64239 r.WriteArrayEnd() 64240 } else { 64241 r.WriteMapEnd() 64242 } 64243 } 64244 } 64245 } 64246 64247 func (x *JobSummaryResponse) CodecDecodeSelf(d *codec1978.Decoder) { 64248 var h codecSelfer100 64249 z, r := codec1978.GenHelperDecoder(d) 64250 _, _, _ = h, z, r 64251 if false { 64252 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64253 z.DecExtension(x, yyxt1) 64254 } else { 64255 yyct2 := r.ContainerType() 64256 if yyct2 == codecSelferValueTypeMap100 { 64257 yyl2 := r.ReadMapStart() 64258 if yyl2 == 0 { 64259 r.ReadMapEnd() 64260 } else { 64261 x.codecDecodeSelfFromMap(yyl2, d) 64262 } 64263 } else if yyct2 == codecSelferValueTypeArray100 { 64264 yyl2 := r.ReadArrayStart() 64265 if yyl2 == 0 { 64266 r.ReadArrayEnd() 64267 } else { 64268 x.codecDecodeSelfFromArray(yyl2, d) 64269 } 64270 } else { 64271 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 64272 } 64273 } 64274 } 64275 64276 func (x *JobSummaryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 64277 var h codecSelfer100 64278 z, r := codec1978.GenHelperDecoder(d) 64279 _, _, _ = h, z, r 64280 var yyhl3 bool = l >= 0 64281 for yyj3 := 0; ; yyj3++ { 64282 if yyhl3 { 64283 if yyj3 >= l { 64284 break 64285 } 64286 } else { 64287 if r.CheckBreak() { 64288 break 64289 } 64290 } 64291 r.ReadMapElemKey() 64292 yys3 := z.StringView(r.DecodeStringAsBytes()) 64293 r.ReadMapElemValue() 64294 switch yys3 { 64295 case "JobSummary": 64296 if r.TryDecodeAsNil() { 64297 if true && x.JobSummary != nil { 64298 x.JobSummary = nil 64299 } 64300 } else { 64301 if x.JobSummary == nil { 64302 x.JobSummary = new(JobSummary) 64303 } 64304 64305 x.JobSummary.CodecDecodeSelf(d) 64306 } 64307 case "Index": 64308 if r.TryDecodeAsNil() { 64309 x.QueryMeta.Index = 0 64310 } else { 64311 x.Index = (uint64)(r.DecodeUint64()) 64312 } 64313 case "LastContact": 64314 if r.TryDecodeAsNil() { 64315 x.QueryMeta.LastContact = 0 64316 } else { 64317 if false { 64318 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 64319 z.DecExtension(x.LastContact, yyxt7) 64320 } else { 64321 x.LastContact = (time.Duration)(r.DecodeInt64()) 64322 } 64323 } 64324 case "KnownLeader": 64325 if r.TryDecodeAsNil() { 64326 x.QueryMeta.KnownLeader = false 64327 } else { 64328 x.KnownLeader = (bool)(r.DecodeBool()) 64329 } 64330 default: 64331 z.DecStructFieldNotFound(-1, yys3) 64332 } // end switch yys3 64333 } // end for yyj3 64334 r.ReadMapEnd() 64335 } 64336 64337 func (x *JobSummaryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64338 var h codecSelfer100 64339 z, r := codec1978.GenHelperDecoder(d) 64340 _, _, _ = h, z, r 64341 var yyj9 int 64342 var yyb9 bool 64343 var yyhl9 bool = l >= 0 64344 yyj9++ 64345 if yyhl9 { 64346 yyb9 = yyj9 > l 64347 } else { 64348 yyb9 = r.CheckBreak() 64349 } 64350 if yyb9 { 64351 r.ReadArrayEnd() 64352 return 64353 } 64354 r.ReadArrayElem() 64355 if r.TryDecodeAsNil() { 64356 if true && x.JobSummary != nil { 64357 x.JobSummary = nil 64358 } 64359 } else { 64360 if x.JobSummary == nil { 64361 x.JobSummary = new(JobSummary) 64362 } 64363 64364 x.JobSummary.CodecDecodeSelf(d) 64365 } 64366 yyj9++ 64367 if yyhl9 { 64368 yyb9 = yyj9 > l 64369 } else { 64370 yyb9 = r.CheckBreak() 64371 } 64372 if yyb9 { 64373 r.ReadArrayEnd() 64374 return 64375 } 64376 r.ReadArrayElem() 64377 if r.TryDecodeAsNil() { 64378 x.QueryMeta.Index = 0 64379 } else { 64380 x.Index = (uint64)(r.DecodeUint64()) 64381 } 64382 yyj9++ 64383 if yyhl9 { 64384 yyb9 = yyj9 > l 64385 } else { 64386 yyb9 = r.CheckBreak() 64387 } 64388 if yyb9 { 64389 r.ReadArrayEnd() 64390 return 64391 } 64392 r.ReadArrayElem() 64393 if r.TryDecodeAsNil() { 64394 x.QueryMeta.LastContact = 0 64395 } else { 64396 if false { 64397 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 64398 z.DecExtension(x.LastContact, yyxt13) 64399 } else { 64400 x.LastContact = (time.Duration)(r.DecodeInt64()) 64401 } 64402 } 64403 yyj9++ 64404 if yyhl9 { 64405 yyb9 = yyj9 > l 64406 } else { 64407 yyb9 = r.CheckBreak() 64408 } 64409 if yyb9 { 64410 r.ReadArrayEnd() 64411 return 64412 } 64413 r.ReadArrayElem() 64414 if r.TryDecodeAsNil() { 64415 x.QueryMeta.KnownLeader = false 64416 } else { 64417 x.KnownLeader = (bool)(r.DecodeBool()) 64418 } 64419 for { 64420 yyj9++ 64421 if yyhl9 { 64422 yyb9 = yyj9 > l 64423 } else { 64424 yyb9 = r.CheckBreak() 64425 } 64426 if yyb9 { 64427 break 64428 } 64429 r.ReadArrayElem() 64430 z.DecStructFieldNotFound(yyj9-1, "") 64431 } 64432 r.ReadArrayEnd() 64433 } 64434 64435 func (x *JobScaleStatusResponse) CodecEncodeSelf(e *codec1978.Encoder) { 64436 var h codecSelfer100 64437 z, r := codec1978.GenHelperEncoder(e) 64438 _, _, _ = h, z, r 64439 if x == nil { 64440 r.EncodeNil() 64441 } else { 64442 if false { 64443 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64444 z.EncExtension(x, yyxt1) 64445 } else { 64446 yysep2 := !z.EncBinary() 64447 yy2arr2 := z.EncBasicHandle().StructToArray 64448 _, _ = yysep2, yy2arr2 64449 const yyr2 bool = false // struct tag has 'toArray' 64450 if yyr2 || yy2arr2 { 64451 r.WriteArrayStart(4) 64452 } else { 64453 r.WriteMapStart(4) 64454 } 64455 var yyn3 bool 64456 if x.JobScaleStatus == nil { 64457 yyn3 = true 64458 goto LABEL3 64459 } 64460 LABEL3: 64461 if yyr2 || yy2arr2 { 64462 if yyn3 { 64463 r.WriteArrayElem() 64464 r.EncodeNil() 64465 } else { 64466 r.WriteArrayElem() 64467 if x.JobScaleStatus == nil { 64468 r.EncodeNil() 64469 } else { 64470 x.JobScaleStatus.CodecEncodeSelf(e) 64471 } 64472 } 64473 } else { 64474 r.WriteMapElemKey() 64475 if z.IsJSONHandle() { 64476 z.WriteStr("\"JobScaleStatus\"") 64477 } else { 64478 r.EncodeStringEnc(codecSelferCcUTF8100, `JobScaleStatus`) 64479 } 64480 r.WriteMapElemValue() 64481 if yyn3 { 64482 r.EncodeNil() 64483 } else { 64484 if x.JobScaleStatus == nil { 64485 r.EncodeNil() 64486 } else { 64487 x.JobScaleStatus.CodecEncodeSelf(e) 64488 } 64489 } 64490 } 64491 if yyr2 || yy2arr2 { 64492 r.WriteArrayElem() 64493 if false { 64494 } else { 64495 r.EncodeUint(uint64(x.Index)) 64496 } 64497 } else { 64498 r.WriteMapElemKey() 64499 if z.IsJSONHandle() { 64500 z.WriteStr("\"Index\"") 64501 } else { 64502 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 64503 } 64504 r.WriteMapElemValue() 64505 if false { 64506 } else { 64507 r.EncodeUint(uint64(x.Index)) 64508 } 64509 } 64510 if yyr2 || yy2arr2 { 64511 r.WriteArrayElem() 64512 if false { 64513 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 64514 z.EncExtension(x.LastContact, yyxt10) 64515 } else { 64516 r.EncodeInt(int64(x.LastContact)) 64517 } 64518 } else { 64519 r.WriteMapElemKey() 64520 if z.IsJSONHandle() { 64521 z.WriteStr("\"LastContact\"") 64522 } else { 64523 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 64524 } 64525 r.WriteMapElemValue() 64526 if false { 64527 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 64528 z.EncExtension(x.LastContact, yyxt11) 64529 } else { 64530 r.EncodeInt(int64(x.LastContact)) 64531 } 64532 } 64533 if yyr2 || yy2arr2 { 64534 r.WriteArrayElem() 64535 if false { 64536 } else { 64537 r.EncodeBool(bool(x.KnownLeader)) 64538 } 64539 } else { 64540 r.WriteMapElemKey() 64541 if z.IsJSONHandle() { 64542 z.WriteStr("\"KnownLeader\"") 64543 } else { 64544 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 64545 } 64546 r.WriteMapElemValue() 64547 if false { 64548 } else { 64549 r.EncodeBool(bool(x.KnownLeader)) 64550 } 64551 } 64552 if yyr2 || yy2arr2 { 64553 r.WriteArrayEnd() 64554 } else { 64555 r.WriteMapEnd() 64556 } 64557 } 64558 } 64559 } 64560 64561 func (x *JobScaleStatusResponse) CodecDecodeSelf(d *codec1978.Decoder) { 64562 var h codecSelfer100 64563 z, r := codec1978.GenHelperDecoder(d) 64564 _, _, _ = h, z, r 64565 if false { 64566 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64567 z.DecExtension(x, yyxt1) 64568 } else { 64569 yyct2 := r.ContainerType() 64570 if yyct2 == codecSelferValueTypeMap100 { 64571 yyl2 := r.ReadMapStart() 64572 if yyl2 == 0 { 64573 r.ReadMapEnd() 64574 } else { 64575 x.codecDecodeSelfFromMap(yyl2, d) 64576 } 64577 } else if yyct2 == codecSelferValueTypeArray100 { 64578 yyl2 := r.ReadArrayStart() 64579 if yyl2 == 0 { 64580 r.ReadArrayEnd() 64581 } else { 64582 x.codecDecodeSelfFromArray(yyl2, d) 64583 } 64584 } else { 64585 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 64586 } 64587 } 64588 } 64589 64590 func (x *JobScaleStatusResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 64591 var h codecSelfer100 64592 z, r := codec1978.GenHelperDecoder(d) 64593 _, _, _ = h, z, r 64594 var yyhl3 bool = l >= 0 64595 for yyj3 := 0; ; yyj3++ { 64596 if yyhl3 { 64597 if yyj3 >= l { 64598 break 64599 } 64600 } else { 64601 if r.CheckBreak() { 64602 break 64603 } 64604 } 64605 r.ReadMapElemKey() 64606 yys3 := z.StringView(r.DecodeStringAsBytes()) 64607 r.ReadMapElemValue() 64608 switch yys3 { 64609 case "JobScaleStatus": 64610 if r.TryDecodeAsNil() { 64611 if true && x.JobScaleStatus != nil { 64612 x.JobScaleStatus = nil 64613 } 64614 } else { 64615 if x.JobScaleStatus == nil { 64616 x.JobScaleStatus = new(JobScaleStatus) 64617 } 64618 64619 x.JobScaleStatus.CodecDecodeSelf(d) 64620 } 64621 case "Index": 64622 if r.TryDecodeAsNil() { 64623 x.QueryMeta.Index = 0 64624 } else { 64625 x.Index = (uint64)(r.DecodeUint64()) 64626 } 64627 case "LastContact": 64628 if r.TryDecodeAsNil() { 64629 x.QueryMeta.LastContact = 0 64630 } else { 64631 if false { 64632 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 64633 z.DecExtension(x.LastContact, yyxt7) 64634 } else { 64635 x.LastContact = (time.Duration)(r.DecodeInt64()) 64636 } 64637 } 64638 case "KnownLeader": 64639 if r.TryDecodeAsNil() { 64640 x.QueryMeta.KnownLeader = false 64641 } else { 64642 x.KnownLeader = (bool)(r.DecodeBool()) 64643 } 64644 default: 64645 z.DecStructFieldNotFound(-1, yys3) 64646 } // end switch yys3 64647 } // end for yyj3 64648 r.ReadMapEnd() 64649 } 64650 64651 func (x *JobScaleStatusResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64652 var h codecSelfer100 64653 z, r := codec1978.GenHelperDecoder(d) 64654 _, _, _ = h, z, r 64655 var yyj9 int 64656 var yyb9 bool 64657 var yyhl9 bool = l >= 0 64658 yyj9++ 64659 if yyhl9 { 64660 yyb9 = yyj9 > l 64661 } else { 64662 yyb9 = r.CheckBreak() 64663 } 64664 if yyb9 { 64665 r.ReadArrayEnd() 64666 return 64667 } 64668 r.ReadArrayElem() 64669 if r.TryDecodeAsNil() { 64670 if true && x.JobScaleStatus != nil { 64671 x.JobScaleStatus = nil 64672 } 64673 } else { 64674 if x.JobScaleStatus == nil { 64675 x.JobScaleStatus = new(JobScaleStatus) 64676 } 64677 64678 x.JobScaleStatus.CodecDecodeSelf(d) 64679 } 64680 yyj9++ 64681 if yyhl9 { 64682 yyb9 = yyj9 > l 64683 } else { 64684 yyb9 = r.CheckBreak() 64685 } 64686 if yyb9 { 64687 r.ReadArrayEnd() 64688 return 64689 } 64690 r.ReadArrayElem() 64691 if r.TryDecodeAsNil() { 64692 x.QueryMeta.Index = 0 64693 } else { 64694 x.Index = (uint64)(r.DecodeUint64()) 64695 } 64696 yyj9++ 64697 if yyhl9 { 64698 yyb9 = yyj9 > l 64699 } else { 64700 yyb9 = r.CheckBreak() 64701 } 64702 if yyb9 { 64703 r.ReadArrayEnd() 64704 return 64705 } 64706 r.ReadArrayElem() 64707 if r.TryDecodeAsNil() { 64708 x.QueryMeta.LastContact = 0 64709 } else { 64710 if false { 64711 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 64712 z.DecExtension(x.LastContact, yyxt13) 64713 } else { 64714 x.LastContact = (time.Duration)(r.DecodeInt64()) 64715 } 64716 } 64717 yyj9++ 64718 if yyhl9 { 64719 yyb9 = yyj9 > l 64720 } else { 64721 yyb9 = r.CheckBreak() 64722 } 64723 if yyb9 { 64724 r.ReadArrayEnd() 64725 return 64726 } 64727 r.ReadArrayElem() 64728 if r.TryDecodeAsNil() { 64729 x.QueryMeta.KnownLeader = false 64730 } else { 64731 x.KnownLeader = (bool)(r.DecodeBool()) 64732 } 64733 for { 64734 yyj9++ 64735 if yyhl9 { 64736 yyb9 = yyj9 > l 64737 } else { 64738 yyb9 = r.CheckBreak() 64739 } 64740 if yyb9 { 64741 break 64742 } 64743 r.ReadArrayElem() 64744 z.DecStructFieldNotFound(yyj9-1, "") 64745 } 64746 r.ReadArrayEnd() 64747 } 64748 64749 func (x *JobScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { 64750 var h codecSelfer100 64751 z, r := codec1978.GenHelperEncoder(e) 64752 _, _, _ = h, z, r 64753 if x == nil { 64754 r.EncodeNil() 64755 } else { 64756 if false { 64757 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64758 z.EncExtension(x, yyxt1) 64759 } else { 64760 yysep2 := !z.EncBinary() 64761 yy2arr2 := z.EncBasicHandle().StructToArray 64762 _, _ = yysep2, yy2arr2 64763 const yyr2 bool = false // struct tag has 'toArray' 64764 if yyr2 || yy2arr2 { 64765 r.WriteArrayStart(5) 64766 } else { 64767 r.WriteMapStart(5) 64768 } 64769 if yyr2 || yy2arr2 { 64770 r.WriteArrayElem() 64771 if false { 64772 } else { 64773 if z.EncBasicHandle().StringToRaw { 64774 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 64775 } else { 64776 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 64777 } 64778 } 64779 } else { 64780 r.WriteMapElemKey() 64781 if z.IsJSONHandle() { 64782 z.WriteStr("\"JobID\"") 64783 } else { 64784 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 64785 } 64786 r.WriteMapElemValue() 64787 if false { 64788 } else { 64789 if z.EncBasicHandle().StringToRaw { 64790 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 64791 } else { 64792 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 64793 } 64794 } 64795 } 64796 if yyr2 || yy2arr2 { 64797 r.WriteArrayElem() 64798 if false { 64799 } else { 64800 r.EncodeUint(uint64(x.JobCreateIndex)) 64801 } 64802 } else { 64803 r.WriteMapElemKey() 64804 if z.IsJSONHandle() { 64805 z.WriteStr("\"JobCreateIndex\"") 64806 } else { 64807 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 64808 } 64809 r.WriteMapElemValue() 64810 if false { 64811 } else { 64812 r.EncodeUint(uint64(x.JobCreateIndex)) 64813 } 64814 } 64815 if yyr2 || yy2arr2 { 64816 r.WriteArrayElem() 64817 if false { 64818 } else { 64819 r.EncodeUint(uint64(x.JobModifyIndex)) 64820 } 64821 } else { 64822 r.WriteMapElemKey() 64823 if z.IsJSONHandle() { 64824 z.WriteStr("\"JobModifyIndex\"") 64825 } else { 64826 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 64827 } 64828 r.WriteMapElemValue() 64829 if false { 64830 } else { 64831 r.EncodeUint(uint64(x.JobModifyIndex)) 64832 } 64833 } 64834 if yyr2 || yy2arr2 { 64835 r.WriteArrayElem() 64836 if false { 64837 } else { 64838 r.EncodeBool(bool(x.JobStopped)) 64839 } 64840 } else { 64841 r.WriteMapElemKey() 64842 if z.IsJSONHandle() { 64843 z.WriteStr("\"JobStopped\"") 64844 } else { 64845 r.EncodeStringEnc(codecSelferCcUTF8100, `JobStopped`) 64846 } 64847 r.WriteMapElemValue() 64848 if false { 64849 } else { 64850 r.EncodeBool(bool(x.JobStopped)) 64851 } 64852 } 64853 if yyr2 || yy2arr2 { 64854 r.WriteArrayElem() 64855 if x.TaskGroups == nil { 64856 r.EncodeNil() 64857 } else { 64858 if false { 64859 } else { 64860 h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) 64861 } 64862 } 64863 } else { 64864 r.WriteMapElemKey() 64865 if z.IsJSONHandle() { 64866 z.WriteStr("\"TaskGroups\"") 64867 } else { 64868 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 64869 } 64870 r.WriteMapElemValue() 64871 if x.TaskGroups == nil { 64872 r.EncodeNil() 64873 } else { 64874 if false { 64875 } else { 64876 h.encMapstringPtrtoTaskGroupScaleStatus((map[string]*TaskGroupScaleStatus)(x.TaskGroups), e) 64877 } 64878 } 64879 } 64880 if yyr2 || yy2arr2 { 64881 r.WriteArrayEnd() 64882 } else { 64883 r.WriteMapEnd() 64884 } 64885 } 64886 } 64887 } 64888 64889 func (x *JobScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { 64890 var h codecSelfer100 64891 z, r := codec1978.GenHelperDecoder(d) 64892 _, _, _ = h, z, r 64893 if false { 64894 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 64895 z.DecExtension(x, yyxt1) 64896 } else { 64897 yyct2 := r.ContainerType() 64898 if yyct2 == codecSelferValueTypeMap100 { 64899 yyl2 := r.ReadMapStart() 64900 if yyl2 == 0 { 64901 r.ReadMapEnd() 64902 } else { 64903 x.codecDecodeSelfFromMap(yyl2, d) 64904 } 64905 } else if yyct2 == codecSelferValueTypeArray100 { 64906 yyl2 := r.ReadArrayStart() 64907 if yyl2 == 0 { 64908 r.ReadArrayEnd() 64909 } else { 64910 x.codecDecodeSelfFromArray(yyl2, d) 64911 } 64912 } else { 64913 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 64914 } 64915 } 64916 } 64917 64918 func (x *JobScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 64919 var h codecSelfer100 64920 z, r := codec1978.GenHelperDecoder(d) 64921 _, _, _ = h, z, r 64922 var yyhl3 bool = l >= 0 64923 for yyj3 := 0; ; yyj3++ { 64924 if yyhl3 { 64925 if yyj3 >= l { 64926 break 64927 } 64928 } else { 64929 if r.CheckBreak() { 64930 break 64931 } 64932 } 64933 r.ReadMapElemKey() 64934 yys3 := z.StringView(r.DecodeStringAsBytes()) 64935 r.ReadMapElemValue() 64936 switch yys3 { 64937 case "JobID": 64938 if r.TryDecodeAsNil() { 64939 x.JobID = "" 64940 } else { 64941 x.JobID = (string)(r.DecodeString()) 64942 } 64943 case "JobCreateIndex": 64944 if r.TryDecodeAsNil() { 64945 x.JobCreateIndex = 0 64946 } else { 64947 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 64948 } 64949 case "JobModifyIndex": 64950 if r.TryDecodeAsNil() { 64951 x.JobModifyIndex = 0 64952 } else { 64953 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 64954 } 64955 case "JobStopped": 64956 if r.TryDecodeAsNil() { 64957 x.JobStopped = false 64958 } else { 64959 x.JobStopped = (bool)(r.DecodeBool()) 64960 } 64961 case "TaskGroups": 64962 if r.TryDecodeAsNil() { 64963 x.TaskGroups = nil 64964 } else { 64965 if false { 64966 } else { 64967 h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) 64968 } 64969 } 64970 default: 64971 z.DecStructFieldNotFound(-1, yys3) 64972 } // end switch yys3 64973 } // end for yyj3 64974 r.ReadMapEnd() 64975 } 64976 64977 func (x *JobScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 64978 var h codecSelfer100 64979 z, r := codec1978.GenHelperDecoder(d) 64980 _, _, _ = h, z, r 64981 var yyj10 int 64982 var yyb10 bool 64983 var yyhl10 bool = l >= 0 64984 yyj10++ 64985 if yyhl10 { 64986 yyb10 = yyj10 > l 64987 } else { 64988 yyb10 = r.CheckBreak() 64989 } 64990 if yyb10 { 64991 r.ReadArrayEnd() 64992 return 64993 } 64994 r.ReadArrayElem() 64995 if r.TryDecodeAsNil() { 64996 x.JobID = "" 64997 } else { 64998 x.JobID = (string)(r.DecodeString()) 64999 } 65000 yyj10++ 65001 if yyhl10 { 65002 yyb10 = yyj10 > l 65003 } else { 65004 yyb10 = r.CheckBreak() 65005 } 65006 if yyb10 { 65007 r.ReadArrayEnd() 65008 return 65009 } 65010 r.ReadArrayElem() 65011 if r.TryDecodeAsNil() { 65012 x.JobCreateIndex = 0 65013 } else { 65014 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 65015 } 65016 yyj10++ 65017 if yyhl10 { 65018 yyb10 = yyj10 > l 65019 } else { 65020 yyb10 = r.CheckBreak() 65021 } 65022 if yyb10 { 65023 r.ReadArrayEnd() 65024 return 65025 } 65026 r.ReadArrayElem() 65027 if r.TryDecodeAsNil() { 65028 x.JobModifyIndex = 0 65029 } else { 65030 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 65031 } 65032 yyj10++ 65033 if yyhl10 { 65034 yyb10 = yyj10 > l 65035 } else { 65036 yyb10 = r.CheckBreak() 65037 } 65038 if yyb10 { 65039 r.ReadArrayEnd() 65040 return 65041 } 65042 r.ReadArrayElem() 65043 if r.TryDecodeAsNil() { 65044 x.JobStopped = false 65045 } else { 65046 x.JobStopped = (bool)(r.DecodeBool()) 65047 } 65048 yyj10++ 65049 if yyhl10 { 65050 yyb10 = yyj10 > l 65051 } else { 65052 yyb10 = r.CheckBreak() 65053 } 65054 if yyb10 { 65055 r.ReadArrayEnd() 65056 return 65057 } 65058 r.ReadArrayElem() 65059 if r.TryDecodeAsNil() { 65060 x.TaskGroups = nil 65061 } else { 65062 if false { 65063 } else { 65064 h.decMapstringPtrtoTaskGroupScaleStatus((*map[string]*TaskGroupScaleStatus)(&x.TaskGroups), d) 65065 } 65066 } 65067 for { 65068 yyj10++ 65069 if yyhl10 { 65070 yyb10 = yyj10 > l 65071 } else { 65072 yyb10 = r.CheckBreak() 65073 } 65074 if yyb10 { 65075 break 65076 } 65077 r.ReadArrayElem() 65078 z.DecStructFieldNotFound(yyj10-1, "") 65079 } 65080 r.ReadArrayEnd() 65081 } 65082 65083 func (x *TaskGroupScaleStatus) CodecEncodeSelf(e *codec1978.Encoder) { 65084 var h codecSelfer100 65085 z, r := codec1978.GenHelperEncoder(e) 65086 _, _, _ = h, z, r 65087 if x == nil { 65088 r.EncodeNil() 65089 } else { 65090 if false { 65091 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65092 z.EncExtension(x, yyxt1) 65093 } else { 65094 yysep2 := !z.EncBinary() 65095 yy2arr2 := z.EncBasicHandle().StructToArray 65096 _, _ = yysep2, yy2arr2 65097 const yyr2 bool = false // struct tag has 'toArray' 65098 if yyr2 || yy2arr2 { 65099 r.WriteArrayStart(6) 65100 } else { 65101 r.WriteMapStart(6) 65102 } 65103 if yyr2 || yy2arr2 { 65104 r.WriteArrayElem() 65105 if false { 65106 } else { 65107 r.EncodeInt(int64(x.Desired)) 65108 } 65109 } else { 65110 r.WriteMapElemKey() 65111 if z.IsJSONHandle() { 65112 z.WriteStr("\"Desired\"") 65113 } else { 65114 r.EncodeStringEnc(codecSelferCcUTF8100, `Desired`) 65115 } 65116 r.WriteMapElemValue() 65117 if false { 65118 } else { 65119 r.EncodeInt(int64(x.Desired)) 65120 } 65121 } 65122 if yyr2 || yy2arr2 { 65123 r.WriteArrayElem() 65124 if false { 65125 } else { 65126 r.EncodeInt(int64(x.Placed)) 65127 } 65128 } else { 65129 r.WriteMapElemKey() 65130 if z.IsJSONHandle() { 65131 z.WriteStr("\"Placed\"") 65132 } else { 65133 r.EncodeStringEnc(codecSelferCcUTF8100, `Placed`) 65134 } 65135 r.WriteMapElemValue() 65136 if false { 65137 } else { 65138 r.EncodeInt(int64(x.Placed)) 65139 } 65140 } 65141 if yyr2 || yy2arr2 { 65142 r.WriteArrayElem() 65143 if false { 65144 } else { 65145 r.EncodeInt(int64(x.Running)) 65146 } 65147 } else { 65148 r.WriteMapElemKey() 65149 if z.IsJSONHandle() { 65150 z.WriteStr("\"Running\"") 65151 } else { 65152 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 65153 } 65154 r.WriteMapElemValue() 65155 if false { 65156 } else { 65157 r.EncodeInt(int64(x.Running)) 65158 } 65159 } 65160 if yyr2 || yy2arr2 { 65161 r.WriteArrayElem() 65162 if false { 65163 } else { 65164 r.EncodeInt(int64(x.Healthy)) 65165 } 65166 } else { 65167 r.WriteMapElemKey() 65168 if z.IsJSONHandle() { 65169 z.WriteStr("\"Healthy\"") 65170 } else { 65171 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 65172 } 65173 r.WriteMapElemValue() 65174 if false { 65175 } else { 65176 r.EncodeInt(int64(x.Healthy)) 65177 } 65178 } 65179 if yyr2 || yy2arr2 { 65180 r.WriteArrayElem() 65181 if false { 65182 } else { 65183 r.EncodeInt(int64(x.Unhealthy)) 65184 } 65185 } else { 65186 r.WriteMapElemKey() 65187 if z.IsJSONHandle() { 65188 z.WriteStr("\"Unhealthy\"") 65189 } else { 65190 r.EncodeStringEnc(codecSelferCcUTF8100, `Unhealthy`) 65191 } 65192 r.WriteMapElemValue() 65193 if false { 65194 } else { 65195 r.EncodeInt(int64(x.Unhealthy)) 65196 } 65197 } 65198 if yyr2 || yy2arr2 { 65199 r.WriteArrayElem() 65200 if x.Events == nil { 65201 r.EncodeNil() 65202 } else { 65203 if false { 65204 } else { 65205 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) 65206 } 65207 } 65208 } else { 65209 r.WriteMapElemKey() 65210 if z.IsJSONHandle() { 65211 z.WriteStr("\"Events\"") 65212 } else { 65213 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 65214 } 65215 r.WriteMapElemValue() 65216 if x.Events == nil { 65217 r.EncodeNil() 65218 } else { 65219 if false { 65220 } else { 65221 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(x.Events), e) 65222 } 65223 } 65224 } 65225 if yyr2 || yy2arr2 { 65226 r.WriteArrayEnd() 65227 } else { 65228 r.WriteMapEnd() 65229 } 65230 } 65231 } 65232 } 65233 65234 func (x *TaskGroupScaleStatus) CodecDecodeSelf(d *codec1978.Decoder) { 65235 var h codecSelfer100 65236 z, r := codec1978.GenHelperDecoder(d) 65237 _, _, _ = h, z, r 65238 if false { 65239 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65240 z.DecExtension(x, yyxt1) 65241 } else { 65242 yyct2 := r.ContainerType() 65243 if yyct2 == codecSelferValueTypeMap100 { 65244 yyl2 := r.ReadMapStart() 65245 if yyl2 == 0 { 65246 r.ReadMapEnd() 65247 } else { 65248 x.codecDecodeSelfFromMap(yyl2, d) 65249 } 65250 } else if yyct2 == codecSelferValueTypeArray100 { 65251 yyl2 := r.ReadArrayStart() 65252 if yyl2 == 0 { 65253 r.ReadArrayEnd() 65254 } else { 65255 x.codecDecodeSelfFromArray(yyl2, d) 65256 } 65257 } else { 65258 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 65259 } 65260 } 65261 } 65262 65263 func (x *TaskGroupScaleStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 65264 var h codecSelfer100 65265 z, r := codec1978.GenHelperDecoder(d) 65266 _, _, _ = h, z, r 65267 var yyhl3 bool = l >= 0 65268 for yyj3 := 0; ; yyj3++ { 65269 if yyhl3 { 65270 if yyj3 >= l { 65271 break 65272 } 65273 } else { 65274 if r.CheckBreak() { 65275 break 65276 } 65277 } 65278 r.ReadMapElemKey() 65279 yys3 := z.StringView(r.DecodeStringAsBytes()) 65280 r.ReadMapElemValue() 65281 switch yys3 { 65282 case "Desired": 65283 if r.TryDecodeAsNil() { 65284 x.Desired = 0 65285 } else { 65286 x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65287 } 65288 case "Placed": 65289 if r.TryDecodeAsNil() { 65290 x.Placed = 0 65291 } else { 65292 x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65293 } 65294 case "Running": 65295 if r.TryDecodeAsNil() { 65296 x.Running = 0 65297 } else { 65298 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65299 } 65300 case "Healthy": 65301 if r.TryDecodeAsNil() { 65302 x.Healthy = 0 65303 } else { 65304 x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65305 } 65306 case "Unhealthy": 65307 if r.TryDecodeAsNil() { 65308 x.Unhealthy = 0 65309 } else { 65310 x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65311 } 65312 case "Events": 65313 if r.TryDecodeAsNil() { 65314 x.Events = nil 65315 } else { 65316 if false { 65317 } else { 65318 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) 65319 } 65320 } 65321 default: 65322 z.DecStructFieldNotFound(-1, yys3) 65323 } // end switch yys3 65324 } // end for yyj3 65325 r.ReadMapEnd() 65326 } 65327 65328 func (x *TaskGroupScaleStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 65329 var h codecSelfer100 65330 z, r := codec1978.GenHelperDecoder(d) 65331 _, _, _ = h, z, r 65332 var yyj11 int 65333 var yyb11 bool 65334 var yyhl11 bool = l >= 0 65335 yyj11++ 65336 if yyhl11 { 65337 yyb11 = yyj11 > l 65338 } else { 65339 yyb11 = r.CheckBreak() 65340 } 65341 if yyb11 { 65342 r.ReadArrayEnd() 65343 return 65344 } 65345 r.ReadArrayElem() 65346 if r.TryDecodeAsNil() { 65347 x.Desired = 0 65348 } else { 65349 x.Desired = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65350 } 65351 yyj11++ 65352 if yyhl11 { 65353 yyb11 = yyj11 > l 65354 } else { 65355 yyb11 = r.CheckBreak() 65356 } 65357 if yyb11 { 65358 r.ReadArrayEnd() 65359 return 65360 } 65361 r.ReadArrayElem() 65362 if r.TryDecodeAsNil() { 65363 x.Placed = 0 65364 } else { 65365 x.Placed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65366 } 65367 yyj11++ 65368 if yyhl11 { 65369 yyb11 = yyj11 > l 65370 } else { 65371 yyb11 = r.CheckBreak() 65372 } 65373 if yyb11 { 65374 r.ReadArrayEnd() 65375 return 65376 } 65377 r.ReadArrayElem() 65378 if r.TryDecodeAsNil() { 65379 x.Running = 0 65380 } else { 65381 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65382 } 65383 yyj11++ 65384 if yyhl11 { 65385 yyb11 = yyj11 > l 65386 } else { 65387 yyb11 = r.CheckBreak() 65388 } 65389 if yyb11 { 65390 r.ReadArrayEnd() 65391 return 65392 } 65393 r.ReadArrayElem() 65394 if r.TryDecodeAsNil() { 65395 x.Healthy = 0 65396 } else { 65397 x.Healthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65398 } 65399 yyj11++ 65400 if yyhl11 { 65401 yyb11 = yyj11 > l 65402 } else { 65403 yyb11 = r.CheckBreak() 65404 } 65405 if yyb11 { 65406 r.ReadArrayEnd() 65407 return 65408 } 65409 r.ReadArrayElem() 65410 if r.TryDecodeAsNil() { 65411 x.Unhealthy = 0 65412 } else { 65413 x.Unhealthy = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 65414 } 65415 yyj11++ 65416 if yyhl11 { 65417 yyb11 = yyj11 > l 65418 } else { 65419 yyb11 = r.CheckBreak() 65420 } 65421 if yyb11 { 65422 r.ReadArrayEnd() 65423 return 65424 } 65425 r.ReadArrayElem() 65426 if r.TryDecodeAsNil() { 65427 x.Events = nil 65428 } else { 65429 if false { 65430 } else { 65431 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&x.Events), d) 65432 } 65433 } 65434 for { 65435 yyj11++ 65436 if yyhl11 { 65437 yyb11 = yyj11 > l 65438 } else { 65439 yyb11 = r.CheckBreak() 65440 } 65441 if yyb11 { 65442 break 65443 } 65444 r.ReadArrayElem() 65445 z.DecStructFieldNotFound(yyj11-1, "") 65446 } 65447 r.ReadArrayEnd() 65448 } 65449 65450 func (x *JobDispatchResponse) CodecEncodeSelf(e *codec1978.Encoder) { 65451 var h codecSelfer100 65452 z, r := codec1978.GenHelperEncoder(e) 65453 _, _, _ = h, z, r 65454 if x == nil { 65455 r.EncodeNil() 65456 } else { 65457 if false { 65458 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65459 z.EncExtension(x, yyxt1) 65460 } else { 65461 yysep2 := !z.EncBinary() 65462 yy2arr2 := z.EncBasicHandle().StructToArray 65463 _, _ = yysep2, yy2arr2 65464 const yyr2 bool = false // struct tag has 'toArray' 65465 if yyr2 || yy2arr2 { 65466 r.WriteArrayStart(5) 65467 } else { 65468 r.WriteMapStart(5) 65469 } 65470 if yyr2 || yy2arr2 { 65471 r.WriteArrayElem() 65472 if false { 65473 } else { 65474 if z.EncBasicHandle().StringToRaw { 65475 r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) 65476 } else { 65477 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) 65478 } 65479 } 65480 } else { 65481 r.WriteMapElemKey() 65482 if z.IsJSONHandle() { 65483 z.WriteStr("\"DispatchedJobID\"") 65484 } else { 65485 r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchedJobID`) 65486 } 65487 r.WriteMapElemValue() 65488 if false { 65489 } else { 65490 if z.EncBasicHandle().StringToRaw { 65491 r.EncodeStringBytesRaw(z.BytesView(string(x.DispatchedJobID))) 65492 } else { 65493 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DispatchedJobID)) 65494 } 65495 } 65496 } 65497 if yyr2 || yy2arr2 { 65498 r.WriteArrayElem() 65499 if false { 65500 } else { 65501 if z.EncBasicHandle().StringToRaw { 65502 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 65503 } else { 65504 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 65505 } 65506 } 65507 } else { 65508 r.WriteMapElemKey() 65509 if z.IsJSONHandle() { 65510 z.WriteStr("\"EvalID\"") 65511 } else { 65512 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 65513 } 65514 r.WriteMapElemValue() 65515 if false { 65516 } else { 65517 if z.EncBasicHandle().StringToRaw { 65518 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 65519 } else { 65520 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 65521 } 65522 } 65523 } 65524 if yyr2 || yy2arr2 { 65525 r.WriteArrayElem() 65526 if false { 65527 } else { 65528 r.EncodeUint(uint64(x.EvalCreateIndex)) 65529 } 65530 } else { 65531 r.WriteMapElemKey() 65532 if z.IsJSONHandle() { 65533 z.WriteStr("\"EvalCreateIndex\"") 65534 } else { 65535 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 65536 } 65537 r.WriteMapElemValue() 65538 if false { 65539 } else { 65540 r.EncodeUint(uint64(x.EvalCreateIndex)) 65541 } 65542 } 65543 if yyr2 || yy2arr2 { 65544 r.WriteArrayElem() 65545 if false { 65546 } else { 65547 r.EncodeUint(uint64(x.JobCreateIndex)) 65548 } 65549 } else { 65550 r.WriteMapElemKey() 65551 if z.IsJSONHandle() { 65552 z.WriteStr("\"JobCreateIndex\"") 65553 } else { 65554 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 65555 } 65556 r.WriteMapElemValue() 65557 if false { 65558 } else { 65559 r.EncodeUint(uint64(x.JobCreateIndex)) 65560 } 65561 } 65562 if yyr2 || yy2arr2 { 65563 r.WriteArrayElem() 65564 if false { 65565 } else { 65566 r.EncodeUint(uint64(x.Index)) 65567 } 65568 } else { 65569 r.WriteMapElemKey() 65570 if z.IsJSONHandle() { 65571 z.WriteStr("\"Index\"") 65572 } else { 65573 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 65574 } 65575 r.WriteMapElemValue() 65576 if false { 65577 } else { 65578 r.EncodeUint(uint64(x.Index)) 65579 } 65580 } 65581 if yyr2 || yy2arr2 { 65582 r.WriteArrayEnd() 65583 } else { 65584 r.WriteMapEnd() 65585 } 65586 } 65587 } 65588 } 65589 65590 func (x *JobDispatchResponse) CodecDecodeSelf(d *codec1978.Decoder) { 65591 var h codecSelfer100 65592 z, r := codec1978.GenHelperDecoder(d) 65593 _, _, _ = h, z, r 65594 if false { 65595 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65596 z.DecExtension(x, yyxt1) 65597 } else { 65598 yyct2 := r.ContainerType() 65599 if yyct2 == codecSelferValueTypeMap100 { 65600 yyl2 := r.ReadMapStart() 65601 if yyl2 == 0 { 65602 r.ReadMapEnd() 65603 } else { 65604 x.codecDecodeSelfFromMap(yyl2, d) 65605 } 65606 } else if yyct2 == codecSelferValueTypeArray100 { 65607 yyl2 := r.ReadArrayStart() 65608 if yyl2 == 0 { 65609 r.ReadArrayEnd() 65610 } else { 65611 x.codecDecodeSelfFromArray(yyl2, d) 65612 } 65613 } else { 65614 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 65615 } 65616 } 65617 } 65618 65619 func (x *JobDispatchResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 65620 var h codecSelfer100 65621 z, r := codec1978.GenHelperDecoder(d) 65622 _, _, _ = h, z, r 65623 var yyhl3 bool = l >= 0 65624 for yyj3 := 0; ; yyj3++ { 65625 if yyhl3 { 65626 if yyj3 >= l { 65627 break 65628 } 65629 } else { 65630 if r.CheckBreak() { 65631 break 65632 } 65633 } 65634 r.ReadMapElemKey() 65635 yys3 := z.StringView(r.DecodeStringAsBytes()) 65636 r.ReadMapElemValue() 65637 switch yys3 { 65638 case "DispatchedJobID": 65639 if r.TryDecodeAsNil() { 65640 x.DispatchedJobID = "" 65641 } else { 65642 x.DispatchedJobID = (string)(r.DecodeString()) 65643 } 65644 case "EvalID": 65645 if r.TryDecodeAsNil() { 65646 x.EvalID = "" 65647 } else { 65648 x.EvalID = (string)(r.DecodeString()) 65649 } 65650 case "EvalCreateIndex": 65651 if r.TryDecodeAsNil() { 65652 x.EvalCreateIndex = 0 65653 } else { 65654 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 65655 } 65656 case "JobCreateIndex": 65657 if r.TryDecodeAsNil() { 65658 x.JobCreateIndex = 0 65659 } else { 65660 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 65661 } 65662 case "Index": 65663 if r.TryDecodeAsNil() { 65664 x.WriteMeta.Index = 0 65665 } else { 65666 x.Index = (uint64)(r.DecodeUint64()) 65667 } 65668 default: 65669 z.DecStructFieldNotFound(-1, yys3) 65670 } // end switch yys3 65671 } // end for yyj3 65672 r.ReadMapEnd() 65673 } 65674 65675 func (x *JobDispatchResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 65676 var h codecSelfer100 65677 z, r := codec1978.GenHelperDecoder(d) 65678 _, _, _ = h, z, r 65679 var yyj9 int 65680 var yyb9 bool 65681 var yyhl9 bool = l >= 0 65682 yyj9++ 65683 if yyhl9 { 65684 yyb9 = yyj9 > l 65685 } else { 65686 yyb9 = r.CheckBreak() 65687 } 65688 if yyb9 { 65689 r.ReadArrayEnd() 65690 return 65691 } 65692 r.ReadArrayElem() 65693 if r.TryDecodeAsNil() { 65694 x.DispatchedJobID = "" 65695 } else { 65696 x.DispatchedJobID = (string)(r.DecodeString()) 65697 } 65698 yyj9++ 65699 if yyhl9 { 65700 yyb9 = yyj9 > l 65701 } else { 65702 yyb9 = r.CheckBreak() 65703 } 65704 if yyb9 { 65705 r.ReadArrayEnd() 65706 return 65707 } 65708 r.ReadArrayElem() 65709 if r.TryDecodeAsNil() { 65710 x.EvalID = "" 65711 } else { 65712 x.EvalID = (string)(r.DecodeString()) 65713 } 65714 yyj9++ 65715 if yyhl9 { 65716 yyb9 = yyj9 > l 65717 } else { 65718 yyb9 = r.CheckBreak() 65719 } 65720 if yyb9 { 65721 r.ReadArrayEnd() 65722 return 65723 } 65724 r.ReadArrayElem() 65725 if r.TryDecodeAsNil() { 65726 x.EvalCreateIndex = 0 65727 } else { 65728 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 65729 } 65730 yyj9++ 65731 if yyhl9 { 65732 yyb9 = yyj9 > l 65733 } else { 65734 yyb9 = r.CheckBreak() 65735 } 65736 if yyb9 { 65737 r.ReadArrayEnd() 65738 return 65739 } 65740 r.ReadArrayElem() 65741 if r.TryDecodeAsNil() { 65742 x.JobCreateIndex = 0 65743 } else { 65744 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 65745 } 65746 yyj9++ 65747 if yyhl9 { 65748 yyb9 = yyj9 > l 65749 } else { 65750 yyb9 = r.CheckBreak() 65751 } 65752 if yyb9 { 65753 r.ReadArrayEnd() 65754 return 65755 } 65756 r.ReadArrayElem() 65757 if r.TryDecodeAsNil() { 65758 x.WriteMeta.Index = 0 65759 } else { 65760 x.Index = (uint64)(r.DecodeUint64()) 65761 } 65762 for { 65763 yyj9++ 65764 if yyhl9 { 65765 yyb9 = yyj9 > l 65766 } else { 65767 yyb9 = r.CheckBreak() 65768 } 65769 if yyb9 { 65770 break 65771 } 65772 r.ReadArrayElem() 65773 z.DecStructFieldNotFound(yyj9-1, "") 65774 } 65775 r.ReadArrayEnd() 65776 } 65777 65778 func (x *JobListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 65779 var h codecSelfer100 65780 z, r := codec1978.GenHelperEncoder(e) 65781 _, _, _ = h, z, r 65782 if x == nil { 65783 r.EncodeNil() 65784 } else { 65785 if false { 65786 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65787 z.EncExtension(x, yyxt1) 65788 } else { 65789 yysep2 := !z.EncBinary() 65790 yy2arr2 := z.EncBasicHandle().StructToArray 65791 _, _ = yysep2, yy2arr2 65792 const yyr2 bool = false // struct tag has 'toArray' 65793 if yyr2 || yy2arr2 { 65794 r.WriteArrayStart(4) 65795 } else { 65796 r.WriteMapStart(4) 65797 } 65798 if yyr2 || yy2arr2 { 65799 r.WriteArrayElem() 65800 if x.Jobs == nil { 65801 r.EncodeNil() 65802 } else { 65803 if false { 65804 } else { 65805 h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) 65806 } 65807 } 65808 } else { 65809 r.WriteMapElemKey() 65810 if z.IsJSONHandle() { 65811 z.WriteStr("\"Jobs\"") 65812 } else { 65813 r.EncodeStringEnc(codecSelferCcUTF8100, `Jobs`) 65814 } 65815 r.WriteMapElemValue() 65816 if x.Jobs == nil { 65817 r.EncodeNil() 65818 } else { 65819 if false { 65820 } else { 65821 h.encSlicePtrtoJobListStub(([]*JobListStub)(x.Jobs), e) 65822 } 65823 } 65824 } 65825 if yyr2 || yy2arr2 { 65826 r.WriteArrayElem() 65827 if false { 65828 } else { 65829 r.EncodeUint(uint64(x.Index)) 65830 } 65831 } else { 65832 r.WriteMapElemKey() 65833 if z.IsJSONHandle() { 65834 z.WriteStr("\"Index\"") 65835 } else { 65836 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 65837 } 65838 r.WriteMapElemValue() 65839 if false { 65840 } else { 65841 r.EncodeUint(uint64(x.Index)) 65842 } 65843 } 65844 if yyr2 || yy2arr2 { 65845 r.WriteArrayElem() 65846 if false { 65847 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 65848 z.EncExtension(x.LastContact, yyxt10) 65849 } else { 65850 r.EncodeInt(int64(x.LastContact)) 65851 } 65852 } else { 65853 r.WriteMapElemKey() 65854 if z.IsJSONHandle() { 65855 z.WriteStr("\"LastContact\"") 65856 } else { 65857 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 65858 } 65859 r.WriteMapElemValue() 65860 if false { 65861 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 65862 z.EncExtension(x.LastContact, yyxt11) 65863 } else { 65864 r.EncodeInt(int64(x.LastContact)) 65865 } 65866 } 65867 if yyr2 || yy2arr2 { 65868 r.WriteArrayElem() 65869 if false { 65870 } else { 65871 r.EncodeBool(bool(x.KnownLeader)) 65872 } 65873 } else { 65874 r.WriteMapElemKey() 65875 if z.IsJSONHandle() { 65876 z.WriteStr("\"KnownLeader\"") 65877 } else { 65878 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 65879 } 65880 r.WriteMapElemValue() 65881 if false { 65882 } else { 65883 r.EncodeBool(bool(x.KnownLeader)) 65884 } 65885 } 65886 if yyr2 || yy2arr2 { 65887 r.WriteArrayEnd() 65888 } else { 65889 r.WriteMapEnd() 65890 } 65891 } 65892 } 65893 } 65894 65895 func (x *JobListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 65896 var h codecSelfer100 65897 z, r := codec1978.GenHelperDecoder(d) 65898 _, _, _ = h, z, r 65899 if false { 65900 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 65901 z.DecExtension(x, yyxt1) 65902 } else { 65903 yyct2 := r.ContainerType() 65904 if yyct2 == codecSelferValueTypeMap100 { 65905 yyl2 := r.ReadMapStart() 65906 if yyl2 == 0 { 65907 r.ReadMapEnd() 65908 } else { 65909 x.codecDecodeSelfFromMap(yyl2, d) 65910 } 65911 } else if yyct2 == codecSelferValueTypeArray100 { 65912 yyl2 := r.ReadArrayStart() 65913 if yyl2 == 0 { 65914 r.ReadArrayEnd() 65915 } else { 65916 x.codecDecodeSelfFromArray(yyl2, d) 65917 } 65918 } else { 65919 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 65920 } 65921 } 65922 } 65923 65924 func (x *JobListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 65925 var h codecSelfer100 65926 z, r := codec1978.GenHelperDecoder(d) 65927 _, _, _ = h, z, r 65928 var yyhl3 bool = l >= 0 65929 for yyj3 := 0; ; yyj3++ { 65930 if yyhl3 { 65931 if yyj3 >= l { 65932 break 65933 } 65934 } else { 65935 if r.CheckBreak() { 65936 break 65937 } 65938 } 65939 r.ReadMapElemKey() 65940 yys3 := z.StringView(r.DecodeStringAsBytes()) 65941 r.ReadMapElemValue() 65942 switch yys3 { 65943 case "Jobs": 65944 if r.TryDecodeAsNil() { 65945 x.Jobs = nil 65946 } else { 65947 if false { 65948 } else { 65949 h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) 65950 } 65951 } 65952 case "Index": 65953 if r.TryDecodeAsNil() { 65954 x.QueryMeta.Index = 0 65955 } else { 65956 x.Index = (uint64)(r.DecodeUint64()) 65957 } 65958 case "LastContact": 65959 if r.TryDecodeAsNil() { 65960 x.QueryMeta.LastContact = 0 65961 } else { 65962 if false { 65963 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 65964 z.DecExtension(x.LastContact, yyxt8) 65965 } else { 65966 x.LastContact = (time.Duration)(r.DecodeInt64()) 65967 } 65968 } 65969 case "KnownLeader": 65970 if r.TryDecodeAsNil() { 65971 x.QueryMeta.KnownLeader = false 65972 } else { 65973 x.KnownLeader = (bool)(r.DecodeBool()) 65974 } 65975 default: 65976 z.DecStructFieldNotFound(-1, yys3) 65977 } // end switch yys3 65978 } // end for yyj3 65979 r.ReadMapEnd() 65980 } 65981 65982 func (x *JobListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 65983 var h codecSelfer100 65984 z, r := codec1978.GenHelperDecoder(d) 65985 _, _, _ = h, z, r 65986 var yyj10 int 65987 var yyb10 bool 65988 var yyhl10 bool = l >= 0 65989 yyj10++ 65990 if yyhl10 { 65991 yyb10 = yyj10 > l 65992 } else { 65993 yyb10 = r.CheckBreak() 65994 } 65995 if yyb10 { 65996 r.ReadArrayEnd() 65997 return 65998 } 65999 r.ReadArrayElem() 66000 if r.TryDecodeAsNil() { 66001 x.Jobs = nil 66002 } else { 66003 if false { 66004 } else { 66005 h.decSlicePtrtoJobListStub((*[]*JobListStub)(&x.Jobs), d) 66006 } 66007 } 66008 yyj10++ 66009 if yyhl10 { 66010 yyb10 = yyj10 > l 66011 } else { 66012 yyb10 = r.CheckBreak() 66013 } 66014 if yyb10 { 66015 r.ReadArrayEnd() 66016 return 66017 } 66018 r.ReadArrayElem() 66019 if r.TryDecodeAsNil() { 66020 x.QueryMeta.Index = 0 66021 } else { 66022 x.Index = (uint64)(r.DecodeUint64()) 66023 } 66024 yyj10++ 66025 if yyhl10 { 66026 yyb10 = yyj10 > l 66027 } else { 66028 yyb10 = r.CheckBreak() 66029 } 66030 if yyb10 { 66031 r.ReadArrayEnd() 66032 return 66033 } 66034 r.ReadArrayElem() 66035 if r.TryDecodeAsNil() { 66036 x.QueryMeta.LastContact = 0 66037 } else { 66038 if false { 66039 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 66040 z.DecExtension(x.LastContact, yyxt15) 66041 } else { 66042 x.LastContact = (time.Duration)(r.DecodeInt64()) 66043 } 66044 } 66045 yyj10++ 66046 if yyhl10 { 66047 yyb10 = yyj10 > l 66048 } else { 66049 yyb10 = r.CheckBreak() 66050 } 66051 if yyb10 { 66052 r.ReadArrayEnd() 66053 return 66054 } 66055 r.ReadArrayElem() 66056 if r.TryDecodeAsNil() { 66057 x.QueryMeta.KnownLeader = false 66058 } else { 66059 x.KnownLeader = (bool)(r.DecodeBool()) 66060 } 66061 for { 66062 yyj10++ 66063 if yyhl10 { 66064 yyb10 = yyj10 > l 66065 } else { 66066 yyb10 = r.CheckBreak() 66067 } 66068 if yyb10 { 66069 break 66070 } 66071 r.ReadArrayElem() 66072 z.DecStructFieldNotFound(yyj10-1, "") 66073 } 66074 r.ReadArrayEnd() 66075 } 66076 66077 func (x *JobVersionsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 66078 var h codecSelfer100 66079 z, r := codec1978.GenHelperEncoder(e) 66080 _, _, _ = h, z, r 66081 if x == nil { 66082 r.EncodeNil() 66083 } else { 66084 if false { 66085 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66086 z.EncExtension(x, yyxt1) 66087 } else { 66088 yysep2 := !z.EncBinary() 66089 yy2arr2 := z.EncBasicHandle().StructToArray 66090 _, _ = yysep2, yy2arr2 66091 const yyr2 bool = false // struct tag has 'toArray' 66092 if yyr2 || yy2arr2 { 66093 r.WriteArrayStart(10) 66094 } else { 66095 r.WriteMapStart(10) 66096 } 66097 if yyr2 || yy2arr2 { 66098 r.WriteArrayElem() 66099 if false { 66100 } else { 66101 if z.EncBasicHandle().StringToRaw { 66102 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 66103 } else { 66104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 66105 } 66106 } 66107 } else { 66108 r.WriteMapElemKey() 66109 if z.IsJSONHandle() { 66110 z.WriteStr("\"JobID\"") 66111 } else { 66112 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 66113 } 66114 r.WriteMapElemValue() 66115 if false { 66116 } else { 66117 if z.EncBasicHandle().StringToRaw { 66118 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 66119 } else { 66120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 66121 } 66122 } 66123 } 66124 if yyr2 || yy2arr2 { 66125 r.WriteArrayElem() 66126 if false { 66127 } else { 66128 r.EncodeBool(bool(x.Diffs)) 66129 } 66130 } else { 66131 r.WriteMapElemKey() 66132 if z.IsJSONHandle() { 66133 z.WriteStr("\"Diffs\"") 66134 } else { 66135 r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) 66136 } 66137 r.WriteMapElemValue() 66138 if false { 66139 } else { 66140 r.EncodeBool(bool(x.Diffs)) 66141 } 66142 } 66143 if yyr2 || yy2arr2 { 66144 r.WriteArrayElem() 66145 if false { 66146 } else { 66147 if z.EncBasicHandle().StringToRaw { 66148 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 66149 } else { 66150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 66151 } 66152 } 66153 } else { 66154 r.WriteMapElemKey() 66155 if z.IsJSONHandle() { 66156 z.WriteStr("\"Region\"") 66157 } else { 66158 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 66159 } 66160 r.WriteMapElemValue() 66161 if false { 66162 } else { 66163 if z.EncBasicHandle().StringToRaw { 66164 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 66165 } else { 66166 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 66167 } 66168 } 66169 } 66170 if yyr2 || yy2arr2 { 66171 r.WriteArrayElem() 66172 if false { 66173 } else { 66174 if z.EncBasicHandle().StringToRaw { 66175 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 66176 } else { 66177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 66178 } 66179 } 66180 } else { 66181 r.WriteMapElemKey() 66182 if z.IsJSONHandle() { 66183 z.WriteStr("\"Namespace\"") 66184 } else { 66185 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 66186 } 66187 r.WriteMapElemValue() 66188 if false { 66189 } else { 66190 if z.EncBasicHandle().StringToRaw { 66191 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 66192 } else { 66193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 66194 } 66195 } 66196 } 66197 if yyr2 || yy2arr2 { 66198 r.WriteArrayElem() 66199 if false { 66200 } else { 66201 r.EncodeUint(uint64(x.MinQueryIndex)) 66202 } 66203 } else { 66204 r.WriteMapElemKey() 66205 if z.IsJSONHandle() { 66206 z.WriteStr("\"MinQueryIndex\"") 66207 } else { 66208 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 66209 } 66210 r.WriteMapElemValue() 66211 if false { 66212 } else { 66213 r.EncodeUint(uint64(x.MinQueryIndex)) 66214 } 66215 } 66216 if yyr2 || yy2arr2 { 66217 r.WriteArrayElem() 66218 if false { 66219 } else if yyxt19 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt19 != nil { 66220 z.EncExtension(x.MaxQueryTime, yyxt19) 66221 } else { 66222 r.EncodeInt(int64(x.MaxQueryTime)) 66223 } 66224 } else { 66225 r.WriteMapElemKey() 66226 if z.IsJSONHandle() { 66227 z.WriteStr("\"MaxQueryTime\"") 66228 } else { 66229 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 66230 } 66231 r.WriteMapElemValue() 66232 if false { 66233 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 66234 z.EncExtension(x.MaxQueryTime, yyxt20) 66235 } else { 66236 r.EncodeInt(int64(x.MaxQueryTime)) 66237 } 66238 } 66239 if yyr2 || yy2arr2 { 66240 r.WriteArrayElem() 66241 if false { 66242 } else { 66243 r.EncodeBool(bool(x.AllowStale)) 66244 } 66245 } else { 66246 r.WriteMapElemKey() 66247 if z.IsJSONHandle() { 66248 z.WriteStr("\"AllowStale\"") 66249 } else { 66250 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 66251 } 66252 r.WriteMapElemValue() 66253 if false { 66254 } else { 66255 r.EncodeBool(bool(x.AllowStale)) 66256 } 66257 } 66258 if yyr2 || yy2arr2 { 66259 r.WriteArrayElem() 66260 if false { 66261 } else { 66262 if z.EncBasicHandle().StringToRaw { 66263 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 66264 } else { 66265 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 66266 } 66267 } 66268 } else { 66269 r.WriteMapElemKey() 66270 if z.IsJSONHandle() { 66271 z.WriteStr("\"Prefix\"") 66272 } else { 66273 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 66274 } 66275 r.WriteMapElemValue() 66276 if false { 66277 } else { 66278 if z.EncBasicHandle().StringToRaw { 66279 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 66280 } else { 66281 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 66282 } 66283 } 66284 } 66285 if yyr2 || yy2arr2 { 66286 r.WriteArrayElem() 66287 if false { 66288 } else { 66289 if z.EncBasicHandle().StringToRaw { 66290 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 66291 } else { 66292 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 66293 } 66294 } 66295 } else { 66296 r.WriteMapElemKey() 66297 if z.IsJSONHandle() { 66298 z.WriteStr("\"AuthToken\"") 66299 } else { 66300 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 66301 } 66302 r.WriteMapElemValue() 66303 if false { 66304 } else { 66305 if z.EncBasicHandle().StringToRaw { 66306 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 66307 } else { 66308 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 66309 } 66310 } 66311 } 66312 if yyr2 || yy2arr2 { 66313 r.WriteArrayElem() 66314 if false { 66315 } else { 66316 r.EncodeBool(bool(x.Forwarded)) 66317 } 66318 } else { 66319 r.WriteMapElemKey() 66320 if z.IsJSONHandle() { 66321 z.WriteStr("\"Forwarded\"") 66322 } else { 66323 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 66324 } 66325 r.WriteMapElemValue() 66326 if false { 66327 } else { 66328 r.EncodeBool(bool(x.Forwarded)) 66329 } 66330 } 66331 if yyr2 || yy2arr2 { 66332 r.WriteArrayEnd() 66333 } else { 66334 r.WriteMapEnd() 66335 } 66336 } 66337 } 66338 } 66339 66340 func (x *JobVersionsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 66341 var h codecSelfer100 66342 z, r := codec1978.GenHelperDecoder(d) 66343 _, _, _ = h, z, r 66344 if false { 66345 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66346 z.DecExtension(x, yyxt1) 66347 } else { 66348 yyct2 := r.ContainerType() 66349 if yyct2 == codecSelferValueTypeMap100 { 66350 yyl2 := r.ReadMapStart() 66351 if yyl2 == 0 { 66352 r.ReadMapEnd() 66353 } else { 66354 x.codecDecodeSelfFromMap(yyl2, d) 66355 } 66356 } else if yyct2 == codecSelferValueTypeArray100 { 66357 yyl2 := r.ReadArrayStart() 66358 if yyl2 == 0 { 66359 r.ReadArrayEnd() 66360 } else { 66361 x.codecDecodeSelfFromArray(yyl2, d) 66362 } 66363 } else { 66364 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66365 } 66366 } 66367 } 66368 66369 func (x *JobVersionsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 66370 var h codecSelfer100 66371 z, r := codec1978.GenHelperDecoder(d) 66372 _, _, _ = h, z, r 66373 var yyhl3 bool = l >= 0 66374 for yyj3 := 0; ; yyj3++ { 66375 if yyhl3 { 66376 if yyj3 >= l { 66377 break 66378 } 66379 } else { 66380 if r.CheckBreak() { 66381 break 66382 } 66383 } 66384 r.ReadMapElemKey() 66385 yys3 := z.StringView(r.DecodeStringAsBytes()) 66386 r.ReadMapElemValue() 66387 switch yys3 { 66388 case "JobID": 66389 if r.TryDecodeAsNil() { 66390 x.JobID = "" 66391 } else { 66392 x.JobID = (string)(r.DecodeString()) 66393 } 66394 case "Diffs": 66395 if r.TryDecodeAsNil() { 66396 x.Diffs = false 66397 } else { 66398 x.Diffs = (bool)(r.DecodeBool()) 66399 } 66400 case "Region": 66401 if r.TryDecodeAsNil() { 66402 x.QueryOptions.Region = "" 66403 } else { 66404 x.Region = (string)(r.DecodeString()) 66405 } 66406 case "Namespace": 66407 if r.TryDecodeAsNil() { 66408 x.QueryOptions.Namespace = "" 66409 } else { 66410 x.Namespace = (string)(r.DecodeString()) 66411 } 66412 case "MinQueryIndex": 66413 if r.TryDecodeAsNil() { 66414 x.QueryOptions.MinQueryIndex = 0 66415 } else { 66416 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 66417 } 66418 case "MaxQueryTime": 66419 if r.TryDecodeAsNil() { 66420 x.QueryOptions.MaxQueryTime = 0 66421 } else { 66422 if false { 66423 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 66424 z.DecExtension(x.MaxQueryTime, yyxt10) 66425 } else { 66426 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 66427 } 66428 } 66429 case "AllowStale": 66430 if r.TryDecodeAsNil() { 66431 x.QueryOptions.AllowStale = false 66432 } else { 66433 x.AllowStale = (bool)(r.DecodeBool()) 66434 } 66435 case "Prefix": 66436 if r.TryDecodeAsNil() { 66437 x.QueryOptions.Prefix = "" 66438 } else { 66439 x.Prefix = (string)(r.DecodeString()) 66440 } 66441 case "AuthToken": 66442 if r.TryDecodeAsNil() { 66443 x.QueryOptions.AuthToken = "" 66444 } else { 66445 x.AuthToken = (string)(r.DecodeString()) 66446 } 66447 case "Forwarded": 66448 if r.TryDecodeAsNil() { 66449 x.QueryOptions.InternalRpcInfo.Forwarded = false 66450 } else { 66451 x.Forwarded = (bool)(r.DecodeBool()) 66452 } 66453 default: 66454 z.DecStructFieldNotFound(-1, yys3) 66455 } // end switch yys3 66456 } // end for yyj3 66457 r.ReadMapEnd() 66458 } 66459 66460 func (x *JobVersionsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 66461 var h codecSelfer100 66462 z, r := codec1978.GenHelperDecoder(d) 66463 _, _, _ = h, z, r 66464 var yyj15 int 66465 var yyb15 bool 66466 var yyhl15 bool = l >= 0 66467 yyj15++ 66468 if yyhl15 { 66469 yyb15 = yyj15 > l 66470 } else { 66471 yyb15 = r.CheckBreak() 66472 } 66473 if yyb15 { 66474 r.ReadArrayEnd() 66475 return 66476 } 66477 r.ReadArrayElem() 66478 if r.TryDecodeAsNil() { 66479 x.JobID = "" 66480 } else { 66481 x.JobID = (string)(r.DecodeString()) 66482 } 66483 yyj15++ 66484 if yyhl15 { 66485 yyb15 = yyj15 > l 66486 } else { 66487 yyb15 = r.CheckBreak() 66488 } 66489 if yyb15 { 66490 r.ReadArrayEnd() 66491 return 66492 } 66493 r.ReadArrayElem() 66494 if r.TryDecodeAsNil() { 66495 x.Diffs = false 66496 } else { 66497 x.Diffs = (bool)(r.DecodeBool()) 66498 } 66499 yyj15++ 66500 if yyhl15 { 66501 yyb15 = yyj15 > l 66502 } else { 66503 yyb15 = r.CheckBreak() 66504 } 66505 if yyb15 { 66506 r.ReadArrayEnd() 66507 return 66508 } 66509 r.ReadArrayElem() 66510 if r.TryDecodeAsNil() { 66511 x.QueryOptions.Region = "" 66512 } else { 66513 x.Region = (string)(r.DecodeString()) 66514 } 66515 yyj15++ 66516 if yyhl15 { 66517 yyb15 = yyj15 > l 66518 } else { 66519 yyb15 = r.CheckBreak() 66520 } 66521 if yyb15 { 66522 r.ReadArrayEnd() 66523 return 66524 } 66525 r.ReadArrayElem() 66526 if r.TryDecodeAsNil() { 66527 x.QueryOptions.Namespace = "" 66528 } else { 66529 x.Namespace = (string)(r.DecodeString()) 66530 } 66531 yyj15++ 66532 if yyhl15 { 66533 yyb15 = yyj15 > l 66534 } else { 66535 yyb15 = r.CheckBreak() 66536 } 66537 if yyb15 { 66538 r.ReadArrayEnd() 66539 return 66540 } 66541 r.ReadArrayElem() 66542 if r.TryDecodeAsNil() { 66543 x.QueryOptions.MinQueryIndex = 0 66544 } else { 66545 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 66546 } 66547 yyj15++ 66548 if yyhl15 { 66549 yyb15 = yyj15 > l 66550 } else { 66551 yyb15 = r.CheckBreak() 66552 } 66553 if yyb15 { 66554 r.ReadArrayEnd() 66555 return 66556 } 66557 r.ReadArrayElem() 66558 if r.TryDecodeAsNil() { 66559 x.QueryOptions.MaxQueryTime = 0 66560 } else { 66561 if false { 66562 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 66563 z.DecExtension(x.MaxQueryTime, yyxt22) 66564 } else { 66565 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 66566 } 66567 } 66568 yyj15++ 66569 if yyhl15 { 66570 yyb15 = yyj15 > l 66571 } else { 66572 yyb15 = r.CheckBreak() 66573 } 66574 if yyb15 { 66575 r.ReadArrayEnd() 66576 return 66577 } 66578 r.ReadArrayElem() 66579 if r.TryDecodeAsNil() { 66580 x.QueryOptions.AllowStale = false 66581 } else { 66582 x.AllowStale = (bool)(r.DecodeBool()) 66583 } 66584 yyj15++ 66585 if yyhl15 { 66586 yyb15 = yyj15 > l 66587 } else { 66588 yyb15 = r.CheckBreak() 66589 } 66590 if yyb15 { 66591 r.ReadArrayEnd() 66592 return 66593 } 66594 r.ReadArrayElem() 66595 if r.TryDecodeAsNil() { 66596 x.QueryOptions.Prefix = "" 66597 } else { 66598 x.Prefix = (string)(r.DecodeString()) 66599 } 66600 yyj15++ 66601 if yyhl15 { 66602 yyb15 = yyj15 > l 66603 } else { 66604 yyb15 = r.CheckBreak() 66605 } 66606 if yyb15 { 66607 r.ReadArrayEnd() 66608 return 66609 } 66610 r.ReadArrayElem() 66611 if r.TryDecodeAsNil() { 66612 x.QueryOptions.AuthToken = "" 66613 } else { 66614 x.AuthToken = (string)(r.DecodeString()) 66615 } 66616 yyj15++ 66617 if yyhl15 { 66618 yyb15 = yyj15 > l 66619 } else { 66620 yyb15 = r.CheckBreak() 66621 } 66622 if yyb15 { 66623 r.ReadArrayEnd() 66624 return 66625 } 66626 r.ReadArrayElem() 66627 if r.TryDecodeAsNil() { 66628 x.QueryOptions.InternalRpcInfo.Forwarded = false 66629 } else { 66630 x.Forwarded = (bool)(r.DecodeBool()) 66631 } 66632 for { 66633 yyj15++ 66634 if yyhl15 { 66635 yyb15 = yyj15 > l 66636 } else { 66637 yyb15 = r.CheckBreak() 66638 } 66639 if yyb15 { 66640 break 66641 } 66642 r.ReadArrayElem() 66643 z.DecStructFieldNotFound(yyj15-1, "") 66644 } 66645 r.ReadArrayEnd() 66646 } 66647 66648 func (x *JobVersionsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 66649 var h codecSelfer100 66650 z, r := codec1978.GenHelperEncoder(e) 66651 _, _, _ = h, z, r 66652 if x == nil { 66653 r.EncodeNil() 66654 } else { 66655 if false { 66656 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66657 z.EncExtension(x, yyxt1) 66658 } else { 66659 yysep2 := !z.EncBinary() 66660 yy2arr2 := z.EncBasicHandle().StructToArray 66661 _, _ = yysep2, yy2arr2 66662 const yyr2 bool = false // struct tag has 'toArray' 66663 if yyr2 || yy2arr2 { 66664 r.WriteArrayStart(5) 66665 } else { 66666 r.WriteMapStart(5) 66667 } 66668 if yyr2 || yy2arr2 { 66669 r.WriteArrayElem() 66670 if x.Versions == nil { 66671 r.EncodeNil() 66672 } else { 66673 if false { 66674 } else { 66675 h.encSlicePtrtoJob(([]*Job)(x.Versions), e) 66676 } 66677 } 66678 } else { 66679 r.WriteMapElemKey() 66680 if z.IsJSONHandle() { 66681 z.WriteStr("\"Versions\"") 66682 } else { 66683 r.EncodeStringEnc(codecSelferCcUTF8100, `Versions`) 66684 } 66685 r.WriteMapElemValue() 66686 if x.Versions == nil { 66687 r.EncodeNil() 66688 } else { 66689 if false { 66690 } else { 66691 h.encSlicePtrtoJob(([]*Job)(x.Versions), e) 66692 } 66693 } 66694 } 66695 if yyr2 || yy2arr2 { 66696 r.WriteArrayElem() 66697 if x.Diffs == nil { 66698 r.EncodeNil() 66699 } else { 66700 if false { 66701 } else { 66702 h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) 66703 } 66704 } 66705 } else { 66706 r.WriteMapElemKey() 66707 if z.IsJSONHandle() { 66708 z.WriteStr("\"Diffs\"") 66709 } else { 66710 r.EncodeStringEnc(codecSelferCcUTF8100, `Diffs`) 66711 } 66712 r.WriteMapElemValue() 66713 if x.Diffs == nil { 66714 r.EncodeNil() 66715 } else { 66716 if false { 66717 } else { 66718 h.encSlicePtrtoJobDiff(([]*JobDiff)(x.Diffs), e) 66719 } 66720 } 66721 } 66722 if yyr2 || yy2arr2 { 66723 r.WriteArrayElem() 66724 if false { 66725 } else { 66726 r.EncodeUint(uint64(x.Index)) 66727 } 66728 } else { 66729 r.WriteMapElemKey() 66730 if z.IsJSONHandle() { 66731 z.WriteStr("\"Index\"") 66732 } else { 66733 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 66734 } 66735 r.WriteMapElemValue() 66736 if false { 66737 } else { 66738 r.EncodeUint(uint64(x.Index)) 66739 } 66740 } 66741 if yyr2 || yy2arr2 { 66742 r.WriteArrayElem() 66743 if false { 66744 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 66745 z.EncExtension(x.LastContact, yyxt13) 66746 } else { 66747 r.EncodeInt(int64(x.LastContact)) 66748 } 66749 } else { 66750 r.WriteMapElemKey() 66751 if z.IsJSONHandle() { 66752 z.WriteStr("\"LastContact\"") 66753 } else { 66754 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 66755 } 66756 r.WriteMapElemValue() 66757 if false { 66758 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 66759 z.EncExtension(x.LastContact, yyxt14) 66760 } else { 66761 r.EncodeInt(int64(x.LastContact)) 66762 } 66763 } 66764 if yyr2 || yy2arr2 { 66765 r.WriteArrayElem() 66766 if false { 66767 } else { 66768 r.EncodeBool(bool(x.KnownLeader)) 66769 } 66770 } else { 66771 r.WriteMapElemKey() 66772 if z.IsJSONHandle() { 66773 z.WriteStr("\"KnownLeader\"") 66774 } else { 66775 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 66776 } 66777 r.WriteMapElemValue() 66778 if false { 66779 } else { 66780 r.EncodeBool(bool(x.KnownLeader)) 66781 } 66782 } 66783 if yyr2 || yy2arr2 { 66784 r.WriteArrayEnd() 66785 } else { 66786 r.WriteMapEnd() 66787 } 66788 } 66789 } 66790 } 66791 66792 func (x *JobVersionsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 66793 var h codecSelfer100 66794 z, r := codec1978.GenHelperDecoder(d) 66795 _, _, _ = h, z, r 66796 if false { 66797 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 66798 z.DecExtension(x, yyxt1) 66799 } else { 66800 yyct2 := r.ContainerType() 66801 if yyct2 == codecSelferValueTypeMap100 { 66802 yyl2 := r.ReadMapStart() 66803 if yyl2 == 0 { 66804 r.ReadMapEnd() 66805 } else { 66806 x.codecDecodeSelfFromMap(yyl2, d) 66807 } 66808 } else if yyct2 == codecSelferValueTypeArray100 { 66809 yyl2 := r.ReadArrayStart() 66810 if yyl2 == 0 { 66811 r.ReadArrayEnd() 66812 } else { 66813 x.codecDecodeSelfFromArray(yyl2, d) 66814 } 66815 } else { 66816 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 66817 } 66818 } 66819 } 66820 66821 func (x *JobVersionsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 66822 var h codecSelfer100 66823 z, r := codec1978.GenHelperDecoder(d) 66824 _, _, _ = h, z, r 66825 var yyhl3 bool = l >= 0 66826 for yyj3 := 0; ; yyj3++ { 66827 if yyhl3 { 66828 if yyj3 >= l { 66829 break 66830 } 66831 } else { 66832 if r.CheckBreak() { 66833 break 66834 } 66835 } 66836 r.ReadMapElemKey() 66837 yys3 := z.StringView(r.DecodeStringAsBytes()) 66838 r.ReadMapElemValue() 66839 switch yys3 { 66840 case "Versions": 66841 if r.TryDecodeAsNil() { 66842 x.Versions = nil 66843 } else { 66844 if false { 66845 } else { 66846 h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) 66847 } 66848 } 66849 case "Diffs": 66850 if r.TryDecodeAsNil() { 66851 x.Diffs = nil 66852 } else { 66853 if false { 66854 } else { 66855 h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) 66856 } 66857 } 66858 case "Index": 66859 if r.TryDecodeAsNil() { 66860 x.QueryMeta.Index = 0 66861 } else { 66862 x.Index = (uint64)(r.DecodeUint64()) 66863 } 66864 case "LastContact": 66865 if r.TryDecodeAsNil() { 66866 x.QueryMeta.LastContact = 0 66867 } else { 66868 if false { 66869 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 66870 z.DecExtension(x.LastContact, yyxt10) 66871 } else { 66872 x.LastContact = (time.Duration)(r.DecodeInt64()) 66873 } 66874 } 66875 case "KnownLeader": 66876 if r.TryDecodeAsNil() { 66877 x.QueryMeta.KnownLeader = false 66878 } else { 66879 x.KnownLeader = (bool)(r.DecodeBool()) 66880 } 66881 default: 66882 z.DecStructFieldNotFound(-1, yys3) 66883 } // end switch yys3 66884 } // end for yyj3 66885 r.ReadMapEnd() 66886 } 66887 66888 func (x *JobVersionsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 66889 var h codecSelfer100 66890 z, r := codec1978.GenHelperDecoder(d) 66891 _, _, _ = h, z, r 66892 var yyj12 int 66893 var yyb12 bool 66894 var yyhl12 bool = l >= 0 66895 yyj12++ 66896 if yyhl12 { 66897 yyb12 = yyj12 > l 66898 } else { 66899 yyb12 = r.CheckBreak() 66900 } 66901 if yyb12 { 66902 r.ReadArrayEnd() 66903 return 66904 } 66905 r.ReadArrayElem() 66906 if r.TryDecodeAsNil() { 66907 x.Versions = nil 66908 } else { 66909 if false { 66910 } else { 66911 h.decSlicePtrtoJob((*[]*Job)(&x.Versions), d) 66912 } 66913 } 66914 yyj12++ 66915 if yyhl12 { 66916 yyb12 = yyj12 > l 66917 } else { 66918 yyb12 = r.CheckBreak() 66919 } 66920 if yyb12 { 66921 r.ReadArrayEnd() 66922 return 66923 } 66924 r.ReadArrayElem() 66925 if r.TryDecodeAsNil() { 66926 x.Diffs = nil 66927 } else { 66928 if false { 66929 } else { 66930 h.decSlicePtrtoJobDiff((*[]*JobDiff)(&x.Diffs), d) 66931 } 66932 } 66933 yyj12++ 66934 if yyhl12 { 66935 yyb12 = yyj12 > l 66936 } else { 66937 yyb12 = r.CheckBreak() 66938 } 66939 if yyb12 { 66940 r.ReadArrayEnd() 66941 return 66942 } 66943 r.ReadArrayElem() 66944 if r.TryDecodeAsNil() { 66945 x.QueryMeta.Index = 0 66946 } else { 66947 x.Index = (uint64)(r.DecodeUint64()) 66948 } 66949 yyj12++ 66950 if yyhl12 { 66951 yyb12 = yyj12 > l 66952 } else { 66953 yyb12 = r.CheckBreak() 66954 } 66955 if yyb12 { 66956 r.ReadArrayEnd() 66957 return 66958 } 66959 r.ReadArrayElem() 66960 if r.TryDecodeAsNil() { 66961 x.QueryMeta.LastContact = 0 66962 } else { 66963 if false { 66964 } else if yyxt19 := z.Extension(z.I2Rtid(x.LastContact)); yyxt19 != nil { 66965 z.DecExtension(x.LastContact, yyxt19) 66966 } else { 66967 x.LastContact = (time.Duration)(r.DecodeInt64()) 66968 } 66969 } 66970 yyj12++ 66971 if yyhl12 { 66972 yyb12 = yyj12 > l 66973 } else { 66974 yyb12 = r.CheckBreak() 66975 } 66976 if yyb12 { 66977 r.ReadArrayEnd() 66978 return 66979 } 66980 r.ReadArrayElem() 66981 if r.TryDecodeAsNil() { 66982 x.QueryMeta.KnownLeader = false 66983 } else { 66984 x.KnownLeader = (bool)(r.DecodeBool()) 66985 } 66986 for { 66987 yyj12++ 66988 if yyhl12 { 66989 yyb12 = yyj12 > l 66990 } else { 66991 yyb12 = r.CheckBreak() 66992 } 66993 if yyb12 { 66994 break 66995 } 66996 r.ReadArrayElem() 66997 z.DecStructFieldNotFound(yyj12-1, "") 66998 } 66999 r.ReadArrayEnd() 67000 } 67001 67002 func (x *JobPlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67003 var h codecSelfer100 67004 z, r := codec1978.GenHelperEncoder(e) 67005 _, _, _ = h, z, r 67006 if x == nil { 67007 r.EncodeNil() 67008 } else { 67009 if false { 67010 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67011 z.EncExtension(x, yyxt1) 67012 } else { 67013 yysep2 := !z.EncBinary() 67014 yy2arr2 := z.EncBasicHandle().StructToArray 67015 _, _ = yysep2, yy2arr2 67016 const yyr2 bool = false // struct tag has 'toArray' 67017 if yyr2 || yy2arr2 { 67018 r.WriteArrayStart(8) 67019 } else { 67020 r.WriteMapStart(8) 67021 } 67022 var yyn3 bool 67023 if x.Annotations == nil { 67024 yyn3 = true 67025 goto LABEL3 67026 } 67027 LABEL3: 67028 if yyr2 || yy2arr2 { 67029 if yyn3 { 67030 r.WriteArrayElem() 67031 r.EncodeNil() 67032 } else { 67033 r.WriteArrayElem() 67034 if x.Annotations == nil { 67035 r.EncodeNil() 67036 } else { 67037 x.Annotations.CodecEncodeSelf(e) 67038 } 67039 } 67040 } else { 67041 r.WriteMapElemKey() 67042 if z.IsJSONHandle() { 67043 z.WriteStr("\"Annotations\"") 67044 } else { 67045 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 67046 } 67047 r.WriteMapElemValue() 67048 if yyn3 { 67049 r.EncodeNil() 67050 } else { 67051 if x.Annotations == nil { 67052 r.EncodeNil() 67053 } else { 67054 x.Annotations.CodecEncodeSelf(e) 67055 } 67056 } 67057 } 67058 if yyr2 || yy2arr2 { 67059 r.WriteArrayElem() 67060 if x.FailedTGAllocs == nil { 67061 r.EncodeNil() 67062 } else { 67063 if false { 67064 } else { 67065 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 67066 } 67067 } 67068 } else { 67069 r.WriteMapElemKey() 67070 if z.IsJSONHandle() { 67071 z.WriteStr("\"FailedTGAllocs\"") 67072 } else { 67073 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) 67074 } 67075 r.WriteMapElemValue() 67076 if x.FailedTGAllocs == nil { 67077 r.EncodeNil() 67078 } else { 67079 if false { 67080 } else { 67081 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 67082 } 67083 } 67084 } 67085 if yyr2 || yy2arr2 { 67086 r.WriteArrayElem() 67087 if false { 67088 } else { 67089 r.EncodeUint(uint64(x.JobModifyIndex)) 67090 } 67091 } else { 67092 r.WriteMapElemKey() 67093 if z.IsJSONHandle() { 67094 z.WriteStr("\"JobModifyIndex\"") 67095 } else { 67096 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 67097 } 67098 r.WriteMapElemValue() 67099 if false { 67100 } else { 67101 r.EncodeUint(uint64(x.JobModifyIndex)) 67102 } 67103 } 67104 if yyr2 || yy2arr2 { 67105 r.WriteArrayElem() 67106 if x.CreatedEvals == nil { 67107 r.EncodeNil() 67108 } else { 67109 if false { 67110 } else { 67111 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) 67112 } 67113 } 67114 } else { 67115 r.WriteMapElemKey() 67116 if z.IsJSONHandle() { 67117 z.WriteStr("\"CreatedEvals\"") 67118 } else { 67119 r.EncodeStringEnc(codecSelferCcUTF8100, `CreatedEvals`) 67120 } 67121 r.WriteMapElemValue() 67122 if x.CreatedEvals == nil { 67123 r.EncodeNil() 67124 } else { 67125 if false { 67126 } else { 67127 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.CreatedEvals), e) 67128 } 67129 } 67130 } 67131 var yyn15 bool 67132 if x.Diff == nil { 67133 yyn15 = true 67134 goto LABEL15 67135 } 67136 LABEL15: 67137 if yyr2 || yy2arr2 { 67138 if yyn15 { 67139 r.WriteArrayElem() 67140 r.EncodeNil() 67141 } else { 67142 r.WriteArrayElem() 67143 if x.Diff == nil { 67144 r.EncodeNil() 67145 } else { 67146 x.Diff.CodecEncodeSelf(e) 67147 } 67148 } 67149 } else { 67150 r.WriteMapElemKey() 67151 if z.IsJSONHandle() { 67152 z.WriteStr("\"Diff\"") 67153 } else { 67154 r.EncodeStringEnc(codecSelferCcUTF8100, `Diff`) 67155 } 67156 r.WriteMapElemValue() 67157 if yyn15 { 67158 r.EncodeNil() 67159 } else { 67160 if x.Diff == nil { 67161 r.EncodeNil() 67162 } else { 67163 x.Diff.CodecEncodeSelf(e) 67164 } 67165 } 67166 } 67167 if yyr2 || yy2arr2 { 67168 r.WriteArrayElem() 67169 if false { 67170 } else if !z.EncBasicHandle().TimeNotBuiltin { 67171 r.EncodeTime(x.NextPeriodicLaunch) 67172 } else if yyxt19 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt19 != nil { 67173 z.EncExtension(x.NextPeriodicLaunch, yyxt19) 67174 } else if z.EncBinary() { 67175 z.EncBinaryMarshal(x.NextPeriodicLaunch) 67176 } else if !z.EncBinary() && z.IsJSONHandle() { 67177 z.EncJSONMarshal(x.NextPeriodicLaunch) 67178 } else { 67179 z.EncFallback(x.NextPeriodicLaunch) 67180 } 67181 } else { 67182 r.WriteMapElemKey() 67183 if z.IsJSONHandle() { 67184 z.WriteStr("\"NextPeriodicLaunch\"") 67185 } else { 67186 r.EncodeStringEnc(codecSelferCcUTF8100, `NextPeriodicLaunch`) 67187 } 67188 r.WriteMapElemValue() 67189 if false { 67190 } else if !z.EncBasicHandle().TimeNotBuiltin { 67191 r.EncodeTime(x.NextPeriodicLaunch) 67192 } else if yyxt20 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt20 != nil { 67193 z.EncExtension(x.NextPeriodicLaunch, yyxt20) 67194 } else if z.EncBinary() { 67195 z.EncBinaryMarshal(x.NextPeriodicLaunch) 67196 } else if !z.EncBinary() && z.IsJSONHandle() { 67197 z.EncJSONMarshal(x.NextPeriodicLaunch) 67198 } else { 67199 z.EncFallback(x.NextPeriodicLaunch) 67200 } 67201 } 67202 if yyr2 || yy2arr2 { 67203 r.WriteArrayElem() 67204 if false { 67205 } else { 67206 if z.EncBasicHandle().StringToRaw { 67207 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 67208 } else { 67209 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 67210 } 67211 } 67212 } else { 67213 r.WriteMapElemKey() 67214 if z.IsJSONHandle() { 67215 z.WriteStr("\"Warnings\"") 67216 } else { 67217 r.EncodeStringEnc(codecSelferCcUTF8100, `Warnings`) 67218 } 67219 r.WriteMapElemValue() 67220 if false { 67221 } else { 67222 if z.EncBasicHandle().StringToRaw { 67223 r.EncodeStringBytesRaw(z.BytesView(string(x.Warnings))) 67224 } else { 67225 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Warnings)) 67226 } 67227 } 67228 } 67229 if yyr2 || yy2arr2 { 67230 r.WriteArrayElem() 67231 if false { 67232 } else { 67233 r.EncodeUint(uint64(x.Index)) 67234 } 67235 } else { 67236 r.WriteMapElemKey() 67237 if z.IsJSONHandle() { 67238 z.WriteStr("\"Index\"") 67239 } else { 67240 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67241 } 67242 r.WriteMapElemValue() 67243 if false { 67244 } else { 67245 r.EncodeUint(uint64(x.Index)) 67246 } 67247 } 67248 if yyr2 || yy2arr2 { 67249 r.WriteArrayEnd() 67250 } else { 67251 r.WriteMapEnd() 67252 } 67253 } 67254 } 67255 } 67256 67257 func (x *JobPlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { 67258 var h codecSelfer100 67259 z, r := codec1978.GenHelperDecoder(d) 67260 _, _, _ = h, z, r 67261 if false { 67262 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67263 z.DecExtension(x, yyxt1) 67264 } else { 67265 yyct2 := r.ContainerType() 67266 if yyct2 == codecSelferValueTypeMap100 { 67267 yyl2 := r.ReadMapStart() 67268 if yyl2 == 0 { 67269 r.ReadMapEnd() 67270 } else { 67271 x.codecDecodeSelfFromMap(yyl2, d) 67272 } 67273 } else if yyct2 == codecSelferValueTypeArray100 { 67274 yyl2 := r.ReadArrayStart() 67275 if yyl2 == 0 { 67276 r.ReadArrayEnd() 67277 } else { 67278 x.codecDecodeSelfFromArray(yyl2, d) 67279 } 67280 } else { 67281 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 67282 } 67283 } 67284 } 67285 67286 func (x *JobPlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67287 var h codecSelfer100 67288 z, r := codec1978.GenHelperDecoder(d) 67289 _, _, _ = h, z, r 67290 var yyhl3 bool = l >= 0 67291 for yyj3 := 0; ; yyj3++ { 67292 if yyhl3 { 67293 if yyj3 >= l { 67294 break 67295 } 67296 } else { 67297 if r.CheckBreak() { 67298 break 67299 } 67300 } 67301 r.ReadMapElemKey() 67302 yys3 := z.StringView(r.DecodeStringAsBytes()) 67303 r.ReadMapElemValue() 67304 switch yys3 { 67305 case "Annotations": 67306 if r.TryDecodeAsNil() { 67307 if true && x.Annotations != nil { 67308 x.Annotations = nil 67309 } 67310 } else { 67311 if x.Annotations == nil { 67312 x.Annotations = new(PlanAnnotations) 67313 } 67314 67315 x.Annotations.CodecDecodeSelf(d) 67316 } 67317 case "FailedTGAllocs": 67318 if r.TryDecodeAsNil() { 67319 x.FailedTGAllocs = nil 67320 } else { 67321 if false { 67322 } else { 67323 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 67324 } 67325 } 67326 case "JobModifyIndex": 67327 if r.TryDecodeAsNil() { 67328 x.JobModifyIndex = 0 67329 } else { 67330 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 67331 } 67332 case "CreatedEvals": 67333 if r.TryDecodeAsNil() { 67334 x.CreatedEvals = nil 67335 } else { 67336 if false { 67337 } else { 67338 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) 67339 } 67340 } 67341 case "Diff": 67342 if r.TryDecodeAsNil() { 67343 if true && x.Diff != nil { 67344 x.Diff = nil 67345 } 67346 } else { 67347 if x.Diff == nil { 67348 x.Diff = new(JobDiff) 67349 } 67350 67351 x.Diff.CodecDecodeSelf(d) 67352 } 67353 case "NextPeriodicLaunch": 67354 if r.TryDecodeAsNil() { 67355 x.NextPeriodicLaunch = time.Time{} 67356 } else { 67357 if false { 67358 } else if !z.DecBasicHandle().TimeNotBuiltin { 67359 x.NextPeriodicLaunch = r.DecodeTime() 67360 } else if yyxt12 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt12 != nil { 67361 z.DecExtension(x.NextPeriodicLaunch, yyxt12) 67362 } else if z.DecBinary() { 67363 z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) 67364 } else if !z.DecBinary() && z.IsJSONHandle() { 67365 z.DecJSONUnmarshal(&x.NextPeriodicLaunch) 67366 } else { 67367 z.DecFallback(&x.NextPeriodicLaunch, false) 67368 } 67369 } 67370 case "Warnings": 67371 if r.TryDecodeAsNil() { 67372 x.Warnings = "" 67373 } else { 67374 x.Warnings = (string)(r.DecodeString()) 67375 } 67376 case "Index": 67377 if r.TryDecodeAsNil() { 67378 x.WriteMeta.Index = 0 67379 } else { 67380 x.Index = (uint64)(r.DecodeUint64()) 67381 } 67382 default: 67383 z.DecStructFieldNotFound(-1, yys3) 67384 } // end switch yys3 67385 } // end for yyj3 67386 r.ReadMapEnd() 67387 } 67388 67389 func (x *JobPlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 67390 var h codecSelfer100 67391 z, r := codec1978.GenHelperDecoder(d) 67392 _, _, _ = h, z, r 67393 var yyj15 int 67394 var yyb15 bool 67395 var yyhl15 bool = l >= 0 67396 yyj15++ 67397 if yyhl15 { 67398 yyb15 = yyj15 > l 67399 } else { 67400 yyb15 = r.CheckBreak() 67401 } 67402 if yyb15 { 67403 r.ReadArrayEnd() 67404 return 67405 } 67406 r.ReadArrayElem() 67407 if r.TryDecodeAsNil() { 67408 if true && x.Annotations != nil { 67409 x.Annotations = nil 67410 } 67411 } else { 67412 if x.Annotations == nil { 67413 x.Annotations = new(PlanAnnotations) 67414 } 67415 67416 x.Annotations.CodecDecodeSelf(d) 67417 } 67418 yyj15++ 67419 if yyhl15 { 67420 yyb15 = yyj15 > l 67421 } else { 67422 yyb15 = r.CheckBreak() 67423 } 67424 if yyb15 { 67425 r.ReadArrayEnd() 67426 return 67427 } 67428 r.ReadArrayElem() 67429 if r.TryDecodeAsNil() { 67430 x.FailedTGAllocs = nil 67431 } else { 67432 if false { 67433 } else { 67434 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 67435 } 67436 } 67437 yyj15++ 67438 if yyhl15 { 67439 yyb15 = yyj15 > l 67440 } else { 67441 yyb15 = r.CheckBreak() 67442 } 67443 if yyb15 { 67444 r.ReadArrayEnd() 67445 return 67446 } 67447 r.ReadArrayElem() 67448 if r.TryDecodeAsNil() { 67449 x.JobModifyIndex = 0 67450 } else { 67451 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 67452 } 67453 yyj15++ 67454 if yyhl15 { 67455 yyb15 = yyj15 > l 67456 } else { 67457 yyb15 = r.CheckBreak() 67458 } 67459 if yyb15 { 67460 r.ReadArrayEnd() 67461 return 67462 } 67463 r.ReadArrayElem() 67464 if r.TryDecodeAsNil() { 67465 x.CreatedEvals = nil 67466 } else { 67467 if false { 67468 } else { 67469 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.CreatedEvals), d) 67470 } 67471 } 67472 yyj15++ 67473 if yyhl15 { 67474 yyb15 = yyj15 > l 67475 } else { 67476 yyb15 = r.CheckBreak() 67477 } 67478 if yyb15 { 67479 r.ReadArrayEnd() 67480 return 67481 } 67482 r.ReadArrayElem() 67483 if r.TryDecodeAsNil() { 67484 if true && x.Diff != nil { 67485 x.Diff = nil 67486 } 67487 } else { 67488 if x.Diff == nil { 67489 x.Diff = new(JobDiff) 67490 } 67491 67492 x.Diff.CodecDecodeSelf(d) 67493 } 67494 yyj15++ 67495 if yyhl15 { 67496 yyb15 = yyj15 > l 67497 } else { 67498 yyb15 = r.CheckBreak() 67499 } 67500 if yyb15 { 67501 r.ReadArrayEnd() 67502 return 67503 } 67504 r.ReadArrayElem() 67505 if r.TryDecodeAsNil() { 67506 x.NextPeriodicLaunch = time.Time{} 67507 } else { 67508 if false { 67509 } else if !z.DecBasicHandle().TimeNotBuiltin { 67510 x.NextPeriodicLaunch = r.DecodeTime() 67511 } else if yyxt24 := z.Extension(z.I2Rtid(x.NextPeriodicLaunch)); yyxt24 != nil { 67512 z.DecExtension(x.NextPeriodicLaunch, yyxt24) 67513 } else if z.DecBinary() { 67514 z.DecBinaryUnmarshal(&x.NextPeriodicLaunch) 67515 } else if !z.DecBinary() && z.IsJSONHandle() { 67516 z.DecJSONUnmarshal(&x.NextPeriodicLaunch) 67517 } else { 67518 z.DecFallback(&x.NextPeriodicLaunch, false) 67519 } 67520 } 67521 yyj15++ 67522 if yyhl15 { 67523 yyb15 = yyj15 > l 67524 } else { 67525 yyb15 = r.CheckBreak() 67526 } 67527 if yyb15 { 67528 r.ReadArrayEnd() 67529 return 67530 } 67531 r.ReadArrayElem() 67532 if r.TryDecodeAsNil() { 67533 x.Warnings = "" 67534 } else { 67535 x.Warnings = (string)(r.DecodeString()) 67536 } 67537 yyj15++ 67538 if yyhl15 { 67539 yyb15 = yyj15 > l 67540 } else { 67541 yyb15 = r.CheckBreak() 67542 } 67543 if yyb15 { 67544 r.ReadArrayEnd() 67545 return 67546 } 67547 r.ReadArrayElem() 67548 if r.TryDecodeAsNil() { 67549 x.WriteMeta.Index = 0 67550 } else { 67551 x.Index = (uint64)(r.DecodeUint64()) 67552 } 67553 for { 67554 yyj15++ 67555 if yyhl15 { 67556 yyb15 = yyj15 > l 67557 } else { 67558 yyb15 = r.CheckBreak() 67559 } 67560 if yyb15 { 67561 break 67562 } 67563 r.ReadArrayElem() 67564 z.DecStructFieldNotFound(yyj15-1, "") 67565 } 67566 r.ReadArrayEnd() 67567 } 67568 67569 func (x *SingleAllocResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67570 var h codecSelfer100 67571 z, r := codec1978.GenHelperEncoder(e) 67572 _, _, _ = h, z, r 67573 if x == nil { 67574 r.EncodeNil() 67575 } else { 67576 if false { 67577 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67578 z.EncExtension(x, yyxt1) 67579 } else { 67580 yysep2 := !z.EncBinary() 67581 yy2arr2 := z.EncBasicHandle().StructToArray 67582 _, _ = yysep2, yy2arr2 67583 const yyr2 bool = false // struct tag has 'toArray' 67584 if yyr2 || yy2arr2 { 67585 r.WriteArrayStart(4) 67586 } else { 67587 r.WriteMapStart(4) 67588 } 67589 var yyn3 bool 67590 if x.Alloc == nil { 67591 yyn3 = true 67592 goto LABEL3 67593 } 67594 LABEL3: 67595 if yyr2 || yy2arr2 { 67596 if yyn3 { 67597 r.WriteArrayElem() 67598 r.EncodeNil() 67599 } else { 67600 r.WriteArrayElem() 67601 if x.Alloc == nil { 67602 r.EncodeNil() 67603 } else { 67604 x.Alloc.CodecEncodeSelf(e) 67605 } 67606 } 67607 } else { 67608 r.WriteMapElemKey() 67609 if z.IsJSONHandle() { 67610 z.WriteStr("\"Alloc\"") 67611 } else { 67612 r.EncodeStringEnc(codecSelferCcUTF8100, `Alloc`) 67613 } 67614 r.WriteMapElemValue() 67615 if yyn3 { 67616 r.EncodeNil() 67617 } else { 67618 if x.Alloc == nil { 67619 r.EncodeNil() 67620 } else { 67621 x.Alloc.CodecEncodeSelf(e) 67622 } 67623 } 67624 } 67625 if yyr2 || yy2arr2 { 67626 r.WriteArrayElem() 67627 if false { 67628 } else { 67629 r.EncodeUint(uint64(x.Index)) 67630 } 67631 } else { 67632 r.WriteMapElemKey() 67633 if z.IsJSONHandle() { 67634 z.WriteStr("\"Index\"") 67635 } else { 67636 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67637 } 67638 r.WriteMapElemValue() 67639 if false { 67640 } else { 67641 r.EncodeUint(uint64(x.Index)) 67642 } 67643 } 67644 if yyr2 || yy2arr2 { 67645 r.WriteArrayElem() 67646 if false { 67647 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 67648 z.EncExtension(x.LastContact, yyxt10) 67649 } else { 67650 r.EncodeInt(int64(x.LastContact)) 67651 } 67652 } else { 67653 r.WriteMapElemKey() 67654 if z.IsJSONHandle() { 67655 z.WriteStr("\"LastContact\"") 67656 } else { 67657 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 67658 } 67659 r.WriteMapElemValue() 67660 if false { 67661 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 67662 z.EncExtension(x.LastContact, yyxt11) 67663 } else { 67664 r.EncodeInt(int64(x.LastContact)) 67665 } 67666 } 67667 if yyr2 || yy2arr2 { 67668 r.WriteArrayElem() 67669 if false { 67670 } else { 67671 r.EncodeBool(bool(x.KnownLeader)) 67672 } 67673 } else { 67674 r.WriteMapElemKey() 67675 if z.IsJSONHandle() { 67676 z.WriteStr("\"KnownLeader\"") 67677 } else { 67678 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 67679 } 67680 r.WriteMapElemValue() 67681 if false { 67682 } else { 67683 r.EncodeBool(bool(x.KnownLeader)) 67684 } 67685 } 67686 if yyr2 || yy2arr2 { 67687 r.WriteArrayEnd() 67688 } else { 67689 r.WriteMapEnd() 67690 } 67691 } 67692 } 67693 } 67694 67695 func (x *SingleAllocResponse) CodecDecodeSelf(d *codec1978.Decoder) { 67696 var h codecSelfer100 67697 z, r := codec1978.GenHelperDecoder(d) 67698 _, _, _ = h, z, r 67699 if false { 67700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67701 z.DecExtension(x, yyxt1) 67702 } else { 67703 yyct2 := r.ContainerType() 67704 if yyct2 == codecSelferValueTypeMap100 { 67705 yyl2 := r.ReadMapStart() 67706 if yyl2 == 0 { 67707 r.ReadMapEnd() 67708 } else { 67709 x.codecDecodeSelfFromMap(yyl2, d) 67710 } 67711 } else if yyct2 == codecSelferValueTypeArray100 { 67712 yyl2 := r.ReadArrayStart() 67713 if yyl2 == 0 { 67714 r.ReadArrayEnd() 67715 } else { 67716 x.codecDecodeSelfFromArray(yyl2, d) 67717 } 67718 } else { 67719 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 67720 } 67721 } 67722 } 67723 67724 func (x *SingleAllocResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 67725 var h codecSelfer100 67726 z, r := codec1978.GenHelperDecoder(d) 67727 _, _, _ = h, z, r 67728 var yyhl3 bool = l >= 0 67729 for yyj3 := 0; ; yyj3++ { 67730 if yyhl3 { 67731 if yyj3 >= l { 67732 break 67733 } 67734 } else { 67735 if r.CheckBreak() { 67736 break 67737 } 67738 } 67739 r.ReadMapElemKey() 67740 yys3 := z.StringView(r.DecodeStringAsBytes()) 67741 r.ReadMapElemValue() 67742 switch yys3 { 67743 case "Alloc": 67744 if r.TryDecodeAsNil() { 67745 if true && x.Alloc != nil { 67746 x.Alloc = nil 67747 } 67748 } else { 67749 if x.Alloc == nil { 67750 x.Alloc = new(Allocation) 67751 } 67752 67753 x.Alloc.CodecDecodeSelf(d) 67754 } 67755 case "Index": 67756 if r.TryDecodeAsNil() { 67757 x.QueryMeta.Index = 0 67758 } else { 67759 x.Index = (uint64)(r.DecodeUint64()) 67760 } 67761 case "LastContact": 67762 if r.TryDecodeAsNil() { 67763 x.QueryMeta.LastContact = 0 67764 } else { 67765 if false { 67766 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 67767 z.DecExtension(x.LastContact, yyxt7) 67768 } else { 67769 x.LastContact = (time.Duration)(r.DecodeInt64()) 67770 } 67771 } 67772 case "KnownLeader": 67773 if r.TryDecodeAsNil() { 67774 x.QueryMeta.KnownLeader = false 67775 } else { 67776 x.KnownLeader = (bool)(r.DecodeBool()) 67777 } 67778 default: 67779 z.DecStructFieldNotFound(-1, yys3) 67780 } // end switch yys3 67781 } // end for yyj3 67782 r.ReadMapEnd() 67783 } 67784 67785 func (x *SingleAllocResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 67786 var h codecSelfer100 67787 z, r := codec1978.GenHelperDecoder(d) 67788 _, _, _ = h, z, r 67789 var yyj9 int 67790 var yyb9 bool 67791 var yyhl9 bool = l >= 0 67792 yyj9++ 67793 if yyhl9 { 67794 yyb9 = yyj9 > l 67795 } else { 67796 yyb9 = r.CheckBreak() 67797 } 67798 if yyb9 { 67799 r.ReadArrayEnd() 67800 return 67801 } 67802 r.ReadArrayElem() 67803 if r.TryDecodeAsNil() { 67804 if true && x.Alloc != nil { 67805 x.Alloc = nil 67806 } 67807 } else { 67808 if x.Alloc == nil { 67809 x.Alloc = new(Allocation) 67810 } 67811 67812 x.Alloc.CodecDecodeSelf(d) 67813 } 67814 yyj9++ 67815 if yyhl9 { 67816 yyb9 = yyj9 > l 67817 } else { 67818 yyb9 = r.CheckBreak() 67819 } 67820 if yyb9 { 67821 r.ReadArrayEnd() 67822 return 67823 } 67824 r.ReadArrayElem() 67825 if r.TryDecodeAsNil() { 67826 x.QueryMeta.Index = 0 67827 } else { 67828 x.Index = (uint64)(r.DecodeUint64()) 67829 } 67830 yyj9++ 67831 if yyhl9 { 67832 yyb9 = yyj9 > l 67833 } else { 67834 yyb9 = r.CheckBreak() 67835 } 67836 if yyb9 { 67837 r.ReadArrayEnd() 67838 return 67839 } 67840 r.ReadArrayElem() 67841 if r.TryDecodeAsNil() { 67842 x.QueryMeta.LastContact = 0 67843 } else { 67844 if false { 67845 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 67846 z.DecExtension(x.LastContact, yyxt13) 67847 } else { 67848 x.LastContact = (time.Duration)(r.DecodeInt64()) 67849 } 67850 } 67851 yyj9++ 67852 if yyhl9 { 67853 yyb9 = yyj9 > l 67854 } else { 67855 yyb9 = r.CheckBreak() 67856 } 67857 if yyb9 { 67858 r.ReadArrayEnd() 67859 return 67860 } 67861 r.ReadArrayElem() 67862 if r.TryDecodeAsNil() { 67863 x.QueryMeta.KnownLeader = false 67864 } else { 67865 x.KnownLeader = (bool)(r.DecodeBool()) 67866 } 67867 for { 67868 yyj9++ 67869 if yyhl9 { 67870 yyb9 = yyj9 > l 67871 } else { 67872 yyb9 = r.CheckBreak() 67873 } 67874 if yyb9 { 67875 break 67876 } 67877 r.ReadArrayElem() 67878 z.DecStructFieldNotFound(yyj9-1, "") 67879 } 67880 r.ReadArrayEnd() 67881 } 67882 67883 func (x *AllocsGetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 67884 var h codecSelfer100 67885 z, r := codec1978.GenHelperEncoder(e) 67886 _, _, _ = h, z, r 67887 if x == nil { 67888 r.EncodeNil() 67889 } else { 67890 if false { 67891 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 67892 z.EncExtension(x, yyxt1) 67893 } else { 67894 yysep2 := !z.EncBinary() 67895 yy2arr2 := z.EncBasicHandle().StructToArray 67896 _, _ = yysep2, yy2arr2 67897 const yyr2 bool = false // struct tag has 'toArray' 67898 if yyr2 || yy2arr2 { 67899 r.WriteArrayStart(4) 67900 } else { 67901 r.WriteMapStart(4) 67902 } 67903 if yyr2 || yy2arr2 { 67904 r.WriteArrayElem() 67905 if x.Allocs == nil { 67906 r.EncodeNil() 67907 } else { 67908 if false { 67909 } else { 67910 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 67911 } 67912 } 67913 } else { 67914 r.WriteMapElemKey() 67915 if z.IsJSONHandle() { 67916 z.WriteStr("\"Allocs\"") 67917 } else { 67918 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocs`) 67919 } 67920 r.WriteMapElemValue() 67921 if x.Allocs == nil { 67922 r.EncodeNil() 67923 } else { 67924 if false { 67925 } else { 67926 h.encSlicePtrtoAllocation(([]*Allocation)(x.Allocs), e) 67927 } 67928 } 67929 } 67930 if yyr2 || yy2arr2 { 67931 r.WriteArrayElem() 67932 if false { 67933 } else { 67934 r.EncodeUint(uint64(x.Index)) 67935 } 67936 } else { 67937 r.WriteMapElemKey() 67938 if z.IsJSONHandle() { 67939 z.WriteStr("\"Index\"") 67940 } else { 67941 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 67942 } 67943 r.WriteMapElemValue() 67944 if false { 67945 } else { 67946 r.EncodeUint(uint64(x.Index)) 67947 } 67948 } 67949 if yyr2 || yy2arr2 { 67950 r.WriteArrayElem() 67951 if false { 67952 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 67953 z.EncExtension(x.LastContact, yyxt10) 67954 } else { 67955 r.EncodeInt(int64(x.LastContact)) 67956 } 67957 } else { 67958 r.WriteMapElemKey() 67959 if z.IsJSONHandle() { 67960 z.WriteStr("\"LastContact\"") 67961 } else { 67962 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 67963 } 67964 r.WriteMapElemValue() 67965 if false { 67966 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 67967 z.EncExtension(x.LastContact, yyxt11) 67968 } else { 67969 r.EncodeInt(int64(x.LastContact)) 67970 } 67971 } 67972 if yyr2 || yy2arr2 { 67973 r.WriteArrayElem() 67974 if false { 67975 } else { 67976 r.EncodeBool(bool(x.KnownLeader)) 67977 } 67978 } else { 67979 r.WriteMapElemKey() 67980 if z.IsJSONHandle() { 67981 z.WriteStr("\"KnownLeader\"") 67982 } else { 67983 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 67984 } 67985 r.WriteMapElemValue() 67986 if false { 67987 } else { 67988 r.EncodeBool(bool(x.KnownLeader)) 67989 } 67990 } 67991 if yyr2 || yy2arr2 { 67992 r.WriteArrayEnd() 67993 } else { 67994 r.WriteMapEnd() 67995 } 67996 } 67997 } 67998 } 67999 68000 func (x *AllocsGetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68001 var h codecSelfer100 68002 z, r := codec1978.GenHelperDecoder(d) 68003 _, _, _ = h, z, r 68004 if false { 68005 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68006 z.DecExtension(x, yyxt1) 68007 } else { 68008 yyct2 := r.ContainerType() 68009 if yyct2 == codecSelferValueTypeMap100 { 68010 yyl2 := r.ReadMapStart() 68011 if yyl2 == 0 { 68012 r.ReadMapEnd() 68013 } else { 68014 x.codecDecodeSelfFromMap(yyl2, d) 68015 } 68016 } else if yyct2 == codecSelferValueTypeArray100 { 68017 yyl2 := r.ReadArrayStart() 68018 if yyl2 == 0 { 68019 r.ReadArrayEnd() 68020 } else { 68021 x.codecDecodeSelfFromArray(yyl2, d) 68022 } 68023 } else { 68024 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68025 } 68026 } 68027 } 68028 68029 func (x *AllocsGetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68030 var h codecSelfer100 68031 z, r := codec1978.GenHelperDecoder(d) 68032 _, _, _ = h, z, r 68033 var yyhl3 bool = l >= 0 68034 for yyj3 := 0; ; yyj3++ { 68035 if yyhl3 { 68036 if yyj3 >= l { 68037 break 68038 } 68039 } else { 68040 if r.CheckBreak() { 68041 break 68042 } 68043 } 68044 r.ReadMapElemKey() 68045 yys3 := z.StringView(r.DecodeStringAsBytes()) 68046 r.ReadMapElemValue() 68047 switch yys3 { 68048 case "Allocs": 68049 if r.TryDecodeAsNil() { 68050 x.Allocs = nil 68051 } else { 68052 if false { 68053 } else { 68054 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 68055 } 68056 } 68057 case "Index": 68058 if r.TryDecodeAsNil() { 68059 x.QueryMeta.Index = 0 68060 } else { 68061 x.Index = (uint64)(r.DecodeUint64()) 68062 } 68063 case "LastContact": 68064 if r.TryDecodeAsNil() { 68065 x.QueryMeta.LastContact = 0 68066 } else { 68067 if false { 68068 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68069 z.DecExtension(x.LastContact, yyxt8) 68070 } else { 68071 x.LastContact = (time.Duration)(r.DecodeInt64()) 68072 } 68073 } 68074 case "KnownLeader": 68075 if r.TryDecodeAsNil() { 68076 x.QueryMeta.KnownLeader = false 68077 } else { 68078 x.KnownLeader = (bool)(r.DecodeBool()) 68079 } 68080 default: 68081 z.DecStructFieldNotFound(-1, yys3) 68082 } // end switch yys3 68083 } // end for yyj3 68084 r.ReadMapEnd() 68085 } 68086 68087 func (x *AllocsGetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68088 var h codecSelfer100 68089 z, r := codec1978.GenHelperDecoder(d) 68090 _, _, _ = h, z, r 68091 var yyj10 int 68092 var yyb10 bool 68093 var yyhl10 bool = l >= 0 68094 yyj10++ 68095 if yyhl10 { 68096 yyb10 = yyj10 > l 68097 } else { 68098 yyb10 = r.CheckBreak() 68099 } 68100 if yyb10 { 68101 r.ReadArrayEnd() 68102 return 68103 } 68104 r.ReadArrayElem() 68105 if r.TryDecodeAsNil() { 68106 x.Allocs = nil 68107 } else { 68108 if false { 68109 } else { 68110 h.decSlicePtrtoAllocation((*[]*Allocation)(&x.Allocs), d) 68111 } 68112 } 68113 yyj10++ 68114 if yyhl10 { 68115 yyb10 = yyj10 > l 68116 } else { 68117 yyb10 = r.CheckBreak() 68118 } 68119 if yyb10 { 68120 r.ReadArrayEnd() 68121 return 68122 } 68123 r.ReadArrayElem() 68124 if r.TryDecodeAsNil() { 68125 x.QueryMeta.Index = 0 68126 } else { 68127 x.Index = (uint64)(r.DecodeUint64()) 68128 } 68129 yyj10++ 68130 if yyhl10 { 68131 yyb10 = yyj10 > l 68132 } else { 68133 yyb10 = r.CheckBreak() 68134 } 68135 if yyb10 { 68136 r.ReadArrayEnd() 68137 return 68138 } 68139 r.ReadArrayElem() 68140 if r.TryDecodeAsNil() { 68141 x.QueryMeta.LastContact = 0 68142 } else { 68143 if false { 68144 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68145 z.DecExtension(x.LastContact, yyxt15) 68146 } else { 68147 x.LastContact = (time.Duration)(r.DecodeInt64()) 68148 } 68149 } 68150 yyj10++ 68151 if yyhl10 { 68152 yyb10 = yyj10 > l 68153 } else { 68154 yyb10 = r.CheckBreak() 68155 } 68156 if yyb10 { 68157 r.ReadArrayEnd() 68158 return 68159 } 68160 r.ReadArrayElem() 68161 if r.TryDecodeAsNil() { 68162 x.QueryMeta.KnownLeader = false 68163 } else { 68164 x.KnownLeader = (bool)(r.DecodeBool()) 68165 } 68166 for { 68167 yyj10++ 68168 if yyhl10 { 68169 yyb10 = yyj10 > l 68170 } else { 68171 yyb10 = r.CheckBreak() 68172 } 68173 if yyb10 { 68174 break 68175 } 68176 r.ReadArrayElem() 68177 z.DecStructFieldNotFound(yyj10-1, "") 68178 } 68179 r.ReadArrayEnd() 68180 } 68181 68182 func (x *JobAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68183 var h codecSelfer100 68184 z, r := codec1978.GenHelperEncoder(e) 68185 _, _, _ = h, z, r 68186 if x == nil { 68187 r.EncodeNil() 68188 } else { 68189 if false { 68190 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68191 z.EncExtension(x, yyxt1) 68192 } else { 68193 yysep2 := !z.EncBinary() 68194 yy2arr2 := z.EncBasicHandle().StructToArray 68195 _, _ = yysep2, yy2arr2 68196 const yyr2 bool = false // struct tag has 'toArray' 68197 if yyr2 || yy2arr2 { 68198 r.WriteArrayStart(4) 68199 } else { 68200 r.WriteMapStart(4) 68201 } 68202 if yyr2 || yy2arr2 { 68203 r.WriteArrayElem() 68204 if x.Allocations == nil { 68205 r.EncodeNil() 68206 } else { 68207 if false { 68208 } else { 68209 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 68210 } 68211 } 68212 } else { 68213 r.WriteMapElemKey() 68214 if z.IsJSONHandle() { 68215 z.WriteStr("\"Allocations\"") 68216 } else { 68217 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 68218 } 68219 r.WriteMapElemValue() 68220 if x.Allocations == nil { 68221 r.EncodeNil() 68222 } else { 68223 if false { 68224 } else { 68225 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 68226 } 68227 } 68228 } 68229 if yyr2 || yy2arr2 { 68230 r.WriteArrayElem() 68231 if false { 68232 } else { 68233 r.EncodeUint(uint64(x.Index)) 68234 } 68235 } else { 68236 r.WriteMapElemKey() 68237 if z.IsJSONHandle() { 68238 z.WriteStr("\"Index\"") 68239 } else { 68240 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68241 } 68242 r.WriteMapElemValue() 68243 if false { 68244 } else { 68245 r.EncodeUint(uint64(x.Index)) 68246 } 68247 } 68248 if yyr2 || yy2arr2 { 68249 r.WriteArrayElem() 68250 if false { 68251 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68252 z.EncExtension(x.LastContact, yyxt10) 68253 } else { 68254 r.EncodeInt(int64(x.LastContact)) 68255 } 68256 } else { 68257 r.WriteMapElemKey() 68258 if z.IsJSONHandle() { 68259 z.WriteStr("\"LastContact\"") 68260 } else { 68261 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68262 } 68263 r.WriteMapElemValue() 68264 if false { 68265 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68266 z.EncExtension(x.LastContact, yyxt11) 68267 } else { 68268 r.EncodeInt(int64(x.LastContact)) 68269 } 68270 } 68271 if yyr2 || yy2arr2 { 68272 r.WriteArrayElem() 68273 if false { 68274 } else { 68275 r.EncodeBool(bool(x.KnownLeader)) 68276 } 68277 } else { 68278 r.WriteMapElemKey() 68279 if z.IsJSONHandle() { 68280 z.WriteStr("\"KnownLeader\"") 68281 } else { 68282 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68283 } 68284 r.WriteMapElemValue() 68285 if false { 68286 } else { 68287 r.EncodeBool(bool(x.KnownLeader)) 68288 } 68289 } 68290 if yyr2 || yy2arr2 { 68291 r.WriteArrayEnd() 68292 } else { 68293 r.WriteMapEnd() 68294 } 68295 } 68296 } 68297 } 68298 68299 func (x *JobAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68300 var h codecSelfer100 68301 z, r := codec1978.GenHelperDecoder(d) 68302 _, _, _ = h, z, r 68303 if false { 68304 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68305 z.DecExtension(x, yyxt1) 68306 } else { 68307 yyct2 := r.ContainerType() 68308 if yyct2 == codecSelferValueTypeMap100 { 68309 yyl2 := r.ReadMapStart() 68310 if yyl2 == 0 { 68311 r.ReadMapEnd() 68312 } else { 68313 x.codecDecodeSelfFromMap(yyl2, d) 68314 } 68315 } else if yyct2 == codecSelferValueTypeArray100 { 68316 yyl2 := r.ReadArrayStart() 68317 if yyl2 == 0 { 68318 r.ReadArrayEnd() 68319 } else { 68320 x.codecDecodeSelfFromArray(yyl2, d) 68321 } 68322 } else { 68323 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68324 } 68325 } 68326 } 68327 68328 func (x *JobAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68329 var h codecSelfer100 68330 z, r := codec1978.GenHelperDecoder(d) 68331 _, _, _ = h, z, r 68332 var yyhl3 bool = l >= 0 68333 for yyj3 := 0; ; yyj3++ { 68334 if yyhl3 { 68335 if yyj3 >= l { 68336 break 68337 } 68338 } else { 68339 if r.CheckBreak() { 68340 break 68341 } 68342 } 68343 r.ReadMapElemKey() 68344 yys3 := z.StringView(r.DecodeStringAsBytes()) 68345 r.ReadMapElemValue() 68346 switch yys3 { 68347 case "Allocations": 68348 if r.TryDecodeAsNil() { 68349 x.Allocations = nil 68350 } else { 68351 if false { 68352 } else { 68353 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 68354 } 68355 } 68356 case "Index": 68357 if r.TryDecodeAsNil() { 68358 x.QueryMeta.Index = 0 68359 } else { 68360 x.Index = (uint64)(r.DecodeUint64()) 68361 } 68362 case "LastContact": 68363 if r.TryDecodeAsNil() { 68364 x.QueryMeta.LastContact = 0 68365 } else { 68366 if false { 68367 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68368 z.DecExtension(x.LastContact, yyxt8) 68369 } else { 68370 x.LastContact = (time.Duration)(r.DecodeInt64()) 68371 } 68372 } 68373 case "KnownLeader": 68374 if r.TryDecodeAsNil() { 68375 x.QueryMeta.KnownLeader = false 68376 } else { 68377 x.KnownLeader = (bool)(r.DecodeBool()) 68378 } 68379 default: 68380 z.DecStructFieldNotFound(-1, yys3) 68381 } // end switch yys3 68382 } // end for yyj3 68383 r.ReadMapEnd() 68384 } 68385 68386 func (x *JobAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68387 var h codecSelfer100 68388 z, r := codec1978.GenHelperDecoder(d) 68389 _, _, _ = h, z, r 68390 var yyj10 int 68391 var yyb10 bool 68392 var yyhl10 bool = l >= 0 68393 yyj10++ 68394 if yyhl10 { 68395 yyb10 = yyj10 > l 68396 } else { 68397 yyb10 = r.CheckBreak() 68398 } 68399 if yyb10 { 68400 r.ReadArrayEnd() 68401 return 68402 } 68403 r.ReadArrayElem() 68404 if r.TryDecodeAsNil() { 68405 x.Allocations = nil 68406 } else { 68407 if false { 68408 } else { 68409 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 68410 } 68411 } 68412 yyj10++ 68413 if yyhl10 { 68414 yyb10 = yyj10 > l 68415 } else { 68416 yyb10 = r.CheckBreak() 68417 } 68418 if yyb10 { 68419 r.ReadArrayEnd() 68420 return 68421 } 68422 r.ReadArrayElem() 68423 if r.TryDecodeAsNil() { 68424 x.QueryMeta.Index = 0 68425 } else { 68426 x.Index = (uint64)(r.DecodeUint64()) 68427 } 68428 yyj10++ 68429 if yyhl10 { 68430 yyb10 = yyj10 > l 68431 } else { 68432 yyb10 = r.CheckBreak() 68433 } 68434 if yyb10 { 68435 r.ReadArrayEnd() 68436 return 68437 } 68438 r.ReadArrayElem() 68439 if r.TryDecodeAsNil() { 68440 x.QueryMeta.LastContact = 0 68441 } else { 68442 if false { 68443 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68444 z.DecExtension(x.LastContact, yyxt15) 68445 } else { 68446 x.LastContact = (time.Duration)(r.DecodeInt64()) 68447 } 68448 } 68449 yyj10++ 68450 if yyhl10 { 68451 yyb10 = yyj10 > l 68452 } else { 68453 yyb10 = r.CheckBreak() 68454 } 68455 if yyb10 { 68456 r.ReadArrayEnd() 68457 return 68458 } 68459 r.ReadArrayElem() 68460 if r.TryDecodeAsNil() { 68461 x.QueryMeta.KnownLeader = false 68462 } else { 68463 x.KnownLeader = (bool)(r.DecodeBool()) 68464 } 68465 for { 68466 yyj10++ 68467 if yyhl10 { 68468 yyb10 = yyj10 > l 68469 } else { 68470 yyb10 = r.CheckBreak() 68471 } 68472 if yyb10 { 68473 break 68474 } 68475 r.ReadArrayElem() 68476 z.DecStructFieldNotFound(yyj10-1, "") 68477 } 68478 r.ReadArrayEnd() 68479 } 68480 68481 func (x *JobEvaluationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68482 var h codecSelfer100 68483 z, r := codec1978.GenHelperEncoder(e) 68484 _, _, _ = h, z, r 68485 if x == nil { 68486 r.EncodeNil() 68487 } else { 68488 if false { 68489 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68490 z.EncExtension(x, yyxt1) 68491 } else { 68492 yysep2 := !z.EncBinary() 68493 yy2arr2 := z.EncBasicHandle().StructToArray 68494 _, _ = yysep2, yy2arr2 68495 const yyr2 bool = false // struct tag has 'toArray' 68496 if yyr2 || yy2arr2 { 68497 r.WriteArrayStart(4) 68498 } else { 68499 r.WriteMapStart(4) 68500 } 68501 if yyr2 || yy2arr2 { 68502 r.WriteArrayElem() 68503 if x.Evaluations == nil { 68504 r.EncodeNil() 68505 } else { 68506 if false { 68507 } else { 68508 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 68509 } 68510 } 68511 } else { 68512 r.WriteMapElemKey() 68513 if z.IsJSONHandle() { 68514 z.WriteStr("\"Evaluations\"") 68515 } else { 68516 r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) 68517 } 68518 r.WriteMapElemValue() 68519 if x.Evaluations == nil { 68520 r.EncodeNil() 68521 } else { 68522 if false { 68523 } else { 68524 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 68525 } 68526 } 68527 } 68528 if yyr2 || yy2arr2 { 68529 r.WriteArrayElem() 68530 if false { 68531 } else { 68532 r.EncodeUint(uint64(x.Index)) 68533 } 68534 } else { 68535 r.WriteMapElemKey() 68536 if z.IsJSONHandle() { 68537 z.WriteStr("\"Index\"") 68538 } else { 68539 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68540 } 68541 r.WriteMapElemValue() 68542 if false { 68543 } else { 68544 r.EncodeUint(uint64(x.Index)) 68545 } 68546 } 68547 if yyr2 || yy2arr2 { 68548 r.WriteArrayElem() 68549 if false { 68550 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68551 z.EncExtension(x.LastContact, yyxt10) 68552 } else { 68553 r.EncodeInt(int64(x.LastContact)) 68554 } 68555 } else { 68556 r.WriteMapElemKey() 68557 if z.IsJSONHandle() { 68558 z.WriteStr("\"LastContact\"") 68559 } else { 68560 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68561 } 68562 r.WriteMapElemValue() 68563 if false { 68564 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68565 z.EncExtension(x.LastContact, yyxt11) 68566 } else { 68567 r.EncodeInt(int64(x.LastContact)) 68568 } 68569 } 68570 if yyr2 || yy2arr2 { 68571 r.WriteArrayElem() 68572 if false { 68573 } else { 68574 r.EncodeBool(bool(x.KnownLeader)) 68575 } 68576 } else { 68577 r.WriteMapElemKey() 68578 if z.IsJSONHandle() { 68579 z.WriteStr("\"KnownLeader\"") 68580 } else { 68581 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68582 } 68583 r.WriteMapElemValue() 68584 if false { 68585 } else { 68586 r.EncodeBool(bool(x.KnownLeader)) 68587 } 68588 } 68589 if yyr2 || yy2arr2 { 68590 r.WriteArrayEnd() 68591 } else { 68592 r.WriteMapEnd() 68593 } 68594 } 68595 } 68596 } 68597 68598 func (x *JobEvaluationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68599 var h codecSelfer100 68600 z, r := codec1978.GenHelperDecoder(d) 68601 _, _, _ = h, z, r 68602 if false { 68603 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68604 z.DecExtension(x, yyxt1) 68605 } else { 68606 yyct2 := r.ContainerType() 68607 if yyct2 == codecSelferValueTypeMap100 { 68608 yyl2 := r.ReadMapStart() 68609 if yyl2 == 0 { 68610 r.ReadMapEnd() 68611 } else { 68612 x.codecDecodeSelfFromMap(yyl2, d) 68613 } 68614 } else if yyct2 == codecSelferValueTypeArray100 { 68615 yyl2 := r.ReadArrayStart() 68616 if yyl2 == 0 { 68617 r.ReadArrayEnd() 68618 } else { 68619 x.codecDecodeSelfFromArray(yyl2, d) 68620 } 68621 } else { 68622 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68623 } 68624 } 68625 } 68626 68627 func (x *JobEvaluationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68628 var h codecSelfer100 68629 z, r := codec1978.GenHelperDecoder(d) 68630 _, _, _ = h, z, r 68631 var yyhl3 bool = l >= 0 68632 for yyj3 := 0; ; yyj3++ { 68633 if yyhl3 { 68634 if yyj3 >= l { 68635 break 68636 } 68637 } else { 68638 if r.CheckBreak() { 68639 break 68640 } 68641 } 68642 r.ReadMapElemKey() 68643 yys3 := z.StringView(r.DecodeStringAsBytes()) 68644 r.ReadMapElemValue() 68645 switch yys3 { 68646 case "Evaluations": 68647 if r.TryDecodeAsNil() { 68648 x.Evaluations = nil 68649 } else { 68650 if false { 68651 } else { 68652 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 68653 } 68654 } 68655 case "Index": 68656 if r.TryDecodeAsNil() { 68657 x.QueryMeta.Index = 0 68658 } else { 68659 x.Index = (uint64)(r.DecodeUint64()) 68660 } 68661 case "LastContact": 68662 if r.TryDecodeAsNil() { 68663 x.QueryMeta.LastContact = 0 68664 } else { 68665 if false { 68666 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 68667 z.DecExtension(x.LastContact, yyxt8) 68668 } else { 68669 x.LastContact = (time.Duration)(r.DecodeInt64()) 68670 } 68671 } 68672 case "KnownLeader": 68673 if r.TryDecodeAsNil() { 68674 x.QueryMeta.KnownLeader = false 68675 } else { 68676 x.KnownLeader = (bool)(r.DecodeBool()) 68677 } 68678 default: 68679 z.DecStructFieldNotFound(-1, yys3) 68680 } // end switch yys3 68681 } // end for yyj3 68682 r.ReadMapEnd() 68683 } 68684 68685 func (x *JobEvaluationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68686 var h codecSelfer100 68687 z, r := codec1978.GenHelperDecoder(d) 68688 _, _, _ = h, z, r 68689 var yyj10 int 68690 var yyb10 bool 68691 var yyhl10 bool = l >= 0 68692 yyj10++ 68693 if yyhl10 { 68694 yyb10 = yyj10 > l 68695 } else { 68696 yyb10 = r.CheckBreak() 68697 } 68698 if yyb10 { 68699 r.ReadArrayEnd() 68700 return 68701 } 68702 r.ReadArrayElem() 68703 if r.TryDecodeAsNil() { 68704 x.Evaluations = nil 68705 } else { 68706 if false { 68707 } else { 68708 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 68709 } 68710 } 68711 yyj10++ 68712 if yyhl10 { 68713 yyb10 = yyj10 > l 68714 } else { 68715 yyb10 = r.CheckBreak() 68716 } 68717 if yyb10 { 68718 r.ReadArrayEnd() 68719 return 68720 } 68721 r.ReadArrayElem() 68722 if r.TryDecodeAsNil() { 68723 x.QueryMeta.Index = 0 68724 } else { 68725 x.Index = (uint64)(r.DecodeUint64()) 68726 } 68727 yyj10++ 68728 if yyhl10 { 68729 yyb10 = yyj10 > l 68730 } else { 68731 yyb10 = r.CheckBreak() 68732 } 68733 if yyb10 { 68734 r.ReadArrayEnd() 68735 return 68736 } 68737 r.ReadArrayElem() 68738 if r.TryDecodeAsNil() { 68739 x.QueryMeta.LastContact = 0 68740 } else { 68741 if false { 68742 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 68743 z.DecExtension(x.LastContact, yyxt15) 68744 } else { 68745 x.LastContact = (time.Duration)(r.DecodeInt64()) 68746 } 68747 } 68748 yyj10++ 68749 if yyhl10 { 68750 yyb10 = yyj10 > l 68751 } else { 68752 yyb10 = r.CheckBreak() 68753 } 68754 if yyb10 { 68755 r.ReadArrayEnd() 68756 return 68757 } 68758 r.ReadArrayElem() 68759 if r.TryDecodeAsNil() { 68760 x.QueryMeta.KnownLeader = false 68761 } else { 68762 x.KnownLeader = (bool)(r.DecodeBool()) 68763 } 68764 for { 68765 yyj10++ 68766 if yyhl10 { 68767 yyb10 = yyj10 > l 68768 } else { 68769 yyb10 = r.CheckBreak() 68770 } 68771 if yyb10 { 68772 break 68773 } 68774 r.ReadArrayElem() 68775 z.DecStructFieldNotFound(yyj10-1, "") 68776 } 68777 r.ReadArrayEnd() 68778 } 68779 68780 func (x *SingleEvalResponse) CodecEncodeSelf(e *codec1978.Encoder) { 68781 var h codecSelfer100 68782 z, r := codec1978.GenHelperEncoder(e) 68783 _, _, _ = h, z, r 68784 if x == nil { 68785 r.EncodeNil() 68786 } else { 68787 if false { 68788 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68789 z.EncExtension(x, yyxt1) 68790 } else { 68791 yysep2 := !z.EncBinary() 68792 yy2arr2 := z.EncBasicHandle().StructToArray 68793 _, _ = yysep2, yy2arr2 68794 const yyr2 bool = false // struct tag has 'toArray' 68795 if yyr2 || yy2arr2 { 68796 r.WriteArrayStart(4) 68797 } else { 68798 r.WriteMapStart(4) 68799 } 68800 var yyn3 bool 68801 if x.Eval == nil { 68802 yyn3 = true 68803 goto LABEL3 68804 } 68805 LABEL3: 68806 if yyr2 || yy2arr2 { 68807 if yyn3 { 68808 r.WriteArrayElem() 68809 r.EncodeNil() 68810 } else { 68811 r.WriteArrayElem() 68812 if x.Eval == nil { 68813 r.EncodeNil() 68814 } else { 68815 x.Eval.CodecEncodeSelf(e) 68816 } 68817 } 68818 } else { 68819 r.WriteMapElemKey() 68820 if z.IsJSONHandle() { 68821 z.WriteStr("\"Eval\"") 68822 } else { 68823 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 68824 } 68825 r.WriteMapElemValue() 68826 if yyn3 { 68827 r.EncodeNil() 68828 } else { 68829 if x.Eval == nil { 68830 r.EncodeNil() 68831 } else { 68832 x.Eval.CodecEncodeSelf(e) 68833 } 68834 } 68835 } 68836 if yyr2 || yy2arr2 { 68837 r.WriteArrayElem() 68838 if false { 68839 } else { 68840 r.EncodeUint(uint64(x.Index)) 68841 } 68842 } else { 68843 r.WriteMapElemKey() 68844 if z.IsJSONHandle() { 68845 z.WriteStr("\"Index\"") 68846 } else { 68847 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 68848 } 68849 r.WriteMapElemValue() 68850 if false { 68851 } else { 68852 r.EncodeUint(uint64(x.Index)) 68853 } 68854 } 68855 if yyr2 || yy2arr2 { 68856 r.WriteArrayElem() 68857 if false { 68858 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 68859 z.EncExtension(x.LastContact, yyxt10) 68860 } else { 68861 r.EncodeInt(int64(x.LastContact)) 68862 } 68863 } else { 68864 r.WriteMapElemKey() 68865 if z.IsJSONHandle() { 68866 z.WriteStr("\"LastContact\"") 68867 } else { 68868 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 68869 } 68870 r.WriteMapElemValue() 68871 if false { 68872 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 68873 z.EncExtension(x.LastContact, yyxt11) 68874 } else { 68875 r.EncodeInt(int64(x.LastContact)) 68876 } 68877 } 68878 if yyr2 || yy2arr2 { 68879 r.WriteArrayElem() 68880 if false { 68881 } else { 68882 r.EncodeBool(bool(x.KnownLeader)) 68883 } 68884 } else { 68885 r.WriteMapElemKey() 68886 if z.IsJSONHandle() { 68887 z.WriteStr("\"KnownLeader\"") 68888 } else { 68889 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 68890 } 68891 r.WriteMapElemValue() 68892 if false { 68893 } else { 68894 r.EncodeBool(bool(x.KnownLeader)) 68895 } 68896 } 68897 if yyr2 || yy2arr2 { 68898 r.WriteArrayEnd() 68899 } else { 68900 r.WriteMapEnd() 68901 } 68902 } 68903 } 68904 } 68905 68906 func (x *SingleEvalResponse) CodecDecodeSelf(d *codec1978.Decoder) { 68907 var h codecSelfer100 68908 z, r := codec1978.GenHelperDecoder(d) 68909 _, _, _ = h, z, r 68910 if false { 68911 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 68912 z.DecExtension(x, yyxt1) 68913 } else { 68914 yyct2 := r.ContainerType() 68915 if yyct2 == codecSelferValueTypeMap100 { 68916 yyl2 := r.ReadMapStart() 68917 if yyl2 == 0 { 68918 r.ReadMapEnd() 68919 } else { 68920 x.codecDecodeSelfFromMap(yyl2, d) 68921 } 68922 } else if yyct2 == codecSelferValueTypeArray100 { 68923 yyl2 := r.ReadArrayStart() 68924 if yyl2 == 0 { 68925 r.ReadArrayEnd() 68926 } else { 68927 x.codecDecodeSelfFromArray(yyl2, d) 68928 } 68929 } else { 68930 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 68931 } 68932 } 68933 } 68934 68935 func (x *SingleEvalResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 68936 var h codecSelfer100 68937 z, r := codec1978.GenHelperDecoder(d) 68938 _, _, _ = h, z, r 68939 var yyhl3 bool = l >= 0 68940 for yyj3 := 0; ; yyj3++ { 68941 if yyhl3 { 68942 if yyj3 >= l { 68943 break 68944 } 68945 } else { 68946 if r.CheckBreak() { 68947 break 68948 } 68949 } 68950 r.ReadMapElemKey() 68951 yys3 := z.StringView(r.DecodeStringAsBytes()) 68952 r.ReadMapElemValue() 68953 switch yys3 { 68954 case "Eval": 68955 if r.TryDecodeAsNil() { 68956 if true && x.Eval != nil { 68957 x.Eval = nil 68958 } 68959 } else { 68960 if x.Eval == nil { 68961 x.Eval = new(Evaluation) 68962 } 68963 68964 x.Eval.CodecDecodeSelf(d) 68965 } 68966 case "Index": 68967 if r.TryDecodeAsNil() { 68968 x.QueryMeta.Index = 0 68969 } else { 68970 x.Index = (uint64)(r.DecodeUint64()) 68971 } 68972 case "LastContact": 68973 if r.TryDecodeAsNil() { 68974 x.QueryMeta.LastContact = 0 68975 } else { 68976 if false { 68977 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 68978 z.DecExtension(x.LastContact, yyxt7) 68979 } else { 68980 x.LastContact = (time.Duration)(r.DecodeInt64()) 68981 } 68982 } 68983 case "KnownLeader": 68984 if r.TryDecodeAsNil() { 68985 x.QueryMeta.KnownLeader = false 68986 } else { 68987 x.KnownLeader = (bool)(r.DecodeBool()) 68988 } 68989 default: 68990 z.DecStructFieldNotFound(-1, yys3) 68991 } // end switch yys3 68992 } // end for yyj3 68993 r.ReadMapEnd() 68994 } 68995 68996 func (x *SingleEvalResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 68997 var h codecSelfer100 68998 z, r := codec1978.GenHelperDecoder(d) 68999 _, _, _ = h, z, r 69000 var yyj9 int 69001 var yyb9 bool 69002 var yyhl9 bool = l >= 0 69003 yyj9++ 69004 if yyhl9 { 69005 yyb9 = yyj9 > l 69006 } else { 69007 yyb9 = r.CheckBreak() 69008 } 69009 if yyb9 { 69010 r.ReadArrayEnd() 69011 return 69012 } 69013 r.ReadArrayElem() 69014 if r.TryDecodeAsNil() { 69015 if true && x.Eval != nil { 69016 x.Eval = nil 69017 } 69018 } else { 69019 if x.Eval == nil { 69020 x.Eval = new(Evaluation) 69021 } 69022 69023 x.Eval.CodecDecodeSelf(d) 69024 } 69025 yyj9++ 69026 if yyhl9 { 69027 yyb9 = yyj9 > l 69028 } else { 69029 yyb9 = r.CheckBreak() 69030 } 69031 if yyb9 { 69032 r.ReadArrayEnd() 69033 return 69034 } 69035 r.ReadArrayElem() 69036 if r.TryDecodeAsNil() { 69037 x.QueryMeta.Index = 0 69038 } else { 69039 x.Index = (uint64)(r.DecodeUint64()) 69040 } 69041 yyj9++ 69042 if yyhl9 { 69043 yyb9 = yyj9 > l 69044 } else { 69045 yyb9 = r.CheckBreak() 69046 } 69047 if yyb9 { 69048 r.ReadArrayEnd() 69049 return 69050 } 69051 r.ReadArrayElem() 69052 if r.TryDecodeAsNil() { 69053 x.QueryMeta.LastContact = 0 69054 } else { 69055 if false { 69056 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 69057 z.DecExtension(x.LastContact, yyxt13) 69058 } else { 69059 x.LastContact = (time.Duration)(r.DecodeInt64()) 69060 } 69061 } 69062 yyj9++ 69063 if yyhl9 { 69064 yyb9 = yyj9 > l 69065 } else { 69066 yyb9 = r.CheckBreak() 69067 } 69068 if yyb9 { 69069 r.ReadArrayEnd() 69070 return 69071 } 69072 r.ReadArrayElem() 69073 if r.TryDecodeAsNil() { 69074 x.QueryMeta.KnownLeader = false 69075 } else { 69076 x.KnownLeader = (bool)(r.DecodeBool()) 69077 } 69078 for { 69079 yyj9++ 69080 if yyhl9 { 69081 yyb9 = yyj9 > l 69082 } else { 69083 yyb9 = r.CheckBreak() 69084 } 69085 if yyb9 { 69086 break 69087 } 69088 r.ReadArrayElem() 69089 z.DecStructFieldNotFound(yyj9-1, "") 69090 } 69091 r.ReadArrayEnd() 69092 } 69093 69094 func (x *EvalDequeueResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69095 var h codecSelfer100 69096 z, r := codec1978.GenHelperEncoder(e) 69097 _, _, _ = h, z, r 69098 if x == nil { 69099 r.EncodeNil() 69100 } else { 69101 if false { 69102 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69103 z.EncExtension(x, yyxt1) 69104 } else { 69105 yysep2 := !z.EncBinary() 69106 yy2arr2 := z.EncBasicHandle().StructToArray 69107 _, _ = yysep2, yy2arr2 69108 const yyr2 bool = false // struct tag has 'toArray' 69109 if yyr2 || yy2arr2 { 69110 r.WriteArrayStart(6) 69111 } else { 69112 r.WriteMapStart(6) 69113 } 69114 var yyn3 bool 69115 if x.Eval == nil { 69116 yyn3 = true 69117 goto LABEL3 69118 } 69119 LABEL3: 69120 if yyr2 || yy2arr2 { 69121 if yyn3 { 69122 r.WriteArrayElem() 69123 r.EncodeNil() 69124 } else { 69125 r.WriteArrayElem() 69126 if x.Eval == nil { 69127 r.EncodeNil() 69128 } else { 69129 x.Eval.CodecEncodeSelf(e) 69130 } 69131 } 69132 } else { 69133 r.WriteMapElemKey() 69134 if z.IsJSONHandle() { 69135 z.WriteStr("\"Eval\"") 69136 } else { 69137 r.EncodeStringEnc(codecSelferCcUTF8100, `Eval`) 69138 } 69139 r.WriteMapElemValue() 69140 if yyn3 { 69141 r.EncodeNil() 69142 } else { 69143 if x.Eval == nil { 69144 r.EncodeNil() 69145 } else { 69146 x.Eval.CodecEncodeSelf(e) 69147 } 69148 } 69149 } 69150 if yyr2 || yy2arr2 { 69151 r.WriteArrayElem() 69152 if false { 69153 } else { 69154 if z.EncBasicHandle().StringToRaw { 69155 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 69156 } else { 69157 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 69158 } 69159 } 69160 } else { 69161 r.WriteMapElemKey() 69162 if z.IsJSONHandle() { 69163 z.WriteStr("\"Token\"") 69164 } else { 69165 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 69166 } 69167 r.WriteMapElemValue() 69168 if false { 69169 } else { 69170 if z.EncBasicHandle().StringToRaw { 69171 r.EncodeStringBytesRaw(z.BytesView(string(x.Token))) 69172 } else { 69173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Token)) 69174 } 69175 } 69176 } 69177 if yyr2 || yy2arr2 { 69178 r.WriteArrayElem() 69179 if false { 69180 } else { 69181 r.EncodeUint(uint64(x.WaitIndex)) 69182 } 69183 } else { 69184 r.WriteMapElemKey() 69185 if z.IsJSONHandle() { 69186 z.WriteStr("\"WaitIndex\"") 69187 } else { 69188 r.EncodeStringEnc(codecSelferCcUTF8100, `WaitIndex`) 69189 } 69190 r.WriteMapElemValue() 69191 if false { 69192 } else { 69193 r.EncodeUint(uint64(x.WaitIndex)) 69194 } 69195 } 69196 if yyr2 || yy2arr2 { 69197 r.WriteArrayElem() 69198 if false { 69199 } else { 69200 r.EncodeUint(uint64(x.Index)) 69201 } 69202 } else { 69203 r.WriteMapElemKey() 69204 if z.IsJSONHandle() { 69205 z.WriteStr("\"Index\"") 69206 } else { 69207 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69208 } 69209 r.WriteMapElemValue() 69210 if false { 69211 } else { 69212 r.EncodeUint(uint64(x.Index)) 69213 } 69214 } 69215 if yyr2 || yy2arr2 { 69216 r.WriteArrayElem() 69217 if false { 69218 } else if yyxt16 := z.Extension(z.I2Rtid(x.LastContact)); yyxt16 != nil { 69219 z.EncExtension(x.LastContact, yyxt16) 69220 } else { 69221 r.EncodeInt(int64(x.LastContact)) 69222 } 69223 } else { 69224 r.WriteMapElemKey() 69225 if z.IsJSONHandle() { 69226 z.WriteStr("\"LastContact\"") 69227 } else { 69228 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 69229 } 69230 r.WriteMapElemValue() 69231 if false { 69232 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 69233 z.EncExtension(x.LastContact, yyxt17) 69234 } else { 69235 r.EncodeInt(int64(x.LastContact)) 69236 } 69237 } 69238 if yyr2 || yy2arr2 { 69239 r.WriteArrayElem() 69240 if false { 69241 } else { 69242 r.EncodeBool(bool(x.KnownLeader)) 69243 } 69244 } else { 69245 r.WriteMapElemKey() 69246 if z.IsJSONHandle() { 69247 z.WriteStr("\"KnownLeader\"") 69248 } else { 69249 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 69250 } 69251 r.WriteMapElemValue() 69252 if false { 69253 } else { 69254 r.EncodeBool(bool(x.KnownLeader)) 69255 } 69256 } 69257 if yyr2 || yy2arr2 { 69258 r.WriteArrayEnd() 69259 } else { 69260 r.WriteMapEnd() 69261 } 69262 } 69263 } 69264 } 69265 69266 func (x *EvalDequeueResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69267 var h codecSelfer100 69268 z, r := codec1978.GenHelperDecoder(d) 69269 _, _, _ = h, z, r 69270 if false { 69271 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69272 z.DecExtension(x, yyxt1) 69273 } else { 69274 yyct2 := r.ContainerType() 69275 if yyct2 == codecSelferValueTypeMap100 { 69276 yyl2 := r.ReadMapStart() 69277 if yyl2 == 0 { 69278 r.ReadMapEnd() 69279 } else { 69280 x.codecDecodeSelfFromMap(yyl2, d) 69281 } 69282 } else if yyct2 == codecSelferValueTypeArray100 { 69283 yyl2 := r.ReadArrayStart() 69284 if yyl2 == 0 { 69285 r.ReadArrayEnd() 69286 } else { 69287 x.codecDecodeSelfFromArray(yyl2, d) 69288 } 69289 } else { 69290 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69291 } 69292 } 69293 } 69294 69295 func (x *EvalDequeueResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69296 var h codecSelfer100 69297 z, r := codec1978.GenHelperDecoder(d) 69298 _, _, _ = h, z, r 69299 var yyhl3 bool = l >= 0 69300 for yyj3 := 0; ; yyj3++ { 69301 if yyhl3 { 69302 if yyj3 >= l { 69303 break 69304 } 69305 } else { 69306 if r.CheckBreak() { 69307 break 69308 } 69309 } 69310 r.ReadMapElemKey() 69311 yys3 := z.StringView(r.DecodeStringAsBytes()) 69312 r.ReadMapElemValue() 69313 switch yys3 { 69314 case "Eval": 69315 if r.TryDecodeAsNil() { 69316 if true && x.Eval != nil { 69317 x.Eval = nil 69318 } 69319 } else { 69320 if x.Eval == nil { 69321 x.Eval = new(Evaluation) 69322 } 69323 69324 x.Eval.CodecDecodeSelf(d) 69325 } 69326 case "Token": 69327 if r.TryDecodeAsNil() { 69328 x.Token = "" 69329 } else { 69330 x.Token = (string)(r.DecodeString()) 69331 } 69332 case "WaitIndex": 69333 if r.TryDecodeAsNil() { 69334 x.WaitIndex = 0 69335 } else { 69336 x.WaitIndex = (uint64)(r.DecodeUint64()) 69337 } 69338 case "Index": 69339 if r.TryDecodeAsNil() { 69340 x.QueryMeta.Index = 0 69341 } else { 69342 x.Index = (uint64)(r.DecodeUint64()) 69343 } 69344 case "LastContact": 69345 if r.TryDecodeAsNil() { 69346 x.QueryMeta.LastContact = 0 69347 } else { 69348 if false { 69349 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 69350 z.DecExtension(x.LastContact, yyxt9) 69351 } else { 69352 x.LastContact = (time.Duration)(r.DecodeInt64()) 69353 } 69354 } 69355 case "KnownLeader": 69356 if r.TryDecodeAsNil() { 69357 x.QueryMeta.KnownLeader = false 69358 } else { 69359 x.KnownLeader = (bool)(r.DecodeBool()) 69360 } 69361 default: 69362 z.DecStructFieldNotFound(-1, yys3) 69363 } // end switch yys3 69364 } // end for yyj3 69365 r.ReadMapEnd() 69366 } 69367 69368 func (x *EvalDequeueResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69369 var h codecSelfer100 69370 z, r := codec1978.GenHelperDecoder(d) 69371 _, _, _ = h, z, r 69372 var yyj11 int 69373 var yyb11 bool 69374 var yyhl11 bool = l >= 0 69375 yyj11++ 69376 if yyhl11 { 69377 yyb11 = yyj11 > l 69378 } else { 69379 yyb11 = r.CheckBreak() 69380 } 69381 if yyb11 { 69382 r.ReadArrayEnd() 69383 return 69384 } 69385 r.ReadArrayElem() 69386 if r.TryDecodeAsNil() { 69387 if true && x.Eval != nil { 69388 x.Eval = nil 69389 } 69390 } else { 69391 if x.Eval == nil { 69392 x.Eval = new(Evaluation) 69393 } 69394 69395 x.Eval.CodecDecodeSelf(d) 69396 } 69397 yyj11++ 69398 if yyhl11 { 69399 yyb11 = yyj11 > l 69400 } else { 69401 yyb11 = r.CheckBreak() 69402 } 69403 if yyb11 { 69404 r.ReadArrayEnd() 69405 return 69406 } 69407 r.ReadArrayElem() 69408 if r.TryDecodeAsNil() { 69409 x.Token = "" 69410 } else { 69411 x.Token = (string)(r.DecodeString()) 69412 } 69413 yyj11++ 69414 if yyhl11 { 69415 yyb11 = yyj11 > l 69416 } else { 69417 yyb11 = r.CheckBreak() 69418 } 69419 if yyb11 { 69420 r.ReadArrayEnd() 69421 return 69422 } 69423 r.ReadArrayElem() 69424 if r.TryDecodeAsNil() { 69425 x.WaitIndex = 0 69426 } else { 69427 x.WaitIndex = (uint64)(r.DecodeUint64()) 69428 } 69429 yyj11++ 69430 if yyhl11 { 69431 yyb11 = yyj11 > l 69432 } else { 69433 yyb11 = r.CheckBreak() 69434 } 69435 if yyb11 { 69436 r.ReadArrayEnd() 69437 return 69438 } 69439 r.ReadArrayElem() 69440 if r.TryDecodeAsNil() { 69441 x.QueryMeta.Index = 0 69442 } else { 69443 x.Index = (uint64)(r.DecodeUint64()) 69444 } 69445 yyj11++ 69446 if yyhl11 { 69447 yyb11 = yyj11 > l 69448 } else { 69449 yyb11 = r.CheckBreak() 69450 } 69451 if yyb11 { 69452 r.ReadArrayEnd() 69453 return 69454 } 69455 r.ReadArrayElem() 69456 if r.TryDecodeAsNil() { 69457 x.QueryMeta.LastContact = 0 69458 } else { 69459 if false { 69460 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 69461 z.DecExtension(x.LastContact, yyxt17) 69462 } else { 69463 x.LastContact = (time.Duration)(r.DecodeInt64()) 69464 } 69465 } 69466 yyj11++ 69467 if yyhl11 { 69468 yyb11 = yyj11 > l 69469 } else { 69470 yyb11 = r.CheckBreak() 69471 } 69472 if yyb11 { 69473 r.ReadArrayEnd() 69474 return 69475 } 69476 r.ReadArrayElem() 69477 if r.TryDecodeAsNil() { 69478 x.QueryMeta.KnownLeader = false 69479 } else { 69480 x.KnownLeader = (bool)(r.DecodeBool()) 69481 } 69482 for { 69483 yyj11++ 69484 if yyhl11 { 69485 yyb11 = yyj11 > l 69486 } else { 69487 yyb11 = r.CheckBreak() 69488 } 69489 if yyb11 { 69490 break 69491 } 69492 r.ReadArrayElem() 69493 z.DecStructFieldNotFound(yyj11-1, "") 69494 } 69495 r.ReadArrayEnd() 69496 } 69497 69498 func (x *PlanResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69499 var h codecSelfer100 69500 z, r := codec1978.GenHelperEncoder(e) 69501 _, _, _ = h, z, r 69502 if x == nil { 69503 r.EncodeNil() 69504 } else { 69505 if false { 69506 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69507 z.EncExtension(x, yyxt1) 69508 } else { 69509 yysep2 := !z.EncBinary() 69510 yy2arr2 := z.EncBasicHandle().StructToArray 69511 _, _ = yysep2, yy2arr2 69512 const yyr2 bool = false // struct tag has 'toArray' 69513 if yyr2 || yy2arr2 { 69514 r.WriteArrayStart(2) 69515 } else { 69516 r.WriteMapStart(2) 69517 } 69518 var yyn3 bool 69519 if x.Result == nil { 69520 yyn3 = true 69521 goto LABEL3 69522 } 69523 LABEL3: 69524 if yyr2 || yy2arr2 { 69525 if yyn3 { 69526 r.WriteArrayElem() 69527 r.EncodeNil() 69528 } else { 69529 r.WriteArrayElem() 69530 if x.Result == nil { 69531 r.EncodeNil() 69532 } else { 69533 x.Result.CodecEncodeSelf(e) 69534 } 69535 } 69536 } else { 69537 r.WriteMapElemKey() 69538 if z.IsJSONHandle() { 69539 z.WriteStr("\"Result\"") 69540 } else { 69541 r.EncodeStringEnc(codecSelferCcUTF8100, `Result`) 69542 } 69543 r.WriteMapElemValue() 69544 if yyn3 { 69545 r.EncodeNil() 69546 } else { 69547 if x.Result == nil { 69548 r.EncodeNil() 69549 } else { 69550 x.Result.CodecEncodeSelf(e) 69551 } 69552 } 69553 } 69554 if yyr2 || yy2arr2 { 69555 r.WriteArrayElem() 69556 if false { 69557 } else { 69558 r.EncodeUint(uint64(x.Index)) 69559 } 69560 } else { 69561 r.WriteMapElemKey() 69562 if z.IsJSONHandle() { 69563 z.WriteStr("\"Index\"") 69564 } else { 69565 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69566 } 69567 r.WriteMapElemValue() 69568 if false { 69569 } else { 69570 r.EncodeUint(uint64(x.Index)) 69571 } 69572 } 69573 if yyr2 || yy2arr2 { 69574 r.WriteArrayEnd() 69575 } else { 69576 r.WriteMapEnd() 69577 } 69578 } 69579 } 69580 } 69581 69582 func (x *PlanResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69583 var h codecSelfer100 69584 z, r := codec1978.GenHelperDecoder(d) 69585 _, _, _ = h, z, r 69586 if false { 69587 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69588 z.DecExtension(x, yyxt1) 69589 } else { 69590 yyct2 := r.ContainerType() 69591 if yyct2 == codecSelferValueTypeMap100 { 69592 yyl2 := r.ReadMapStart() 69593 if yyl2 == 0 { 69594 r.ReadMapEnd() 69595 } else { 69596 x.codecDecodeSelfFromMap(yyl2, d) 69597 } 69598 } else if yyct2 == codecSelferValueTypeArray100 { 69599 yyl2 := r.ReadArrayStart() 69600 if yyl2 == 0 { 69601 r.ReadArrayEnd() 69602 } else { 69603 x.codecDecodeSelfFromArray(yyl2, d) 69604 } 69605 } else { 69606 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69607 } 69608 } 69609 } 69610 69611 func (x *PlanResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69612 var h codecSelfer100 69613 z, r := codec1978.GenHelperDecoder(d) 69614 _, _, _ = h, z, r 69615 var yyhl3 bool = l >= 0 69616 for yyj3 := 0; ; yyj3++ { 69617 if yyhl3 { 69618 if yyj3 >= l { 69619 break 69620 } 69621 } else { 69622 if r.CheckBreak() { 69623 break 69624 } 69625 } 69626 r.ReadMapElemKey() 69627 yys3 := z.StringView(r.DecodeStringAsBytes()) 69628 r.ReadMapElemValue() 69629 switch yys3 { 69630 case "Result": 69631 if r.TryDecodeAsNil() { 69632 if true && x.Result != nil { 69633 x.Result = nil 69634 } 69635 } else { 69636 if x.Result == nil { 69637 x.Result = new(PlanResult) 69638 } 69639 69640 x.Result.CodecDecodeSelf(d) 69641 } 69642 case "Index": 69643 if r.TryDecodeAsNil() { 69644 x.WriteMeta.Index = 0 69645 } else { 69646 x.Index = (uint64)(r.DecodeUint64()) 69647 } 69648 default: 69649 z.DecStructFieldNotFound(-1, yys3) 69650 } // end switch yys3 69651 } // end for yyj3 69652 r.ReadMapEnd() 69653 } 69654 69655 func (x *PlanResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69656 var h codecSelfer100 69657 z, r := codec1978.GenHelperDecoder(d) 69658 _, _, _ = h, z, r 69659 var yyj6 int 69660 var yyb6 bool 69661 var yyhl6 bool = l >= 0 69662 yyj6++ 69663 if yyhl6 { 69664 yyb6 = yyj6 > l 69665 } else { 69666 yyb6 = r.CheckBreak() 69667 } 69668 if yyb6 { 69669 r.ReadArrayEnd() 69670 return 69671 } 69672 r.ReadArrayElem() 69673 if r.TryDecodeAsNil() { 69674 if true && x.Result != nil { 69675 x.Result = nil 69676 } 69677 } else { 69678 if x.Result == nil { 69679 x.Result = new(PlanResult) 69680 } 69681 69682 x.Result.CodecDecodeSelf(d) 69683 } 69684 yyj6++ 69685 if yyhl6 { 69686 yyb6 = yyj6 > l 69687 } else { 69688 yyb6 = r.CheckBreak() 69689 } 69690 if yyb6 { 69691 r.ReadArrayEnd() 69692 return 69693 } 69694 r.ReadArrayElem() 69695 if r.TryDecodeAsNil() { 69696 x.WriteMeta.Index = 0 69697 } else { 69698 x.Index = (uint64)(r.DecodeUint64()) 69699 } 69700 for { 69701 yyj6++ 69702 if yyhl6 { 69703 yyb6 = yyj6 > l 69704 } else { 69705 yyb6 = r.CheckBreak() 69706 } 69707 if yyb6 { 69708 break 69709 } 69710 r.ReadArrayElem() 69711 z.DecStructFieldNotFound(yyj6-1, "") 69712 } 69713 r.ReadArrayEnd() 69714 } 69715 69716 func (x *AllocListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 69717 var h codecSelfer100 69718 z, r := codec1978.GenHelperEncoder(e) 69719 _, _, _ = h, z, r 69720 if x == nil { 69721 r.EncodeNil() 69722 } else { 69723 if false { 69724 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69725 z.EncExtension(x, yyxt1) 69726 } else { 69727 yysep2 := !z.EncBinary() 69728 yy2arr2 := z.EncBasicHandle().StructToArray 69729 _, _ = yysep2, yy2arr2 69730 const yyr2 bool = false // struct tag has 'toArray' 69731 if yyr2 || yy2arr2 { 69732 r.WriteArrayStart(4) 69733 } else { 69734 r.WriteMapStart(4) 69735 } 69736 if yyr2 || yy2arr2 { 69737 r.WriteArrayElem() 69738 if x.Allocations == nil { 69739 r.EncodeNil() 69740 } else { 69741 if false { 69742 } else { 69743 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 69744 } 69745 } 69746 } else { 69747 r.WriteMapElemKey() 69748 if z.IsJSONHandle() { 69749 z.WriteStr("\"Allocations\"") 69750 } else { 69751 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 69752 } 69753 r.WriteMapElemValue() 69754 if x.Allocations == nil { 69755 r.EncodeNil() 69756 } else { 69757 if false { 69758 } else { 69759 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 69760 } 69761 } 69762 } 69763 if yyr2 || yy2arr2 { 69764 r.WriteArrayElem() 69765 if false { 69766 } else { 69767 r.EncodeUint(uint64(x.Index)) 69768 } 69769 } else { 69770 r.WriteMapElemKey() 69771 if z.IsJSONHandle() { 69772 z.WriteStr("\"Index\"") 69773 } else { 69774 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 69775 } 69776 r.WriteMapElemValue() 69777 if false { 69778 } else { 69779 r.EncodeUint(uint64(x.Index)) 69780 } 69781 } 69782 if yyr2 || yy2arr2 { 69783 r.WriteArrayElem() 69784 if false { 69785 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 69786 z.EncExtension(x.LastContact, yyxt10) 69787 } else { 69788 r.EncodeInt(int64(x.LastContact)) 69789 } 69790 } else { 69791 r.WriteMapElemKey() 69792 if z.IsJSONHandle() { 69793 z.WriteStr("\"LastContact\"") 69794 } else { 69795 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 69796 } 69797 r.WriteMapElemValue() 69798 if false { 69799 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 69800 z.EncExtension(x.LastContact, yyxt11) 69801 } else { 69802 r.EncodeInt(int64(x.LastContact)) 69803 } 69804 } 69805 if yyr2 || yy2arr2 { 69806 r.WriteArrayElem() 69807 if false { 69808 } else { 69809 r.EncodeBool(bool(x.KnownLeader)) 69810 } 69811 } else { 69812 r.WriteMapElemKey() 69813 if z.IsJSONHandle() { 69814 z.WriteStr("\"KnownLeader\"") 69815 } else { 69816 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 69817 } 69818 r.WriteMapElemValue() 69819 if false { 69820 } else { 69821 r.EncodeBool(bool(x.KnownLeader)) 69822 } 69823 } 69824 if yyr2 || yy2arr2 { 69825 r.WriteArrayEnd() 69826 } else { 69827 r.WriteMapEnd() 69828 } 69829 } 69830 } 69831 } 69832 69833 func (x *AllocListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 69834 var h codecSelfer100 69835 z, r := codec1978.GenHelperDecoder(d) 69836 _, _, _ = h, z, r 69837 if false { 69838 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 69839 z.DecExtension(x, yyxt1) 69840 } else { 69841 yyct2 := r.ContainerType() 69842 if yyct2 == codecSelferValueTypeMap100 { 69843 yyl2 := r.ReadMapStart() 69844 if yyl2 == 0 { 69845 r.ReadMapEnd() 69846 } else { 69847 x.codecDecodeSelfFromMap(yyl2, d) 69848 } 69849 } else if yyct2 == codecSelferValueTypeArray100 { 69850 yyl2 := r.ReadArrayStart() 69851 if yyl2 == 0 { 69852 r.ReadArrayEnd() 69853 } else { 69854 x.codecDecodeSelfFromArray(yyl2, d) 69855 } 69856 } else { 69857 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 69858 } 69859 } 69860 } 69861 69862 func (x *AllocListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 69863 var h codecSelfer100 69864 z, r := codec1978.GenHelperDecoder(d) 69865 _, _, _ = h, z, r 69866 var yyhl3 bool = l >= 0 69867 for yyj3 := 0; ; yyj3++ { 69868 if yyhl3 { 69869 if yyj3 >= l { 69870 break 69871 } 69872 } else { 69873 if r.CheckBreak() { 69874 break 69875 } 69876 } 69877 r.ReadMapElemKey() 69878 yys3 := z.StringView(r.DecodeStringAsBytes()) 69879 r.ReadMapElemValue() 69880 switch yys3 { 69881 case "Allocations": 69882 if r.TryDecodeAsNil() { 69883 x.Allocations = nil 69884 } else { 69885 if false { 69886 } else { 69887 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 69888 } 69889 } 69890 case "Index": 69891 if r.TryDecodeAsNil() { 69892 x.QueryMeta.Index = 0 69893 } else { 69894 x.Index = (uint64)(r.DecodeUint64()) 69895 } 69896 case "LastContact": 69897 if r.TryDecodeAsNil() { 69898 x.QueryMeta.LastContact = 0 69899 } else { 69900 if false { 69901 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 69902 z.DecExtension(x.LastContact, yyxt8) 69903 } else { 69904 x.LastContact = (time.Duration)(r.DecodeInt64()) 69905 } 69906 } 69907 case "KnownLeader": 69908 if r.TryDecodeAsNil() { 69909 x.QueryMeta.KnownLeader = false 69910 } else { 69911 x.KnownLeader = (bool)(r.DecodeBool()) 69912 } 69913 default: 69914 z.DecStructFieldNotFound(-1, yys3) 69915 } // end switch yys3 69916 } // end for yyj3 69917 r.ReadMapEnd() 69918 } 69919 69920 func (x *AllocListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 69921 var h codecSelfer100 69922 z, r := codec1978.GenHelperDecoder(d) 69923 _, _, _ = h, z, r 69924 var yyj10 int 69925 var yyb10 bool 69926 var yyhl10 bool = l >= 0 69927 yyj10++ 69928 if yyhl10 { 69929 yyb10 = yyj10 > l 69930 } else { 69931 yyb10 = r.CheckBreak() 69932 } 69933 if yyb10 { 69934 r.ReadArrayEnd() 69935 return 69936 } 69937 r.ReadArrayElem() 69938 if r.TryDecodeAsNil() { 69939 x.Allocations = nil 69940 } else { 69941 if false { 69942 } else { 69943 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 69944 } 69945 } 69946 yyj10++ 69947 if yyhl10 { 69948 yyb10 = yyj10 > l 69949 } else { 69950 yyb10 = r.CheckBreak() 69951 } 69952 if yyb10 { 69953 r.ReadArrayEnd() 69954 return 69955 } 69956 r.ReadArrayElem() 69957 if r.TryDecodeAsNil() { 69958 x.QueryMeta.Index = 0 69959 } else { 69960 x.Index = (uint64)(r.DecodeUint64()) 69961 } 69962 yyj10++ 69963 if yyhl10 { 69964 yyb10 = yyj10 > l 69965 } else { 69966 yyb10 = r.CheckBreak() 69967 } 69968 if yyb10 { 69969 r.ReadArrayEnd() 69970 return 69971 } 69972 r.ReadArrayElem() 69973 if r.TryDecodeAsNil() { 69974 x.QueryMeta.LastContact = 0 69975 } else { 69976 if false { 69977 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 69978 z.DecExtension(x.LastContact, yyxt15) 69979 } else { 69980 x.LastContact = (time.Duration)(r.DecodeInt64()) 69981 } 69982 } 69983 yyj10++ 69984 if yyhl10 { 69985 yyb10 = yyj10 > l 69986 } else { 69987 yyb10 = r.CheckBreak() 69988 } 69989 if yyb10 { 69990 r.ReadArrayEnd() 69991 return 69992 } 69993 r.ReadArrayElem() 69994 if r.TryDecodeAsNil() { 69995 x.QueryMeta.KnownLeader = false 69996 } else { 69997 x.KnownLeader = (bool)(r.DecodeBool()) 69998 } 69999 for { 70000 yyj10++ 70001 if yyhl10 { 70002 yyb10 = yyj10 > l 70003 } else { 70004 yyb10 = r.CheckBreak() 70005 } 70006 if yyb10 { 70007 break 70008 } 70009 r.ReadArrayElem() 70010 z.DecStructFieldNotFound(yyj10-1, "") 70011 } 70012 r.ReadArrayEnd() 70013 } 70014 70015 func (x *DeploymentListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 70016 var h codecSelfer100 70017 z, r := codec1978.GenHelperEncoder(e) 70018 _, _, _ = h, z, r 70019 if x == nil { 70020 r.EncodeNil() 70021 } else { 70022 if false { 70023 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70024 z.EncExtension(x, yyxt1) 70025 } else { 70026 yysep2 := !z.EncBinary() 70027 yy2arr2 := z.EncBasicHandle().StructToArray 70028 _, _ = yysep2, yy2arr2 70029 const yyr2 bool = false // struct tag has 'toArray' 70030 if yyr2 || yy2arr2 { 70031 r.WriteArrayStart(4) 70032 } else { 70033 r.WriteMapStart(4) 70034 } 70035 if yyr2 || yy2arr2 { 70036 r.WriteArrayElem() 70037 if x.Deployments == nil { 70038 r.EncodeNil() 70039 } else { 70040 if false { 70041 } else { 70042 h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) 70043 } 70044 } 70045 } else { 70046 r.WriteMapElemKey() 70047 if z.IsJSONHandle() { 70048 z.WriteStr("\"Deployments\"") 70049 } else { 70050 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployments`) 70051 } 70052 r.WriteMapElemValue() 70053 if x.Deployments == nil { 70054 r.EncodeNil() 70055 } else { 70056 if false { 70057 } else { 70058 h.encSlicePtrtoDeployment(([]*Deployment)(x.Deployments), e) 70059 } 70060 } 70061 } 70062 if yyr2 || yy2arr2 { 70063 r.WriteArrayElem() 70064 if false { 70065 } else { 70066 r.EncodeUint(uint64(x.Index)) 70067 } 70068 } else { 70069 r.WriteMapElemKey() 70070 if z.IsJSONHandle() { 70071 z.WriteStr("\"Index\"") 70072 } else { 70073 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 70074 } 70075 r.WriteMapElemValue() 70076 if false { 70077 } else { 70078 r.EncodeUint(uint64(x.Index)) 70079 } 70080 } 70081 if yyr2 || yy2arr2 { 70082 r.WriteArrayElem() 70083 if false { 70084 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 70085 z.EncExtension(x.LastContact, yyxt10) 70086 } else { 70087 r.EncodeInt(int64(x.LastContact)) 70088 } 70089 } else { 70090 r.WriteMapElemKey() 70091 if z.IsJSONHandle() { 70092 z.WriteStr("\"LastContact\"") 70093 } else { 70094 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 70095 } 70096 r.WriteMapElemValue() 70097 if false { 70098 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 70099 z.EncExtension(x.LastContact, yyxt11) 70100 } else { 70101 r.EncodeInt(int64(x.LastContact)) 70102 } 70103 } 70104 if yyr2 || yy2arr2 { 70105 r.WriteArrayElem() 70106 if false { 70107 } else { 70108 r.EncodeBool(bool(x.KnownLeader)) 70109 } 70110 } else { 70111 r.WriteMapElemKey() 70112 if z.IsJSONHandle() { 70113 z.WriteStr("\"KnownLeader\"") 70114 } else { 70115 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 70116 } 70117 r.WriteMapElemValue() 70118 if false { 70119 } else { 70120 r.EncodeBool(bool(x.KnownLeader)) 70121 } 70122 } 70123 if yyr2 || yy2arr2 { 70124 r.WriteArrayEnd() 70125 } else { 70126 r.WriteMapEnd() 70127 } 70128 } 70129 } 70130 } 70131 70132 func (x *DeploymentListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 70133 var h codecSelfer100 70134 z, r := codec1978.GenHelperDecoder(d) 70135 _, _, _ = h, z, r 70136 if false { 70137 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70138 z.DecExtension(x, yyxt1) 70139 } else { 70140 yyct2 := r.ContainerType() 70141 if yyct2 == codecSelferValueTypeMap100 { 70142 yyl2 := r.ReadMapStart() 70143 if yyl2 == 0 { 70144 r.ReadMapEnd() 70145 } else { 70146 x.codecDecodeSelfFromMap(yyl2, d) 70147 } 70148 } else if yyct2 == codecSelferValueTypeArray100 { 70149 yyl2 := r.ReadArrayStart() 70150 if yyl2 == 0 { 70151 r.ReadArrayEnd() 70152 } else { 70153 x.codecDecodeSelfFromArray(yyl2, d) 70154 } 70155 } else { 70156 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70157 } 70158 } 70159 } 70160 70161 func (x *DeploymentListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70162 var h codecSelfer100 70163 z, r := codec1978.GenHelperDecoder(d) 70164 _, _, _ = h, z, r 70165 var yyhl3 bool = l >= 0 70166 for yyj3 := 0; ; yyj3++ { 70167 if yyhl3 { 70168 if yyj3 >= l { 70169 break 70170 } 70171 } else { 70172 if r.CheckBreak() { 70173 break 70174 } 70175 } 70176 r.ReadMapElemKey() 70177 yys3 := z.StringView(r.DecodeStringAsBytes()) 70178 r.ReadMapElemValue() 70179 switch yys3 { 70180 case "Deployments": 70181 if r.TryDecodeAsNil() { 70182 x.Deployments = nil 70183 } else { 70184 if false { 70185 } else { 70186 h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) 70187 } 70188 } 70189 case "Index": 70190 if r.TryDecodeAsNil() { 70191 x.QueryMeta.Index = 0 70192 } else { 70193 x.Index = (uint64)(r.DecodeUint64()) 70194 } 70195 case "LastContact": 70196 if r.TryDecodeAsNil() { 70197 x.QueryMeta.LastContact = 0 70198 } else { 70199 if false { 70200 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 70201 z.DecExtension(x.LastContact, yyxt8) 70202 } else { 70203 x.LastContact = (time.Duration)(r.DecodeInt64()) 70204 } 70205 } 70206 case "KnownLeader": 70207 if r.TryDecodeAsNil() { 70208 x.QueryMeta.KnownLeader = false 70209 } else { 70210 x.KnownLeader = (bool)(r.DecodeBool()) 70211 } 70212 default: 70213 z.DecStructFieldNotFound(-1, yys3) 70214 } // end switch yys3 70215 } // end for yyj3 70216 r.ReadMapEnd() 70217 } 70218 70219 func (x *DeploymentListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70220 var h codecSelfer100 70221 z, r := codec1978.GenHelperDecoder(d) 70222 _, _, _ = h, z, r 70223 var yyj10 int 70224 var yyb10 bool 70225 var yyhl10 bool = l >= 0 70226 yyj10++ 70227 if yyhl10 { 70228 yyb10 = yyj10 > l 70229 } else { 70230 yyb10 = r.CheckBreak() 70231 } 70232 if yyb10 { 70233 r.ReadArrayEnd() 70234 return 70235 } 70236 r.ReadArrayElem() 70237 if r.TryDecodeAsNil() { 70238 x.Deployments = nil 70239 } else { 70240 if false { 70241 } else { 70242 h.decSlicePtrtoDeployment((*[]*Deployment)(&x.Deployments), d) 70243 } 70244 } 70245 yyj10++ 70246 if yyhl10 { 70247 yyb10 = yyj10 > l 70248 } else { 70249 yyb10 = r.CheckBreak() 70250 } 70251 if yyb10 { 70252 r.ReadArrayEnd() 70253 return 70254 } 70255 r.ReadArrayElem() 70256 if r.TryDecodeAsNil() { 70257 x.QueryMeta.Index = 0 70258 } else { 70259 x.Index = (uint64)(r.DecodeUint64()) 70260 } 70261 yyj10++ 70262 if yyhl10 { 70263 yyb10 = yyj10 > l 70264 } else { 70265 yyb10 = r.CheckBreak() 70266 } 70267 if yyb10 { 70268 r.ReadArrayEnd() 70269 return 70270 } 70271 r.ReadArrayElem() 70272 if r.TryDecodeAsNil() { 70273 x.QueryMeta.LastContact = 0 70274 } else { 70275 if false { 70276 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 70277 z.DecExtension(x.LastContact, yyxt15) 70278 } else { 70279 x.LastContact = (time.Duration)(r.DecodeInt64()) 70280 } 70281 } 70282 yyj10++ 70283 if yyhl10 { 70284 yyb10 = yyj10 > l 70285 } else { 70286 yyb10 = r.CheckBreak() 70287 } 70288 if yyb10 { 70289 r.ReadArrayEnd() 70290 return 70291 } 70292 r.ReadArrayElem() 70293 if r.TryDecodeAsNil() { 70294 x.QueryMeta.KnownLeader = false 70295 } else { 70296 x.KnownLeader = (bool)(r.DecodeBool()) 70297 } 70298 for { 70299 yyj10++ 70300 if yyhl10 { 70301 yyb10 = yyj10 > l 70302 } else { 70303 yyb10 = r.CheckBreak() 70304 } 70305 if yyb10 { 70306 break 70307 } 70308 r.ReadArrayElem() 70309 z.DecStructFieldNotFound(yyj10-1, "") 70310 } 70311 r.ReadArrayEnd() 70312 } 70313 70314 func (x *EvalListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 70315 var h codecSelfer100 70316 z, r := codec1978.GenHelperEncoder(e) 70317 _, _, _ = h, z, r 70318 if x == nil { 70319 r.EncodeNil() 70320 } else { 70321 if false { 70322 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70323 z.EncExtension(x, yyxt1) 70324 } else { 70325 yysep2 := !z.EncBinary() 70326 yy2arr2 := z.EncBasicHandle().StructToArray 70327 _, _ = yysep2, yy2arr2 70328 const yyr2 bool = false // struct tag has 'toArray' 70329 if yyr2 || yy2arr2 { 70330 r.WriteArrayStart(4) 70331 } else { 70332 r.WriteMapStart(4) 70333 } 70334 if yyr2 || yy2arr2 { 70335 r.WriteArrayElem() 70336 if x.Evaluations == nil { 70337 r.EncodeNil() 70338 } else { 70339 if false { 70340 } else { 70341 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 70342 } 70343 } 70344 } else { 70345 r.WriteMapElemKey() 70346 if z.IsJSONHandle() { 70347 z.WriteStr("\"Evaluations\"") 70348 } else { 70349 r.EncodeStringEnc(codecSelferCcUTF8100, `Evaluations`) 70350 } 70351 r.WriteMapElemValue() 70352 if x.Evaluations == nil { 70353 r.EncodeNil() 70354 } else { 70355 if false { 70356 } else { 70357 h.encSlicePtrtoEvaluation(([]*Evaluation)(x.Evaluations), e) 70358 } 70359 } 70360 } 70361 if yyr2 || yy2arr2 { 70362 r.WriteArrayElem() 70363 if false { 70364 } else { 70365 r.EncodeUint(uint64(x.Index)) 70366 } 70367 } else { 70368 r.WriteMapElemKey() 70369 if z.IsJSONHandle() { 70370 z.WriteStr("\"Index\"") 70371 } else { 70372 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 70373 } 70374 r.WriteMapElemValue() 70375 if false { 70376 } else { 70377 r.EncodeUint(uint64(x.Index)) 70378 } 70379 } 70380 if yyr2 || yy2arr2 { 70381 r.WriteArrayElem() 70382 if false { 70383 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 70384 z.EncExtension(x.LastContact, yyxt10) 70385 } else { 70386 r.EncodeInt(int64(x.LastContact)) 70387 } 70388 } else { 70389 r.WriteMapElemKey() 70390 if z.IsJSONHandle() { 70391 z.WriteStr("\"LastContact\"") 70392 } else { 70393 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 70394 } 70395 r.WriteMapElemValue() 70396 if false { 70397 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 70398 z.EncExtension(x.LastContact, yyxt11) 70399 } else { 70400 r.EncodeInt(int64(x.LastContact)) 70401 } 70402 } 70403 if yyr2 || yy2arr2 { 70404 r.WriteArrayElem() 70405 if false { 70406 } else { 70407 r.EncodeBool(bool(x.KnownLeader)) 70408 } 70409 } else { 70410 r.WriteMapElemKey() 70411 if z.IsJSONHandle() { 70412 z.WriteStr("\"KnownLeader\"") 70413 } else { 70414 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 70415 } 70416 r.WriteMapElemValue() 70417 if false { 70418 } else { 70419 r.EncodeBool(bool(x.KnownLeader)) 70420 } 70421 } 70422 if yyr2 || yy2arr2 { 70423 r.WriteArrayEnd() 70424 } else { 70425 r.WriteMapEnd() 70426 } 70427 } 70428 } 70429 } 70430 70431 func (x *EvalListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 70432 var h codecSelfer100 70433 z, r := codec1978.GenHelperDecoder(d) 70434 _, _, _ = h, z, r 70435 if false { 70436 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70437 z.DecExtension(x, yyxt1) 70438 } else { 70439 yyct2 := r.ContainerType() 70440 if yyct2 == codecSelferValueTypeMap100 { 70441 yyl2 := r.ReadMapStart() 70442 if yyl2 == 0 { 70443 r.ReadMapEnd() 70444 } else { 70445 x.codecDecodeSelfFromMap(yyl2, d) 70446 } 70447 } else if yyct2 == codecSelferValueTypeArray100 { 70448 yyl2 := r.ReadArrayStart() 70449 if yyl2 == 0 { 70450 r.ReadArrayEnd() 70451 } else { 70452 x.codecDecodeSelfFromArray(yyl2, d) 70453 } 70454 } else { 70455 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70456 } 70457 } 70458 } 70459 70460 func (x *EvalListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70461 var h codecSelfer100 70462 z, r := codec1978.GenHelperDecoder(d) 70463 _, _, _ = h, z, r 70464 var yyhl3 bool = l >= 0 70465 for yyj3 := 0; ; yyj3++ { 70466 if yyhl3 { 70467 if yyj3 >= l { 70468 break 70469 } 70470 } else { 70471 if r.CheckBreak() { 70472 break 70473 } 70474 } 70475 r.ReadMapElemKey() 70476 yys3 := z.StringView(r.DecodeStringAsBytes()) 70477 r.ReadMapElemValue() 70478 switch yys3 { 70479 case "Evaluations": 70480 if r.TryDecodeAsNil() { 70481 x.Evaluations = nil 70482 } else { 70483 if false { 70484 } else { 70485 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 70486 } 70487 } 70488 case "Index": 70489 if r.TryDecodeAsNil() { 70490 x.QueryMeta.Index = 0 70491 } else { 70492 x.Index = (uint64)(r.DecodeUint64()) 70493 } 70494 case "LastContact": 70495 if r.TryDecodeAsNil() { 70496 x.QueryMeta.LastContact = 0 70497 } else { 70498 if false { 70499 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 70500 z.DecExtension(x.LastContact, yyxt8) 70501 } else { 70502 x.LastContact = (time.Duration)(r.DecodeInt64()) 70503 } 70504 } 70505 case "KnownLeader": 70506 if r.TryDecodeAsNil() { 70507 x.QueryMeta.KnownLeader = false 70508 } else { 70509 x.KnownLeader = (bool)(r.DecodeBool()) 70510 } 70511 default: 70512 z.DecStructFieldNotFound(-1, yys3) 70513 } // end switch yys3 70514 } // end for yyj3 70515 r.ReadMapEnd() 70516 } 70517 70518 func (x *EvalListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70519 var h codecSelfer100 70520 z, r := codec1978.GenHelperDecoder(d) 70521 _, _, _ = h, z, r 70522 var yyj10 int 70523 var yyb10 bool 70524 var yyhl10 bool = l >= 0 70525 yyj10++ 70526 if yyhl10 { 70527 yyb10 = yyj10 > l 70528 } else { 70529 yyb10 = r.CheckBreak() 70530 } 70531 if yyb10 { 70532 r.ReadArrayEnd() 70533 return 70534 } 70535 r.ReadArrayElem() 70536 if r.TryDecodeAsNil() { 70537 x.Evaluations = nil 70538 } else { 70539 if false { 70540 } else { 70541 h.decSlicePtrtoEvaluation((*[]*Evaluation)(&x.Evaluations), d) 70542 } 70543 } 70544 yyj10++ 70545 if yyhl10 { 70546 yyb10 = yyj10 > l 70547 } else { 70548 yyb10 = r.CheckBreak() 70549 } 70550 if yyb10 { 70551 r.ReadArrayEnd() 70552 return 70553 } 70554 r.ReadArrayElem() 70555 if r.TryDecodeAsNil() { 70556 x.QueryMeta.Index = 0 70557 } else { 70558 x.Index = (uint64)(r.DecodeUint64()) 70559 } 70560 yyj10++ 70561 if yyhl10 { 70562 yyb10 = yyj10 > l 70563 } else { 70564 yyb10 = r.CheckBreak() 70565 } 70566 if yyb10 { 70567 r.ReadArrayEnd() 70568 return 70569 } 70570 r.ReadArrayElem() 70571 if r.TryDecodeAsNil() { 70572 x.QueryMeta.LastContact = 0 70573 } else { 70574 if false { 70575 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 70576 z.DecExtension(x.LastContact, yyxt15) 70577 } else { 70578 x.LastContact = (time.Duration)(r.DecodeInt64()) 70579 } 70580 } 70581 yyj10++ 70582 if yyhl10 { 70583 yyb10 = yyj10 > l 70584 } else { 70585 yyb10 = r.CheckBreak() 70586 } 70587 if yyb10 { 70588 r.ReadArrayEnd() 70589 return 70590 } 70591 r.ReadArrayElem() 70592 if r.TryDecodeAsNil() { 70593 x.QueryMeta.KnownLeader = false 70594 } else { 70595 x.KnownLeader = (bool)(r.DecodeBool()) 70596 } 70597 for { 70598 yyj10++ 70599 if yyhl10 { 70600 yyb10 = yyj10 > l 70601 } else { 70602 yyb10 = r.CheckBreak() 70603 } 70604 if yyb10 { 70605 break 70606 } 70607 r.ReadArrayElem() 70608 z.DecStructFieldNotFound(yyj10-1, "") 70609 } 70610 r.ReadArrayEnd() 70611 } 70612 70613 func (x *EvalAllocationsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 70614 var h codecSelfer100 70615 z, r := codec1978.GenHelperEncoder(e) 70616 _, _, _ = h, z, r 70617 if x == nil { 70618 r.EncodeNil() 70619 } else { 70620 if false { 70621 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70622 z.EncExtension(x, yyxt1) 70623 } else { 70624 yysep2 := !z.EncBinary() 70625 yy2arr2 := z.EncBasicHandle().StructToArray 70626 _, _ = yysep2, yy2arr2 70627 const yyr2 bool = false // struct tag has 'toArray' 70628 if yyr2 || yy2arr2 { 70629 r.WriteArrayStart(4) 70630 } else { 70631 r.WriteMapStart(4) 70632 } 70633 if yyr2 || yy2arr2 { 70634 r.WriteArrayElem() 70635 if x.Allocations == nil { 70636 r.EncodeNil() 70637 } else { 70638 if false { 70639 } else { 70640 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 70641 } 70642 } 70643 } else { 70644 r.WriteMapElemKey() 70645 if z.IsJSONHandle() { 70646 z.WriteStr("\"Allocations\"") 70647 } else { 70648 r.EncodeStringEnc(codecSelferCcUTF8100, `Allocations`) 70649 } 70650 r.WriteMapElemValue() 70651 if x.Allocations == nil { 70652 r.EncodeNil() 70653 } else { 70654 if false { 70655 } else { 70656 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.Allocations), e) 70657 } 70658 } 70659 } 70660 if yyr2 || yy2arr2 { 70661 r.WriteArrayElem() 70662 if false { 70663 } else { 70664 r.EncodeUint(uint64(x.Index)) 70665 } 70666 } else { 70667 r.WriteMapElemKey() 70668 if z.IsJSONHandle() { 70669 z.WriteStr("\"Index\"") 70670 } else { 70671 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 70672 } 70673 r.WriteMapElemValue() 70674 if false { 70675 } else { 70676 r.EncodeUint(uint64(x.Index)) 70677 } 70678 } 70679 if yyr2 || yy2arr2 { 70680 r.WriteArrayElem() 70681 if false { 70682 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 70683 z.EncExtension(x.LastContact, yyxt10) 70684 } else { 70685 r.EncodeInt(int64(x.LastContact)) 70686 } 70687 } else { 70688 r.WriteMapElemKey() 70689 if z.IsJSONHandle() { 70690 z.WriteStr("\"LastContact\"") 70691 } else { 70692 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 70693 } 70694 r.WriteMapElemValue() 70695 if false { 70696 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 70697 z.EncExtension(x.LastContact, yyxt11) 70698 } else { 70699 r.EncodeInt(int64(x.LastContact)) 70700 } 70701 } 70702 if yyr2 || yy2arr2 { 70703 r.WriteArrayElem() 70704 if false { 70705 } else { 70706 r.EncodeBool(bool(x.KnownLeader)) 70707 } 70708 } else { 70709 r.WriteMapElemKey() 70710 if z.IsJSONHandle() { 70711 z.WriteStr("\"KnownLeader\"") 70712 } else { 70713 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 70714 } 70715 r.WriteMapElemValue() 70716 if false { 70717 } else { 70718 r.EncodeBool(bool(x.KnownLeader)) 70719 } 70720 } 70721 if yyr2 || yy2arr2 { 70722 r.WriteArrayEnd() 70723 } else { 70724 r.WriteMapEnd() 70725 } 70726 } 70727 } 70728 } 70729 70730 func (x *EvalAllocationsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 70731 var h codecSelfer100 70732 z, r := codec1978.GenHelperDecoder(d) 70733 _, _, _ = h, z, r 70734 if false { 70735 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70736 z.DecExtension(x, yyxt1) 70737 } else { 70738 yyct2 := r.ContainerType() 70739 if yyct2 == codecSelferValueTypeMap100 { 70740 yyl2 := r.ReadMapStart() 70741 if yyl2 == 0 { 70742 r.ReadMapEnd() 70743 } else { 70744 x.codecDecodeSelfFromMap(yyl2, d) 70745 } 70746 } else if yyct2 == codecSelferValueTypeArray100 { 70747 yyl2 := r.ReadArrayStart() 70748 if yyl2 == 0 { 70749 r.ReadArrayEnd() 70750 } else { 70751 x.codecDecodeSelfFromArray(yyl2, d) 70752 } 70753 } else { 70754 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 70755 } 70756 } 70757 } 70758 70759 func (x *EvalAllocationsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 70760 var h codecSelfer100 70761 z, r := codec1978.GenHelperDecoder(d) 70762 _, _, _ = h, z, r 70763 var yyhl3 bool = l >= 0 70764 for yyj3 := 0; ; yyj3++ { 70765 if yyhl3 { 70766 if yyj3 >= l { 70767 break 70768 } 70769 } else { 70770 if r.CheckBreak() { 70771 break 70772 } 70773 } 70774 r.ReadMapElemKey() 70775 yys3 := z.StringView(r.DecodeStringAsBytes()) 70776 r.ReadMapElemValue() 70777 switch yys3 { 70778 case "Allocations": 70779 if r.TryDecodeAsNil() { 70780 x.Allocations = nil 70781 } else { 70782 if false { 70783 } else { 70784 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 70785 } 70786 } 70787 case "Index": 70788 if r.TryDecodeAsNil() { 70789 x.QueryMeta.Index = 0 70790 } else { 70791 x.Index = (uint64)(r.DecodeUint64()) 70792 } 70793 case "LastContact": 70794 if r.TryDecodeAsNil() { 70795 x.QueryMeta.LastContact = 0 70796 } else { 70797 if false { 70798 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 70799 z.DecExtension(x.LastContact, yyxt8) 70800 } else { 70801 x.LastContact = (time.Duration)(r.DecodeInt64()) 70802 } 70803 } 70804 case "KnownLeader": 70805 if r.TryDecodeAsNil() { 70806 x.QueryMeta.KnownLeader = false 70807 } else { 70808 x.KnownLeader = (bool)(r.DecodeBool()) 70809 } 70810 default: 70811 z.DecStructFieldNotFound(-1, yys3) 70812 } // end switch yys3 70813 } // end for yyj3 70814 r.ReadMapEnd() 70815 } 70816 70817 func (x *EvalAllocationsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 70818 var h codecSelfer100 70819 z, r := codec1978.GenHelperDecoder(d) 70820 _, _, _ = h, z, r 70821 var yyj10 int 70822 var yyb10 bool 70823 var yyhl10 bool = l >= 0 70824 yyj10++ 70825 if yyhl10 { 70826 yyb10 = yyj10 > l 70827 } else { 70828 yyb10 = r.CheckBreak() 70829 } 70830 if yyb10 { 70831 r.ReadArrayEnd() 70832 return 70833 } 70834 r.ReadArrayElem() 70835 if r.TryDecodeAsNil() { 70836 x.Allocations = nil 70837 } else { 70838 if false { 70839 } else { 70840 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.Allocations), d) 70841 } 70842 } 70843 yyj10++ 70844 if yyhl10 { 70845 yyb10 = yyj10 > l 70846 } else { 70847 yyb10 = r.CheckBreak() 70848 } 70849 if yyb10 { 70850 r.ReadArrayEnd() 70851 return 70852 } 70853 r.ReadArrayElem() 70854 if r.TryDecodeAsNil() { 70855 x.QueryMeta.Index = 0 70856 } else { 70857 x.Index = (uint64)(r.DecodeUint64()) 70858 } 70859 yyj10++ 70860 if yyhl10 { 70861 yyb10 = yyj10 > l 70862 } else { 70863 yyb10 = r.CheckBreak() 70864 } 70865 if yyb10 { 70866 r.ReadArrayEnd() 70867 return 70868 } 70869 r.ReadArrayElem() 70870 if r.TryDecodeAsNil() { 70871 x.QueryMeta.LastContact = 0 70872 } else { 70873 if false { 70874 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 70875 z.DecExtension(x.LastContact, yyxt15) 70876 } else { 70877 x.LastContact = (time.Duration)(r.DecodeInt64()) 70878 } 70879 } 70880 yyj10++ 70881 if yyhl10 { 70882 yyb10 = yyj10 > l 70883 } else { 70884 yyb10 = r.CheckBreak() 70885 } 70886 if yyb10 { 70887 r.ReadArrayEnd() 70888 return 70889 } 70890 r.ReadArrayElem() 70891 if r.TryDecodeAsNil() { 70892 x.QueryMeta.KnownLeader = false 70893 } else { 70894 x.KnownLeader = (bool)(r.DecodeBool()) 70895 } 70896 for { 70897 yyj10++ 70898 if yyhl10 { 70899 yyb10 = yyj10 > l 70900 } else { 70901 yyb10 = r.CheckBreak() 70902 } 70903 if yyb10 { 70904 break 70905 } 70906 r.ReadArrayElem() 70907 z.DecStructFieldNotFound(yyj10-1, "") 70908 } 70909 r.ReadArrayEnd() 70910 } 70911 70912 func (x *PeriodicForceResponse) CodecEncodeSelf(e *codec1978.Encoder) { 70913 var h codecSelfer100 70914 z, r := codec1978.GenHelperEncoder(e) 70915 _, _, _ = h, z, r 70916 if x == nil { 70917 r.EncodeNil() 70918 } else { 70919 if false { 70920 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 70921 z.EncExtension(x, yyxt1) 70922 } else { 70923 yysep2 := !z.EncBinary() 70924 yy2arr2 := z.EncBasicHandle().StructToArray 70925 _, _ = yysep2, yy2arr2 70926 const yyr2 bool = false // struct tag has 'toArray' 70927 if yyr2 || yy2arr2 { 70928 r.WriteArrayStart(3) 70929 } else { 70930 r.WriteMapStart(3) 70931 } 70932 if yyr2 || yy2arr2 { 70933 r.WriteArrayElem() 70934 if false { 70935 } else { 70936 if z.EncBasicHandle().StringToRaw { 70937 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 70938 } else { 70939 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 70940 } 70941 } 70942 } else { 70943 r.WriteMapElemKey() 70944 if z.IsJSONHandle() { 70945 z.WriteStr("\"EvalID\"") 70946 } else { 70947 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 70948 } 70949 r.WriteMapElemValue() 70950 if false { 70951 } else { 70952 if z.EncBasicHandle().StringToRaw { 70953 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 70954 } else { 70955 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 70956 } 70957 } 70958 } 70959 if yyr2 || yy2arr2 { 70960 r.WriteArrayElem() 70961 if false { 70962 } else { 70963 r.EncodeUint(uint64(x.EvalCreateIndex)) 70964 } 70965 } else { 70966 r.WriteMapElemKey() 70967 if z.IsJSONHandle() { 70968 z.WriteStr("\"EvalCreateIndex\"") 70969 } else { 70970 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 70971 } 70972 r.WriteMapElemValue() 70973 if false { 70974 } else { 70975 r.EncodeUint(uint64(x.EvalCreateIndex)) 70976 } 70977 } 70978 if yyr2 || yy2arr2 { 70979 r.WriteArrayElem() 70980 if false { 70981 } else { 70982 r.EncodeUint(uint64(x.Index)) 70983 } 70984 } else { 70985 r.WriteMapElemKey() 70986 if z.IsJSONHandle() { 70987 z.WriteStr("\"Index\"") 70988 } else { 70989 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 70990 } 70991 r.WriteMapElemValue() 70992 if false { 70993 } else { 70994 r.EncodeUint(uint64(x.Index)) 70995 } 70996 } 70997 if yyr2 || yy2arr2 { 70998 r.WriteArrayEnd() 70999 } else { 71000 r.WriteMapEnd() 71001 } 71002 } 71003 } 71004 } 71005 71006 func (x *PeriodicForceResponse) CodecDecodeSelf(d *codec1978.Decoder) { 71007 var h codecSelfer100 71008 z, r := codec1978.GenHelperDecoder(d) 71009 _, _, _ = h, z, r 71010 if false { 71011 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71012 z.DecExtension(x, yyxt1) 71013 } else { 71014 yyct2 := r.ContainerType() 71015 if yyct2 == codecSelferValueTypeMap100 { 71016 yyl2 := r.ReadMapStart() 71017 if yyl2 == 0 { 71018 r.ReadMapEnd() 71019 } else { 71020 x.codecDecodeSelfFromMap(yyl2, d) 71021 } 71022 } else if yyct2 == codecSelferValueTypeArray100 { 71023 yyl2 := r.ReadArrayStart() 71024 if yyl2 == 0 { 71025 r.ReadArrayEnd() 71026 } else { 71027 x.codecDecodeSelfFromArray(yyl2, d) 71028 } 71029 } else { 71030 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 71031 } 71032 } 71033 } 71034 71035 func (x *PeriodicForceResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 71036 var h codecSelfer100 71037 z, r := codec1978.GenHelperDecoder(d) 71038 _, _, _ = h, z, r 71039 var yyhl3 bool = l >= 0 71040 for yyj3 := 0; ; yyj3++ { 71041 if yyhl3 { 71042 if yyj3 >= l { 71043 break 71044 } 71045 } else { 71046 if r.CheckBreak() { 71047 break 71048 } 71049 } 71050 r.ReadMapElemKey() 71051 yys3 := z.StringView(r.DecodeStringAsBytes()) 71052 r.ReadMapElemValue() 71053 switch yys3 { 71054 case "EvalID": 71055 if r.TryDecodeAsNil() { 71056 x.EvalID = "" 71057 } else { 71058 x.EvalID = (string)(r.DecodeString()) 71059 } 71060 case "EvalCreateIndex": 71061 if r.TryDecodeAsNil() { 71062 x.EvalCreateIndex = 0 71063 } else { 71064 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 71065 } 71066 case "Index": 71067 if r.TryDecodeAsNil() { 71068 x.WriteMeta.Index = 0 71069 } else { 71070 x.Index = (uint64)(r.DecodeUint64()) 71071 } 71072 default: 71073 z.DecStructFieldNotFound(-1, yys3) 71074 } // end switch yys3 71075 } // end for yyj3 71076 r.ReadMapEnd() 71077 } 71078 71079 func (x *PeriodicForceResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71080 var h codecSelfer100 71081 z, r := codec1978.GenHelperDecoder(d) 71082 _, _, _ = h, z, r 71083 var yyj7 int 71084 var yyb7 bool 71085 var yyhl7 bool = l >= 0 71086 yyj7++ 71087 if yyhl7 { 71088 yyb7 = yyj7 > l 71089 } else { 71090 yyb7 = r.CheckBreak() 71091 } 71092 if yyb7 { 71093 r.ReadArrayEnd() 71094 return 71095 } 71096 r.ReadArrayElem() 71097 if r.TryDecodeAsNil() { 71098 x.EvalID = "" 71099 } else { 71100 x.EvalID = (string)(r.DecodeString()) 71101 } 71102 yyj7++ 71103 if yyhl7 { 71104 yyb7 = yyj7 > l 71105 } else { 71106 yyb7 = r.CheckBreak() 71107 } 71108 if yyb7 { 71109 r.ReadArrayEnd() 71110 return 71111 } 71112 r.ReadArrayElem() 71113 if r.TryDecodeAsNil() { 71114 x.EvalCreateIndex = 0 71115 } else { 71116 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 71117 } 71118 yyj7++ 71119 if yyhl7 { 71120 yyb7 = yyj7 > l 71121 } else { 71122 yyb7 = r.CheckBreak() 71123 } 71124 if yyb7 { 71125 r.ReadArrayEnd() 71126 return 71127 } 71128 r.ReadArrayElem() 71129 if r.TryDecodeAsNil() { 71130 x.WriteMeta.Index = 0 71131 } else { 71132 x.Index = (uint64)(r.DecodeUint64()) 71133 } 71134 for { 71135 yyj7++ 71136 if yyhl7 { 71137 yyb7 = yyj7 > l 71138 } else { 71139 yyb7 = r.CheckBreak() 71140 } 71141 if yyb7 { 71142 break 71143 } 71144 r.ReadArrayElem() 71145 z.DecStructFieldNotFound(yyj7-1, "") 71146 } 71147 r.ReadArrayEnd() 71148 } 71149 71150 func (x *DeploymentUpdateResponse) CodecEncodeSelf(e *codec1978.Encoder) { 71151 var h codecSelfer100 71152 z, r := codec1978.GenHelperEncoder(e) 71153 _, _, _ = h, z, r 71154 if x == nil { 71155 r.EncodeNil() 71156 } else { 71157 if false { 71158 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71159 z.EncExtension(x, yyxt1) 71160 } else { 71161 yysep2 := !z.EncBinary() 71162 yy2arr2 := z.EncBasicHandle().StructToArray 71163 _, _ = yysep2, yy2arr2 71164 const yyr2 bool = false // struct tag has 'toArray' 71165 if yyr2 || yy2arr2 { 71166 r.WriteArrayStart(5) 71167 } else { 71168 r.WriteMapStart(5) 71169 } 71170 if yyr2 || yy2arr2 { 71171 r.WriteArrayElem() 71172 if false { 71173 } else { 71174 if z.EncBasicHandle().StringToRaw { 71175 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 71176 } else { 71177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 71178 } 71179 } 71180 } else { 71181 r.WriteMapElemKey() 71182 if z.IsJSONHandle() { 71183 z.WriteStr("\"EvalID\"") 71184 } else { 71185 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 71186 } 71187 r.WriteMapElemValue() 71188 if false { 71189 } else { 71190 if z.EncBasicHandle().StringToRaw { 71191 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 71192 } else { 71193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 71194 } 71195 } 71196 } 71197 if yyr2 || yy2arr2 { 71198 r.WriteArrayElem() 71199 if false { 71200 } else { 71201 r.EncodeUint(uint64(x.EvalCreateIndex)) 71202 } 71203 } else { 71204 r.WriteMapElemKey() 71205 if z.IsJSONHandle() { 71206 z.WriteStr("\"EvalCreateIndex\"") 71207 } else { 71208 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalCreateIndex`) 71209 } 71210 r.WriteMapElemValue() 71211 if false { 71212 } else { 71213 r.EncodeUint(uint64(x.EvalCreateIndex)) 71214 } 71215 } 71216 if yyr2 || yy2arr2 { 71217 r.WriteArrayElem() 71218 if false { 71219 } else { 71220 r.EncodeUint(uint64(x.DeploymentModifyIndex)) 71221 } 71222 } else { 71223 r.WriteMapElemKey() 71224 if z.IsJSONHandle() { 71225 z.WriteStr("\"DeploymentModifyIndex\"") 71226 } else { 71227 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentModifyIndex`) 71228 } 71229 r.WriteMapElemValue() 71230 if false { 71231 } else { 71232 r.EncodeUint(uint64(x.DeploymentModifyIndex)) 71233 } 71234 } 71235 var yyn12 bool 71236 if x.RevertedJobVersion == nil { 71237 yyn12 = true 71238 goto LABEL12 71239 } 71240 LABEL12: 71241 if yyr2 || yy2arr2 { 71242 if yyn12 { 71243 r.WriteArrayElem() 71244 r.EncodeNil() 71245 } else { 71246 r.WriteArrayElem() 71247 if x.RevertedJobVersion == nil { 71248 r.EncodeNil() 71249 } else { 71250 yy13 := *x.RevertedJobVersion 71251 if false { 71252 } else { 71253 r.EncodeUint(uint64(yy13)) 71254 } 71255 } 71256 } 71257 } else { 71258 r.WriteMapElemKey() 71259 if z.IsJSONHandle() { 71260 z.WriteStr("\"RevertedJobVersion\"") 71261 } else { 71262 r.EncodeStringEnc(codecSelferCcUTF8100, `RevertedJobVersion`) 71263 } 71264 r.WriteMapElemValue() 71265 if yyn12 { 71266 r.EncodeNil() 71267 } else { 71268 if x.RevertedJobVersion == nil { 71269 r.EncodeNil() 71270 } else { 71271 yy15 := *x.RevertedJobVersion 71272 if false { 71273 } else { 71274 r.EncodeUint(uint64(yy15)) 71275 } 71276 } 71277 } 71278 } 71279 if yyr2 || yy2arr2 { 71280 r.WriteArrayElem() 71281 if false { 71282 } else { 71283 r.EncodeUint(uint64(x.Index)) 71284 } 71285 } else { 71286 r.WriteMapElemKey() 71287 if z.IsJSONHandle() { 71288 z.WriteStr("\"Index\"") 71289 } else { 71290 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 71291 } 71292 r.WriteMapElemValue() 71293 if false { 71294 } else { 71295 r.EncodeUint(uint64(x.Index)) 71296 } 71297 } 71298 if yyr2 || yy2arr2 { 71299 r.WriteArrayEnd() 71300 } else { 71301 r.WriteMapEnd() 71302 } 71303 } 71304 } 71305 } 71306 71307 func (x *DeploymentUpdateResponse) CodecDecodeSelf(d *codec1978.Decoder) { 71308 var h codecSelfer100 71309 z, r := codec1978.GenHelperDecoder(d) 71310 _, _, _ = h, z, r 71311 if false { 71312 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71313 z.DecExtension(x, yyxt1) 71314 } else { 71315 yyct2 := r.ContainerType() 71316 if yyct2 == codecSelferValueTypeMap100 { 71317 yyl2 := r.ReadMapStart() 71318 if yyl2 == 0 { 71319 r.ReadMapEnd() 71320 } else { 71321 x.codecDecodeSelfFromMap(yyl2, d) 71322 } 71323 } else if yyct2 == codecSelferValueTypeArray100 { 71324 yyl2 := r.ReadArrayStart() 71325 if yyl2 == 0 { 71326 r.ReadArrayEnd() 71327 } else { 71328 x.codecDecodeSelfFromArray(yyl2, d) 71329 } 71330 } else { 71331 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 71332 } 71333 } 71334 } 71335 71336 func (x *DeploymentUpdateResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 71337 var h codecSelfer100 71338 z, r := codec1978.GenHelperDecoder(d) 71339 _, _, _ = h, z, r 71340 var yyhl3 bool = l >= 0 71341 for yyj3 := 0; ; yyj3++ { 71342 if yyhl3 { 71343 if yyj3 >= l { 71344 break 71345 } 71346 } else { 71347 if r.CheckBreak() { 71348 break 71349 } 71350 } 71351 r.ReadMapElemKey() 71352 yys3 := z.StringView(r.DecodeStringAsBytes()) 71353 r.ReadMapElemValue() 71354 switch yys3 { 71355 case "EvalID": 71356 if r.TryDecodeAsNil() { 71357 x.EvalID = "" 71358 } else { 71359 x.EvalID = (string)(r.DecodeString()) 71360 } 71361 case "EvalCreateIndex": 71362 if r.TryDecodeAsNil() { 71363 x.EvalCreateIndex = 0 71364 } else { 71365 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 71366 } 71367 case "DeploymentModifyIndex": 71368 if r.TryDecodeAsNil() { 71369 x.DeploymentModifyIndex = 0 71370 } else { 71371 x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) 71372 } 71373 case "RevertedJobVersion": 71374 if r.TryDecodeAsNil() { 71375 if true && x.RevertedJobVersion != nil { 71376 x.RevertedJobVersion = nil 71377 } 71378 } else { 71379 if x.RevertedJobVersion == nil { 71380 x.RevertedJobVersion = new(uint64) 71381 } 71382 71383 if false { 71384 } else { 71385 *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) 71386 } 71387 } 71388 case "Index": 71389 if r.TryDecodeAsNil() { 71390 x.WriteMeta.Index = 0 71391 } else { 71392 x.Index = (uint64)(r.DecodeUint64()) 71393 } 71394 default: 71395 z.DecStructFieldNotFound(-1, yys3) 71396 } // end switch yys3 71397 } // end for yyj3 71398 r.ReadMapEnd() 71399 } 71400 71401 func (x *DeploymentUpdateResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71402 var h codecSelfer100 71403 z, r := codec1978.GenHelperDecoder(d) 71404 _, _, _ = h, z, r 71405 var yyj10 int 71406 var yyb10 bool 71407 var yyhl10 bool = l >= 0 71408 yyj10++ 71409 if yyhl10 { 71410 yyb10 = yyj10 > l 71411 } else { 71412 yyb10 = r.CheckBreak() 71413 } 71414 if yyb10 { 71415 r.ReadArrayEnd() 71416 return 71417 } 71418 r.ReadArrayElem() 71419 if r.TryDecodeAsNil() { 71420 x.EvalID = "" 71421 } else { 71422 x.EvalID = (string)(r.DecodeString()) 71423 } 71424 yyj10++ 71425 if yyhl10 { 71426 yyb10 = yyj10 > l 71427 } else { 71428 yyb10 = r.CheckBreak() 71429 } 71430 if yyb10 { 71431 r.ReadArrayEnd() 71432 return 71433 } 71434 r.ReadArrayElem() 71435 if r.TryDecodeAsNil() { 71436 x.EvalCreateIndex = 0 71437 } else { 71438 x.EvalCreateIndex = (uint64)(r.DecodeUint64()) 71439 } 71440 yyj10++ 71441 if yyhl10 { 71442 yyb10 = yyj10 > l 71443 } else { 71444 yyb10 = r.CheckBreak() 71445 } 71446 if yyb10 { 71447 r.ReadArrayEnd() 71448 return 71449 } 71450 r.ReadArrayElem() 71451 if r.TryDecodeAsNil() { 71452 x.DeploymentModifyIndex = 0 71453 } else { 71454 x.DeploymentModifyIndex = (uint64)(r.DecodeUint64()) 71455 } 71456 yyj10++ 71457 if yyhl10 { 71458 yyb10 = yyj10 > l 71459 } else { 71460 yyb10 = r.CheckBreak() 71461 } 71462 if yyb10 { 71463 r.ReadArrayEnd() 71464 return 71465 } 71466 r.ReadArrayElem() 71467 if r.TryDecodeAsNil() { 71468 if true && x.RevertedJobVersion != nil { 71469 x.RevertedJobVersion = nil 71470 } 71471 } else { 71472 if x.RevertedJobVersion == nil { 71473 x.RevertedJobVersion = new(uint64) 71474 } 71475 71476 if false { 71477 } else { 71478 *x.RevertedJobVersion = (uint64)(r.DecodeUint64()) 71479 } 71480 } 71481 yyj10++ 71482 if yyhl10 { 71483 yyb10 = yyj10 > l 71484 } else { 71485 yyb10 = r.CheckBreak() 71486 } 71487 if yyb10 { 71488 r.ReadArrayEnd() 71489 return 71490 } 71491 r.ReadArrayElem() 71492 if r.TryDecodeAsNil() { 71493 x.WriteMeta.Index = 0 71494 } else { 71495 x.Index = (uint64)(r.DecodeUint64()) 71496 } 71497 for { 71498 yyj10++ 71499 if yyhl10 { 71500 yyb10 = yyj10 > l 71501 } else { 71502 yyb10 = r.CheckBreak() 71503 } 71504 if yyb10 { 71505 break 71506 } 71507 r.ReadArrayElem() 71508 z.DecStructFieldNotFound(yyj10-1, "") 71509 } 71510 r.ReadArrayEnd() 71511 } 71512 71513 func (x *NodeConnQueryResponse) CodecEncodeSelf(e *codec1978.Encoder) { 71514 var h codecSelfer100 71515 z, r := codec1978.GenHelperEncoder(e) 71516 _, _, _ = h, z, r 71517 if x == nil { 71518 r.EncodeNil() 71519 } else { 71520 if false { 71521 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71522 z.EncExtension(x, yyxt1) 71523 } else { 71524 yysep2 := !z.EncBinary() 71525 yy2arr2 := z.EncBasicHandle().StructToArray 71526 _, _ = yysep2, yy2arr2 71527 const yyr2 bool = false // struct tag has 'toArray' 71528 if yyr2 || yy2arr2 { 71529 r.WriteArrayStart(5) 71530 } else { 71531 r.WriteMapStart(5) 71532 } 71533 if yyr2 || yy2arr2 { 71534 r.WriteArrayElem() 71535 if false { 71536 } else { 71537 r.EncodeBool(bool(x.Connected)) 71538 } 71539 } else { 71540 r.WriteMapElemKey() 71541 if z.IsJSONHandle() { 71542 z.WriteStr("\"Connected\"") 71543 } else { 71544 r.EncodeStringEnc(codecSelferCcUTF8100, `Connected`) 71545 } 71546 r.WriteMapElemValue() 71547 if false { 71548 } else { 71549 r.EncodeBool(bool(x.Connected)) 71550 } 71551 } 71552 if yyr2 || yy2arr2 { 71553 r.WriteArrayElem() 71554 if false { 71555 } else if !z.EncBasicHandle().TimeNotBuiltin { 71556 r.EncodeTime(x.Established) 71557 } else if yyxt7 := z.Extension(z.I2Rtid(x.Established)); yyxt7 != nil { 71558 z.EncExtension(x.Established, yyxt7) 71559 } else if z.EncBinary() { 71560 z.EncBinaryMarshal(x.Established) 71561 } else if !z.EncBinary() && z.IsJSONHandle() { 71562 z.EncJSONMarshal(x.Established) 71563 } else { 71564 z.EncFallback(x.Established) 71565 } 71566 } else { 71567 r.WriteMapElemKey() 71568 if z.IsJSONHandle() { 71569 z.WriteStr("\"Established\"") 71570 } else { 71571 r.EncodeStringEnc(codecSelferCcUTF8100, `Established`) 71572 } 71573 r.WriteMapElemValue() 71574 if false { 71575 } else if !z.EncBasicHandle().TimeNotBuiltin { 71576 r.EncodeTime(x.Established) 71577 } else if yyxt8 := z.Extension(z.I2Rtid(x.Established)); yyxt8 != nil { 71578 z.EncExtension(x.Established, yyxt8) 71579 } else if z.EncBinary() { 71580 z.EncBinaryMarshal(x.Established) 71581 } else if !z.EncBinary() && z.IsJSONHandle() { 71582 z.EncJSONMarshal(x.Established) 71583 } else { 71584 z.EncFallback(x.Established) 71585 } 71586 } 71587 if yyr2 || yy2arr2 { 71588 r.WriteArrayElem() 71589 if false { 71590 } else { 71591 r.EncodeUint(uint64(x.Index)) 71592 } 71593 } else { 71594 r.WriteMapElemKey() 71595 if z.IsJSONHandle() { 71596 z.WriteStr("\"Index\"") 71597 } else { 71598 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 71599 } 71600 r.WriteMapElemValue() 71601 if false { 71602 } else { 71603 r.EncodeUint(uint64(x.Index)) 71604 } 71605 } 71606 if yyr2 || yy2arr2 { 71607 r.WriteArrayElem() 71608 if false { 71609 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 71610 z.EncExtension(x.LastContact, yyxt13) 71611 } else { 71612 r.EncodeInt(int64(x.LastContact)) 71613 } 71614 } else { 71615 r.WriteMapElemKey() 71616 if z.IsJSONHandle() { 71617 z.WriteStr("\"LastContact\"") 71618 } else { 71619 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 71620 } 71621 r.WriteMapElemValue() 71622 if false { 71623 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastContact)); yyxt14 != nil { 71624 z.EncExtension(x.LastContact, yyxt14) 71625 } else { 71626 r.EncodeInt(int64(x.LastContact)) 71627 } 71628 } 71629 if yyr2 || yy2arr2 { 71630 r.WriteArrayElem() 71631 if false { 71632 } else { 71633 r.EncodeBool(bool(x.KnownLeader)) 71634 } 71635 } else { 71636 r.WriteMapElemKey() 71637 if z.IsJSONHandle() { 71638 z.WriteStr("\"KnownLeader\"") 71639 } else { 71640 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 71641 } 71642 r.WriteMapElemValue() 71643 if false { 71644 } else { 71645 r.EncodeBool(bool(x.KnownLeader)) 71646 } 71647 } 71648 if yyr2 || yy2arr2 { 71649 r.WriteArrayEnd() 71650 } else { 71651 r.WriteMapEnd() 71652 } 71653 } 71654 } 71655 } 71656 71657 func (x *NodeConnQueryResponse) CodecDecodeSelf(d *codec1978.Decoder) { 71658 var h codecSelfer100 71659 z, r := codec1978.GenHelperDecoder(d) 71660 _, _, _ = h, z, r 71661 if false { 71662 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71663 z.DecExtension(x, yyxt1) 71664 } else { 71665 yyct2 := r.ContainerType() 71666 if yyct2 == codecSelferValueTypeMap100 { 71667 yyl2 := r.ReadMapStart() 71668 if yyl2 == 0 { 71669 r.ReadMapEnd() 71670 } else { 71671 x.codecDecodeSelfFromMap(yyl2, d) 71672 } 71673 } else if yyct2 == codecSelferValueTypeArray100 { 71674 yyl2 := r.ReadArrayStart() 71675 if yyl2 == 0 { 71676 r.ReadArrayEnd() 71677 } else { 71678 x.codecDecodeSelfFromArray(yyl2, d) 71679 } 71680 } else { 71681 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 71682 } 71683 } 71684 } 71685 71686 func (x *NodeConnQueryResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 71687 var h codecSelfer100 71688 z, r := codec1978.GenHelperDecoder(d) 71689 _, _, _ = h, z, r 71690 var yyhl3 bool = l >= 0 71691 for yyj3 := 0; ; yyj3++ { 71692 if yyhl3 { 71693 if yyj3 >= l { 71694 break 71695 } 71696 } else { 71697 if r.CheckBreak() { 71698 break 71699 } 71700 } 71701 r.ReadMapElemKey() 71702 yys3 := z.StringView(r.DecodeStringAsBytes()) 71703 r.ReadMapElemValue() 71704 switch yys3 { 71705 case "Connected": 71706 if r.TryDecodeAsNil() { 71707 x.Connected = false 71708 } else { 71709 x.Connected = (bool)(r.DecodeBool()) 71710 } 71711 case "Established": 71712 if r.TryDecodeAsNil() { 71713 x.Established = time.Time{} 71714 } else { 71715 if false { 71716 } else if !z.DecBasicHandle().TimeNotBuiltin { 71717 x.Established = r.DecodeTime() 71718 } else if yyxt6 := z.Extension(z.I2Rtid(x.Established)); yyxt6 != nil { 71719 z.DecExtension(x.Established, yyxt6) 71720 } else if z.DecBinary() { 71721 z.DecBinaryUnmarshal(&x.Established) 71722 } else if !z.DecBinary() && z.IsJSONHandle() { 71723 z.DecJSONUnmarshal(&x.Established) 71724 } else { 71725 z.DecFallback(&x.Established, false) 71726 } 71727 } 71728 case "Index": 71729 if r.TryDecodeAsNil() { 71730 x.QueryMeta.Index = 0 71731 } else { 71732 x.Index = (uint64)(r.DecodeUint64()) 71733 } 71734 case "LastContact": 71735 if r.TryDecodeAsNil() { 71736 x.QueryMeta.LastContact = 0 71737 } else { 71738 if false { 71739 } else if yyxt9 := z.Extension(z.I2Rtid(x.LastContact)); yyxt9 != nil { 71740 z.DecExtension(x.LastContact, yyxt9) 71741 } else { 71742 x.LastContact = (time.Duration)(r.DecodeInt64()) 71743 } 71744 } 71745 case "KnownLeader": 71746 if r.TryDecodeAsNil() { 71747 x.QueryMeta.KnownLeader = false 71748 } else { 71749 x.KnownLeader = (bool)(r.DecodeBool()) 71750 } 71751 default: 71752 z.DecStructFieldNotFound(-1, yys3) 71753 } // end switch yys3 71754 } // end for yyj3 71755 r.ReadMapEnd() 71756 } 71757 71758 func (x *NodeConnQueryResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 71759 var h codecSelfer100 71760 z, r := codec1978.GenHelperDecoder(d) 71761 _, _, _ = h, z, r 71762 var yyj11 int 71763 var yyb11 bool 71764 var yyhl11 bool = l >= 0 71765 yyj11++ 71766 if yyhl11 { 71767 yyb11 = yyj11 > l 71768 } else { 71769 yyb11 = r.CheckBreak() 71770 } 71771 if yyb11 { 71772 r.ReadArrayEnd() 71773 return 71774 } 71775 r.ReadArrayElem() 71776 if r.TryDecodeAsNil() { 71777 x.Connected = false 71778 } else { 71779 x.Connected = (bool)(r.DecodeBool()) 71780 } 71781 yyj11++ 71782 if yyhl11 { 71783 yyb11 = yyj11 > l 71784 } else { 71785 yyb11 = r.CheckBreak() 71786 } 71787 if yyb11 { 71788 r.ReadArrayEnd() 71789 return 71790 } 71791 r.ReadArrayElem() 71792 if r.TryDecodeAsNil() { 71793 x.Established = time.Time{} 71794 } else { 71795 if false { 71796 } else if !z.DecBasicHandle().TimeNotBuiltin { 71797 x.Established = r.DecodeTime() 71798 } else if yyxt14 := z.Extension(z.I2Rtid(x.Established)); yyxt14 != nil { 71799 z.DecExtension(x.Established, yyxt14) 71800 } else if z.DecBinary() { 71801 z.DecBinaryUnmarshal(&x.Established) 71802 } else if !z.DecBinary() && z.IsJSONHandle() { 71803 z.DecJSONUnmarshal(&x.Established) 71804 } else { 71805 z.DecFallback(&x.Established, false) 71806 } 71807 } 71808 yyj11++ 71809 if yyhl11 { 71810 yyb11 = yyj11 > l 71811 } else { 71812 yyb11 = r.CheckBreak() 71813 } 71814 if yyb11 { 71815 r.ReadArrayEnd() 71816 return 71817 } 71818 r.ReadArrayElem() 71819 if r.TryDecodeAsNil() { 71820 x.QueryMeta.Index = 0 71821 } else { 71822 x.Index = (uint64)(r.DecodeUint64()) 71823 } 71824 yyj11++ 71825 if yyhl11 { 71826 yyb11 = yyj11 > l 71827 } else { 71828 yyb11 = r.CheckBreak() 71829 } 71830 if yyb11 { 71831 r.ReadArrayEnd() 71832 return 71833 } 71834 r.ReadArrayElem() 71835 if r.TryDecodeAsNil() { 71836 x.QueryMeta.LastContact = 0 71837 } else { 71838 if false { 71839 } else if yyxt17 := z.Extension(z.I2Rtid(x.LastContact)); yyxt17 != nil { 71840 z.DecExtension(x.LastContact, yyxt17) 71841 } else { 71842 x.LastContact = (time.Duration)(r.DecodeInt64()) 71843 } 71844 } 71845 yyj11++ 71846 if yyhl11 { 71847 yyb11 = yyj11 > l 71848 } else { 71849 yyb11 = r.CheckBreak() 71850 } 71851 if yyb11 { 71852 r.ReadArrayEnd() 71853 return 71854 } 71855 r.ReadArrayElem() 71856 if r.TryDecodeAsNil() { 71857 x.QueryMeta.KnownLeader = false 71858 } else { 71859 x.KnownLeader = (bool)(r.DecodeBool()) 71860 } 71861 for { 71862 yyj11++ 71863 if yyhl11 { 71864 yyb11 = yyj11 > l 71865 } else { 71866 yyb11 = r.CheckBreak() 71867 } 71868 if yyb11 { 71869 break 71870 } 71871 r.ReadArrayElem() 71872 z.DecStructFieldNotFound(yyj11-1, "") 71873 } 71874 r.ReadArrayEnd() 71875 } 71876 71877 func (x *EmitNodeEventsRequest) CodecEncodeSelf(e *codec1978.Encoder) { 71878 var h codecSelfer100 71879 z, r := codec1978.GenHelperEncoder(e) 71880 _, _, _ = h, z, r 71881 if x == nil { 71882 r.EncodeNil() 71883 } else { 71884 if false { 71885 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 71886 z.EncExtension(x, yyxt1) 71887 } else { 71888 yysep2 := !z.EncBinary() 71889 yy2arr2 := z.EncBasicHandle().StructToArray 71890 _, _ = yysep2, yy2arr2 71891 const yyr2 bool = false // struct tag has 'toArray' 71892 if yyr2 || yy2arr2 { 71893 r.WriteArrayStart(5) 71894 } else { 71895 r.WriteMapStart(5) 71896 } 71897 if yyr2 || yy2arr2 { 71898 r.WriteArrayElem() 71899 if x.NodeEvents == nil { 71900 r.EncodeNil() 71901 } else { 71902 if false { 71903 } else { 71904 h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) 71905 } 71906 } 71907 } else { 71908 r.WriteMapElemKey() 71909 if z.IsJSONHandle() { 71910 z.WriteStr("\"NodeEvents\"") 71911 } else { 71912 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeEvents`) 71913 } 71914 r.WriteMapElemValue() 71915 if x.NodeEvents == nil { 71916 r.EncodeNil() 71917 } else { 71918 if false { 71919 } else { 71920 h.encMapstringSlicePtrtoNodeEvent((map[string][]*NodeEvent)(x.NodeEvents), e) 71921 } 71922 } 71923 } 71924 if yyr2 || yy2arr2 { 71925 r.WriteArrayElem() 71926 if false { 71927 } else { 71928 if z.EncBasicHandle().StringToRaw { 71929 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 71930 } else { 71931 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 71932 } 71933 } 71934 } else { 71935 r.WriteMapElemKey() 71936 if z.IsJSONHandle() { 71937 z.WriteStr("\"Region\"") 71938 } else { 71939 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 71940 } 71941 r.WriteMapElemValue() 71942 if false { 71943 } else { 71944 if z.EncBasicHandle().StringToRaw { 71945 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 71946 } else { 71947 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 71948 } 71949 } 71950 } 71951 if yyr2 || yy2arr2 { 71952 r.WriteArrayElem() 71953 if false { 71954 } else { 71955 if z.EncBasicHandle().StringToRaw { 71956 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 71957 } else { 71958 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 71959 } 71960 } 71961 } else { 71962 r.WriteMapElemKey() 71963 if z.IsJSONHandle() { 71964 z.WriteStr("\"Namespace\"") 71965 } else { 71966 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 71967 } 71968 r.WriteMapElemValue() 71969 if false { 71970 } else { 71971 if z.EncBasicHandle().StringToRaw { 71972 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 71973 } else { 71974 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 71975 } 71976 } 71977 } 71978 if yyr2 || yy2arr2 { 71979 r.WriteArrayElem() 71980 if false { 71981 } else { 71982 if z.EncBasicHandle().StringToRaw { 71983 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 71984 } else { 71985 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 71986 } 71987 } 71988 } else { 71989 r.WriteMapElemKey() 71990 if z.IsJSONHandle() { 71991 z.WriteStr("\"AuthToken\"") 71992 } else { 71993 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 71994 } 71995 r.WriteMapElemValue() 71996 if false { 71997 } else { 71998 if z.EncBasicHandle().StringToRaw { 71999 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 72000 } else { 72001 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 72002 } 72003 } 72004 } 72005 if yyr2 || yy2arr2 { 72006 r.WriteArrayElem() 72007 if false { 72008 } else { 72009 r.EncodeBool(bool(x.Forwarded)) 72010 } 72011 } else { 72012 r.WriteMapElemKey() 72013 if z.IsJSONHandle() { 72014 z.WriteStr("\"Forwarded\"") 72015 } else { 72016 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 72017 } 72018 r.WriteMapElemValue() 72019 if false { 72020 } else { 72021 r.EncodeBool(bool(x.Forwarded)) 72022 } 72023 } 72024 if yyr2 || yy2arr2 { 72025 r.WriteArrayEnd() 72026 } else { 72027 r.WriteMapEnd() 72028 } 72029 } 72030 } 72031 } 72032 72033 func (x *EmitNodeEventsRequest) CodecDecodeSelf(d *codec1978.Decoder) { 72034 var h codecSelfer100 72035 z, r := codec1978.GenHelperDecoder(d) 72036 _, _, _ = h, z, r 72037 if false { 72038 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72039 z.DecExtension(x, yyxt1) 72040 } else { 72041 yyct2 := r.ContainerType() 72042 if yyct2 == codecSelferValueTypeMap100 { 72043 yyl2 := r.ReadMapStart() 72044 if yyl2 == 0 { 72045 r.ReadMapEnd() 72046 } else { 72047 x.codecDecodeSelfFromMap(yyl2, d) 72048 } 72049 } else if yyct2 == codecSelferValueTypeArray100 { 72050 yyl2 := r.ReadArrayStart() 72051 if yyl2 == 0 { 72052 r.ReadArrayEnd() 72053 } else { 72054 x.codecDecodeSelfFromArray(yyl2, d) 72055 } 72056 } else { 72057 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 72058 } 72059 } 72060 } 72061 72062 func (x *EmitNodeEventsRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 72063 var h codecSelfer100 72064 z, r := codec1978.GenHelperDecoder(d) 72065 _, _, _ = h, z, r 72066 var yyhl3 bool = l >= 0 72067 for yyj3 := 0; ; yyj3++ { 72068 if yyhl3 { 72069 if yyj3 >= l { 72070 break 72071 } 72072 } else { 72073 if r.CheckBreak() { 72074 break 72075 } 72076 } 72077 r.ReadMapElemKey() 72078 yys3 := z.StringView(r.DecodeStringAsBytes()) 72079 r.ReadMapElemValue() 72080 switch yys3 { 72081 case "NodeEvents": 72082 if r.TryDecodeAsNil() { 72083 x.NodeEvents = nil 72084 } else { 72085 if false { 72086 } else { 72087 h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) 72088 } 72089 } 72090 case "Region": 72091 if r.TryDecodeAsNil() { 72092 x.WriteRequest.Region = "" 72093 } else { 72094 x.Region = (string)(r.DecodeString()) 72095 } 72096 case "Namespace": 72097 if r.TryDecodeAsNil() { 72098 x.WriteRequest.Namespace = "" 72099 } else { 72100 x.Namespace = (string)(r.DecodeString()) 72101 } 72102 case "AuthToken": 72103 if r.TryDecodeAsNil() { 72104 x.WriteRequest.AuthToken = "" 72105 } else { 72106 x.AuthToken = (string)(r.DecodeString()) 72107 } 72108 case "Forwarded": 72109 if r.TryDecodeAsNil() { 72110 x.WriteRequest.InternalRpcInfo.Forwarded = false 72111 } else { 72112 x.Forwarded = (bool)(r.DecodeBool()) 72113 } 72114 default: 72115 z.DecStructFieldNotFound(-1, yys3) 72116 } // end switch yys3 72117 } // end for yyj3 72118 r.ReadMapEnd() 72119 } 72120 72121 func (x *EmitNodeEventsRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 72122 var h codecSelfer100 72123 z, r := codec1978.GenHelperDecoder(d) 72124 _, _, _ = h, z, r 72125 var yyj10 int 72126 var yyb10 bool 72127 var yyhl10 bool = l >= 0 72128 yyj10++ 72129 if yyhl10 { 72130 yyb10 = yyj10 > l 72131 } else { 72132 yyb10 = r.CheckBreak() 72133 } 72134 if yyb10 { 72135 r.ReadArrayEnd() 72136 return 72137 } 72138 r.ReadArrayElem() 72139 if r.TryDecodeAsNil() { 72140 x.NodeEvents = nil 72141 } else { 72142 if false { 72143 } else { 72144 h.decMapstringSlicePtrtoNodeEvent((*map[string][]*NodeEvent)(&x.NodeEvents), d) 72145 } 72146 } 72147 yyj10++ 72148 if yyhl10 { 72149 yyb10 = yyj10 > l 72150 } else { 72151 yyb10 = r.CheckBreak() 72152 } 72153 if yyb10 { 72154 r.ReadArrayEnd() 72155 return 72156 } 72157 r.ReadArrayElem() 72158 if r.TryDecodeAsNil() { 72159 x.WriteRequest.Region = "" 72160 } else { 72161 x.Region = (string)(r.DecodeString()) 72162 } 72163 yyj10++ 72164 if yyhl10 { 72165 yyb10 = yyj10 > l 72166 } else { 72167 yyb10 = r.CheckBreak() 72168 } 72169 if yyb10 { 72170 r.ReadArrayEnd() 72171 return 72172 } 72173 r.ReadArrayElem() 72174 if r.TryDecodeAsNil() { 72175 x.WriteRequest.Namespace = "" 72176 } else { 72177 x.Namespace = (string)(r.DecodeString()) 72178 } 72179 yyj10++ 72180 if yyhl10 { 72181 yyb10 = yyj10 > l 72182 } else { 72183 yyb10 = r.CheckBreak() 72184 } 72185 if yyb10 { 72186 r.ReadArrayEnd() 72187 return 72188 } 72189 r.ReadArrayElem() 72190 if r.TryDecodeAsNil() { 72191 x.WriteRequest.AuthToken = "" 72192 } else { 72193 x.AuthToken = (string)(r.DecodeString()) 72194 } 72195 yyj10++ 72196 if yyhl10 { 72197 yyb10 = yyj10 > l 72198 } else { 72199 yyb10 = r.CheckBreak() 72200 } 72201 if yyb10 { 72202 r.ReadArrayEnd() 72203 return 72204 } 72205 r.ReadArrayElem() 72206 if r.TryDecodeAsNil() { 72207 x.WriteRequest.InternalRpcInfo.Forwarded = false 72208 } else { 72209 x.Forwarded = (bool)(r.DecodeBool()) 72210 } 72211 for { 72212 yyj10++ 72213 if yyhl10 { 72214 yyb10 = yyj10 > l 72215 } else { 72216 yyb10 = r.CheckBreak() 72217 } 72218 if yyb10 { 72219 break 72220 } 72221 r.ReadArrayElem() 72222 z.DecStructFieldNotFound(yyj10-1, "") 72223 } 72224 r.ReadArrayEnd() 72225 } 72226 72227 func (x *EmitNodeEventsResponse) CodecEncodeSelf(e *codec1978.Encoder) { 72228 var h codecSelfer100 72229 z, r := codec1978.GenHelperEncoder(e) 72230 _, _, _ = h, z, r 72231 if x == nil { 72232 r.EncodeNil() 72233 } else { 72234 if false { 72235 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72236 z.EncExtension(x, yyxt1) 72237 } else { 72238 yysep2 := !z.EncBinary() 72239 yy2arr2 := z.EncBasicHandle().StructToArray 72240 _, _ = yysep2, yy2arr2 72241 const yyr2 bool = false // struct tag has 'toArray' 72242 if yyr2 || yy2arr2 { 72243 r.WriteArrayStart(1) 72244 } else { 72245 r.WriteMapStart(1) 72246 } 72247 if yyr2 || yy2arr2 { 72248 r.WriteArrayElem() 72249 if false { 72250 } else { 72251 r.EncodeUint(uint64(x.Index)) 72252 } 72253 } else { 72254 r.WriteMapElemKey() 72255 if z.IsJSONHandle() { 72256 z.WriteStr("\"Index\"") 72257 } else { 72258 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 72259 } 72260 r.WriteMapElemValue() 72261 if false { 72262 } else { 72263 r.EncodeUint(uint64(x.Index)) 72264 } 72265 } 72266 if yyr2 || yy2arr2 { 72267 r.WriteArrayEnd() 72268 } else { 72269 r.WriteMapEnd() 72270 } 72271 } 72272 } 72273 } 72274 72275 func (x *EmitNodeEventsResponse) CodecDecodeSelf(d *codec1978.Decoder) { 72276 var h codecSelfer100 72277 z, r := codec1978.GenHelperDecoder(d) 72278 _, _, _ = h, z, r 72279 if false { 72280 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72281 z.DecExtension(x, yyxt1) 72282 } else { 72283 yyct2 := r.ContainerType() 72284 if yyct2 == codecSelferValueTypeMap100 { 72285 yyl2 := r.ReadMapStart() 72286 if yyl2 == 0 { 72287 r.ReadMapEnd() 72288 } else { 72289 x.codecDecodeSelfFromMap(yyl2, d) 72290 } 72291 } else if yyct2 == codecSelferValueTypeArray100 { 72292 yyl2 := r.ReadArrayStart() 72293 if yyl2 == 0 { 72294 r.ReadArrayEnd() 72295 } else { 72296 x.codecDecodeSelfFromArray(yyl2, d) 72297 } 72298 } else { 72299 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 72300 } 72301 } 72302 } 72303 72304 func (x *EmitNodeEventsResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 72305 var h codecSelfer100 72306 z, r := codec1978.GenHelperDecoder(d) 72307 _, _, _ = h, z, r 72308 var yyhl3 bool = l >= 0 72309 for yyj3 := 0; ; yyj3++ { 72310 if yyhl3 { 72311 if yyj3 >= l { 72312 break 72313 } 72314 } else { 72315 if r.CheckBreak() { 72316 break 72317 } 72318 } 72319 r.ReadMapElemKey() 72320 yys3 := z.StringView(r.DecodeStringAsBytes()) 72321 r.ReadMapElemValue() 72322 switch yys3 { 72323 case "Index": 72324 if r.TryDecodeAsNil() { 72325 x.WriteMeta.Index = 0 72326 } else { 72327 x.Index = (uint64)(r.DecodeUint64()) 72328 } 72329 default: 72330 z.DecStructFieldNotFound(-1, yys3) 72331 } // end switch yys3 72332 } // end for yyj3 72333 r.ReadMapEnd() 72334 } 72335 72336 func (x *EmitNodeEventsResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 72337 var h codecSelfer100 72338 z, r := codec1978.GenHelperDecoder(d) 72339 _, _, _ = h, z, r 72340 var yyj5 int 72341 var yyb5 bool 72342 var yyhl5 bool = l >= 0 72343 yyj5++ 72344 if yyhl5 { 72345 yyb5 = yyj5 > l 72346 } else { 72347 yyb5 = r.CheckBreak() 72348 } 72349 if yyb5 { 72350 r.ReadArrayEnd() 72351 return 72352 } 72353 r.ReadArrayElem() 72354 if r.TryDecodeAsNil() { 72355 x.WriteMeta.Index = 0 72356 } else { 72357 x.Index = (uint64)(r.DecodeUint64()) 72358 } 72359 for { 72360 yyj5++ 72361 if yyhl5 { 72362 yyb5 = yyj5 > l 72363 } else { 72364 yyb5 = r.CheckBreak() 72365 } 72366 if yyb5 { 72367 break 72368 } 72369 r.ReadArrayElem() 72370 z.DecStructFieldNotFound(yyj5-1, "") 72371 } 72372 r.ReadArrayEnd() 72373 } 72374 72375 func (x *NodeEvent) CodecEncodeSelf(e *codec1978.Encoder) { 72376 var h codecSelfer100 72377 z, r := codec1978.GenHelperEncoder(e) 72378 _, _, _ = h, z, r 72379 if x == nil { 72380 r.EncodeNil() 72381 } else { 72382 if false { 72383 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72384 z.EncExtension(x, yyxt1) 72385 } else { 72386 yysep2 := !z.EncBinary() 72387 yy2arr2 := z.EncBasicHandle().StructToArray 72388 _, _ = yysep2, yy2arr2 72389 const yyr2 bool = false // struct tag has 'toArray' 72390 if yyr2 || yy2arr2 { 72391 r.WriteArrayStart(5) 72392 } else { 72393 r.WriteMapStart(5) 72394 } 72395 if yyr2 || yy2arr2 { 72396 r.WriteArrayElem() 72397 if false { 72398 } else { 72399 if z.EncBasicHandle().StringToRaw { 72400 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 72401 } else { 72402 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 72403 } 72404 } 72405 } else { 72406 r.WriteMapElemKey() 72407 if z.IsJSONHandle() { 72408 z.WriteStr("\"Message\"") 72409 } else { 72410 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 72411 } 72412 r.WriteMapElemValue() 72413 if false { 72414 } else { 72415 if z.EncBasicHandle().StringToRaw { 72416 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 72417 } else { 72418 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 72419 } 72420 } 72421 } 72422 if yyr2 || yy2arr2 { 72423 r.WriteArrayElem() 72424 if false { 72425 } else { 72426 if z.EncBasicHandle().StringToRaw { 72427 r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) 72428 } else { 72429 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) 72430 } 72431 } 72432 } else { 72433 r.WriteMapElemKey() 72434 if z.IsJSONHandle() { 72435 z.WriteStr("\"Subsystem\"") 72436 } else { 72437 r.EncodeStringEnc(codecSelferCcUTF8100, `Subsystem`) 72438 } 72439 r.WriteMapElemValue() 72440 if false { 72441 } else { 72442 if z.EncBasicHandle().StringToRaw { 72443 r.EncodeStringBytesRaw(z.BytesView(string(x.Subsystem))) 72444 } else { 72445 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Subsystem)) 72446 } 72447 } 72448 } 72449 if yyr2 || yy2arr2 { 72450 r.WriteArrayElem() 72451 if x.Details == nil { 72452 r.EncodeNil() 72453 } else { 72454 if false { 72455 } else { 72456 z.F.EncMapStringStringV(x.Details, e) 72457 } 72458 } 72459 } else { 72460 r.WriteMapElemKey() 72461 if z.IsJSONHandle() { 72462 z.WriteStr("\"Details\"") 72463 } else { 72464 r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) 72465 } 72466 r.WriteMapElemValue() 72467 if x.Details == nil { 72468 r.EncodeNil() 72469 } else { 72470 if false { 72471 } else { 72472 z.F.EncMapStringStringV(x.Details, e) 72473 } 72474 } 72475 } 72476 if yyr2 || yy2arr2 { 72477 r.WriteArrayElem() 72478 if false { 72479 } else if !z.EncBasicHandle().TimeNotBuiltin { 72480 r.EncodeTime(x.Timestamp) 72481 } else if yyxt13 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt13 != nil { 72482 z.EncExtension(x.Timestamp, yyxt13) 72483 } else if z.EncBinary() { 72484 z.EncBinaryMarshal(x.Timestamp) 72485 } else if !z.EncBinary() && z.IsJSONHandle() { 72486 z.EncJSONMarshal(x.Timestamp) 72487 } else { 72488 z.EncFallback(x.Timestamp) 72489 } 72490 } else { 72491 r.WriteMapElemKey() 72492 if z.IsJSONHandle() { 72493 z.WriteStr("\"Timestamp\"") 72494 } else { 72495 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 72496 } 72497 r.WriteMapElemValue() 72498 if false { 72499 } else if !z.EncBasicHandle().TimeNotBuiltin { 72500 r.EncodeTime(x.Timestamp) 72501 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 72502 z.EncExtension(x.Timestamp, yyxt14) 72503 } else if z.EncBinary() { 72504 z.EncBinaryMarshal(x.Timestamp) 72505 } else if !z.EncBinary() && z.IsJSONHandle() { 72506 z.EncJSONMarshal(x.Timestamp) 72507 } else { 72508 z.EncFallback(x.Timestamp) 72509 } 72510 } 72511 if yyr2 || yy2arr2 { 72512 r.WriteArrayElem() 72513 if false { 72514 } else { 72515 r.EncodeUint(uint64(x.CreateIndex)) 72516 } 72517 } else { 72518 r.WriteMapElemKey() 72519 if z.IsJSONHandle() { 72520 z.WriteStr("\"CreateIndex\"") 72521 } else { 72522 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 72523 } 72524 r.WriteMapElemValue() 72525 if false { 72526 } else { 72527 r.EncodeUint(uint64(x.CreateIndex)) 72528 } 72529 } 72530 if yyr2 || yy2arr2 { 72531 r.WriteArrayEnd() 72532 } else { 72533 r.WriteMapEnd() 72534 } 72535 } 72536 } 72537 } 72538 72539 func (x *NodeEvent) CodecDecodeSelf(d *codec1978.Decoder) { 72540 var h codecSelfer100 72541 z, r := codec1978.GenHelperDecoder(d) 72542 _, _, _ = h, z, r 72543 if false { 72544 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72545 z.DecExtension(x, yyxt1) 72546 } else { 72547 yyct2 := r.ContainerType() 72548 if yyct2 == codecSelferValueTypeMap100 { 72549 yyl2 := r.ReadMapStart() 72550 if yyl2 == 0 { 72551 r.ReadMapEnd() 72552 } else { 72553 x.codecDecodeSelfFromMap(yyl2, d) 72554 } 72555 } else if yyct2 == codecSelferValueTypeArray100 { 72556 yyl2 := r.ReadArrayStart() 72557 if yyl2 == 0 { 72558 r.ReadArrayEnd() 72559 } else { 72560 x.codecDecodeSelfFromArray(yyl2, d) 72561 } 72562 } else { 72563 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 72564 } 72565 } 72566 } 72567 72568 func (x *NodeEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 72569 var h codecSelfer100 72570 z, r := codec1978.GenHelperDecoder(d) 72571 _, _, _ = h, z, r 72572 var yyhl3 bool = l >= 0 72573 for yyj3 := 0; ; yyj3++ { 72574 if yyhl3 { 72575 if yyj3 >= l { 72576 break 72577 } 72578 } else { 72579 if r.CheckBreak() { 72580 break 72581 } 72582 } 72583 r.ReadMapElemKey() 72584 yys3 := z.StringView(r.DecodeStringAsBytes()) 72585 r.ReadMapElemValue() 72586 switch yys3 { 72587 case "Message": 72588 if r.TryDecodeAsNil() { 72589 x.Message = "" 72590 } else { 72591 x.Message = (string)(r.DecodeString()) 72592 } 72593 case "Subsystem": 72594 if r.TryDecodeAsNil() { 72595 x.Subsystem = "" 72596 } else { 72597 x.Subsystem = (string)(r.DecodeString()) 72598 } 72599 case "Details": 72600 if r.TryDecodeAsNil() { 72601 x.Details = nil 72602 } else { 72603 if false { 72604 } else { 72605 z.F.DecMapStringStringX(&x.Details, d) 72606 } 72607 } 72608 case "Timestamp": 72609 if r.TryDecodeAsNil() { 72610 x.Timestamp = time.Time{} 72611 } else { 72612 if false { 72613 } else if !z.DecBasicHandle().TimeNotBuiltin { 72614 x.Timestamp = r.DecodeTime() 72615 } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { 72616 z.DecExtension(x.Timestamp, yyxt9) 72617 } else if z.DecBinary() { 72618 z.DecBinaryUnmarshal(&x.Timestamp) 72619 } else if !z.DecBinary() && z.IsJSONHandle() { 72620 z.DecJSONUnmarshal(&x.Timestamp) 72621 } else { 72622 z.DecFallback(&x.Timestamp, false) 72623 } 72624 } 72625 case "CreateIndex": 72626 if r.TryDecodeAsNil() { 72627 x.CreateIndex = 0 72628 } else { 72629 x.CreateIndex = (uint64)(r.DecodeUint64()) 72630 } 72631 default: 72632 z.DecStructFieldNotFound(-1, yys3) 72633 } // end switch yys3 72634 } // end for yyj3 72635 r.ReadMapEnd() 72636 } 72637 72638 func (x *NodeEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 72639 var h codecSelfer100 72640 z, r := codec1978.GenHelperDecoder(d) 72641 _, _, _ = h, z, r 72642 var yyj11 int 72643 var yyb11 bool 72644 var yyhl11 bool = l >= 0 72645 yyj11++ 72646 if yyhl11 { 72647 yyb11 = yyj11 > l 72648 } else { 72649 yyb11 = r.CheckBreak() 72650 } 72651 if yyb11 { 72652 r.ReadArrayEnd() 72653 return 72654 } 72655 r.ReadArrayElem() 72656 if r.TryDecodeAsNil() { 72657 x.Message = "" 72658 } else { 72659 x.Message = (string)(r.DecodeString()) 72660 } 72661 yyj11++ 72662 if yyhl11 { 72663 yyb11 = yyj11 > l 72664 } else { 72665 yyb11 = r.CheckBreak() 72666 } 72667 if yyb11 { 72668 r.ReadArrayEnd() 72669 return 72670 } 72671 r.ReadArrayElem() 72672 if r.TryDecodeAsNil() { 72673 x.Subsystem = "" 72674 } else { 72675 x.Subsystem = (string)(r.DecodeString()) 72676 } 72677 yyj11++ 72678 if yyhl11 { 72679 yyb11 = yyj11 > l 72680 } else { 72681 yyb11 = r.CheckBreak() 72682 } 72683 if yyb11 { 72684 r.ReadArrayEnd() 72685 return 72686 } 72687 r.ReadArrayElem() 72688 if r.TryDecodeAsNil() { 72689 x.Details = nil 72690 } else { 72691 if false { 72692 } else { 72693 z.F.DecMapStringStringX(&x.Details, d) 72694 } 72695 } 72696 yyj11++ 72697 if yyhl11 { 72698 yyb11 = yyj11 > l 72699 } else { 72700 yyb11 = r.CheckBreak() 72701 } 72702 if yyb11 { 72703 r.ReadArrayEnd() 72704 return 72705 } 72706 r.ReadArrayElem() 72707 if r.TryDecodeAsNil() { 72708 x.Timestamp = time.Time{} 72709 } else { 72710 if false { 72711 } else if !z.DecBasicHandle().TimeNotBuiltin { 72712 x.Timestamp = r.DecodeTime() 72713 } else if yyxt17 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt17 != nil { 72714 z.DecExtension(x.Timestamp, yyxt17) 72715 } else if z.DecBinary() { 72716 z.DecBinaryUnmarshal(&x.Timestamp) 72717 } else if !z.DecBinary() && z.IsJSONHandle() { 72718 z.DecJSONUnmarshal(&x.Timestamp) 72719 } else { 72720 z.DecFallback(&x.Timestamp, false) 72721 } 72722 } 72723 yyj11++ 72724 if yyhl11 { 72725 yyb11 = yyj11 > l 72726 } else { 72727 yyb11 = r.CheckBreak() 72728 } 72729 if yyb11 { 72730 r.ReadArrayEnd() 72731 return 72732 } 72733 r.ReadArrayElem() 72734 if r.TryDecodeAsNil() { 72735 x.CreateIndex = 0 72736 } else { 72737 x.CreateIndex = (uint64)(r.DecodeUint64()) 72738 } 72739 for { 72740 yyj11++ 72741 if yyhl11 { 72742 yyb11 = yyj11 > l 72743 } else { 72744 yyb11 = r.CheckBreak() 72745 } 72746 if yyb11 { 72747 break 72748 } 72749 r.ReadArrayElem() 72750 z.DecStructFieldNotFound(yyj11-1, "") 72751 } 72752 r.ReadArrayEnd() 72753 } 72754 72755 func (x *DrainSpec) CodecEncodeSelf(e *codec1978.Encoder) { 72756 var h codecSelfer100 72757 z, r := codec1978.GenHelperEncoder(e) 72758 _, _, _ = h, z, r 72759 if x == nil { 72760 r.EncodeNil() 72761 } else { 72762 if false { 72763 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72764 z.EncExtension(x, yyxt1) 72765 } else { 72766 yysep2 := !z.EncBinary() 72767 yy2arr2 := z.EncBasicHandle().StructToArray 72768 _, _ = yysep2, yy2arr2 72769 const yyr2 bool = false // struct tag has 'toArray' 72770 if yyr2 || yy2arr2 { 72771 r.WriteArrayStart(2) 72772 } else { 72773 r.WriteMapStart(2) 72774 } 72775 if yyr2 || yy2arr2 { 72776 r.WriteArrayElem() 72777 if false { 72778 } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { 72779 z.EncExtension(x.Deadline, yyxt4) 72780 } else { 72781 r.EncodeInt(int64(x.Deadline)) 72782 } 72783 } else { 72784 r.WriteMapElemKey() 72785 if z.IsJSONHandle() { 72786 z.WriteStr("\"Deadline\"") 72787 } else { 72788 r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) 72789 } 72790 r.WriteMapElemValue() 72791 if false { 72792 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 72793 z.EncExtension(x.Deadline, yyxt5) 72794 } else { 72795 r.EncodeInt(int64(x.Deadline)) 72796 } 72797 } 72798 if yyr2 || yy2arr2 { 72799 r.WriteArrayElem() 72800 if false { 72801 } else { 72802 r.EncodeBool(bool(x.IgnoreSystemJobs)) 72803 } 72804 } else { 72805 r.WriteMapElemKey() 72806 if z.IsJSONHandle() { 72807 z.WriteStr("\"IgnoreSystemJobs\"") 72808 } else { 72809 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) 72810 } 72811 r.WriteMapElemValue() 72812 if false { 72813 } else { 72814 r.EncodeBool(bool(x.IgnoreSystemJobs)) 72815 } 72816 } 72817 if yyr2 || yy2arr2 { 72818 r.WriteArrayEnd() 72819 } else { 72820 r.WriteMapEnd() 72821 } 72822 } 72823 } 72824 } 72825 72826 func (x *DrainSpec) CodecDecodeSelf(d *codec1978.Decoder) { 72827 var h codecSelfer100 72828 z, r := codec1978.GenHelperDecoder(d) 72829 _, _, _ = h, z, r 72830 if false { 72831 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72832 z.DecExtension(x, yyxt1) 72833 } else { 72834 yyct2 := r.ContainerType() 72835 if yyct2 == codecSelferValueTypeMap100 { 72836 yyl2 := r.ReadMapStart() 72837 if yyl2 == 0 { 72838 r.ReadMapEnd() 72839 } else { 72840 x.codecDecodeSelfFromMap(yyl2, d) 72841 } 72842 } else if yyct2 == codecSelferValueTypeArray100 { 72843 yyl2 := r.ReadArrayStart() 72844 if yyl2 == 0 { 72845 r.ReadArrayEnd() 72846 } else { 72847 x.codecDecodeSelfFromArray(yyl2, d) 72848 } 72849 } else { 72850 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 72851 } 72852 } 72853 } 72854 72855 func (x *DrainSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 72856 var h codecSelfer100 72857 z, r := codec1978.GenHelperDecoder(d) 72858 _, _, _ = h, z, r 72859 var yyhl3 bool = l >= 0 72860 for yyj3 := 0; ; yyj3++ { 72861 if yyhl3 { 72862 if yyj3 >= l { 72863 break 72864 } 72865 } else { 72866 if r.CheckBreak() { 72867 break 72868 } 72869 } 72870 r.ReadMapElemKey() 72871 yys3 := z.StringView(r.DecodeStringAsBytes()) 72872 r.ReadMapElemValue() 72873 switch yys3 { 72874 case "Deadline": 72875 if r.TryDecodeAsNil() { 72876 x.Deadline = 0 72877 } else { 72878 if false { 72879 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 72880 z.DecExtension(x.Deadline, yyxt5) 72881 } else { 72882 x.Deadline = (time.Duration)(r.DecodeInt64()) 72883 } 72884 } 72885 case "IgnoreSystemJobs": 72886 if r.TryDecodeAsNil() { 72887 x.IgnoreSystemJobs = false 72888 } else { 72889 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 72890 } 72891 default: 72892 z.DecStructFieldNotFound(-1, yys3) 72893 } // end switch yys3 72894 } // end for yyj3 72895 r.ReadMapEnd() 72896 } 72897 72898 func (x *DrainSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 72899 var h codecSelfer100 72900 z, r := codec1978.GenHelperDecoder(d) 72901 _, _, _ = h, z, r 72902 var yyj7 int 72903 var yyb7 bool 72904 var yyhl7 bool = l >= 0 72905 yyj7++ 72906 if yyhl7 { 72907 yyb7 = yyj7 > l 72908 } else { 72909 yyb7 = r.CheckBreak() 72910 } 72911 if yyb7 { 72912 r.ReadArrayEnd() 72913 return 72914 } 72915 r.ReadArrayElem() 72916 if r.TryDecodeAsNil() { 72917 x.Deadline = 0 72918 } else { 72919 if false { 72920 } else if yyxt9 := z.Extension(z.I2Rtid(x.Deadline)); yyxt9 != nil { 72921 z.DecExtension(x.Deadline, yyxt9) 72922 } else { 72923 x.Deadline = (time.Duration)(r.DecodeInt64()) 72924 } 72925 } 72926 yyj7++ 72927 if yyhl7 { 72928 yyb7 = yyj7 > l 72929 } else { 72930 yyb7 = r.CheckBreak() 72931 } 72932 if yyb7 { 72933 r.ReadArrayEnd() 72934 return 72935 } 72936 r.ReadArrayElem() 72937 if r.TryDecodeAsNil() { 72938 x.IgnoreSystemJobs = false 72939 } else { 72940 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 72941 } 72942 for { 72943 yyj7++ 72944 if yyhl7 { 72945 yyb7 = yyj7 > l 72946 } else { 72947 yyb7 = r.CheckBreak() 72948 } 72949 if yyb7 { 72950 break 72951 } 72952 r.ReadArrayElem() 72953 z.DecStructFieldNotFound(yyj7-1, "") 72954 } 72955 r.ReadArrayEnd() 72956 } 72957 72958 func (x *DrainStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 72959 var h codecSelfer100 72960 z, r := codec1978.GenHelperEncoder(e) 72961 _, _, _ = h, z, r 72962 if x == nil { 72963 r.EncodeNil() 72964 } else { 72965 if false { 72966 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 72967 z.EncExtension(x, yyxt1) 72968 } else { 72969 yysep2 := !z.EncBinary() 72970 yy2arr2 := z.EncBasicHandle().StructToArray 72971 _, _ = yysep2, yy2arr2 72972 const yyr2 bool = false // struct tag has 'toArray' 72973 if yyr2 || yy2arr2 { 72974 r.WriteArrayStart(4) 72975 } else { 72976 r.WriteMapStart(4) 72977 } 72978 if yyr2 || yy2arr2 { 72979 r.WriteArrayElem() 72980 if false { 72981 } else if yyxt4 := z.Extension(z.I2Rtid(x.Deadline)); yyxt4 != nil { 72982 z.EncExtension(x.Deadline, yyxt4) 72983 } else { 72984 r.EncodeInt(int64(x.Deadline)) 72985 } 72986 } else { 72987 r.WriteMapElemKey() 72988 if z.IsJSONHandle() { 72989 z.WriteStr("\"Deadline\"") 72990 } else { 72991 r.EncodeStringEnc(codecSelferCcUTF8100, `Deadline`) 72992 } 72993 r.WriteMapElemValue() 72994 if false { 72995 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 72996 z.EncExtension(x.Deadline, yyxt5) 72997 } else { 72998 r.EncodeInt(int64(x.Deadline)) 72999 } 73000 } 73001 if yyr2 || yy2arr2 { 73002 r.WriteArrayElem() 73003 if false { 73004 } else { 73005 r.EncodeBool(bool(x.IgnoreSystemJobs)) 73006 } 73007 } else { 73008 r.WriteMapElemKey() 73009 if z.IsJSONHandle() { 73010 z.WriteStr("\"IgnoreSystemJobs\"") 73011 } else { 73012 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreSystemJobs`) 73013 } 73014 r.WriteMapElemValue() 73015 if false { 73016 } else { 73017 r.EncodeBool(bool(x.IgnoreSystemJobs)) 73018 } 73019 } 73020 if yyr2 || yy2arr2 { 73021 r.WriteArrayElem() 73022 if false { 73023 } else if !z.EncBasicHandle().TimeNotBuiltin { 73024 r.EncodeTime(x.ForceDeadline) 73025 } else if yyxt10 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt10 != nil { 73026 z.EncExtension(x.ForceDeadline, yyxt10) 73027 } else if z.EncBinary() { 73028 z.EncBinaryMarshal(x.ForceDeadline) 73029 } else if !z.EncBinary() && z.IsJSONHandle() { 73030 z.EncJSONMarshal(x.ForceDeadline) 73031 } else { 73032 z.EncFallback(x.ForceDeadline) 73033 } 73034 } else { 73035 r.WriteMapElemKey() 73036 if z.IsJSONHandle() { 73037 z.WriteStr("\"ForceDeadline\"") 73038 } else { 73039 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceDeadline`) 73040 } 73041 r.WriteMapElemValue() 73042 if false { 73043 } else if !z.EncBasicHandle().TimeNotBuiltin { 73044 r.EncodeTime(x.ForceDeadline) 73045 } else if yyxt11 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt11 != nil { 73046 z.EncExtension(x.ForceDeadline, yyxt11) 73047 } else if z.EncBinary() { 73048 z.EncBinaryMarshal(x.ForceDeadline) 73049 } else if !z.EncBinary() && z.IsJSONHandle() { 73050 z.EncJSONMarshal(x.ForceDeadline) 73051 } else { 73052 z.EncFallback(x.ForceDeadline) 73053 } 73054 } 73055 if yyr2 || yy2arr2 { 73056 r.WriteArrayElem() 73057 if false { 73058 } else if !z.EncBasicHandle().TimeNotBuiltin { 73059 r.EncodeTime(x.StartedAt) 73060 } else if yyxt13 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt13 != nil { 73061 z.EncExtension(x.StartedAt, yyxt13) 73062 } else if z.EncBinary() { 73063 z.EncBinaryMarshal(x.StartedAt) 73064 } else if !z.EncBinary() && z.IsJSONHandle() { 73065 z.EncJSONMarshal(x.StartedAt) 73066 } else { 73067 z.EncFallback(x.StartedAt) 73068 } 73069 } else { 73070 r.WriteMapElemKey() 73071 if z.IsJSONHandle() { 73072 z.WriteStr("\"StartedAt\"") 73073 } else { 73074 r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) 73075 } 73076 r.WriteMapElemValue() 73077 if false { 73078 } else if !z.EncBasicHandle().TimeNotBuiltin { 73079 r.EncodeTime(x.StartedAt) 73080 } else if yyxt14 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt14 != nil { 73081 z.EncExtension(x.StartedAt, yyxt14) 73082 } else if z.EncBinary() { 73083 z.EncBinaryMarshal(x.StartedAt) 73084 } else if !z.EncBinary() && z.IsJSONHandle() { 73085 z.EncJSONMarshal(x.StartedAt) 73086 } else { 73087 z.EncFallback(x.StartedAt) 73088 } 73089 } 73090 if yyr2 || yy2arr2 { 73091 r.WriteArrayEnd() 73092 } else { 73093 r.WriteMapEnd() 73094 } 73095 } 73096 } 73097 } 73098 73099 func (x *DrainStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 73100 var h codecSelfer100 73101 z, r := codec1978.GenHelperDecoder(d) 73102 _, _, _ = h, z, r 73103 if false { 73104 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 73105 z.DecExtension(x, yyxt1) 73106 } else { 73107 yyct2 := r.ContainerType() 73108 if yyct2 == codecSelferValueTypeMap100 { 73109 yyl2 := r.ReadMapStart() 73110 if yyl2 == 0 { 73111 r.ReadMapEnd() 73112 } else { 73113 x.codecDecodeSelfFromMap(yyl2, d) 73114 } 73115 } else if yyct2 == codecSelferValueTypeArray100 { 73116 yyl2 := r.ReadArrayStart() 73117 if yyl2 == 0 { 73118 r.ReadArrayEnd() 73119 } else { 73120 x.codecDecodeSelfFromArray(yyl2, d) 73121 } 73122 } else { 73123 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 73124 } 73125 } 73126 } 73127 73128 func (x *DrainStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 73129 var h codecSelfer100 73130 z, r := codec1978.GenHelperDecoder(d) 73131 _, _, _ = h, z, r 73132 var yyhl3 bool = l >= 0 73133 for yyj3 := 0; ; yyj3++ { 73134 if yyhl3 { 73135 if yyj3 >= l { 73136 break 73137 } 73138 } else { 73139 if r.CheckBreak() { 73140 break 73141 } 73142 } 73143 r.ReadMapElemKey() 73144 yys3 := z.StringView(r.DecodeStringAsBytes()) 73145 r.ReadMapElemValue() 73146 switch yys3 { 73147 case "Deadline": 73148 if r.TryDecodeAsNil() { 73149 x.DrainSpec.Deadline = 0 73150 } else { 73151 if false { 73152 } else if yyxt5 := z.Extension(z.I2Rtid(x.Deadline)); yyxt5 != nil { 73153 z.DecExtension(x.Deadline, yyxt5) 73154 } else { 73155 x.Deadline = (time.Duration)(r.DecodeInt64()) 73156 } 73157 } 73158 case "IgnoreSystemJobs": 73159 if r.TryDecodeAsNil() { 73160 x.DrainSpec.IgnoreSystemJobs = false 73161 } else { 73162 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 73163 } 73164 case "ForceDeadline": 73165 if r.TryDecodeAsNil() { 73166 x.ForceDeadline = time.Time{} 73167 } else { 73168 if false { 73169 } else if !z.DecBasicHandle().TimeNotBuiltin { 73170 x.ForceDeadline = r.DecodeTime() 73171 } else if yyxt8 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt8 != nil { 73172 z.DecExtension(x.ForceDeadline, yyxt8) 73173 } else if z.DecBinary() { 73174 z.DecBinaryUnmarshal(&x.ForceDeadline) 73175 } else if !z.DecBinary() && z.IsJSONHandle() { 73176 z.DecJSONUnmarshal(&x.ForceDeadline) 73177 } else { 73178 z.DecFallback(&x.ForceDeadline, false) 73179 } 73180 } 73181 case "StartedAt": 73182 if r.TryDecodeAsNil() { 73183 x.StartedAt = time.Time{} 73184 } else { 73185 if false { 73186 } else if !z.DecBasicHandle().TimeNotBuiltin { 73187 x.StartedAt = r.DecodeTime() 73188 } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { 73189 z.DecExtension(x.StartedAt, yyxt10) 73190 } else if z.DecBinary() { 73191 z.DecBinaryUnmarshal(&x.StartedAt) 73192 } else if !z.DecBinary() && z.IsJSONHandle() { 73193 z.DecJSONUnmarshal(&x.StartedAt) 73194 } else { 73195 z.DecFallback(&x.StartedAt, false) 73196 } 73197 } 73198 default: 73199 z.DecStructFieldNotFound(-1, yys3) 73200 } // end switch yys3 73201 } // end for yyj3 73202 r.ReadMapEnd() 73203 } 73204 73205 func (x *DrainStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 73206 var h codecSelfer100 73207 z, r := codec1978.GenHelperDecoder(d) 73208 _, _, _ = h, z, r 73209 var yyj11 int 73210 var yyb11 bool 73211 var yyhl11 bool = l >= 0 73212 yyj11++ 73213 if yyhl11 { 73214 yyb11 = yyj11 > l 73215 } else { 73216 yyb11 = r.CheckBreak() 73217 } 73218 if yyb11 { 73219 r.ReadArrayEnd() 73220 return 73221 } 73222 r.ReadArrayElem() 73223 if r.TryDecodeAsNil() { 73224 x.DrainSpec.Deadline = 0 73225 } else { 73226 if false { 73227 } else if yyxt13 := z.Extension(z.I2Rtid(x.Deadline)); yyxt13 != nil { 73228 z.DecExtension(x.Deadline, yyxt13) 73229 } else { 73230 x.Deadline = (time.Duration)(r.DecodeInt64()) 73231 } 73232 } 73233 yyj11++ 73234 if yyhl11 { 73235 yyb11 = yyj11 > l 73236 } else { 73237 yyb11 = r.CheckBreak() 73238 } 73239 if yyb11 { 73240 r.ReadArrayEnd() 73241 return 73242 } 73243 r.ReadArrayElem() 73244 if r.TryDecodeAsNil() { 73245 x.DrainSpec.IgnoreSystemJobs = false 73246 } else { 73247 x.IgnoreSystemJobs = (bool)(r.DecodeBool()) 73248 } 73249 yyj11++ 73250 if yyhl11 { 73251 yyb11 = yyj11 > l 73252 } else { 73253 yyb11 = r.CheckBreak() 73254 } 73255 if yyb11 { 73256 r.ReadArrayEnd() 73257 return 73258 } 73259 r.ReadArrayElem() 73260 if r.TryDecodeAsNil() { 73261 x.ForceDeadline = time.Time{} 73262 } else { 73263 if false { 73264 } else if !z.DecBasicHandle().TimeNotBuiltin { 73265 x.ForceDeadline = r.DecodeTime() 73266 } else if yyxt16 := z.Extension(z.I2Rtid(x.ForceDeadline)); yyxt16 != nil { 73267 z.DecExtension(x.ForceDeadline, yyxt16) 73268 } else if z.DecBinary() { 73269 z.DecBinaryUnmarshal(&x.ForceDeadline) 73270 } else if !z.DecBinary() && z.IsJSONHandle() { 73271 z.DecJSONUnmarshal(&x.ForceDeadline) 73272 } else { 73273 z.DecFallback(&x.ForceDeadline, false) 73274 } 73275 } 73276 yyj11++ 73277 if yyhl11 { 73278 yyb11 = yyj11 > l 73279 } else { 73280 yyb11 = r.CheckBreak() 73281 } 73282 if yyb11 { 73283 r.ReadArrayEnd() 73284 return 73285 } 73286 r.ReadArrayElem() 73287 if r.TryDecodeAsNil() { 73288 x.StartedAt = time.Time{} 73289 } else { 73290 if false { 73291 } else if !z.DecBasicHandle().TimeNotBuiltin { 73292 x.StartedAt = r.DecodeTime() 73293 } else if yyxt18 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt18 != nil { 73294 z.DecExtension(x.StartedAt, yyxt18) 73295 } else if z.DecBinary() { 73296 z.DecBinaryUnmarshal(&x.StartedAt) 73297 } else if !z.DecBinary() && z.IsJSONHandle() { 73298 z.DecJSONUnmarshal(&x.StartedAt) 73299 } else { 73300 z.DecFallback(&x.StartedAt, false) 73301 } 73302 } 73303 for { 73304 yyj11++ 73305 if yyhl11 { 73306 yyb11 = yyj11 > l 73307 } else { 73308 yyb11 = r.CheckBreak() 73309 } 73310 if yyb11 { 73311 break 73312 } 73313 r.ReadArrayElem() 73314 z.DecStructFieldNotFound(yyj11-1, "") 73315 } 73316 r.ReadArrayEnd() 73317 } 73318 73319 func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { 73320 var h codecSelfer100 73321 z, r := codec1978.GenHelperEncoder(e) 73322 _, _, _ = h, z, r 73323 if x == nil { 73324 r.EncodeNil() 73325 } else { 73326 if false { 73327 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 73328 z.EncExtension(x, yyxt1) 73329 } else { 73330 yysep2 := !z.EncBinary() 73331 yy2arr2 := z.EncBasicHandle().StructToArray 73332 _, _ = yysep2, yy2arr2 73333 const yyr2 bool = false // struct tag has 'toArray' 73334 if yyr2 || yy2arr2 { 73335 r.WriteArrayStart(28) 73336 } else { 73337 r.WriteMapStart(28) 73338 } 73339 if yyr2 || yy2arr2 { 73340 r.WriteArrayElem() 73341 if false { 73342 } else { 73343 if z.EncBasicHandle().StringToRaw { 73344 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 73345 } else { 73346 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 73347 } 73348 } 73349 } else { 73350 r.WriteMapElemKey() 73351 if z.IsJSONHandle() { 73352 z.WriteStr("\"ID\"") 73353 } else { 73354 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 73355 } 73356 r.WriteMapElemValue() 73357 if false { 73358 } else { 73359 if z.EncBasicHandle().StringToRaw { 73360 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 73361 } else { 73362 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 73363 } 73364 } 73365 } 73366 if yyr2 || yy2arr2 { 73367 r.WriteArrayElem() 73368 if false { 73369 } else { 73370 if z.EncBasicHandle().StringToRaw { 73371 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 73372 } else { 73373 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 73374 } 73375 } 73376 } else { 73377 r.WriteMapElemKey() 73378 if z.IsJSONHandle() { 73379 z.WriteStr("\"SecretID\"") 73380 } else { 73381 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 73382 } 73383 r.WriteMapElemValue() 73384 if false { 73385 } else { 73386 if z.EncBasicHandle().StringToRaw { 73387 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 73388 } else { 73389 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 73390 } 73391 } 73392 } 73393 if yyr2 || yy2arr2 { 73394 r.WriteArrayElem() 73395 if false { 73396 } else { 73397 if z.EncBasicHandle().StringToRaw { 73398 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 73399 } else { 73400 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 73401 } 73402 } 73403 } else { 73404 r.WriteMapElemKey() 73405 if z.IsJSONHandle() { 73406 z.WriteStr("\"Datacenter\"") 73407 } else { 73408 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 73409 } 73410 r.WriteMapElemValue() 73411 if false { 73412 } else { 73413 if z.EncBasicHandle().StringToRaw { 73414 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 73415 } else { 73416 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 73417 } 73418 } 73419 } 73420 if yyr2 || yy2arr2 { 73421 r.WriteArrayElem() 73422 if false { 73423 } else { 73424 if z.EncBasicHandle().StringToRaw { 73425 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 73426 } else { 73427 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 73428 } 73429 } 73430 } else { 73431 r.WriteMapElemKey() 73432 if z.IsJSONHandle() { 73433 z.WriteStr("\"Name\"") 73434 } else { 73435 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 73436 } 73437 r.WriteMapElemValue() 73438 if false { 73439 } else { 73440 if z.EncBasicHandle().StringToRaw { 73441 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 73442 } else { 73443 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 73444 } 73445 } 73446 } 73447 if yyr2 || yy2arr2 { 73448 r.WriteArrayElem() 73449 if false { 73450 } else { 73451 if z.EncBasicHandle().StringToRaw { 73452 r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) 73453 } else { 73454 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) 73455 } 73456 } 73457 } else { 73458 r.WriteMapElemKey() 73459 if z.IsJSONHandle() { 73460 z.WriteStr("\"HTTPAddr\"") 73461 } else { 73462 r.EncodeStringEnc(codecSelferCcUTF8100, `HTTPAddr`) 73463 } 73464 r.WriteMapElemValue() 73465 if false { 73466 } else { 73467 if z.EncBasicHandle().StringToRaw { 73468 r.EncodeStringBytesRaw(z.BytesView(string(x.HTTPAddr))) 73469 } else { 73470 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HTTPAddr)) 73471 } 73472 } 73473 } 73474 if yyr2 || yy2arr2 { 73475 r.WriteArrayElem() 73476 if false { 73477 } else { 73478 r.EncodeBool(bool(x.TLSEnabled)) 73479 } 73480 } else { 73481 r.WriteMapElemKey() 73482 if z.IsJSONHandle() { 73483 z.WriteStr("\"TLSEnabled\"") 73484 } else { 73485 r.EncodeStringEnc(codecSelferCcUTF8100, `TLSEnabled`) 73486 } 73487 r.WriteMapElemValue() 73488 if false { 73489 } else { 73490 r.EncodeBool(bool(x.TLSEnabled)) 73491 } 73492 } 73493 if yyr2 || yy2arr2 { 73494 r.WriteArrayElem() 73495 if x.Attributes == nil { 73496 r.EncodeNil() 73497 } else { 73498 if false { 73499 } else { 73500 z.F.EncMapStringStringV(x.Attributes, e) 73501 } 73502 } 73503 } else { 73504 r.WriteMapElemKey() 73505 if z.IsJSONHandle() { 73506 z.WriteStr("\"Attributes\"") 73507 } else { 73508 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 73509 } 73510 r.WriteMapElemValue() 73511 if x.Attributes == nil { 73512 r.EncodeNil() 73513 } else { 73514 if false { 73515 } else { 73516 z.F.EncMapStringStringV(x.Attributes, e) 73517 } 73518 } 73519 } 73520 var yyn24 bool 73521 if x.NodeResources == nil { 73522 yyn24 = true 73523 goto LABEL24 73524 } 73525 LABEL24: 73526 if yyr2 || yy2arr2 { 73527 if yyn24 { 73528 r.WriteArrayElem() 73529 r.EncodeNil() 73530 } else { 73531 r.WriteArrayElem() 73532 if x.NodeResources == nil { 73533 r.EncodeNil() 73534 } else { 73535 x.NodeResources.CodecEncodeSelf(e) 73536 } 73537 } 73538 } else { 73539 r.WriteMapElemKey() 73540 if z.IsJSONHandle() { 73541 z.WriteStr("\"NodeResources\"") 73542 } else { 73543 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeResources`) 73544 } 73545 r.WriteMapElemValue() 73546 if yyn24 { 73547 r.EncodeNil() 73548 } else { 73549 if x.NodeResources == nil { 73550 r.EncodeNil() 73551 } else { 73552 x.NodeResources.CodecEncodeSelf(e) 73553 } 73554 } 73555 } 73556 var yyn27 bool 73557 if x.ReservedResources == nil { 73558 yyn27 = true 73559 goto LABEL27 73560 } 73561 LABEL27: 73562 if yyr2 || yy2arr2 { 73563 if yyn27 { 73564 r.WriteArrayElem() 73565 r.EncodeNil() 73566 } else { 73567 r.WriteArrayElem() 73568 if x.ReservedResources == nil { 73569 r.EncodeNil() 73570 } else { 73571 x.ReservedResources.CodecEncodeSelf(e) 73572 } 73573 } 73574 } else { 73575 r.WriteMapElemKey() 73576 if z.IsJSONHandle() { 73577 z.WriteStr("\"ReservedResources\"") 73578 } else { 73579 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedResources`) 73580 } 73581 r.WriteMapElemValue() 73582 if yyn27 { 73583 r.EncodeNil() 73584 } else { 73585 if x.ReservedResources == nil { 73586 r.EncodeNil() 73587 } else { 73588 x.ReservedResources.CodecEncodeSelf(e) 73589 } 73590 } 73591 } 73592 var yyn30 bool 73593 if x.Resources == nil { 73594 yyn30 = true 73595 goto LABEL30 73596 } 73597 LABEL30: 73598 if yyr2 || yy2arr2 { 73599 if yyn30 { 73600 r.WriteArrayElem() 73601 r.EncodeNil() 73602 } else { 73603 r.WriteArrayElem() 73604 if x.Resources == nil { 73605 r.EncodeNil() 73606 } else { 73607 x.Resources.CodecEncodeSelf(e) 73608 } 73609 } 73610 } else { 73611 r.WriteMapElemKey() 73612 if z.IsJSONHandle() { 73613 z.WriteStr("\"Resources\"") 73614 } else { 73615 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 73616 } 73617 r.WriteMapElemValue() 73618 if yyn30 { 73619 r.EncodeNil() 73620 } else { 73621 if x.Resources == nil { 73622 r.EncodeNil() 73623 } else { 73624 x.Resources.CodecEncodeSelf(e) 73625 } 73626 } 73627 } 73628 var yyn33 bool 73629 if x.Reserved == nil { 73630 yyn33 = true 73631 goto LABEL33 73632 } 73633 LABEL33: 73634 if yyr2 || yy2arr2 { 73635 if yyn33 { 73636 r.WriteArrayElem() 73637 r.EncodeNil() 73638 } else { 73639 r.WriteArrayElem() 73640 if x.Reserved == nil { 73641 r.EncodeNil() 73642 } else { 73643 x.Reserved.CodecEncodeSelf(e) 73644 } 73645 } 73646 } else { 73647 r.WriteMapElemKey() 73648 if z.IsJSONHandle() { 73649 z.WriteStr("\"Reserved\"") 73650 } else { 73651 r.EncodeStringEnc(codecSelferCcUTF8100, `Reserved`) 73652 } 73653 r.WriteMapElemValue() 73654 if yyn33 { 73655 r.EncodeNil() 73656 } else { 73657 if x.Reserved == nil { 73658 r.EncodeNil() 73659 } else { 73660 x.Reserved.CodecEncodeSelf(e) 73661 } 73662 } 73663 } 73664 if yyr2 || yy2arr2 { 73665 r.WriteArrayElem() 73666 if x.Links == nil { 73667 r.EncodeNil() 73668 } else { 73669 if false { 73670 } else { 73671 z.F.EncMapStringStringV(x.Links, e) 73672 } 73673 } 73674 } else { 73675 r.WriteMapElemKey() 73676 if z.IsJSONHandle() { 73677 z.WriteStr("\"Links\"") 73678 } else { 73679 r.EncodeStringEnc(codecSelferCcUTF8100, `Links`) 73680 } 73681 r.WriteMapElemValue() 73682 if x.Links == nil { 73683 r.EncodeNil() 73684 } else { 73685 if false { 73686 } else { 73687 z.F.EncMapStringStringV(x.Links, e) 73688 } 73689 } 73690 } 73691 if yyr2 || yy2arr2 { 73692 r.WriteArrayElem() 73693 if x.Meta == nil { 73694 r.EncodeNil() 73695 } else { 73696 if false { 73697 } else { 73698 z.F.EncMapStringStringV(x.Meta, e) 73699 } 73700 } 73701 } else { 73702 r.WriteMapElemKey() 73703 if z.IsJSONHandle() { 73704 z.WriteStr("\"Meta\"") 73705 } else { 73706 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 73707 } 73708 r.WriteMapElemValue() 73709 if x.Meta == nil { 73710 r.EncodeNil() 73711 } else { 73712 if false { 73713 } else { 73714 z.F.EncMapStringStringV(x.Meta, e) 73715 } 73716 } 73717 } 73718 if yyr2 || yy2arr2 { 73719 r.WriteArrayElem() 73720 if false { 73721 } else { 73722 if z.EncBasicHandle().StringToRaw { 73723 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 73724 } else { 73725 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 73726 } 73727 } 73728 } else { 73729 r.WriteMapElemKey() 73730 if z.IsJSONHandle() { 73731 z.WriteStr("\"NodeClass\"") 73732 } else { 73733 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) 73734 } 73735 r.WriteMapElemValue() 73736 if false { 73737 } else { 73738 if z.EncBasicHandle().StringToRaw { 73739 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 73740 } else { 73741 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 73742 } 73743 } 73744 } 73745 if yyr2 || yy2arr2 { 73746 r.WriteArrayElem() 73747 if false { 73748 } else { 73749 if z.EncBasicHandle().StringToRaw { 73750 r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) 73751 } else { 73752 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) 73753 } 73754 } 73755 } else { 73756 r.WriteMapElemKey() 73757 if z.IsJSONHandle() { 73758 z.WriteStr("\"ComputedClass\"") 73759 } else { 73760 r.EncodeStringEnc(codecSelferCcUTF8100, `ComputedClass`) 73761 } 73762 r.WriteMapElemValue() 73763 if false { 73764 } else { 73765 if z.EncBasicHandle().StringToRaw { 73766 r.EncodeStringBytesRaw(z.BytesView(string(x.ComputedClass))) 73767 } else { 73768 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ComputedClass)) 73769 } 73770 } 73771 } 73772 if yyr2 || yy2arr2 { 73773 r.WriteArrayElem() 73774 if false { 73775 } else { 73776 r.EncodeBool(bool(x.Drain)) 73777 } 73778 } else { 73779 r.WriteMapElemKey() 73780 if z.IsJSONHandle() { 73781 z.WriteStr("\"Drain\"") 73782 } else { 73783 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 73784 } 73785 r.WriteMapElemValue() 73786 if false { 73787 } else { 73788 r.EncodeBool(bool(x.Drain)) 73789 } 73790 } 73791 var yyn51 bool 73792 if x.DrainStrategy == nil { 73793 yyn51 = true 73794 goto LABEL51 73795 } 73796 LABEL51: 73797 if yyr2 || yy2arr2 { 73798 if yyn51 { 73799 r.WriteArrayElem() 73800 r.EncodeNil() 73801 } else { 73802 r.WriteArrayElem() 73803 if x.DrainStrategy == nil { 73804 r.EncodeNil() 73805 } else { 73806 x.DrainStrategy.CodecEncodeSelf(e) 73807 } 73808 } 73809 } else { 73810 r.WriteMapElemKey() 73811 if z.IsJSONHandle() { 73812 z.WriteStr("\"DrainStrategy\"") 73813 } else { 73814 r.EncodeStringEnc(codecSelferCcUTF8100, `DrainStrategy`) 73815 } 73816 r.WriteMapElemValue() 73817 if yyn51 { 73818 r.EncodeNil() 73819 } else { 73820 if x.DrainStrategy == nil { 73821 r.EncodeNil() 73822 } else { 73823 x.DrainStrategy.CodecEncodeSelf(e) 73824 } 73825 } 73826 } 73827 if yyr2 || yy2arr2 { 73828 r.WriteArrayElem() 73829 if false { 73830 } else { 73831 if z.EncBasicHandle().StringToRaw { 73832 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 73833 } else { 73834 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 73835 } 73836 } 73837 } else { 73838 r.WriteMapElemKey() 73839 if z.IsJSONHandle() { 73840 z.WriteStr("\"SchedulingEligibility\"") 73841 } else { 73842 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) 73843 } 73844 r.WriteMapElemValue() 73845 if false { 73846 } else { 73847 if z.EncBasicHandle().StringToRaw { 73848 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 73849 } else { 73850 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 73851 } 73852 } 73853 } 73854 if yyr2 || yy2arr2 { 73855 r.WriteArrayElem() 73856 if false { 73857 } else { 73858 if z.EncBasicHandle().StringToRaw { 73859 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 73860 } else { 73861 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 73862 } 73863 } 73864 } else { 73865 r.WriteMapElemKey() 73866 if z.IsJSONHandle() { 73867 z.WriteStr("\"Status\"") 73868 } else { 73869 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 73870 } 73871 r.WriteMapElemValue() 73872 if false { 73873 } else { 73874 if z.EncBasicHandle().StringToRaw { 73875 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 73876 } else { 73877 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 73878 } 73879 } 73880 } 73881 if yyr2 || yy2arr2 { 73882 r.WriteArrayElem() 73883 if false { 73884 } else { 73885 if z.EncBasicHandle().StringToRaw { 73886 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 73887 } else { 73888 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 73889 } 73890 } 73891 } else { 73892 r.WriteMapElemKey() 73893 if z.IsJSONHandle() { 73894 z.WriteStr("\"StatusDescription\"") 73895 } else { 73896 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 73897 } 73898 r.WriteMapElemValue() 73899 if false { 73900 } else { 73901 if z.EncBasicHandle().StringToRaw { 73902 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 73903 } else { 73904 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 73905 } 73906 } 73907 } 73908 if yyr2 || yy2arr2 { 73909 r.WriteArrayElem() 73910 if false { 73911 } else { 73912 r.EncodeInt(int64(x.StatusUpdatedAt)) 73913 } 73914 } else { 73915 r.WriteMapElemKey() 73916 if z.IsJSONHandle() { 73917 z.WriteStr("\"StatusUpdatedAt\"") 73918 } else { 73919 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusUpdatedAt`) 73920 } 73921 r.WriteMapElemValue() 73922 if false { 73923 } else { 73924 r.EncodeInt(int64(x.StatusUpdatedAt)) 73925 } 73926 } 73927 if yyr2 || yy2arr2 { 73928 r.WriteArrayElem() 73929 if x.Events == nil { 73930 r.EncodeNil() 73931 } else { 73932 if false { 73933 } else { 73934 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) 73935 } 73936 } 73937 } else { 73938 r.WriteMapElemKey() 73939 if z.IsJSONHandle() { 73940 z.WriteStr("\"Events\"") 73941 } else { 73942 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 73943 } 73944 r.WriteMapElemValue() 73945 if x.Events == nil { 73946 r.EncodeNil() 73947 } else { 73948 if false { 73949 } else { 73950 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(x.Events), e) 73951 } 73952 } 73953 } 73954 if yyr2 || yy2arr2 { 73955 r.WriteArrayElem() 73956 if x.Drivers == nil { 73957 r.EncodeNil() 73958 } else { 73959 if false { 73960 } else { 73961 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 73962 } 73963 } 73964 } else { 73965 r.WriteMapElemKey() 73966 if z.IsJSONHandle() { 73967 z.WriteStr("\"Drivers\"") 73968 } else { 73969 r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) 73970 } 73971 r.WriteMapElemValue() 73972 if x.Drivers == nil { 73973 r.EncodeNil() 73974 } else { 73975 if false { 73976 } else { 73977 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 73978 } 73979 } 73980 } 73981 if yyr2 || yy2arr2 { 73982 r.WriteArrayElem() 73983 if x.CSIControllerPlugins == nil { 73984 r.EncodeNil() 73985 } else { 73986 if false { 73987 } else { 73988 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) 73989 } 73990 } 73991 } else { 73992 r.WriteMapElemKey() 73993 if z.IsJSONHandle() { 73994 z.WriteStr("\"CSIControllerPlugins\"") 73995 } else { 73996 r.EncodeStringEnc(codecSelferCcUTF8100, `CSIControllerPlugins`) 73997 } 73998 r.WriteMapElemValue() 73999 if x.CSIControllerPlugins == nil { 74000 r.EncodeNil() 74001 } else { 74002 if false { 74003 } else { 74004 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSIControllerPlugins), e) 74005 } 74006 } 74007 } 74008 if yyr2 || yy2arr2 { 74009 r.WriteArrayElem() 74010 if x.CSINodePlugins == nil { 74011 r.EncodeNil() 74012 } else { 74013 if false { 74014 } else { 74015 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) 74016 } 74017 } 74018 } else { 74019 r.WriteMapElemKey() 74020 if z.IsJSONHandle() { 74021 z.WriteStr("\"CSINodePlugins\"") 74022 } else { 74023 r.EncodeStringEnc(codecSelferCcUTF8100, `CSINodePlugins`) 74024 } 74025 r.WriteMapElemValue() 74026 if x.CSINodePlugins == nil { 74027 r.EncodeNil() 74028 } else { 74029 if false { 74030 } else { 74031 h.encMapstringPtrtoCSIInfo((map[string]*CSIInfo)(x.CSINodePlugins), e) 74032 } 74033 } 74034 } 74035 if yyr2 || yy2arr2 { 74036 r.WriteArrayElem() 74037 if x.HostVolumes == nil { 74038 r.EncodeNil() 74039 } else { 74040 if false { 74041 } else { 74042 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 74043 } 74044 } 74045 } else { 74046 r.WriteMapElemKey() 74047 if z.IsJSONHandle() { 74048 z.WriteStr("\"HostVolumes\"") 74049 } else { 74050 r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) 74051 } 74052 r.WriteMapElemValue() 74053 if x.HostVolumes == nil { 74054 r.EncodeNil() 74055 } else { 74056 if false { 74057 } else { 74058 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 74059 } 74060 } 74061 } 74062 if yyr2 || yy2arr2 { 74063 r.WriteArrayElem() 74064 if false { 74065 } else { 74066 r.EncodeUint(uint64(x.CreateIndex)) 74067 } 74068 } else { 74069 r.WriteMapElemKey() 74070 if z.IsJSONHandle() { 74071 z.WriteStr("\"CreateIndex\"") 74072 } else { 74073 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 74074 } 74075 r.WriteMapElemValue() 74076 if false { 74077 } else { 74078 r.EncodeUint(uint64(x.CreateIndex)) 74079 } 74080 } 74081 if yyr2 || yy2arr2 { 74082 r.WriteArrayElem() 74083 if false { 74084 } else { 74085 r.EncodeUint(uint64(x.ModifyIndex)) 74086 } 74087 } else { 74088 r.WriteMapElemKey() 74089 if z.IsJSONHandle() { 74090 z.WriteStr("\"ModifyIndex\"") 74091 } else { 74092 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 74093 } 74094 r.WriteMapElemValue() 74095 if false { 74096 } else { 74097 r.EncodeUint(uint64(x.ModifyIndex)) 74098 } 74099 } 74100 if yyr2 || yy2arr2 { 74101 r.WriteArrayEnd() 74102 } else { 74103 r.WriteMapEnd() 74104 } 74105 } 74106 } 74107 } 74108 74109 func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { 74110 var h codecSelfer100 74111 z, r := codec1978.GenHelperDecoder(d) 74112 _, _, _ = h, z, r 74113 if false { 74114 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74115 z.DecExtension(x, yyxt1) 74116 } else { 74117 yyct2 := r.ContainerType() 74118 if yyct2 == codecSelferValueTypeMap100 { 74119 yyl2 := r.ReadMapStart() 74120 if yyl2 == 0 { 74121 r.ReadMapEnd() 74122 } else { 74123 x.codecDecodeSelfFromMap(yyl2, d) 74124 } 74125 } else if yyct2 == codecSelferValueTypeArray100 { 74126 yyl2 := r.ReadArrayStart() 74127 if yyl2 == 0 { 74128 r.ReadArrayEnd() 74129 } else { 74130 x.codecDecodeSelfFromArray(yyl2, d) 74131 } 74132 } else { 74133 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 74134 } 74135 } 74136 } 74137 74138 func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 74139 var h codecSelfer100 74140 z, r := codec1978.GenHelperDecoder(d) 74141 _, _, _ = h, z, r 74142 var yyhl3 bool = l >= 0 74143 for yyj3 := 0; ; yyj3++ { 74144 if yyhl3 { 74145 if yyj3 >= l { 74146 break 74147 } 74148 } else { 74149 if r.CheckBreak() { 74150 break 74151 } 74152 } 74153 r.ReadMapElemKey() 74154 yys3 := z.StringView(r.DecodeStringAsBytes()) 74155 r.ReadMapElemValue() 74156 switch yys3 { 74157 case "ID": 74158 if r.TryDecodeAsNil() { 74159 x.ID = "" 74160 } else { 74161 x.ID = (string)(r.DecodeString()) 74162 } 74163 case "SecretID": 74164 if r.TryDecodeAsNil() { 74165 x.SecretID = "" 74166 } else { 74167 x.SecretID = (string)(r.DecodeString()) 74168 } 74169 case "Datacenter": 74170 if r.TryDecodeAsNil() { 74171 x.Datacenter = "" 74172 } else { 74173 x.Datacenter = (string)(r.DecodeString()) 74174 } 74175 case "Name": 74176 if r.TryDecodeAsNil() { 74177 x.Name = "" 74178 } else { 74179 x.Name = (string)(r.DecodeString()) 74180 } 74181 case "HTTPAddr": 74182 if r.TryDecodeAsNil() { 74183 x.HTTPAddr = "" 74184 } else { 74185 x.HTTPAddr = (string)(r.DecodeString()) 74186 } 74187 case "TLSEnabled": 74188 if r.TryDecodeAsNil() { 74189 x.TLSEnabled = false 74190 } else { 74191 x.TLSEnabled = (bool)(r.DecodeBool()) 74192 } 74193 case "Attributes": 74194 if r.TryDecodeAsNil() { 74195 x.Attributes = nil 74196 } else { 74197 if false { 74198 } else { 74199 z.F.DecMapStringStringX(&x.Attributes, d) 74200 } 74201 } 74202 case "NodeResources": 74203 if r.TryDecodeAsNil() { 74204 if true && x.NodeResources != nil { 74205 x.NodeResources = nil 74206 } 74207 } else { 74208 if x.NodeResources == nil { 74209 x.NodeResources = new(NodeResources) 74210 } 74211 74212 x.NodeResources.CodecDecodeSelf(d) 74213 } 74214 case "ReservedResources": 74215 if r.TryDecodeAsNil() { 74216 if true && x.ReservedResources != nil { 74217 x.ReservedResources = nil 74218 } 74219 } else { 74220 if x.ReservedResources == nil { 74221 x.ReservedResources = new(NodeReservedResources) 74222 } 74223 74224 x.ReservedResources.CodecDecodeSelf(d) 74225 } 74226 case "Resources": 74227 if r.TryDecodeAsNil() { 74228 if true && x.Resources != nil { 74229 x.Resources = nil 74230 } 74231 } else { 74232 if x.Resources == nil { 74233 x.Resources = new(Resources) 74234 } 74235 74236 x.Resources.CodecDecodeSelf(d) 74237 } 74238 case "Reserved": 74239 if r.TryDecodeAsNil() { 74240 if true && x.Reserved != nil { 74241 x.Reserved = nil 74242 } 74243 } else { 74244 if x.Reserved == nil { 74245 x.Reserved = new(Resources) 74246 } 74247 74248 x.Reserved.CodecDecodeSelf(d) 74249 } 74250 case "Links": 74251 if r.TryDecodeAsNil() { 74252 x.Links = nil 74253 } else { 74254 if false { 74255 } else { 74256 z.F.DecMapStringStringX(&x.Links, d) 74257 } 74258 } 74259 case "Meta": 74260 if r.TryDecodeAsNil() { 74261 x.Meta = nil 74262 } else { 74263 if false { 74264 } else { 74265 z.F.DecMapStringStringX(&x.Meta, d) 74266 } 74267 } 74268 case "NodeClass": 74269 if r.TryDecodeAsNil() { 74270 x.NodeClass = "" 74271 } else { 74272 x.NodeClass = (string)(r.DecodeString()) 74273 } 74274 case "ComputedClass": 74275 if r.TryDecodeAsNil() { 74276 x.ComputedClass = "" 74277 } else { 74278 x.ComputedClass = (string)(r.DecodeString()) 74279 } 74280 case "Drain": 74281 if r.TryDecodeAsNil() { 74282 x.Drain = false 74283 } else { 74284 x.Drain = (bool)(r.DecodeBool()) 74285 } 74286 case "DrainStrategy": 74287 if r.TryDecodeAsNil() { 74288 if true && x.DrainStrategy != nil { 74289 x.DrainStrategy = nil 74290 } 74291 } else { 74292 if x.DrainStrategy == nil { 74293 x.DrainStrategy = new(DrainStrategy) 74294 } 74295 74296 x.DrainStrategy.CodecDecodeSelf(d) 74297 } 74298 case "SchedulingEligibility": 74299 if r.TryDecodeAsNil() { 74300 x.SchedulingEligibility = "" 74301 } else { 74302 x.SchedulingEligibility = (string)(r.DecodeString()) 74303 } 74304 case "Status": 74305 if r.TryDecodeAsNil() { 74306 x.Status = "" 74307 } else { 74308 x.Status = (string)(r.DecodeString()) 74309 } 74310 case "StatusDescription": 74311 if r.TryDecodeAsNil() { 74312 x.StatusDescription = "" 74313 } else { 74314 x.StatusDescription = (string)(r.DecodeString()) 74315 } 74316 case "StatusUpdatedAt": 74317 if r.TryDecodeAsNil() { 74318 x.StatusUpdatedAt = 0 74319 } else { 74320 x.StatusUpdatedAt = (int64)(r.DecodeInt64()) 74321 } 74322 case "Events": 74323 if r.TryDecodeAsNil() { 74324 x.Events = nil 74325 } else { 74326 if false { 74327 } else { 74328 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) 74329 } 74330 } 74331 case "Drivers": 74332 if r.TryDecodeAsNil() { 74333 x.Drivers = nil 74334 } else { 74335 if false { 74336 } else { 74337 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 74338 } 74339 } 74340 case "CSIControllerPlugins": 74341 if r.TryDecodeAsNil() { 74342 x.CSIControllerPlugins = nil 74343 } else { 74344 if false { 74345 } else { 74346 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) 74347 } 74348 } 74349 case "CSINodePlugins": 74350 if r.TryDecodeAsNil() { 74351 x.CSINodePlugins = nil 74352 } else { 74353 if false { 74354 } else { 74355 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) 74356 } 74357 } 74358 case "HostVolumes": 74359 if r.TryDecodeAsNil() { 74360 x.HostVolumes = nil 74361 } else { 74362 if false { 74363 } else { 74364 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 74365 } 74366 } 74367 case "CreateIndex": 74368 if r.TryDecodeAsNil() { 74369 x.CreateIndex = 0 74370 } else { 74371 x.CreateIndex = (uint64)(r.DecodeUint64()) 74372 } 74373 case "ModifyIndex": 74374 if r.TryDecodeAsNil() { 74375 x.ModifyIndex = 0 74376 } else { 74377 x.ModifyIndex = (uint64)(r.DecodeUint64()) 74378 } 74379 default: 74380 z.DecStructFieldNotFound(-1, yys3) 74381 } // end switch yys3 74382 } // end for yyj3 74383 r.ReadMapEnd() 74384 } 74385 74386 func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 74387 var h codecSelfer100 74388 z, r := codec1978.GenHelperDecoder(d) 74389 _, _, _ = h, z, r 74390 var yyj40 int 74391 var yyb40 bool 74392 var yyhl40 bool = l >= 0 74393 yyj40++ 74394 if yyhl40 { 74395 yyb40 = yyj40 > l 74396 } else { 74397 yyb40 = r.CheckBreak() 74398 } 74399 if yyb40 { 74400 r.ReadArrayEnd() 74401 return 74402 } 74403 r.ReadArrayElem() 74404 if r.TryDecodeAsNil() { 74405 x.ID = "" 74406 } else { 74407 x.ID = (string)(r.DecodeString()) 74408 } 74409 yyj40++ 74410 if yyhl40 { 74411 yyb40 = yyj40 > l 74412 } else { 74413 yyb40 = r.CheckBreak() 74414 } 74415 if yyb40 { 74416 r.ReadArrayEnd() 74417 return 74418 } 74419 r.ReadArrayElem() 74420 if r.TryDecodeAsNil() { 74421 x.SecretID = "" 74422 } else { 74423 x.SecretID = (string)(r.DecodeString()) 74424 } 74425 yyj40++ 74426 if yyhl40 { 74427 yyb40 = yyj40 > l 74428 } else { 74429 yyb40 = r.CheckBreak() 74430 } 74431 if yyb40 { 74432 r.ReadArrayEnd() 74433 return 74434 } 74435 r.ReadArrayElem() 74436 if r.TryDecodeAsNil() { 74437 x.Datacenter = "" 74438 } else { 74439 x.Datacenter = (string)(r.DecodeString()) 74440 } 74441 yyj40++ 74442 if yyhl40 { 74443 yyb40 = yyj40 > l 74444 } else { 74445 yyb40 = r.CheckBreak() 74446 } 74447 if yyb40 { 74448 r.ReadArrayEnd() 74449 return 74450 } 74451 r.ReadArrayElem() 74452 if r.TryDecodeAsNil() { 74453 x.Name = "" 74454 } else { 74455 x.Name = (string)(r.DecodeString()) 74456 } 74457 yyj40++ 74458 if yyhl40 { 74459 yyb40 = yyj40 > l 74460 } else { 74461 yyb40 = r.CheckBreak() 74462 } 74463 if yyb40 { 74464 r.ReadArrayEnd() 74465 return 74466 } 74467 r.ReadArrayElem() 74468 if r.TryDecodeAsNil() { 74469 x.HTTPAddr = "" 74470 } else { 74471 x.HTTPAddr = (string)(r.DecodeString()) 74472 } 74473 yyj40++ 74474 if yyhl40 { 74475 yyb40 = yyj40 > l 74476 } else { 74477 yyb40 = r.CheckBreak() 74478 } 74479 if yyb40 { 74480 r.ReadArrayEnd() 74481 return 74482 } 74483 r.ReadArrayElem() 74484 if r.TryDecodeAsNil() { 74485 x.TLSEnabled = false 74486 } else { 74487 x.TLSEnabled = (bool)(r.DecodeBool()) 74488 } 74489 yyj40++ 74490 if yyhl40 { 74491 yyb40 = yyj40 > l 74492 } else { 74493 yyb40 = r.CheckBreak() 74494 } 74495 if yyb40 { 74496 r.ReadArrayEnd() 74497 return 74498 } 74499 r.ReadArrayElem() 74500 if r.TryDecodeAsNil() { 74501 x.Attributes = nil 74502 } else { 74503 if false { 74504 } else { 74505 z.F.DecMapStringStringX(&x.Attributes, d) 74506 } 74507 } 74508 yyj40++ 74509 if yyhl40 { 74510 yyb40 = yyj40 > l 74511 } else { 74512 yyb40 = r.CheckBreak() 74513 } 74514 if yyb40 { 74515 r.ReadArrayEnd() 74516 return 74517 } 74518 r.ReadArrayElem() 74519 if r.TryDecodeAsNil() { 74520 if true && x.NodeResources != nil { 74521 x.NodeResources = nil 74522 } 74523 } else { 74524 if x.NodeResources == nil { 74525 x.NodeResources = new(NodeResources) 74526 } 74527 74528 x.NodeResources.CodecDecodeSelf(d) 74529 } 74530 yyj40++ 74531 if yyhl40 { 74532 yyb40 = yyj40 > l 74533 } else { 74534 yyb40 = r.CheckBreak() 74535 } 74536 if yyb40 { 74537 r.ReadArrayEnd() 74538 return 74539 } 74540 r.ReadArrayElem() 74541 if r.TryDecodeAsNil() { 74542 if true && x.ReservedResources != nil { 74543 x.ReservedResources = nil 74544 } 74545 } else { 74546 if x.ReservedResources == nil { 74547 x.ReservedResources = new(NodeReservedResources) 74548 } 74549 74550 x.ReservedResources.CodecDecodeSelf(d) 74551 } 74552 yyj40++ 74553 if yyhl40 { 74554 yyb40 = yyj40 > l 74555 } else { 74556 yyb40 = r.CheckBreak() 74557 } 74558 if yyb40 { 74559 r.ReadArrayEnd() 74560 return 74561 } 74562 r.ReadArrayElem() 74563 if r.TryDecodeAsNil() { 74564 if true && x.Resources != nil { 74565 x.Resources = nil 74566 } 74567 } else { 74568 if x.Resources == nil { 74569 x.Resources = new(Resources) 74570 } 74571 74572 x.Resources.CodecDecodeSelf(d) 74573 } 74574 yyj40++ 74575 if yyhl40 { 74576 yyb40 = yyj40 > l 74577 } else { 74578 yyb40 = r.CheckBreak() 74579 } 74580 if yyb40 { 74581 r.ReadArrayEnd() 74582 return 74583 } 74584 r.ReadArrayElem() 74585 if r.TryDecodeAsNil() { 74586 if true && x.Reserved != nil { 74587 x.Reserved = nil 74588 } 74589 } else { 74590 if x.Reserved == nil { 74591 x.Reserved = new(Resources) 74592 } 74593 74594 x.Reserved.CodecDecodeSelf(d) 74595 } 74596 yyj40++ 74597 if yyhl40 { 74598 yyb40 = yyj40 > l 74599 } else { 74600 yyb40 = r.CheckBreak() 74601 } 74602 if yyb40 { 74603 r.ReadArrayEnd() 74604 return 74605 } 74606 r.ReadArrayElem() 74607 if r.TryDecodeAsNil() { 74608 x.Links = nil 74609 } else { 74610 if false { 74611 } else { 74612 z.F.DecMapStringStringX(&x.Links, d) 74613 } 74614 } 74615 yyj40++ 74616 if yyhl40 { 74617 yyb40 = yyj40 > l 74618 } else { 74619 yyb40 = r.CheckBreak() 74620 } 74621 if yyb40 { 74622 r.ReadArrayEnd() 74623 return 74624 } 74625 r.ReadArrayElem() 74626 if r.TryDecodeAsNil() { 74627 x.Meta = nil 74628 } else { 74629 if false { 74630 } else { 74631 z.F.DecMapStringStringX(&x.Meta, d) 74632 } 74633 } 74634 yyj40++ 74635 if yyhl40 { 74636 yyb40 = yyj40 > l 74637 } else { 74638 yyb40 = r.CheckBreak() 74639 } 74640 if yyb40 { 74641 r.ReadArrayEnd() 74642 return 74643 } 74644 r.ReadArrayElem() 74645 if r.TryDecodeAsNil() { 74646 x.NodeClass = "" 74647 } else { 74648 x.NodeClass = (string)(r.DecodeString()) 74649 } 74650 yyj40++ 74651 if yyhl40 { 74652 yyb40 = yyj40 > l 74653 } else { 74654 yyb40 = r.CheckBreak() 74655 } 74656 if yyb40 { 74657 r.ReadArrayEnd() 74658 return 74659 } 74660 r.ReadArrayElem() 74661 if r.TryDecodeAsNil() { 74662 x.ComputedClass = "" 74663 } else { 74664 x.ComputedClass = (string)(r.DecodeString()) 74665 } 74666 yyj40++ 74667 if yyhl40 { 74668 yyb40 = yyj40 > l 74669 } else { 74670 yyb40 = r.CheckBreak() 74671 } 74672 if yyb40 { 74673 r.ReadArrayEnd() 74674 return 74675 } 74676 r.ReadArrayElem() 74677 if r.TryDecodeAsNil() { 74678 x.Drain = false 74679 } else { 74680 x.Drain = (bool)(r.DecodeBool()) 74681 } 74682 yyj40++ 74683 if yyhl40 { 74684 yyb40 = yyj40 > l 74685 } else { 74686 yyb40 = r.CheckBreak() 74687 } 74688 if yyb40 { 74689 r.ReadArrayEnd() 74690 return 74691 } 74692 r.ReadArrayElem() 74693 if r.TryDecodeAsNil() { 74694 if true && x.DrainStrategy != nil { 74695 x.DrainStrategy = nil 74696 } 74697 } else { 74698 if x.DrainStrategy == nil { 74699 x.DrainStrategy = new(DrainStrategy) 74700 } 74701 74702 x.DrainStrategy.CodecDecodeSelf(d) 74703 } 74704 yyj40++ 74705 if yyhl40 { 74706 yyb40 = yyj40 > l 74707 } else { 74708 yyb40 = r.CheckBreak() 74709 } 74710 if yyb40 { 74711 r.ReadArrayEnd() 74712 return 74713 } 74714 r.ReadArrayElem() 74715 if r.TryDecodeAsNil() { 74716 x.SchedulingEligibility = "" 74717 } else { 74718 x.SchedulingEligibility = (string)(r.DecodeString()) 74719 } 74720 yyj40++ 74721 if yyhl40 { 74722 yyb40 = yyj40 > l 74723 } else { 74724 yyb40 = r.CheckBreak() 74725 } 74726 if yyb40 { 74727 r.ReadArrayEnd() 74728 return 74729 } 74730 r.ReadArrayElem() 74731 if r.TryDecodeAsNil() { 74732 x.Status = "" 74733 } else { 74734 x.Status = (string)(r.DecodeString()) 74735 } 74736 yyj40++ 74737 if yyhl40 { 74738 yyb40 = yyj40 > l 74739 } else { 74740 yyb40 = r.CheckBreak() 74741 } 74742 if yyb40 { 74743 r.ReadArrayEnd() 74744 return 74745 } 74746 r.ReadArrayElem() 74747 if r.TryDecodeAsNil() { 74748 x.StatusDescription = "" 74749 } else { 74750 x.StatusDescription = (string)(r.DecodeString()) 74751 } 74752 yyj40++ 74753 if yyhl40 { 74754 yyb40 = yyj40 > l 74755 } else { 74756 yyb40 = r.CheckBreak() 74757 } 74758 if yyb40 { 74759 r.ReadArrayEnd() 74760 return 74761 } 74762 r.ReadArrayElem() 74763 if r.TryDecodeAsNil() { 74764 x.StatusUpdatedAt = 0 74765 } else { 74766 x.StatusUpdatedAt = (int64)(r.DecodeInt64()) 74767 } 74768 yyj40++ 74769 if yyhl40 { 74770 yyb40 = yyj40 > l 74771 } else { 74772 yyb40 = r.CheckBreak() 74773 } 74774 if yyb40 { 74775 r.ReadArrayEnd() 74776 return 74777 } 74778 r.ReadArrayElem() 74779 if r.TryDecodeAsNil() { 74780 x.Events = nil 74781 } else { 74782 if false { 74783 } else { 74784 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&x.Events), d) 74785 } 74786 } 74787 yyj40++ 74788 if yyhl40 { 74789 yyb40 = yyj40 > l 74790 } else { 74791 yyb40 = r.CheckBreak() 74792 } 74793 if yyb40 { 74794 r.ReadArrayEnd() 74795 return 74796 } 74797 r.ReadArrayElem() 74798 if r.TryDecodeAsNil() { 74799 x.Drivers = nil 74800 } else { 74801 if false { 74802 } else { 74803 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 74804 } 74805 } 74806 yyj40++ 74807 if yyhl40 { 74808 yyb40 = yyj40 > l 74809 } else { 74810 yyb40 = r.CheckBreak() 74811 } 74812 if yyb40 { 74813 r.ReadArrayEnd() 74814 return 74815 } 74816 r.ReadArrayElem() 74817 if r.TryDecodeAsNil() { 74818 x.CSIControllerPlugins = nil 74819 } else { 74820 if false { 74821 } else { 74822 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSIControllerPlugins), d) 74823 } 74824 } 74825 yyj40++ 74826 if yyhl40 { 74827 yyb40 = yyj40 > l 74828 } else { 74829 yyb40 = r.CheckBreak() 74830 } 74831 if yyb40 { 74832 r.ReadArrayEnd() 74833 return 74834 } 74835 r.ReadArrayElem() 74836 if r.TryDecodeAsNil() { 74837 x.CSINodePlugins = nil 74838 } else { 74839 if false { 74840 } else { 74841 h.decMapstringPtrtoCSIInfo((*map[string]*CSIInfo)(&x.CSINodePlugins), d) 74842 } 74843 } 74844 yyj40++ 74845 if yyhl40 { 74846 yyb40 = yyj40 > l 74847 } else { 74848 yyb40 = r.CheckBreak() 74849 } 74850 if yyb40 { 74851 r.ReadArrayEnd() 74852 return 74853 } 74854 r.ReadArrayElem() 74855 if r.TryDecodeAsNil() { 74856 x.HostVolumes = nil 74857 } else { 74858 if false { 74859 } else { 74860 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 74861 } 74862 } 74863 yyj40++ 74864 if yyhl40 { 74865 yyb40 = yyj40 > l 74866 } else { 74867 yyb40 = r.CheckBreak() 74868 } 74869 if yyb40 { 74870 r.ReadArrayEnd() 74871 return 74872 } 74873 r.ReadArrayElem() 74874 if r.TryDecodeAsNil() { 74875 x.CreateIndex = 0 74876 } else { 74877 x.CreateIndex = (uint64)(r.DecodeUint64()) 74878 } 74879 yyj40++ 74880 if yyhl40 { 74881 yyb40 = yyj40 > l 74882 } else { 74883 yyb40 = r.CheckBreak() 74884 } 74885 if yyb40 { 74886 r.ReadArrayEnd() 74887 return 74888 } 74889 r.ReadArrayElem() 74890 if r.TryDecodeAsNil() { 74891 x.ModifyIndex = 0 74892 } else { 74893 x.ModifyIndex = (uint64)(r.DecodeUint64()) 74894 } 74895 for { 74896 yyj40++ 74897 if yyhl40 { 74898 yyb40 = yyj40 > l 74899 } else { 74900 yyb40 = r.CheckBreak() 74901 } 74902 if yyb40 { 74903 break 74904 } 74905 r.ReadArrayElem() 74906 z.DecStructFieldNotFound(yyj40-1, "") 74907 } 74908 r.ReadArrayEnd() 74909 } 74910 74911 func (x *NodeListStub) CodecEncodeSelf(e *codec1978.Encoder) { 74912 var h codecSelfer100 74913 z, r := codec1978.GenHelperEncoder(e) 74914 _, _, _ = h, z, r 74915 if x == nil { 74916 r.EncodeNil() 74917 } else { 74918 if false { 74919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 74920 z.EncExtension(x, yyxt1) 74921 } else { 74922 yysep2 := !z.EncBinary() 74923 yy2arr2 := z.EncBasicHandle().StructToArray 74924 _, _ = yysep2, yy2arr2 74925 const yyr2 bool = false // struct tag has 'toArray' 74926 if yyr2 || yy2arr2 { 74927 r.WriteArrayStart(14) 74928 } else { 74929 r.WriteMapStart(14) 74930 } 74931 if yyr2 || yy2arr2 { 74932 r.WriteArrayElem() 74933 if false { 74934 } else { 74935 if z.EncBasicHandle().StringToRaw { 74936 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 74937 } else { 74938 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 74939 } 74940 } 74941 } else { 74942 r.WriteMapElemKey() 74943 if z.IsJSONHandle() { 74944 z.WriteStr("\"Address\"") 74945 } else { 74946 r.EncodeStringEnc(codecSelferCcUTF8100, `Address`) 74947 } 74948 r.WriteMapElemValue() 74949 if false { 74950 } else { 74951 if z.EncBasicHandle().StringToRaw { 74952 r.EncodeStringBytesRaw(z.BytesView(string(x.Address))) 74953 } else { 74954 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Address)) 74955 } 74956 } 74957 } 74958 if yyr2 || yy2arr2 { 74959 r.WriteArrayElem() 74960 if false { 74961 } else { 74962 if z.EncBasicHandle().StringToRaw { 74963 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 74964 } else { 74965 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 74966 } 74967 } 74968 } else { 74969 r.WriteMapElemKey() 74970 if z.IsJSONHandle() { 74971 z.WriteStr("\"ID\"") 74972 } else { 74973 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 74974 } 74975 r.WriteMapElemValue() 74976 if false { 74977 } else { 74978 if z.EncBasicHandle().StringToRaw { 74979 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 74980 } else { 74981 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 74982 } 74983 } 74984 } 74985 if yyr2 || yy2arr2 { 74986 r.WriteArrayElem() 74987 if false { 74988 } else { 74989 if z.EncBasicHandle().StringToRaw { 74990 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 74991 } else { 74992 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 74993 } 74994 } 74995 } else { 74996 r.WriteMapElemKey() 74997 if z.IsJSONHandle() { 74998 z.WriteStr("\"Datacenter\"") 74999 } else { 75000 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenter`) 75001 } 75002 r.WriteMapElemValue() 75003 if false { 75004 } else { 75005 if z.EncBasicHandle().StringToRaw { 75006 r.EncodeStringBytesRaw(z.BytesView(string(x.Datacenter))) 75007 } else { 75008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Datacenter)) 75009 } 75010 } 75011 } 75012 if yyr2 || yy2arr2 { 75013 r.WriteArrayElem() 75014 if false { 75015 } else { 75016 if z.EncBasicHandle().StringToRaw { 75017 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 75018 } else { 75019 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 75020 } 75021 } 75022 } else { 75023 r.WriteMapElemKey() 75024 if z.IsJSONHandle() { 75025 z.WriteStr("\"Name\"") 75026 } else { 75027 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 75028 } 75029 r.WriteMapElemValue() 75030 if false { 75031 } else { 75032 if z.EncBasicHandle().StringToRaw { 75033 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 75034 } else { 75035 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 75036 } 75037 } 75038 } 75039 if yyr2 || yy2arr2 { 75040 r.WriteArrayElem() 75041 if false { 75042 } else { 75043 if z.EncBasicHandle().StringToRaw { 75044 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 75045 } else { 75046 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 75047 } 75048 } 75049 } else { 75050 r.WriteMapElemKey() 75051 if z.IsJSONHandle() { 75052 z.WriteStr("\"NodeClass\"") 75053 } else { 75054 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeClass`) 75055 } 75056 r.WriteMapElemValue() 75057 if false { 75058 } else { 75059 if z.EncBasicHandle().StringToRaw { 75060 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeClass))) 75061 } else { 75062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeClass)) 75063 } 75064 } 75065 } 75066 if yyr2 || yy2arr2 { 75067 r.WriteArrayElem() 75068 if false { 75069 } else { 75070 if z.EncBasicHandle().StringToRaw { 75071 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 75072 } else { 75073 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 75074 } 75075 } 75076 } else { 75077 r.WriteMapElemKey() 75078 if z.IsJSONHandle() { 75079 z.WriteStr("\"Version\"") 75080 } else { 75081 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 75082 } 75083 r.WriteMapElemValue() 75084 if false { 75085 } else { 75086 if z.EncBasicHandle().StringToRaw { 75087 r.EncodeStringBytesRaw(z.BytesView(string(x.Version))) 75088 } else { 75089 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Version)) 75090 } 75091 } 75092 } 75093 if yyr2 || yy2arr2 { 75094 r.WriteArrayElem() 75095 if false { 75096 } else { 75097 r.EncodeBool(bool(x.Drain)) 75098 } 75099 } else { 75100 r.WriteMapElemKey() 75101 if z.IsJSONHandle() { 75102 z.WriteStr("\"Drain\"") 75103 } else { 75104 r.EncodeStringEnc(codecSelferCcUTF8100, `Drain`) 75105 } 75106 r.WriteMapElemValue() 75107 if false { 75108 } else { 75109 r.EncodeBool(bool(x.Drain)) 75110 } 75111 } 75112 if yyr2 || yy2arr2 { 75113 r.WriteArrayElem() 75114 if false { 75115 } else { 75116 if z.EncBasicHandle().StringToRaw { 75117 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 75118 } else { 75119 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 75120 } 75121 } 75122 } else { 75123 r.WriteMapElemKey() 75124 if z.IsJSONHandle() { 75125 z.WriteStr("\"SchedulingEligibility\"") 75126 } else { 75127 r.EncodeStringEnc(codecSelferCcUTF8100, `SchedulingEligibility`) 75128 } 75129 r.WriteMapElemValue() 75130 if false { 75131 } else { 75132 if z.EncBasicHandle().StringToRaw { 75133 r.EncodeStringBytesRaw(z.BytesView(string(x.SchedulingEligibility))) 75134 } else { 75135 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SchedulingEligibility)) 75136 } 75137 } 75138 } 75139 if yyr2 || yy2arr2 { 75140 r.WriteArrayElem() 75141 if false { 75142 } else { 75143 if z.EncBasicHandle().StringToRaw { 75144 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 75145 } else { 75146 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 75147 } 75148 } 75149 } else { 75150 r.WriteMapElemKey() 75151 if z.IsJSONHandle() { 75152 z.WriteStr("\"Status\"") 75153 } else { 75154 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 75155 } 75156 r.WriteMapElemValue() 75157 if false { 75158 } else { 75159 if z.EncBasicHandle().StringToRaw { 75160 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 75161 } else { 75162 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 75163 } 75164 } 75165 } 75166 if yyr2 || yy2arr2 { 75167 r.WriteArrayElem() 75168 if false { 75169 } else { 75170 if z.EncBasicHandle().StringToRaw { 75171 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 75172 } else { 75173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 75174 } 75175 } 75176 } else { 75177 r.WriteMapElemKey() 75178 if z.IsJSONHandle() { 75179 z.WriteStr("\"StatusDescription\"") 75180 } else { 75181 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 75182 } 75183 r.WriteMapElemValue() 75184 if false { 75185 } else { 75186 if z.EncBasicHandle().StringToRaw { 75187 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 75188 } else { 75189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 75190 } 75191 } 75192 } 75193 if yyr2 || yy2arr2 { 75194 r.WriteArrayElem() 75195 if x.Drivers == nil { 75196 r.EncodeNil() 75197 } else { 75198 if false { 75199 } else { 75200 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 75201 } 75202 } 75203 } else { 75204 r.WriteMapElemKey() 75205 if z.IsJSONHandle() { 75206 z.WriteStr("\"Drivers\"") 75207 } else { 75208 r.EncodeStringEnc(codecSelferCcUTF8100, `Drivers`) 75209 } 75210 r.WriteMapElemValue() 75211 if x.Drivers == nil { 75212 r.EncodeNil() 75213 } else { 75214 if false { 75215 } else { 75216 h.encMapstringPtrtoDriverInfo((map[string]*DriverInfo)(x.Drivers), e) 75217 } 75218 } 75219 } 75220 if yyr2 || yy2arr2 { 75221 r.WriteArrayElem() 75222 if x.HostVolumes == nil { 75223 r.EncodeNil() 75224 } else { 75225 if false { 75226 } else { 75227 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 75228 } 75229 } 75230 } else { 75231 r.WriteMapElemKey() 75232 if z.IsJSONHandle() { 75233 z.WriteStr("\"HostVolumes\"") 75234 } else { 75235 r.EncodeStringEnc(codecSelferCcUTF8100, `HostVolumes`) 75236 } 75237 r.WriteMapElemValue() 75238 if x.HostVolumes == nil { 75239 r.EncodeNil() 75240 } else { 75241 if false { 75242 } else { 75243 h.encMapstringPtrtoClientHostVolumeConfig((map[string]*ClientHostVolumeConfig)(x.HostVolumes), e) 75244 } 75245 } 75246 } 75247 if yyr2 || yy2arr2 { 75248 r.WriteArrayElem() 75249 if false { 75250 } else { 75251 r.EncodeUint(uint64(x.CreateIndex)) 75252 } 75253 } else { 75254 r.WriteMapElemKey() 75255 if z.IsJSONHandle() { 75256 z.WriteStr("\"CreateIndex\"") 75257 } else { 75258 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 75259 } 75260 r.WriteMapElemValue() 75261 if false { 75262 } else { 75263 r.EncodeUint(uint64(x.CreateIndex)) 75264 } 75265 } 75266 if yyr2 || yy2arr2 { 75267 r.WriteArrayElem() 75268 if false { 75269 } else { 75270 r.EncodeUint(uint64(x.ModifyIndex)) 75271 } 75272 } else { 75273 r.WriteMapElemKey() 75274 if z.IsJSONHandle() { 75275 z.WriteStr("\"ModifyIndex\"") 75276 } else { 75277 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 75278 } 75279 r.WriteMapElemValue() 75280 if false { 75281 } else { 75282 r.EncodeUint(uint64(x.ModifyIndex)) 75283 } 75284 } 75285 if yyr2 || yy2arr2 { 75286 r.WriteArrayEnd() 75287 } else { 75288 r.WriteMapEnd() 75289 } 75290 } 75291 } 75292 } 75293 75294 func (x *NodeListStub) CodecDecodeSelf(d *codec1978.Decoder) { 75295 var h codecSelfer100 75296 z, r := codec1978.GenHelperDecoder(d) 75297 _, _, _ = h, z, r 75298 if false { 75299 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75300 z.DecExtension(x, yyxt1) 75301 } else { 75302 yyct2 := r.ContainerType() 75303 if yyct2 == codecSelferValueTypeMap100 { 75304 yyl2 := r.ReadMapStart() 75305 if yyl2 == 0 { 75306 r.ReadMapEnd() 75307 } else { 75308 x.codecDecodeSelfFromMap(yyl2, d) 75309 } 75310 } else if yyct2 == codecSelferValueTypeArray100 { 75311 yyl2 := r.ReadArrayStart() 75312 if yyl2 == 0 { 75313 r.ReadArrayEnd() 75314 } else { 75315 x.codecDecodeSelfFromArray(yyl2, d) 75316 } 75317 } else { 75318 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75319 } 75320 } 75321 } 75322 75323 func (x *NodeListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75324 var h codecSelfer100 75325 z, r := codec1978.GenHelperDecoder(d) 75326 _, _, _ = h, z, r 75327 var yyhl3 bool = l >= 0 75328 for yyj3 := 0; ; yyj3++ { 75329 if yyhl3 { 75330 if yyj3 >= l { 75331 break 75332 } 75333 } else { 75334 if r.CheckBreak() { 75335 break 75336 } 75337 } 75338 r.ReadMapElemKey() 75339 yys3 := z.StringView(r.DecodeStringAsBytes()) 75340 r.ReadMapElemValue() 75341 switch yys3 { 75342 case "Address": 75343 if r.TryDecodeAsNil() { 75344 x.Address = "" 75345 } else { 75346 x.Address = (string)(r.DecodeString()) 75347 } 75348 case "ID": 75349 if r.TryDecodeAsNil() { 75350 x.ID = "" 75351 } else { 75352 x.ID = (string)(r.DecodeString()) 75353 } 75354 case "Datacenter": 75355 if r.TryDecodeAsNil() { 75356 x.Datacenter = "" 75357 } else { 75358 x.Datacenter = (string)(r.DecodeString()) 75359 } 75360 case "Name": 75361 if r.TryDecodeAsNil() { 75362 x.Name = "" 75363 } else { 75364 x.Name = (string)(r.DecodeString()) 75365 } 75366 case "NodeClass": 75367 if r.TryDecodeAsNil() { 75368 x.NodeClass = "" 75369 } else { 75370 x.NodeClass = (string)(r.DecodeString()) 75371 } 75372 case "Version": 75373 if r.TryDecodeAsNil() { 75374 x.Version = "" 75375 } else { 75376 x.Version = (string)(r.DecodeString()) 75377 } 75378 case "Drain": 75379 if r.TryDecodeAsNil() { 75380 x.Drain = false 75381 } else { 75382 x.Drain = (bool)(r.DecodeBool()) 75383 } 75384 case "SchedulingEligibility": 75385 if r.TryDecodeAsNil() { 75386 x.SchedulingEligibility = "" 75387 } else { 75388 x.SchedulingEligibility = (string)(r.DecodeString()) 75389 } 75390 case "Status": 75391 if r.TryDecodeAsNil() { 75392 x.Status = "" 75393 } else { 75394 x.Status = (string)(r.DecodeString()) 75395 } 75396 case "StatusDescription": 75397 if r.TryDecodeAsNil() { 75398 x.StatusDescription = "" 75399 } else { 75400 x.StatusDescription = (string)(r.DecodeString()) 75401 } 75402 case "Drivers": 75403 if r.TryDecodeAsNil() { 75404 x.Drivers = nil 75405 } else { 75406 if false { 75407 } else { 75408 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 75409 } 75410 } 75411 case "HostVolumes": 75412 if r.TryDecodeAsNil() { 75413 x.HostVolumes = nil 75414 } else { 75415 if false { 75416 } else { 75417 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 75418 } 75419 } 75420 case "CreateIndex": 75421 if r.TryDecodeAsNil() { 75422 x.CreateIndex = 0 75423 } else { 75424 x.CreateIndex = (uint64)(r.DecodeUint64()) 75425 } 75426 case "ModifyIndex": 75427 if r.TryDecodeAsNil() { 75428 x.ModifyIndex = 0 75429 } else { 75430 x.ModifyIndex = (uint64)(r.DecodeUint64()) 75431 } 75432 default: 75433 z.DecStructFieldNotFound(-1, yys3) 75434 } // end switch yys3 75435 } // end for yyj3 75436 r.ReadMapEnd() 75437 } 75438 75439 func (x *NodeListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75440 var h codecSelfer100 75441 z, r := codec1978.GenHelperDecoder(d) 75442 _, _, _ = h, z, r 75443 var yyj20 int 75444 var yyb20 bool 75445 var yyhl20 bool = l >= 0 75446 yyj20++ 75447 if yyhl20 { 75448 yyb20 = yyj20 > l 75449 } else { 75450 yyb20 = r.CheckBreak() 75451 } 75452 if yyb20 { 75453 r.ReadArrayEnd() 75454 return 75455 } 75456 r.ReadArrayElem() 75457 if r.TryDecodeAsNil() { 75458 x.Address = "" 75459 } else { 75460 x.Address = (string)(r.DecodeString()) 75461 } 75462 yyj20++ 75463 if yyhl20 { 75464 yyb20 = yyj20 > l 75465 } else { 75466 yyb20 = r.CheckBreak() 75467 } 75468 if yyb20 { 75469 r.ReadArrayEnd() 75470 return 75471 } 75472 r.ReadArrayElem() 75473 if r.TryDecodeAsNil() { 75474 x.ID = "" 75475 } else { 75476 x.ID = (string)(r.DecodeString()) 75477 } 75478 yyj20++ 75479 if yyhl20 { 75480 yyb20 = yyj20 > l 75481 } else { 75482 yyb20 = r.CheckBreak() 75483 } 75484 if yyb20 { 75485 r.ReadArrayEnd() 75486 return 75487 } 75488 r.ReadArrayElem() 75489 if r.TryDecodeAsNil() { 75490 x.Datacenter = "" 75491 } else { 75492 x.Datacenter = (string)(r.DecodeString()) 75493 } 75494 yyj20++ 75495 if yyhl20 { 75496 yyb20 = yyj20 > l 75497 } else { 75498 yyb20 = r.CheckBreak() 75499 } 75500 if yyb20 { 75501 r.ReadArrayEnd() 75502 return 75503 } 75504 r.ReadArrayElem() 75505 if r.TryDecodeAsNil() { 75506 x.Name = "" 75507 } else { 75508 x.Name = (string)(r.DecodeString()) 75509 } 75510 yyj20++ 75511 if yyhl20 { 75512 yyb20 = yyj20 > l 75513 } else { 75514 yyb20 = r.CheckBreak() 75515 } 75516 if yyb20 { 75517 r.ReadArrayEnd() 75518 return 75519 } 75520 r.ReadArrayElem() 75521 if r.TryDecodeAsNil() { 75522 x.NodeClass = "" 75523 } else { 75524 x.NodeClass = (string)(r.DecodeString()) 75525 } 75526 yyj20++ 75527 if yyhl20 { 75528 yyb20 = yyj20 > l 75529 } else { 75530 yyb20 = r.CheckBreak() 75531 } 75532 if yyb20 { 75533 r.ReadArrayEnd() 75534 return 75535 } 75536 r.ReadArrayElem() 75537 if r.TryDecodeAsNil() { 75538 x.Version = "" 75539 } else { 75540 x.Version = (string)(r.DecodeString()) 75541 } 75542 yyj20++ 75543 if yyhl20 { 75544 yyb20 = yyj20 > l 75545 } else { 75546 yyb20 = r.CheckBreak() 75547 } 75548 if yyb20 { 75549 r.ReadArrayEnd() 75550 return 75551 } 75552 r.ReadArrayElem() 75553 if r.TryDecodeAsNil() { 75554 x.Drain = false 75555 } else { 75556 x.Drain = (bool)(r.DecodeBool()) 75557 } 75558 yyj20++ 75559 if yyhl20 { 75560 yyb20 = yyj20 > l 75561 } else { 75562 yyb20 = r.CheckBreak() 75563 } 75564 if yyb20 { 75565 r.ReadArrayEnd() 75566 return 75567 } 75568 r.ReadArrayElem() 75569 if r.TryDecodeAsNil() { 75570 x.SchedulingEligibility = "" 75571 } else { 75572 x.SchedulingEligibility = (string)(r.DecodeString()) 75573 } 75574 yyj20++ 75575 if yyhl20 { 75576 yyb20 = yyj20 > l 75577 } else { 75578 yyb20 = r.CheckBreak() 75579 } 75580 if yyb20 { 75581 r.ReadArrayEnd() 75582 return 75583 } 75584 r.ReadArrayElem() 75585 if r.TryDecodeAsNil() { 75586 x.Status = "" 75587 } else { 75588 x.Status = (string)(r.DecodeString()) 75589 } 75590 yyj20++ 75591 if yyhl20 { 75592 yyb20 = yyj20 > l 75593 } else { 75594 yyb20 = r.CheckBreak() 75595 } 75596 if yyb20 { 75597 r.ReadArrayEnd() 75598 return 75599 } 75600 r.ReadArrayElem() 75601 if r.TryDecodeAsNil() { 75602 x.StatusDescription = "" 75603 } else { 75604 x.StatusDescription = (string)(r.DecodeString()) 75605 } 75606 yyj20++ 75607 if yyhl20 { 75608 yyb20 = yyj20 > l 75609 } else { 75610 yyb20 = r.CheckBreak() 75611 } 75612 if yyb20 { 75613 r.ReadArrayEnd() 75614 return 75615 } 75616 r.ReadArrayElem() 75617 if r.TryDecodeAsNil() { 75618 x.Drivers = nil 75619 } else { 75620 if false { 75621 } else { 75622 h.decMapstringPtrtoDriverInfo((*map[string]*DriverInfo)(&x.Drivers), d) 75623 } 75624 } 75625 yyj20++ 75626 if yyhl20 { 75627 yyb20 = yyj20 > l 75628 } else { 75629 yyb20 = r.CheckBreak() 75630 } 75631 if yyb20 { 75632 r.ReadArrayEnd() 75633 return 75634 } 75635 r.ReadArrayElem() 75636 if r.TryDecodeAsNil() { 75637 x.HostVolumes = nil 75638 } else { 75639 if false { 75640 } else { 75641 h.decMapstringPtrtoClientHostVolumeConfig((*map[string]*ClientHostVolumeConfig)(&x.HostVolumes), d) 75642 } 75643 } 75644 yyj20++ 75645 if yyhl20 { 75646 yyb20 = yyj20 > l 75647 } else { 75648 yyb20 = r.CheckBreak() 75649 } 75650 if yyb20 { 75651 r.ReadArrayEnd() 75652 return 75653 } 75654 r.ReadArrayElem() 75655 if r.TryDecodeAsNil() { 75656 x.CreateIndex = 0 75657 } else { 75658 x.CreateIndex = (uint64)(r.DecodeUint64()) 75659 } 75660 yyj20++ 75661 if yyhl20 { 75662 yyb20 = yyj20 > l 75663 } else { 75664 yyb20 = r.CheckBreak() 75665 } 75666 if yyb20 { 75667 r.ReadArrayEnd() 75668 return 75669 } 75670 r.ReadArrayElem() 75671 if r.TryDecodeAsNil() { 75672 x.ModifyIndex = 0 75673 } else { 75674 x.ModifyIndex = (uint64)(r.DecodeUint64()) 75675 } 75676 for { 75677 yyj20++ 75678 if yyhl20 { 75679 yyb20 = yyj20 > l 75680 } else { 75681 yyb20 = r.CheckBreak() 75682 } 75683 if yyb20 { 75684 break 75685 } 75686 r.ReadArrayElem() 75687 z.DecStructFieldNotFound(yyj20-1, "") 75688 } 75689 r.ReadArrayEnd() 75690 } 75691 75692 func (x *Resources) CodecEncodeSelf(e *codec1978.Encoder) { 75693 var h codecSelfer100 75694 z, r := codec1978.GenHelperEncoder(e) 75695 _, _, _ = h, z, r 75696 if x == nil { 75697 r.EncodeNil() 75698 } else { 75699 if false { 75700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75701 z.EncExtension(x, yyxt1) 75702 } else { 75703 yysep2 := !z.EncBinary() 75704 yy2arr2 := z.EncBasicHandle().StructToArray 75705 _, _ = yysep2, yy2arr2 75706 const yyr2 bool = false // struct tag has 'toArray' 75707 if yyr2 || yy2arr2 { 75708 r.WriteArrayStart(6) 75709 } else { 75710 r.WriteMapStart(6) 75711 } 75712 if yyr2 || yy2arr2 { 75713 r.WriteArrayElem() 75714 if false { 75715 } else { 75716 r.EncodeInt(int64(x.CPU)) 75717 } 75718 } else { 75719 r.WriteMapElemKey() 75720 if z.IsJSONHandle() { 75721 z.WriteStr("\"CPU\"") 75722 } else { 75723 r.EncodeStringEnc(codecSelferCcUTF8100, `CPU`) 75724 } 75725 r.WriteMapElemValue() 75726 if false { 75727 } else { 75728 r.EncodeInt(int64(x.CPU)) 75729 } 75730 } 75731 if yyr2 || yy2arr2 { 75732 r.WriteArrayElem() 75733 if false { 75734 } else { 75735 r.EncodeInt(int64(x.MemoryMB)) 75736 } 75737 } else { 75738 r.WriteMapElemKey() 75739 if z.IsJSONHandle() { 75740 z.WriteStr("\"MemoryMB\"") 75741 } else { 75742 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 75743 } 75744 r.WriteMapElemValue() 75745 if false { 75746 } else { 75747 r.EncodeInt(int64(x.MemoryMB)) 75748 } 75749 } 75750 if yyr2 || yy2arr2 { 75751 r.WriteArrayElem() 75752 if false { 75753 } else { 75754 r.EncodeInt(int64(x.DiskMB)) 75755 } 75756 } else { 75757 r.WriteMapElemKey() 75758 if z.IsJSONHandle() { 75759 z.WriteStr("\"DiskMB\"") 75760 } else { 75761 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 75762 } 75763 r.WriteMapElemValue() 75764 if false { 75765 } else { 75766 r.EncodeInt(int64(x.DiskMB)) 75767 } 75768 } 75769 if yyr2 || yy2arr2 { 75770 r.WriteArrayElem() 75771 if false { 75772 } else { 75773 r.EncodeInt(int64(x.IOPS)) 75774 } 75775 } else { 75776 r.WriteMapElemKey() 75777 if z.IsJSONHandle() { 75778 z.WriteStr("\"IOPS\"") 75779 } else { 75780 r.EncodeStringEnc(codecSelferCcUTF8100, `IOPS`) 75781 } 75782 r.WriteMapElemValue() 75783 if false { 75784 } else { 75785 r.EncodeInt(int64(x.IOPS)) 75786 } 75787 } 75788 if yyr2 || yy2arr2 { 75789 r.WriteArrayElem() 75790 if x.Networks == nil { 75791 r.EncodeNil() 75792 } else { 75793 x.Networks.CodecEncodeSelf(e) 75794 } 75795 } else { 75796 r.WriteMapElemKey() 75797 if z.IsJSONHandle() { 75798 z.WriteStr("\"Networks\"") 75799 } else { 75800 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 75801 } 75802 r.WriteMapElemValue() 75803 if x.Networks == nil { 75804 r.EncodeNil() 75805 } else { 75806 x.Networks.CodecEncodeSelf(e) 75807 } 75808 } 75809 if yyr2 || yy2arr2 { 75810 r.WriteArrayElem() 75811 if x.Devices == nil { 75812 r.EncodeNil() 75813 } else { 75814 x.Devices.CodecEncodeSelf(e) 75815 } 75816 } else { 75817 r.WriteMapElemKey() 75818 if z.IsJSONHandle() { 75819 z.WriteStr("\"Devices\"") 75820 } else { 75821 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 75822 } 75823 r.WriteMapElemValue() 75824 if x.Devices == nil { 75825 r.EncodeNil() 75826 } else { 75827 x.Devices.CodecEncodeSelf(e) 75828 } 75829 } 75830 if yyr2 || yy2arr2 { 75831 r.WriteArrayEnd() 75832 } else { 75833 r.WriteMapEnd() 75834 } 75835 } 75836 } 75837 } 75838 75839 func (x *Resources) CodecDecodeSelf(d *codec1978.Decoder) { 75840 var h codecSelfer100 75841 z, r := codec1978.GenHelperDecoder(d) 75842 _, _, _ = h, z, r 75843 if false { 75844 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 75845 z.DecExtension(x, yyxt1) 75846 } else { 75847 yyct2 := r.ContainerType() 75848 if yyct2 == codecSelferValueTypeMap100 { 75849 yyl2 := r.ReadMapStart() 75850 if yyl2 == 0 { 75851 r.ReadMapEnd() 75852 } else { 75853 x.codecDecodeSelfFromMap(yyl2, d) 75854 } 75855 } else if yyct2 == codecSelferValueTypeArray100 { 75856 yyl2 := r.ReadArrayStart() 75857 if yyl2 == 0 { 75858 r.ReadArrayEnd() 75859 } else { 75860 x.codecDecodeSelfFromArray(yyl2, d) 75861 } 75862 } else { 75863 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 75864 } 75865 } 75866 } 75867 75868 func (x *Resources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 75869 var h codecSelfer100 75870 z, r := codec1978.GenHelperDecoder(d) 75871 _, _, _ = h, z, r 75872 var yyhl3 bool = l >= 0 75873 for yyj3 := 0; ; yyj3++ { 75874 if yyhl3 { 75875 if yyj3 >= l { 75876 break 75877 } 75878 } else { 75879 if r.CheckBreak() { 75880 break 75881 } 75882 } 75883 r.ReadMapElemKey() 75884 yys3 := z.StringView(r.DecodeStringAsBytes()) 75885 r.ReadMapElemValue() 75886 switch yys3 { 75887 case "CPU": 75888 if r.TryDecodeAsNil() { 75889 x.CPU = 0 75890 } else { 75891 x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75892 } 75893 case "MemoryMB": 75894 if r.TryDecodeAsNil() { 75895 x.MemoryMB = 0 75896 } else { 75897 x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75898 } 75899 case "DiskMB": 75900 if r.TryDecodeAsNil() { 75901 x.DiskMB = 0 75902 } else { 75903 x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75904 } 75905 case "IOPS": 75906 if r.TryDecodeAsNil() { 75907 x.IOPS = 0 75908 } else { 75909 x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75910 } 75911 case "Networks": 75912 if r.TryDecodeAsNil() { 75913 x.Networks = nil 75914 } else { 75915 x.Networks.CodecDecodeSelf(d) 75916 } 75917 case "Devices": 75918 if r.TryDecodeAsNil() { 75919 x.Devices = nil 75920 } else { 75921 x.Devices.CodecDecodeSelf(d) 75922 } 75923 default: 75924 z.DecStructFieldNotFound(-1, yys3) 75925 } // end switch yys3 75926 } // end for yyj3 75927 r.ReadMapEnd() 75928 } 75929 75930 func (x *Resources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 75931 var h codecSelfer100 75932 z, r := codec1978.GenHelperDecoder(d) 75933 _, _, _ = h, z, r 75934 var yyj10 int 75935 var yyb10 bool 75936 var yyhl10 bool = l >= 0 75937 yyj10++ 75938 if yyhl10 { 75939 yyb10 = yyj10 > l 75940 } else { 75941 yyb10 = r.CheckBreak() 75942 } 75943 if yyb10 { 75944 r.ReadArrayEnd() 75945 return 75946 } 75947 r.ReadArrayElem() 75948 if r.TryDecodeAsNil() { 75949 x.CPU = 0 75950 } else { 75951 x.CPU = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75952 } 75953 yyj10++ 75954 if yyhl10 { 75955 yyb10 = yyj10 > l 75956 } else { 75957 yyb10 = r.CheckBreak() 75958 } 75959 if yyb10 { 75960 r.ReadArrayEnd() 75961 return 75962 } 75963 r.ReadArrayElem() 75964 if r.TryDecodeAsNil() { 75965 x.MemoryMB = 0 75966 } else { 75967 x.MemoryMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75968 } 75969 yyj10++ 75970 if yyhl10 { 75971 yyb10 = yyj10 > l 75972 } else { 75973 yyb10 = r.CheckBreak() 75974 } 75975 if yyb10 { 75976 r.ReadArrayEnd() 75977 return 75978 } 75979 r.ReadArrayElem() 75980 if r.TryDecodeAsNil() { 75981 x.DiskMB = 0 75982 } else { 75983 x.DiskMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 75984 } 75985 yyj10++ 75986 if yyhl10 { 75987 yyb10 = yyj10 > l 75988 } else { 75989 yyb10 = r.CheckBreak() 75990 } 75991 if yyb10 { 75992 r.ReadArrayEnd() 75993 return 75994 } 75995 r.ReadArrayElem() 75996 if r.TryDecodeAsNil() { 75997 x.IOPS = 0 75998 } else { 75999 x.IOPS = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76000 } 76001 yyj10++ 76002 if yyhl10 { 76003 yyb10 = yyj10 > l 76004 } else { 76005 yyb10 = r.CheckBreak() 76006 } 76007 if yyb10 { 76008 r.ReadArrayEnd() 76009 return 76010 } 76011 r.ReadArrayElem() 76012 if r.TryDecodeAsNil() { 76013 x.Networks = nil 76014 } else { 76015 x.Networks.CodecDecodeSelf(d) 76016 } 76017 yyj10++ 76018 if yyhl10 { 76019 yyb10 = yyj10 > l 76020 } else { 76021 yyb10 = r.CheckBreak() 76022 } 76023 if yyb10 { 76024 r.ReadArrayEnd() 76025 return 76026 } 76027 r.ReadArrayElem() 76028 if r.TryDecodeAsNil() { 76029 x.Devices = nil 76030 } else { 76031 x.Devices.CodecDecodeSelf(d) 76032 } 76033 for { 76034 yyj10++ 76035 if yyhl10 { 76036 yyb10 = yyj10 > l 76037 } else { 76038 yyb10 = r.CheckBreak() 76039 } 76040 if yyb10 { 76041 break 76042 } 76043 r.ReadArrayElem() 76044 z.DecStructFieldNotFound(yyj10-1, "") 76045 } 76046 r.ReadArrayEnd() 76047 } 76048 76049 func (x ResourceDevices) CodecEncodeSelf(e *codec1978.Encoder) { 76050 var h codecSelfer100 76051 z, r := codec1978.GenHelperEncoder(e) 76052 _, _, _ = h, z, r 76053 if x == nil { 76054 r.EncodeNil() 76055 } else { 76056 if false { 76057 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76058 z.EncExtension(x, yyxt1) 76059 } else { 76060 h.encResourceDevices((ResourceDevices)(x), e) 76061 } 76062 } 76063 } 76064 76065 func (x *ResourceDevices) CodecDecodeSelf(d *codec1978.Decoder) { 76066 var h codecSelfer100 76067 z, r := codec1978.GenHelperDecoder(d) 76068 _, _, _ = h, z, r 76069 if false { 76070 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76071 z.DecExtension(x, yyxt1) 76072 } else { 76073 h.decResourceDevices((*ResourceDevices)(x), d) 76074 } 76075 } 76076 76077 func (x *Port) CodecEncodeSelf(e *codec1978.Encoder) { 76078 var h codecSelfer100 76079 z, r := codec1978.GenHelperEncoder(e) 76080 _, _, _ = h, z, r 76081 if x == nil { 76082 r.EncodeNil() 76083 } else { 76084 if false { 76085 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76086 z.EncExtension(x, yyxt1) 76087 } else { 76088 yysep2 := !z.EncBinary() 76089 yy2arr2 := z.EncBasicHandle().StructToArray 76090 _, _ = yysep2, yy2arr2 76091 const yyr2 bool = false // struct tag has 'toArray' 76092 if yyr2 || yy2arr2 { 76093 r.WriteArrayStart(3) 76094 } else { 76095 r.WriteMapStart(3) 76096 } 76097 if yyr2 || yy2arr2 { 76098 r.WriteArrayElem() 76099 if false { 76100 } else { 76101 if z.EncBasicHandle().StringToRaw { 76102 r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) 76103 } else { 76104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) 76105 } 76106 } 76107 } else { 76108 r.WriteMapElemKey() 76109 if z.IsJSONHandle() { 76110 z.WriteStr("\"Label\"") 76111 } else { 76112 r.EncodeStringEnc(codecSelferCcUTF8100, `Label`) 76113 } 76114 r.WriteMapElemValue() 76115 if false { 76116 } else { 76117 if z.EncBasicHandle().StringToRaw { 76118 r.EncodeStringBytesRaw(z.BytesView(string(x.Label))) 76119 } else { 76120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Label)) 76121 } 76122 } 76123 } 76124 if yyr2 || yy2arr2 { 76125 r.WriteArrayElem() 76126 if false { 76127 } else { 76128 r.EncodeInt(int64(x.Value)) 76129 } 76130 } else { 76131 r.WriteMapElemKey() 76132 if z.IsJSONHandle() { 76133 z.WriteStr("\"Value\"") 76134 } else { 76135 r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) 76136 } 76137 r.WriteMapElemValue() 76138 if false { 76139 } else { 76140 r.EncodeInt(int64(x.Value)) 76141 } 76142 } 76143 if yyr2 || yy2arr2 { 76144 r.WriteArrayElem() 76145 if false { 76146 } else { 76147 r.EncodeInt(int64(x.To)) 76148 } 76149 } else { 76150 r.WriteMapElemKey() 76151 if z.IsJSONHandle() { 76152 z.WriteStr("\"To\"") 76153 } else { 76154 r.EncodeStringEnc(codecSelferCcUTF8100, `To`) 76155 } 76156 r.WriteMapElemValue() 76157 if false { 76158 } else { 76159 r.EncodeInt(int64(x.To)) 76160 } 76161 } 76162 if yyr2 || yy2arr2 { 76163 r.WriteArrayEnd() 76164 } else { 76165 r.WriteMapEnd() 76166 } 76167 } 76168 } 76169 } 76170 76171 func (x *Port) CodecDecodeSelf(d *codec1978.Decoder) { 76172 var h codecSelfer100 76173 z, r := codec1978.GenHelperDecoder(d) 76174 _, _, _ = h, z, r 76175 if false { 76176 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76177 z.DecExtension(x, yyxt1) 76178 } else { 76179 yyct2 := r.ContainerType() 76180 if yyct2 == codecSelferValueTypeMap100 { 76181 yyl2 := r.ReadMapStart() 76182 if yyl2 == 0 { 76183 r.ReadMapEnd() 76184 } else { 76185 x.codecDecodeSelfFromMap(yyl2, d) 76186 } 76187 } else if yyct2 == codecSelferValueTypeArray100 { 76188 yyl2 := r.ReadArrayStart() 76189 if yyl2 == 0 { 76190 r.ReadArrayEnd() 76191 } else { 76192 x.codecDecodeSelfFromArray(yyl2, d) 76193 } 76194 } else { 76195 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76196 } 76197 } 76198 } 76199 76200 func (x *Port) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76201 var h codecSelfer100 76202 z, r := codec1978.GenHelperDecoder(d) 76203 _, _, _ = h, z, r 76204 var yyhl3 bool = l >= 0 76205 for yyj3 := 0; ; yyj3++ { 76206 if yyhl3 { 76207 if yyj3 >= l { 76208 break 76209 } 76210 } else { 76211 if r.CheckBreak() { 76212 break 76213 } 76214 } 76215 r.ReadMapElemKey() 76216 yys3 := z.StringView(r.DecodeStringAsBytes()) 76217 r.ReadMapElemValue() 76218 switch yys3 { 76219 case "Label": 76220 if r.TryDecodeAsNil() { 76221 x.Label = "" 76222 } else { 76223 x.Label = (string)(r.DecodeString()) 76224 } 76225 case "Value": 76226 if r.TryDecodeAsNil() { 76227 x.Value = 0 76228 } else { 76229 x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76230 } 76231 case "To": 76232 if r.TryDecodeAsNil() { 76233 x.To = 0 76234 } else { 76235 x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76236 } 76237 default: 76238 z.DecStructFieldNotFound(-1, yys3) 76239 } // end switch yys3 76240 } // end for yyj3 76241 r.ReadMapEnd() 76242 } 76243 76244 func (x *Port) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76245 var h codecSelfer100 76246 z, r := codec1978.GenHelperDecoder(d) 76247 _, _, _ = h, z, r 76248 var yyj7 int 76249 var yyb7 bool 76250 var yyhl7 bool = l >= 0 76251 yyj7++ 76252 if yyhl7 { 76253 yyb7 = yyj7 > l 76254 } else { 76255 yyb7 = r.CheckBreak() 76256 } 76257 if yyb7 { 76258 r.ReadArrayEnd() 76259 return 76260 } 76261 r.ReadArrayElem() 76262 if r.TryDecodeAsNil() { 76263 x.Label = "" 76264 } else { 76265 x.Label = (string)(r.DecodeString()) 76266 } 76267 yyj7++ 76268 if yyhl7 { 76269 yyb7 = yyj7 > l 76270 } else { 76271 yyb7 = r.CheckBreak() 76272 } 76273 if yyb7 { 76274 r.ReadArrayEnd() 76275 return 76276 } 76277 r.ReadArrayElem() 76278 if r.TryDecodeAsNil() { 76279 x.Value = 0 76280 } else { 76281 x.Value = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76282 } 76283 yyj7++ 76284 if yyhl7 { 76285 yyb7 = yyj7 > l 76286 } else { 76287 yyb7 = r.CheckBreak() 76288 } 76289 if yyb7 { 76290 r.ReadArrayEnd() 76291 return 76292 } 76293 r.ReadArrayElem() 76294 if r.TryDecodeAsNil() { 76295 x.To = 0 76296 } else { 76297 x.To = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76298 } 76299 for { 76300 yyj7++ 76301 if yyhl7 { 76302 yyb7 = yyj7 > l 76303 } else { 76304 yyb7 = r.CheckBreak() 76305 } 76306 if yyb7 { 76307 break 76308 } 76309 r.ReadArrayElem() 76310 z.DecStructFieldNotFound(yyj7-1, "") 76311 } 76312 r.ReadArrayEnd() 76313 } 76314 76315 func (x *NetworkResource) CodecEncodeSelf(e *codec1978.Encoder) { 76316 var h codecSelfer100 76317 z, r := codec1978.GenHelperEncoder(e) 76318 _, _, _ = h, z, r 76319 if x == nil { 76320 r.EncodeNil() 76321 } else { 76322 if false { 76323 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76324 z.EncExtension(x, yyxt1) 76325 } else { 76326 yysep2 := !z.EncBinary() 76327 yy2arr2 := z.EncBasicHandle().StructToArray 76328 _, _ = yysep2, yy2arr2 76329 const yyr2 bool = false // struct tag has 'toArray' 76330 if yyr2 || yy2arr2 { 76331 r.WriteArrayStart(7) 76332 } else { 76333 r.WriteMapStart(7) 76334 } 76335 if yyr2 || yy2arr2 { 76336 r.WriteArrayElem() 76337 if false { 76338 } else { 76339 if z.EncBasicHandle().StringToRaw { 76340 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 76341 } else { 76342 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 76343 } 76344 } 76345 } else { 76346 r.WriteMapElemKey() 76347 if z.IsJSONHandle() { 76348 z.WriteStr("\"Mode\"") 76349 } else { 76350 r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) 76351 } 76352 r.WriteMapElemValue() 76353 if false { 76354 } else { 76355 if z.EncBasicHandle().StringToRaw { 76356 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 76357 } else { 76358 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 76359 } 76360 } 76361 } 76362 if yyr2 || yy2arr2 { 76363 r.WriteArrayElem() 76364 if false { 76365 } else { 76366 if z.EncBasicHandle().StringToRaw { 76367 r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) 76368 } else { 76369 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) 76370 } 76371 } 76372 } else { 76373 r.WriteMapElemKey() 76374 if z.IsJSONHandle() { 76375 z.WriteStr("\"Device\"") 76376 } else { 76377 r.EncodeStringEnc(codecSelferCcUTF8100, `Device`) 76378 } 76379 r.WriteMapElemValue() 76380 if false { 76381 } else { 76382 if z.EncBasicHandle().StringToRaw { 76383 r.EncodeStringBytesRaw(z.BytesView(string(x.Device))) 76384 } else { 76385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Device)) 76386 } 76387 } 76388 } 76389 if yyr2 || yy2arr2 { 76390 r.WriteArrayElem() 76391 if false { 76392 } else { 76393 if z.EncBasicHandle().StringToRaw { 76394 r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) 76395 } else { 76396 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) 76397 } 76398 } 76399 } else { 76400 r.WriteMapElemKey() 76401 if z.IsJSONHandle() { 76402 z.WriteStr("\"CIDR\"") 76403 } else { 76404 r.EncodeStringEnc(codecSelferCcUTF8100, `CIDR`) 76405 } 76406 r.WriteMapElemValue() 76407 if false { 76408 } else { 76409 if z.EncBasicHandle().StringToRaw { 76410 r.EncodeStringBytesRaw(z.BytesView(string(x.CIDR))) 76411 } else { 76412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.CIDR)) 76413 } 76414 } 76415 } 76416 if yyr2 || yy2arr2 { 76417 r.WriteArrayElem() 76418 if false { 76419 } else { 76420 if z.EncBasicHandle().StringToRaw { 76421 r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) 76422 } else { 76423 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) 76424 } 76425 } 76426 } else { 76427 r.WriteMapElemKey() 76428 if z.IsJSONHandle() { 76429 z.WriteStr("\"IP\"") 76430 } else { 76431 r.EncodeStringEnc(codecSelferCcUTF8100, `IP`) 76432 } 76433 r.WriteMapElemValue() 76434 if false { 76435 } else { 76436 if z.EncBasicHandle().StringToRaw { 76437 r.EncodeStringBytesRaw(z.BytesView(string(x.IP))) 76438 } else { 76439 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.IP)) 76440 } 76441 } 76442 } 76443 if yyr2 || yy2arr2 { 76444 r.WriteArrayElem() 76445 if false { 76446 } else { 76447 r.EncodeInt(int64(x.MBits)) 76448 } 76449 } else { 76450 r.WriteMapElemKey() 76451 if z.IsJSONHandle() { 76452 z.WriteStr("\"MBits\"") 76453 } else { 76454 r.EncodeStringEnc(codecSelferCcUTF8100, `MBits`) 76455 } 76456 r.WriteMapElemValue() 76457 if false { 76458 } else { 76459 r.EncodeInt(int64(x.MBits)) 76460 } 76461 } 76462 if yyr2 || yy2arr2 { 76463 r.WriteArrayElem() 76464 if x.ReservedPorts == nil { 76465 r.EncodeNil() 76466 } else { 76467 if false { 76468 } else { 76469 h.encSlicePort(([]Port)(x.ReservedPorts), e) 76470 } 76471 } 76472 } else { 76473 r.WriteMapElemKey() 76474 if z.IsJSONHandle() { 76475 z.WriteStr("\"ReservedPorts\"") 76476 } else { 76477 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedPorts`) 76478 } 76479 r.WriteMapElemValue() 76480 if x.ReservedPorts == nil { 76481 r.EncodeNil() 76482 } else { 76483 if false { 76484 } else { 76485 h.encSlicePort(([]Port)(x.ReservedPorts), e) 76486 } 76487 } 76488 } 76489 if yyr2 || yy2arr2 { 76490 r.WriteArrayElem() 76491 if x.DynamicPorts == nil { 76492 r.EncodeNil() 76493 } else { 76494 if false { 76495 } else { 76496 h.encSlicePort(([]Port)(x.DynamicPorts), e) 76497 } 76498 } 76499 } else { 76500 r.WriteMapElemKey() 76501 if z.IsJSONHandle() { 76502 z.WriteStr("\"DynamicPorts\"") 76503 } else { 76504 r.EncodeStringEnc(codecSelferCcUTF8100, `DynamicPorts`) 76505 } 76506 r.WriteMapElemValue() 76507 if x.DynamicPorts == nil { 76508 r.EncodeNil() 76509 } else { 76510 if false { 76511 } else { 76512 h.encSlicePort(([]Port)(x.DynamicPorts), e) 76513 } 76514 } 76515 } 76516 if yyr2 || yy2arr2 { 76517 r.WriteArrayEnd() 76518 } else { 76519 r.WriteMapEnd() 76520 } 76521 } 76522 } 76523 } 76524 76525 func (x *NetworkResource) CodecDecodeSelf(d *codec1978.Decoder) { 76526 var h codecSelfer100 76527 z, r := codec1978.GenHelperDecoder(d) 76528 _, _, _ = h, z, r 76529 if false { 76530 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76531 z.DecExtension(x, yyxt1) 76532 } else { 76533 yyct2 := r.ContainerType() 76534 if yyct2 == codecSelferValueTypeMap100 { 76535 yyl2 := r.ReadMapStart() 76536 if yyl2 == 0 { 76537 r.ReadMapEnd() 76538 } else { 76539 x.codecDecodeSelfFromMap(yyl2, d) 76540 } 76541 } else if yyct2 == codecSelferValueTypeArray100 { 76542 yyl2 := r.ReadArrayStart() 76543 if yyl2 == 0 { 76544 r.ReadArrayEnd() 76545 } else { 76546 x.codecDecodeSelfFromArray(yyl2, d) 76547 } 76548 } else { 76549 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76550 } 76551 } 76552 } 76553 76554 func (x *NetworkResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76555 var h codecSelfer100 76556 z, r := codec1978.GenHelperDecoder(d) 76557 _, _, _ = h, z, r 76558 var yyhl3 bool = l >= 0 76559 for yyj3 := 0; ; yyj3++ { 76560 if yyhl3 { 76561 if yyj3 >= l { 76562 break 76563 } 76564 } else { 76565 if r.CheckBreak() { 76566 break 76567 } 76568 } 76569 r.ReadMapElemKey() 76570 yys3 := z.StringView(r.DecodeStringAsBytes()) 76571 r.ReadMapElemValue() 76572 switch yys3 { 76573 case "Mode": 76574 if r.TryDecodeAsNil() { 76575 x.Mode = "" 76576 } else { 76577 x.Mode = (string)(r.DecodeString()) 76578 } 76579 case "Device": 76580 if r.TryDecodeAsNil() { 76581 x.Device = "" 76582 } else { 76583 x.Device = (string)(r.DecodeString()) 76584 } 76585 case "CIDR": 76586 if r.TryDecodeAsNil() { 76587 x.CIDR = "" 76588 } else { 76589 x.CIDR = (string)(r.DecodeString()) 76590 } 76591 case "IP": 76592 if r.TryDecodeAsNil() { 76593 x.IP = "" 76594 } else { 76595 x.IP = (string)(r.DecodeString()) 76596 } 76597 case "MBits": 76598 if r.TryDecodeAsNil() { 76599 x.MBits = 0 76600 } else { 76601 x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76602 } 76603 case "ReservedPorts": 76604 if r.TryDecodeAsNil() { 76605 x.ReservedPorts = nil 76606 } else { 76607 if false { 76608 } else { 76609 h.decSlicePort((*[]Port)(&x.ReservedPorts), d) 76610 } 76611 } 76612 case "DynamicPorts": 76613 if r.TryDecodeAsNil() { 76614 x.DynamicPorts = nil 76615 } else { 76616 if false { 76617 } else { 76618 h.decSlicePort((*[]Port)(&x.DynamicPorts), d) 76619 } 76620 } 76621 default: 76622 z.DecStructFieldNotFound(-1, yys3) 76623 } // end switch yys3 76624 } // end for yyj3 76625 r.ReadMapEnd() 76626 } 76627 76628 func (x *NetworkResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76629 var h codecSelfer100 76630 z, r := codec1978.GenHelperDecoder(d) 76631 _, _, _ = h, z, r 76632 var yyj13 int 76633 var yyb13 bool 76634 var yyhl13 bool = l >= 0 76635 yyj13++ 76636 if yyhl13 { 76637 yyb13 = yyj13 > l 76638 } else { 76639 yyb13 = r.CheckBreak() 76640 } 76641 if yyb13 { 76642 r.ReadArrayEnd() 76643 return 76644 } 76645 r.ReadArrayElem() 76646 if r.TryDecodeAsNil() { 76647 x.Mode = "" 76648 } else { 76649 x.Mode = (string)(r.DecodeString()) 76650 } 76651 yyj13++ 76652 if yyhl13 { 76653 yyb13 = yyj13 > l 76654 } else { 76655 yyb13 = r.CheckBreak() 76656 } 76657 if yyb13 { 76658 r.ReadArrayEnd() 76659 return 76660 } 76661 r.ReadArrayElem() 76662 if r.TryDecodeAsNil() { 76663 x.Device = "" 76664 } else { 76665 x.Device = (string)(r.DecodeString()) 76666 } 76667 yyj13++ 76668 if yyhl13 { 76669 yyb13 = yyj13 > l 76670 } else { 76671 yyb13 = r.CheckBreak() 76672 } 76673 if yyb13 { 76674 r.ReadArrayEnd() 76675 return 76676 } 76677 r.ReadArrayElem() 76678 if r.TryDecodeAsNil() { 76679 x.CIDR = "" 76680 } else { 76681 x.CIDR = (string)(r.DecodeString()) 76682 } 76683 yyj13++ 76684 if yyhl13 { 76685 yyb13 = yyj13 > l 76686 } else { 76687 yyb13 = r.CheckBreak() 76688 } 76689 if yyb13 { 76690 r.ReadArrayEnd() 76691 return 76692 } 76693 r.ReadArrayElem() 76694 if r.TryDecodeAsNil() { 76695 x.IP = "" 76696 } else { 76697 x.IP = (string)(r.DecodeString()) 76698 } 76699 yyj13++ 76700 if yyhl13 { 76701 yyb13 = yyj13 > l 76702 } else { 76703 yyb13 = r.CheckBreak() 76704 } 76705 if yyb13 { 76706 r.ReadArrayEnd() 76707 return 76708 } 76709 r.ReadArrayElem() 76710 if r.TryDecodeAsNil() { 76711 x.MBits = 0 76712 } else { 76713 x.MBits = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 76714 } 76715 yyj13++ 76716 if yyhl13 { 76717 yyb13 = yyj13 > l 76718 } else { 76719 yyb13 = r.CheckBreak() 76720 } 76721 if yyb13 { 76722 r.ReadArrayEnd() 76723 return 76724 } 76725 r.ReadArrayElem() 76726 if r.TryDecodeAsNil() { 76727 x.ReservedPorts = nil 76728 } else { 76729 if false { 76730 } else { 76731 h.decSlicePort((*[]Port)(&x.ReservedPorts), d) 76732 } 76733 } 76734 yyj13++ 76735 if yyhl13 { 76736 yyb13 = yyj13 > l 76737 } else { 76738 yyb13 = r.CheckBreak() 76739 } 76740 if yyb13 { 76741 r.ReadArrayEnd() 76742 return 76743 } 76744 r.ReadArrayElem() 76745 if r.TryDecodeAsNil() { 76746 x.DynamicPorts = nil 76747 } else { 76748 if false { 76749 } else { 76750 h.decSlicePort((*[]Port)(&x.DynamicPorts), d) 76751 } 76752 } 76753 for { 76754 yyj13++ 76755 if yyhl13 { 76756 yyb13 = yyj13 > l 76757 } else { 76758 yyb13 = r.CheckBreak() 76759 } 76760 if yyb13 { 76761 break 76762 } 76763 r.ReadArrayElem() 76764 z.DecStructFieldNotFound(yyj13-1, "") 76765 } 76766 r.ReadArrayEnd() 76767 } 76768 76769 func (x Networks) CodecEncodeSelf(e *codec1978.Encoder) { 76770 var h codecSelfer100 76771 z, r := codec1978.GenHelperEncoder(e) 76772 _, _, _ = h, z, r 76773 if x == nil { 76774 r.EncodeNil() 76775 } else { 76776 if false { 76777 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76778 z.EncExtension(x, yyxt1) 76779 } else { 76780 h.encNetworks((Networks)(x), e) 76781 } 76782 } 76783 } 76784 76785 func (x *Networks) CodecDecodeSelf(d *codec1978.Decoder) { 76786 var h codecSelfer100 76787 z, r := codec1978.GenHelperDecoder(d) 76788 _, _, _ = h, z, r 76789 if false { 76790 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76791 z.DecExtension(x, yyxt1) 76792 } else { 76793 h.decNetworks((*Networks)(x), d) 76794 } 76795 } 76796 76797 func (x *RequestedDevice) CodecEncodeSelf(e *codec1978.Encoder) { 76798 var h codecSelfer100 76799 z, r := codec1978.GenHelperEncoder(e) 76800 _, _, _ = h, z, r 76801 if x == nil { 76802 r.EncodeNil() 76803 } else { 76804 if false { 76805 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76806 z.EncExtension(x, yyxt1) 76807 } else { 76808 yysep2 := !z.EncBinary() 76809 yy2arr2 := z.EncBasicHandle().StructToArray 76810 _, _ = yysep2, yy2arr2 76811 const yyr2 bool = false // struct tag has 'toArray' 76812 if yyr2 || yy2arr2 { 76813 r.WriteArrayStart(4) 76814 } else { 76815 r.WriteMapStart(4) 76816 } 76817 if yyr2 || yy2arr2 { 76818 r.WriteArrayElem() 76819 if false { 76820 } else { 76821 if z.EncBasicHandle().StringToRaw { 76822 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76823 } else { 76824 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76825 } 76826 } 76827 } else { 76828 r.WriteMapElemKey() 76829 if z.IsJSONHandle() { 76830 z.WriteStr("\"Name\"") 76831 } else { 76832 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 76833 } 76834 r.WriteMapElemValue() 76835 if false { 76836 } else { 76837 if z.EncBasicHandle().StringToRaw { 76838 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 76839 } else { 76840 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 76841 } 76842 } 76843 } 76844 if yyr2 || yy2arr2 { 76845 r.WriteArrayElem() 76846 if false { 76847 } else { 76848 r.EncodeUint(uint64(x.Count)) 76849 } 76850 } else { 76851 r.WriteMapElemKey() 76852 if z.IsJSONHandle() { 76853 z.WriteStr("\"Count\"") 76854 } else { 76855 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 76856 } 76857 r.WriteMapElemValue() 76858 if false { 76859 } else { 76860 r.EncodeUint(uint64(x.Count)) 76861 } 76862 } 76863 if yyr2 || yy2arr2 { 76864 r.WriteArrayElem() 76865 if x.Constraints == nil { 76866 r.EncodeNil() 76867 } else { 76868 x.Constraints.CodecEncodeSelf(e) 76869 } 76870 } else { 76871 r.WriteMapElemKey() 76872 if z.IsJSONHandle() { 76873 z.WriteStr("\"Constraints\"") 76874 } else { 76875 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 76876 } 76877 r.WriteMapElemValue() 76878 if x.Constraints == nil { 76879 r.EncodeNil() 76880 } else { 76881 x.Constraints.CodecEncodeSelf(e) 76882 } 76883 } 76884 if yyr2 || yy2arr2 { 76885 r.WriteArrayElem() 76886 if x.Affinities == nil { 76887 r.EncodeNil() 76888 } else { 76889 x.Affinities.CodecEncodeSelf(e) 76890 } 76891 } else { 76892 r.WriteMapElemKey() 76893 if z.IsJSONHandle() { 76894 z.WriteStr("\"Affinities\"") 76895 } else { 76896 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 76897 } 76898 r.WriteMapElemValue() 76899 if x.Affinities == nil { 76900 r.EncodeNil() 76901 } else { 76902 x.Affinities.CodecEncodeSelf(e) 76903 } 76904 } 76905 if yyr2 || yy2arr2 { 76906 r.WriteArrayEnd() 76907 } else { 76908 r.WriteMapEnd() 76909 } 76910 } 76911 } 76912 } 76913 76914 func (x *RequestedDevice) CodecDecodeSelf(d *codec1978.Decoder) { 76915 var h codecSelfer100 76916 z, r := codec1978.GenHelperDecoder(d) 76917 _, _, _ = h, z, r 76918 if false { 76919 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 76920 z.DecExtension(x, yyxt1) 76921 } else { 76922 yyct2 := r.ContainerType() 76923 if yyct2 == codecSelferValueTypeMap100 { 76924 yyl2 := r.ReadMapStart() 76925 if yyl2 == 0 { 76926 r.ReadMapEnd() 76927 } else { 76928 x.codecDecodeSelfFromMap(yyl2, d) 76929 } 76930 } else if yyct2 == codecSelferValueTypeArray100 { 76931 yyl2 := r.ReadArrayStart() 76932 if yyl2 == 0 { 76933 r.ReadArrayEnd() 76934 } else { 76935 x.codecDecodeSelfFromArray(yyl2, d) 76936 } 76937 } else { 76938 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 76939 } 76940 } 76941 } 76942 76943 func (x *RequestedDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 76944 var h codecSelfer100 76945 z, r := codec1978.GenHelperDecoder(d) 76946 _, _, _ = h, z, r 76947 var yyhl3 bool = l >= 0 76948 for yyj3 := 0; ; yyj3++ { 76949 if yyhl3 { 76950 if yyj3 >= l { 76951 break 76952 } 76953 } else { 76954 if r.CheckBreak() { 76955 break 76956 } 76957 } 76958 r.ReadMapElemKey() 76959 yys3 := z.StringView(r.DecodeStringAsBytes()) 76960 r.ReadMapElemValue() 76961 switch yys3 { 76962 case "Name": 76963 if r.TryDecodeAsNil() { 76964 x.Name = "" 76965 } else { 76966 x.Name = (string)(r.DecodeString()) 76967 } 76968 case "Count": 76969 if r.TryDecodeAsNil() { 76970 x.Count = 0 76971 } else { 76972 x.Count = (uint64)(r.DecodeUint64()) 76973 } 76974 case "Constraints": 76975 if r.TryDecodeAsNil() { 76976 x.Constraints = nil 76977 } else { 76978 x.Constraints.CodecDecodeSelf(d) 76979 } 76980 case "Affinities": 76981 if r.TryDecodeAsNil() { 76982 x.Affinities = nil 76983 } else { 76984 x.Affinities.CodecDecodeSelf(d) 76985 } 76986 default: 76987 z.DecStructFieldNotFound(-1, yys3) 76988 } // end switch yys3 76989 } // end for yyj3 76990 r.ReadMapEnd() 76991 } 76992 76993 func (x *RequestedDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 76994 var h codecSelfer100 76995 z, r := codec1978.GenHelperDecoder(d) 76996 _, _, _ = h, z, r 76997 var yyj8 int 76998 var yyb8 bool 76999 var yyhl8 bool = l >= 0 77000 yyj8++ 77001 if yyhl8 { 77002 yyb8 = yyj8 > l 77003 } else { 77004 yyb8 = r.CheckBreak() 77005 } 77006 if yyb8 { 77007 r.ReadArrayEnd() 77008 return 77009 } 77010 r.ReadArrayElem() 77011 if r.TryDecodeAsNil() { 77012 x.Name = "" 77013 } else { 77014 x.Name = (string)(r.DecodeString()) 77015 } 77016 yyj8++ 77017 if yyhl8 { 77018 yyb8 = yyj8 > l 77019 } else { 77020 yyb8 = r.CheckBreak() 77021 } 77022 if yyb8 { 77023 r.ReadArrayEnd() 77024 return 77025 } 77026 r.ReadArrayElem() 77027 if r.TryDecodeAsNil() { 77028 x.Count = 0 77029 } else { 77030 x.Count = (uint64)(r.DecodeUint64()) 77031 } 77032 yyj8++ 77033 if yyhl8 { 77034 yyb8 = yyj8 > l 77035 } else { 77036 yyb8 = r.CheckBreak() 77037 } 77038 if yyb8 { 77039 r.ReadArrayEnd() 77040 return 77041 } 77042 r.ReadArrayElem() 77043 if r.TryDecodeAsNil() { 77044 x.Constraints = nil 77045 } else { 77046 x.Constraints.CodecDecodeSelf(d) 77047 } 77048 yyj8++ 77049 if yyhl8 { 77050 yyb8 = yyj8 > l 77051 } else { 77052 yyb8 = r.CheckBreak() 77053 } 77054 if yyb8 { 77055 r.ReadArrayEnd() 77056 return 77057 } 77058 r.ReadArrayElem() 77059 if r.TryDecodeAsNil() { 77060 x.Affinities = nil 77061 } else { 77062 x.Affinities.CodecDecodeSelf(d) 77063 } 77064 for { 77065 yyj8++ 77066 if yyhl8 { 77067 yyb8 = yyj8 > l 77068 } else { 77069 yyb8 = r.CheckBreak() 77070 } 77071 if yyb8 { 77072 break 77073 } 77074 r.ReadArrayElem() 77075 z.DecStructFieldNotFound(yyj8-1, "") 77076 } 77077 r.ReadArrayEnd() 77078 } 77079 77080 func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { 77081 var h codecSelfer100 77082 z, r := codec1978.GenHelperEncoder(e) 77083 _, _, _ = h, z, r 77084 if x == nil { 77085 r.EncodeNil() 77086 } else { 77087 if false { 77088 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77089 z.EncExtension(x, yyxt1) 77090 } else { 77091 yysep2 := !z.EncBinary() 77092 yy2arr2 := z.EncBasicHandle().StructToArray 77093 _, _ = yysep2, yy2arr2 77094 const yyr2 bool = false // struct tag has 'toArray' 77095 if yyr2 || yy2arr2 { 77096 r.WriteArrayStart(5) 77097 } else { 77098 r.WriteMapStart(5) 77099 } 77100 if yyr2 || yy2arr2 { 77101 r.WriteArrayElem() 77102 yy4 := &x.Cpu 77103 yy4.CodecEncodeSelf(e) 77104 } else { 77105 r.WriteMapElemKey() 77106 if z.IsJSONHandle() { 77107 z.WriteStr("\"Cpu\"") 77108 } else { 77109 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 77110 } 77111 r.WriteMapElemValue() 77112 yy6 := &x.Cpu 77113 yy6.CodecEncodeSelf(e) 77114 } 77115 if yyr2 || yy2arr2 { 77116 r.WriteArrayElem() 77117 yy9 := &x.Memory 77118 yy9.CodecEncodeSelf(e) 77119 } else { 77120 r.WriteMapElemKey() 77121 if z.IsJSONHandle() { 77122 z.WriteStr("\"Memory\"") 77123 } else { 77124 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 77125 } 77126 r.WriteMapElemValue() 77127 yy11 := &x.Memory 77128 yy11.CodecEncodeSelf(e) 77129 } 77130 if yyr2 || yy2arr2 { 77131 r.WriteArrayElem() 77132 yy14 := &x.Disk 77133 yy14.CodecEncodeSelf(e) 77134 } else { 77135 r.WriteMapElemKey() 77136 if z.IsJSONHandle() { 77137 z.WriteStr("\"Disk\"") 77138 } else { 77139 r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) 77140 } 77141 r.WriteMapElemValue() 77142 yy16 := &x.Disk 77143 yy16.CodecEncodeSelf(e) 77144 } 77145 if yyr2 || yy2arr2 { 77146 r.WriteArrayElem() 77147 if x.Networks == nil { 77148 r.EncodeNil() 77149 } else { 77150 x.Networks.CodecEncodeSelf(e) 77151 } 77152 } else { 77153 r.WriteMapElemKey() 77154 if z.IsJSONHandle() { 77155 z.WriteStr("\"Networks\"") 77156 } else { 77157 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 77158 } 77159 r.WriteMapElemValue() 77160 if x.Networks == nil { 77161 r.EncodeNil() 77162 } else { 77163 x.Networks.CodecEncodeSelf(e) 77164 } 77165 } 77166 if yyr2 || yy2arr2 { 77167 r.WriteArrayElem() 77168 if x.Devices == nil { 77169 r.EncodeNil() 77170 } else { 77171 if false { 77172 } else { 77173 h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) 77174 } 77175 } 77176 } else { 77177 r.WriteMapElemKey() 77178 if z.IsJSONHandle() { 77179 z.WriteStr("\"Devices\"") 77180 } else { 77181 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 77182 } 77183 r.WriteMapElemValue() 77184 if x.Devices == nil { 77185 r.EncodeNil() 77186 } else { 77187 if false { 77188 } else { 77189 h.encSlicePtrtoNodeDeviceResource(([]*NodeDeviceResource)(x.Devices), e) 77190 } 77191 } 77192 } 77193 if yyr2 || yy2arr2 { 77194 r.WriteArrayEnd() 77195 } else { 77196 r.WriteMapEnd() 77197 } 77198 } 77199 } 77200 } 77201 77202 func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { 77203 var h codecSelfer100 77204 z, r := codec1978.GenHelperDecoder(d) 77205 _, _, _ = h, z, r 77206 if false { 77207 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77208 z.DecExtension(x, yyxt1) 77209 } else { 77210 yyct2 := r.ContainerType() 77211 if yyct2 == codecSelferValueTypeMap100 { 77212 yyl2 := r.ReadMapStart() 77213 if yyl2 == 0 { 77214 r.ReadMapEnd() 77215 } else { 77216 x.codecDecodeSelfFromMap(yyl2, d) 77217 } 77218 } else if yyct2 == codecSelferValueTypeArray100 { 77219 yyl2 := r.ReadArrayStart() 77220 if yyl2 == 0 { 77221 r.ReadArrayEnd() 77222 } else { 77223 x.codecDecodeSelfFromArray(yyl2, d) 77224 } 77225 } else { 77226 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77227 } 77228 } 77229 } 77230 77231 func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77232 var h codecSelfer100 77233 z, r := codec1978.GenHelperDecoder(d) 77234 _, _, _ = h, z, r 77235 var yyhl3 bool = l >= 0 77236 for yyj3 := 0; ; yyj3++ { 77237 if yyhl3 { 77238 if yyj3 >= l { 77239 break 77240 } 77241 } else { 77242 if r.CheckBreak() { 77243 break 77244 } 77245 } 77246 r.ReadMapElemKey() 77247 yys3 := z.StringView(r.DecodeStringAsBytes()) 77248 r.ReadMapElemValue() 77249 switch yys3 { 77250 case "Cpu": 77251 if r.TryDecodeAsNil() { 77252 x.Cpu = NodeCpuResources{} 77253 } else { 77254 x.Cpu.CodecDecodeSelf(d) 77255 } 77256 case "Memory": 77257 if r.TryDecodeAsNil() { 77258 x.Memory = NodeMemoryResources{} 77259 } else { 77260 x.Memory.CodecDecodeSelf(d) 77261 } 77262 case "Disk": 77263 if r.TryDecodeAsNil() { 77264 x.Disk = NodeDiskResources{} 77265 } else { 77266 x.Disk.CodecDecodeSelf(d) 77267 } 77268 case "Networks": 77269 if r.TryDecodeAsNil() { 77270 x.Networks = nil 77271 } else { 77272 x.Networks.CodecDecodeSelf(d) 77273 } 77274 case "Devices": 77275 if r.TryDecodeAsNil() { 77276 x.Devices = nil 77277 } else { 77278 if false { 77279 } else { 77280 h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) 77281 } 77282 } 77283 default: 77284 z.DecStructFieldNotFound(-1, yys3) 77285 } // end switch yys3 77286 } // end for yyj3 77287 r.ReadMapEnd() 77288 } 77289 77290 func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77291 var h codecSelfer100 77292 z, r := codec1978.GenHelperDecoder(d) 77293 _, _, _ = h, z, r 77294 var yyj10 int 77295 var yyb10 bool 77296 var yyhl10 bool = l >= 0 77297 yyj10++ 77298 if yyhl10 { 77299 yyb10 = yyj10 > l 77300 } else { 77301 yyb10 = r.CheckBreak() 77302 } 77303 if yyb10 { 77304 r.ReadArrayEnd() 77305 return 77306 } 77307 r.ReadArrayElem() 77308 if r.TryDecodeAsNil() { 77309 x.Cpu = NodeCpuResources{} 77310 } else { 77311 x.Cpu.CodecDecodeSelf(d) 77312 } 77313 yyj10++ 77314 if yyhl10 { 77315 yyb10 = yyj10 > l 77316 } else { 77317 yyb10 = r.CheckBreak() 77318 } 77319 if yyb10 { 77320 r.ReadArrayEnd() 77321 return 77322 } 77323 r.ReadArrayElem() 77324 if r.TryDecodeAsNil() { 77325 x.Memory = NodeMemoryResources{} 77326 } else { 77327 x.Memory.CodecDecodeSelf(d) 77328 } 77329 yyj10++ 77330 if yyhl10 { 77331 yyb10 = yyj10 > l 77332 } else { 77333 yyb10 = r.CheckBreak() 77334 } 77335 if yyb10 { 77336 r.ReadArrayEnd() 77337 return 77338 } 77339 r.ReadArrayElem() 77340 if r.TryDecodeAsNil() { 77341 x.Disk = NodeDiskResources{} 77342 } else { 77343 x.Disk.CodecDecodeSelf(d) 77344 } 77345 yyj10++ 77346 if yyhl10 { 77347 yyb10 = yyj10 > l 77348 } else { 77349 yyb10 = r.CheckBreak() 77350 } 77351 if yyb10 { 77352 r.ReadArrayEnd() 77353 return 77354 } 77355 r.ReadArrayElem() 77356 if r.TryDecodeAsNil() { 77357 x.Networks = nil 77358 } else { 77359 x.Networks.CodecDecodeSelf(d) 77360 } 77361 yyj10++ 77362 if yyhl10 { 77363 yyb10 = yyj10 > l 77364 } else { 77365 yyb10 = r.CheckBreak() 77366 } 77367 if yyb10 { 77368 r.ReadArrayEnd() 77369 return 77370 } 77371 r.ReadArrayElem() 77372 if r.TryDecodeAsNil() { 77373 x.Devices = nil 77374 } else { 77375 if false { 77376 } else { 77377 h.decSlicePtrtoNodeDeviceResource((*[]*NodeDeviceResource)(&x.Devices), d) 77378 } 77379 } 77380 for { 77381 yyj10++ 77382 if yyhl10 { 77383 yyb10 = yyj10 > l 77384 } else { 77385 yyb10 = r.CheckBreak() 77386 } 77387 if yyb10 { 77388 break 77389 } 77390 r.ReadArrayElem() 77391 z.DecStructFieldNotFound(yyj10-1, "") 77392 } 77393 r.ReadArrayEnd() 77394 } 77395 77396 func (x *NodeCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 77397 var h codecSelfer100 77398 z, r := codec1978.GenHelperEncoder(e) 77399 _, _, _ = h, z, r 77400 if x == nil { 77401 r.EncodeNil() 77402 } else { 77403 if false { 77404 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77405 z.EncExtension(x, yyxt1) 77406 } else { 77407 yysep2 := !z.EncBinary() 77408 yy2arr2 := z.EncBasicHandle().StructToArray 77409 _, _ = yysep2, yy2arr2 77410 const yyr2 bool = false // struct tag has 'toArray' 77411 if yyr2 || yy2arr2 { 77412 r.WriteArrayStart(1) 77413 } else { 77414 r.WriteMapStart(1) 77415 } 77416 if yyr2 || yy2arr2 { 77417 r.WriteArrayElem() 77418 if false { 77419 } else { 77420 r.EncodeInt(int64(x.CpuShares)) 77421 } 77422 } else { 77423 r.WriteMapElemKey() 77424 if z.IsJSONHandle() { 77425 z.WriteStr("\"CpuShares\"") 77426 } else { 77427 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 77428 } 77429 r.WriteMapElemValue() 77430 if false { 77431 } else { 77432 r.EncodeInt(int64(x.CpuShares)) 77433 } 77434 } 77435 if yyr2 || yy2arr2 { 77436 r.WriteArrayEnd() 77437 } else { 77438 r.WriteMapEnd() 77439 } 77440 } 77441 } 77442 } 77443 77444 func (x *NodeCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 77445 var h codecSelfer100 77446 z, r := codec1978.GenHelperDecoder(d) 77447 _, _, _ = h, z, r 77448 if false { 77449 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77450 z.DecExtension(x, yyxt1) 77451 } else { 77452 yyct2 := r.ContainerType() 77453 if yyct2 == codecSelferValueTypeMap100 { 77454 yyl2 := r.ReadMapStart() 77455 if yyl2 == 0 { 77456 r.ReadMapEnd() 77457 } else { 77458 x.codecDecodeSelfFromMap(yyl2, d) 77459 } 77460 } else if yyct2 == codecSelferValueTypeArray100 { 77461 yyl2 := r.ReadArrayStart() 77462 if yyl2 == 0 { 77463 r.ReadArrayEnd() 77464 } else { 77465 x.codecDecodeSelfFromArray(yyl2, d) 77466 } 77467 } else { 77468 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77469 } 77470 } 77471 } 77472 77473 func (x *NodeCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77474 var h codecSelfer100 77475 z, r := codec1978.GenHelperDecoder(d) 77476 _, _, _ = h, z, r 77477 var yyhl3 bool = l >= 0 77478 for yyj3 := 0; ; yyj3++ { 77479 if yyhl3 { 77480 if yyj3 >= l { 77481 break 77482 } 77483 } else { 77484 if r.CheckBreak() { 77485 break 77486 } 77487 } 77488 r.ReadMapElemKey() 77489 yys3 := z.StringView(r.DecodeStringAsBytes()) 77490 r.ReadMapElemValue() 77491 switch yys3 { 77492 case "CpuShares": 77493 if r.TryDecodeAsNil() { 77494 x.CpuShares = 0 77495 } else { 77496 x.CpuShares = (int64)(r.DecodeInt64()) 77497 } 77498 default: 77499 z.DecStructFieldNotFound(-1, yys3) 77500 } // end switch yys3 77501 } // end for yyj3 77502 r.ReadMapEnd() 77503 } 77504 77505 func (x *NodeCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77506 var h codecSelfer100 77507 z, r := codec1978.GenHelperDecoder(d) 77508 _, _, _ = h, z, r 77509 var yyj5 int 77510 var yyb5 bool 77511 var yyhl5 bool = l >= 0 77512 yyj5++ 77513 if yyhl5 { 77514 yyb5 = yyj5 > l 77515 } else { 77516 yyb5 = r.CheckBreak() 77517 } 77518 if yyb5 { 77519 r.ReadArrayEnd() 77520 return 77521 } 77522 r.ReadArrayElem() 77523 if r.TryDecodeAsNil() { 77524 x.CpuShares = 0 77525 } else { 77526 x.CpuShares = (int64)(r.DecodeInt64()) 77527 } 77528 for { 77529 yyj5++ 77530 if yyhl5 { 77531 yyb5 = yyj5 > l 77532 } else { 77533 yyb5 = r.CheckBreak() 77534 } 77535 if yyb5 { 77536 break 77537 } 77538 r.ReadArrayElem() 77539 z.DecStructFieldNotFound(yyj5-1, "") 77540 } 77541 r.ReadArrayEnd() 77542 } 77543 77544 func (x *NodeMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 77545 var h codecSelfer100 77546 z, r := codec1978.GenHelperEncoder(e) 77547 _, _, _ = h, z, r 77548 if x == nil { 77549 r.EncodeNil() 77550 } else { 77551 if false { 77552 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77553 z.EncExtension(x, yyxt1) 77554 } else { 77555 yysep2 := !z.EncBinary() 77556 yy2arr2 := z.EncBasicHandle().StructToArray 77557 _, _ = yysep2, yy2arr2 77558 const yyr2 bool = false // struct tag has 'toArray' 77559 if yyr2 || yy2arr2 { 77560 r.WriteArrayStart(1) 77561 } else { 77562 r.WriteMapStart(1) 77563 } 77564 if yyr2 || yy2arr2 { 77565 r.WriteArrayElem() 77566 if false { 77567 } else { 77568 r.EncodeInt(int64(x.MemoryMB)) 77569 } 77570 } else { 77571 r.WriteMapElemKey() 77572 if z.IsJSONHandle() { 77573 z.WriteStr("\"MemoryMB\"") 77574 } else { 77575 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 77576 } 77577 r.WriteMapElemValue() 77578 if false { 77579 } else { 77580 r.EncodeInt(int64(x.MemoryMB)) 77581 } 77582 } 77583 if yyr2 || yy2arr2 { 77584 r.WriteArrayEnd() 77585 } else { 77586 r.WriteMapEnd() 77587 } 77588 } 77589 } 77590 } 77591 77592 func (x *NodeMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 77593 var h codecSelfer100 77594 z, r := codec1978.GenHelperDecoder(d) 77595 _, _, _ = h, z, r 77596 if false { 77597 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77598 z.DecExtension(x, yyxt1) 77599 } else { 77600 yyct2 := r.ContainerType() 77601 if yyct2 == codecSelferValueTypeMap100 { 77602 yyl2 := r.ReadMapStart() 77603 if yyl2 == 0 { 77604 r.ReadMapEnd() 77605 } else { 77606 x.codecDecodeSelfFromMap(yyl2, d) 77607 } 77608 } else if yyct2 == codecSelferValueTypeArray100 { 77609 yyl2 := r.ReadArrayStart() 77610 if yyl2 == 0 { 77611 r.ReadArrayEnd() 77612 } else { 77613 x.codecDecodeSelfFromArray(yyl2, d) 77614 } 77615 } else { 77616 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77617 } 77618 } 77619 } 77620 77621 func (x *NodeMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77622 var h codecSelfer100 77623 z, r := codec1978.GenHelperDecoder(d) 77624 _, _, _ = h, z, r 77625 var yyhl3 bool = l >= 0 77626 for yyj3 := 0; ; yyj3++ { 77627 if yyhl3 { 77628 if yyj3 >= l { 77629 break 77630 } 77631 } else { 77632 if r.CheckBreak() { 77633 break 77634 } 77635 } 77636 r.ReadMapElemKey() 77637 yys3 := z.StringView(r.DecodeStringAsBytes()) 77638 r.ReadMapElemValue() 77639 switch yys3 { 77640 case "MemoryMB": 77641 if r.TryDecodeAsNil() { 77642 x.MemoryMB = 0 77643 } else { 77644 x.MemoryMB = (int64)(r.DecodeInt64()) 77645 } 77646 default: 77647 z.DecStructFieldNotFound(-1, yys3) 77648 } // end switch yys3 77649 } // end for yyj3 77650 r.ReadMapEnd() 77651 } 77652 77653 func (x *NodeMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77654 var h codecSelfer100 77655 z, r := codec1978.GenHelperDecoder(d) 77656 _, _, _ = h, z, r 77657 var yyj5 int 77658 var yyb5 bool 77659 var yyhl5 bool = l >= 0 77660 yyj5++ 77661 if yyhl5 { 77662 yyb5 = yyj5 > l 77663 } else { 77664 yyb5 = r.CheckBreak() 77665 } 77666 if yyb5 { 77667 r.ReadArrayEnd() 77668 return 77669 } 77670 r.ReadArrayElem() 77671 if r.TryDecodeAsNil() { 77672 x.MemoryMB = 0 77673 } else { 77674 x.MemoryMB = (int64)(r.DecodeInt64()) 77675 } 77676 for { 77677 yyj5++ 77678 if yyhl5 { 77679 yyb5 = yyj5 > l 77680 } else { 77681 yyb5 = r.CheckBreak() 77682 } 77683 if yyb5 { 77684 break 77685 } 77686 r.ReadArrayElem() 77687 z.DecStructFieldNotFound(yyj5-1, "") 77688 } 77689 r.ReadArrayEnd() 77690 } 77691 77692 func (x *NodeDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { 77693 var h codecSelfer100 77694 z, r := codec1978.GenHelperEncoder(e) 77695 _, _, _ = h, z, r 77696 if x == nil { 77697 r.EncodeNil() 77698 } else { 77699 if false { 77700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77701 z.EncExtension(x, yyxt1) 77702 } else { 77703 yysep2 := !z.EncBinary() 77704 yy2arr2 := z.EncBasicHandle().StructToArray 77705 _, _ = yysep2, yy2arr2 77706 const yyr2 bool = false // struct tag has 'toArray' 77707 if yyr2 || yy2arr2 { 77708 r.WriteArrayStart(1) 77709 } else { 77710 r.WriteMapStart(1) 77711 } 77712 if yyr2 || yy2arr2 { 77713 r.WriteArrayElem() 77714 if false { 77715 } else { 77716 r.EncodeInt(int64(x.DiskMB)) 77717 } 77718 } else { 77719 r.WriteMapElemKey() 77720 if z.IsJSONHandle() { 77721 z.WriteStr("\"DiskMB\"") 77722 } else { 77723 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 77724 } 77725 r.WriteMapElemValue() 77726 if false { 77727 } else { 77728 r.EncodeInt(int64(x.DiskMB)) 77729 } 77730 } 77731 if yyr2 || yy2arr2 { 77732 r.WriteArrayEnd() 77733 } else { 77734 r.WriteMapEnd() 77735 } 77736 } 77737 } 77738 } 77739 77740 func (x *NodeDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { 77741 var h codecSelfer100 77742 z, r := codec1978.GenHelperDecoder(d) 77743 _, _, _ = h, z, r 77744 if false { 77745 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77746 z.DecExtension(x, yyxt1) 77747 } else { 77748 yyct2 := r.ContainerType() 77749 if yyct2 == codecSelferValueTypeMap100 { 77750 yyl2 := r.ReadMapStart() 77751 if yyl2 == 0 { 77752 r.ReadMapEnd() 77753 } else { 77754 x.codecDecodeSelfFromMap(yyl2, d) 77755 } 77756 } else if yyct2 == codecSelferValueTypeArray100 { 77757 yyl2 := r.ReadArrayStart() 77758 if yyl2 == 0 { 77759 r.ReadArrayEnd() 77760 } else { 77761 x.codecDecodeSelfFromArray(yyl2, d) 77762 } 77763 } else { 77764 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77765 } 77766 } 77767 } 77768 77769 func (x *NodeDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77770 var h codecSelfer100 77771 z, r := codec1978.GenHelperDecoder(d) 77772 _, _, _ = h, z, r 77773 var yyhl3 bool = l >= 0 77774 for yyj3 := 0; ; yyj3++ { 77775 if yyhl3 { 77776 if yyj3 >= l { 77777 break 77778 } 77779 } else { 77780 if r.CheckBreak() { 77781 break 77782 } 77783 } 77784 r.ReadMapElemKey() 77785 yys3 := z.StringView(r.DecodeStringAsBytes()) 77786 r.ReadMapElemValue() 77787 switch yys3 { 77788 case "DiskMB": 77789 if r.TryDecodeAsNil() { 77790 x.DiskMB = 0 77791 } else { 77792 x.DiskMB = (int64)(r.DecodeInt64()) 77793 } 77794 default: 77795 z.DecStructFieldNotFound(-1, yys3) 77796 } // end switch yys3 77797 } // end for yyj3 77798 r.ReadMapEnd() 77799 } 77800 77801 func (x *NodeDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 77802 var h codecSelfer100 77803 z, r := codec1978.GenHelperDecoder(d) 77804 _, _, _ = h, z, r 77805 var yyj5 int 77806 var yyb5 bool 77807 var yyhl5 bool = l >= 0 77808 yyj5++ 77809 if yyhl5 { 77810 yyb5 = yyj5 > l 77811 } else { 77812 yyb5 = r.CheckBreak() 77813 } 77814 if yyb5 { 77815 r.ReadArrayEnd() 77816 return 77817 } 77818 r.ReadArrayElem() 77819 if r.TryDecodeAsNil() { 77820 x.DiskMB = 0 77821 } else { 77822 x.DiskMB = (int64)(r.DecodeInt64()) 77823 } 77824 for { 77825 yyj5++ 77826 if yyhl5 { 77827 yyb5 = yyj5 > l 77828 } else { 77829 yyb5 = r.CheckBreak() 77830 } 77831 if yyb5 { 77832 break 77833 } 77834 r.ReadArrayElem() 77835 z.DecStructFieldNotFound(yyj5-1, "") 77836 } 77837 r.ReadArrayEnd() 77838 } 77839 77840 func (x *DeviceIdTuple) CodecEncodeSelf(e *codec1978.Encoder) { 77841 var h codecSelfer100 77842 z, r := codec1978.GenHelperEncoder(e) 77843 _, _, _ = h, z, r 77844 if x == nil { 77845 r.EncodeNil() 77846 } else { 77847 if false { 77848 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77849 z.EncExtension(x, yyxt1) 77850 } else { 77851 yysep2 := !z.EncBinary() 77852 yy2arr2 := z.EncBasicHandle().StructToArray 77853 _, _ = yysep2, yy2arr2 77854 const yyr2 bool = false // struct tag has 'toArray' 77855 if yyr2 || yy2arr2 { 77856 r.WriteArrayStart(3) 77857 } else { 77858 r.WriteMapStart(3) 77859 } 77860 if yyr2 || yy2arr2 { 77861 r.WriteArrayElem() 77862 if false { 77863 } else { 77864 if z.EncBasicHandle().StringToRaw { 77865 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 77866 } else { 77867 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 77868 } 77869 } 77870 } else { 77871 r.WriteMapElemKey() 77872 if z.IsJSONHandle() { 77873 z.WriteStr("\"Vendor\"") 77874 } else { 77875 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 77876 } 77877 r.WriteMapElemValue() 77878 if false { 77879 } else { 77880 if z.EncBasicHandle().StringToRaw { 77881 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 77882 } else { 77883 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 77884 } 77885 } 77886 } 77887 if yyr2 || yy2arr2 { 77888 r.WriteArrayElem() 77889 if false { 77890 } else { 77891 if z.EncBasicHandle().StringToRaw { 77892 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 77893 } else { 77894 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 77895 } 77896 } 77897 } else { 77898 r.WriteMapElemKey() 77899 if z.IsJSONHandle() { 77900 z.WriteStr("\"Type\"") 77901 } else { 77902 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 77903 } 77904 r.WriteMapElemValue() 77905 if false { 77906 } else { 77907 if z.EncBasicHandle().StringToRaw { 77908 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 77909 } else { 77910 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 77911 } 77912 } 77913 } 77914 if yyr2 || yy2arr2 { 77915 r.WriteArrayElem() 77916 if false { 77917 } else { 77918 if z.EncBasicHandle().StringToRaw { 77919 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 77920 } else { 77921 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 77922 } 77923 } 77924 } else { 77925 r.WriteMapElemKey() 77926 if z.IsJSONHandle() { 77927 z.WriteStr("\"Name\"") 77928 } else { 77929 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 77930 } 77931 r.WriteMapElemValue() 77932 if false { 77933 } else { 77934 if z.EncBasicHandle().StringToRaw { 77935 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 77936 } else { 77937 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 77938 } 77939 } 77940 } 77941 if yyr2 || yy2arr2 { 77942 r.WriteArrayEnd() 77943 } else { 77944 r.WriteMapEnd() 77945 } 77946 } 77947 } 77948 } 77949 77950 func (x *DeviceIdTuple) CodecDecodeSelf(d *codec1978.Decoder) { 77951 var h codecSelfer100 77952 z, r := codec1978.GenHelperDecoder(d) 77953 _, _, _ = h, z, r 77954 if false { 77955 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 77956 z.DecExtension(x, yyxt1) 77957 } else { 77958 yyct2 := r.ContainerType() 77959 if yyct2 == codecSelferValueTypeMap100 { 77960 yyl2 := r.ReadMapStart() 77961 if yyl2 == 0 { 77962 r.ReadMapEnd() 77963 } else { 77964 x.codecDecodeSelfFromMap(yyl2, d) 77965 } 77966 } else if yyct2 == codecSelferValueTypeArray100 { 77967 yyl2 := r.ReadArrayStart() 77968 if yyl2 == 0 { 77969 r.ReadArrayEnd() 77970 } else { 77971 x.codecDecodeSelfFromArray(yyl2, d) 77972 } 77973 } else { 77974 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 77975 } 77976 } 77977 } 77978 77979 func (x *DeviceIdTuple) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 77980 var h codecSelfer100 77981 z, r := codec1978.GenHelperDecoder(d) 77982 _, _, _ = h, z, r 77983 var yyhl3 bool = l >= 0 77984 for yyj3 := 0; ; yyj3++ { 77985 if yyhl3 { 77986 if yyj3 >= l { 77987 break 77988 } 77989 } else { 77990 if r.CheckBreak() { 77991 break 77992 } 77993 } 77994 r.ReadMapElemKey() 77995 yys3 := z.StringView(r.DecodeStringAsBytes()) 77996 r.ReadMapElemValue() 77997 switch yys3 { 77998 case "Vendor": 77999 if r.TryDecodeAsNil() { 78000 x.Vendor = "" 78001 } else { 78002 x.Vendor = (string)(r.DecodeString()) 78003 } 78004 case "Type": 78005 if r.TryDecodeAsNil() { 78006 x.Type = "" 78007 } else { 78008 x.Type = (string)(r.DecodeString()) 78009 } 78010 case "Name": 78011 if r.TryDecodeAsNil() { 78012 x.Name = "" 78013 } else { 78014 x.Name = (string)(r.DecodeString()) 78015 } 78016 default: 78017 z.DecStructFieldNotFound(-1, yys3) 78018 } // end switch yys3 78019 } // end for yyj3 78020 r.ReadMapEnd() 78021 } 78022 78023 func (x *DeviceIdTuple) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78024 var h codecSelfer100 78025 z, r := codec1978.GenHelperDecoder(d) 78026 _, _, _ = h, z, r 78027 var yyj7 int 78028 var yyb7 bool 78029 var yyhl7 bool = l >= 0 78030 yyj7++ 78031 if yyhl7 { 78032 yyb7 = yyj7 > l 78033 } else { 78034 yyb7 = r.CheckBreak() 78035 } 78036 if yyb7 { 78037 r.ReadArrayEnd() 78038 return 78039 } 78040 r.ReadArrayElem() 78041 if r.TryDecodeAsNil() { 78042 x.Vendor = "" 78043 } else { 78044 x.Vendor = (string)(r.DecodeString()) 78045 } 78046 yyj7++ 78047 if yyhl7 { 78048 yyb7 = yyj7 > l 78049 } else { 78050 yyb7 = r.CheckBreak() 78051 } 78052 if yyb7 { 78053 r.ReadArrayEnd() 78054 return 78055 } 78056 r.ReadArrayElem() 78057 if r.TryDecodeAsNil() { 78058 x.Type = "" 78059 } else { 78060 x.Type = (string)(r.DecodeString()) 78061 } 78062 yyj7++ 78063 if yyhl7 { 78064 yyb7 = yyj7 > l 78065 } else { 78066 yyb7 = r.CheckBreak() 78067 } 78068 if yyb7 { 78069 r.ReadArrayEnd() 78070 return 78071 } 78072 r.ReadArrayElem() 78073 if r.TryDecodeAsNil() { 78074 x.Name = "" 78075 } else { 78076 x.Name = (string)(r.DecodeString()) 78077 } 78078 for { 78079 yyj7++ 78080 if yyhl7 { 78081 yyb7 = yyj7 > l 78082 } else { 78083 yyb7 = r.CheckBreak() 78084 } 78085 if yyb7 { 78086 break 78087 } 78088 r.ReadArrayElem() 78089 z.DecStructFieldNotFound(yyj7-1, "") 78090 } 78091 r.ReadArrayEnd() 78092 } 78093 78094 func (x *NodeDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { 78095 var h codecSelfer100 78096 z, r := codec1978.GenHelperEncoder(e) 78097 _, _, _ = h, z, r 78098 if x == nil { 78099 r.EncodeNil() 78100 } else { 78101 if false { 78102 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78103 z.EncExtension(x, yyxt1) 78104 } else { 78105 yysep2 := !z.EncBinary() 78106 yy2arr2 := z.EncBasicHandle().StructToArray 78107 _, _ = yysep2, yy2arr2 78108 const yyr2 bool = false // struct tag has 'toArray' 78109 if yyr2 || yy2arr2 { 78110 r.WriteArrayStart(5) 78111 } else { 78112 r.WriteMapStart(5) 78113 } 78114 if yyr2 || yy2arr2 { 78115 r.WriteArrayElem() 78116 if false { 78117 } else { 78118 if z.EncBasicHandle().StringToRaw { 78119 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 78120 } else { 78121 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 78122 } 78123 } 78124 } else { 78125 r.WriteMapElemKey() 78126 if z.IsJSONHandle() { 78127 z.WriteStr("\"Vendor\"") 78128 } else { 78129 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 78130 } 78131 r.WriteMapElemValue() 78132 if false { 78133 } else { 78134 if z.EncBasicHandle().StringToRaw { 78135 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 78136 } else { 78137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 78138 } 78139 } 78140 } 78141 if yyr2 || yy2arr2 { 78142 r.WriteArrayElem() 78143 if false { 78144 } else { 78145 if z.EncBasicHandle().StringToRaw { 78146 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 78147 } else { 78148 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 78149 } 78150 } 78151 } else { 78152 r.WriteMapElemKey() 78153 if z.IsJSONHandle() { 78154 z.WriteStr("\"Type\"") 78155 } else { 78156 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 78157 } 78158 r.WriteMapElemValue() 78159 if false { 78160 } else { 78161 if z.EncBasicHandle().StringToRaw { 78162 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 78163 } else { 78164 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 78165 } 78166 } 78167 } 78168 if yyr2 || yy2arr2 { 78169 r.WriteArrayElem() 78170 if false { 78171 } else { 78172 if z.EncBasicHandle().StringToRaw { 78173 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 78174 } else { 78175 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 78176 } 78177 } 78178 } else { 78179 r.WriteMapElemKey() 78180 if z.IsJSONHandle() { 78181 z.WriteStr("\"Name\"") 78182 } else { 78183 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 78184 } 78185 r.WriteMapElemValue() 78186 if false { 78187 } else { 78188 if z.EncBasicHandle().StringToRaw { 78189 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 78190 } else { 78191 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 78192 } 78193 } 78194 } 78195 if yyr2 || yy2arr2 { 78196 r.WriteArrayElem() 78197 if x.Instances == nil { 78198 r.EncodeNil() 78199 } else { 78200 if false { 78201 } else { 78202 h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) 78203 } 78204 } 78205 } else { 78206 r.WriteMapElemKey() 78207 if z.IsJSONHandle() { 78208 z.WriteStr("\"Instances\"") 78209 } else { 78210 r.EncodeStringEnc(codecSelferCcUTF8100, `Instances`) 78211 } 78212 r.WriteMapElemValue() 78213 if x.Instances == nil { 78214 r.EncodeNil() 78215 } else { 78216 if false { 78217 } else { 78218 h.encSlicePtrtoNodeDevice(([]*NodeDevice)(x.Instances), e) 78219 } 78220 } 78221 } 78222 if yyr2 || yy2arr2 { 78223 r.WriteArrayElem() 78224 if x.Attributes == nil { 78225 r.EncodeNil() 78226 } else { 78227 if false { 78228 } else { 78229 h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) 78230 } 78231 } 78232 } else { 78233 r.WriteMapElemKey() 78234 if z.IsJSONHandle() { 78235 z.WriteStr("\"Attributes\"") 78236 } else { 78237 r.EncodeStringEnc(codecSelferCcUTF8100, `Attributes`) 78238 } 78239 r.WriteMapElemValue() 78240 if x.Attributes == nil { 78241 r.EncodeNil() 78242 } else { 78243 if false { 78244 } else { 78245 h.encMapstringPtrtostructs_Attribute((map[string]*pkg1_structs.Attribute)(x.Attributes), e) 78246 } 78247 } 78248 } 78249 if yyr2 || yy2arr2 { 78250 r.WriteArrayEnd() 78251 } else { 78252 r.WriteMapEnd() 78253 } 78254 } 78255 } 78256 } 78257 78258 func (x *NodeDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { 78259 var h codecSelfer100 78260 z, r := codec1978.GenHelperDecoder(d) 78261 _, _, _ = h, z, r 78262 if false { 78263 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78264 z.DecExtension(x, yyxt1) 78265 } else { 78266 yyct2 := r.ContainerType() 78267 if yyct2 == codecSelferValueTypeMap100 { 78268 yyl2 := r.ReadMapStart() 78269 if yyl2 == 0 { 78270 r.ReadMapEnd() 78271 } else { 78272 x.codecDecodeSelfFromMap(yyl2, d) 78273 } 78274 } else if yyct2 == codecSelferValueTypeArray100 { 78275 yyl2 := r.ReadArrayStart() 78276 if yyl2 == 0 { 78277 r.ReadArrayEnd() 78278 } else { 78279 x.codecDecodeSelfFromArray(yyl2, d) 78280 } 78281 } else { 78282 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78283 } 78284 } 78285 } 78286 78287 func (x *NodeDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78288 var h codecSelfer100 78289 z, r := codec1978.GenHelperDecoder(d) 78290 _, _, _ = h, z, r 78291 var yyhl3 bool = l >= 0 78292 for yyj3 := 0; ; yyj3++ { 78293 if yyhl3 { 78294 if yyj3 >= l { 78295 break 78296 } 78297 } else { 78298 if r.CheckBreak() { 78299 break 78300 } 78301 } 78302 r.ReadMapElemKey() 78303 yys3 := z.StringView(r.DecodeStringAsBytes()) 78304 r.ReadMapElemValue() 78305 switch yys3 { 78306 case "Vendor": 78307 if r.TryDecodeAsNil() { 78308 x.Vendor = "" 78309 } else { 78310 x.Vendor = (string)(r.DecodeString()) 78311 } 78312 case "Type": 78313 if r.TryDecodeAsNil() { 78314 x.Type = "" 78315 } else { 78316 x.Type = (string)(r.DecodeString()) 78317 } 78318 case "Name": 78319 if r.TryDecodeAsNil() { 78320 x.Name = "" 78321 } else { 78322 x.Name = (string)(r.DecodeString()) 78323 } 78324 case "Instances": 78325 if r.TryDecodeAsNil() { 78326 x.Instances = nil 78327 } else { 78328 if false { 78329 } else { 78330 h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) 78331 } 78332 } 78333 case "Attributes": 78334 if r.TryDecodeAsNil() { 78335 x.Attributes = nil 78336 } else { 78337 if false { 78338 } else { 78339 h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) 78340 } 78341 } 78342 default: 78343 z.DecStructFieldNotFound(-1, yys3) 78344 } // end switch yys3 78345 } // end for yyj3 78346 r.ReadMapEnd() 78347 } 78348 78349 func (x *NodeDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78350 var h codecSelfer100 78351 z, r := codec1978.GenHelperDecoder(d) 78352 _, _, _ = h, z, r 78353 var yyj11 int 78354 var yyb11 bool 78355 var yyhl11 bool = l >= 0 78356 yyj11++ 78357 if yyhl11 { 78358 yyb11 = yyj11 > l 78359 } else { 78360 yyb11 = r.CheckBreak() 78361 } 78362 if yyb11 { 78363 r.ReadArrayEnd() 78364 return 78365 } 78366 r.ReadArrayElem() 78367 if r.TryDecodeAsNil() { 78368 x.Vendor = "" 78369 } else { 78370 x.Vendor = (string)(r.DecodeString()) 78371 } 78372 yyj11++ 78373 if yyhl11 { 78374 yyb11 = yyj11 > l 78375 } else { 78376 yyb11 = r.CheckBreak() 78377 } 78378 if yyb11 { 78379 r.ReadArrayEnd() 78380 return 78381 } 78382 r.ReadArrayElem() 78383 if r.TryDecodeAsNil() { 78384 x.Type = "" 78385 } else { 78386 x.Type = (string)(r.DecodeString()) 78387 } 78388 yyj11++ 78389 if yyhl11 { 78390 yyb11 = yyj11 > l 78391 } else { 78392 yyb11 = r.CheckBreak() 78393 } 78394 if yyb11 { 78395 r.ReadArrayEnd() 78396 return 78397 } 78398 r.ReadArrayElem() 78399 if r.TryDecodeAsNil() { 78400 x.Name = "" 78401 } else { 78402 x.Name = (string)(r.DecodeString()) 78403 } 78404 yyj11++ 78405 if yyhl11 { 78406 yyb11 = yyj11 > l 78407 } else { 78408 yyb11 = r.CheckBreak() 78409 } 78410 if yyb11 { 78411 r.ReadArrayEnd() 78412 return 78413 } 78414 r.ReadArrayElem() 78415 if r.TryDecodeAsNil() { 78416 x.Instances = nil 78417 } else { 78418 if false { 78419 } else { 78420 h.decSlicePtrtoNodeDevice((*[]*NodeDevice)(&x.Instances), d) 78421 } 78422 } 78423 yyj11++ 78424 if yyhl11 { 78425 yyb11 = yyj11 > l 78426 } else { 78427 yyb11 = r.CheckBreak() 78428 } 78429 if yyb11 { 78430 r.ReadArrayEnd() 78431 return 78432 } 78433 r.ReadArrayElem() 78434 if r.TryDecodeAsNil() { 78435 x.Attributes = nil 78436 } else { 78437 if false { 78438 } else { 78439 h.decMapstringPtrtostructs_Attribute((*map[string]*pkg1_structs.Attribute)(&x.Attributes), d) 78440 } 78441 } 78442 for { 78443 yyj11++ 78444 if yyhl11 { 78445 yyb11 = yyj11 > l 78446 } else { 78447 yyb11 = r.CheckBreak() 78448 } 78449 if yyb11 { 78450 break 78451 } 78452 r.ReadArrayElem() 78453 z.DecStructFieldNotFound(yyj11-1, "") 78454 } 78455 r.ReadArrayEnd() 78456 } 78457 78458 func (x *NodeDevice) CodecEncodeSelf(e *codec1978.Encoder) { 78459 var h codecSelfer100 78460 z, r := codec1978.GenHelperEncoder(e) 78461 _, _, _ = h, z, r 78462 if x == nil { 78463 r.EncodeNil() 78464 } else { 78465 if false { 78466 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78467 z.EncExtension(x, yyxt1) 78468 } else { 78469 yysep2 := !z.EncBinary() 78470 yy2arr2 := z.EncBasicHandle().StructToArray 78471 _, _ = yysep2, yy2arr2 78472 const yyr2 bool = false // struct tag has 'toArray' 78473 if yyr2 || yy2arr2 { 78474 r.WriteArrayStart(4) 78475 } else { 78476 r.WriteMapStart(4) 78477 } 78478 if yyr2 || yy2arr2 { 78479 r.WriteArrayElem() 78480 if false { 78481 } else { 78482 if z.EncBasicHandle().StringToRaw { 78483 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 78484 } else { 78485 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 78486 } 78487 } 78488 } else { 78489 r.WriteMapElemKey() 78490 if z.IsJSONHandle() { 78491 z.WriteStr("\"ID\"") 78492 } else { 78493 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 78494 } 78495 r.WriteMapElemValue() 78496 if false { 78497 } else { 78498 if z.EncBasicHandle().StringToRaw { 78499 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 78500 } else { 78501 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 78502 } 78503 } 78504 } 78505 if yyr2 || yy2arr2 { 78506 r.WriteArrayElem() 78507 if false { 78508 } else { 78509 r.EncodeBool(bool(x.Healthy)) 78510 } 78511 } else { 78512 r.WriteMapElemKey() 78513 if z.IsJSONHandle() { 78514 z.WriteStr("\"Healthy\"") 78515 } else { 78516 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 78517 } 78518 r.WriteMapElemValue() 78519 if false { 78520 } else { 78521 r.EncodeBool(bool(x.Healthy)) 78522 } 78523 } 78524 if yyr2 || yy2arr2 { 78525 r.WriteArrayElem() 78526 if false { 78527 } else { 78528 if z.EncBasicHandle().StringToRaw { 78529 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 78530 } else { 78531 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 78532 } 78533 } 78534 } else { 78535 r.WriteMapElemKey() 78536 if z.IsJSONHandle() { 78537 z.WriteStr("\"HealthDescription\"") 78538 } else { 78539 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthDescription`) 78540 } 78541 r.WriteMapElemValue() 78542 if false { 78543 } else { 78544 if z.EncBasicHandle().StringToRaw { 78545 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthDescription))) 78546 } else { 78547 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthDescription)) 78548 } 78549 } 78550 } 78551 var yyn12 bool 78552 if x.Locality == nil { 78553 yyn12 = true 78554 goto LABEL12 78555 } 78556 LABEL12: 78557 if yyr2 || yy2arr2 { 78558 if yyn12 { 78559 r.WriteArrayElem() 78560 r.EncodeNil() 78561 } else { 78562 r.WriteArrayElem() 78563 if x.Locality == nil { 78564 r.EncodeNil() 78565 } else { 78566 x.Locality.CodecEncodeSelf(e) 78567 } 78568 } 78569 } else { 78570 r.WriteMapElemKey() 78571 if z.IsJSONHandle() { 78572 z.WriteStr("\"Locality\"") 78573 } else { 78574 r.EncodeStringEnc(codecSelferCcUTF8100, `Locality`) 78575 } 78576 r.WriteMapElemValue() 78577 if yyn12 { 78578 r.EncodeNil() 78579 } else { 78580 if x.Locality == nil { 78581 r.EncodeNil() 78582 } else { 78583 x.Locality.CodecEncodeSelf(e) 78584 } 78585 } 78586 } 78587 if yyr2 || yy2arr2 { 78588 r.WriteArrayEnd() 78589 } else { 78590 r.WriteMapEnd() 78591 } 78592 } 78593 } 78594 } 78595 78596 func (x *NodeDevice) CodecDecodeSelf(d *codec1978.Decoder) { 78597 var h codecSelfer100 78598 z, r := codec1978.GenHelperDecoder(d) 78599 _, _, _ = h, z, r 78600 if false { 78601 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78602 z.DecExtension(x, yyxt1) 78603 } else { 78604 yyct2 := r.ContainerType() 78605 if yyct2 == codecSelferValueTypeMap100 { 78606 yyl2 := r.ReadMapStart() 78607 if yyl2 == 0 { 78608 r.ReadMapEnd() 78609 } else { 78610 x.codecDecodeSelfFromMap(yyl2, d) 78611 } 78612 } else if yyct2 == codecSelferValueTypeArray100 { 78613 yyl2 := r.ReadArrayStart() 78614 if yyl2 == 0 { 78615 r.ReadArrayEnd() 78616 } else { 78617 x.codecDecodeSelfFromArray(yyl2, d) 78618 } 78619 } else { 78620 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78621 } 78622 } 78623 } 78624 78625 func (x *NodeDevice) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78626 var h codecSelfer100 78627 z, r := codec1978.GenHelperDecoder(d) 78628 _, _, _ = h, z, r 78629 var yyhl3 bool = l >= 0 78630 for yyj3 := 0; ; yyj3++ { 78631 if yyhl3 { 78632 if yyj3 >= l { 78633 break 78634 } 78635 } else { 78636 if r.CheckBreak() { 78637 break 78638 } 78639 } 78640 r.ReadMapElemKey() 78641 yys3 := z.StringView(r.DecodeStringAsBytes()) 78642 r.ReadMapElemValue() 78643 switch yys3 { 78644 case "ID": 78645 if r.TryDecodeAsNil() { 78646 x.ID = "" 78647 } else { 78648 x.ID = (string)(r.DecodeString()) 78649 } 78650 case "Healthy": 78651 if r.TryDecodeAsNil() { 78652 x.Healthy = false 78653 } else { 78654 x.Healthy = (bool)(r.DecodeBool()) 78655 } 78656 case "HealthDescription": 78657 if r.TryDecodeAsNil() { 78658 x.HealthDescription = "" 78659 } else { 78660 x.HealthDescription = (string)(r.DecodeString()) 78661 } 78662 case "Locality": 78663 if r.TryDecodeAsNil() { 78664 if true && x.Locality != nil { 78665 x.Locality = nil 78666 } 78667 } else { 78668 if x.Locality == nil { 78669 x.Locality = new(NodeDeviceLocality) 78670 } 78671 78672 x.Locality.CodecDecodeSelf(d) 78673 } 78674 default: 78675 z.DecStructFieldNotFound(-1, yys3) 78676 } // end switch yys3 78677 } // end for yyj3 78678 r.ReadMapEnd() 78679 } 78680 78681 func (x *NodeDevice) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78682 var h codecSelfer100 78683 z, r := codec1978.GenHelperDecoder(d) 78684 _, _, _ = h, z, r 78685 var yyj8 int 78686 var yyb8 bool 78687 var yyhl8 bool = l >= 0 78688 yyj8++ 78689 if yyhl8 { 78690 yyb8 = yyj8 > l 78691 } else { 78692 yyb8 = r.CheckBreak() 78693 } 78694 if yyb8 { 78695 r.ReadArrayEnd() 78696 return 78697 } 78698 r.ReadArrayElem() 78699 if r.TryDecodeAsNil() { 78700 x.ID = "" 78701 } else { 78702 x.ID = (string)(r.DecodeString()) 78703 } 78704 yyj8++ 78705 if yyhl8 { 78706 yyb8 = yyj8 > l 78707 } else { 78708 yyb8 = r.CheckBreak() 78709 } 78710 if yyb8 { 78711 r.ReadArrayEnd() 78712 return 78713 } 78714 r.ReadArrayElem() 78715 if r.TryDecodeAsNil() { 78716 x.Healthy = false 78717 } else { 78718 x.Healthy = (bool)(r.DecodeBool()) 78719 } 78720 yyj8++ 78721 if yyhl8 { 78722 yyb8 = yyj8 > l 78723 } else { 78724 yyb8 = r.CheckBreak() 78725 } 78726 if yyb8 { 78727 r.ReadArrayEnd() 78728 return 78729 } 78730 r.ReadArrayElem() 78731 if r.TryDecodeAsNil() { 78732 x.HealthDescription = "" 78733 } else { 78734 x.HealthDescription = (string)(r.DecodeString()) 78735 } 78736 yyj8++ 78737 if yyhl8 { 78738 yyb8 = yyj8 > l 78739 } else { 78740 yyb8 = r.CheckBreak() 78741 } 78742 if yyb8 { 78743 r.ReadArrayEnd() 78744 return 78745 } 78746 r.ReadArrayElem() 78747 if r.TryDecodeAsNil() { 78748 if true && x.Locality != nil { 78749 x.Locality = nil 78750 } 78751 } else { 78752 if x.Locality == nil { 78753 x.Locality = new(NodeDeviceLocality) 78754 } 78755 78756 x.Locality.CodecDecodeSelf(d) 78757 } 78758 for { 78759 yyj8++ 78760 if yyhl8 { 78761 yyb8 = yyj8 > l 78762 } else { 78763 yyb8 = r.CheckBreak() 78764 } 78765 if yyb8 { 78766 break 78767 } 78768 r.ReadArrayElem() 78769 z.DecStructFieldNotFound(yyj8-1, "") 78770 } 78771 r.ReadArrayEnd() 78772 } 78773 78774 func (x *NodeDeviceLocality) CodecEncodeSelf(e *codec1978.Encoder) { 78775 var h codecSelfer100 78776 z, r := codec1978.GenHelperEncoder(e) 78777 _, _, _ = h, z, r 78778 if x == nil { 78779 r.EncodeNil() 78780 } else { 78781 if false { 78782 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78783 z.EncExtension(x, yyxt1) 78784 } else { 78785 yysep2 := !z.EncBinary() 78786 yy2arr2 := z.EncBasicHandle().StructToArray 78787 _, _ = yysep2, yy2arr2 78788 const yyr2 bool = false // struct tag has 'toArray' 78789 if yyr2 || yy2arr2 { 78790 r.WriteArrayStart(1) 78791 } else { 78792 r.WriteMapStart(1) 78793 } 78794 if yyr2 || yy2arr2 { 78795 r.WriteArrayElem() 78796 if false { 78797 } else { 78798 if z.EncBasicHandle().StringToRaw { 78799 r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) 78800 } else { 78801 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) 78802 } 78803 } 78804 } else { 78805 r.WriteMapElemKey() 78806 if z.IsJSONHandle() { 78807 z.WriteStr("\"PciBusID\"") 78808 } else { 78809 r.EncodeStringEnc(codecSelferCcUTF8100, `PciBusID`) 78810 } 78811 r.WriteMapElemValue() 78812 if false { 78813 } else { 78814 if z.EncBasicHandle().StringToRaw { 78815 r.EncodeStringBytesRaw(z.BytesView(string(x.PciBusID))) 78816 } else { 78817 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PciBusID)) 78818 } 78819 } 78820 } 78821 if yyr2 || yy2arr2 { 78822 r.WriteArrayEnd() 78823 } else { 78824 r.WriteMapEnd() 78825 } 78826 } 78827 } 78828 } 78829 78830 func (x *NodeDeviceLocality) CodecDecodeSelf(d *codec1978.Decoder) { 78831 var h codecSelfer100 78832 z, r := codec1978.GenHelperDecoder(d) 78833 _, _, _ = h, z, r 78834 if false { 78835 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78836 z.DecExtension(x, yyxt1) 78837 } else { 78838 yyct2 := r.ContainerType() 78839 if yyct2 == codecSelferValueTypeMap100 { 78840 yyl2 := r.ReadMapStart() 78841 if yyl2 == 0 { 78842 r.ReadMapEnd() 78843 } else { 78844 x.codecDecodeSelfFromMap(yyl2, d) 78845 } 78846 } else if yyct2 == codecSelferValueTypeArray100 { 78847 yyl2 := r.ReadArrayStart() 78848 if yyl2 == 0 { 78849 r.ReadArrayEnd() 78850 } else { 78851 x.codecDecodeSelfFromArray(yyl2, d) 78852 } 78853 } else { 78854 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 78855 } 78856 } 78857 } 78858 78859 func (x *NodeDeviceLocality) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 78860 var h codecSelfer100 78861 z, r := codec1978.GenHelperDecoder(d) 78862 _, _, _ = h, z, r 78863 var yyhl3 bool = l >= 0 78864 for yyj3 := 0; ; yyj3++ { 78865 if yyhl3 { 78866 if yyj3 >= l { 78867 break 78868 } 78869 } else { 78870 if r.CheckBreak() { 78871 break 78872 } 78873 } 78874 r.ReadMapElemKey() 78875 yys3 := z.StringView(r.DecodeStringAsBytes()) 78876 r.ReadMapElemValue() 78877 switch yys3 { 78878 case "PciBusID": 78879 if r.TryDecodeAsNil() { 78880 x.PciBusID = "" 78881 } else { 78882 x.PciBusID = (string)(r.DecodeString()) 78883 } 78884 default: 78885 z.DecStructFieldNotFound(-1, yys3) 78886 } // end switch yys3 78887 } // end for yyj3 78888 r.ReadMapEnd() 78889 } 78890 78891 func (x *NodeDeviceLocality) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 78892 var h codecSelfer100 78893 z, r := codec1978.GenHelperDecoder(d) 78894 _, _, _ = h, z, r 78895 var yyj5 int 78896 var yyb5 bool 78897 var yyhl5 bool = l >= 0 78898 yyj5++ 78899 if yyhl5 { 78900 yyb5 = yyj5 > l 78901 } else { 78902 yyb5 = r.CheckBreak() 78903 } 78904 if yyb5 { 78905 r.ReadArrayEnd() 78906 return 78907 } 78908 r.ReadArrayElem() 78909 if r.TryDecodeAsNil() { 78910 x.PciBusID = "" 78911 } else { 78912 x.PciBusID = (string)(r.DecodeString()) 78913 } 78914 for { 78915 yyj5++ 78916 if yyhl5 { 78917 yyb5 = yyj5 > l 78918 } else { 78919 yyb5 = r.CheckBreak() 78920 } 78921 if yyb5 { 78922 break 78923 } 78924 r.ReadArrayElem() 78925 z.DecStructFieldNotFound(yyj5-1, "") 78926 } 78927 r.ReadArrayEnd() 78928 } 78929 78930 func (x *NodeReservedResources) CodecEncodeSelf(e *codec1978.Encoder) { 78931 var h codecSelfer100 78932 z, r := codec1978.GenHelperEncoder(e) 78933 _, _, _ = h, z, r 78934 if x == nil { 78935 r.EncodeNil() 78936 } else { 78937 if false { 78938 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 78939 z.EncExtension(x, yyxt1) 78940 } else { 78941 yysep2 := !z.EncBinary() 78942 yy2arr2 := z.EncBasicHandle().StructToArray 78943 _, _ = yysep2, yy2arr2 78944 const yyr2 bool = false // struct tag has 'toArray' 78945 if yyr2 || yy2arr2 { 78946 r.WriteArrayStart(4) 78947 } else { 78948 r.WriteMapStart(4) 78949 } 78950 if yyr2 || yy2arr2 { 78951 r.WriteArrayElem() 78952 yy4 := &x.Cpu 78953 yy4.CodecEncodeSelf(e) 78954 } else { 78955 r.WriteMapElemKey() 78956 if z.IsJSONHandle() { 78957 z.WriteStr("\"Cpu\"") 78958 } else { 78959 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 78960 } 78961 r.WriteMapElemValue() 78962 yy6 := &x.Cpu 78963 yy6.CodecEncodeSelf(e) 78964 } 78965 if yyr2 || yy2arr2 { 78966 r.WriteArrayElem() 78967 yy9 := &x.Memory 78968 yy9.CodecEncodeSelf(e) 78969 } else { 78970 r.WriteMapElemKey() 78971 if z.IsJSONHandle() { 78972 z.WriteStr("\"Memory\"") 78973 } else { 78974 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 78975 } 78976 r.WriteMapElemValue() 78977 yy11 := &x.Memory 78978 yy11.CodecEncodeSelf(e) 78979 } 78980 if yyr2 || yy2arr2 { 78981 r.WriteArrayElem() 78982 yy14 := &x.Disk 78983 yy14.CodecEncodeSelf(e) 78984 } else { 78985 r.WriteMapElemKey() 78986 if z.IsJSONHandle() { 78987 z.WriteStr("\"Disk\"") 78988 } else { 78989 r.EncodeStringEnc(codecSelferCcUTF8100, `Disk`) 78990 } 78991 r.WriteMapElemValue() 78992 yy16 := &x.Disk 78993 yy16.CodecEncodeSelf(e) 78994 } 78995 if yyr2 || yy2arr2 { 78996 r.WriteArrayElem() 78997 yy19 := &x.Networks 78998 yy19.CodecEncodeSelf(e) 78999 } else { 79000 r.WriteMapElemKey() 79001 if z.IsJSONHandle() { 79002 z.WriteStr("\"Networks\"") 79003 } else { 79004 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 79005 } 79006 r.WriteMapElemValue() 79007 yy21 := &x.Networks 79008 yy21.CodecEncodeSelf(e) 79009 } 79010 if yyr2 || yy2arr2 { 79011 r.WriteArrayEnd() 79012 } else { 79013 r.WriteMapEnd() 79014 } 79015 } 79016 } 79017 } 79018 79019 func (x *NodeReservedResources) CodecDecodeSelf(d *codec1978.Decoder) { 79020 var h codecSelfer100 79021 z, r := codec1978.GenHelperDecoder(d) 79022 _, _, _ = h, z, r 79023 if false { 79024 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79025 z.DecExtension(x, yyxt1) 79026 } else { 79027 yyct2 := r.ContainerType() 79028 if yyct2 == codecSelferValueTypeMap100 { 79029 yyl2 := r.ReadMapStart() 79030 if yyl2 == 0 { 79031 r.ReadMapEnd() 79032 } else { 79033 x.codecDecodeSelfFromMap(yyl2, d) 79034 } 79035 } else if yyct2 == codecSelferValueTypeArray100 { 79036 yyl2 := r.ReadArrayStart() 79037 if yyl2 == 0 { 79038 r.ReadArrayEnd() 79039 } else { 79040 x.codecDecodeSelfFromArray(yyl2, d) 79041 } 79042 } else { 79043 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79044 } 79045 } 79046 } 79047 79048 func (x *NodeReservedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79049 var h codecSelfer100 79050 z, r := codec1978.GenHelperDecoder(d) 79051 _, _, _ = h, z, r 79052 var yyhl3 bool = l >= 0 79053 for yyj3 := 0; ; yyj3++ { 79054 if yyhl3 { 79055 if yyj3 >= l { 79056 break 79057 } 79058 } else { 79059 if r.CheckBreak() { 79060 break 79061 } 79062 } 79063 r.ReadMapElemKey() 79064 yys3 := z.StringView(r.DecodeStringAsBytes()) 79065 r.ReadMapElemValue() 79066 switch yys3 { 79067 case "Cpu": 79068 if r.TryDecodeAsNil() { 79069 x.Cpu = NodeReservedCpuResources{} 79070 } else { 79071 x.Cpu.CodecDecodeSelf(d) 79072 } 79073 case "Memory": 79074 if r.TryDecodeAsNil() { 79075 x.Memory = NodeReservedMemoryResources{} 79076 } else { 79077 x.Memory.CodecDecodeSelf(d) 79078 } 79079 case "Disk": 79080 if r.TryDecodeAsNil() { 79081 x.Disk = NodeReservedDiskResources{} 79082 } else { 79083 x.Disk.CodecDecodeSelf(d) 79084 } 79085 case "Networks": 79086 if r.TryDecodeAsNil() { 79087 x.Networks = NodeReservedNetworkResources{} 79088 } else { 79089 x.Networks.CodecDecodeSelf(d) 79090 } 79091 default: 79092 z.DecStructFieldNotFound(-1, yys3) 79093 } // end switch yys3 79094 } // end for yyj3 79095 r.ReadMapEnd() 79096 } 79097 79098 func (x *NodeReservedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79099 var h codecSelfer100 79100 z, r := codec1978.GenHelperDecoder(d) 79101 _, _, _ = h, z, r 79102 var yyj8 int 79103 var yyb8 bool 79104 var yyhl8 bool = l >= 0 79105 yyj8++ 79106 if yyhl8 { 79107 yyb8 = yyj8 > l 79108 } else { 79109 yyb8 = r.CheckBreak() 79110 } 79111 if yyb8 { 79112 r.ReadArrayEnd() 79113 return 79114 } 79115 r.ReadArrayElem() 79116 if r.TryDecodeAsNil() { 79117 x.Cpu = NodeReservedCpuResources{} 79118 } else { 79119 x.Cpu.CodecDecodeSelf(d) 79120 } 79121 yyj8++ 79122 if yyhl8 { 79123 yyb8 = yyj8 > l 79124 } else { 79125 yyb8 = r.CheckBreak() 79126 } 79127 if yyb8 { 79128 r.ReadArrayEnd() 79129 return 79130 } 79131 r.ReadArrayElem() 79132 if r.TryDecodeAsNil() { 79133 x.Memory = NodeReservedMemoryResources{} 79134 } else { 79135 x.Memory.CodecDecodeSelf(d) 79136 } 79137 yyj8++ 79138 if yyhl8 { 79139 yyb8 = yyj8 > l 79140 } else { 79141 yyb8 = r.CheckBreak() 79142 } 79143 if yyb8 { 79144 r.ReadArrayEnd() 79145 return 79146 } 79147 r.ReadArrayElem() 79148 if r.TryDecodeAsNil() { 79149 x.Disk = NodeReservedDiskResources{} 79150 } else { 79151 x.Disk.CodecDecodeSelf(d) 79152 } 79153 yyj8++ 79154 if yyhl8 { 79155 yyb8 = yyj8 > l 79156 } else { 79157 yyb8 = r.CheckBreak() 79158 } 79159 if yyb8 { 79160 r.ReadArrayEnd() 79161 return 79162 } 79163 r.ReadArrayElem() 79164 if r.TryDecodeAsNil() { 79165 x.Networks = NodeReservedNetworkResources{} 79166 } else { 79167 x.Networks.CodecDecodeSelf(d) 79168 } 79169 for { 79170 yyj8++ 79171 if yyhl8 { 79172 yyb8 = yyj8 > l 79173 } else { 79174 yyb8 = r.CheckBreak() 79175 } 79176 if yyb8 { 79177 break 79178 } 79179 r.ReadArrayElem() 79180 z.DecStructFieldNotFound(yyj8-1, "") 79181 } 79182 r.ReadArrayEnd() 79183 } 79184 79185 func (x *NodeReservedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 79186 var h codecSelfer100 79187 z, r := codec1978.GenHelperEncoder(e) 79188 _, _, _ = h, z, r 79189 if x == nil { 79190 r.EncodeNil() 79191 } else { 79192 if false { 79193 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79194 z.EncExtension(x, yyxt1) 79195 } else { 79196 yysep2 := !z.EncBinary() 79197 yy2arr2 := z.EncBasicHandle().StructToArray 79198 _, _ = yysep2, yy2arr2 79199 const yyr2 bool = false // struct tag has 'toArray' 79200 if yyr2 || yy2arr2 { 79201 r.WriteArrayStart(1) 79202 } else { 79203 r.WriteMapStart(1) 79204 } 79205 if yyr2 || yy2arr2 { 79206 r.WriteArrayElem() 79207 if false { 79208 } else { 79209 r.EncodeInt(int64(x.CpuShares)) 79210 } 79211 } else { 79212 r.WriteMapElemKey() 79213 if z.IsJSONHandle() { 79214 z.WriteStr("\"CpuShares\"") 79215 } else { 79216 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 79217 } 79218 r.WriteMapElemValue() 79219 if false { 79220 } else { 79221 r.EncodeInt(int64(x.CpuShares)) 79222 } 79223 } 79224 if yyr2 || yy2arr2 { 79225 r.WriteArrayEnd() 79226 } else { 79227 r.WriteMapEnd() 79228 } 79229 } 79230 } 79231 } 79232 79233 func (x *NodeReservedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 79234 var h codecSelfer100 79235 z, r := codec1978.GenHelperDecoder(d) 79236 _, _, _ = h, z, r 79237 if false { 79238 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79239 z.DecExtension(x, yyxt1) 79240 } else { 79241 yyct2 := r.ContainerType() 79242 if yyct2 == codecSelferValueTypeMap100 { 79243 yyl2 := r.ReadMapStart() 79244 if yyl2 == 0 { 79245 r.ReadMapEnd() 79246 } else { 79247 x.codecDecodeSelfFromMap(yyl2, d) 79248 } 79249 } else if yyct2 == codecSelferValueTypeArray100 { 79250 yyl2 := r.ReadArrayStart() 79251 if yyl2 == 0 { 79252 r.ReadArrayEnd() 79253 } else { 79254 x.codecDecodeSelfFromArray(yyl2, d) 79255 } 79256 } else { 79257 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79258 } 79259 } 79260 } 79261 79262 func (x *NodeReservedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79263 var h codecSelfer100 79264 z, r := codec1978.GenHelperDecoder(d) 79265 _, _, _ = h, z, r 79266 var yyhl3 bool = l >= 0 79267 for yyj3 := 0; ; yyj3++ { 79268 if yyhl3 { 79269 if yyj3 >= l { 79270 break 79271 } 79272 } else { 79273 if r.CheckBreak() { 79274 break 79275 } 79276 } 79277 r.ReadMapElemKey() 79278 yys3 := z.StringView(r.DecodeStringAsBytes()) 79279 r.ReadMapElemValue() 79280 switch yys3 { 79281 case "CpuShares": 79282 if r.TryDecodeAsNil() { 79283 x.CpuShares = 0 79284 } else { 79285 x.CpuShares = (int64)(r.DecodeInt64()) 79286 } 79287 default: 79288 z.DecStructFieldNotFound(-1, yys3) 79289 } // end switch yys3 79290 } // end for yyj3 79291 r.ReadMapEnd() 79292 } 79293 79294 func (x *NodeReservedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79295 var h codecSelfer100 79296 z, r := codec1978.GenHelperDecoder(d) 79297 _, _, _ = h, z, r 79298 var yyj5 int 79299 var yyb5 bool 79300 var yyhl5 bool = l >= 0 79301 yyj5++ 79302 if yyhl5 { 79303 yyb5 = yyj5 > l 79304 } else { 79305 yyb5 = r.CheckBreak() 79306 } 79307 if yyb5 { 79308 r.ReadArrayEnd() 79309 return 79310 } 79311 r.ReadArrayElem() 79312 if r.TryDecodeAsNil() { 79313 x.CpuShares = 0 79314 } else { 79315 x.CpuShares = (int64)(r.DecodeInt64()) 79316 } 79317 for { 79318 yyj5++ 79319 if yyhl5 { 79320 yyb5 = yyj5 > l 79321 } else { 79322 yyb5 = r.CheckBreak() 79323 } 79324 if yyb5 { 79325 break 79326 } 79327 r.ReadArrayElem() 79328 z.DecStructFieldNotFound(yyj5-1, "") 79329 } 79330 r.ReadArrayEnd() 79331 } 79332 79333 func (x *NodeReservedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 79334 var h codecSelfer100 79335 z, r := codec1978.GenHelperEncoder(e) 79336 _, _, _ = h, z, r 79337 if x == nil { 79338 r.EncodeNil() 79339 } else { 79340 if false { 79341 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79342 z.EncExtension(x, yyxt1) 79343 } else { 79344 yysep2 := !z.EncBinary() 79345 yy2arr2 := z.EncBasicHandle().StructToArray 79346 _, _ = yysep2, yy2arr2 79347 const yyr2 bool = false // struct tag has 'toArray' 79348 if yyr2 || yy2arr2 { 79349 r.WriteArrayStart(1) 79350 } else { 79351 r.WriteMapStart(1) 79352 } 79353 if yyr2 || yy2arr2 { 79354 r.WriteArrayElem() 79355 if false { 79356 } else { 79357 r.EncodeInt(int64(x.MemoryMB)) 79358 } 79359 } else { 79360 r.WriteMapElemKey() 79361 if z.IsJSONHandle() { 79362 z.WriteStr("\"MemoryMB\"") 79363 } else { 79364 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 79365 } 79366 r.WriteMapElemValue() 79367 if false { 79368 } else { 79369 r.EncodeInt(int64(x.MemoryMB)) 79370 } 79371 } 79372 if yyr2 || yy2arr2 { 79373 r.WriteArrayEnd() 79374 } else { 79375 r.WriteMapEnd() 79376 } 79377 } 79378 } 79379 } 79380 79381 func (x *NodeReservedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 79382 var h codecSelfer100 79383 z, r := codec1978.GenHelperDecoder(d) 79384 _, _, _ = h, z, r 79385 if false { 79386 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79387 z.DecExtension(x, yyxt1) 79388 } else { 79389 yyct2 := r.ContainerType() 79390 if yyct2 == codecSelferValueTypeMap100 { 79391 yyl2 := r.ReadMapStart() 79392 if yyl2 == 0 { 79393 r.ReadMapEnd() 79394 } else { 79395 x.codecDecodeSelfFromMap(yyl2, d) 79396 } 79397 } else if yyct2 == codecSelferValueTypeArray100 { 79398 yyl2 := r.ReadArrayStart() 79399 if yyl2 == 0 { 79400 r.ReadArrayEnd() 79401 } else { 79402 x.codecDecodeSelfFromArray(yyl2, d) 79403 } 79404 } else { 79405 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79406 } 79407 } 79408 } 79409 79410 func (x *NodeReservedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79411 var h codecSelfer100 79412 z, r := codec1978.GenHelperDecoder(d) 79413 _, _, _ = h, z, r 79414 var yyhl3 bool = l >= 0 79415 for yyj3 := 0; ; yyj3++ { 79416 if yyhl3 { 79417 if yyj3 >= l { 79418 break 79419 } 79420 } else { 79421 if r.CheckBreak() { 79422 break 79423 } 79424 } 79425 r.ReadMapElemKey() 79426 yys3 := z.StringView(r.DecodeStringAsBytes()) 79427 r.ReadMapElemValue() 79428 switch yys3 { 79429 case "MemoryMB": 79430 if r.TryDecodeAsNil() { 79431 x.MemoryMB = 0 79432 } else { 79433 x.MemoryMB = (int64)(r.DecodeInt64()) 79434 } 79435 default: 79436 z.DecStructFieldNotFound(-1, yys3) 79437 } // end switch yys3 79438 } // end for yyj3 79439 r.ReadMapEnd() 79440 } 79441 79442 func (x *NodeReservedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79443 var h codecSelfer100 79444 z, r := codec1978.GenHelperDecoder(d) 79445 _, _, _ = h, z, r 79446 var yyj5 int 79447 var yyb5 bool 79448 var yyhl5 bool = l >= 0 79449 yyj5++ 79450 if yyhl5 { 79451 yyb5 = yyj5 > l 79452 } else { 79453 yyb5 = r.CheckBreak() 79454 } 79455 if yyb5 { 79456 r.ReadArrayEnd() 79457 return 79458 } 79459 r.ReadArrayElem() 79460 if r.TryDecodeAsNil() { 79461 x.MemoryMB = 0 79462 } else { 79463 x.MemoryMB = (int64)(r.DecodeInt64()) 79464 } 79465 for { 79466 yyj5++ 79467 if yyhl5 { 79468 yyb5 = yyj5 > l 79469 } else { 79470 yyb5 = r.CheckBreak() 79471 } 79472 if yyb5 { 79473 break 79474 } 79475 r.ReadArrayElem() 79476 z.DecStructFieldNotFound(yyj5-1, "") 79477 } 79478 r.ReadArrayEnd() 79479 } 79480 79481 func (x *NodeReservedDiskResources) CodecEncodeSelf(e *codec1978.Encoder) { 79482 var h codecSelfer100 79483 z, r := codec1978.GenHelperEncoder(e) 79484 _, _, _ = h, z, r 79485 if x == nil { 79486 r.EncodeNil() 79487 } else { 79488 if false { 79489 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79490 z.EncExtension(x, yyxt1) 79491 } else { 79492 yysep2 := !z.EncBinary() 79493 yy2arr2 := z.EncBasicHandle().StructToArray 79494 _, _ = yysep2, yy2arr2 79495 const yyr2 bool = false // struct tag has 'toArray' 79496 if yyr2 || yy2arr2 { 79497 r.WriteArrayStart(1) 79498 } else { 79499 r.WriteMapStart(1) 79500 } 79501 if yyr2 || yy2arr2 { 79502 r.WriteArrayElem() 79503 if false { 79504 } else { 79505 r.EncodeInt(int64(x.DiskMB)) 79506 } 79507 } else { 79508 r.WriteMapElemKey() 79509 if z.IsJSONHandle() { 79510 z.WriteStr("\"DiskMB\"") 79511 } else { 79512 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 79513 } 79514 r.WriteMapElemValue() 79515 if false { 79516 } else { 79517 r.EncodeInt(int64(x.DiskMB)) 79518 } 79519 } 79520 if yyr2 || yy2arr2 { 79521 r.WriteArrayEnd() 79522 } else { 79523 r.WriteMapEnd() 79524 } 79525 } 79526 } 79527 } 79528 79529 func (x *NodeReservedDiskResources) CodecDecodeSelf(d *codec1978.Decoder) { 79530 var h codecSelfer100 79531 z, r := codec1978.GenHelperDecoder(d) 79532 _, _, _ = h, z, r 79533 if false { 79534 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79535 z.DecExtension(x, yyxt1) 79536 } else { 79537 yyct2 := r.ContainerType() 79538 if yyct2 == codecSelferValueTypeMap100 { 79539 yyl2 := r.ReadMapStart() 79540 if yyl2 == 0 { 79541 r.ReadMapEnd() 79542 } else { 79543 x.codecDecodeSelfFromMap(yyl2, d) 79544 } 79545 } else if yyct2 == codecSelferValueTypeArray100 { 79546 yyl2 := r.ReadArrayStart() 79547 if yyl2 == 0 { 79548 r.ReadArrayEnd() 79549 } else { 79550 x.codecDecodeSelfFromArray(yyl2, d) 79551 } 79552 } else { 79553 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79554 } 79555 } 79556 } 79557 79558 func (x *NodeReservedDiskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79559 var h codecSelfer100 79560 z, r := codec1978.GenHelperDecoder(d) 79561 _, _, _ = h, z, r 79562 var yyhl3 bool = l >= 0 79563 for yyj3 := 0; ; yyj3++ { 79564 if yyhl3 { 79565 if yyj3 >= l { 79566 break 79567 } 79568 } else { 79569 if r.CheckBreak() { 79570 break 79571 } 79572 } 79573 r.ReadMapElemKey() 79574 yys3 := z.StringView(r.DecodeStringAsBytes()) 79575 r.ReadMapElemValue() 79576 switch yys3 { 79577 case "DiskMB": 79578 if r.TryDecodeAsNil() { 79579 x.DiskMB = 0 79580 } else { 79581 x.DiskMB = (int64)(r.DecodeInt64()) 79582 } 79583 default: 79584 z.DecStructFieldNotFound(-1, yys3) 79585 } // end switch yys3 79586 } // end for yyj3 79587 r.ReadMapEnd() 79588 } 79589 79590 func (x *NodeReservedDiskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79591 var h codecSelfer100 79592 z, r := codec1978.GenHelperDecoder(d) 79593 _, _, _ = h, z, r 79594 var yyj5 int 79595 var yyb5 bool 79596 var yyhl5 bool = l >= 0 79597 yyj5++ 79598 if yyhl5 { 79599 yyb5 = yyj5 > l 79600 } else { 79601 yyb5 = r.CheckBreak() 79602 } 79603 if yyb5 { 79604 r.ReadArrayEnd() 79605 return 79606 } 79607 r.ReadArrayElem() 79608 if r.TryDecodeAsNil() { 79609 x.DiskMB = 0 79610 } else { 79611 x.DiskMB = (int64)(r.DecodeInt64()) 79612 } 79613 for { 79614 yyj5++ 79615 if yyhl5 { 79616 yyb5 = yyj5 > l 79617 } else { 79618 yyb5 = r.CheckBreak() 79619 } 79620 if yyb5 { 79621 break 79622 } 79623 r.ReadArrayElem() 79624 z.DecStructFieldNotFound(yyj5-1, "") 79625 } 79626 r.ReadArrayEnd() 79627 } 79628 79629 func (x *NodeReservedNetworkResources) CodecEncodeSelf(e *codec1978.Encoder) { 79630 var h codecSelfer100 79631 z, r := codec1978.GenHelperEncoder(e) 79632 _, _, _ = h, z, r 79633 if x == nil { 79634 r.EncodeNil() 79635 } else { 79636 if false { 79637 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79638 z.EncExtension(x, yyxt1) 79639 } else { 79640 yysep2 := !z.EncBinary() 79641 yy2arr2 := z.EncBasicHandle().StructToArray 79642 _, _ = yysep2, yy2arr2 79643 const yyr2 bool = false // struct tag has 'toArray' 79644 if yyr2 || yy2arr2 { 79645 r.WriteArrayStart(1) 79646 } else { 79647 r.WriteMapStart(1) 79648 } 79649 if yyr2 || yy2arr2 { 79650 r.WriteArrayElem() 79651 if false { 79652 } else { 79653 if z.EncBasicHandle().StringToRaw { 79654 r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) 79655 } else { 79656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) 79657 } 79658 } 79659 } else { 79660 r.WriteMapElemKey() 79661 if z.IsJSONHandle() { 79662 z.WriteStr("\"ReservedHostPorts\"") 79663 } else { 79664 r.EncodeStringEnc(codecSelferCcUTF8100, `ReservedHostPorts`) 79665 } 79666 r.WriteMapElemValue() 79667 if false { 79668 } else { 79669 if z.EncBasicHandle().StringToRaw { 79670 r.EncodeStringBytesRaw(z.BytesView(string(x.ReservedHostPorts))) 79671 } else { 79672 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ReservedHostPorts)) 79673 } 79674 } 79675 } 79676 if yyr2 || yy2arr2 { 79677 r.WriteArrayEnd() 79678 } else { 79679 r.WriteMapEnd() 79680 } 79681 } 79682 } 79683 } 79684 79685 func (x *NodeReservedNetworkResources) CodecDecodeSelf(d *codec1978.Decoder) { 79686 var h codecSelfer100 79687 z, r := codec1978.GenHelperDecoder(d) 79688 _, _, _ = h, z, r 79689 if false { 79690 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79691 z.DecExtension(x, yyxt1) 79692 } else { 79693 yyct2 := r.ContainerType() 79694 if yyct2 == codecSelferValueTypeMap100 { 79695 yyl2 := r.ReadMapStart() 79696 if yyl2 == 0 { 79697 r.ReadMapEnd() 79698 } else { 79699 x.codecDecodeSelfFromMap(yyl2, d) 79700 } 79701 } else if yyct2 == codecSelferValueTypeArray100 { 79702 yyl2 := r.ReadArrayStart() 79703 if yyl2 == 0 { 79704 r.ReadArrayEnd() 79705 } else { 79706 x.codecDecodeSelfFromArray(yyl2, d) 79707 } 79708 } else { 79709 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79710 } 79711 } 79712 } 79713 79714 func (x *NodeReservedNetworkResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79715 var h codecSelfer100 79716 z, r := codec1978.GenHelperDecoder(d) 79717 _, _, _ = h, z, r 79718 var yyhl3 bool = l >= 0 79719 for yyj3 := 0; ; yyj3++ { 79720 if yyhl3 { 79721 if yyj3 >= l { 79722 break 79723 } 79724 } else { 79725 if r.CheckBreak() { 79726 break 79727 } 79728 } 79729 r.ReadMapElemKey() 79730 yys3 := z.StringView(r.DecodeStringAsBytes()) 79731 r.ReadMapElemValue() 79732 switch yys3 { 79733 case "ReservedHostPorts": 79734 if r.TryDecodeAsNil() { 79735 x.ReservedHostPorts = "" 79736 } else { 79737 x.ReservedHostPorts = (string)(r.DecodeString()) 79738 } 79739 default: 79740 z.DecStructFieldNotFound(-1, yys3) 79741 } // end switch yys3 79742 } // end for yyj3 79743 r.ReadMapEnd() 79744 } 79745 79746 func (x *NodeReservedNetworkResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79747 var h codecSelfer100 79748 z, r := codec1978.GenHelperDecoder(d) 79749 _, _, _ = h, z, r 79750 var yyj5 int 79751 var yyb5 bool 79752 var yyhl5 bool = l >= 0 79753 yyj5++ 79754 if yyhl5 { 79755 yyb5 = yyj5 > l 79756 } else { 79757 yyb5 = r.CheckBreak() 79758 } 79759 if yyb5 { 79760 r.ReadArrayEnd() 79761 return 79762 } 79763 r.ReadArrayElem() 79764 if r.TryDecodeAsNil() { 79765 x.ReservedHostPorts = "" 79766 } else { 79767 x.ReservedHostPorts = (string)(r.DecodeString()) 79768 } 79769 for { 79770 yyj5++ 79771 if yyhl5 { 79772 yyb5 = yyj5 > l 79773 } else { 79774 yyb5 = r.CheckBreak() 79775 } 79776 if yyb5 { 79777 break 79778 } 79779 r.ReadArrayElem() 79780 z.DecStructFieldNotFound(yyj5-1, "") 79781 } 79782 r.ReadArrayEnd() 79783 } 79784 79785 func (x *AllocatedResources) CodecEncodeSelf(e *codec1978.Encoder) { 79786 var h codecSelfer100 79787 z, r := codec1978.GenHelperEncoder(e) 79788 _, _, _ = h, z, r 79789 if x == nil { 79790 r.EncodeNil() 79791 } else { 79792 if false { 79793 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79794 z.EncExtension(x, yyxt1) 79795 } else { 79796 yysep2 := !z.EncBinary() 79797 yy2arr2 := z.EncBasicHandle().StructToArray 79798 _, _ = yysep2, yy2arr2 79799 const yyr2 bool = false // struct tag has 'toArray' 79800 if yyr2 || yy2arr2 { 79801 r.WriteArrayStart(3) 79802 } else { 79803 r.WriteMapStart(3) 79804 } 79805 if yyr2 || yy2arr2 { 79806 r.WriteArrayElem() 79807 if x.Tasks == nil { 79808 r.EncodeNil() 79809 } else { 79810 if false { 79811 } else { 79812 h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) 79813 } 79814 } 79815 } else { 79816 r.WriteMapElemKey() 79817 if z.IsJSONHandle() { 79818 z.WriteStr("\"Tasks\"") 79819 } else { 79820 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 79821 } 79822 r.WriteMapElemValue() 79823 if x.Tasks == nil { 79824 r.EncodeNil() 79825 } else { 79826 if false { 79827 } else { 79828 h.encMapstringPtrtoAllocatedTaskResources((map[string]*AllocatedTaskResources)(x.Tasks), e) 79829 } 79830 } 79831 } 79832 if yyr2 || yy2arr2 { 79833 r.WriteArrayElem() 79834 if x.TaskLifecycles == nil { 79835 r.EncodeNil() 79836 } else { 79837 if false { 79838 } else { 79839 h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) 79840 } 79841 } 79842 } else { 79843 r.WriteMapElemKey() 79844 if z.IsJSONHandle() { 79845 z.WriteStr("\"TaskLifecycles\"") 79846 } else { 79847 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskLifecycles`) 79848 } 79849 r.WriteMapElemValue() 79850 if x.TaskLifecycles == nil { 79851 r.EncodeNil() 79852 } else { 79853 if false { 79854 } else { 79855 h.encMapstringPtrtoTaskLifecycleConfig((map[string]*TaskLifecycleConfig)(x.TaskLifecycles), e) 79856 } 79857 } 79858 } 79859 if yyr2 || yy2arr2 { 79860 r.WriteArrayElem() 79861 yy10 := &x.Shared 79862 yy10.CodecEncodeSelf(e) 79863 } else { 79864 r.WriteMapElemKey() 79865 if z.IsJSONHandle() { 79866 z.WriteStr("\"Shared\"") 79867 } else { 79868 r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) 79869 } 79870 r.WriteMapElemValue() 79871 yy12 := &x.Shared 79872 yy12.CodecEncodeSelf(e) 79873 } 79874 if yyr2 || yy2arr2 { 79875 r.WriteArrayEnd() 79876 } else { 79877 r.WriteMapEnd() 79878 } 79879 } 79880 } 79881 } 79882 79883 func (x *AllocatedResources) CodecDecodeSelf(d *codec1978.Decoder) { 79884 var h codecSelfer100 79885 z, r := codec1978.GenHelperDecoder(d) 79886 _, _, _ = h, z, r 79887 if false { 79888 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 79889 z.DecExtension(x, yyxt1) 79890 } else { 79891 yyct2 := r.ContainerType() 79892 if yyct2 == codecSelferValueTypeMap100 { 79893 yyl2 := r.ReadMapStart() 79894 if yyl2 == 0 { 79895 r.ReadMapEnd() 79896 } else { 79897 x.codecDecodeSelfFromMap(yyl2, d) 79898 } 79899 } else if yyct2 == codecSelferValueTypeArray100 { 79900 yyl2 := r.ReadArrayStart() 79901 if yyl2 == 0 { 79902 r.ReadArrayEnd() 79903 } else { 79904 x.codecDecodeSelfFromArray(yyl2, d) 79905 } 79906 } else { 79907 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 79908 } 79909 } 79910 } 79911 79912 func (x *AllocatedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 79913 var h codecSelfer100 79914 z, r := codec1978.GenHelperDecoder(d) 79915 _, _, _ = h, z, r 79916 var yyhl3 bool = l >= 0 79917 for yyj3 := 0; ; yyj3++ { 79918 if yyhl3 { 79919 if yyj3 >= l { 79920 break 79921 } 79922 } else { 79923 if r.CheckBreak() { 79924 break 79925 } 79926 } 79927 r.ReadMapElemKey() 79928 yys3 := z.StringView(r.DecodeStringAsBytes()) 79929 r.ReadMapElemValue() 79930 switch yys3 { 79931 case "Tasks": 79932 if r.TryDecodeAsNil() { 79933 x.Tasks = nil 79934 } else { 79935 if false { 79936 } else { 79937 h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) 79938 } 79939 } 79940 case "TaskLifecycles": 79941 if r.TryDecodeAsNil() { 79942 x.TaskLifecycles = nil 79943 } else { 79944 if false { 79945 } else { 79946 h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) 79947 } 79948 } 79949 case "Shared": 79950 if r.TryDecodeAsNil() { 79951 x.Shared = AllocatedSharedResources{} 79952 } else { 79953 x.Shared.CodecDecodeSelf(d) 79954 } 79955 default: 79956 z.DecStructFieldNotFound(-1, yys3) 79957 } // end switch yys3 79958 } // end for yyj3 79959 r.ReadMapEnd() 79960 } 79961 79962 func (x *AllocatedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 79963 var h codecSelfer100 79964 z, r := codec1978.GenHelperDecoder(d) 79965 _, _, _ = h, z, r 79966 var yyj9 int 79967 var yyb9 bool 79968 var yyhl9 bool = l >= 0 79969 yyj9++ 79970 if yyhl9 { 79971 yyb9 = yyj9 > l 79972 } else { 79973 yyb9 = r.CheckBreak() 79974 } 79975 if yyb9 { 79976 r.ReadArrayEnd() 79977 return 79978 } 79979 r.ReadArrayElem() 79980 if r.TryDecodeAsNil() { 79981 x.Tasks = nil 79982 } else { 79983 if false { 79984 } else { 79985 h.decMapstringPtrtoAllocatedTaskResources((*map[string]*AllocatedTaskResources)(&x.Tasks), d) 79986 } 79987 } 79988 yyj9++ 79989 if yyhl9 { 79990 yyb9 = yyj9 > l 79991 } else { 79992 yyb9 = r.CheckBreak() 79993 } 79994 if yyb9 { 79995 r.ReadArrayEnd() 79996 return 79997 } 79998 r.ReadArrayElem() 79999 if r.TryDecodeAsNil() { 80000 x.TaskLifecycles = nil 80001 } else { 80002 if false { 80003 } else { 80004 h.decMapstringPtrtoTaskLifecycleConfig((*map[string]*TaskLifecycleConfig)(&x.TaskLifecycles), d) 80005 } 80006 } 80007 yyj9++ 80008 if yyhl9 { 80009 yyb9 = yyj9 > l 80010 } else { 80011 yyb9 = r.CheckBreak() 80012 } 80013 if yyb9 { 80014 r.ReadArrayEnd() 80015 return 80016 } 80017 r.ReadArrayElem() 80018 if r.TryDecodeAsNil() { 80019 x.Shared = AllocatedSharedResources{} 80020 } else { 80021 x.Shared.CodecDecodeSelf(d) 80022 } 80023 for { 80024 yyj9++ 80025 if yyhl9 { 80026 yyb9 = yyj9 > l 80027 } else { 80028 yyb9 = r.CheckBreak() 80029 } 80030 if yyb9 { 80031 break 80032 } 80033 r.ReadArrayElem() 80034 z.DecStructFieldNotFound(yyj9-1, "") 80035 } 80036 r.ReadArrayEnd() 80037 } 80038 80039 func (x *AllocatedTaskResources) CodecEncodeSelf(e *codec1978.Encoder) { 80040 var h codecSelfer100 80041 z, r := codec1978.GenHelperEncoder(e) 80042 _, _, _ = h, z, r 80043 if x == nil { 80044 r.EncodeNil() 80045 } else { 80046 if false { 80047 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80048 z.EncExtension(x, yyxt1) 80049 } else { 80050 yysep2 := !z.EncBinary() 80051 yy2arr2 := z.EncBasicHandle().StructToArray 80052 _, _ = yysep2, yy2arr2 80053 const yyr2 bool = false // struct tag has 'toArray' 80054 if yyr2 || yy2arr2 { 80055 r.WriteArrayStart(4) 80056 } else { 80057 r.WriteMapStart(4) 80058 } 80059 if yyr2 || yy2arr2 { 80060 r.WriteArrayElem() 80061 yy4 := &x.Cpu 80062 yy4.CodecEncodeSelf(e) 80063 } else { 80064 r.WriteMapElemKey() 80065 if z.IsJSONHandle() { 80066 z.WriteStr("\"Cpu\"") 80067 } else { 80068 r.EncodeStringEnc(codecSelferCcUTF8100, `Cpu`) 80069 } 80070 r.WriteMapElemValue() 80071 yy6 := &x.Cpu 80072 yy6.CodecEncodeSelf(e) 80073 } 80074 if yyr2 || yy2arr2 { 80075 r.WriteArrayElem() 80076 yy9 := &x.Memory 80077 yy9.CodecEncodeSelf(e) 80078 } else { 80079 r.WriteMapElemKey() 80080 if z.IsJSONHandle() { 80081 z.WriteStr("\"Memory\"") 80082 } else { 80083 r.EncodeStringEnc(codecSelferCcUTF8100, `Memory`) 80084 } 80085 r.WriteMapElemValue() 80086 yy11 := &x.Memory 80087 yy11.CodecEncodeSelf(e) 80088 } 80089 if yyr2 || yy2arr2 { 80090 r.WriteArrayElem() 80091 if x.Networks == nil { 80092 r.EncodeNil() 80093 } else { 80094 x.Networks.CodecEncodeSelf(e) 80095 } 80096 } else { 80097 r.WriteMapElemKey() 80098 if z.IsJSONHandle() { 80099 z.WriteStr("\"Networks\"") 80100 } else { 80101 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 80102 } 80103 r.WriteMapElemValue() 80104 if x.Networks == nil { 80105 r.EncodeNil() 80106 } else { 80107 x.Networks.CodecEncodeSelf(e) 80108 } 80109 } 80110 if yyr2 || yy2arr2 { 80111 r.WriteArrayElem() 80112 if x.Devices == nil { 80113 r.EncodeNil() 80114 } else { 80115 if false { 80116 } else { 80117 h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) 80118 } 80119 } 80120 } else { 80121 r.WriteMapElemKey() 80122 if z.IsJSONHandle() { 80123 z.WriteStr("\"Devices\"") 80124 } else { 80125 r.EncodeStringEnc(codecSelferCcUTF8100, `Devices`) 80126 } 80127 r.WriteMapElemValue() 80128 if x.Devices == nil { 80129 r.EncodeNil() 80130 } else { 80131 if false { 80132 } else { 80133 h.encSlicePtrtoAllocatedDeviceResource(([]*AllocatedDeviceResource)(x.Devices), e) 80134 } 80135 } 80136 } 80137 if yyr2 || yy2arr2 { 80138 r.WriteArrayEnd() 80139 } else { 80140 r.WriteMapEnd() 80141 } 80142 } 80143 } 80144 } 80145 80146 func (x *AllocatedTaskResources) CodecDecodeSelf(d *codec1978.Decoder) { 80147 var h codecSelfer100 80148 z, r := codec1978.GenHelperDecoder(d) 80149 _, _, _ = h, z, r 80150 if false { 80151 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80152 z.DecExtension(x, yyxt1) 80153 } else { 80154 yyct2 := r.ContainerType() 80155 if yyct2 == codecSelferValueTypeMap100 { 80156 yyl2 := r.ReadMapStart() 80157 if yyl2 == 0 { 80158 r.ReadMapEnd() 80159 } else { 80160 x.codecDecodeSelfFromMap(yyl2, d) 80161 } 80162 } else if yyct2 == codecSelferValueTypeArray100 { 80163 yyl2 := r.ReadArrayStart() 80164 if yyl2 == 0 { 80165 r.ReadArrayEnd() 80166 } else { 80167 x.codecDecodeSelfFromArray(yyl2, d) 80168 } 80169 } else { 80170 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80171 } 80172 } 80173 } 80174 80175 func (x *AllocatedTaskResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 80176 var h codecSelfer100 80177 z, r := codec1978.GenHelperDecoder(d) 80178 _, _, _ = h, z, r 80179 var yyhl3 bool = l >= 0 80180 for yyj3 := 0; ; yyj3++ { 80181 if yyhl3 { 80182 if yyj3 >= l { 80183 break 80184 } 80185 } else { 80186 if r.CheckBreak() { 80187 break 80188 } 80189 } 80190 r.ReadMapElemKey() 80191 yys3 := z.StringView(r.DecodeStringAsBytes()) 80192 r.ReadMapElemValue() 80193 switch yys3 { 80194 case "Cpu": 80195 if r.TryDecodeAsNil() { 80196 x.Cpu = AllocatedCpuResources{} 80197 } else { 80198 x.Cpu.CodecDecodeSelf(d) 80199 } 80200 case "Memory": 80201 if r.TryDecodeAsNil() { 80202 x.Memory = AllocatedMemoryResources{} 80203 } else { 80204 x.Memory.CodecDecodeSelf(d) 80205 } 80206 case "Networks": 80207 if r.TryDecodeAsNil() { 80208 x.Networks = nil 80209 } else { 80210 x.Networks.CodecDecodeSelf(d) 80211 } 80212 case "Devices": 80213 if r.TryDecodeAsNil() { 80214 x.Devices = nil 80215 } else { 80216 if false { 80217 } else { 80218 h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) 80219 } 80220 } 80221 default: 80222 z.DecStructFieldNotFound(-1, yys3) 80223 } // end switch yys3 80224 } // end for yyj3 80225 r.ReadMapEnd() 80226 } 80227 80228 func (x *AllocatedTaskResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 80229 var h codecSelfer100 80230 z, r := codec1978.GenHelperDecoder(d) 80231 _, _, _ = h, z, r 80232 var yyj9 int 80233 var yyb9 bool 80234 var yyhl9 bool = l >= 0 80235 yyj9++ 80236 if yyhl9 { 80237 yyb9 = yyj9 > l 80238 } else { 80239 yyb9 = r.CheckBreak() 80240 } 80241 if yyb9 { 80242 r.ReadArrayEnd() 80243 return 80244 } 80245 r.ReadArrayElem() 80246 if r.TryDecodeAsNil() { 80247 x.Cpu = AllocatedCpuResources{} 80248 } else { 80249 x.Cpu.CodecDecodeSelf(d) 80250 } 80251 yyj9++ 80252 if yyhl9 { 80253 yyb9 = yyj9 > l 80254 } else { 80255 yyb9 = r.CheckBreak() 80256 } 80257 if yyb9 { 80258 r.ReadArrayEnd() 80259 return 80260 } 80261 r.ReadArrayElem() 80262 if r.TryDecodeAsNil() { 80263 x.Memory = AllocatedMemoryResources{} 80264 } else { 80265 x.Memory.CodecDecodeSelf(d) 80266 } 80267 yyj9++ 80268 if yyhl9 { 80269 yyb9 = yyj9 > l 80270 } else { 80271 yyb9 = r.CheckBreak() 80272 } 80273 if yyb9 { 80274 r.ReadArrayEnd() 80275 return 80276 } 80277 r.ReadArrayElem() 80278 if r.TryDecodeAsNil() { 80279 x.Networks = nil 80280 } else { 80281 x.Networks.CodecDecodeSelf(d) 80282 } 80283 yyj9++ 80284 if yyhl9 { 80285 yyb9 = yyj9 > l 80286 } else { 80287 yyb9 = r.CheckBreak() 80288 } 80289 if yyb9 { 80290 r.ReadArrayEnd() 80291 return 80292 } 80293 r.ReadArrayElem() 80294 if r.TryDecodeAsNil() { 80295 x.Devices = nil 80296 } else { 80297 if false { 80298 } else { 80299 h.decSlicePtrtoAllocatedDeviceResource((*[]*AllocatedDeviceResource)(&x.Devices), d) 80300 } 80301 } 80302 for { 80303 yyj9++ 80304 if yyhl9 { 80305 yyb9 = yyj9 > l 80306 } else { 80307 yyb9 = r.CheckBreak() 80308 } 80309 if yyb9 { 80310 break 80311 } 80312 r.ReadArrayElem() 80313 z.DecStructFieldNotFound(yyj9-1, "") 80314 } 80315 r.ReadArrayEnd() 80316 } 80317 80318 func (x *AllocatedSharedResources) CodecEncodeSelf(e *codec1978.Encoder) { 80319 var h codecSelfer100 80320 z, r := codec1978.GenHelperEncoder(e) 80321 _, _, _ = h, z, r 80322 if x == nil { 80323 r.EncodeNil() 80324 } else { 80325 if false { 80326 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80327 z.EncExtension(x, yyxt1) 80328 } else { 80329 yysep2 := !z.EncBinary() 80330 yy2arr2 := z.EncBasicHandle().StructToArray 80331 _, _ = yysep2, yy2arr2 80332 const yyr2 bool = false // struct tag has 'toArray' 80333 if yyr2 || yy2arr2 { 80334 r.WriteArrayStart(2) 80335 } else { 80336 r.WriteMapStart(2) 80337 } 80338 if yyr2 || yy2arr2 { 80339 r.WriteArrayElem() 80340 if x.Networks == nil { 80341 r.EncodeNil() 80342 } else { 80343 x.Networks.CodecEncodeSelf(e) 80344 } 80345 } else { 80346 r.WriteMapElemKey() 80347 if z.IsJSONHandle() { 80348 z.WriteStr("\"Networks\"") 80349 } else { 80350 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 80351 } 80352 r.WriteMapElemValue() 80353 if x.Networks == nil { 80354 r.EncodeNil() 80355 } else { 80356 x.Networks.CodecEncodeSelf(e) 80357 } 80358 } 80359 if yyr2 || yy2arr2 { 80360 r.WriteArrayElem() 80361 if false { 80362 } else { 80363 r.EncodeInt(int64(x.DiskMB)) 80364 } 80365 } else { 80366 r.WriteMapElemKey() 80367 if z.IsJSONHandle() { 80368 z.WriteStr("\"DiskMB\"") 80369 } else { 80370 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskMB`) 80371 } 80372 r.WriteMapElemValue() 80373 if false { 80374 } else { 80375 r.EncodeInt(int64(x.DiskMB)) 80376 } 80377 } 80378 if yyr2 || yy2arr2 { 80379 r.WriteArrayEnd() 80380 } else { 80381 r.WriteMapEnd() 80382 } 80383 } 80384 } 80385 } 80386 80387 func (x *AllocatedSharedResources) CodecDecodeSelf(d *codec1978.Decoder) { 80388 var h codecSelfer100 80389 z, r := codec1978.GenHelperDecoder(d) 80390 _, _, _ = h, z, r 80391 if false { 80392 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80393 z.DecExtension(x, yyxt1) 80394 } else { 80395 yyct2 := r.ContainerType() 80396 if yyct2 == codecSelferValueTypeMap100 { 80397 yyl2 := r.ReadMapStart() 80398 if yyl2 == 0 { 80399 r.ReadMapEnd() 80400 } else { 80401 x.codecDecodeSelfFromMap(yyl2, d) 80402 } 80403 } else if yyct2 == codecSelferValueTypeArray100 { 80404 yyl2 := r.ReadArrayStart() 80405 if yyl2 == 0 { 80406 r.ReadArrayEnd() 80407 } else { 80408 x.codecDecodeSelfFromArray(yyl2, d) 80409 } 80410 } else { 80411 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80412 } 80413 } 80414 } 80415 80416 func (x *AllocatedSharedResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 80417 var h codecSelfer100 80418 z, r := codec1978.GenHelperDecoder(d) 80419 _, _, _ = h, z, r 80420 var yyhl3 bool = l >= 0 80421 for yyj3 := 0; ; yyj3++ { 80422 if yyhl3 { 80423 if yyj3 >= l { 80424 break 80425 } 80426 } else { 80427 if r.CheckBreak() { 80428 break 80429 } 80430 } 80431 r.ReadMapElemKey() 80432 yys3 := z.StringView(r.DecodeStringAsBytes()) 80433 r.ReadMapElemValue() 80434 switch yys3 { 80435 case "Networks": 80436 if r.TryDecodeAsNil() { 80437 x.Networks = nil 80438 } else { 80439 x.Networks.CodecDecodeSelf(d) 80440 } 80441 case "DiskMB": 80442 if r.TryDecodeAsNil() { 80443 x.DiskMB = 0 80444 } else { 80445 x.DiskMB = (int64)(r.DecodeInt64()) 80446 } 80447 default: 80448 z.DecStructFieldNotFound(-1, yys3) 80449 } // end switch yys3 80450 } // end for yyj3 80451 r.ReadMapEnd() 80452 } 80453 80454 func (x *AllocatedSharedResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 80455 var h codecSelfer100 80456 z, r := codec1978.GenHelperDecoder(d) 80457 _, _, _ = h, z, r 80458 var yyj6 int 80459 var yyb6 bool 80460 var yyhl6 bool = l >= 0 80461 yyj6++ 80462 if yyhl6 { 80463 yyb6 = yyj6 > l 80464 } else { 80465 yyb6 = r.CheckBreak() 80466 } 80467 if yyb6 { 80468 r.ReadArrayEnd() 80469 return 80470 } 80471 r.ReadArrayElem() 80472 if r.TryDecodeAsNil() { 80473 x.Networks = nil 80474 } else { 80475 x.Networks.CodecDecodeSelf(d) 80476 } 80477 yyj6++ 80478 if yyhl6 { 80479 yyb6 = yyj6 > l 80480 } else { 80481 yyb6 = r.CheckBreak() 80482 } 80483 if yyb6 { 80484 r.ReadArrayEnd() 80485 return 80486 } 80487 r.ReadArrayElem() 80488 if r.TryDecodeAsNil() { 80489 x.DiskMB = 0 80490 } else { 80491 x.DiskMB = (int64)(r.DecodeInt64()) 80492 } 80493 for { 80494 yyj6++ 80495 if yyhl6 { 80496 yyb6 = yyj6 > l 80497 } else { 80498 yyb6 = r.CheckBreak() 80499 } 80500 if yyb6 { 80501 break 80502 } 80503 r.ReadArrayElem() 80504 z.DecStructFieldNotFound(yyj6-1, "") 80505 } 80506 r.ReadArrayEnd() 80507 } 80508 80509 func (x *AllocatedCpuResources) CodecEncodeSelf(e *codec1978.Encoder) { 80510 var h codecSelfer100 80511 z, r := codec1978.GenHelperEncoder(e) 80512 _, _, _ = h, z, r 80513 if x == nil { 80514 r.EncodeNil() 80515 } else { 80516 if false { 80517 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80518 z.EncExtension(x, yyxt1) 80519 } else { 80520 yysep2 := !z.EncBinary() 80521 yy2arr2 := z.EncBasicHandle().StructToArray 80522 _, _ = yysep2, yy2arr2 80523 const yyr2 bool = false // struct tag has 'toArray' 80524 if yyr2 || yy2arr2 { 80525 r.WriteArrayStart(1) 80526 } else { 80527 r.WriteMapStart(1) 80528 } 80529 if yyr2 || yy2arr2 { 80530 r.WriteArrayElem() 80531 if false { 80532 } else { 80533 r.EncodeInt(int64(x.CpuShares)) 80534 } 80535 } else { 80536 r.WriteMapElemKey() 80537 if z.IsJSONHandle() { 80538 z.WriteStr("\"CpuShares\"") 80539 } else { 80540 r.EncodeStringEnc(codecSelferCcUTF8100, `CpuShares`) 80541 } 80542 r.WriteMapElemValue() 80543 if false { 80544 } else { 80545 r.EncodeInt(int64(x.CpuShares)) 80546 } 80547 } 80548 if yyr2 || yy2arr2 { 80549 r.WriteArrayEnd() 80550 } else { 80551 r.WriteMapEnd() 80552 } 80553 } 80554 } 80555 } 80556 80557 func (x *AllocatedCpuResources) CodecDecodeSelf(d *codec1978.Decoder) { 80558 var h codecSelfer100 80559 z, r := codec1978.GenHelperDecoder(d) 80560 _, _, _ = h, z, r 80561 if false { 80562 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80563 z.DecExtension(x, yyxt1) 80564 } else { 80565 yyct2 := r.ContainerType() 80566 if yyct2 == codecSelferValueTypeMap100 { 80567 yyl2 := r.ReadMapStart() 80568 if yyl2 == 0 { 80569 r.ReadMapEnd() 80570 } else { 80571 x.codecDecodeSelfFromMap(yyl2, d) 80572 } 80573 } else if yyct2 == codecSelferValueTypeArray100 { 80574 yyl2 := r.ReadArrayStart() 80575 if yyl2 == 0 { 80576 r.ReadArrayEnd() 80577 } else { 80578 x.codecDecodeSelfFromArray(yyl2, d) 80579 } 80580 } else { 80581 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80582 } 80583 } 80584 } 80585 80586 func (x *AllocatedCpuResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 80587 var h codecSelfer100 80588 z, r := codec1978.GenHelperDecoder(d) 80589 _, _, _ = h, z, r 80590 var yyhl3 bool = l >= 0 80591 for yyj3 := 0; ; yyj3++ { 80592 if yyhl3 { 80593 if yyj3 >= l { 80594 break 80595 } 80596 } else { 80597 if r.CheckBreak() { 80598 break 80599 } 80600 } 80601 r.ReadMapElemKey() 80602 yys3 := z.StringView(r.DecodeStringAsBytes()) 80603 r.ReadMapElemValue() 80604 switch yys3 { 80605 case "CpuShares": 80606 if r.TryDecodeAsNil() { 80607 x.CpuShares = 0 80608 } else { 80609 x.CpuShares = (int64)(r.DecodeInt64()) 80610 } 80611 default: 80612 z.DecStructFieldNotFound(-1, yys3) 80613 } // end switch yys3 80614 } // end for yyj3 80615 r.ReadMapEnd() 80616 } 80617 80618 func (x *AllocatedCpuResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 80619 var h codecSelfer100 80620 z, r := codec1978.GenHelperDecoder(d) 80621 _, _, _ = h, z, r 80622 var yyj5 int 80623 var yyb5 bool 80624 var yyhl5 bool = l >= 0 80625 yyj5++ 80626 if yyhl5 { 80627 yyb5 = yyj5 > l 80628 } else { 80629 yyb5 = r.CheckBreak() 80630 } 80631 if yyb5 { 80632 r.ReadArrayEnd() 80633 return 80634 } 80635 r.ReadArrayElem() 80636 if r.TryDecodeAsNil() { 80637 x.CpuShares = 0 80638 } else { 80639 x.CpuShares = (int64)(r.DecodeInt64()) 80640 } 80641 for { 80642 yyj5++ 80643 if yyhl5 { 80644 yyb5 = yyj5 > l 80645 } else { 80646 yyb5 = r.CheckBreak() 80647 } 80648 if yyb5 { 80649 break 80650 } 80651 r.ReadArrayElem() 80652 z.DecStructFieldNotFound(yyj5-1, "") 80653 } 80654 r.ReadArrayEnd() 80655 } 80656 80657 func (x *AllocatedMemoryResources) CodecEncodeSelf(e *codec1978.Encoder) { 80658 var h codecSelfer100 80659 z, r := codec1978.GenHelperEncoder(e) 80660 _, _, _ = h, z, r 80661 if x == nil { 80662 r.EncodeNil() 80663 } else { 80664 if false { 80665 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80666 z.EncExtension(x, yyxt1) 80667 } else { 80668 yysep2 := !z.EncBinary() 80669 yy2arr2 := z.EncBasicHandle().StructToArray 80670 _, _ = yysep2, yy2arr2 80671 const yyr2 bool = false // struct tag has 'toArray' 80672 if yyr2 || yy2arr2 { 80673 r.WriteArrayStart(1) 80674 } else { 80675 r.WriteMapStart(1) 80676 } 80677 if yyr2 || yy2arr2 { 80678 r.WriteArrayElem() 80679 if false { 80680 } else { 80681 r.EncodeInt(int64(x.MemoryMB)) 80682 } 80683 } else { 80684 r.WriteMapElemKey() 80685 if z.IsJSONHandle() { 80686 z.WriteStr("\"MemoryMB\"") 80687 } else { 80688 r.EncodeStringEnc(codecSelferCcUTF8100, `MemoryMB`) 80689 } 80690 r.WriteMapElemValue() 80691 if false { 80692 } else { 80693 r.EncodeInt(int64(x.MemoryMB)) 80694 } 80695 } 80696 if yyr2 || yy2arr2 { 80697 r.WriteArrayEnd() 80698 } else { 80699 r.WriteMapEnd() 80700 } 80701 } 80702 } 80703 } 80704 80705 func (x *AllocatedMemoryResources) CodecDecodeSelf(d *codec1978.Decoder) { 80706 var h codecSelfer100 80707 z, r := codec1978.GenHelperDecoder(d) 80708 _, _, _ = h, z, r 80709 if false { 80710 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80711 z.DecExtension(x, yyxt1) 80712 } else { 80713 yyct2 := r.ContainerType() 80714 if yyct2 == codecSelferValueTypeMap100 { 80715 yyl2 := r.ReadMapStart() 80716 if yyl2 == 0 { 80717 r.ReadMapEnd() 80718 } else { 80719 x.codecDecodeSelfFromMap(yyl2, d) 80720 } 80721 } else if yyct2 == codecSelferValueTypeArray100 { 80722 yyl2 := r.ReadArrayStart() 80723 if yyl2 == 0 { 80724 r.ReadArrayEnd() 80725 } else { 80726 x.codecDecodeSelfFromArray(yyl2, d) 80727 } 80728 } else { 80729 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80730 } 80731 } 80732 } 80733 80734 func (x *AllocatedMemoryResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 80735 var h codecSelfer100 80736 z, r := codec1978.GenHelperDecoder(d) 80737 _, _, _ = h, z, r 80738 var yyhl3 bool = l >= 0 80739 for yyj3 := 0; ; yyj3++ { 80740 if yyhl3 { 80741 if yyj3 >= l { 80742 break 80743 } 80744 } else { 80745 if r.CheckBreak() { 80746 break 80747 } 80748 } 80749 r.ReadMapElemKey() 80750 yys3 := z.StringView(r.DecodeStringAsBytes()) 80751 r.ReadMapElemValue() 80752 switch yys3 { 80753 case "MemoryMB": 80754 if r.TryDecodeAsNil() { 80755 x.MemoryMB = 0 80756 } else { 80757 x.MemoryMB = (int64)(r.DecodeInt64()) 80758 } 80759 default: 80760 z.DecStructFieldNotFound(-1, yys3) 80761 } // end switch yys3 80762 } // end for yyj3 80763 r.ReadMapEnd() 80764 } 80765 80766 func (x *AllocatedMemoryResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 80767 var h codecSelfer100 80768 z, r := codec1978.GenHelperDecoder(d) 80769 _, _, _ = h, z, r 80770 var yyj5 int 80771 var yyb5 bool 80772 var yyhl5 bool = l >= 0 80773 yyj5++ 80774 if yyhl5 { 80775 yyb5 = yyj5 > l 80776 } else { 80777 yyb5 = r.CheckBreak() 80778 } 80779 if yyb5 { 80780 r.ReadArrayEnd() 80781 return 80782 } 80783 r.ReadArrayElem() 80784 if r.TryDecodeAsNil() { 80785 x.MemoryMB = 0 80786 } else { 80787 x.MemoryMB = (int64)(r.DecodeInt64()) 80788 } 80789 for { 80790 yyj5++ 80791 if yyhl5 { 80792 yyb5 = yyj5 > l 80793 } else { 80794 yyb5 = r.CheckBreak() 80795 } 80796 if yyb5 { 80797 break 80798 } 80799 r.ReadArrayElem() 80800 z.DecStructFieldNotFound(yyj5-1, "") 80801 } 80802 r.ReadArrayEnd() 80803 } 80804 80805 func (x AllocatedDevices) CodecEncodeSelf(e *codec1978.Encoder) { 80806 var h codecSelfer100 80807 z, r := codec1978.GenHelperEncoder(e) 80808 _, _, _ = h, z, r 80809 if x == nil { 80810 r.EncodeNil() 80811 } else { 80812 if false { 80813 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80814 z.EncExtension(x, yyxt1) 80815 } else { 80816 h.encAllocatedDevices((AllocatedDevices)(x), e) 80817 } 80818 } 80819 } 80820 80821 func (x *AllocatedDevices) CodecDecodeSelf(d *codec1978.Decoder) { 80822 var h codecSelfer100 80823 z, r := codec1978.GenHelperDecoder(d) 80824 _, _, _ = h, z, r 80825 if false { 80826 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80827 z.DecExtension(x, yyxt1) 80828 } else { 80829 h.decAllocatedDevices((*AllocatedDevices)(x), d) 80830 } 80831 } 80832 80833 func (x *AllocatedDeviceResource) CodecEncodeSelf(e *codec1978.Encoder) { 80834 var h codecSelfer100 80835 z, r := codec1978.GenHelperEncoder(e) 80836 _, _, _ = h, z, r 80837 if x == nil { 80838 r.EncodeNil() 80839 } else { 80840 if false { 80841 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80842 z.EncExtension(x, yyxt1) 80843 } else { 80844 yysep2 := !z.EncBinary() 80845 yy2arr2 := z.EncBasicHandle().StructToArray 80846 _, _ = yysep2, yy2arr2 80847 const yyr2 bool = false // struct tag has 'toArray' 80848 if yyr2 || yy2arr2 { 80849 r.WriteArrayStart(4) 80850 } else { 80851 r.WriteMapStart(4) 80852 } 80853 if yyr2 || yy2arr2 { 80854 r.WriteArrayElem() 80855 if false { 80856 } else { 80857 if z.EncBasicHandle().StringToRaw { 80858 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 80859 } else { 80860 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 80861 } 80862 } 80863 } else { 80864 r.WriteMapElemKey() 80865 if z.IsJSONHandle() { 80866 z.WriteStr("\"Vendor\"") 80867 } else { 80868 r.EncodeStringEnc(codecSelferCcUTF8100, `Vendor`) 80869 } 80870 r.WriteMapElemValue() 80871 if false { 80872 } else { 80873 if z.EncBasicHandle().StringToRaw { 80874 r.EncodeStringBytesRaw(z.BytesView(string(x.Vendor))) 80875 } else { 80876 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Vendor)) 80877 } 80878 } 80879 } 80880 if yyr2 || yy2arr2 { 80881 r.WriteArrayElem() 80882 if false { 80883 } else { 80884 if z.EncBasicHandle().StringToRaw { 80885 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 80886 } else { 80887 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 80888 } 80889 } 80890 } else { 80891 r.WriteMapElemKey() 80892 if z.IsJSONHandle() { 80893 z.WriteStr("\"Type\"") 80894 } else { 80895 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 80896 } 80897 r.WriteMapElemValue() 80898 if false { 80899 } else { 80900 if z.EncBasicHandle().StringToRaw { 80901 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 80902 } else { 80903 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 80904 } 80905 } 80906 } 80907 if yyr2 || yy2arr2 { 80908 r.WriteArrayElem() 80909 if false { 80910 } else { 80911 if z.EncBasicHandle().StringToRaw { 80912 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 80913 } else { 80914 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 80915 } 80916 } 80917 } else { 80918 r.WriteMapElemKey() 80919 if z.IsJSONHandle() { 80920 z.WriteStr("\"Name\"") 80921 } else { 80922 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 80923 } 80924 r.WriteMapElemValue() 80925 if false { 80926 } else { 80927 if z.EncBasicHandle().StringToRaw { 80928 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 80929 } else { 80930 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 80931 } 80932 } 80933 } 80934 if yyr2 || yy2arr2 { 80935 r.WriteArrayElem() 80936 if x.DeviceIDs == nil { 80937 r.EncodeNil() 80938 } else { 80939 if false { 80940 } else { 80941 z.F.EncSliceStringV(x.DeviceIDs, e) 80942 } 80943 } 80944 } else { 80945 r.WriteMapElemKey() 80946 if z.IsJSONHandle() { 80947 z.WriteStr("\"DeviceIDs\"") 80948 } else { 80949 r.EncodeStringEnc(codecSelferCcUTF8100, `DeviceIDs`) 80950 } 80951 r.WriteMapElemValue() 80952 if x.DeviceIDs == nil { 80953 r.EncodeNil() 80954 } else { 80955 if false { 80956 } else { 80957 z.F.EncSliceStringV(x.DeviceIDs, e) 80958 } 80959 } 80960 } 80961 if yyr2 || yy2arr2 { 80962 r.WriteArrayEnd() 80963 } else { 80964 r.WriteMapEnd() 80965 } 80966 } 80967 } 80968 } 80969 80970 func (x *AllocatedDeviceResource) CodecDecodeSelf(d *codec1978.Decoder) { 80971 var h codecSelfer100 80972 z, r := codec1978.GenHelperDecoder(d) 80973 _, _, _ = h, z, r 80974 if false { 80975 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 80976 z.DecExtension(x, yyxt1) 80977 } else { 80978 yyct2 := r.ContainerType() 80979 if yyct2 == codecSelferValueTypeMap100 { 80980 yyl2 := r.ReadMapStart() 80981 if yyl2 == 0 { 80982 r.ReadMapEnd() 80983 } else { 80984 x.codecDecodeSelfFromMap(yyl2, d) 80985 } 80986 } else if yyct2 == codecSelferValueTypeArray100 { 80987 yyl2 := r.ReadArrayStart() 80988 if yyl2 == 0 { 80989 r.ReadArrayEnd() 80990 } else { 80991 x.codecDecodeSelfFromArray(yyl2, d) 80992 } 80993 } else { 80994 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 80995 } 80996 } 80997 } 80998 80999 func (x *AllocatedDeviceResource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 81000 var h codecSelfer100 81001 z, r := codec1978.GenHelperDecoder(d) 81002 _, _, _ = h, z, r 81003 var yyhl3 bool = l >= 0 81004 for yyj3 := 0; ; yyj3++ { 81005 if yyhl3 { 81006 if yyj3 >= l { 81007 break 81008 } 81009 } else { 81010 if r.CheckBreak() { 81011 break 81012 } 81013 } 81014 r.ReadMapElemKey() 81015 yys3 := z.StringView(r.DecodeStringAsBytes()) 81016 r.ReadMapElemValue() 81017 switch yys3 { 81018 case "Vendor": 81019 if r.TryDecodeAsNil() { 81020 x.Vendor = "" 81021 } else { 81022 x.Vendor = (string)(r.DecodeString()) 81023 } 81024 case "Type": 81025 if r.TryDecodeAsNil() { 81026 x.Type = "" 81027 } else { 81028 x.Type = (string)(r.DecodeString()) 81029 } 81030 case "Name": 81031 if r.TryDecodeAsNil() { 81032 x.Name = "" 81033 } else { 81034 x.Name = (string)(r.DecodeString()) 81035 } 81036 case "DeviceIDs": 81037 if r.TryDecodeAsNil() { 81038 x.DeviceIDs = nil 81039 } else { 81040 if false { 81041 } else { 81042 z.F.DecSliceStringX(&x.DeviceIDs, d) 81043 } 81044 } 81045 default: 81046 z.DecStructFieldNotFound(-1, yys3) 81047 } // end switch yys3 81048 } // end for yyj3 81049 r.ReadMapEnd() 81050 } 81051 81052 func (x *AllocatedDeviceResource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 81053 var h codecSelfer100 81054 z, r := codec1978.GenHelperDecoder(d) 81055 _, _, _ = h, z, r 81056 var yyj9 int 81057 var yyb9 bool 81058 var yyhl9 bool = l >= 0 81059 yyj9++ 81060 if yyhl9 { 81061 yyb9 = yyj9 > l 81062 } else { 81063 yyb9 = r.CheckBreak() 81064 } 81065 if yyb9 { 81066 r.ReadArrayEnd() 81067 return 81068 } 81069 r.ReadArrayElem() 81070 if r.TryDecodeAsNil() { 81071 x.Vendor = "" 81072 } else { 81073 x.Vendor = (string)(r.DecodeString()) 81074 } 81075 yyj9++ 81076 if yyhl9 { 81077 yyb9 = yyj9 > l 81078 } else { 81079 yyb9 = r.CheckBreak() 81080 } 81081 if yyb9 { 81082 r.ReadArrayEnd() 81083 return 81084 } 81085 r.ReadArrayElem() 81086 if r.TryDecodeAsNil() { 81087 x.Type = "" 81088 } else { 81089 x.Type = (string)(r.DecodeString()) 81090 } 81091 yyj9++ 81092 if yyhl9 { 81093 yyb9 = yyj9 > l 81094 } else { 81095 yyb9 = r.CheckBreak() 81096 } 81097 if yyb9 { 81098 r.ReadArrayEnd() 81099 return 81100 } 81101 r.ReadArrayElem() 81102 if r.TryDecodeAsNil() { 81103 x.Name = "" 81104 } else { 81105 x.Name = (string)(r.DecodeString()) 81106 } 81107 yyj9++ 81108 if yyhl9 { 81109 yyb9 = yyj9 > l 81110 } else { 81111 yyb9 = r.CheckBreak() 81112 } 81113 if yyb9 { 81114 r.ReadArrayEnd() 81115 return 81116 } 81117 r.ReadArrayElem() 81118 if r.TryDecodeAsNil() { 81119 x.DeviceIDs = nil 81120 } else { 81121 if false { 81122 } else { 81123 z.F.DecSliceStringX(&x.DeviceIDs, d) 81124 } 81125 } 81126 for { 81127 yyj9++ 81128 if yyhl9 { 81129 yyb9 = yyj9 > l 81130 } else { 81131 yyb9 = r.CheckBreak() 81132 } 81133 if yyb9 { 81134 break 81135 } 81136 r.ReadArrayElem() 81137 z.DecStructFieldNotFound(yyj9-1, "") 81138 } 81139 r.ReadArrayEnd() 81140 } 81141 81142 func (x *ComparableResources) CodecEncodeSelf(e *codec1978.Encoder) { 81143 var h codecSelfer100 81144 z, r := codec1978.GenHelperEncoder(e) 81145 _, _, _ = h, z, r 81146 if x == nil { 81147 r.EncodeNil() 81148 } else { 81149 if false { 81150 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 81151 z.EncExtension(x, yyxt1) 81152 } else { 81153 yysep2 := !z.EncBinary() 81154 yy2arr2 := z.EncBasicHandle().StructToArray 81155 _, _ = yysep2, yy2arr2 81156 const yyr2 bool = false // struct tag has 'toArray' 81157 if yyr2 || yy2arr2 { 81158 r.WriteArrayStart(2) 81159 } else { 81160 r.WriteMapStart(2) 81161 } 81162 if yyr2 || yy2arr2 { 81163 r.WriteArrayElem() 81164 yy4 := &x.Flattened 81165 yy4.CodecEncodeSelf(e) 81166 } else { 81167 r.WriteMapElemKey() 81168 if z.IsJSONHandle() { 81169 z.WriteStr("\"Flattened\"") 81170 } else { 81171 r.EncodeStringEnc(codecSelferCcUTF8100, `Flattened`) 81172 } 81173 r.WriteMapElemValue() 81174 yy6 := &x.Flattened 81175 yy6.CodecEncodeSelf(e) 81176 } 81177 if yyr2 || yy2arr2 { 81178 r.WriteArrayElem() 81179 yy9 := &x.Shared 81180 yy9.CodecEncodeSelf(e) 81181 } else { 81182 r.WriteMapElemKey() 81183 if z.IsJSONHandle() { 81184 z.WriteStr("\"Shared\"") 81185 } else { 81186 r.EncodeStringEnc(codecSelferCcUTF8100, `Shared`) 81187 } 81188 r.WriteMapElemValue() 81189 yy11 := &x.Shared 81190 yy11.CodecEncodeSelf(e) 81191 } 81192 if yyr2 || yy2arr2 { 81193 r.WriteArrayEnd() 81194 } else { 81195 r.WriteMapEnd() 81196 } 81197 } 81198 } 81199 } 81200 81201 func (x *ComparableResources) CodecDecodeSelf(d *codec1978.Decoder) { 81202 var h codecSelfer100 81203 z, r := codec1978.GenHelperDecoder(d) 81204 _, _, _ = h, z, r 81205 if false { 81206 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 81207 z.DecExtension(x, yyxt1) 81208 } else { 81209 yyct2 := r.ContainerType() 81210 if yyct2 == codecSelferValueTypeMap100 { 81211 yyl2 := r.ReadMapStart() 81212 if yyl2 == 0 { 81213 r.ReadMapEnd() 81214 } else { 81215 x.codecDecodeSelfFromMap(yyl2, d) 81216 } 81217 } else if yyct2 == codecSelferValueTypeArray100 { 81218 yyl2 := r.ReadArrayStart() 81219 if yyl2 == 0 { 81220 r.ReadArrayEnd() 81221 } else { 81222 x.codecDecodeSelfFromArray(yyl2, d) 81223 } 81224 } else { 81225 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 81226 } 81227 } 81228 } 81229 81230 func (x *ComparableResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 81231 var h codecSelfer100 81232 z, r := codec1978.GenHelperDecoder(d) 81233 _, _, _ = h, z, r 81234 var yyhl3 bool = l >= 0 81235 for yyj3 := 0; ; yyj3++ { 81236 if yyhl3 { 81237 if yyj3 >= l { 81238 break 81239 } 81240 } else { 81241 if r.CheckBreak() { 81242 break 81243 } 81244 } 81245 r.ReadMapElemKey() 81246 yys3 := z.StringView(r.DecodeStringAsBytes()) 81247 r.ReadMapElemValue() 81248 switch yys3 { 81249 case "Flattened": 81250 if r.TryDecodeAsNil() { 81251 x.Flattened = AllocatedTaskResources{} 81252 } else { 81253 x.Flattened.CodecDecodeSelf(d) 81254 } 81255 case "Shared": 81256 if r.TryDecodeAsNil() { 81257 x.Shared = AllocatedSharedResources{} 81258 } else { 81259 x.Shared.CodecDecodeSelf(d) 81260 } 81261 default: 81262 z.DecStructFieldNotFound(-1, yys3) 81263 } // end switch yys3 81264 } // end for yyj3 81265 r.ReadMapEnd() 81266 } 81267 81268 func (x *ComparableResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 81269 var h codecSelfer100 81270 z, r := codec1978.GenHelperDecoder(d) 81271 _, _, _ = h, z, r 81272 var yyj6 int 81273 var yyb6 bool 81274 var yyhl6 bool = l >= 0 81275 yyj6++ 81276 if yyhl6 { 81277 yyb6 = yyj6 > l 81278 } else { 81279 yyb6 = r.CheckBreak() 81280 } 81281 if yyb6 { 81282 r.ReadArrayEnd() 81283 return 81284 } 81285 r.ReadArrayElem() 81286 if r.TryDecodeAsNil() { 81287 x.Flattened = AllocatedTaskResources{} 81288 } else { 81289 x.Flattened.CodecDecodeSelf(d) 81290 } 81291 yyj6++ 81292 if yyhl6 { 81293 yyb6 = yyj6 > l 81294 } else { 81295 yyb6 = r.CheckBreak() 81296 } 81297 if yyb6 { 81298 r.ReadArrayEnd() 81299 return 81300 } 81301 r.ReadArrayElem() 81302 if r.TryDecodeAsNil() { 81303 x.Shared = AllocatedSharedResources{} 81304 } else { 81305 x.Shared.CodecDecodeSelf(d) 81306 } 81307 for { 81308 yyj6++ 81309 if yyhl6 { 81310 yyb6 = yyj6 > l 81311 } else { 81312 yyb6 = r.CheckBreak() 81313 } 81314 if yyb6 { 81315 break 81316 } 81317 r.ReadArrayElem() 81318 z.DecStructFieldNotFound(yyj6-1, "") 81319 } 81320 r.ReadArrayEnd() 81321 } 81322 81323 func (x *Job) CodecEncodeSelf(e *codec1978.Encoder) { 81324 var h codecSelfer100 81325 z, r := codec1978.GenHelperEncoder(e) 81326 _, _, _ = h, z, r 81327 if x == nil { 81328 r.EncodeNil() 81329 } else { 81330 if false { 81331 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 81332 z.EncExtension(x, yyxt1) 81333 } else { 81334 yysep2 := !z.EncBinary() 81335 yy2arr2 := z.EncBasicHandle().StructToArray 81336 _, _ = yysep2, yy2arr2 81337 const yyr2 bool = false // struct tag has 'toArray' 81338 if yyr2 || yy2arr2 { 81339 r.WriteArrayStart(30) 81340 } else { 81341 r.WriteMapStart(30) 81342 } 81343 if yyr2 || yy2arr2 { 81344 r.WriteArrayElem() 81345 if false { 81346 } else { 81347 r.EncodeBool(bool(x.Stop)) 81348 } 81349 } else { 81350 r.WriteMapElemKey() 81351 if z.IsJSONHandle() { 81352 z.WriteStr("\"Stop\"") 81353 } else { 81354 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 81355 } 81356 r.WriteMapElemValue() 81357 if false { 81358 } else { 81359 r.EncodeBool(bool(x.Stop)) 81360 } 81361 } 81362 if yyr2 || yy2arr2 { 81363 r.WriteArrayElem() 81364 if false { 81365 } else { 81366 if z.EncBasicHandle().StringToRaw { 81367 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 81368 } else { 81369 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 81370 } 81371 } 81372 } else { 81373 r.WriteMapElemKey() 81374 if z.IsJSONHandle() { 81375 z.WriteStr("\"Region\"") 81376 } else { 81377 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 81378 } 81379 r.WriteMapElemValue() 81380 if false { 81381 } else { 81382 if z.EncBasicHandle().StringToRaw { 81383 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 81384 } else { 81385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 81386 } 81387 } 81388 } 81389 if yyr2 || yy2arr2 { 81390 r.WriteArrayElem() 81391 if false { 81392 } else { 81393 if z.EncBasicHandle().StringToRaw { 81394 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 81395 } else { 81396 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 81397 } 81398 } 81399 } else { 81400 r.WriteMapElemKey() 81401 if z.IsJSONHandle() { 81402 z.WriteStr("\"Namespace\"") 81403 } else { 81404 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 81405 } 81406 r.WriteMapElemValue() 81407 if false { 81408 } else { 81409 if z.EncBasicHandle().StringToRaw { 81410 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 81411 } else { 81412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 81413 } 81414 } 81415 } 81416 if yyr2 || yy2arr2 { 81417 r.WriteArrayElem() 81418 if false { 81419 } else { 81420 if z.EncBasicHandle().StringToRaw { 81421 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 81422 } else { 81423 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 81424 } 81425 } 81426 } else { 81427 r.WriteMapElemKey() 81428 if z.IsJSONHandle() { 81429 z.WriteStr("\"ID\"") 81430 } else { 81431 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 81432 } 81433 r.WriteMapElemValue() 81434 if false { 81435 } else { 81436 if z.EncBasicHandle().StringToRaw { 81437 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 81438 } else { 81439 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 81440 } 81441 } 81442 } 81443 if yyr2 || yy2arr2 { 81444 r.WriteArrayElem() 81445 if false { 81446 } else { 81447 if z.EncBasicHandle().StringToRaw { 81448 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 81449 } else { 81450 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 81451 } 81452 } 81453 } else { 81454 r.WriteMapElemKey() 81455 if z.IsJSONHandle() { 81456 z.WriteStr("\"ParentID\"") 81457 } else { 81458 r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) 81459 } 81460 r.WriteMapElemValue() 81461 if false { 81462 } else { 81463 if z.EncBasicHandle().StringToRaw { 81464 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 81465 } else { 81466 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 81467 } 81468 } 81469 } 81470 if yyr2 || yy2arr2 { 81471 r.WriteArrayElem() 81472 if false { 81473 } else { 81474 if z.EncBasicHandle().StringToRaw { 81475 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 81476 } else { 81477 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 81478 } 81479 } 81480 } else { 81481 r.WriteMapElemKey() 81482 if z.IsJSONHandle() { 81483 z.WriteStr("\"Name\"") 81484 } else { 81485 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 81486 } 81487 r.WriteMapElemValue() 81488 if false { 81489 } else { 81490 if z.EncBasicHandle().StringToRaw { 81491 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 81492 } else { 81493 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 81494 } 81495 } 81496 } 81497 if yyr2 || yy2arr2 { 81498 r.WriteArrayElem() 81499 if false { 81500 } else { 81501 if z.EncBasicHandle().StringToRaw { 81502 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 81503 } else { 81504 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 81505 } 81506 } 81507 } else { 81508 r.WriteMapElemKey() 81509 if z.IsJSONHandle() { 81510 z.WriteStr("\"Type\"") 81511 } else { 81512 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 81513 } 81514 r.WriteMapElemValue() 81515 if false { 81516 } else { 81517 if z.EncBasicHandle().StringToRaw { 81518 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 81519 } else { 81520 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 81521 } 81522 } 81523 } 81524 if yyr2 || yy2arr2 { 81525 r.WriteArrayElem() 81526 if false { 81527 } else { 81528 r.EncodeInt(int64(x.Priority)) 81529 } 81530 } else { 81531 r.WriteMapElemKey() 81532 if z.IsJSONHandle() { 81533 z.WriteStr("\"Priority\"") 81534 } else { 81535 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 81536 } 81537 r.WriteMapElemValue() 81538 if false { 81539 } else { 81540 r.EncodeInt(int64(x.Priority)) 81541 } 81542 } 81543 if yyr2 || yy2arr2 { 81544 r.WriteArrayElem() 81545 if false { 81546 } else { 81547 r.EncodeBool(bool(x.AllAtOnce)) 81548 } 81549 } else { 81550 r.WriteMapElemKey() 81551 if z.IsJSONHandle() { 81552 z.WriteStr("\"AllAtOnce\"") 81553 } else { 81554 r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) 81555 } 81556 r.WriteMapElemValue() 81557 if false { 81558 } else { 81559 r.EncodeBool(bool(x.AllAtOnce)) 81560 } 81561 } 81562 if yyr2 || yy2arr2 { 81563 r.WriteArrayElem() 81564 if x.Datacenters == nil { 81565 r.EncodeNil() 81566 } else { 81567 if false { 81568 } else { 81569 z.F.EncSliceStringV(x.Datacenters, e) 81570 } 81571 } 81572 } else { 81573 r.WriteMapElemKey() 81574 if z.IsJSONHandle() { 81575 z.WriteStr("\"Datacenters\"") 81576 } else { 81577 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) 81578 } 81579 r.WriteMapElemValue() 81580 if x.Datacenters == nil { 81581 r.EncodeNil() 81582 } else { 81583 if false { 81584 } else { 81585 z.F.EncSliceStringV(x.Datacenters, e) 81586 } 81587 } 81588 } 81589 if yyr2 || yy2arr2 { 81590 r.WriteArrayElem() 81591 if x.Constraints == nil { 81592 r.EncodeNil() 81593 } else { 81594 if false { 81595 } else { 81596 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 81597 } 81598 } 81599 } else { 81600 r.WriteMapElemKey() 81601 if z.IsJSONHandle() { 81602 z.WriteStr("\"Constraints\"") 81603 } else { 81604 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 81605 } 81606 r.WriteMapElemValue() 81607 if x.Constraints == nil { 81608 r.EncodeNil() 81609 } else { 81610 if false { 81611 } else { 81612 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 81613 } 81614 } 81615 } 81616 if yyr2 || yy2arr2 { 81617 r.WriteArrayElem() 81618 if x.Affinities == nil { 81619 r.EncodeNil() 81620 } else { 81621 if false { 81622 } else { 81623 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 81624 } 81625 } 81626 } else { 81627 r.WriteMapElemKey() 81628 if z.IsJSONHandle() { 81629 z.WriteStr("\"Affinities\"") 81630 } else { 81631 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 81632 } 81633 r.WriteMapElemValue() 81634 if x.Affinities == nil { 81635 r.EncodeNil() 81636 } else { 81637 if false { 81638 } else { 81639 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 81640 } 81641 } 81642 } 81643 if yyr2 || yy2arr2 { 81644 r.WriteArrayElem() 81645 if x.Spreads == nil { 81646 r.EncodeNil() 81647 } else { 81648 if false { 81649 } else { 81650 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 81651 } 81652 } 81653 } else { 81654 r.WriteMapElemKey() 81655 if z.IsJSONHandle() { 81656 z.WriteStr("\"Spreads\"") 81657 } else { 81658 r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) 81659 } 81660 r.WriteMapElemValue() 81661 if x.Spreads == nil { 81662 r.EncodeNil() 81663 } else { 81664 if false { 81665 } else { 81666 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 81667 } 81668 } 81669 } 81670 if yyr2 || yy2arr2 { 81671 r.WriteArrayElem() 81672 if x.TaskGroups == nil { 81673 r.EncodeNil() 81674 } else { 81675 if false { 81676 } else { 81677 h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) 81678 } 81679 } 81680 } else { 81681 r.WriteMapElemKey() 81682 if z.IsJSONHandle() { 81683 z.WriteStr("\"TaskGroups\"") 81684 } else { 81685 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 81686 } 81687 r.WriteMapElemValue() 81688 if x.TaskGroups == nil { 81689 r.EncodeNil() 81690 } else { 81691 if false { 81692 } else { 81693 h.encSlicePtrtoTaskGroup(([]*TaskGroup)(x.TaskGroups), e) 81694 } 81695 } 81696 } 81697 if yyr2 || yy2arr2 { 81698 r.WriteArrayElem() 81699 yy46 := &x.Update 81700 yy46.CodecEncodeSelf(e) 81701 } else { 81702 r.WriteMapElemKey() 81703 if z.IsJSONHandle() { 81704 z.WriteStr("\"Update\"") 81705 } else { 81706 r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) 81707 } 81708 r.WriteMapElemValue() 81709 yy48 := &x.Update 81710 yy48.CodecEncodeSelf(e) 81711 } 81712 var yyn50 bool 81713 if x.Periodic == nil { 81714 yyn50 = true 81715 goto LABEL50 81716 } 81717 LABEL50: 81718 if yyr2 || yy2arr2 { 81719 if yyn50 { 81720 r.WriteArrayElem() 81721 r.EncodeNil() 81722 } else { 81723 r.WriteArrayElem() 81724 if x.Periodic == nil { 81725 r.EncodeNil() 81726 } else { 81727 x.Periodic.CodecEncodeSelf(e) 81728 } 81729 } 81730 } else { 81731 r.WriteMapElemKey() 81732 if z.IsJSONHandle() { 81733 z.WriteStr("\"Periodic\"") 81734 } else { 81735 r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) 81736 } 81737 r.WriteMapElemValue() 81738 if yyn50 { 81739 r.EncodeNil() 81740 } else { 81741 if x.Periodic == nil { 81742 r.EncodeNil() 81743 } else { 81744 x.Periodic.CodecEncodeSelf(e) 81745 } 81746 } 81747 } 81748 var yyn53 bool 81749 if x.ParameterizedJob == nil { 81750 yyn53 = true 81751 goto LABEL53 81752 } 81753 LABEL53: 81754 if yyr2 || yy2arr2 { 81755 if yyn53 { 81756 r.WriteArrayElem() 81757 r.EncodeNil() 81758 } else { 81759 r.WriteArrayElem() 81760 if x.ParameterizedJob == nil { 81761 r.EncodeNil() 81762 } else { 81763 x.ParameterizedJob.CodecEncodeSelf(e) 81764 } 81765 } 81766 } else { 81767 r.WriteMapElemKey() 81768 if z.IsJSONHandle() { 81769 z.WriteStr("\"ParameterizedJob\"") 81770 } else { 81771 r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) 81772 } 81773 r.WriteMapElemValue() 81774 if yyn53 { 81775 r.EncodeNil() 81776 } else { 81777 if x.ParameterizedJob == nil { 81778 r.EncodeNil() 81779 } else { 81780 x.ParameterizedJob.CodecEncodeSelf(e) 81781 } 81782 } 81783 } 81784 if yyr2 || yy2arr2 { 81785 r.WriteArrayElem() 81786 if false { 81787 } else { 81788 r.EncodeBool(bool(x.Dispatched)) 81789 } 81790 } else { 81791 r.WriteMapElemKey() 81792 if z.IsJSONHandle() { 81793 z.WriteStr("\"Dispatched\"") 81794 } else { 81795 r.EncodeStringEnc(codecSelferCcUTF8100, `Dispatched`) 81796 } 81797 r.WriteMapElemValue() 81798 if false { 81799 } else { 81800 r.EncodeBool(bool(x.Dispatched)) 81801 } 81802 } 81803 if yyr2 || yy2arr2 { 81804 r.WriteArrayElem() 81805 if x.Payload == nil { 81806 r.EncodeNil() 81807 } else { 81808 if false { 81809 } else { 81810 r.EncodeStringBytesRaw([]byte(x.Payload)) 81811 } 81812 } 81813 } else { 81814 r.WriteMapElemKey() 81815 if z.IsJSONHandle() { 81816 z.WriteStr("\"Payload\"") 81817 } else { 81818 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 81819 } 81820 r.WriteMapElemValue() 81821 if x.Payload == nil { 81822 r.EncodeNil() 81823 } else { 81824 if false { 81825 } else { 81826 r.EncodeStringBytesRaw([]byte(x.Payload)) 81827 } 81828 } 81829 } 81830 if yyr2 || yy2arr2 { 81831 r.WriteArrayElem() 81832 if x.Meta == nil { 81833 r.EncodeNil() 81834 } else { 81835 if false { 81836 } else { 81837 z.F.EncMapStringStringV(x.Meta, e) 81838 } 81839 } 81840 } else { 81841 r.WriteMapElemKey() 81842 if z.IsJSONHandle() { 81843 z.WriteStr("\"Meta\"") 81844 } else { 81845 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 81846 } 81847 r.WriteMapElemValue() 81848 if x.Meta == nil { 81849 r.EncodeNil() 81850 } else { 81851 if false { 81852 } else { 81853 z.F.EncMapStringStringV(x.Meta, e) 81854 } 81855 } 81856 } 81857 if yyr2 || yy2arr2 { 81858 r.WriteArrayElem() 81859 if false { 81860 } else { 81861 if z.EncBasicHandle().StringToRaw { 81862 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 81863 } else { 81864 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 81865 } 81866 } 81867 } else { 81868 r.WriteMapElemKey() 81869 if z.IsJSONHandle() { 81870 z.WriteStr("\"ConsulToken\"") 81871 } else { 81872 r.EncodeStringEnc(codecSelferCcUTF8100, `ConsulToken`) 81873 } 81874 r.WriteMapElemValue() 81875 if false { 81876 } else { 81877 if z.EncBasicHandle().StringToRaw { 81878 r.EncodeStringBytesRaw(z.BytesView(string(x.ConsulToken))) 81879 } else { 81880 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ConsulToken)) 81881 } 81882 } 81883 } 81884 if yyr2 || yy2arr2 { 81885 r.WriteArrayElem() 81886 if false { 81887 } else { 81888 if z.EncBasicHandle().StringToRaw { 81889 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 81890 } else { 81891 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 81892 } 81893 } 81894 } else { 81895 r.WriteMapElemKey() 81896 if z.IsJSONHandle() { 81897 z.WriteStr("\"VaultToken\"") 81898 } else { 81899 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultToken`) 81900 } 81901 r.WriteMapElemValue() 81902 if false { 81903 } else { 81904 if z.EncBasicHandle().StringToRaw { 81905 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultToken))) 81906 } else { 81907 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultToken)) 81908 } 81909 } 81910 } 81911 if yyr2 || yy2arr2 { 81912 r.WriteArrayElem() 81913 if false { 81914 } else { 81915 if z.EncBasicHandle().StringToRaw { 81916 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 81917 } else { 81918 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 81919 } 81920 } 81921 } else { 81922 r.WriteMapElemKey() 81923 if z.IsJSONHandle() { 81924 z.WriteStr("\"Status\"") 81925 } else { 81926 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 81927 } 81928 r.WriteMapElemValue() 81929 if false { 81930 } else { 81931 if z.EncBasicHandle().StringToRaw { 81932 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 81933 } else { 81934 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 81935 } 81936 } 81937 } 81938 if yyr2 || yy2arr2 { 81939 r.WriteArrayElem() 81940 if false { 81941 } else { 81942 if z.EncBasicHandle().StringToRaw { 81943 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 81944 } else { 81945 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 81946 } 81947 } 81948 } else { 81949 r.WriteMapElemKey() 81950 if z.IsJSONHandle() { 81951 z.WriteStr("\"StatusDescription\"") 81952 } else { 81953 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 81954 } 81955 r.WriteMapElemValue() 81956 if false { 81957 } else { 81958 if z.EncBasicHandle().StringToRaw { 81959 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 81960 } else { 81961 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 81962 } 81963 } 81964 } 81965 if yyr2 || yy2arr2 { 81966 r.WriteArrayElem() 81967 if false { 81968 } else { 81969 r.EncodeBool(bool(x.Stable)) 81970 } 81971 } else { 81972 r.WriteMapElemKey() 81973 if z.IsJSONHandle() { 81974 z.WriteStr("\"Stable\"") 81975 } else { 81976 r.EncodeStringEnc(codecSelferCcUTF8100, `Stable`) 81977 } 81978 r.WriteMapElemValue() 81979 if false { 81980 } else { 81981 r.EncodeBool(bool(x.Stable)) 81982 } 81983 } 81984 if yyr2 || yy2arr2 { 81985 r.WriteArrayElem() 81986 if false { 81987 } else { 81988 r.EncodeUint(uint64(x.Version)) 81989 } 81990 } else { 81991 r.WriteMapElemKey() 81992 if z.IsJSONHandle() { 81993 z.WriteStr("\"Version\"") 81994 } else { 81995 r.EncodeStringEnc(codecSelferCcUTF8100, `Version`) 81996 } 81997 r.WriteMapElemValue() 81998 if false { 81999 } else { 82000 r.EncodeUint(uint64(x.Version)) 82001 } 82002 } 82003 if yyr2 || yy2arr2 { 82004 r.WriteArrayElem() 82005 if false { 82006 } else { 82007 r.EncodeInt(int64(x.SubmitTime)) 82008 } 82009 } else { 82010 r.WriteMapElemKey() 82011 if z.IsJSONHandle() { 82012 z.WriteStr("\"SubmitTime\"") 82013 } else { 82014 r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) 82015 } 82016 r.WriteMapElemValue() 82017 if false { 82018 } else { 82019 r.EncodeInt(int64(x.SubmitTime)) 82020 } 82021 } 82022 if yyr2 || yy2arr2 { 82023 r.WriteArrayElem() 82024 if false { 82025 } else { 82026 r.EncodeUint(uint64(x.CreateIndex)) 82027 } 82028 } else { 82029 r.WriteMapElemKey() 82030 if z.IsJSONHandle() { 82031 z.WriteStr("\"CreateIndex\"") 82032 } else { 82033 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 82034 } 82035 r.WriteMapElemValue() 82036 if false { 82037 } else { 82038 r.EncodeUint(uint64(x.CreateIndex)) 82039 } 82040 } 82041 if yyr2 || yy2arr2 { 82042 r.WriteArrayElem() 82043 if false { 82044 } else { 82045 r.EncodeUint(uint64(x.ModifyIndex)) 82046 } 82047 } else { 82048 r.WriteMapElemKey() 82049 if z.IsJSONHandle() { 82050 z.WriteStr("\"ModifyIndex\"") 82051 } else { 82052 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 82053 } 82054 r.WriteMapElemValue() 82055 if false { 82056 } else { 82057 r.EncodeUint(uint64(x.ModifyIndex)) 82058 } 82059 } 82060 if yyr2 || yy2arr2 { 82061 r.WriteArrayElem() 82062 if false { 82063 } else { 82064 r.EncodeUint(uint64(x.JobModifyIndex)) 82065 } 82066 } else { 82067 r.WriteMapElemKey() 82068 if z.IsJSONHandle() { 82069 z.WriteStr("\"JobModifyIndex\"") 82070 } else { 82071 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 82072 } 82073 r.WriteMapElemValue() 82074 if false { 82075 } else { 82076 r.EncodeUint(uint64(x.JobModifyIndex)) 82077 } 82078 } 82079 if yyr2 || yy2arr2 { 82080 r.WriteArrayEnd() 82081 } else { 82082 r.WriteMapEnd() 82083 } 82084 } 82085 } 82086 } 82087 82088 func (x *Job) CodecDecodeSelf(d *codec1978.Decoder) { 82089 var h codecSelfer100 82090 z, r := codec1978.GenHelperDecoder(d) 82091 _, _, _ = h, z, r 82092 if false { 82093 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82094 z.DecExtension(x, yyxt1) 82095 } else { 82096 yyct2 := r.ContainerType() 82097 if yyct2 == codecSelferValueTypeMap100 { 82098 yyl2 := r.ReadMapStart() 82099 if yyl2 == 0 { 82100 r.ReadMapEnd() 82101 } else { 82102 x.codecDecodeSelfFromMap(yyl2, d) 82103 } 82104 } else if yyct2 == codecSelferValueTypeArray100 { 82105 yyl2 := r.ReadArrayStart() 82106 if yyl2 == 0 { 82107 r.ReadArrayEnd() 82108 } else { 82109 x.codecDecodeSelfFromArray(yyl2, d) 82110 } 82111 } else { 82112 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 82113 } 82114 } 82115 } 82116 82117 func (x *Job) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 82118 var h codecSelfer100 82119 z, r := codec1978.GenHelperDecoder(d) 82120 _, _, _ = h, z, r 82121 var yyhl3 bool = l >= 0 82122 for yyj3 := 0; ; yyj3++ { 82123 if yyhl3 { 82124 if yyj3 >= l { 82125 break 82126 } 82127 } else { 82128 if r.CheckBreak() { 82129 break 82130 } 82131 } 82132 r.ReadMapElemKey() 82133 yys3 := z.StringView(r.DecodeStringAsBytes()) 82134 r.ReadMapElemValue() 82135 switch yys3 { 82136 case "Stop": 82137 if r.TryDecodeAsNil() { 82138 x.Stop = false 82139 } else { 82140 x.Stop = (bool)(r.DecodeBool()) 82141 } 82142 case "Region": 82143 if r.TryDecodeAsNil() { 82144 x.Region = "" 82145 } else { 82146 x.Region = (string)(r.DecodeString()) 82147 } 82148 case "Namespace": 82149 if r.TryDecodeAsNil() { 82150 x.Namespace = "" 82151 } else { 82152 x.Namespace = (string)(r.DecodeString()) 82153 } 82154 case "ID": 82155 if r.TryDecodeAsNil() { 82156 x.ID = "" 82157 } else { 82158 x.ID = (string)(r.DecodeString()) 82159 } 82160 case "ParentID": 82161 if r.TryDecodeAsNil() { 82162 x.ParentID = "" 82163 } else { 82164 x.ParentID = (string)(r.DecodeString()) 82165 } 82166 case "Name": 82167 if r.TryDecodeAsNil() { 82168 x.Name = "" 82169 } else { 82170 x.Name = (string)(r.DecodeString()) 82171 } 82172 case "Type": 82173 if r.TryDecodeAsNil() { 82174 x.Type = "" 82175 } else { 82176 x.Type = (string)(r.DecodeString()) 82177 } 82178 case "Priority": 82179 if r.TryDecodeAsNil() { 82180 x.Priority = 0 82181 } else { 82182 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82183 } 82184 case "AllAtOnce": 82185 if r.TryDecodeAsNil() { 82186 x.AllAtOnce = false 82187 } else { 82188 x.AllAtOnce = (bool)(r.DecodeBool()) 82189 } 82190 case "Datacenters": 82191 if r.TryDecodeAsNil() { 82192 x.Datacenters = nil 82193 } else { 82194 if false { 82195 } else { 82196 z.F.DecSliceStringX(&x.Datacenters, d) 82197 } 82198 } 82199 case "Constraints": 82200 if r.TryDecodeAsNil() { 82201 x.Constraints = nil 82202 } else { 82203 if false { 82204 } else { 82205 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 82206 } 82207 } 82208 case "Affinities": 82209 if r.TryDecodeAsNil() { 82210 x.Affinities = nil 82211 } else { 82212 if false { 82213 } else { 82214 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 82215 } 82216 } 82217 case "Spreads": 82218 if r.TryDecodeAsNil() { 82219 x.Spreads = nil 82220 } else { 82221 if false { 82222 } else { 82223 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 82224 } 82225 } 82226 case "TaskGroups": 82227 if r.TryDecodeAsNil() { 82228 x.TaskGroups = nil 82229 } else { 82230 if false { 82231 } else { 82232 h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) 82233 } 82234 } 82235 case "Update": 82236 if r.TryDecodeAsNil() { 82237 x.Update = UpdateStrategy{} 82238 } else { 82239 x.Update.CodecDecodeSelf(d) 82240 } 82241 case "Periodic": 82242 if r.TryDecodeAsNil() { 82243 if true && x.Periodic != nil { 82244 x.Periodic = nil 82245 } 82246 } else { 82247 if x.Periodic == nil { 82248 x.Periodic = new(PeriodicConfig) 82249 } 82250 82251 x.Periodic.CodecDecodeSelf(d) 82252 } 82253 case "ParameterizedJob": 82254 if r.TryDecodeAsNil() { 82255 if true && x.ParameterizedJob != nil { 82256 x.ParameterizedJob = nil 82257 } 82258 } else { 82259 if x.ParameterizedJob == nil { 82260 x.ParameterizedJob = new(ParameterizedJobConfig) 82261 } 82262 82263 x.ParameterizedJob.CodecDecodeSelf(d) 82264 } 82265 case "Dispatched": 82266 if r.TryDecodeAsNil() { 82267 x.Dispatched = false 82268 } else { 82269 x.Dispatched = (bool)(r.DecodeBool()) 82270 } 82271 case "Payload": 82272 if r.TryDecodeAsNil() { 82273 x.Payload = nil 82274 } else { 82275 if false { 82276 } else { 82277 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 82278 } 82279 } 82280 case "Meta": 82281 if r.TryDecodeAsNil() { 82282 x.Meta = nil 82283 } else { 82284 if false { 82285 } else { 82286 z.F.DecMapStringStringX(&x.Meta, d) 82287 } 82288 } 82289 case "ConsulToken": 82290 if r.TryDecodeAsNil() { 82291 x.ConsulToken = "" 82292 } else { 82293 x.ConsulToken = (string)(r.DecodeString()) 82294 } 82295 case "VaultToken": 82296 if r.TryDecodeAsNil() { 82297 x.VaultToken = "" 82298 } else { 82299 x.VaultToken = (string)(r.DecodeString()) 82300 } 82301 case "Status": 82302 if r.TryDecodeAsNil() { 82303 x.Status = "" 82304 } else { 82305 x.Status = (string)(r.DecodeString()) 82306 } 82307 case "StatusDescription": 82308 if r.TryDecodeAsNil() { 82309 x.StatusDescription = "" 82310 } else { 82311 x.StatusDescription = (string)(r.DecodeString()) 82312 } 82313 case "Stable": 82314 if r.TryDecodeAsNil() { 82315 x.Stable = false 82316 } else { 82317 x.Stable = (bool)(r.DecodeBool()) 82318 } 82319 case "Version": 82320 if r.TryDecodeAsNil() { 82321 x.Version = 0 82322 } else { 82323 x.Version = (uint64)(r.DecodeUint64()) 82324 } 82325 case "SubmitTime": 82326 if r.TryDecodeAsNil() { 82327 x.SubmitTime = 0 82328 } else { 82329 x.SubmitTime = (int64)(r.DecodeInt64()) 82330 } 82331 case "CreateIndex": 82332 if r.TryDecodeAsNil() { 82333 x.CreateIndex = 0 82334 } else { 82335 x.CreateIndex = (uint64)(r.DecodeUint64()) 82336 } 82337 case "ModifyIndex": 82338 if r.TryDecodeAsNil() { 82339 x.ModifyIndex = 0 82340 } else { 82341 x.ModifyIndex = (uint64)(r.DecodeUint64()) 82342 } 82343 case "JobModifyIndex": 82344 if r.TryDecodeAsNil() { 82345 x.JobModifyIndex = 0 82346 } else { 82347 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 82348 } 82349 default: 82350 z.DecStructFieldNotFound(-1, yys3) 82351 } // end switch yys3 82352 } // end for yyj3 82353 r.ReadMapEnd() 82354 } 82355 82356 func (x *Job) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 82357 var h codecSelfer100 82358 z, r := codec1978.GenHelperDecoder(d) 82359 _, _, _ = h, z, r 82360 var yyj41 int 82361 var yyb41 bool 82362 var yyhl41 bool = l >= 0 82363 yyj41++ 82364 if yyhl41 { 82365 yyb41 = yyj41 > l 82366 } else { 82367 yyb41 = r.CheckBreak() 82368 } 82369 if yyb41 { 82370 r.ReadArrayEnd() 82371 return 82372 } 82373 r.ReadArrayElem() 82374 if r.TryDecodeAsNil() { 82375 x.Stop = false 82376 } else { 82377 x.Stop = (bool)(r.DecodeBool()) 82378 } 82379 yyj41++ 82380 if yyhl41 { 82381 yyb41 = yyj41 > l 82382 } else { 82383 yyb41 = r.CheckBreak() 82384 } 82385 if yyb41 { 82386 r.ReadArrayEnd() 82387 return 82388 } 82389 r.ReadArrayElem() 82390 if r.TryDecodeAsNil() { 82391 x.Region = "" 82392 } else { 82393 x.Region = (string)(r.DecodeString()) 82394 } 82395 yyj41++ 82396 if yyhl41 { 82397 yyb41 = yyj41 > l 82398 } else { 82399 yyb41 = r.CheckBreak() 82400 } 82401 if yyb41 { 82402 r.ReadArrayEnd() 82403 return 82404 } 82405 r.ReadArrayElem() 82406 if r.TryDecodeAsNil() { 82407 x.Namespace = "" 82408 } else { 82409 x.Namespace = (string)(r.DecodeString()) 82410 } 82411 yyj41++ 82412 if yyhl41 { 82413 yyb41 = yyj41 > l 82414 } else { 82415 yyb41 = r.CheckBreak() 82416 } 82417 if yyb41 { 82418 r.ReadArrayEnd() 82419 return 82420 } 82421 r.ReadArrayElem() 82422 if r.TryDecodeAsNil() { 82423 x.ID = "" 82424 } else { 82425 x.ID = (string)(r.DecodeString()) 82426 } 82427 yyj41++ 82428 if yyhl41 { 82429 yyb41 = yyj41 > l 82430 } else { 82431 yyb41 = r.CheckBreak() 82432 } 82433 if yyb41 { 82434 r.ReadArrayEnd() 82435 return 82436 } 82437 r.ReadArrayElem() 82438 if r.TryDecodeAsNil() { 82439 x.ParentID = "" 82440 } else { 82441 x.ParentID = (string)(r.DecodeString()) 82442 } 82443 yyj41++ 82444 if yyhl41 { 82445 yyb41 = yyj41 > l 82446 } else { 82447 yyb41 = r.CheckBreak() 82448 } 82449 if yyb41 { 82450 r.ReadArrayEnd() 82451 return 82452 } 82453 r.ReadArrayElem() 82454 if r.TryDecodeAsNil() { 82455 x.Name = "" 82456 } else { 82457 x.Name = (string)(r.DecodeString()) 82458 } 82459 yyj41++ 82460 if yyhl41 { 82461 yyb41 = yyj41 > l 82462 } else { 82463 yyb41 = r.CheckBreak() 82464 } 82465 if yyb41 { 82466 r.ReadArrayEnd() 82467 return 82468 } 82469 r.ReadArrayElem() 82470 if r.TryDecodeAsNil() { 82471 x.Type = "" 82472 } else { 82473 x.Type = (string)(r.DecodeString()) 82474 } 82475 yyj41++ 82476 if yyhl41 { 82477 yyb41 = yyj41 > l 82478 } else { 82479 yyb41 = r.CheckBreak() 82480 } 82481 if yyb41 { 82482 r.ReadArrayEnd() 82483 return 82484 } 82485 r.ReadArrayElem() 82486 if r.TryDecodeAsNil() { 82487 x.Priority = 0 82488 } else { 82489 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 82490 } 82491 yyj41++ 82492 if yyhl41 { 82493 yyb41 = yyj41 > l 82494 } else { 82495 yyb41 = r.CheckBreak() 82496 } 82497 if yyb41 { 82498 r.ReadArrayEnd() 82499 return 82500 } 82501 r.ReadArrayElem() 82502 if r.TryDecodeAsNil() { 82503 x.AllAtOnce = false 82504 } else { 82505 x.AllAtOnce = (bool)(r.DecodeBool()) 82506 } 82507 yyj41++ 82508 if yyhl41 { 82509 yyb41 = yyj41 > l 82510 } else { 82511 yyb41 = r.CheckBreak() 82512 } 82513 if yyb41 { 82514 r.ReadArrayEnd() 82515 return 82516 } 82517 r.ReadArrayElem() 82518 if r.TryDecodeAsNil() { 82519 x.Datacenters = nil 82520 } else { 82521 if false { 82522 } else { 82523 z.F.DecSliceStringX(&x.Datacenters, d) 82524 } 82525 } 82526 yyj41++ 82527 if yyhl41 { 82528 yyb41 = yyj41 > l 82529 } else { 82530 yyb41 = r.CheckBreak() 82531 } 82532 if yyb41 { 82533 r.ReadArrayEnd() 82534 return 82535 } 82536 r.ReadArrayElem() 82537 if r.TryDecodeAsNil() { 82538 x.Constraints = nil 82539 } else { 82540 if false { 82541 } else { 82542 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 82543 } 82544 } 82545 yyj41++ 82546 if yyhl41 { 82547 yyb41 = yyj41 > l 82548 } else { 82549 yyb41 = r.CheckBreak() 82550 } 82551 if yyb41 { 82552 r.ReadArrayEnd() 82553 return 82554 } 82555 r.ReadArrayElem() 82556 if r.TryDecodeAsNil() { 82557 x.Affinities = nil 82558 } else { 82559 if false { 82560 } else { 82561 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 82562 } 82563 } 82564 yyj41++ 82565 if yyhl41 { 82566 yyb41 = yyj41 > l 82567 } else { 82568 yyb41 = r.CheckBreak() 82569 } 82570 if yyb41 { 82571 r.ReadArrayEnd() 82572 return 82573 } 82574 r.ReadArrayElem() 82575 if r.TryDecodeAsNil() { 82576 x.Spreads = nil 82577 } else { 82578 if false { 82579 } else { 82580 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 82581 } 82582 } 82583 yyj41++ 82584 if yyhl41 { 82585 yyb41 = yyj41 > l 82586 } else { 82587 yyb41 = r.CheckBreak() 82588 } 82589 if yyb41 { 82590 r.ReadArrayEnd() 82591 return 82592 } 82593 r.ReadArrayElem() 82594 if r.TryDecodeAsNil() { 82595 x.TaskGroups = nil 82596 } else { 82597 if false { 82598 } else { 82599 h.decSlicePtrtoTaskGroup((*[]*TaskGroup)(&x.TaskGroups), d) 82600 } 82601 } 82602 yyj41++ 82603 if yyhl41 { 82604 yyb41 = yyj41 > l 82605 } else { 82606 yyb41 = r.CheckBreak() 82607 } 82608 if yyb41 { 82609 r.ReadArrayEnd() 82610 return 82611 } 82612 r.ReadArrayElem() 82613 if r.TryDecodeAsNil() { 82614 x.Update = UpdateStrategy{} 82615 } else { 82616 x.Update.CodecDecodeSelf(d) 82617 } 82618 yyj41++ 82619 if yyhl41 { 82620 yyb41 = yyj41 > l 82621 } else { 82622 yyb41 = r.CheckBreak() 82623 } 82624 if yyb41 { 82625 r.ReadArrayEnd() 82626 return 82627 } 82628 r.ReadArrayElem() 82629 if r.TryDecodeAsNil() { 82630 if true && x.Periodic != nil { 82631 x.Periodic = nil 82632 } 82633 } else { 82634 if x.Periodic == nil { 82635 x.Periodic = new(PeriodicConfig) 82636 } 82637 82638 x.Periodic.CodecDecodeSelf(d) 82639 } 82640 yyj41++ 82641 if yyhl41 { 82642 yyb41 = yyj41 > l 82643 } else { 82644 yyb41 = r.CheckBreak() 82645 } 82646 if yyb41 { 82647 r.ReadArrayEnd() 82648 return 82649 } 82650 r.ReadArrayElem() 82651 if r.TryDecodeAsNil() { 82652 if true && x.ParameterizedJob != nil { 82653 x.ParameterizedJob = nil 82654 } 82655 } else { 82656 if x.ParameterizedJob == nil { 82657 x.ParameterizedJob = new(ParameterizedJobConfig) 82658 } 82659 82660 x.ParameterizedJob.CodecDecodeSelf(d) 82661 } 82662 yyj41++ 82663 if yyhl41 { 82664 yyb41 = yyj41 > l 82665 } else { 82666 yyb41 = r.CheckBreak() 82667 } 82668 if yyb41 { 82669 r.ReadArrayEnd() 82670 return 82671 } 82672 r.ReadArrayElem() 82673 if r.TryDecodeAsNil() { 82674 x.Dispatched = false 82675 } else { 82676 x.Dispatched = (bool)(r.DecodeBool()) 82677 } 82678 yyj41++ 82679 if yyhl41 { 82680 yyb41 = yyj41 > l 82681 } else { 82682 yyb41 = r.CheckBreak() 82683 } 82684 if yyb41 { 82685 r.ReadArrayEnd() 82686 return 82687 } 82688 r.ReadArrayElem() 82689 if r.TryDecodeAsNil() { 82690 x.Payload = nil 82691 } else { 82692 if false { 82693 } else { 82694 x.Payload = r.DecodeBytes(([]byte)(x.Payload), false) 82695 } 82696 } 82697 yyj41++ 82698 if yyhl41 { 82699 yyb41 = yyj41 > l 82700 } else { 82701 yyb41 = r.CheckBreak() 82702 } 82703 if yyb41 { 82704 r.ReadArrayEnd() 82705 return 82706 } 82707 r.ReadArrayElem() 82708 if r.TryDecodeAsNil() { 82709 x.Meta = nil 82710 } else { 82711 if false { 82712 } else { 82713 z.F.DecMapStringStringX(&x.Meta, d) 82714 } 82715 } 82716 yyj41++ 82717 if yyhl41 { 82718 yyb41 = yyj41 > l 82719 } else { 82720 yyb41 = r.CheckBreak() 82721 } 82722 if yyb41 { 82723 r.ReadArrayEnd() 82724 return 82725 } 82726 r.ReadArrayElem() 82727 if r.TryDecodeAsNil() { 82728 x.ConsulToken = "" 82729 } else { 82730 x.ConsulToken = (string)(r.DecodeString()) 82731 } 82732 yyj41++ 82733 if yyhl41 { 82734 yyb41 = yyj41 > l 82735 } else { 82736 yyb41 = r.CheckBreak() 82737 } 82738 if yyb41 { 82739 r.ReadArrayEnd() 82740 return 82741 } 82742 r.ReadArrayElem() 82743 if r.TryDecodeAsNil() { 82744 x.VaultToken = "" 82745 } else { 82746 x.VaultToken = (string)(r.DecodeString()) 82747 } 82748 yyj41++ 82749 if yyhl41 { 82750 yyb41 = yyj41 > l 82751 } else { 82752 yyb41 = r.CheckBreak() 82753 } 82754 if yyb41 { 82755 r.ReadArrayEnd() 82756 return 82757 } 82758 r.ReadArrayElem() 82759 if r.TryDecodeAsNil() { 82760 x.Status = "" 82761 } else { 82762 x.Status = (string)(r.DecodeString()) 82763 } 82764 yyj41++ 82765 if yyhl41 { 82766 yyb41 = yyj41 > l 82767 } else { 82768 yyb41 = r.CheckBreak() 82769 } 82770 if yyb41 { 82771 r.ReadArrayEnd() 82772 return 82773 } 82774 r.ReadArrayElem() 82775 if r.TryDecodeAsNil() { 82776 x.StatusDescription = "" 82777 } else { 82778 x.StatusDescription = (string)(r.DecodeString()) 82779 } 82780 yyj41++ 82781 if yyhl41 { 82782 yyb41 = yyj41 > l 82783 } else { 82784 yyb41 = r.CheckBreak() 82785 } 82786 if yyb41 { 82787 r.ReadArrayEnd() 82788 return 82789 } 82790 r.ReadArrayElem() 82791 if r.TryDecodeAsNil() { 82792 x.Stable = false 82793 } else { 82794 x.Stable = (bool)(r.DecodeBool()) 82795 } 82796 yyj41++ 82797 if yyhl41 { 82798 yyb41 = yyj41 > l 82799 } else { 82800 yyb41 = r.CheckBreak() 82801 } 82802 if yyb41 { 82803 r.ReadArrayEnd() 82804 return 82805 } 82806 r.ReadArrayElem() 82807 if r.TryDecodeAsNil() { 82808 x.Version = 0 82809 } else { 82810 x.Version = (uint64)(r.DecodeUint64()) 82811 } 82812 yyj41++ 82813 if yyhl41 { 82814 yyb41 = yyj41 > l 82815 } else { 82816 yyb41 = r.CheckBreak() 82817 } 82818 if yyb41 { 82819 r.ReadArrayEnd() 82820 return 82821 } 82822 r.ReadArrayElem() 82823 if r.TryDecodeAsNil() { 82824 x.SubmitTime = 0 82825 } else { 82826 x.SubmitTime = (int64)(r.DecodeInt64()) 82827 } 82828 yyj41++ 82829 if yyhl41 { 82830 yyb41 = yyj41 > l 82831 } else { 82832 yyb41 = r.CheckBreak() 82833 } 82834 if yyb41 { 82835 r.ReadArrayEnd() 82836 return 82837 } 82838 r.ReadArrayElem() 82839 if r.TryDecodeAsNil() { 82840 x.CreateIndex = 0 82841 } else { 82842 x.CreateIndex = (uint64)(r.DecodeUint64()) 82843 } 82844 yyj41++ 82845 if yyhl41 { 82846 yyb41 = yyj41 > l 82847 } else { 82848 yyb41 = r.CheckBreak() 82849 } 82850 if yyb41 { 82851 r.ReadArrayEnd() 82852 return 82853 } 82854 r.ReadArrayElem() 82855 if r.TryDecodeAsNil() { 82856 x.ModifyIndex = 0 82857 } else { 82858 x.ModifyIndex = (uint64)(r.DecodeUint64()) 82859 } 82860 yyj41++ 82861 if yyhl41 { 82862 yyb41 = yyj41 > l 82863 } else { 82864 yyb41 = r.CheckBreak() 82865 } 82866 if yyb41 { 82867 r.ReadArrayEnd() 82868 return 82869 } 82870 r.ReadArrayElem() 82871 if r.TryDecodeAsNil() { 82872 x.JobModifyIndex = 0 82873 } else { 82874 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 82875 } 82876 for { 82877 yyj41++ 82878 if yyhl41 { 82879 yyb41 = yyj41 > l 82880 } else { 82881 yyb41 = r.CheckBreak() 82882 } 82883 if yyb41 { 82884 break 82885 } 82886 r.ReadArrayElem() 82887 z.DecStructFieldNotFound(yyj41-1, "") 82888 } 82889 r.ReadArrayEnd() 82890 } 82891 82892 func (x *JobListStub) CodecEncodeSelf(e *codec1978.Encoder) { 82893 var h codecSelfer100 82894 z, r := codec1978.GenHelperEncoder(e) 82895 _, _, _ = h, z, r 82896 if x == nil { 82897 r.EncodeNil() 82898 } else { 82899 if false { 82900 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 82901 z.EncExtension(x, yyxt1) 82902 } else { 82903 yysep2 := !z.EncBinary() 82904 yy2arr2 := z.EncBasicHandle().StructToArray 82905 _, _ = yysep2, yy2arr2 82906 const yyr2 bool = false // struct tag has 'toArray' 82907 if yyr2 || yy2arr2 { 82908 r.WriteArrayStart(16) 82909 } else { 82910 r.WriteMapStart(16) 82911 } 82912 if yyr2 || yy2arr2 { 82913 r.WriteArrayElem() 82914 if false { 82915 } else { 82916 if z.EncBasicHandle().StringToRaw { 82917 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 82918 } else { 82919 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 82920 } 82921 } 82922 } else { 82923 r.WriteMapElemKey() 82924 if z.IsJSONHandle() { 82925 z.WriteStr("\"ID\"") 82926 } else { 82927 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 82928 } 82929 r.WriteMapElemValue() 82930 if false { 82931 } else { 82932 if z.EncBasicHandle().StringToRaw { 82933 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 82934 } else { 82935 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 82936 } 82937 } 82938 } 82939 if yyr2 || yy2arr2 { 82940 r.WriteArrayElem() 82941 if false { 82942 } else { 82943 if z.EncBasicHandle().StringToRaw { 82944 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 82945 } else { 82946 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 82947 } 82948 } 82949 } else { 82950 r.WriteMapElemKey() 82951 if z.IsJSONHandle() { 82952 z.WriteStr("\"ParentID\"") 82953 } else { 82954 r.EncodeStringEnc(codecSelferCcUTF8100, `ParentID`) 82955 } 82956 r.WriteMapElemValue() 82957 if false { 82958 } else { 82959 if z.EncBasicHandle().StringToRaw { 82960 r.EncodeStringBytesRaw(z.BytesView(string(x.ParentID))) 82961 } else { 82962 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ParentID)) 82963 } 82964 } 82965 } 82966 if yyr2 || yy2arr2 { 82967 r.WriteArrayElem() 82968 if false { 82969 } else { 82970 if z.EncBasicHandle().StringToRaw { 82971 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 82972 } else { 82973 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 82974 } 82975 } 82976 } else { 82977 r.WriteMapElemKey() 82978 if z.IsJSONHandle() { 82979 z.WriteStr("\"Name\"") 82980 } else { 82981 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 82982 } 82983 r.WriteMapElemValue() 82984 if false { 82985 } else { 82986 if z.EncBasicHandle().StringToRaw { 82987 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 82988 } else { 82989 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 82990 } 82991 } 82992 } 82993 if yyr2 || yy2arr2 { 82994 r.WriteArrayElem() 82995 if x.Datacenters == nil { 82996 r.EncodeNil() 82997 } else { 82998 if false { 82999 } else { 83000 z.F.EncSliceStringV(x.Datacenters, e) 83001 } 83002 } 83003 } else { 83004 r.WriteMapElemKey() 83005 if z.IsJSONHandle() { 83006 z.WriteStr("\"Datacenters\"") 83007 } else { 83008 r.EncodeStringEnc(codecSelferCcUTF8100, `Datacenters`) 83009 } 83010 r.WriteMapElemValue() 83011 if x.Datacenters == nil { 83012 r.EncodeNil() 83013 } else { 83014 if false { 83015 } else { 83016 z.F.EncSliceStringV(x.Datacenters, e) 83017 } 83018 } 83019 } 83020 if yyr2 || yy2arr2 { 83021 r.WriteArrayElem() 83022 if false { 83023 } else { 83024 if z.EncBasicHandle().StringToRaw { 83025 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 83026 } else { 83027 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 83028 } 83029 } 83030 } else { 83031 r.WriteMapElemKey() 83032 if z.IsJSONHandle() { 83033 z.WriteStr("\"Type\"") 83034 } else { 83035 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 83036 } 83037 r.WriteMapElemValue() 83038 if false { 83039 } else { 83040 if z.EncBasicHandle().StringToRaw { 83041 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 83042 } else { 83043 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 83044 } 83045 } 83046 } 83047 if yyr2 || yy2arr2 { 83048 r.WriteArrayElem() 83049 if false { 83050 } else { 83051 r.EncodeInt(int64(x.Priority)) 83052 } 83053 } else { 83054 r.WriteMapElemKey() 83055 if z.IsJSONHandle() { 83056 z.WriteStr("\"Priority\"") 83057 } else { 83058 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 83059 } 83060 r.WriteMapElemValue() 83061 if false { 83062 } else { 83063 r.EncodeInt(int64(x.Priority)) 83064 } 83065 } 83066 if yyr2 || yy2arr2 { 83067 r.WriteArrayElem() 83068 if false { 83069 } else { 83070 r.EncodeBool(bool(x.Periodic)) 83071 } 83072 } else { 83073 r.WriteMapElemKey() 83074 if z.IsJSONHandle() { 83075 z.WriteStr("\"Periodic\"") 83076 } else { 83077 r.EncodeStringEnc(codecSelferCcUTF8100, `Periodic`) 83078 } 83079 r.WriteMapElemValue() 83080 if false { 83081 } else { 83082 r.EncodeBool(bool(x.Periodic)) 83083 } 83084 } 83085 if yyr2 || yy2arr2 { 83086 r.WriteArrayElem() 83087 if false { 83088 } else { 83089 r.EncodeBool(bool(x.ParameterizedJob)) 83090 } 83091 } else { 83092 r.WriteMapElemKey() 83093 if z.IsJSONHandle() { 83094 z.WriteStr("\"ParameterizedJob\"") 83095 } else { 83096 r.EncodeStringEnc(codecSelferCcUTF8100, `ParameterizedJob`) 83097 } 83098 r.WriteMapElemValue() 83099 if false { 83100 } else { 83101 r.EncodeBool(bool(x.ParameterizedJob)) 83102 } 83103 } 83104 if yyr2 || yy2arr2 { 83105 r.WriteArrayElem() 83106 if false { 83107 } else { 83108 r.EncodeBool(bool(x.Stop)) 83109 } 83110 } else { 83111 r.WriteMapElemKey() 83112 if z.IsJSONHandle() { 83113 z.WriteStr("\"Stop\"") 83114 } else { 83115 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 83116 } 83117 r.WriteMapElemValue() 83118 if false { 83119 } else { 83120 r.EncodeBool(bool(x.Stop)) 83121 } 83122 } 83123 if yyr2 || yy2arr2 { 83124 r.WriteArrayElem() 83125 if false { 83126 } else { 83127 if z.EncBasicHandle().StringToRaw { 83128 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 83129 } else { 83130 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 83131 } 83132 } 83133 } else { 83134 r.WriteMapElemKey() 83135 if z.IsJSONHandle() { 83136 z.WriteStr("\"Status\"") 83137 } else { 83138 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 83139 } 83140 r.WriteMapElemValue() 83141 if false { 83142 } else { 83143 if z.EncBasicHandle().StringToRaw { 83144 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 83145 } else { 83146 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 83147 } 83148 } 83149 } 83150 if yyr2 || yy2arr2 { 83151 r.WriteArrayElem() 83152 if false { 83153 } else { 83154 if z.EncBasicHandle().StringToRaw { 83155 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 83156 } else { 83157 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 83158 } 83159 } 83160 } else { 83161 r.WriteMapElemKey() 83162 if z.IsJSONHandle() { 83163 z.WriteStr("\"StatusDescription\"") 83164 } else { 83165 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 83166 } 83167 r.WriteMapElemValue() 83168 if false { 83169 } else { 83170 if z.EncBasicHandle().StringToRaw { 83171 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 83172 } else { 83173 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 83174 } 83175 } 83176 } 83177 var yyn36 bool 83178 if x.JobSummary == nil { 83179 yyn36 = true 83180 goto LABEL36 83181 } 83182 LABEL36: 83183 if yyr2 || yy2arr2 { 83184 if yyn36 { 83185 r.WriteArrayElem() 83186 r.EncodeNil() 83187 } else { 83188 r.WriteArrayElem() 83189 if x.JobSummary == nil { 83190 r.EncodeNil() 83191 } else { 83192 x.JobSummary.CodecEncodeSelf(e) 83193 } 83194 } 83195 } else { 83196 r.WriteMapElemKey() 83197 if z.IsJSONHandle() { 83198 z.WriteStr("\"JobSummary\"") 83199 } else { 83200 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSummary`) 83201 } 83202 r.WriteMapElemValue() 83203 if yyn36 { 83204 r.EncodeNil() 83205 } else { 83206 if x.JobSummary == nil { 83207 r.EncodeNil() 83208 } else { 83209 x.JobSummary.CodecEncodeSelf(e) 83210 } 83211 } 83212 } 83213 if yyr2 || yy2arr2 { 83214 r.WriteArrayElem() 83215 if false { 83216 } else { 83217 r.EncodeUint(uint64(x.CreateIndex)) 83218 } 83219 } else { 83220 r.WriteMapElemKey() 83221 if z.IsJSONHandle() { 83222 z.WriteStr("\"CreateIndex\"") 83223 } else { 83224 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 83225 } 83226 r.WriteMapElemValue() 83227 if false { 83228 } else { 83229 r.EncodeUint(uint64(x.CreateIndex)) 83230 } 83231 } 83232 if yyr2 || yy2arr2 { 83233 r.WriteArrayElem() 83234 if false { 83235 } else { 83236 r.EncodeUint(uint64(x.ModifyIndex)) 83237 } 83238 } else { 83239 r.WriteMapElemKey() 83240 if z.IsJSONHandle() { 83241 z.WriteStr("\"ModifyIndex\"") 83242 } else { 83243 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 83244 } 83245 r.WriteMapElemValue() 83246 if false { 83247 } else { 83248 r.EncodeUint(uint64(x.ModifyIndex)) 83249 } 83250 } 83251 if yyr2 || yy2arr2 { 83252 r.WriteArrayElem() 83253 if false { 83254 } else { 83255 r.EncodeUint(uint64(x.JobModifyIndex)) 83256 } 83257 } else { 83258 r.WriteMapElemKey() 83259 if z.IsJSONHandle() { 83260 z.WriteStr("\"JobModifyIndex\"") 83261 } else { 83262 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 83263 } 83264 r.WriteMapElemValue() 83265 if false { 83266 } else { 83267 r.EncodeUint(uint64(x.JobModifyIndex)) 83268 } 83269 } 83270 if yyr2 || yy2arr2 { 83271 r.WriteArrayElem() 83272 if false { 83273 } else { 83274 r.EncodeInt(int64(x.SubmitTime)) 83275 } 83276 } else { 83277 r.WriteMapElemKey() 83278 if z.IsJSONHandle() { 83279 z.WriteStr("\"SubmitTime\"") 83280 } else { 83281 r.EncodeStringEnc(codecSelferCcUTF8100, `SubmitTime`) 83282 } 83283 r.WriteMapElemValue() 83284 if false { 83285 } else { 83286 r.EncodeInt(int64(x.SubmitTime)) 83287 } 83288 } 83289 if yyr2 || yy2arr2 { 83290 r.WriteArrayEnd() 83291 } else { 83292 r.WriteMapEnd() 83293 } 83294 } 83295 } 83296 } 83297 83298 func (x *JobListStub) CodecDecodeSelf(d *codec1978.Decoder) { 83299 var h codecSelfer100 83300 z, r := codec1978.GenHelperDecoder(d) 83301 _, _, _ = h, z, r 83302 if false { 83303 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83304 z.DecExtension(x, yyxt1) 83305 } else { 83306 yyct2 := r.ContainerType() 83307 if yyct2 == codecSelferValueTypeMap100 { 83308 yyl2 := r.ReadMapStart() 83309 if yyl2 == 0 { 83310 r.ReadMapEnd() 83311 } else { 83312 x.codecDecodeSelfFromMap(yyl2, d) 83313 } 83314 } else if yyct2 == codecSelferValueTypeArray100 { 83315 yyl2 := r.ReadArrayStart() 83316 if yyl2 == 0 { 83317 r.ReadArrayEnd() 83318 } else { 83319 x.codecDecodeSelfFromArray(yyl2, d) 83320 } 83321 } else { 83322 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 83323 } 83324 } 83325 } 83326 83327 func (x *JobListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 83328 var h codecSelfer100 83329 z, r := codec1978.GenHelperDecoder(d) 83330 _, _, _ = h, z, r 83331 var yyhl3 bool = l >= 0 83332 for yyj3 := 0; ; yyj3++ { 83333 if yyhl3 { 83334 if yyj3 >= l { 83335 break 83336 } 83337 } else { 83338 if r.CheckBreak() { 83339 break 83340 } 83341 } 83342 r.ReadMapElemKey() 83343 yys3 := z.StringView(r.DecodeStringAsBytes()) 83344 r.ReadMapElemValue() 83345 switch yys3 { 83346 case "ID": 83347 if r.TryDecodeAsNil() { 83348 x.ID = "" 83349 } else { 83350 x.ID = (string)(r.DecodeString()) 83351 } 83352 case "ParentID": 83353 if r.TryDecodeAsNil() { 83354 x.ParentID = "" 83355 } else { 83356 x.ParentID = (string)(r.DecodeString()) 83357 } 83358 case "Name": 83359 if r.TryDecodeAsNil() { 83360 x.Name = "" 83361 } else { 83362 x.Name = (string)(r.DecodeString()) 83363 } 83364 case "Datacenters": 83365 if r.TryDecodeAsNil() { 83366 x.Datacenters = nil 83367 } else { 83368 if false { 83369 } else { 83370 z.F.DecSliceStringX(&x.Datacenters, d) 83371 } 83372 } 83373 case "Type": 83374 if r.TryDecodeAsNil() { 83375 x.Type = "" 83376 } else { 83377 x.Type = (string)(r.DecodeString()) 83378 } 83379 case "Priority": 83380 if r.TryDecodeAsNil() { 83381 x.Priority = 0 83382 } else { 83383 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83384 } 83385 case "Periodic": 83386 if r.TryDecodeAsNil() { 83387 x.Periodic = false 83388 } else { 83389 x.Periodic = (bool)(r.DecodeBool()) 83390 } 83391 case "ParameterizedJob": 83392 if r.TryDecodeAsNil() { 83393 x.ParameterizedJob = false 83394 } else { 83395 x.ParameterizedJob = (bool)(r.DecodeBool()) 83396 } 83397 case "Stop": 83398 if r.TryDecodeAsNil() { 83399 x.Stop = false 83400 } else { 83401 x.Stop = (bool)(r.DecodeBool()) 83402 } 83403 case "Status": 83404 if r.TryDecodeAsNil() { 83405 x.Status = "" 83406 } else { 83407 x.Status = (string)(r.DecodeString()) 83408 } 83409 case "StatusDescription": 83410 if r.TryDecodeAsNil() { 83411 x.StatusDescription = "" 83412 } else { 83413 x.StatusDescription = (string)(r.DecodeString()) 83414 } 83415 case "JobSummary": 83416 if r.TryDecodeAsNil() { 83417 if true && x.JobSummary != nil { 83418 x.JobSummary = nil 83419 } 83420 } else { 83421 if x.JobSummary == nil { 83422 x.JobSummary = new(JobSummary) 83423 } 83424 83425 x.JobSummary.CodecDecodeSelf(d) 83426 } 83427 case "CreateIndex": 83428 if r.TryDecodeAsNil() { 83429 x.CreateIndex = 0 83430 } else { 83431 x.CreateIndex = (uint64)(r.DecodeUint64()) 83432 } 83433 case "ModifyIndex": 83434 if r.TryDecodeAsNil() { 83435 x.ModifyIndex = 0 83436 } else { 83437 x.ModifyIndex = (uint64)(r.DecodeUint64()) 83438 } 83439 case "JobModifyIndex": 83440 if r.TryDecodeAsNil() { 83441 x.JobModifyIndex = 0 83442 } else { 83443 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 83444 } 83445 case "SubmitTime": 83446 if r.TryDecodeAsNil() { 83447 x.SubmitTime = 0 83448 } else { 83449 x.SubmitTime = (int64)(r.DecodeInt64()) 83450 } 83451 default: 83452 z.DecStructFieldNotFound(-1, yys3) 83453 } // end switch yys3 83454 } // end for yyj3 83455 r.ReadMapEnd() 83456 } 83457 83458 func (x *JobListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 83459 var h codecSelfer100 83460 z, r := codec1978.GenHelperDecoder(d) 83461 _, _, _ = h, z, r 83462 var yyj21 int 83463 var yyb21 bool 83464 var yyhl21 bool = l >= 0 83465 yyj21++ 83466 if yyhl21 { 83467 yyb21 = yyj21 > l 83468 } else { 83469 yyb21 = r.CheckBreak() 83470 } 83471 if yyb21 { 83472 r.ReadArrayEnd() 83473 return 83474 } 83475 r.ReadArrayElem() 83476 if r.TryDecodeAsNil() { 83477 x.ID = "" 83478 } else { 83479 x.ID = (string)(r.DecodeString()) 83480 } 83481 yyj21++ 83482 if yyhl21 { 83483 yyb21 = yyj21 > l 83484 } else { 83485 yyb21 = r.CheckBreak() 83486 } 83487 if yyb21 { 83488 r.ReadArrayEnd() 83489 return 83490 } 83491 r.ReadArrayElem() 83492 if r.TryDecodeAsNil() { 83493 x.ParentID = "" 83494 } else { 83495 x.ParentID = (string)(r.DecodeString()) 83496 } 83497 yyj21++ 83498 if yyhl21 { 83499 yyb21 = yyj21 > l 83500 } else { 83501 yyb21 = r.CheckBreak() 83502 } 83503 if yyb21 { 83504 r.ReadArrayEnd() 83505 return 83506 } 83507 r.ReadArrayElem() 83508 if r.TryDecodeAsNil() { 83509 x.Name = "" 83510 } else { 83511 x.Name = (string)(r.DecodeString()) 83512 } 83513 yyj21++ 83514 if yyhl21 { 83515 yyb21 = yyj21 > l 83516 } else { 83517 yyb21 = r.CheckBreak() 83518 } 83519 if yyb21 { 83520 r.ReadArrayEnd() 83521 return 83522 } 83523 r.ReadArrayElem() 83524 if r.TryDecodeAsNil() { 83525 x.Datacenters = nil 83526 } else { 83527 if false { 83528 } else { 83529 z.F.DecSliceStringX(&x.Datacenters, d) 83530 } 83531 } 83532 yyj21++ 83533 if yyhl21 { 83534 yyb21 = yyj21 > l 83535 } else { 83536 yyb21 = r.CheckBreak() 83537 } 83538 if yyb21 { 83539 r.ReadArrayEnd() 83540 return 83541 } 83542 r.ReadArrayElem() 83543 if r.TryDecodeAsNil() { 83544 x.Type = "" 83545 } else { 83546 x.Type = (string)(r.DecodeString()) 83547 } 83548 yyj21++ 83549 if yyhl21 { 83550 yyb21 = yyj21 > l 83551 } else { 83552 yyb21 = r.CheckBreak() 83553 } 83554 if yyb21 { 83555 r.ReadArrayEnd() 83556 return 83557 } 83558 r.ReadArrayElem() 83559 if r.TryDecodeAsNil() { 83560 x.Priority = 0 83561 } else { 83562 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 83563 } 83564 yyj21++ 83565 if yyhl21 { 83566 yyb21 = yyj21 > l 83567 } else { 83568 yyb21 = r.CheckBreak() 83569 } 83570 if yyb21 { 83571 r.ReadArrayEnd() 83572 return 83573 } 83574 r.ReadArrayElem() 83575 if r.TryDecodeAsNil() { 83576 x.Periodic = false 83577 } else { 83578 x.Periodic = (bool)(r.DecodeBool()) 83579 } 83580 yyj21++ 83581 if yyhl21 { 83582 yyb21 = yyj21 > l 83583 } else { 83584 yyb21 = r.CheckBreak() 83585 } 83586 if yyb21 { 83587 r.ReadArrayEnd() 83588 return 83589 } 83590 r.ReadArrayElem() 83591 if r.TryDecodeAsNil() { 83592 x.ParameterizedJob = false 83593 } else { 83594 x.ParameterizedJob = (bool)(r.DecodeBool()) 83595 } 83596 yyj21++ 83597 if yyhl21 { 83598 yyb21 = yyj21 > l 83599 } else { 83600 yyb21 = r.CheckBreak() 83601 } 83602 if yyb21 { 83603 r.ReadArrayEnd() 83604 return 83605 } 83606 r.ReadArrayElem() 83607 if r.TryDecodeAsNil() { 83608 x.Stop = false 83609 } else { 83610 x.Stop = (bool)(r.DecodeBool()) 83611 } 83612 yyj21++ 83613 if yyhl21 { 83614 yyb21 = yyj21 > l 83615 } else { 83616 yyb21 = r.CheckBreak() 83617 } 83618 if yyb21 { 83619 r.ReadArrayEnd() 83620 return 83621 } 83622 r.ReadArrayElem() 83623 if r.TryDecodeAsNil() { 83624 x.Status = "" 83625 } else { 83626 x.Status = (string)(r.DecodeString()) 83627 } 83628 yyj21++ 83629 if yyhl21 { 83630 yyb21 = yyj21 > l 83631 } else { 83632 yyb21 = r.CheckBreak() 83633 } 83634 if yyb21 { 83635 r.ReadArrayEnd() 83636 return 83637 } 83638 r.ReadArrayElem() 83639 if r.TryDecodeAsNil() { 83640 x.StatusDescription = "" 83641 } else { 83642 x.StatusDescription = (string)(r.DecodeString()) 83643 } 83644 yyj21++ 83645 if yyhl21 { 83646 yyb21 = yyj21 > l 83647 } else { 83648 yyb21 = r.CheckBreak() 83649 } 83650 if yyb21 { 83651 r.ReadArrayEnd() 83652 return 83653 } 83654 r.ReadArrayElem() 83655 if r.TryDecodeAsNil() { 83656 if true && x.JobSummary != nil { 83657 x.JobSummary = nil 83658 } 83659 } else { 83660 if x.JobSummary == nil { 83661 x.JobSummary = new(JobSummary) 83662 } 83663 83664 x.JobSummary.CodecDecodeSelf(d) 83665 } 83666 yyj21++ 83667 if yyhl21 { 83668 yyb21 = yyj21 > l 83669 } else { 83670 yyb21 = r.CheckBreak() 83671 } 83672 if yyb21 { 83673 r.ReadArrayEnd() 83674 return 83675 } 83676 r.ReadArrayElem() 83677 if r.TryDecodeAsNil() { 83678 x.CreateIndex = 0 83679 } else { 83680 x.CreateIndex = (uint64)(r.DecodeUint64()) 83681 } 83682 yyj21++ 83683 if yyhl21 { 83684 yyb21 = yyj21 > l 83685 } else { 83686 yyb21 = r.CheckBreak() 83687 } 83688 if yyb21 { 83689 r.ReadArrayEnd() 83690 return 83691 } 83692 r.ReadArrayElem() 83693 if r.TryDecodeAsNil() { 83694 x.ModifyIndex = 0 83695 } else { 83696 x.ModifyIndex = (uint64)(r.DecodeUint64()) 83697 } 83698 yyj21++ 83699 if yyhl21 { 83700 yyb21 = yyj21 > l 83701 } else { 83702 yyb21 = r.CheckBreak() 83703 } 83704 if yyb21 { 83705 r.ReadArrayEnd() 83706 return 83707 } 83708 r.ReadArrayElem() 83709 if r.TryDecodeAsNil() { 83710 x.JobModifyIndex = 0 83711 } else { 83712 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 83713 } 83714 yyj21++ 83715 if yyhl21 { 83716 yyb21 = yyj21 > l 83717 } else { 83718 yyb21 = r.CheckBreak() 83719 } 83720 if yyb21 { 83721 r.ReadArrayEnd() 83722 return 83723 } 83724 r.ReadArrayElem() 83725 if r.TryDecodeAsNil() { 83726 x.SubmitTime = 0 83727 } else { 83728 x.SubmitTime = (int64)(r.DecodeInt64()) 83729 } 83730 for { 83731 yyj21++ 83732 if yyhl21 { 83733 yyb21 = yyj21 > l 83734 } else { 83735 yyb21 = r.CheckBreak() 83736 } 83737 if yyb21 { 83738 break 83739 } 83740 r.ReadArrayElem() 83741 z.DecStructFieldNotFound(yyj21-1, "") 83742 } 83743 r.ReadArrayEnd() 83744 } 83745 83746 func (x *JobSummary) CodecEncodeSelf(e *codec1978.Encoder) { 83747 var h codecSelfer100 83748 z, r := codec1978.GenHelperEncoder(e) 83749 _, _, _ = h, z, r 83750 if x == nil { 83751 r.EncodeNil() 83752 } else { 83753 if false { 83754 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83755 z.EncExtension(x, yyxt1) 83756 } else { 83757 yysep2 := !z.EncBinary() 83758 yy2arr2 := z.EncBasicHandle().StructToArray 83759 _, _ = yysep2, yy2arr2 83760 const yyr2 bool = false // struct tag has 'toArray' 83761 if yyr2 || yy2arr2 { 83762 r.WriteArrayStart(6) 83763 } else { 83764 r.WriteMapStart(6) 83765 } 83766 if yyr2 || yy2arr2 { 83767 r.WriteArrayElem() 83768 if false { 83769 } else { 83770 if z.EncBasicHandle().StringToRaw { 83771 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 83772 } else { 83773 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 83774 } 83775 } 83776 } else { 83777 r.WriteMapElemKey() 83778 if z.IsJSONHandle() { 83779 z.WriteStr("\"JobID\"") 83780 } else { 83781 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 83782 } 83783 r.WriteMapElemValue() 83784 if false { 83785 } else { 83786 if z.EncBasicHandle().StringToRaw { 83787 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 83788 } else { 83789 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 83790 } 83791 } 83792 } 83793 if yyr2 || yy2arr2 { 83794 r.WriteArrayElem() 83795 if false { 83796 } else { 83797 if z.EncBasicHandle().StringToRaw { 83798 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 83799 } else { 83800 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 83801 } 83802 } 83803 } else { 83804 r.WriteMapElemKey() 83805 if z.IsJSONHandle() { 83806 z.WriteStr("\"Namespace\"") 83807 } else { 83808 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 83809 } 83810 r.WriteMapElemValue() 83811 if false { 83812 } else { 83813 if z.EncBasicHandle().StringToRaw { 83814 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 83815 } else { 83816 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 83817 } 83818 } 83819 } 83820 if yyr2 || yy2arr2 { 83821 r.WriteArrayElem() 83822 if x.Summary == nil { 83823 r.EncodeNil() 83824 } else { 83825 if false { 83826 } else { 83827 h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) 83828 } 83829 } 83830 } else { 83831 r.WriteMapElemKey() 83832 if z.IsJSONHandle() { 83833 z.WriteStr("\"Summary\"") 83834 } else { 83835 r.EncodeStringEnc(codecSelferCcUTF8100, `Summary`) 83836 } 83837 r.WriteMapElemValue() 83838 if x.Summary == nil { 83839 r.EncodeNil() 83840 } else { 83841 if false { 83842 } else { 83843 h.encMapstringTaskGroupSummary((map[string]TaskGroupSummary)(x.Summary), e) 83844 } 83845 } 83846 } 83847 var yyn12 bool 83848 if x.Children == nil { 83849 yyn12 = true 83850 goto LABEL12 83851 } 83852 LABEL12: 83853 if yyr2 || yy2arr2 { 83854 if yyn12 { 83855 r.WriteArrayElem() 83856 r.EncodeNil() 83857 } else { 83858 r.WriteArrayElem() 83859 if x.Children == nil { 83860 r.EncodeNil() 83861 } else { 83862 x.Children.CodecEncodeSelf(e) 83863 } 83864 } 83865 } else { 83866 r.WriteMapElemKey() 83867 if z.IsJSONHandle() { 83868 z.WriteStr("\"Children\"") 83869 } else { 83870 r.EncodeStringEnc(codecSelferCcUTF8100, `Children`) 83871 } 83872 r.WriteMapElemValue() 83873 if yyn12 { 83874 r.EncodeNil() 83875 } else { 83876 if x.Children == nil { 83877 r.EncodeNil() 83878 } else { 83879 x.Children.CodecEncodeSelf(e) 83880 } 83881 } 83882 } 83883 if yyr2 || yy2arr2 { 83884 r.WriteArrayElem() 83885 if false { 83886 } else { 83887 r.EncodeUint(uint64(x.CreateIndex)) 83888 } 83889 } else { 83890 r.WriteMapElemKey() 83891 if z.IsJSONHandle() { 83892 z.WriteStr("\"CreateIndex\"") 83893 } else { 83894 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 83895 } 83896 r.WriteMapElemValue() 83897 if false { 83898 } else { 83899 r.EncodeUint(uint64(x.CreateIndex)) 83900 } 83901 } 83902 if yyr2 || yy2arr2 { 83903 r.WriteArrayElem() 83904 if false { 83905 } else { 83906 r.EncodeUint(uint64(x.ModifyIndex)) 83907 } 83908 } else { 83909 r.WriteMapElemKey() 83910 if z.IsJSONHandle() { 83911 z.WriteStr("\"ModifyIndex\"") 83912 } else { 83913 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 83914 } 83915 r.WriteMapElemValue() 83916 if false { 83917 } else { 83918 r.EncodeUint(uint64(x.ModifyIndex)) 83919 } 83920 } 83921 if yyr2 || yy2arr2 { 83922 r.WriteArrayEnd() 83923 } else { 83924 r.WriteMapEnd() 83925 } 83926 } 83927 } 83928 } 83929 83930 func (x *JobSummary) CodecDecodeSelf(d *codec1978.Decoder) { 83931 var h codecSelfer100 83932 z, r := codec1978.GenHelperDecoder(d) 83933 _, _, _ = h, z, r 83934 if false { 83935 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 83936 z.DecExtension(x, yyxt1) 83937 } else { 83938 yyct2 := r.ContainerType() 83939 if yyct2 == codecSelferValueTypeMap100 { 83940 yyl2 := r.ReadMapStart() 83941 if yyl2 == 0 { 83942 r.ReadMapEnd() 83943 } else { 83944 x.codecDecodeSelfFromMap(yyl2, d) 83945 } 83946 } else if yyct2 == codecSelferValueTypeArray100 { 83947 yyl2 := r.ReadArrayStart() 83948 if yyl2 == 0 { 83949 r.ReadArrayEnd() 83950 } else { 83951 x.codecDecodeSelfFromArray(yyl2, d) 83952 } 83953 } else { 83954 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 83955 } 83956 } 83957 } 83958 83959 func (x *JobSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 83960 var h codecSelfer100 83961 z, r := codec1978.GenHelperDecoder(d) 83962 _, _, _ = h, z, r 83963 var yyhl3 bool = l >= 0 83964 for yyj3 := 0; ; yyj3++ { 83965 if yyhl3 { 83966 if yyj3 >= l { 83967 break 83968 } 83969 } else { 83970 if r.CheckBreak() { 83971 break 83972 } 83973 } 83974 r.ReadMapElemKey() 83975 yys3 := z.StringView(r.DecodeStringAsBytes()) 83976 r.ReadMapElemValue() 83977 switch yys3 { 83978 case "JobID": 83979 if r.TryDecodeAsNil() { 83980 x.JobID = "" 83981 } else { 83982 x.JobID = (string)(r.DecodeString()) 83983 } 83984 case "Namespace": 83985 if r.TryDecodeAsNil() { 83986 x.Namespace = "" 83987 } else { 83988 x.Namespace = (string)(r.DecodeString()) 83989 } 83990 case "Summary": 83991 if r.TryDecodeAsNil() { 83992 x.Summary = nil 83993 } else { 83994 if false { 83995 } else { 83996 h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) 83997 } 83998 } 83999 case "Children": 84000 if r.TryDecodeAsNil() { 84001 if true && x.Children != nil { 84002 x.Children = nil 84003 } 84004 } else { 84005 if x.Children == nil { 84006 x.Children = new(JobChildrenSummary) 84007 } 84008 84009 x.Children.CodecDecodeSelf(d) 84010 } 84011 case "CreateIndex": 84012 if r.TryDecodeAsNil() { 84013 x.CreateIndex = 0 84014 } else { 84015 x.CreateIndex = (uint64)(r.DecodeUint64()) 84016 } 84017 case "ModifyIndex": 84018 if r.TryDecodeAsNil() { 84019 x.ModifyIndex = 0 84020 } else { 84021 x.ModifyIndex = (uint64)(r.DecodeUint64()) 84022 } 84023 default: 84024 z.DecStructFieldNotFound(-1, yys3) 84025 } // end switch yys3 84026 } // end for yyj3 84027 r.ReadMapEnd() 84028 } 84029 84030 func (x *JobSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84031 var h codecSelfer100 84032 z, r := codec1978.GenHelperDecoder(d) 84033 _, _, _ = h, z, r 84034 var yyj11 int 84035 var yyb11 bool 84036 var yyhl11 bool = l >= 0 84037 yyj11++ 84038 if yyhl11 { 84039 yyb11 = yyj11 > l 84040 } else { 84041 yyb11 = r.CheckBreak() 84042 } 84043 if yyb11 { 84044 r.ReadArrayEnd() 84045 return 84046 } 84047 r.ReadArrayElem() 84048 if r.TryDecodeAsNil() { 84049 x.JobID = "" 84050 } else { 84051 x.JobID = (string)(r.DecodeString()) 84052 } 84053 yyj11++ 84054 if yyhl11 { 84055 yyb11 = yyj11 > l 84056 } else { 84057 yyb11 = r.CheckBreak() 84058 } 84059 if yyb11 { 84060 r.ReadArrayEnd() 84061 return 84062 } 84063 r.ReadArrayElem() 84064 if r.TryDecodeAsNil() { 84065 x.Namespace = "" 84066 } else { 84067 x.Namespace = (string)(r.DecodeString()) 84068 } 84069 yyj11++ 84070 if yyhl11 { 84071 yyb11 = yyj11 > l 84072 } else { 84073 yyb11 = r.CheckBreak() 84074 } 84075 if yyb11 { 84076 r.ReadArrayEnd() 84077 return 84078 } 84079 r.ReadArrayElem() 84080 if r.TryDecodeAsNil() { 84081 x.Summary = nil 84082 } else { 84083 if false { 84084 } else { 84085 h.decMapstringTaskGroupSummary((*map[string]TaskGroupSummary)(&x.Summary), d) 84086 } 84087 } 84088 yyj11++ 84089 if yyhl11 { 84090 yyb11 = yyj11 > l 84091 } else { 84092 yyb11 = r.CheckBreak() 84093 } 84094 if yyb11 { 84095 r.ReadArrayEnd() 84096 return 84097 } 84098 r.ReadArrayElem() 84099 if r.TryDecodeAsNil() { 84100 if true && x.Children != nil { 84101 x.Children = nil 84102 } 84103 } else { 84104 if x.Children == nil { 84105 x.Children = new(JobChildrenSummary) 84106 } 84107 84108 x.Children.CodecDecodeSelf(d) 84109 } 84110 yyj11++ 84111 if yyhl11 { 84112 yyb11 = yyj11 > l 84113 } else { 84114 yyb11 = r.CheckBreak() 84115 } 84116 if yyb11 { 84117 r.ReadArrayEnd() 84118 return 84119 } 84120 r.ReadArrayElem() 84121 if r.TryDecodeAsNil() { 84122 x.CreateIndex = 0 84123 } else { 84124 x.CreateIndex = (uint64)(r.DecodeUint64()) 84125 } 84126 yyj11++ 84127 if yyhl11 { 84128 yyb11 = yyj11 > l 84129 } else { 84130 yyb11 = r.CheckBreak() 84131 } 84132 if yyb11 { 84133 r.ReadArrayEnd() 84134 return 84135 } 84136 r.ReadArrayElem() 84137 if r.TryDecodeAsNil() { 84138 x.ModifyIndex = 0 84139 } else { 84140 x.ModifyIndex = (uint64)(r.DecodeUint64()) 84141 } 84142 for { 84143 yyj11++ 84144 if yyhl11 { 84145 yyb11 = yyj11 > l 84146 } else { 84147 yyb11 = r.CheckBreak() 84148 } 84149 if yyb11 { 84150 break 84151 } 84152 r.ReadArrayElem() 84153 z.DecStructFieldNotFound(yyj11-1, "") 84154 } 84155 r.ReadArrayEnd() 84156 } 84157 84158 func (x *JobChildrenSummary) CodecEncodeSelf(e *codec1978.Encoder) { 84159 var h codecSelfer100 84160 z, r := codec1978.GenHelperEncoder(e) 84161 _, _, _ = h, z, r 84162 if x == nil { 84163 r.EncodeNil() 84164 } else { 84165 if false { 84166 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84167 z.EncExtension(x, yyxt1) 84168 } else { 84169 yysep2 := !z.EncBinary() 84170 yy2arr2 := z.EncBasicHandle().StructToArray 84171 _, _ = yysep2, yy2arr2 84172 const yyr2 bool = false // struct tag has 'toArray' 84173 if yyr2 || yy2arr2 { 84174 r.WriteArrayStart(3) 84175 } else { 84176 r.WriteMapStart(3) 84177 } 84178 if yyr2 || yy2arr2 { 84179 r.WriteArrayElem() 84180 if false { 84181 } else { 84182 r.EncodeInt(int64(x.Pending)) 84183 } 84184 } else { 84185 r.WriteMapElemKey() 84186 if z.IsJSONHandle() { 84187 z.WriteStr("\"Pending\"") 84188 } else { 84189 r.EncodeStringEnc(codecSelferCcUTF8100, `Pending`) 84190 } 84191 r.WriteMapElemValue() 84192 if false { 84193 } else { 84194 r.EncodeInt(int64(x.Pending)) 84195 } 84196 } 84197 if yyr2 || yy2arr2 { 84198 r.WriteArrayElem() 84199 if false { 84200 } else { 84201 r.EncodeInt(int64(x.Running)) 84202 } 84203 } else { 84204 r.WriteMapElemKey() 84205 if z.IsJSONHandle() { 84206 z.WriteStr("\"Running\"") 84207 } else { 84208 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 84209 } 84210 r.WriteMapElemValue() 84211 if false { 84212 } else { 84213 r.EncodeInt(int64(x.Running)) 84214 } 84215 } 84216 if yyr2 || yy2arr2 { 84217 r.WriteArrayElem() 84218 if false { 84219 } else { 84220 r.EncodeInt(int64(x.Dead)) 84221 } 84222 } else { 84223 r.WriteMapElemKey() 84224 if z.IsJSONHandle() { 84225 z.WriteStr("\"Dead\"") 84226 } else { 84227 r.EncodeStringEnc(codecSelferCcUTF8100, `Dead`) 84228 } 84229 r.WriteMapElemValue() 84230 if false { 84231 } else { 84232 r.EncodeInt(int64(x.Dead)) 84233 } 84234 } 84235 if yyr2 || yy2arr2 { 84236 r.WriteArrayEnd() 84237 } else { 84238 r.WriteMapEnd() 84239 } 84240 } 84241 } 84242 } 84243 84244 func (x *JobChildrenSummary) CodecDecodeSelf(d *codec1978.Decoder) { 84245 var h codecSelfer100 84246 z, r := codec1978.GenHelperDecoder(d) 84247 _, _, _ = h, z, r 84248 if false { 84249 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84250 z.DecExtension(x, yyxt1) 84251 } else { 84252 yyct2 := r.ContainerType() 84253 if yyct2 == codecSelferValueTypeMap100 { 84254 yyl2 := r.ReadMapStart() 84255 if yyl2 == 0 { 84256 r.ReadMapEnd() 84257 } else { 84258 x.codecDecodeSelfFromMap(yyl2, d) 84259 } 84260 } else if yyct2 == codecSelferValueTypeArray100 { 84261 yyl2 := r.ReadArrayStart() 84262 if yyl2 == 0 { 84263 r.ReadArrayEnd() 84264 } else { 84265 x.codecDecodeSelfFromArray(yyl2, d) 84266 } 84267 } else { 84268 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84269 } 84270 } 84271 } 84272 84273 func (x *JobChildrenSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84274 var h codecSelfer100 84275 z, r := codec1978.GenHelperDecoder(d) 84276 _, _, _ = h, z, r 84277 var yyhl3 bool = l >= 0 84278 for yyj3 := 0; ; yyj3++ { 84279 if yyhl3 { 84280 if yyj3 >= l { 84281 break 84282 } 84283 } else { 84284 if r.CheckBreak() { 84285 break 84286 } 84287 } 84288 r.ReadMapElemKey() 84289 yys3 := z.StringView(r.DecodeStringAsBytes()) 84290 r.ReadMapElemValue() 84291 switch yys3 { 84292 case "Pending": 84293 if r.TryDecodeAsNil() { 84294 x.Pending = 0 84295 } else { 84296 x.Pending = (int64)(r.DecodeInt64()) 84297 } 84298 case "Running": 84299 if r.TryDecodeAsNil() { 84300 x.Running = 0 84301 } else { 84302 x.Running = (int64)(r.DecodeInt64()) 84303 } 84304 case "Dead": 84305 if r.TryDecodeAsNil() { 84306 x.Dead = 0 84307 } else { 84308 x.Dead = (int64)(r.DecodeInt64()) 84309 } 84310 default: 84311 z.DecStructFieldNotFound(-1, yys3) 84312 } // end switch yys3 84313 } // end for yyj3 84314 r.ReadMapEnd() 84315 } 84316 84317 func (x *JobChildrenSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84318 var h codecSelfer100 84319 z, r := codec1978.GenHelperDecoder(d) 84320 _, _, _ = h, z, r 84321 var yyj7 int 84322 var yyb7 bool 84323 var yyhl7 bool = l >= 0 84324 yyj7++ 84325 if yyhl7 { 84326 yyb7 = yyj7 > l 84327 } else { 84328 yyb7 = r.CheckBreak() 84329 } 84330 if yyb7 { 84331 r.ReadArrayEnd() 84332 return 84333 } 84334 r.ReadArrayElem() 84335 if r.TryDecodeAsNil() { 84336 x.Pending = 0 84337 } else { 84338 x.Pending = (int64)(r.DecodeInt64()) 84339 } 84340 yyj7++ 84341 if yyhl7 { 84342 yyb7 = yyj7 > l 84343 } else { 84344 yyb7 = r.CheckBreak() 84345 } 84346 if yyb7 { 84347 r.ReadArrayEnd() 84348 return 84349 } 84350 r.ReadArrayElem() 84351 if r.TryDecodeAsNil() { 84352 x.Running = 0 84353 } else { 84354 x.Running = (int64)(r.DecodeInt64()) 84355 } 84356 yyj7++ 84357 if yyhl7 { 84358 yyb7 = yyj7 > l 84359 } else { 84360 yyb7 = r.CheckBreak() 84361 } 84362 if yyb7 { 84363 r.ReadArrayEnd() 84364 return 84365 } 84366 r.ReadArrayElem() 84367 if r.TryDecodeAsNil() { 84368 x.Dead = 0 84369 } else { 84370 x.Dead = (int64)(r.DecodeInt64()) 84371 } 84372 for { 84373 yyj7++ 84374 if yyhl7 { 84375 yyb7 = yyj7 > l 84376 } else { 84377 yyb7 = r.CheckBreak() 84378 } 84379 if yyb7 { 84380 break 84381 } 84382 r.ReadArrayElem() 84383 z.DecStructFieldNotFound(yyj7-1, "") 84384 } 84385 r.ReadArrayEnd() 84386 } 84387 84388 func (x *TaskGroupSummary) CodecEncodeSelf(e *codec1978.Encoder) { 84389 var h codecSelfer100 84390 z, r := codec1978.GenHelperEncoder(e) 84391 _, _, _ = h, z, r 84392 if x == nil { 84393 r.EncodeNil() 84394 } else { 84395 if false { 84396 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84397 z.EncExtension(x, yyxt1) 84398 } else { 84399 yysep2 := !z.EncBinary() 84400 yy2arr2 := z.EncBasicHandle().StructToArray 84401 _, _ = yysep2, yy2arr2 84402 const yyr2 bool = false // struct tag has 'toArray' 84403 if yyr2 || yy2arr2 { 84404 r.WriteArrayStart(6) 84405 } else { 84406 r.WriteMapStart(6) 84407 } 84408 if yyr2 || yy2arr2 { 84409 r.WriteArrayElem() 84410 if false { 84411 } else { 84412 r.EncodeInt(int64(x.Queued)) 84413 } 84414 } else { 84415 r.WriteMapElemKey() 84416 if z.IsJSONHandle() { 84417 z.WriteStr("\"Queued\"") 84418 } else { 84419 r.EncodeStringEnc(codecSelferCcUTF8100, `Queued`) 84420 } 84421 r.WriteMapElemValue() 84422 if false { 84423 } else { 84424 r.EncodeInt(int64(x.Queued)) 84425 } 84426 } 84427 if yyr2 || yy2arr2 { 84428 r.WriteArrayElem() 84429 if false { 84430 } else { 84431 r.EncodeInt(int64(x.Complete)) 84432 } 84433 } else { 84434 r.WriteMapElemKey() 84435 if z.IsJSONHandle() { 84436 z.WriteStr("\"Complete\"") 84437 } else { 84438 r.EncodeStringEnc(codecSelferCcUTF8100, `Complete`) 84439 } 84440 r.WriteMapElemValue() 84441 if false { 84442 } else { 84443 r.EncodeInt(int64(x.Complete)) 84444 } 84445 } 84446 if yyr2 || yy2arr2 { 84447 r.WriteArrayElem() 84448 if false { 84449 } else { 84450 r.EncodeInt(int64(x.Failed)) 84451 } 84452 } else { 84453 r.WriteMapElemKey() 84454 if z.IsJSONHandle() { 84455 z.WriteStr("\"Failed\"") 84456 } else { 84457 r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) 84458 } 84459 r.WriteMapElemValue() 84460 if false { 84461 } else { 84462 r.EncodeInt(int64(x.Failed)) 84463 } 84464 } 84465 if yyr2 || yy2arr2 { 84466 r.WriteArrayElem() 84467 if false { 84468 } else { 84469 r.EncodeInt(int64(x.Running)) 84470 } 84471 } else { 84472 r.WriteMapElemKey() 84473 if z.IsJSONHandle() { 84474 z.WriteStr("\"Running\"") 84475 } else { 84476 r.EncodeStringEnc(codecSelferCcUTF8100, `Running`) 84477 } 84478 r.WriteMapElemValue() 84479 if false { 84480 } else { 84481 r.EncodeInt(int64(x.Running)) 84482 } 84483 } 84484 if yyr2 || yy2arr2 { 84485 r.WriteArrayElem() 84486 if false { 84487 } else { 84488 r.EncodeInt(int64(x.Starting)) 84489 } 84490 } else { 84491 r.WriteMapElemKey() 84492 if z.IsJSONHandle() { 84493 z.WriteStr("\"Starting\"") 84494 } else { 84495 r.EncodeStringEnc(codecSelferCcUTF8100, `Starting`) 84496 } 84497 r.WriteMapElemValue() 84498 if false { 84499 } else { 84500 r.EncodeInt(int64(x.Starting)) 84501 } 84502 } 84503 if yyr2 || yy2arr2 { 84504 r.WriteArrayElem() 84505 if false { 84506 } else { 84507 r.EncodeInt(int64(x.Lost)) 84508 } 84509 } else { 84510 r.WriteMapElemKey() 84511 if z.IsJSONHandle() { 84512 z.WriteStr("\"Lost\"") 84513 } else { 84514 r.EncodeStringEnc(codecSelferCcUTF8100, `Lost`) 84515 } 84516 r.WriteMapElemValue() 84517 if false { 84518 } else { 84519 r.EncodeInt(int64(x.Lost)) 84520 } 84521 } 84522 if yyr2 || yy2arr2 { 84523 r.WriteArrayEnd() 84524 } else { 84525 r.WriteMapEnd() 84526 } 84527 } 84528 } 84529 } 84530 84531 func (x *TaskGroupSummary) CodecDecodeSelf(d *codec1978.Decoder) { 84532 var h codecSelfer100 84533 z, r := codec1978.GenHelperDecoder(d) 84534 _, _, _ = h, z, r 84535 if false { 84536 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84537 z.DecExtension(x, yyxt1) 84538 } else { 84539 yyct2 := r.ContainerType() 84540 if yyct2 == codecSelferValueTypeMap100 { 84541 yyl2 := r.ReadMapStart() 84542 if yyl2 == 0 { 84543 r.ReadMapEnd() 84544 } else { 84545 x.codecDecodeSelfFromMap(yyl2, d) 84546 } 84547 } else if yyct2 == codecSelferValueTypeArray100 { 84548 yyl2 := r.ReadArrayStart() 84549 if yyl2 == 0 { 84550 r.ReadArrayEnd() 84551 } else { 84552 x.codecDecodeSelfFromArray(yyl2, d) 84553 } 84554 } else { 84555 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84556 } 84557 } 84558 } 84559 84560 func (x *TaskGroupSummary) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84561 var h codecSelfer100 84562 z, r := codec1978.GenHelperDecoder(d) 84563 _, _, _ = h, z, r 84564 var yyhl3 bool = l >= 0 84565 for yyj3 := 0; ; yyj3++ { 84566 if yyhl3 { 84567 if yyj3 >= l { 84568 break 84569 } 84570 } else { 84571 if r.CheckBreak() { 84572 break 84573 } 84574 } 84575 r.ReadMapElemKey() 84576 yys3 := z.StringView(r.DecodeStringAsBytes()) 84577 r.ReadMapElemValue() 84578 switch yys3 { 84579 case "Queued": 84580 if r.TryDecodeAsNil() { 84581 x.Queued = 0 84582 } else { 84583 x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84584 } 84585 case "Complete": 84586 if r.TryDecodeAsNil() { 84587 x.Complete = 0 84588 } else { 84589 x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84590 } 84591 case "Failed": 84592 if r.TryDecodeAsNil() { 84593 x.Failed = 0 84594 } else { 84595 x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84596 } 84597 case "Running": 84598 if r.TryDecodeAsNil() { 84599 x.Running = 0 84600 } else { 84601 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84602 } 84603 case "Starting": 84604 if r.TryDecodeAsNil() { 84605 x.Starting = 0 84606 } else { 84607 x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84608 } 84609 case "Lost": 84610 if r.TryDecodeAsNil() { 84611 x.Lost = 0 84612 } else { 84613 x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84614 } 84615 default: 84616 z.DecStructFieldNotFound(-1, yys3) 84617 } // end switch yys3 84618 } // end for yyj3 84619 r.ReadMapEnd() 84620 } 84621 84622 func (x *TaskGroupSummary) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 84623 var h codecSelfer100 84624 z, r := codec1978.GenHelperDecoder(d) 84625 _, _, _ = h, z, r 84626 var yyj10 int 84627 var yyb10 bool 84628 var yyhl10 bool = l >= 0 84629 yyj10++ 84630 if yyhl10 { 84631 yyb10 = yyj10 > l 84632 } else { 84633 yyb10 = r.CheckBreak() 84634 } 84635 if yyb10 { 84636 r.ReadArrayEnd() 84637 return 84638 } 84639 r.ReadArrayElem() 84640 if r.TryDecodeAsNil() { 84641 x.Queued = 0 84642 } else { 84643 x.Queued = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84644 } 84645 yyj10++ 84646 if yyhl10 { 84647 yyb10 = yyj10 > l 84648 } else { 84649 yyb10 = r.CheckBreak() 84650 } 84651 if yyb10 { 84652 r.ReadArrayEnd() 84653 return 84654 } 84655 r.ReadArrayElem() 84656 if r.TryDecodeAsNil() { 84657 x.Complete = 0 84658 } else { 84659 x.Complete = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84660 } 84661 yyj10++ 84662 if yyhl10 { 84663 yyb10 = yyj10 > l 84664 } else { 84665 yyb10 = r.CheckBreak() 84666 } 84667 if yyb10 { 84668 r.ReadArrayEnd() 84669 return 84670 } 84671 r.ReadArrayElem() 84672 if r.TryDecodeAsNil() { 84673 x.Failed = 0 84674 } else { 84675 x.Failed = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84676 } 84677 yyj10++ 84678 if yyhl10 { 84679 yyb10 = yyj10 > l 84680 } else { 84681 yyb10 = r.CheckBreak() 84682 } 84683 if yyb10 { 84684 r.ReadArrayEnd() 84685 return 84686 } 84687 r.ReadArrayElem() 84688 if r.TryDecodeAsNil() { 84689 x.Running = 0 84690 } else { 84691 x.Running = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84692 } 84693 yyj10++ 84694 if yyhl10 { 84695 yyb10 = yyj10 > l 84696 } else { 84697 yyb10 = r.CheckBreak() 84698 } 84699 if yyb10 { 84700 r.ReadArrayEnd() 84701 return 84702 } 84703 r.ReadArrayElem() 84704 if r.TryDecodeAsNil() { 84705 x.Starting = 0 84706 } else { 84707 x.Starting = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84708 } 84709 yyj10++ 84710 if yyhl10 { 84711 yyb10 = yyj10 > l 84712 } else { 84713 yyb10 = r.CheckBreak() 84714 } 84715 if yyb10 { 84716 r.ReadArrayEnd() 84717 return 84718 } 84719 r.ReadArrayElem() 84720 if r.TryDecodeAsNil() { 84721 x.Lost = 0 84722 } else { 84723 x.Lost = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 84724 } 84725 for { 84726 yyj10++ 84727 if yyhl10 { 84728 yyb10 = yyj10 > l 84729 } else { 84730 yyb10 = r.CheckBreak() 84731 } 84732 if yyb10 { 84733 break 84734 } 84735 r.ReadArrayElem() 84736 z.DecStructFieldNotFound(yyj10-1, "") 84737 } 84738 r.ReadArrayEnd() 84739 } 84740 84741 func (x *UpdateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 84742 var h codecSelfer100 84743 z, r := codec1978.GenHelperEncoder(e) 84744 _, _, _ = h, z, r 84745 if x == nil { 84746 r.EncodeNil() 84747 } else { 84748 if false { 84749 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84750 z.EncExtension(x, yyxt1) 84751 } else { 84752 yysep2 := !z.EncBinary() 84753 yy2arr2 := z.EncBasicHandle().StructToArray 84754 _, _ = yysep2, yy2arr2 84755 const yyr2 bool = false // struct tag has 'toArray' 84756 if yyr2 || yy2arr2 { 84757 r.WriteArrayStart(9) 84758 } else { 84759 r.WriteMapStart(9) 84760 } 84761 if yyr2 || yy2arr2 { 84762 r.WriteArrayElem() 84763 if false { 84764 } else if yyxt4 := z.Extension(z.I2Rtid(x.Stagger)); yyxt4 != nil { 84765 z.EncExtension(x.Stagger, yyxt4) 84766 } else { 84767 r.EncodeInt(int64(x.Stagger)) 84768 } 84769 } else { 84770 r.WriteMapElemKey() 84771 if z.IsJSONHandle() { 84772 z.WriteStr("\"Stagger\"") 84773 } else { 84774 r.EncodeStringEnc(codecSelferCcUTF8100, `Stagger`) 84775 } 84776 r.WriteMapElemValue() 84777 if false { 84778 } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { 84779 z.EncExtension(x.Stagger, yyxt5) 84780 } else { 84781 r.EncodeInt(int64(x.Stagger)) 84782 } 84783 } 84784 if yyr2 || yy2arr2 { 84785 r.WriteArrayElem() 84786 if false { 84787 } else { 84788 r.EncodeInt(int64(x.MaxParallel)) 84789 } 84790 } else { 84791 r.WriteMapElemKey() 84792 if z.IsJSONHandle() { 84793 z.WriteStr("\"MaxParallel\"") 84794 } else { 84795 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) 84796 } 84797 r.WriteMapElemValue() 84798 if false { 84799 } else { 84800 r.EncodeInt(int64(x.MaxParallel)) 84801 } 84802 } 84803 if yyr2 || yy2arr2 { 84804 r.WriteArrayElem() 84805 if false { 84806 } else { 84807 if z.EncBasicHandle().StringToRaw { 84808 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 84809 } else { 84810 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 84811 } 84812 } 84813 } else { 84814 r.WriteMapElemKey() 84815 if z.IsJSONHandle() { 84816 z.WriteStr("\"HealthCheck\"") 84817 } else { 84818 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) 84819 } 84820 r.WriteMapElemValue() 84821 if false { 84822 } else { 84823 if z.EncBasicHandle().StringToRaw { 84824 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 84825 } else { 84826 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 84827 } 84828 } 84829 } 84830 if yyr2 || yy2arr2 { 84831 r.WriteArrayElem() 84832 if false { 84833 } else if yyxt13 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt13 != nil { 84834 z.EncExtension(x.MinHealthyTime, yyxt13) 84835 } else { 84836 r.EncodeInt(int64(x.MinHealthyTime)) 84837 } 84838 } else { 84839 r.WriteMapElemKey() 84840 if z.IsJSONHandle() { 84841 z.WriteStr("\"MinHealthyTime\"") 84842 } else { 84843 r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) 84844 } 84845 r.WriteMapElemValue() 84846 if false { 84847 } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { 84848 z.EncExtension(x.MinHealthyTime, yyxt14) 84849 } else { 84850 r.EncodeInt(int64(x.MinHealthyTime)) 84851 } 84852 } 84853 if yyr2 || yy2arr2 { 84854 r.WriteArrayElem() 84855 if false { 84856 } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { 84857 z.EncExtension(x.HealthyDeadline, yyxt16) 84858 } else { 84859 r.EncodeInt(int64(x.HealthyDeadline)) 84860 } 84861 } else { 84862 r.WriteMapElemKey() 84863 if z.IsJSONHandle() { 84864 z.WriteStr("\"HealthyDeadline\"") 84865 } else { 84866 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) 84867 } 84868 r.WriteMapElemValue() 84869 if false { 84870 } else if yyxt17 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt17 != nil { 84871 z.EncExtension(x.HealthyDeadline, yyxt17) 84872 } else { 84873 r.EncodeInt(int64(x.HealthyDeadline)) 84874 } 84875 } 84876 if yyr2 || yy2arr2 { 84877 r.WriteArrayElem() 84878 if false { 84879 } else if yyxt19 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt19 != nil { 84880 z.EncExtension(x.ProgressDeadline, yyxt19) 84881 } else { 84882 r.EncodeInt(int64(x.ProgressDeadline)) 84883 } 84884 } else { 84885 r.WriteMapElemKey() 84886 if z.IsJSONHandle() { 84887 z.WriteStr("\"ProgressDeadline\"") 84888 } else { 84889 r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) 84890 } 84891 r.WriteMapElemValue() 84892 if false { 84893 } else if yyxt20 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt20 != nil { 84894 z.EncExtension(x.ProgressDeadline, yyxt20) 84895 } else { 84896 r.EncodeInt(int64(x.ProgressDeadline)) 84897 } 84898 } 84899 if yyr2 || yy2arr2 { 84900 r.WriteArrayElem() 84901 if false { 84902 } else { 84903 r.EncodeBool(bool(x.AutoRevert)) 84904 } 84905 } else { 84906 r.WriteMapElemKey() 84907 if z.IsJSONHandle() { 84908 z.WriteStr("\"AutoRevert\"") 84909 } else { 84910 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) 84911 } 84912 r.WriteMapElemValue() 84913 if false { 84914 } else { 84915 r.EncodeBool(bool(x.AutoRevert)) 84916 } 84917 } 84918 if yyr2 || yy2arr2 { 84919 r.WriteArrayElem() 84920 if false { 84921 } else { 84922 r.EncodeBool(bool(x.AutoPromote)) 84923 } 84924 } else { 84925 r.WriteMapElemKey() 84926 if z.IsJSONHandle() { 84927 z.WriteStr("\"AutoPromote\"") 84928 } else { 84929 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) 84930 } 84931 r.WriteMapElemValue() 84932 if false { 84933 } else { 84934 r.EncodeBool(bool(x.AutoPromote)) 84935 } 84936 } 84937 if yyr2 || yy2arr2 { 84938 r.WriteArrayElem() 84939 if false { 84940 } else { 84941 r.EncodeInt(int64(x.Canary)) 84942 } 84943 } else { 84944 r.WriteMapElemKey() 84945 if z.IsJSONHandle() { 84946 z.WriteStr("\"Canary\"") 84947 } else { 84948 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 84949 } 84950 r.WriteMapElemValue() 84951 if false { 84952 } else { 84953 r.EncodeInt(int64(x.Canary)) 84954 } 84955 } 84956 if yyr2 || yy2arr2 { 84957 r.WriteArrayEnd() 84958 } else { 84959 r.WriteMapEnd() 84960 } 84961 } 84962 } 84963 } 84964 84965 func (x *UpdateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 84966 var h codecSelfer100 84967 z, r := codec1978.GenHelperDecoder(d) 84968 _, _, _ = h, z, r 84969 if false { 84970 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 84971 z.DecExtension(x, yyxt1) 84972 } else { 84973 yyct2 := r.ContainerType() 84974 if yyct2 == codecSelferValueTypeMap100 { 84975 yyl2 := r.ReadMapStart() 84976 if yyl2 == 0 { 84977 r.ReadMapEnd() 84978 } else { 84979 x.codecDecodeSelfFromMap(yyl2, d) 84980 } 84981 } else if yyct2 == codecSelferValueTypeArray100 { 84982 yyl2 := r.ReadArrayStart() 84983 if yyl2 == 0 { 84984 r.ReadArrayEnd() 84985 } else { 84986 x.codecDecodeSelfFromArray(yyl2, d) 84987 } 84988 } else { 84989 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 84990 } 84991 } 84992 } 84993 84994 func (x *UpdateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 84995 var h codecSelfer100 84996 z, r := codec1978.GenHelperDecoder(d) 84997 _, _, _ = h, z, r 84998 var yyhl3 bool = l >= 0 84999 for yyj3 := 0; ; yyj3++ { 85000 if yyhl3 { 85001 if yyj3 >= l { 85002 break 85003 } 85004 } else { 85005 if r.CheckBreak() { 85006 break 85007 } 85008 } 85009 r.ReadMapElemKey() 85010 yys3 := z.StringView(r.DecodeStringAsBytes()) 85011 r.ReadMapElemValue() 85012 switch yys3 { 85013 case "Stagger": 85014 if r.TryDecodeAsNil() { 85015 x.Stagger = 0 85016 } else { 85017 if false { 85018 } else if yyxt5 := z.Extension(z.I2Rtid(x.Stagger)); yyxt5 != nil { 85019 z.DecExtension(x.Stagger, yyxt5) 85020 } else { 85021 x.Stagger = (time.Duration)(r.DecodeInt64()) 85022 } 85023 } 85024 case "MaxParallel": 85025 if r.TryDecodeAsNil() { 85026 x.MaxParallel = 0 85027 } else { 85028 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 85029 } 85030 case "HealthCheck": 85031 if r.TryDecodeAsNil() { 85032 x.HealthCheck = "" 85033 } else { 85034 x.HealthCheck = (string)(r.DecodeString()) 85035 } 85036 case "MinHealthyTime": 85037 if r.TryDecodeAsNil() { 85038 x.MinHealthyTime = 0 85039 } else { 85040 if false { 85041 } else if yyxt9 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt9 != nil { 85042 z.DecExtension(x.MinHealthyTime, yyxt9) 85043 } else { 85044 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 85045 } 85046 } 85047 case "HealthyDeadline": 85048 if r.TryDecodeAsNil() { 85049 x.HealthyDeadline = 0 85050 } else { 85051 if false { 85052 } else if yyxt11 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt11 != nil { 85053 z.DecExtension(x.HealthyDeadline, yyxt11) 85054 } else { 85055 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 85056 } 85057 } 85058 case "ProgressDeadline": 85059 if r.TryDecodeAsNil() { 85060 x.ProgressDeadline = 0 85061 } else { 85062 if false { 85063 } else if yyxt13 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt13 != nil { 85064 z.DecExtension(x.ProgressDeadline, yyxt13) 85065 } else { 85066 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 85067 } 85068 } 85069 case "AutoRevert": 85070 if r.TryDecodeAsNil() { 85071 x.AutoRevert = false 85072 } else { 85073 x.AutoRevert = (bool)(r.DecodeBool()) 85074 } 85075 case "AutoPromote": 85076 if r.TryDecodeAsNil() { 85077 x.AutoPromote = false 85078 } else { 85079 x.AutoPromote = (bool)(r.DecodeBool()) 85080 } 85081 case "Canary": 85082 if r.TryDecodeAsNil() { 85083 x.Canary = 0 85084 } else { 85085 x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 85086 } 85087 default: 85088 z.DecStructFieldNotFound(-1, yys3) 85089 } // end switch yys3 85090 } // end for yyj3 85091 r.ReadMapEnd() 85092 } 85093 85094 func (x *UpdateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 85095 var h codecSelfer100 85096 z, r := codec1978.GenHelperDecoder(d) 85097 _, _, _ = h, z, r 85098 var yyj17 int 85099 var yyb17 bool 85100 var yyhl17 bool = l >= 0 85101 yyj17++ 85102 if yyhl17 { 85103 yyb17 = yyj17 > l 85104 } else { 85105 yyb17 = r.CheckBreak() 85106 } 85107 if yyb17 { 85108 r.ReadArrayEnd() 85109 return 85110 } 85111 r.ReadArrayElem() 85112 if r.TryDecodeAsNil() { 85113 x.Stagger = 0 85114 } else { 85115 if false { 85116 } else if yyxt19 := z.Extension(z.I2Rtid(x.Stagger)); yyxt19 != nil { 85117 z.DecExtension(x.Stagger, yyxt19) 85118 } else { 85119 x.Stagger = (time.Duration)(r.DecodeInt64()) 85120 } 85121 } 85122 yyj17++ 85123 if yyhl17 { 85124 yyb17 = yyj17 > l 85125 } else { 85126 yyb17 = r.CheckBreak() 85127 } 85128 if yyb17 { 85129 r.ReadArrayEnd() 85130 return 85131 } 85132 r.ReadArrayElem() 85133 if r.TryDecodeAsNil() { 85134 x.MaxParallel = 0 85135 } else { 85136 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 85137 } 85138 yyj17++ 85139 if yyhl17 { 85140 yyb17 = yyj17 > l 85141 } else { 85142 yyb17 = r.CheckBreak() 85143 } 85144 if yyb17 { 85145 r.ReadArrayEnd() 85146 return 85147 } 85148 r.ReadArrayElem() 85149 if r.TryDecodeAsNil() { 85150 x.HealthCheck = "" 85151 } else { 85152 x.HealthCheck = (string)(r.DecodeString()) 85153 } 85154 yyj17++ 85155 if yyhl17 { 85156 yyb17 = yyj17 > l 85157 } else { 85158 yyb17 = r.CheckBreak() 85159 } 85160 if yyb17 { 85161 r.ReadArrayEnd() 85162 return 85163 } 85164 r.ReadArrayElem() 85165 if r.TryDecodeAsNil() { 85166 x.MinHealthyTime = 0 85167 } else { 85168 if false { 85169 } else if yyxt23 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt23 != nil { 85170 z.DecExtension(x.MinHealthyTime, yyxt23) 85171 } else { 85172 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 85173 } 85174 } 85175 yyj17++ 85176 if yyhl17 { 85177 yyb17 = yyj17 > l 85178 } else { 85179 yyb17 = r.CheckBreak() 85180 } 85181 if yyb17 { 85182 r.ReadArrayEnd() 85183 return 85184 } 85185 r.ReadArrayElem() 85186 if r.TryDecodeAsNil() { 85187 x.HealthyDeadline = 0 85188 } else { 85189 if false { 85190 } else if yyxt25 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt25 != nil { 85191 z.DecExtension(x.HealthyDeadline, yyxt25) 85192 } else { 85193 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 85194 } 85195 } 85196 yyj17++ 85197 if yyhl17 { 85198 yyb17 = yyj17 > l 85199 } else { 85200 yyb17 = r.CheckBreak() 85201 } 85202 if yyb17 { 85203 r.ReadArrayEnd() 85204 return 85205 } 85206 r.ReadArrayElem() 85207 if r.TryDecodeAsNil() { 85208 x.ProgressDeadline = 0 85209 } else { 85210 if false { 85211 } else if yyxt27 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt27 != nil { 85212 z.DecExtension(x.ProgressDeadline, yyxt27) 85213 } else { 85214 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 85215 } 85216 } 85217 yyj17++ 85218 if yyhl17 { 85219 yyb17 = yyj17 > l 85220 } else { 85221 yyb17 = r.CheckBreak() 85222 } 85223 if yyb17 { 85224 r.ReadArrayEnd() 85225 return 85226 } 85227 r.ReadArrayElem() 85228 if r.TryDecodeAsNil() { 85229 x.AutoRevert = false 85230 } else { 85231 x.AutoRevert = (bool)(r.DecodeBool()) 85232 } 85233 yyj17++ 85234 if yyhl17 { 85235 yyb17 = yyj17 > l 85236 } else { 85237 yyb17 = r.CheckBreak() 85238 } 85239 if yyb17 { 85240 r.ReadArrayEnd() 85241 return 85242 } 85243 r.ReadArrayElem() 85244 if r.TryDecodeAsNil() { 85245 x.AutoPromote = false 85246 } else { 85247 x.AutoPromote = (bool)(r.DecodeBool()) 85248 } 85249 yyj17++ 85250 if yyhl17 { 85251 yyb17 = yyj17 > l 85252 } else { 85253 yyb17 = r.CheckBreak() 85254 } 85255 if yyb17 { 85256 r.ReadArrayEnd() 85257 return 85258 } 85259 r.ReadArrayElem() 85260 if r.TryDecodeAsNil() { 85261 x.Canary = 0 85262 } else { 85263 x.Canary = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 85264 } 85265 for { 85266 yyj17++ 85267 if yyhl17 { 85268 yyb17 = yyj17 > l 85269 } else { 85270 yyb17 = r.CheckBreak() 85271 } 85272 if yyb17 { 85273 break 85274 } 85275 r.ReadArrayElem() 85276 z.DecStructFieldNotFound(yyj17-1, "") 85277 } 85278 r.ReadArrayEnd() 85279 } 85280 85281 func (x *PeriodicConfig) CodecEncodeSelf(e *codec1978.Encoder) { 85282 var h codecSelfer100 85283 z, r := codec1978.GenHelperEncoder(e) 85284 _, _, _ = h, z, r 85285 if x == nil { 85286 r.EncodeNil() 85287 } else { 85288 if false { 85289 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85290 z.EncExtension(x, yyxt1) 85291 } else { 85292 yysep2 := !z.EncBinary() 85293 yy2arr2 := z.EncBasicHandle().StructToArray 85294 _, _ = yysep2, yy2arr2 85295 const yyr2 bool = false // struct tag has 'toArray' 85296 if yyr2 || yy2arr2 { 85297 r.WriteArrayStart(5) 85298 } else { 85299 r.WriteMapStart(5) 85300 } 85301 if yyr2 || yy2arr2 { 85302 r.WriteArrayElem() 85303 if false { 85304 } else { 85305 r.EncodeBool(bool(x.Enabled)) 85306 } 85307 } else { 85308 r.WriteMapElemKey() 85309 if z.IsJSONHandle() { 85310 z.WriteStr("\"Enabled\"") 85311 } else { 85312 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 85313 } 85314 r.WriteMapElemValue() 85315 if false { 85316 } else { 85317 r.EncodeBool(bool(x.Enabled)) 85318 } 85319 } 85320 if yyr2 || yy2arr2 { 85321 r.WriteArrayElem() 85322 if false { 85323 } else { 85324 if z.EncBasicHandle().StringToRaw { 85325 r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) 85326 } else { 85327 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) 85328 } 85329 } 85330 } else { 85331 r.WriteMapElemKey() 85332 if z.IsJSONHandle() { 85333 z.WriteStr("\"Spec\"") 85334 } else { 85335 r.EncodeStringEnc(codecSelferCcUTF8100, `Spec`) 85336 } 85337 r.WriteMapElemValue() 85338 if false { 85339 } else { 85340 if z.EncBasicHandle().StringToRaw { 85341 r.EncodeStringBytesRaw(z.BytesView(string(x.Spec))) 85342 } else { 85343 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Spec)) 85344 } 85345 } 85346 } 85347 if yyr2 || yy2arr2 { 85348 r.WriteArrayElem() 85349 if false { 85350 } else { 85351 if z.EncBasicHandle().StringToRaw { 85352 r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) 85353 } else { 85354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) 85355 } 85356 } 85357 } else { 85358 r.WriteMapElemKey() 85359 if z.IsJSONHandle() { 85360 z.WriteStr("\"SpecType\"") 85361 } else { 85362 r.EncodeStringEnc(codecSelferCcUTF8100, `SpecType`) 85363 } 85364 r.WriteMapElemValue() 85365 if false { 85366 } else { 85367 if z.EncBasicHandle().StringToRaw { 85368 r.EncodeStringBytesRaw(z.BytesView(string(x.SpecType))) 85369 } else { 85370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SpecType)) 85371 } 85372 } 85373 } 85374 if yyr2 || yy2arr2 { 85375 r.WriteArrayElem() 85376 if false { 85377 } else { 85378 r.EncodeBool(bool(x.ProhibitOverlap)) 85379 } 85380 } else { 85381 r.WriteMapElemKey() 85382 if z.IsJSONHandle() { 85383 z.WriteStr("\"ProhibitOverlap\"") 85384 } else { 85385 r.EncodeStringEnc(codecSelferCcUTF8100, `ProhibitOverlap`) 85386 } 85387 r.WriteMapElemValue() 85388 if false { 85389 } else { 85390 r.EncodeBool(bool(x.ProhibitOverlap)) 85391 } 85392 } 85393 if yyr2 || yy2arr2 { 85394 r.WriteArrayElem() 85395 if false { 85396 } else { 85397 if z.EncBasicHandle().StringToRaw { 85398 r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) 85399 } else { 85400 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) 85401 } 85402 } 85403 } else { 85404 r.WriteMapElemKey() 85405 if z.IsJSONHandle() { 85406 z.WriteStr("\"TimeZone\"") 85407 } else { 85408 r.EncodeStringEnc(codecSelferCcUTF8100, `TimeZone`) 85409 } 85410 r.WriteMapElemValue() 85411 if false { 85412 } else { 85413 if z.EncBasicHandle().StringToRaw { 85414 r.EncodeStringBytesRaw(z.BytesView(string(x.TimeZone))) 85415 } else { 85416 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TimeZone)) 85417 } 85418 } 85419 } 85420 if yyr2 || yy2arr2 { 85421 r.WriteArrayEnd() 85422 } else { 85423 r.WriteMapEnd() 85424 } 85425 } 85426 } 85427 } 85428 85429 func (x *PeriodicConfig) CodecDecodeSelf(d *codec1978.Decoder) { 85430 var h codecSelfer100 85431 z, r := codec1978.GenHelperDecoder(d) 85432 _, _, _ = h, z, r 85433 if false { 85434 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85435 z.DecExtension(x, yyxt1) 85436 } else { 85437 yyct2 := r.ContainerType() 85438 if yyct2 == codecSelferValueTypeMap100 { 85439 yyl2 := r.ReadMapStart() 85440 if yyl2 == 0 { 85441 r.ReadMapEnd() 85442 } else { 85443 x.codecDecodeSelfFromMap(yyl2, d) 85444 } 85445 } else if yyct2 == codecSelferValueTypeArray100 { 85446 yyl2 := r.ReadArrayStart() 85447 if yyl2 == 0 { 85448 r.ReadArrayEnd() 85449 } else { 85450 x.codecDecodeSelfFromArray(yyl2, d) 85451 } 85452 } else { 85453 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 85454 } 85455 } 85456 } 85457 85458 func (x *PeriodicConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 85459 var h codecSelfer100 85460 z, r := codec1978.GenHelperDecoder(d) 85461 _, _, _ = h, z, r 85462 var yyhl3 bool = l >= 0 85463 for yyj3 := 0; ; yyj3++ { 85464 if yyhl3 { 85465 if yyj3 >= l { 85466 break 85467 } 85468 } else { 85469 if r.CheckBreak() { 85470 break 85471 } 85472 } 85473 r.ReadMapElemKey() 85474 yys3 := z.StringView(r.DecodeStringAsBytes()) 85475 r.ReadMapElemValue() 85476 switch yys3 { 85477 case "Enabled": 85478 if r.TryDecodeAsNil() { 85479 x.Enabled = false 85480 } else { 85481 x.Enabled = (bool)(r.DecodeBool()) 85482 } 85483 case "Spec": 85484 if r.TryDecodeAsNil() { 85485 x.Spec = "" 85486 } else { 85487 x.Spec = (string)(r.DecodeString()) 85488 } 85489 case "SpecType": 85490 if r.TryDecodeAsNil() { 85491 x.SpecType = "" 85492 } else { 85493 x.SpecType = (string)(r.DecodeString()) 85494 } 85495 case "ProhibitOverlap": 85496 if r.TryDecodeAsNil() { 85497 x.ProhibitOverlap = false 85498 } else { 85499 x.ProhibitOverlap = (bool)(r.DecodeBool()) 85500 } 85501 case "TimeZone": 85502 if r.TryDecodeAsNil() { 85503 x.TimeZone = "" 85504 } else { 85505 x.TimeZone = (string)(r.DecodeString()) 85506 } 85507 default: 85508 z.DecStructFieldNotFound(-1, yys3) 85509 } // end switch yys3 85510 } // end for yyj3 85511 r.ReadMapEnd() 85512 } 85513 85514 func (x *PeriodicConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 85515 var h codecSelfer100 85516 z, r := codec1978.GenHelperDecoder(d) 85517 _, _, _ = h, z, r 85518 var yyj9 int 85519 var yyb9 bool 85520 var yyhl9 bool = l >= 0 85521 yyj9++ 85522 if yyhl9 { 85523 yyb9 = yyj9 > l 85524 } else { 85525 yyb9 = r.CheckBreak() 85526 } 85527 if yyb9 { 85528 r.ReadArrayEnd() 85529 return 85530 } 85531 r.ReadArrayElem() 85532 if r.TryDecodeAsNil() { 85533 x.Enabled = false 85534 } else { 85535 x.Enabled = (bool)(r.DecodeBool()) 85536 } 85537 yyj9++ 85538 if yyhl9 { 85539 yyb9 = yyj9 > l 85540 } else { 85541 yyb9 = r.CheckBreak() 85542 } 85543 if yyb9 { 85544 r.ReadArrayEnd() 85545 return 85546 } 85547 r.ReadArrayElem() 85548 if r.TryDecodeAsNil() { 85549 x.Spec = "" 85550 } else { 85551 x.Spec = (string)(r.DecodeString()) 85552 } 85553 yyj9++ 85554 if yyhl9 { 85555 yyb9 = yyj9 > l 85556 } else { 85557 yyb9 = r.CheckBreak() 85558 } 85559 if yyb9 { 85560 r.ReadArrayEnd() 85561 return 85562 } 85563 r.ReadArrayElem() 85564 if r.TryDecodeAsNil() { 85565 x.SpecType = "" 85566 } else { 85567 x.SpecType = (string)(r.DecodeString()) 85568 } 85569 yyj9++ 85570 if yyhl9 { 85571 yyb9 = yyj9 > l 85572 } else { 85573 yyb9 = r.CheckBreak() 85574 } 85575 if yyb9 { 85576 r.ReadArrayEnd() 85577 return 85578 } 85579 r.ReadArrayElem() 85580 if r.TryDecodeAsNil() { 85581 x.ProhibitOverlap = false 85582 } else { 85583 x.ProhibitOverlap = (bool)(r.DecodeBool()) 85584 } 85585 yyj9++ 85586 if yyhl9 { 85587 yyb9 = yyj9 > l 85588 } else { 85589 yyb9 = r.CheckBreak() 85590 } 85591 if yyb9 { 85592 r.ReadArrayEnd() 85593 return 85594 } 85595 r.ReadArrayElem() 85596 if r.TryDecodeAsNil() { 85597 x.TimeZone = "" 85598 } else { 85599 x.TimeZone = (string)(r.DecodeString()) 85600 } 85601 for { 85602 yyj9++ 85603 if yyhl9 { 85604 yyb9 = yyj9 > l 85605 } else { 85606 yyb9 = r.CheckBreak() 85607 } 85608 if yyb9 { 85609 break 85610 } 85611 r.ReadArrayElem() 85612 z.DecStructFieldNotFound(yyj9-1, "") 85613 } 85614 r.ReadArrayEnd() 85615 } 85616 85617 func (x *PeriodicLaunch) CodecEncodeSelf(e *codec1978.Encoder) { 85618 var h codecSelfer100 85619 z, r := codec1978.GenHelperEncoder(e) 85620 _, _, _ = h, z, r 85621 if x == nil { 85622 r.EncodeNil() 85623 } else { 85624 if false { 85625 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85626 z.EncExtension(x, yyxt1) 85627 } else { 85628 yysep2 := !z.EncBinary() 85629 yy2arr2 := z.EncBasicHandle().StructToArray 85630 _, _ = yysep2, yy2arr2 85631 const yyr2 bool = false // struct tag has 'toArray' 85632 if yyr2 || yy2arr2 { 85633 r.WriteArrayStart(5) 85634 } else { 85635 r.WriteMapStart(5) 85636 } 85637 if yyr2 || yy2arr2 { 85638 r.WriteArrayElem() 85639 if false { 85640 } else { 85641 if z.EncBasicHandle().StringToRaw { 85642 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 85643 } else { 85644 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 85645 } 85646 } 85647 } else { 85648 r.WriteMapElemKey() 85649 if z.IsJSONHandle() { 85650 z.WriteStr("\"ID\"") 85651 } else { 85652 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 85653 } 85654 r.WriteMapElemValue() 85655 if false { 85656 } else { 85657 if z.EncBasicHandle().StringToRaw { 85658 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 85659 } else { 85660 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 85661 } 85662 } 85663 } 85664 if yyr2 || yy2arr2 { 85665 r.WriteArrayElem() 85666 if false { 85667 } else { 85668 if z.EncBasicHandle().StringToRaw { 85669 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85670 } else { 85671 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85672 } 85673 } 85674 } else { 85675 r.WriteMapElemKey() 85676 if z.IsJSONHandle() { 85677 z.WriteStr("\"Namespace\"") 85678 } else { 85679 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 85680 } 85681 r.WriteMapElemValue() 85682 if false { 85683 } else { 85684 if z.EncBasicHandle().StringToRaw { 85685 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 85686 } else { 85687 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 85688 } 85689 } 85690 } 85691 if yyr2 || yy2arr2 { 85692 r.WriteArrayElem() 85693 if false { 85694 } else if !z.EncBasicHandle().TimeNotBuiltin { 85695 r.EncodeTime(x.Launch) 85696 } else if yyxt10 := z.Extension(z.I2Rtid(x.Launch)); yyxt10 != nil { 85697 z.EncExtension(x.Launch, yyxt10) 85698 } else if z.EncBinary() { 85699 z.EncBinaryMarshal(x.Launch) 85700 } else if !z.EncBinary() && z.IsJSONHandle() { 85701 z.EncJSONMarshal(x.Launch) 85702 } else { 85703 z.EncFallback(x.Launch) 85704 } 85705 } else { 85706 r.WriteMapElemKey() 85707 if z.IsJSONHandle() { 85708 z.WriteStr("\"Launch\"") 85709 } else { 85710 r.EncodeStringEnc(codecSelferCcUTF8100, `Launch`) 85711 } 85712 r.WriteMapElemValue() 85713 if false { 85714 } else if !z.EncBasicHandle().TimeNotBuiltin { 85715 r.EncodeTime(x.Launch) 85716 } else if yyxt11 := z.Extension(z.I2Rtid(x.Launch)); yyxt11 != nil { 85717 z.EncExtension(x.Launch, yyxt11) 85718 } else if z.EncBinary() { 85719 z.EncBinaryMarshal(x.Launch) 85720 } else if !z.EncBinary() && z.IsJSONHandle() { 85721 z.EncJSONMarshal(x.Launch) 85722 } else { 85723 z.EncFallback(x.Launch) 85724 } 85725 } 85726 if yyr2 || yy2arr2 { 85727 r.WriteArrayElem() 85728 if false { 85729 } else { 85730 r.EncodeUint(uint64(x.CreateIndex)) 85731 } 85732 } else { 85733 r.WriteMapElemKey() 85734 if z.IsJSONHandle() { 85735 z.WriteStr("\"CreateIndex\"") 85736 } else { 85737 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 85738 } 85739 r.WriteMapElemValue() 85740 if false { 85741 } else { 85742 r.EncodeUint(uint64(x.CreateIndex)) 85743 } 85744 } 85745 if yyr2 || yy2arr2 { 85746 r.WriteArrayElem() 85747 if false { 85748 } else { 85749 r.EncodeUint(uint64(x.ModifyIndex)) 85750 } 85751 } else { 85752 r.WriteMapElemKey() 85753 if z.IsJSONHandle() { 85754 z.WriteStr("\"ModifyIndex\"") 85755 } else { 85756 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 85757 } 85758 r.WriteMapElemValue() 85759 if false { 85760 } else { 85761 r.EncodeUint(uint64(x.ModifyIndex)) 85762 } 85763 } 85764 if yyr2 || yy2arr2 { 85765 r.WriteArrayEnd() 85766 } else { 85767 r.WriteMapEnd() 85768 } 85769 } 85770 } 85771 } 85772 85773 func (x *PeriodicLaunch) CodecDecodeSelf(d *codec1978.Decoder) { 85774 var h codecSelfer100 85775 z, r := codec1978.GenHelperDecoder(d) 85776 _, _, _ = h, z, r 85777 if false { 85778 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85779 z.DecExtension(x, yyxt1) 85780 } else { 85781 yyct2 := r.ContainerType() 85782 if yyct2 == codecSelferValueTypeMap100 { 85783 yyl2 := r.ReadMapStart() 85784 if yyl2 == 0 { 85785 r.ReadMapEnd() 85786 } else { 85787 x.codecDecodeSelfFromMap(yyl2, d) 85788 } 85789 } else if yyct2 == codecSelferValueTypeArray100 { 85790 yyl2 := r.ReadArrayStart() 85791 if yyl2 == 0 { 85792 r.ReadArrayEnd() 85793 } else { 85794 x.codecDecodeSelfFromArray(yyl2, d) 85795 } 85796 } else { 85797 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 85798 } 85799 } 85800 } 85801 85802 func (x *PeriodicLaunch) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 85803 var h codecSelfer100 85804 z, r := codec1978.GenHelperDecoder(d) 85805 _, _, _ = h, z, r 85806 var yyhl3 bool = l >= 0 85807 for yyj3 := 0; ; yyj3++ { 85808 if yyhl3 { 85809 if yyj3 >= l { 85810 break 85811 } 85812 } else { 85813 if r.CheckBreak() { 85814 break 85815 } 85816 } 85817 r.ReadMapElemKey() 85818 yys3 := z.StringView(r.DecodeStringAsBytes()) 85819 r.ReadMapElemValue() 85820 switch yys3 { 85821 case "ID": 85822 if r.TryDecodeAsNil() { 85823 x.ID = "" 85824 } else { 85825 x.ID = (string)(r.DecodeString()) 85826 } 85827 case "Namespace": 85828 if r.TryDecodeAsNil() { 85829 x.Namespace = "" 85830 } else { 85831 x.Namespace = (string)(r.DecodeString()) 85832 } 85833 case "Launch": 85834 if r.TryDecodeAsNil() { 85835 x.Launch = time.Time{} 85836 } else { 85837 if false { 85838 } else if !z.DecBasicHandle().TimeNotBuiltin { 85839 x.Launch = r.DecodeTime() 85840 } else if yyxt7 := z.Extension(z.I2Rtid(x.Launch)); yyxt7 != nil { 85841 z.DecExtension(x.Launch, yyxt7) 85842 } else if z.DecBinary() { 85843 z.DecBinaryUnmarshal(&x.Launch) 85844 } else if !z.DecBinary() && z.IsJSONHandle() { 85845 z.DecJSONUnmarshal(&x.Launch) 85846 } else { 85847 z.DecFallback(&x.Launch, false) 85848 } 85849 } 85850 case "CreateIndex": 85851 if r.TryDecodeAsNil() { 85852 x.CreateIndex = 0 85853 } else { 85854 x.CreateIndex = (uint64)(r.DecodeUint64()) 85855 } 85856 case "ModifyIndex": 85857 if r.TryDecodeAsNil() { 85858 x.ModifyIndex = 0 85859 } else { 85860 x.ModifyIndex = (uint64)(r.DecodeUint64()) 85861 } 85862 default: 85863 z.DecStructFieldNotFound(-1, yys3) 85864 } // end switch yys3 85865 } // end for yyj3 85866 r.ReadMapEnd() 85867 } 85868 85869 func (x *PeriodicLaunch) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 85870 var h codecSelfer100 85871 z, r := codec1978.GenHelperDecoder(d) 85872 _, _, _ = h, z, r 85873 var yyj10 int 85874 var yyb10 bool 85875 var yyhl10 bool = l >= 0 85876 yyj10++ 85877 if yyhl10 { 85878 yyb10 = yyj10 > l 85879 } else { 85880 yyb10 = r.CheckBreak() 85881 } 85882 if yyb10 { 85883 r.ReadArrayEnd() 85884 return 85885 } 85886 r.ReadArrayElem() 85887 if r.TryDecodeAsNil() { 85888 x.ID = "" 85889 } else { 85890 x.ID = (string)(r.DecodeString()) 85891 } 85892 yyj10++ 85893 if yyhl10 { 85894 yyb10 = yyj10 > l 85895 } else { 85896 yyb10 = r.CheckBreak() 85897 } 85898 if yyb10 { 85899 r.ReadArrayEnd() 85900 return 85901 } 85902 r.ReadArrayElem() 85903 if r.TryDecodeAsNil() { 85904 x.Namespace = "" 85905 } else { 85906 x.Namespace = (string)(r.DecodeString()) 85907 } 85908 yyj10++ 85909 if yyhl10 { 85910 yyb10 = yyj10 > l 85911 } else { 85912 yyb10 = r.CheckBreak() 85913 } 85914 if yyb10 { 85915 r.ReadArrayEnd() 85916 return 85917 } 85918 r.ReadArrayElem() 85919 if r.TryDecodeAsNil() { 85920 x.Launch = time.Time{} 85921 } else { 85922 if false { 85923 } else if !z.DecBasicHandle().TimeNotBuiltin { 85924 x.Launch = r.DecodeTime() 85925 } else if yyxt14 := z.Extension(z.I2Rtid(x.Launch)); yyxt14 != nil { 85926 z.DecExtension(x.Launch, yyxt14) 85927 } else if z.DecBinary() { 85928 z.DecBinaryUnmarshal(&x.Launch) 85929 } else if !z.DecBinary() && z.IsJSONHandle() { 85930 z.DecJSONUnmarshal(&x.Launch) 85931 } else { 85932 z.DecFallback(&x.Launch, false) 85933 } 85934 } 85935 yyj10++ 85936 if yyhl10 { 85937 yyb10 = yyj10 > l 85938 } else { 85939 yyb10 = r.CheckBreak() 85940 } 85941 if yyb10 { 85942 r.ReadArrayEnd() 85943 return 85944 } 85945 r.ReadArrayElem() 85946 if r.TryDecodeAsNil() { 85947 x.CreateIndex = 0 85948 } else { 85949 x.CreateIndex = (uint64)(r.DecodeUint64()) 85950 } 85951 yyj10++ 85952 if yyhl10 { 85953 yyb10 = yyj10 > l 85954 } else { 85955 yyb10 = r.CheckBreak() 85956 } 85957 if yyb10 { 85958 r.ReadArrayEnd() 85959 return 85960 } 85961 r.ReadArrayElem() 85962 if r.TryDecodeAsNil() { 85963 x.ModifyIndex = 0 85964 } else { 85965 x.ModifyIndex = (uint64)(r.DecodeUint64()) 85966 } 85967 for { 85968 yyj10++ 85969 if yyhl10 { 85970 yyb10 = yyj10 > l 85971 } else { 85972 yyb10 = r.CheckBreak() 85973 } 85974 if yyb10 { 85975 break 85976 } 85977 r.ReadArrayElem() 85978 z.DecStructFieldNotFound(yyj10-1, "") 85979 } 85980 r.ReadArrayEnd() 85981 } 85982 85983 func (x *ParameterizedJobConfig) CodecEncodeSelf(e *codec1978.Encoder) { 85984 var h codecSelfer100 85985 z, r := codec1978.GenHelperEncoder(e) 85986 _, _, _ = h, z, r 85987 if x == nil { 85988 r.EncodeNil() 85989 } else { 85990 if false { 85991 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 85992 z.EncExtension(x, yyxt1) 85993 } else { 85994 yysep2 := !z.EncBinary() 85995 yy2arr2 := z.EncBasicHandle().StructToArray 85996 _, _ = yysep2, yy2arr2 85997 const yyr2 bool = false // struct tag has 'toArray' 85998 if yyr2 || yy2arr2 { 85999 r.WriteArrayStart(3) 86000 } else { 86001 r.WriteMapStart(3) 86002 } 86003 if yyr2 || yy2arr2 { 86004 r.WriteArrayElem() 86005 if false { 86006 } else { 86007 if z.EncBasicHandle().StringToRaw { 86008 r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) 86009 } else { 86010 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) 86011 } 86012 } 86013 } else { 86014 r.WriteMapElemKey() 86015 if z.IsJSONHandle() { 86016 z.WriteStr("\"Payload\"") 86017 } else { 86018 r.EncodeStringEnc(codecSelferCcUTF8100, `Payload`) 86019 } 86020 r.WriteMapElemValue() 86021 if false { 86022 } else { 86023 if z.EncBasicHandle().StringToRaw { 86024 r.EncodeStringBytesRaw(z.BytesView(string(x.Payload))) 86025 } else { 86026 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Payload)) 86027 } 86028 } 86029 } 86030 if yyr2 || yy2arr2 { 86031 r.WriteArrayElem() 86032 if x.MetaRequired == nil { 86033 r.EncodeNil() 86034 } else { 86035 if false { 86036 } else { 86037 z.F.EncSliceStringV(x.MetaRequired, e) 86038 } 86039 } 86040 } else { 86041 r.WriteMapElemKey() 86042 if z.IsJSONHandle() { 86043 z.WriteStr("\"MetaRequired\"") 86044 } else { 86045 r.EncodeStringEnc(codecSelferCcUTF8100, `MetaRequired`) 86046 } 86047 r.WriteMapElemValue() 86048 if x.MetaRequired == nil { 86049 r.EncodeNil() 86050 } else { 86051 if false { 86052 } else { 86053 z.F.EncSliceStringV(x.MetaRequired, e) 86054 } 86055 } 86056 } 86057 if yyr2 || yy2arr2 { 86058 r.WriteArrayElem() 86059 if x.MetaOptional == nil { 86060 r.EncodeNil() 86061 } else { 86062 if false { 86063 } else { 86064 z.F.EncSliceStringV(x.MetaOptional, e) 86065 } 86066 } 86067 } else { 86068 r.WriteMapElemKey() 86069 if z.IsJSONHandle() { 86070 z.WriteStr("\"MetaOptional\"") 86071 } else { 86072 r.EncodeStringEnc(codecSelferCcUTF8100, `MetaOptional`) 86073 } 86074 r.WriteMapElemValue() 86075 if x.MetaOptional == nil { 86076 r.EncodeNil() 86077 } else { 86078 if false { 86079 } else { 86080 z.F.EncSliceStringV(x.MetaOptional, e) 86081 } 86082 } 86083 } 86084 if yyr2 || yy2arr2 { 86085 r.WriteArrayEnd() 86086 } else { 86087 r.WriteMapEnd() 86088 } 86089 } 86090 } 86091 } 86092 86093 func (x *ParameterizedJobConfig) CodecDecodeSelf(d *codec1978.Decoder) { 86094 var h codecSelfer100 86095 z, r := codec1978.GenHelperDecoder(d) 86096 _, _, _ = h, z, r 86097 if false { 86098 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86099 z.DecExtension(x, yyxt1) 86100 } else { 86101 yyct2 := r.ContainerType() 86102 if yyct2 == codecSelferValueTypeMap100 { 86103 yyl2 := r.ReadMapStart() 86104 if yyl2 == 0 { 86105 r.ReadMapEnd() 86106 } else { 86107 x.codecDecodeSelfFromMap(yyl2, d) 86108 } 86109 } else if yyct2 == codecSelferValueTypeArray100 { 86110 yyl2 := r.ReadArrayStart() 86111 if yyl2 == 0 { 86112 r.ReadArrayEnd() 86113 } else { 86114 x.codecDecodeSelfFromArray(yyl2, d) 86115 } 86116 } else { 86117 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86118 } 86119 } 86120 } 86121 86122 func (x *ParameterizedJobConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86123 var h codecSelfer100 86124 z, r := codec1978.GenHelperDecoder(d) 86125 _, _, _ = h, z, r 86126 var yyhl3 bool = l >= 0 86127 for yyj3 := 0; ; yyj3++ { 86128 if yyhl3 { 86129 if yyj3 >= l { 86130 break 86131 } 86132 } else { 86133 if r.CheckBreak() { 86134 break 86135 } 86136 } 86137 r.ReadMapElemKey() 86138 yys3 := z.StringView(r.DecodeStringAsBytes()) 86139 r.ReadMapElemValue() 86140 switch yys3 { 86141 case "Payload": 86142 if r.TryDecodeAsNil() { 86143 x.Payload = "" 86144 } else { 86145 x.Payload = (string)(r.DecodeString()) 86146 } 86147 case "MetaRequired": 86148 if r.TryDecodeAsNil() { 86149 x.MetaRequired = nil 86150 } else { 86151 if false { 86152 } else { 86153 z.F.DecSliceStringX(&x.MetaRequired, d) 86154 } 86155 } 86156 case "MetaOptional": 86157 if r.TryDecodeAsNil() { 86158 x.MetaOptional = nil 86159 } else { 86160 if false { 86161 } else { 86162 z.F.DecSliceStringX(&x.MetaOptional, d) 86163 } 86164 } 86165 default: 86166 z.DecStructFieldNotFound(-1, yys3) 86167 } // end switch yys3 86168 } // end for yyj3 86169 r.ReadMapEnd() 86170 } 86171 86172 func (x *ParameterizedJobConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86173 var h codecSelfer100 86174 z, r := codec1978.GenHelperDecoder(d) 86175 _, _, _ = h, z, r 86176 var yyj9 int 86177 var yyb9 bool 86178 var yyhl9 bool = l >= 0 86179 yyj9++ 86180 if yyhl9 { 86181 yyb9 = yyj9 > l 86182 } else { 86183 yyb9 = r.CheckBreak() 86184 } 86185 if yyb9 { 86186 r.ReadArrayEnd() 86187 return 86188 } 86189 r.ReadArrayElem() 86190 if r.TryDecodeAsNil() { 86191 x.Payload = "" 86192 } else { 86193 x.Payload = (string)(r.DecodeString()) 86194 } 86195 yyj9++ 86196 if yyhl9 { 86197 yyb9 = yyj9 > l 86198 } else { 86199 yyb9 = r.CheckBreak() 86200 } 86201 if yyb9 { 86202 r.ReadArrayEnd() 86203 return 86204 } 86205 r.ReadArrayElem() 86206 if r.TryDecodeAsNil() { 86207 x.MetaRequired = nil 86208 } else { 86209 if false { 86210 } else { 86211 z.F.DecSliceStringX(&x.MetaRequired, d) 86212 } 86213 } 86214 yyj9++ 86215 if yyhl9 { 86216 yyb9 = yyj9 > l 86217 } else { 86218 yyb9 = r.CheckBreak() 86219 } 86220 if yyb9 { 86221 r.ReadArrayEnd() 86222 return 86223 } 86224 r.ReadArrayElem() 86225 if r.TryDecodeAsNil() { 86226 x.MetaOptional = nil 86227 } else { 86228 if false { 86229 } else { 86230 z.F.DecSliceStringX(&x.MetaOptional, d) 86231 } 86232 } 86233 for { 86234 yyj9++ 86235 if yyhl9 { 86236 yyb9 = yyj9 > l 86237 } else { 86238 yyb9 = r.CheckBreak() 86239 } 86240 if yyb9 { 86241 break 86242 } 86243 r.ReadArrayElem() 86244 z.DecStructFieldNotFound(yyj9-1, "") 86245 } 86246 r.ReadArrayEnd() 86247 } 86248 86249 func (x *DispatchPayloadConfig) CodecEncodeSelf(e *codec1978.Encoder) { 86250 var h codecSelfer100 86251 z, r := codec1978.GenHelperEncoder(e) 86252 _, _, _ = h, z, r 86253 if x == nil { 86254 r.EncodeNil() 86255 } else { 86256 if false { 86257 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86258 z.EncExtension(x, yyxt1) 86259 } else { 86260 yysep2 := !z.EncBinary() 86261 yy2arr2 := z.EncBasicHandle().StructToArray 86262 _, _ = yysep2, yy2arr2 86263 const yyr2 bool = false // struct tag has 'toArray' 86264 if yyr2 || yy2arr2 { 86265 r.WriteArrayStart(1) 86266 } else { 86267 r.WriteMapStart(1) 86268 } 86269 if yyr2 || yy2arr2 { 86270 r.WriteArrayElem() 86271 if false { 86272 } else { 86273 if z.EncBasicHandle().StringToRaw { 86274 r.EncodeStringBytesRaw(z.BytesView(string(x.File))) 86275 } else { 86276 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) 86277 } 86278 } 86279 } else { 86280 r.WriteMapElemKey() 86281 if z.IsJSONHandle() { 86282 z.WriteStr("\"File\"") 86283 } else { 86284 r.EncodeStringEnc(codecSelferCcUTF8100, `File`) 86285 } 86286 r.WriteMapElemValue() 86287 if false { 86288 } else { 86289 if z.EncBasicHandle().StringToRaw { 86290 r.EncodeStringBytesRaw(z.BytesView(string(x.File))) 86291 } else { 86292 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.File)) 86293 } 86294 } 86295 } 86296 if yyr2 || yy2arr2 { 86297 r.WriteArrayEnd() 86298 } else { 86299 r.WriteMapEnd() 86300 } 86301 } 86302 } 86303 } 86304 86305 func (x *DispatchPayloadConfig) CodecDecodeSelf(d *codec1978.Decoder) { 86306 var h codecSelfer100 86307 z, r := codec1978.GenHelperDecoder(d) 86308 _, _, _ = h, z, r 86309 if false { 86310 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86311 z.DecExtension(x, yyxt1) 86312 } else { 86313 yyct2 := r.ContainerType() 86314 if yyct2 == codecSelferValueTypeMap100 { 86315 yyl2 := r.ReadMapStart() 86316 if yyl2 == 0 { 86317 r.ReadMapEnd() 86318 } else { 86319 x.codecDecodeSelfFromMap(yyl2, d) 86320 } 86321 } else if yyct2 == codecSelferValueTypeArray100 { 86322 yyl2 := r.ReadArrayStart() 86323 if yyl2 == 0 { 86324 r.ReadArrayEnd() 86325 } else { 86326 x.codecDecodeSelfFromArray(yyl2, d) 86327 } 86328 } else { 86329 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86330 } 86331 } 86332 } 86333 86334 func (x *DispatchPayloadConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86335 var h codecSelfer100 86336 z, r := codec1978.GenHelperDecoder(d) 86337 _, _, _ = h, z, r 86338 var yyhl3 bool = l >= 0 86339 for yyj3 := 0; ; yyj3++ { 86340 if yyhl3 { 86341 if yyj3 >= l { 86342 break 86343 } 86344 } else { 86345 if r.CheckBreak() { 86346 break 86347 } 86348 } 86349 r.ReadMapElemKey() 86350 yys3 := z.StringView(r.DecodeStringAsBytes()) 86351 r.ReadMapElemValue() 86352 switch yys3 { 86353 case "File": 86354 if r.TryDecodeAsNil() { 86355 x.File = "" 86356 } else { 86357 x.File = (string)(r.DecodeString()) 86358 } 86359 default: 86360 z.DecStructFieldNotFound(-1, yys3) 86361 } // end switch yys3 86362 } // end for yyj3 86363 r.ReadMapEnd() 86364 } 86365 86366 func (x *DispatchPayloadConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86367 var h codecSelfer100 86368 z, r := codec1978.GenHelperDecoder(d) 86369 _, _, _ = h, z, r 86370 var yyj5 int 86371 var yyb5 bool 86372 var yyhl5 bool = l >= 0 86373 yyj5++ 86374 if yyhl5 { 86375 yyb5 = yyj5 > l 86376 } else { 86377 yyb5 = r.CheckBreak() 86378 } 86379 if yyb5 { 86380 r.ReadArrayEnd() 86381 return 86382 } 86383 r.ReadArrayElem() 86384 if r.TryDecodeAsNil() { 86385 x.File = "" 86386 } else { 86387 x.File = (string)(r.DecodeString()) 86388 } 86389 for { 86390 yyj5++ 86391 if yyhl5 { 86392 yyb5 = yyj5 > l 86393 } else { 86394 yyb5 = r.CheckBreak() 86395 } 86396 if yyb5 { 86397 break 86398 } 86399 r.ReadArrayElem() 86400 z.DecStructFieldNotFound(yyj5-1, "") 86401 } 86402 r.ReadArrayEnd() 86403 } 86404 86405 func (x *TaskLifecycleConfig) CodecEncodeSelf(e *codec1978.Encoder) { 86406 var h codecSelfer100 86407 z, r := codec1978.GenHelperEncoder(e) 86408 _, _, _ = h, z, r 86409 if x == nil { 86410 r.EncodeNil() 86411 } else { 86412 if false { 86413 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86414 z.EncExtension(x, yyxt1) 86415 } else { 86416 yysep2 := !z.EncBinary() 86417 yy2arr2 := z.EncBasicHandle().StructToArray 86418 _, _ = yysep2, yy2arr2 86419 const yyr2 bool = false // struct tag has 'toArray' 86420 if yyr2 || yy2arr2 { 86421 r.WriteArrayStart(2) 86422 } else { 86423 r.WriteMapStart(2) 86424 } 86425 if yyr2 || yy2arr2 { 86426 r.WriteArrayElem() 86427 if false { 86428 } else { 86429 if z.EncBasicHandle().StringToRaw { 86430 r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) 86431 } else { 86432 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) 86433 } 86434 } 86435 } else { 86436 r.WriteMapElemKey() 86437 if z.IsJSONHandle() { 86438 z.WriteStr("\"Hook\"") 86439 } else { 86440 r.EncodeStringEnc(codecSelferCcUTF8100, `Hook`) 86441 } 86442 r.WriteMapElemValue() 86443 if false { 86444 } else { 86445 if z.EncBasicHandle().StringToRaw { 86446 r.EncodeStringBytesRaw(z.BytesView(string(x.Hook))) 86447 } else { 86448 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Hook)) 86449 } 86450 } 86451 } 86452 if yyr2 || yy2arr2 { 86453 r.WriteArrayElem() 86454 if false { 86455 } else { 86456 r.EncodeBool(bool(x.Sidecar)) 86457 } 86458 } else { 86459 r.WriteMapElemKey() 86460 if z.IsJSONHandle() { 86461 z.WriteStr("\"Sidecar\"") 86462 } else { 86463 r.EncodeStringEnc(codecSelferCcUTF8100, `Sidecar`) 86464 } 86465 r.WriteMapElemValue() 86466 if false { 86467 } else { 86468 r.EncodeBool(bool(x.Sidecar)) 86469 } 86470 } 86471 if yyr2 || yy2arr2 { 86472 r.WriteArrayEnd() 86473 } else { 86474 r.WriteMapEnd() 86475 } 86476 } 86477 } 86478 } 86479 86480 func (x *TaskLifecycleConfig) CodecDecodeSelf(d *codec1978.Decoder) { 86481 var h codecSelfer100 86482 z, r := codec1978.GenHelperDecoder(d) 86483 _, _, _ = h, z, r 86484 if false { 86485 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86486 z.DecExtension(x, yyxt1) 86487 } else { 86488 yyct2 := r.ContainerType() 86489 if yyct2 == codecSelferValueTypeMap100 { 86490 yyl2 := r.ReadMapStart() 86491 if yyl2 == 0 { 86492 r.ReadMapEnd() 86493 } else { 86494 x.codecDecodeSelfFromMap(yyl2, d) 86495 } 86496 } else if yyct2 == codecSelferValueTypeArray100 { 86497 yyl2 := r.ReadArrayStart() 86498 if yyl2 == 0 { 86499 r.ReadArrayEnd() 86500 } else { 86501 x.codecDecodeSelfFromArray(yyl2, d) 86502 } 86503 } else { 86504 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86505 } 86506 } 86507 } 86508 86509 func (x *TaskLifecycleConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86510 var h codecSelfer100 86511 z, r := codec1978.GenHelperDecoder(d) 86512 _, _, _ = h, z, r 86513 var yyhl3 bool = l >= 0 86514 for yyj3 := 0; ; yyj3++ { 86515 if yyhl3 { 86516 if yyj3 >= l { 86517 break 86518 } 86519 } else { 86520 if r.CheckBreak() { 86521 break 86522 } 86523 } 86524 r.ReadMapElemKey() 86525 yys3 := z.StringView(r.DecodeStringAsBytes()) 86526 r.ReadMapElemValue() 86527 switch yys3 { 86528 case "Hook": 86529 if r.TryDecodeAsNil() { 86530 x.Hook = "" 86531 } else { 86532 x.Hook = (string)(r.DecodeString()) 86533 } 86534 case "Sidecar": 86535 if r.TryDecodeAsNil() { 86536 x.Sidecar = false 86537 } else { 86538 x.Sidecar = (bool)(r.DecodeBool()) 86539 } 86540 default: 86541 z.DecStructFieldNotFound(-1, yys3) 86542 } // end switch yys3 86543 } // end for yyj3 86544 r.ReadMapEnd() 86545 } 86546 86547 func (x *TaskLifecycleConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86548 var h codecSelfer100 86549 z, r := codec1978.GenHelperDecoder(d) 86550 _, _, _ = h, z, r 86551 var yyj6 int 86552 var yyb6 bool 86553 var yyhl6 bool = l >= 0 86554 yyj6++ 86555 if yyhl6 { 86556 yyb6 = yyj6 > l 86557 } else { 86558 yyb6 = r.CheckBreak() 86559 } 86560 if yyb6 { 86561 r.ReadArrayEnd() 86562 return 86563 } 86564 r.ReadArrayElem() 86565 if r.TryDecodeAsNil() { 86566 x.Hook = "" 86567 } else { 86568 x.Hook = (string)(r.DecodeString()) 86569 } 86570 yyj6++ 86571 if yyhl6 { 86572 yyb6 = yyj6 > l 86573 } else { 86574 yyb6 = r.CheckBreak() 86575 } 86576 if yyb6 { 86577 r.ReadArrayEnd() 86578 return 86579 } 86580 r.ReadArrayElem() 86581 if r.TryDecodeAsNil() { 86582 x.Sidecar = false 86583 } else { 86584 x.Sidecar = (bool)(r.DecodeBool()) 86585 } 86586 for { 86587 yyj6++ 86588 if yyhl6 { 86589 yyb6 = yyj6 > l 86590 } else { 86591 yyb6 = r.CheckBreak() 86592 } 86593 if yyb6 { 86594 break 86595 } 86596 r.ReadArrayElem() 86597 z.DecStructFieldNotFound(yyj6-1, "") 86598 } 86599 r.ReadArrayEnd() 86600 } 86601 86602 func (x *JobScalingEvents) CodecEncodeSelf(e *codec1978.Encoder) { 86603 var h codecSelfer100 86604 z, r := codec1978.GenHelperEncoder(e) 86605 _, _, _ = h, z, r 86606 if x == nil { 86607 r.EncodeNil() 86608 } else { 86609 if false { 86610 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86611 z.EncExtension(x, yyxt1) 86612 } else { 86613 yysep2 := !z.EncBinary() 86614 yy2arr2 := z.EncBasicHandle().StructToArray 86615 _, _ = yysep2, yy2arr2 86616 const yyr2 bool = false // struct tag has 'toArray' 86617 if yyr2 || yy2arr2 { 86618 r.WriteArrayStart(4) 86619 } else { 86620 r.WriteMapStart(4) 86621 } 86622 if yyr2 || yy2arr2 { 86623 r.WriteArrayElem() 86624 if false { 86625 } else { 86626 if z.EncBasicHandle().StringToRaw { 86627 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 86628 } else { 86629 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 86630 } 86631 } 86632 } else { 86633 r.WriteMapElemKey() 86634 if z.IsJSONHandle() { 86635 z.WriteStr("\"Namespace\"") 86636 } else { 86637 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 86638 } 86639 r.WriteMapElemValue() 86640 if false { 86641 } else { 86642 if z.EncBasicHandle().StringToRaw { 86643 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 86644 } else { 86645 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 86646 } 86647 } 86648 } 86649 if yyr2 || yy2arr2 { 86650 r.WriteArrayElem() 86651 if false { 86652 } else { 86653 if z.EncBasicHandle().StringToRaw { 86654 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 86655 } else { 86656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 86657 } 86658 } 86659 } else { 86660 r.WriteMapElemKey() 86661 if z.IsJSONHandle() { 86662 z.WriteStr("\"JobID\"") 86663 } else { 86664 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 86665 } 86666 r.WriteMapElemValue() 86667 if false { 86668 } else { 86669 if z.EncBasicHandle().StringToRaw { 86670 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 86671 } else { 86672 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 86673 } 86674 } 86675 } 86676 if yyr2 || yy2arr2 { 86677 r.WriteArrayElem() 86678 if x.ScalingEvents == nil { 86679 r.EncodeNil() 86680 } else { 86681 if false { 86682 } else { 86683 h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) 86684 } 86685 } 86686 } else { 86687 r.WriteMapElemKey() 86688 if z.IsJSONHandle() { 86689 z.WriteStr("\"ScalingEvents\"") 86690 } else { 86691 r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvents`) 86692 } 86693 r.WriteMapElemValue() 86694 if x.ScalingEvents == nil { 86695 r.EncodeNil() 86696 } else { 86697 if false { 86698 } else { 86699 h.encMapstringSlicePtrtoScalingEvent((map[string][]*ScalingEvent)(x.ScalingEvents), e) 86700 } 86701 } 86702 } 86703 if yyr2 || yy2arr2 { 86704 r.WriteArrayElem() 86705 if false { 86706 } else { 86707 r.EncodeUint(uint64(x.ModifyIndex)) 86708 } 86709 } else { 86710 r.WriteMapElemKey() 86711 if z.IsJSONHandle() { 86712 z.WriteStr("\"ModifyIndex\"") 86713 } else { 86714 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 86715 } 86716 r.WriteMapElemValue() 86717 if false { 86718 } else { 86719 r.EncodeUint(uint64(x.ModifyIndex)) 86720 } 86721 } 86722 if yyr2 || yy2arr2 { 86723 r.WriteArrayEnd() 86724 } else { 86725 r.WriteMapEnd() 86726 } 86727 } 86728 } 86729 } 86730 86731 func (x *JobScalingEvents) CodecDecodeSelf(d *codec1978.Decoder) { 86732 var h codecSelfer100 86733 z, r := codec1978.GenHelperDecoder(d) 86734 _, _, _ = h, z, r 86735 if false { 86736 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86737 z.DecExtension(x, yyxt1) 86738 } else { 86739 yyct2 := r.ContainerType() 86740 if yyct2 == codecSelferValueTypeMap100 { 86741 yyl2 := r.ReadMapStart() 86742 if yyl2 == 0 { 86743 r.ReadMapEnd() 86744 } else { 86745 x.codecDecodeSelfFromMap(yyl2, d) 86746 } 86747 } else if yyct2 == codecSelferValueTypeArray100 { 86748 yyl2 := r.ReadArrayStart() 86749 if yyl2 == 0 { 86750 r.ReadArrayEnd() 86751 } else { 86752 x.codecDecodeSelfFromArray(yyl2, d) 86753 } 86754 } else { 86755 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 86756 } 86757 } 86758 } 86759 86760 func (x *JobScalingEvents) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 86761 var h codecSelfer100 86762 z, r := codec1978.GenHelperDecoder(d) 86763 _, _, _ = h, z, r 86764 var yyhl3 bool = l >= 0 86765 for yyj3 := 0; ; yyj3++ { 86766 if yyhl3 { 86767 if yyj3 >= l { 86768 break 86769 } 86770 } else { 86771 if r.CheckBreak() { 86772 break 86773 } 86774 } 86775 r.ReadMapElemKey() 86776 yys3 := z.StringView(r.DecodeStringAsBytes()) 86777 r.ReadMapElemValue() 86778 switch yys3 { 86779 case "Namespace": 86780 if r.TryDecodeAsNil() { 86781 x.Namespace = "" 86782 } else { 86783 x.Namespace = (string)(r.DecodeString()) 86784 } 86785 case "JobID": 86786 if r.TryDecodeAsNil() { 86787 x.JobID = "" 86788 } else { 86789 x.JobID = (string)(r.DecodeString()) 86790 } 86791 case "ScalingEvents": 86792 if r.TryDecodeAsNil() { 86793 x.ScalingEvents = nil 86794 } else { 86795 if false { 86796 } else { 86797 h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) 86798 } 86799 } 86800 case "ModifyIndex": 86801 if r.TryDecodeAsNil() { 86802 x.ModifyIndex = 0 86803 } else { 86804 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86805 } 86806 default: 86807 z.DecStructFieldNotFound(-1, yys3) 86808 } // end switch yys3 86809 } // end for yyj3 86810 r.ReadMapEnd() 86811 } 86812 86813 func (x *JobScalingEvents) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 86814 var h codecSelfer100 86815 z, r := codec1978.GenHelperDecoder(d) 86816 _, _, _ = h, z, r 86817 var yyj9 int 86818 var yyb9 bool 86819 var yyhl9 bool = l >= 0 86820 yyj9++ 86821 if yyhl9 { 86822 yyb9 = yyj9 > l 86823 } else { 86824 yyb9 = r.CheckBreak() 86825 } 86826 if yyb9 { 86827 r.ReadArrayEnd() 86828 return 86829 } 86830 r.ReadArrayElem() 86831 if r.TryDecodeAsNil() { 86832 x.Namespace = "" 86833 } else { 86834 x.Namespace = (string)(r.DecodeString()) 86835 } 86836 yyj9++ 86837 if yyhl9 { 86838 yyb9 = yyj9 > l 86839 } else { 86840 yyb9 = r.CheckBreak() 86841 } 86842 if yyb9 { 86843 r.ReadArrayEnd() 86844 return 86845 } 86846 r.ReadArrayElem() 86847 if r.TryDecodeAsNil() { 86848 x.JobID = "" 86849 } else { 86850 x.JobID = (string)(r.DecodeString()) 86851 } 86852 yyj9++ 86853 if yyhl9 { 86854 yyb9 = yyj9 > l 86855 } else { 86856 yyb9 = r.CheckBreak() 86857 } 86858 if yyb9 { 86859 r.ReadArrayEnd() 86860 return 86861 } 86862 r.ReadArrayElem() 86863 if r.TryDecodeAsNil() { 86864 x.ScalingEvents = nil 86865 } else { 86866 if false { 86867 } else { 86868 h.decMapstringSlicePtrtoScalingEvent((*map[string][]*ScalingEvent)(&x.ScalingEvents), d) 86869 } 86870 } 86871 yyj9++ 86872 if yyhl9 { 86873 yyb9 = yyj9 > l 86874 } else { 86875 yyb9 = r.CheckBreak() 86876 } 86877 if yyb9 { 86878 r.ReadArrayEnd() 86879 return 86880 } 86881 r.ReadArrayElem() 86882 if r.TryDecodeAsNil() { 86883 x.ModifyIndex = 0 86884 } else { 86885 x.ModifyIndex = (uint64)(r.DecodeUint64()) 86886 } 86887 for { 86888 yyj9++ 86889 if yyhl9 { 86890 yyb9 = yyj9 > l 86891 } else { 86892 yyb9 = r.CheckBreak() 86893 } 86894 if yyb9 { 86895 break 86896 } 86897 r.ReadArrayElem() 86898 z.DecStructFieldNotFound(yyj9-1, "") 86899 } 86900 r.ReadArrayEnd() 86901 } 86902 86903 func (x *ScalingEvent) CodecEncodeSelf(e *codec1978.Encoder) { 86904 var h codecSelfer100 86905 z, r := codec1978.GenHelperEncoder(e) 86906 _, _, _ = h, z, r 86907 if x == nil { 86908 r.EncodeNil() 86909 } else { 86910 if false { 86911 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 86912 z.EncExtension(x, yyxt1) 86913 } else { 86914 yysep2 := !z.EncBinary() 86915 yy2arr2 := z.EncBasicHandle().StructToArray 86916 _, _ = yysep2, yy2arr2 86917 const yyr2 bool = false // struct tag has 'toArray' 86918 if yyr2 || yy2arr2 { 86919 r.WriteArrayStart(7) 86920 } else { 86921 r.WriteMapStart(7) 86922 } 86923 if yyr2 || yy2arr2 { 86924 r.WriteArrayElem() 86925 if false { 86926 } else { 86927 r.EncodeInt(int64(x.Time)) 86928 } 86929 } else { 86930 r.WriteMapElemKey() 86931 if z.IsJSONHandle() { 86932 z.WriteStr("\"Time\"") 86933 } else { 86934 r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) 86935 } 86936 r.WriteMapElemValue() 86937 if false { 86938 } else { 86939 r.EncodeInt(int64(x.Time)) 86940 } 86941 } 86942 var yyn6 bool 86943 if x.Count == nil { 86944 yyn6 = true 86945 goto LABEL6 86946 } 86947 LABEL6: 86948 if yyr2 || yy2arr2 { 86949 if yyn6 { 86950 r.WriteArrayElem() 86951 r.EncodeNil() 86952 } else { 86953 r.WriteArrayElem() 86954 if x.Count == nil { 86955 r.EncodeNil() 86956 } else { 86957 yy7 := *x.Count 86958 if false { 86959 } else { 86960 r.EncodeInt(int64(yy7)) 86961 } 86962 } 86963 } 86964 } else { 86965 r.WriteMapElemKey() 86966 if z.IsJSONHandle() { 86967 z.WriteStr("\"Count\"") 86968 } else { 86969 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 86970 } 86971 r.WriteMapElemValue() 86972 if yyn6 { 86973 r.EncodeNil() 86974 } else { 86975 if x.Count == nil { 86976 r.EncodeNil() 86977 } else { 86978 yy9 := *x.Count 86979 if false { 86980 } else { 86981 r.EncodeInt(int64(yy9)) 86982 } 86983 } 86984 } 86985 } 86986 if yyr2 || yy2arr2 { 86987 r.WriteArrayElem() 86988 if false { 86989 } else { 86990 if z.EncBasicHandle().StringToRaw { 86991 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 86992 } else { 86993 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 86994 } 86995 } 86996 } else { 86997 r.WriteMapElemKey() 86998 if z.IsJSONHandle() { 86999 z.WriteStr("\"Message\"") 87000 } else { 87001 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 87002 } 87003 r.WriteMapElemValue() 87004 if false { 87005 } else { 87006 if z.EncBasicHandle().StringToRaw { 87007 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 87008 } else { 87009 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 87010 } 87011 } 87012 } 87013 if yyr2 || yy2arr2 { 87014 r.WriteArrayElem() 87015 if false { 87016 } else { 87017 r.EncodeBool(bool(x.Error)) 87018 } 87019 } else { 87020 r.WriteMapElemKey() 87021 if z.IsJSONHandle() { 87022 z.WriteStr("\"Error\"") 87023 } else { 87024 r.EncodeStringEnc(codecSelferCcUTF8100, `Error`) 87025 } 87026 r.WriteMapElemValue() 87027 if false { 87028 } else { 87029 r.EncodeBool(bool(x.Error)) 87030 } 87031 } 87032 if yyr2 || yy2arr2 { 87033 r.WriteArrayElem() 87034 if x.Meta == nil { 87035 r.EncodeNil() 87036 } else { 87037 if false { 87038 } else { 87039 z.F.EncMapStringIntfV(x.Meta, e) 87040 } 87041 } 87042 } else { 87043 r.WriteMapElemKey() 87044 if z.IsJSONHandle() { 87045 z.WriteStr("\"Meta\"") 87046 } else { 87047 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 87048 } 87049 r.WriteMapElemValue() 87050 if x.Meta == nil { 87051 r.EncodeNil() 87052 } else { 87053 if false { 87054 } else { 87055 z.F.EncMapStringIntfV(x.Meta, e) 87056 } 87057 } 87058 } 87059 var yyn20 bool 87060 if x.EvalID == nil { 87061 yyn20 = true 87062 goto LABEL20 87063 } 87064 LABEL20: 87065 if yyr2 || yy2arr2 { 87066 if yyn20 { 87067 r.WriteArrayElem() 87068 r.EncodeNil() 87069 } else { 87070 r.WriteArrayElem() 87071 if x.EvalID == nil { 87072 r.EncodeNil() 87073 } else { 87074 yy21 := *x.EvalID 87075 if false { 87076 } else { 87077 if z.EncBasicHandle().StringToRaw { 87078 r.EncodeStringBytesRaw(z.BytesView(string(yy21))) 87079 } else { 87080 r.EncodeStringEnc(codecSelferCcUTF8100, string(yy21)) 87081 } 87082 } 87083 } 87084 } 87085 } else { 87086 r.WriteMapElemKey() 87087 if z.IsJSONHandle() { 87088 z.WriteStr("\"EvalID\"") 87089 } else { 87090 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 87091 } 87092 r.WriteMapElemValue() 87093 if yyn20 { 87094 r.EncodeNil() 87095 } else { 87096 if x.EvalID == nil { 87097 r.EncodeNil() 87098 } else { 87099 yy23 := *x.EvalID 87100 if false { 87101 } else { 87102 if z.EncBasicHandle().StringToRaw { 87103 r.EncodeStringBytesRaw(z.BytesView(string(yy23))) 87104 } else { 87105 r.EncodeStringEnc(codecSelferCcUTF8100, string(yy23)) 87106 } 87107 } 87108 } 87109 } 87110 } 87111 if yyr2 || yy2arr2 { 87112 r.WriteArrayElem() 87113 if false { 87114 } else { 87115 r.EncodeUint(uint64(x.CreateIndex)) 87116 } 87117 } else { 87118 r.WriteMapElemKey() 87119 if z.IsJSONHandle() { 87120 z.WriteStr("\"CreateIndex\"") 87121 } else { 87122 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 87123 } 87124 r.WriteMapElemValue() 87125 if false { 87126 } else { 87127 r.EncodeUint(uint64(x.CreateIndex)) 87128 } 87129 } 87130 if yyr2 || yy2arr2 { 87131 r.WriteArrayEnd() 87132 } else { 87133 r.WriteMapEnd() 87134 } 87135 } 87136 } 87137 } 87138 87139 func (x *ScalingEvent) CodecDecodeSelf(d *codec1978.Decoder) { 87140 var h codecSelfer100 87141 z, r := codec1978.GenHelperDecoder(d) 87142 _, _, _ = h, z, r 87143 if false { 87144 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87145 z.DecExtension(x, yyxt1) 87146 } else { 87147 yyct2 := r.ContainerType() 87148 if yyct2 == codecSelferValueTypeMap100 { 87149 yyl2 := r.ReadMapStart() 87150 if yyl2 == 0 { 87151 r.ReadMapEnd() 87152 } else { 87153 x.codecDecodeSelfFromMap(yyl2, d) 87154 } 87155 } else if yyct2 == codecSelferValueTypeArray100 { 87156 yyl2 := r.ReadArrayStart() 87157 if yyl2 == 0 { 87158 r.ReadArrayEnd() 87159 } else { 87160 x.codecDecodeSelfFromArray(yyl2, d) 87161 } 87162 } else { 87163 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87164 } 87165 } 87166 } 87167 87168 func (x *ScalingEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87169 var h codecSelfer100 87170 z, r := codec1978.GenHelperDecoder(d) 87171 _, _, _ = h, z, r 87172 var yyhl3 bool = l >= 0 87173 for yyj3 := 0; ; yyj3++ { 87174 if yyhl3 { 87175 if yyj3 >= l { 87176 break 87177 } 87178 } else { 87179 if r.CheckBreak() { 87180 break 87181 } 87182 } 87183 r.ReadMapElemKey() 87184 yys3 := z.StringView(r.DecodeStringAsBytes()) 87185 r.ReadMapElemValue() 87186 switch yys3 { 87187 case "Time": 87188 if r.TryDecodeAsNil() { 87189 x.Time = 0 87190 } else { 87191 x.Time = (int64)(r.DecodeInt64()) 87192 } 87193 case "Count": 87194 if r.TryDecodeAsNil() { 87195 if true && x.Count != nil { 87196 x.Count = nil 87197 } 87198 } else { 87199 if x.Count == nil { 87200 x.Count = new(int64) 87201 } 87202 87203 if false { 87204 } else { 87205 *x.Count = (int64)(r.DecodeInt64()) 87206 } 87207 } 87208 case "Message": 87209 if r.TryDecodeAsNil() { 87210 x.Message = "" 87211 } else { 87212 x.Message = (string)(r.DecodeString()) 87213 } 87214 case "Error": 87215 if r.TryDecodeAsNil() { 87216 x.Error = false 87217 } else { 87218 x.Error = (bool)(r.DecodeBool()) 87219 } 87220 case "Meta": 87221 if r.TryDecodeAsNil() { 87222 x.Meta = nil 87223 } else { 87224 if false { 87225 } else { 87226 z.F.DecMapStringIntfX(&x.Meta, d) 87227 } 87228 } 87229 case "EvalID": 87230 if r.TryDecodeAsNil() { 87231 if true && x.EvalID != nil { 87232 x.EvalID = nil 87233 } 87234 } else { 87235 if x.EvalID == nil { 87236 x.EvalID = new(string) 87237 } 87238 87239 if false { 87240 } else { 87241 *x.EvalID = (string)(r.DecodeString()) 87242 } 87243 } 87244 case "CreateIndex": 87245 if r.TryDecodeAsNil() { 87246 x.CreateIndex = 0 87247 } else { 87248 x.CreateIndex = (uint64)(r.DecodeUint64()) 87249 } 87250 default: 87251 z.DecStructFieldNotFound(-1, yys3) 87252 } // end switch yys3 87253 } // end for yyj3 87254 r.ReadMapEnd() 87255 } 87256 87257 func (x *ScalingEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 87258 var h codecSelfer100 87259 z, r := codec1978.GenHelperDecoder(d) 87260 _, _, _ = h, z, r 87261 var yyj14 int 87262 var yyb14 bool 87263 var yyhl14 bool = l >= 0 87264 yyj14++ 87265 if yyhl14 { 87266 yyb14 = yyj14 > l 87267 } else { 87268 yyb14 = r.CheckBreak() 87269 } 87270 if yyb14 { 87271 r.ReadArrayEnd() 87272 return 87273 } 87274 r.ReadArrayElem() 87275 if r.TryDecodeAsNil() { 87276 x.Time = 0 87277 } else { 87278 x.Time = (int64)(r.DecodeInt64()) 87279 } 87280 yyj14++ 87281 if yyhl14 { 87282 yyb14 = yyj14 > l 87283 } else { 87284 yyb14 = r.CheckBreak() 87285 } 87286 if yyb14 { 87287 r.ReadArrayEnd() 87288 return 87289 } 87290 r.ReadArrayElem() 87291 if r.TryDecodeAsNil() { 87292 if true && x.Count != nil { 87293 x.Count = nil 87294 } 87295 } else { 87296 if x.Count == nil { 87297 x.Count = new(int64) 87298 } 87299 87300 if false { 87301 } else { 87302 *x.Count = (int64)(r.DecodeInt64()) 87303 } 87304 } 87305 yyj14++ 87306 if yyhl14 { 87307 yyb14 = yyj14 > l 87308 } else { 87309 yyb14 = r.CheckBreak() 87310 } 87311 if yyb14 { 87312 r.ReadArrayEnd() 87313 return 87314 } 87315 r.ReadArrayElem() 87316 if r.TryDecodeAsNil() { 87317 x.Message = "" 87318 } else { 87319 x.Message = (string)(r.DecodeString()) 87320 } 87321 yyj14++ 87322 if yyhl14 { 87323 yyb14 = yyj14 > l 87324 } else { 87325 yyb14 = r.CheckBreak() 87326 } 87327 if yyb14 { 87328 r.ReadArrayEnd() 87329 return 87330 } 87331 r.ReadArrayElem() 87332 if r.TryDecodeAsNil() { 87333 x.Error = false 87334 } else { 87335 x.Error = (bool)(r.DecodeBool()) 87336 } 87337 yyj14++ 87338 if yyhl14 { 87339 yyb14 = yyj14 > l 87340 } else { 87341 yyb14 = r.CheckBreak() 87342 } 87343 if yyb14 { 87344 r.ReadArrayEnd() 87345 return 87346 } 87347 r.ReadArrayElem() 87348 if r.TryDecodeAsNil() { 87349 x.Meta = nil 87350 } else { 87351 if false { 87352 } else { 87353 z.F.DecMapStringIntfX(&x.Meta, d) 87354 } 87355 } 87356 yyj14++ 87357 if yyhl14 { 87358 yyb14 = yyj14 > l 87359 } else { 87360 yyb14 = r.CheckBreak() 87361 } 87362 if yyb14 { 87363 r.ReadArrayEnd() 87364 return 87365 } 87366 r.ReadArrayElem() 87367 if r.TryDecodeAsNil() { 87368 if true && x.EvalID != nil { 87369 x.EvalID = nil 87370 } 87371 } else { 87372 if x.EvalID == nil { 87373 x.EvalID = new(string) 87374 } 87375 87376 if false { 87377 } else { 87378 *x.EvalID = (string)(r.DecodeString()) 87379 } 87380 } 87381 yyj14++ 87382 if yyhl14 { 87383 yyb14 = yyj14 > l 87384 } else { 87385 yyb14 = r.CheckBreak() 87386 } 87387 if yyb14 { 87388 r.ReadArrayEnd() 87389 return 87390 } 87391 r.ReadArrayElem() 87392 if r.TryDecodeAsNil() { 87393 x.CreateIndex = 0 87394 } else { 87395 x.CreateIndex = (uint64)(r.DecodeUint64()) 87396 } 87397 for { 87398 yyj14++ 87399 if yyhl14 { 87400 yyb14 = yyj14 > l 87401 } else { 87402 yyb14 = r.CheckBreak() 87403 } 87404 if yyb14 { 87405 break 87406 } 87407 r.ReadArrayElem() 87408 z.DecStructFieldNotFound(yyj14-1, "") 87409 } 87410 r.ReadArrayEnd() 87411 } 87412 87413 func (x *ScalingEventRequest) CodecEncodeSelf(e *codec1978.Encoder) { 87414 var h codecSelfer100 87415 z, r := codec1978.GenHelperEncoder(e) 87416 _, _, _ = h, z, r 87417 if x == nil { 87418 r.EncodeNil() 87419 } else { 87420 if false { 87421 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87422 z.EncExtension(x, yyxt1) 87423 } else { 87424 yysep2 := !z.EncBinary() 87425 yy2arr2 := z.EncBasicHandle().StructToArray 87426 _, _ = yysep2, yy2arr2 87427 const yyr2 bool = false // struct tag has 'toArray' 87428 if yyr2 || yy2arr2 { 87429 r.WriteArrayStart(4) 87430 } else { 87431 r.WriteMapStart(4) 87432 } 87433 if yyr2 || yy2arr2 { 87434 r.WriteArrayElem() 87435 if false { 87436 } else { 87437 if z.EncBasicHandle().StringToRaw { 87438 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 87439 } else { 87440 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 87441 } 87442 } 87443 } else { 87444 r.WriteMapElemKey() 87445 if z.IsJSONHandle() { 87446 z.WriteStr("\"Namespace\"") 87447 } else { 87448 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 87449 } 87450 r.WriteMapElemValue() 87451 if false { 87452 } else { 87453 if z.EncBasicHandle().StringToRaw { 87454 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 87455 } else { 87456 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 87457 } 87458 } 87459 } 87460 if yyr2 || yy2arr2 { 87461 r.WriteArrayElem() 87462 if false { 87463 } else { 87464 if z.EncBasicHandle().StringToRaw { 87465 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 87466 } else { 87467 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 87468 } 87469 } 87470 } else { 87471 r.WriteMapElemKey() 87472 if z.IsJSONHandle() { 87473 z.WriteStr("\"JobID\"") 87474 } else { 87475 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 87476 } 87477 r.WriteMapElemValue() 87478 if false { 87479 } else { 87480 if z.EncBasicHandle().StringToRaw { 87481 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 87482 } else { 87483 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 87484 } 87485 } 87486 } 87487 if yyr2 || yy2arr2 { 87488 r.WriteArrayElem() 87489 if false { 87490 } else { 87491 if z.EncBasicHandle().StringToRaw { 87492 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 87493 } else { 87494 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 87495 } 87496 } 87497 } else { 87498 r.WriteMapElemKey() 87499 if z.IsJSONHandle() { 87500 z.WriteStr("\"TaskGroup\"") 87501 } else { 87502 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 87503 } 87504 r.WriteMapElemValue() 87505 if false { 87506 } else { 87507 if z.EncBasicHandle().StringToRaw { 87508 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 87509 } else { 87510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 87511 } 87512 } 87513 } 87514 var yyn12 bool 87515 if x.ScalingEvent == nil { 87516 yyn12 = true 87517 goto LABEL12 87518 } 87519 LABEL12: 87520 if yyr2 || yy2arr2 { 87521 if yyn12 { 87522 r.WriteArrayElem() 87523 r.EncodeNil() 87524 } else { 87525 r.WriteArrayElem() 87526 if x.ScalingEvent == nil { 87527 r.EncodeNil() 87528 } else { 87529 x.ScalingEvent.CodecEncodeSelf(e) 87530 } 87531 } 87532 } else { 87533 r.WriteMapElemKey() 87534 if z.IsJSONHandle() { 87535 z.WriteStr("\"ScalingEvent\"") 87536 } else { 87537 r.EncodeStringEnc(codecSelferCcUTF8100, `ScalingEvent`) 87538 } 87539 r.WriteMapElemValue() 87540 if yyn12 { 87541 r.EncodeNil() 87542 } else { 87543 if x.ScalingEvent == nil { 87544 r.EncodeNil() 87545 } else { 87546 x.ScalingEvent.CodecEncodeSelf(e) 87547 } 87548 } 87549 } 87550 if yyr2 || yy2arr2 { 87551 r.WriteArrayEnd() 87552 } else { 87553 r.WriteMapEnd() 87554 } 87555 } 87556 } 87557 } 87558 87559 func (x *ScalingEventRequest) CodecDecodeSelf(d *codec1978.Decoder) { 87560 var h codecSelfer100 87561 z, r := codec1978.GenHelperDecoder(d) 87562 _, _, _ = h, z, r 87563 if false { 87564 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87565 z.DecExtension(x, yyxt1) 87566 } else { 87567 yyct2 := r.ContainerType() 87568 if yyct2 == codecSelferValueTypeMap100 { 87569 yyl2 := r.ReadMapStart() 87570 if yyl2 == 0 { 87571 r.ReadMapEnd() 87572 } else { 87573 x.codecDecodeSelfFromMap(yyl2, d) 87574 } 87575 } else if yyct2 == codecSelferValueTypeArray100 { 87576 yyl2 := r.ReadArrayStart() 87577 if yyl2 == 0 { 87578 r.ReadArrayEnd() 87579 } else { 87580 x.codecDecodeSelfFromArray(yyl2, d) 87581 } 87582 } else { 87583 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87584 } 87585 } 87586 } 87587 87588 func (x *ScalingEventRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87589 var h codecSelfer100 87590 z, r := codec1978.GenHelperDecoder(d) 87591 _, _, _ = h, z, r 87592 var yyhl3 bool = l >= 0 87593 for yyj3 := 0; ; yyj3++ { 87594 if yyhl3 { 87595 if yyj3 >= l { 87596 break 87597 } 87598 } else { 87599 if r.CheckBreak() { 87600 break 87601 } 87602 } 87603 r.ReadMapElemKey() 87604 yys3 := z.StringView(r.DecodeStringAsBytes()) 87605 r.ReadMapElemValue() 87606 switch yys3 { 87607 case "Namespace": 87608 if r.TryDecodeAsNil() { 87609 x.Namespace = "" 87610 } else { 87611 x.Namespace = (string)(r.DecodeString()) 87612 } 87613 case "JobID": 87614 if r.TryDecodeAsNil() { 87615 x.JobID = "" 87616 } else { 87617 x.JobID = (string)(r.DecodeString()) 87618 } 87619 case "TaskGroup": 87620 if r.TryDecodeAsNil() { 87621 x.TaskGroup = "" 87622 } else { 87623 x.TaskGroup = (string)(r.DecodeString()) 87624 } 87625 case "ScalingEvent": 87626 if r.TryDecodeAsNil() { 87627 if true && x.ScalingEvent != nil { 87628 x.ScalingEvent = nil 87629 } 87630 } else { 87631 if x.ScalingEvent == nil { 87632 x.ScalingEvent = new(ScalingEvent) 87633 } 87634 87635 x.ScalingEvent.CodecDecodeSelf(d) 87636 } 87637 default: 87638 z.DecStructFieldNotFound(-1, yys3) 87639 } // end switch yys3 87640 } // end for yyj3 87641 r.ReadMapEnd() 87642 } 87643 87644 func (x *ScalingEventRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 87645 var h codecSelfer100 87646 z, r := codec1978.GenHelperDecoder(d) 87647 _, _, _ = h, z, r 87648 var yyj8 int 87649 var yyb8 bool 87650 var yyhl8 bool = l >= 0 87651 yyj8++ 87652 if yyhl8 { 87653 yyb8 = yyj8 > l 87654 } else { 87655 yyb8 = r.CheckBreak() 87656 } 87657 if yyb8 { 87658 r.ReadArrayEnd() 87659 return 87660 } 87661 r.ReadArrayElem() 87662 if r.TryDecodeAsNil() { 87663 x.Namespace = "" 87664 } else { 87665 x.Namespace = (string)(r.DecodeString()) 87666 } 87667 yyj8++ 87668 if yyhl8 { 87669 yyb8 = yyj8 > l 87670 } else { 87671 yyb8 = r.CheckBreak() 87672 } 87673 if yyb8 { 87674 r.ReadArrayEnd() 87675 return 87676 } 87677 r.ReadArrayElem() 87678 if r.TryDecodeAsNil() { 87679 x.JobID = "" 87680 } else { 87681 x.JobID = (string)(r.DecodeString()) 87682 } 87683 yyj8++ 87684 if yyhl8 { 87685 yyb8 = yyj8 > l 87686 } else { 87687 yyb8 = r.CheckBreak() 87688 } 87689 if yyb8 { 87690 r.ReadArrayEnd() 87691 return 87692 } 87693 r.ReadArrayElem() 87694 if r.TryDecodeAsNil() { 87695 x.TaskGroup = "" 87696 } else { 87697 x.TaskGroup = (string)(r.DecodeString()) 87698 } 87699 yyj8++ 87700 if yyhl8 { 87701 yyb8 = yyj8 > l 87702 } else { 87703 yyb8 = r.CheckBreak() 87704 } 87705 if yyb8 { 87706 r.ReadArrayEnd() 87707 return 87708 } 87709 r.ReadArrayElem() 87710 if r.TryDecodeAsNil() { 87711 if true && x.ScalingEvent != nil { 87712 x.ScalingEvent = nil 87713 } 87714 } else { 87715 if x.ScalingEvent == nil { 87716 x.ScalingEvent = new(ScalingEvent) 87717 } 87718 87719 x.ScalingEvent.CodecDecodeSelf(d) 87720 } 87721 for { 87722 yyj8++ 87723 if yyhl8 { 87724 yyb8 = yyj8 > l 87725 } else { 87726 yyb8 = r.CheckBreak() 87727 } 87728 if yyb8 { 87729 break 87730 } 87731 r.ReadArrayElem() 87732 z.DecStructFieldNotFound(yyj8-1, "") 87733 } 87734 r.ReadArrayEnd() 87735 } 87736 87737 func (x *ScalingPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 87738 var h codecSelfer100 87739 z, r := codec1978.GenHelperEncoder(e) 87740 _, _, _ = h, z, r 87741 if x == nil { 87742 r.EncodeNil() 87743 } else { 87744 if false { 87745 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87746 z.EncExtension(x, yyxt1) 87747 } else { 87748 yysep2 := !z.EncBinary() 87749 yy2arr2 := z.EncBasicHandle().StructToArray 87750 _, _ = yysep2, yy2arr2 87751 const yyr2 bool = false // struct tag has 'toArray' 87752 if yyr2 || yy2arr2 { 87753 r.WriteArrayStart(8) 87754 } else { 87755 r.WriteMapStart(8) 87756 } 87757 if yyr2 || yy2arr2 { 87758 r.WriteArrayElem() 87759 if false { 87760 } else { 87761 if z.EncBasicHandle().StringToRaw { 87762 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 87763 } else { 87764 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 87765 } 87766 } 87767 } else { 87768 r.WriteMapElemKey() 87769 if z.IsJSONHandle() { 87770 z.WriteStr("\"ID\"") 87771 } else { 87772 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 87773 } 87774 r.WriteMapElemValue() 87775 if false { 87776 } else { 87777 if z.EncBasicHandle().StringToRaw { 87778 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 87779 } else { 87780 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 87781 } 87782 } 87783 } 87784 if yyr2 || yy2arr2 { 87785 r.WriteArrayElem() 87786 if x.Target == nil { 87787 r.EncodeNil() 87788 } else { 87789 if false { 87790 } else { 87791 z.F.EncMapStringStringV(x.Target, e) 87792 } 87793 } 87794 } else { 87795 r.WriteMapElemKey() 87796 if z.IsJSONHandle() { 87797 z.WriteStr("\"Target\"") 87798 } else { 87799 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 87800 } 87801 r.WriteMapElemValue() 87802 if x.Target == nil { 87803 r.EncodeNil() 87804 } else { 87805 if false { 87806 } else { 87807 z.F.EncMapStringStringV(x.Target, e) 87808 } 87809 } 87810 } 87811 if yyr2 || yy2arr2 { 87812 r.WriteArrayElem() 87813 if x.Policy == nil { 87814 r.EncodeNil() 87815 } else { 87816 if false { 87817 } else { 87818 z.F.EncMapStringIntfV(x.Policy, e) 87819 } 87820 } 87821 } else { 87822 r.WriteMapElemKey() 87823 if z.IsJSONHandle() { 87824 z.WriteStr("\"Policy\"") 87825 } else { 87826 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 87827 } 87828 r.WriteMapElemValue() 87829 if x.Policy == nil { 87830 r.EncodeNil() 87831 } else { 87832 if false { 87833 } else { 87834 z.F.EncMapStringIntfV(x.Policy, e) 87835 } 87836 } 87837 } 87838 if yyr2 || yy2arr2 { 87839 r.WriteArrayElem() 87840 if false { 87841 } else { 87842 r.EncodeInt(int64(x.Min)) 87843 } 87844 } else { 87845 r.WriteMapElemKey() 87846 if z.IsJSONHandle() { 87847 z.WriteStr("\"Min\"") 87848 } else { 87849 r.EncodeStringEnc(codecSelferCcUTF8100, `Min`) 87850 } 87851 r.WriteMapElemValue() 87852 if false { 87853 } else { 87854 r.EncodeInt(int64(x.Min)) 87855 } 87856 } 87857 if yyr2 || yy2arr2 { 87858 r.WriteArrayElem() 87859 if false { 87860 } else { 87861 r.EncodeInt(int64(x.Max)) 87862 } 87863 } else { 87864 r.WriteMapElemKey() 87865 if z.IsJSONHandle() { 87866 z.WriteStr("\"Max\"") 87867 } else { 87868 r.EncodeStringEnc(codecSelferCcUTF8100, `Max`) 87869 } 87870 r.WriteMapElemValue() 87871 if false { 87872 } else { 87873 r.EncodeInt(int64(x.Max)) 87874 } 87875 } 87876 if yyr2 || yy2arr2 { 87877 r.WriteArrayElem() 87878 if false { 87879 } else { 87880 r.EncodeBool(bool(x.Enabled)) 87881 } 87882 } else { 87883 r.WriteMapElemKey() 87884 if z.IsJSONHandle() { 87885 z.WriteStr("\"Enabled\"") 87886 } else { 87887 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 87888 } 87889 r.WriteMapElemValue() 87890 if false { 87891 } else { 87892 r.EncodeBool(bool(x.Enabled)) 87893 } 87894 } 87895 if yyr2 || yy2arr2 { 87896 r.WriteArrayElem() 87897 if false { 87898 } else { 87899 r.EncodeUint(uint64(x.CreateIndex)) 87900 } 87901 } else { 87902 r.WriteMapElemKey() 87903 if z.IsJSONHandle() { 87904 z.WriteStr("\"CreateIndex\"") 87905 } else { 87906 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 87907 } 87908 r.WriteMapElemValue() 87909 if false { 87910 } else { 87911 r.EncodeUint(uint64(x.CreateIndex)) 87912 } 87913 } 87914 if yyr2 || yy2arr2 { 87915 r.WriteArrayElem() 87916 if false { 87917 } else { 87918 r.EncodeUint(uint64(x.ModifyIndex)) 87919 } 87920 } else { 87921 r.WriteMapElemKey() 87922 if z.IsJSONHandle() { 87923 z.WriteStr("\"ModifyIndex\"") 87924 } else { 87925 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 87926 } 87927 r.WriteMapElemValue() 87928 if false { 87929 } else { 87930 r.EncodeUint(uint64(x.ModifyIndex)) 87931 } 87932 } 87933 if yyr2 || yy2arr2 { 87934 r.WriteArrayEnd() 87935 } else { 87936 r.WriteMapEnd() 87937 } 87938 } 87939 } 87940 } 87941 87942 func (x *ScalingPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 87943 var h codecSelfer100 87944 z, r := codec1978.GenHelperDecoder(d) 87945 _, _, _ = h, z, r 87946 if false { 87947 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 87948 z.DecExtension(x, yyxt1) 87949 } else { 87950 yyct2 := r.ContainerType() 87951 if yyct2 == codecSelferValueTypeMap100 { 87952 yyl2 := r.ReadMapStart() 87953 if yyl2 == 0 { 87954 r.ReadMapEnd() 87955 } else { 87956 x.codecDecodeSelfFromMap(yyl2, d) 87957 } 87958 } else if yyct2 == codecSelferValueTypeArray100 { 87959 yyl2 := r.ReadArrayStart() 87960 if yyl2 == 0 { 87961 r.ReadArrayEnd() 87962 } else { 87963 x.codecDecodeSelfFromArray(yyl2, d) 87964 } 87965 } else { 87966 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 87967 } 87968 } 87969 } 87970 87971 func (x *ScalingPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 87972 var h codecSelfer100 87973 z, r := codec1978.GenHelperDecoder(d) 87974 _, _, _ = h, z, r 87975 var yyhl3 bool = l >= 0 87976 for yyj3 := 0; ; yyj3++ { 87977 if yyhl3 { 87978 if yyj3 >= l { 87979 break 87980 } 87981 } else { 87982 if r.CheckBreak() { 87983 break 87984 } 87985 } 87986 r.ReadMapElemKey() 87987 yys3 := z.StringView(r.DecodeStringAsBytes()) 87988 r.ReadMapElemValue() 87989 switch yys3 { 87990 case "ID": 87991 if r.TryDecodeAsNil() { 87992 x.ID = "" 87993 } else { 87994 x.ID = (string)(r.DecodeString()) 87995 } 87996 case "Target": 87997 if r.TryDecodeAsNil() { 87998 x.Target = nil 87999 } else { 88000 if false { 88001 } else { 88002 z.F.DecMapStringStringX(&x.Target, d) 88003 } 88004 } 88005 case "Policy": 88006 if r.TryDecodeAsNil() { 88007 x.Policy = nil 88008 } else { 88009 if false { 88010 } else { 88011 z.F.DecMapStringIntfX(&x.Policy, d) 88012 } 88013 } 88014 case "Min": 88015 if r.TryDecodeAsNil() { 88016 x.Min = 0 88017 } else { 88018 x.Min = (int64)(r.DecodeInt64()) 88019 } 88020 case "Max": 88021 if r.TryDecodeAsNil() { 88022 x.Max = 0 88023 } else { 88024 x.Max = (int64)(r.DecodeInt64()) 88025 } 88026 case "Enabled": 88027 if r.TryDecodeAsNil() { 88028 x.Enabled = false 88029 } else { 88030 x.Enabled = (bool)(r.DecodeBool()) 88031 } 88032 case "CreateIndex": 88033 if r.TryDecodeAsNil() { 88034 x.CreateIndex = 0 88035 } else { 88036 x.CreateIndex = (uint64)(r.DecodeUint64()) 88037 } 88038 case "ModifyIndex": 88039 if r.TryDecodeAsNil() { 88040 x.ModifyIndex = 0 88041 } else { 88042 x.ModifyIndex = (uint64)(r.DecodeUint64()) 88043 } 88044 default: 88045 z.DecStructFieldNotFound(-1, yys3) 88046 } // end switch yys3 88047 } // end for yyj3 88048 r.ReadMapEnd() 88049 } 88050 88051 func (x *ScalingPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 88052 var h codecSelfer100 88053 z, r := codec1978.GenHelperDecoder(d) 88054 _, _, _ = h, z, r 88055 var yyj14 int 88056 var yyb14 bool 88057 var yyhl14 bool = l >= 0 88058 yyj14++ 88059 if yyhl14 { 88060 yyb14 = yyj14 > l 88061 } else { 88062 yyb14 = r.CheckBreak() 88063 } 88064 if yyb14 { 88065 r.ReadArrayEnd() 88066 return 88067 } 88068 r.ReadArrayElem() 88069 if r.TryDecodeAsNil() { 88070 x.ID = "" 88071 } else { 88072 x.ID = (string)(r.DecodeString()) 88073 } 88074 yyj14++ 88075 if yyhl14 { 88076 yyb14 = yyj14 > l 88077 } else { 88078 yyb14 = r.CheckBreak() 88079 } 88080 if yyb14 { 88081 r.ReadArrayEnd() 88082 return 88083 } 88084 r.ReadArrayElem() 88085 if r.TryDecodeAsNil() { 88086 x.Target = nil 88087 } else { 88088 if false { 88089 } else { 88090 z.F.DecMapStringStringX(&x.Target, d) 88091 } 88092 } 88093 yyj14++ 88094 if yyhl14 { 88095 yyb14 = yyj14 > l 88096 } else { 88097 yyb14 = r.CheckBreak() 88098 } 88099 if yyb14 { 88100 r.ReadArrayEnd() 88101 return 88102 } 88103 r.ReadArrayElem() 88104 if r.TryDecodeAsNil() { 88105 x.Policy = nil 88106 } else { 88107 if false { 88108 } else { 88109 z.F.DecMapStringIntfX(&x.Policy, d) 88110 } 88111 } 88112 yyj14++ 88113 if yyhl14 { 88114 yyb14 = yyj14 > l 88115 } else { 88116 yyb14 = r.CheckBreak() 88117 } 88118 if yyb14 { 88119 r.ReadArrayEnd() 88120 return 88121 } 88122 r.ReadArrayElem() 88123 if r.TryDecodeAsNil() { 88124 x.Min = 0 88125 } else { 88126 x.Min = (int64)(r.DecodeInt64()) 88127 } 88128 yyj14++ 88129 if yyhl14 { 88130 yyb14 = yyj14 > l 88131 } else { 88132 yyb14 = r.CheckBreak() 88133 } 88134 if yyb14 { 88135 r.ReadArrayEnd() 88136 return 88137 } 88138 r.ReadArrayElem() 88139 if r.TryDecodeAsNil() { 88140 x.Max = 0 88141 } else { 88142 x.Max = (int64)(r.DecodeInt64()) 88143 } 88144 yyj14++ 88145 if yyhl14 { 88146 yyb14 = yyj14 > l 88147 } else { 88148 yyb14 = r.CheckBreak() 88149 } 88150 if yyb14 { 88151 r.ReadArrayEnd() 88152 return 88153 } 88154 r.ReadArrayElem() 88155 if r.TryDecodeAsNil() { 88156 x.Enabled = false 88157 } else { 88158 x.Enabled = (bool)(r.DecodeBool()) 88159 } 88160 yyj14++ 88161 if yyhl14 { 88162 yyb14 = yyj14 > l 88163 } else { 88164 yyb14 = r.CheckBreak() 88165 } 88166 if yyb14 { 88167 r.ReadArrayEnd() 88168 return 88169 } 88170 r.ReadArrayElem() 88171 if r.TryDecodeAsNil() { 88172 x.CreateIndex = 0 88173 } else { 88174 x.CreateIndex = (uint64)(r.DecodeUint64()) 88175 } 88176 yyj14++ 88177 if yyhl14 { 88178 yyb14 = yyj14 > l 88179 } else { 88180 yyb14 = r.CheckBreak() 88181 } 88182 if yyb14 { 88183 r.ReadArrayEnd() 88184 return 88185 } 88186 r.ReadArrayElem() 88187 if r.TryDecodeAsNil() { 88188 x.ModifyIndex = 0 88189 } else { 88190 x.ModifyIndex = (uint64)(r.DecodeUint64()) 88191 } 88192 for { 88193 yyj14++ 88194 if yyhl14 { 88195 yyb14 = yyj14 > l 88196 } else { 88197 yyb14 = r.CheckBreak() 88198 } 88199 if yyb14 { 88200 break 88201 } 88202 r.ReadArrayElem() 88203 z.DecStructFieldNotFound(yyj14-1, "") 88204 } 88205 r.ReadArrayEnd() 88206 } 88207 88208 func (x *ScalingPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { 88209 var h codecSelfer100 88210 z, r := codec1978.GenHelperEncoder(e) 88211 _, _, _ = h, z, r 88212 if x == nil { 88213 r.EncodeNil() 88214 } else { 88215 if false { 88216 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88217 z.EncExtension(x, yyxt1) 88218 } else { 88219 yysep2 := !z.EncBinary() 88220 yy2arr2 := z.EncBasicHandle().StructToArray 88221 _, _ = yysep2, yy2arr2 88222 const yyr2 bool = false // struct tag has 'toArray' 88223 if yyr2 || yy2arr2 { 88224 r.WriteArrayStart(5) 88225 } else { 88226 r.WriteMapStart(5) 88227 } 88228 if yyr2 || yy2arr2 { 88229 r.WriteArrayElem() 88230 if false { 88231 } else { 88232 if z.EncBasicHandle().StringToRaw { 88233 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 88234 } else { 88235 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 88236 } 88237 } 88238 } else { 88239 r.WriteMapElemKey() 88240 if z.IsJSONHandle() { 88241 z.WriteStr("\"ID\"") 88242 } else { 88243 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 88244 } 88245 r.WriteMapElemValue() 88246 if false { 88247 } else { 88248 if z.EncBasicHandle().StringToRaw { 88249 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 88250 } else { 88251 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 88252 } 88253 } 88254 } 88255 if yyr2 || yy2arr2 { 88256 r.WriteArrayElem() 88257 if false { 88258 } else { 88259 r.EncodeBool(bool(x.Enabled)) 88260 } 88261 } else { 88262 r.WriteMapElemKey() 88263 if z.IsJSONHandle() { 88264 z.WriteStr("\"Enabled\"") 88265 } else { 88266 r.EncodeStringEnc(codecSelferCcUTF8100, `Enabled`) 88267 } 88268 r.WriteMapElemValue() 88269 if false { 88270 } else { 88271 r.EncodeBool(bool(x.Enabled)) 88272 } 88273 } 88274 if yyr2 || yy2arr2 { 88275 r.WriteArrayElem() 88276 if x.Target == nil { 88277 r.EncodeNil() 88278 } else { 88279 if false { 88280 } else { 88281 z.F.EncMapStringStringV(x.Target, e) 88282 } 88283 } 88284 } else { 88285 r.WriteMapElemKey() 88286 if z.IsJSONHandle() { 88287 z.WriteStr("\"Target\"") 88288 } else { 88289 r.EncodeStringEnc(codecSelferCcUTF8100, `Target`) 88290 } 88291 r.WriteMapElemValue() 88292 if x.Target == nil { 88293 r.EncodeNil() 88294 } else { 88295 if false { 88296 } else { 88297 z.F.EncMapStringStringV(x.Target, e) 88298 } 88299 } 88300 } 88301 if yyr2 || yy2arr2 { 88302 r.WriteArrayElem() 88303 if false { 88304 } else { 88305 r.EncodeUint(uint64(x.CreateIndex)) 88306 } 88307 } else { 88308 r.WriteMapElemKey() 88309 if z.IsJSONHandle() { 88310 z.WriteStr("\"CreateIndex\"") 88311 } else { 88312 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 88313 } 88314 r.WriteMapElemValue() 88315 if false { 88316 } else { 88317 r.EncodeUint(uint64(x.CreateIndex)) 88318 } 88319 } 88320 if yyr2 || yy2arr2 { 88321 r.WriteArrayElem() 88322 if false { 88323 } else { 88324 r.EncodeUint(uint64(x.ModifyIndex)) 88325 } 88326 } else { 88327 r.WriteMapElemKey() 88328 if z.IsJSONHandle() { 88329 z.WriteStr("\"ModifyIndex\"") 88330 } else { 88331 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 88332 } 88333 r.WriteMapElemValue() 88334 if false { 88335 } else { 88336 r.EncodeUint(uint64(x.ModifyIndex)) 88337 } 88338 } 88339 if yyr2 || yy2arr2 { 88340 r.WriteArrayEnd() 88341 } else { 88342 r.WriteMapEnd() 88343 } 88344 } 88345 } 88346 } 88347 88348 func (x *ScalingPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { 88349 var h codecSelfer100 88350 z, r := codec1978.GenHelperDecoder(d) 88351 _, _, _ = h, z, r 88352 if false { 88353 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88354 z.DecExtension(x, yyxt1) 88355 } else { 88356 yyct2 := r.ContainerType() 88357 if yyct2 == codecSelferValueTypeMap100 { 88358 yyl2 := r.ReadMapStart() 88359 if yyl2 == 0 { 88360 r.ReadMapEnd() 88361 } else { 88362 x.codecDecodeSelfFromMap(yyl2, d) 88363 } 88364 } else if yyct2 == codecSelferValueTypeArray100 { 88365 yyl2 := r.ReadArrayStart() 88366 if yyl2 == 0 { 88367 r.ReadArrayEnd() 88368 } else { 88369 x.codecDecodeSelfFromArray(yyl2, d) 88370 } 88371 } else { 88372 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 88373 } 88374 } 88375 } 88376 88377 func (x *ScalingPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 88378 var h codecSelfer100 88379 z, r := codec1978.GenHelperDecoder(d) 88380 _, _, _ = h, z, r 88381 var yyhl3 bool = l >= 0 88382 for yyj3 := 0; ; yyj3++ { 88383 if yyhl3 { 88384 if yyj3 >= l { 88385 break 88386 } 88387 } else { 88388 if r.CheckBreak() { 88389 break 88390 } 88391 } 88392 r.ReadMapElemKey() 88393 yys3 := z.StringView(r.DecodeStringAsBytes()) 88394 r.ReadMapElemValue() 88395 switch yys3 { 88396 case "ID": 88397 if r.TryDecodeAsNil() { 88398 x.ID = "" 88399 } else { 88400 x.ID = (string)(r.DecodeString()) 88401 } 88402 case "Enabled": 88403 if r.TryDecodeAsNil() { 88404 x.Enabled = false 88405 } else { 88406 x.Enabled = (bool)(r.DecodeBool()) 88407 } 88408 case "Target": 88409 if r.TryDecodeAsNil() { 88410 x.Target = nil 88411 } else { 88412 if false { 88413 } else { 88414 z.F.DecMapStringStringX(&x.Target, d) 88415 } 88416 } 88417 case "CreateIndex": 88418 if r.TryDecodeAsNil() { 88419 x.CreateIndex = 0 88420 } else { 88421 x.CreateIndex = (uint64)(r.DecodeUint64()) 88422 } 88423 case "ModifyIndex": 88424 if r.TryDecodeAsNil() { 88425 x.ModifyIndex = 0 88426 } else { 88427 x.ModifyIndex = (uint64)(r.DecodeUint64()) 88428 } 88429 default: 88430 z.DecStructFieldNotFound(-1, yys3) 88431 } // end switch yys3 88432 } // end for yyj3 88433 r.ReadMapEnd() 88434 } 88435 88436 func (x *ScalingPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 88437 var h codecSelfer100 88438 z, r := codec1978.GenHelperDecoder(d) 88439 _, _, _ = h, z, r 88440 var yyj10 int 88441 var yyb10 bool 88442 var yyhl10 bool = l >= 0 88443 yyj10++ 88444 if yyhl10 { 88445 yyb10 = yyj10 > l 88446 } else { 88447 yyb10 = r.CheckBreak() 88448 } 88449 if yyb10 { 88450 r.ReadArrayEnd() 88451 return 88452 } 88453 r.ReadArrayElem() 88454 if r.TryDecodeAsNil() { 88455 x.ID = "" 88456 } else { 88457 x.ID = (string)(r.DecodeString()) 88458 } 88459 yyj10++ 88460 if yyhl10 { 88461 yyb10 = yyj10 > l 88462 } else { 88463 yyb10 = r.CheckBreak() 88464 } 88465 if yyb10 { 88466 r.ReadArrayEnd() 88467 return 88468 } 88469 r.ReadArrayElem() 88470 if r.TryDecodeAsNil() { 88471 x.Enabled = false 88472 } else { 88473 x.Enabled = (bool)(r.DecodeBool()) 88474 } 88475 yyj10++ 88476 if yyhl10 { 88477 yyb10 = yyj10 > l 88478 } else { 88479 yyb10 = r.CheckBreak() 88480 } 88481 if yyb10 { 88482 r.ReadArrayEnd() 88483 return 88484 } 88485 r.ReadArrayElem() 88486 if r.TryDecodeAsNil() { 88487 x.Target = nil 88488 } else { 88489 if false { 88490 } else { 88491 z.F.DecMapStringStringX(&x.Target, d) 88492 } 88493 } 88494 yyj10++ 88495 if yyhl10 { 88496 yyb10 = yyj10 > l 88497 } else { 88498 yyb10 = r.CheckBreak() 88499 } 88500 if yyb10 { 88501 r.ReadArrayEnd() 88502 return 88503 } 88504 r.ReadArrayElem() 88505 if r.TryDecodeAsNil() { 88506 x.CreateIndex = 0 88507 } else { 88508 x.CreateIndex = (uint64)(r.DecodeUint64()) 88509 } 88510 yyj10++ 88511 if yyhl10 { 88512 yyb10 = yyj10 > l 88513 } else { 88514 yyb10 = r.CheckBreak() 88515 } 88516 if yyb10 { 88517 r.ReadArrayEnd() 88518 return 88519 } 88520 r.ReadArrayElem() 88521 if r.TryDecodeAsNil() { 88522 x.ModifyIndex = 0 88523 } else { 88524 x.ModifyIndex = (uint64)(r.DecodeUint64()) 88525 } 88526 for { 88527 yyj10++ 88528 if yyhl10 { 88529 yyb10 = yyj10 > l 88530 } else { 88531 yyb10 = r.CheckBreak() 88532 } 88533 if yyb10 { 88534 break 88535 } 88536 r.ReadArrayElem() 88537 z.DecStructFieldNotFound(yyj10-1, "") 88538 } 88539 r.ReadArrayEnd() 88540 } 88541 88542 func (x *RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 88543 var h codecSelfer100 88544 z, r := codec1978.GenHelperEncoder(e) 88545 _, _, _ = h, z, r 88546 if x == nil { 88547 r.EncodeNil() 88548 } else { 88549 if false { 88550 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88551 z.EncExtension(x, yyxt1) 88552 } else { 88553 yysep2 := !z.EncBinary() 88554 yy2arr2 := z.EncBasicHandle().StructToArray 88555 _, _ = yysep2, yy2arr2 88556 const yyr2 bool = false // struct tag has 'toArray' 88557 if yyr2 || yy2arr2 { 88558 r.WriteArrayStart(4) 88559 } else { 88560 r.WriteMapStart(4) 88561 } 88562 if yyr2 || yy2arr2 { 88563 r.WriteArrayElem() 88564 if false { 88565 } else { 88566 r.EncodeInt(int64(x.Attempts)) 88567 } 88568 } else { 88569 r.WriteMapElemKey() 88570 if z.IsJSONHandle() { 88571 z.WriteStr("\"Attempts\"") 88572 } else { 88573 r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) 88574 } 88575 r.WriteMapElemValue() 88576 if false { 88577 } else { 88578 r.EncodeInt(int64(x.Attempts)) 88579 } 88580 } 88581 if yyr2 || yy2arr2 { 88582 r.WriteArrayElem() 88583 if false { 88584 } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { 88585 z.EncExtension(x.Interval, yyxt7) 88586 } else { 88587 r.EncodeInt(int64(x.Interval)) 88588 } 88589 } else { 88590 r.WriteMapElemKey() 88591 if z.IsJSONHandle() { 88592 z.WriteStr("\"Interval\"") 88593 } else { 88594 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 88595 } 88596 r.WriteMapElemValue() 88597 if false { 88598 } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { 88599 z.EncExtension(x.Interval, yyxt8) 88600 } else { 88601 r.EncodeInt(int64(x.Interval)) 88602 } 88603 } 88604 if yyr2 || yy2arr2 { 88605 r.WriteArrayElem() 88606 if false { 88607 } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { 88608 z.EncExtension(x.Delay, yyxt10) 88609 } else { 88610 r.EncodeInt(int64(x.Delay)) 88611 } 88612 } else { 88613 r.WriteMapElemKey() 88614 if z.IsJSONHandle() { 88615 z.WriteStr("\"Delay\"") 88616 } else { 88617 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 88618 } 88619 r.WriteMapElemValue() 88620 if false { 88621 } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { 88622 z.EncExtension(x.Delay, yyxt11) 88623 } else { 88624 r.EncodeInt(int64(x.Delay)) 88625 } 88626 } 88627 if yyr2 || yy2arr2 { 88628 r.WriteArrayElem() 88629 if false { 88630 } else { 88631 if z.EncBasicHandle().StringToRaw { 88632 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 88633 } else { 88634 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 88635 } 88636 } 88637 } else { 88638 r.WriteMapElemKey() 88639 if z.IsJSONHandle() { 88640 z.WriteStr("\"Mode\"") 88641 } else { 88642 r.EncodeStringEnc(codecSelferCcUTF8100, `Mode`) 88643 } 88644 r.WriteMapElemValue() 88645 if false { 88646 } else { 88647 if z.EncBasicHandle().StringToRaw { 88648 r.EncodeStringBytesRaw(z.BytesView(string(x.Mode))) 88649 } else { 88650 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Mode)) 88651 } 88652 } 88653 } 88654 if yyr2 || yy2arr2 { 88655 r.WriteArrayEnd() 88656 } else { 88657 r.WriteMapEnd() 88658 } 88659 } 88660 } 88661 } 88662 88663 func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 88664 var h codecSelfer100 88665 z, r := codec1978.GenHelperDecoder(d) 88666 _, _, _ = h, z, r 88667 if false { 88668 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88669 z.DecExtension(x, yyxt1) 88670 } else { 88671 yyct2 := r.ContainerType() 88672 if yyct2 == codecSelferValueTypeMap100 { 88673 yyl2 := r.ReadMapStart() 88674 if yyl2 == 0 { 88675 r.ReadMapEnd() 88676 } else { 88677 x.codecDecodeSelfFromMap(yyl2, d) 88678 } 88679 } else if yyct2 == codecSelferValueTypeArray100 { 88680 yyl2 := r.ReadArrayStart() 88681 if yyl2 == 0 { 88682 r.ReadArrayEnd() 88683 } else { 88684 x.codecDecodeSelfFromArray(yyl2, d) 88685 } 88686 } else { 88687 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 88688 } 88689 } 88690 } 88691 88692 func (x *RestartPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 88693 var h codecSelfer100 88694 z, r := codec1978.GenHelperDecoder(d) 88695 _, _, _ = h, z, r 88696 var yyhl3 bool = l >= 0 88697 for yyj3 := 0; ; yyj3++ { 88698 if yyhl3 { 88699 if yyj3 >= l { 88700 break 88701 } 88702 } else { 88703 if r.CheckBreak() { 88704 break 88705 } 88706 } 88707 r.ReadMapElemKey() 88708 yys3 := z.StringView(r.DecodeStringAsBytes()) 88709 r.ReadMapElemValue() 88710 switch yys3 { 88711 case "Attempts": 88712 if r.TryDecodeAsNil() { 88713 x.Attempts = 0 88714 } else { 88715 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 88716 } 88717 case "Interval": 88718 if r.TryDecodeAsNil() { 88719 x.Interval = 0 88720 } else { 88721 if false { 88722 } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { 88723 z.DecExtension(x.Interval, yyxt6) 88724 } else { 88725 x.Interval = (time.Duration)(r.DecodeInt64()) 88726 } 88727 } 88728 case "Delay": 88729 if r.TryDecodeAsNil() { 88730 x.Delay = 0 88731 } else { 88732 if false { 88733 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 88734 z.DecExtension(x.Delay, yyxt8) 88735 } else { 88736 x.Delay = (time.Duration)(r.DecodeInt64()) 88737 } 88738 } 88739 case "Mode": 88740 if r.TryDecodeAsNil() { 88741 x.Mode = "" 88742 } else { 88743 x.Mode = (string)(r.DecodeString()) 88744 } 88745 default: 88746 z.DecStructFieldNotFound(-1, yys3) 88747 } // end switch yys3 88748 } // end for yyj3 88749 r.ReadMapEnd() 88750 } 88751 88752 func (x *RestartPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 88753 var h codecSelfer100 88754 z, r := codec1978.GenHelperDecoder(d) 88755 _, _, _ = h, z, r 88756 var yyj10 int 88757 var yyb10 bool 88758 var yyhl10 bool = l >= 0 88759 yyj10++ 88760 if yyhl10 { 88761 yyb10 = yyj10 > l 88762 } else { 88763 yyb10 = r.CheckBreak() 88764 } 88765 if yyb10 { 88766 r.ReadArrayEnd() 88767 return 88768 } 88769 r.ReadArrayElem() 88770 if r.TryDecodeAsNil() { 88771 x.Attempts = 0 88772 } else { 88773 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 88774 } 88775 yyj10++ 88776 if yyhl10 { 88777 yyb10 = yyj10 > l 88778 } else { 88779 yyb10 = r.CheckBreak() 88780 } 88781 if yyb10 { 88782 r.ReadArrayEnd() 88783 return 88784 } 88785 r.ReadArrayElem() 88786 if r.TryDecodeAsNil() { 88787 x.Interval = 0 88788 } else { 88789 if false { 88790 } else if yyxt13 := z.Extension(z.I2Rtid(x.Interval)); yyxt13 != nil { 88791 z.DecExtension(x.Interval, yyxt13) 88792 } else { 88793 x.Interval = (time.Duration)(r.DecodeInt64()) 88794 } 88795 } 88796 yyj10++ 88797 if yyhl10 { 88798 yyb10 = yyj10 > l 88799 } else { 88800 yyb10 = r.CheckBreak() 88801 } 88802 if yyb10 { 88803 r.ReadArrayEnd() 88804 return 88805 } 88806 r.ReadArrayElem() 88807 if r.TryDecodeAsNil() { 88808 x.Delay = 0 88809 } else { 88810 if false { 88811 } else if yyxt15 := z.Extension(z.I2Rtid(x.Delay)); yyxt15 != nil { 88812 z.DecExtension(x.Delay, yyxt15) 88813 } else { 88814 x.Delay = (time.Duration)(r.DecodeInt64()) 88815 } 88816 } 88817 yyj10++ 88818 if yyhl10 { 88819 yyb10 = yyj10 > l 88820 } else { 88821 yyb10 = r.CheckBreak() 88822 } 88823 if yyb10 { 88824 r.ReadArrayEnd() 88825 return 88826 } 88827 r.ReadArrayElem() 88828 if r.TryDecodeAsNil() { 88829 x.Mode = "" 88830 } else { 88831 x.Mode = (string)(r.DecodeString()) 88832 } 88833 for { 88834 yyj10++ 88835 if yyhl10 { 88836 yyb10 = yyj10 > l 88837 } else { 88838 yyb10 = r.CheckBreak() 88839 } 88840 if yyb10 { 88841 break 88842 } 88843 r.ReadArrayElem() 88844 z.DecStructFieldNotFound(yyj10-1, "") 88845 } 88846 r.ReadArrayEnd() 88847 } 88848 88849 func (x *ReschedulePolicy) CodecEncodeSelf(e *codec1978.Encoder) { 88850 var h codecSelfer100 88851 z, r := codec1978.GenHelperEncoder(e) 88852 _, _, _ = h, z, r 88853 if x == nil { 88854 r.EncodeNil() 88855 } else { 88856 if false { 88857 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 88858 z.EncExtension(x, yyxt1) 88859 } else { 88860 yysep2 := !z.EncBinary() 88861 yy2arr2 := z.EncBasicHandle().StructToArray 88862 _, _ = yysep2, yy2arr2 88863 const yyr2 bool = false // struct tag has 'toArray' 88864 if yyr2 || yy2arr2 { 88865 r.WriteArrayStart(6) 88866 } else { 88867 r.WriteMapStart(6) 88868 } 88869 if yyr2 || yy2arr2 { 88870 r.WriteArrayElem() 88871 if false { 88872 } else { 88873 r.EncodeInt(int64(x.Attempts)) 88874 } 88875 } else { 88876 r.WriteMapElemKey() 88877 if z.IsJSONHandle() { 88878 z.WriteStr("\"Attempts\"") 88879 } else { 88880 r.EncodeStringEnc(codecSelferCcUTF8100, `Attempts`) 88881 } 88882 r.WriteMapElemValue() 88883 if false { 88884 } else { 88885 r.EncodeInt(int64(x.Attempts)) 88886 } 88887 } 88888 if yyr2 || yy2arr2 { 88889 r.WriteArrayElem() 88890 if false { 88891 } else if yyxt7 := z.Extension(z.I2Rtid(x.Interval)); yyxt7 != nil { 88892 z.EncExtension(x.Interval, yyxt7) 88893 } else { 88894 r.EncodeInt(int64(x.Interval)) 88895 } 88896 } else { 88897 r.WriteMapElemKey() 88898 if z.IsJSONHandle() { 88899 z.WriteStr("\"Interval\"") 88900 } else { 88901 r.EncodeStringEnc(codecSelferCcUTF8100, `Interval`) 88902 } 88903 r.WriteMapElemValue() 88904 if false { 88905 } else if yyxt8 := z.Extension(z.I2Rtid(x.Interval)); yyxt8 != nil { 88906 z.EncExtension(x.Interval, yyxt8) 88907 } else { 88908 r.EncodeInt(int64(x.Interval)) 88909 } 88910 } 88911 if yyr2 || yy2arr2 { 88912 r.WriteArrayElem() 88913 if false { 88914 } else if yyxt10 := z.Extension(z.I2Rtid(x.Delay)); yyxt10 != nil { 88915 z.EncExtension(x.Delay, yyxt10) 88916 } else { 88917 r.EncodeInt(int64(x.Delay)) 88918 } 88919 } else { 88920 r.WriteMapElemKey() 88921 if z.IsJSONHandle() { 88922 z.WriteStr("\"Delay\"") 88923 } else { 88924 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 88925 } 88926 r.WriteMapElemValue() 88927 if false { 88928 } else if yyxt11 := z.Extension(z.I2Rtid(x.Delay)); yyxt11 != nil { 88929 z.EncExtension(x.Delay, yyxt11) 88930 } else { 88931 r.EncodeInt(int64(x.Delay)) 88932 } 88933 } 88934 if yyr2 || yy2arr2 { 88935 r.WriteArrayElem() 88936 if false { 88937 } else { 88938 if z.EncBasicHandle().StringToRaw { 88939 r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) 88940 } else { 88941 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) 88942 } 88943 } 88944 } else { 88945 r.WriteMapElemKey() 88946 if z.IsJSONHandle() { 88947 z.WriteStr("\"DelayFunction\"") 88948 } else { 88949 r.EncodeStringEnc(codecSelferCcUTF8100, `DelayFunction`) 88950 } 88951 r.WriteMapElemValue() 88952 if false { 88953 } else { 88954 if z.EncBasicHandle().StringToRaw { 88955 r.EncodeStringBytesRaw(z.BytesView(string(x.DelayFunction))) 88956 } else { 88957 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DelayFunction)) 88958 } 88959 } 88960 } 88961 if yyr2 || yy2arr2 { 88962 r.WriteArrayElem() 88963 if false { 88964 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt16 != nil { 88965 z.EncExtension(x.MaxDelay, yyxt16) 88966 } else { 88967 r.EncodeInt(int64(x.MaxDelay)) 88968 } 88969 } else { 88970 r.WriteMapElemKey() 88971 if z.IsJSONHandle() { 88972 z.WriteStr("\"MaxDelay\"") 88973 } else { 88974 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxDelay`) 88975 } 88976 r.WriteMapElemValue() 88977 if false { 88978 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt17 != nil { 88979 z.EncExtension(x.MaxDelay, yyxt17) 88980 } else { 88981 r.EncodeInt(int64(x.MaxDelay)) 88982 } 88983 } 88984 if yyr2 || yy2arr2 { 88985 r.WriteArrayElem() 88986 if false { 88987 } else { 88988 r.EncodeBool(bool(x.Unlimited)) 88989 } 88990 } else { 88991 r.WriteMapElemKey() 88992 if z.IsJSONHandle() { 88993 z.WriteStr("\"Unlimited\"") 88994 } else { 88995 r.EncodeStringEnc(codecSelferCcUTF8100, `Unlimited`) 88996 } 88997 r.WriteMapElemValue() 88998 if false { 88999 } else { 89000 r.EncodeBool(bool(x.Unlimited)) 89001 } 89002 } 89003 if yyr2 || yy2arr2 { 89004 r.WriteArrayEnd() 89005 } else { 89006 r.WriteMapEnd() 89007 } 89008 } 89009 } 89010 } 89011 89012 func (x *ReschedulePolicy) CodecDecodeSelf(d *codec1978.Decoder) { 89013 var h codecSelfer100 89014 z, r := codec1978.GenHelperDecoder(d) 89015 _, _, _ = h, z, r 89016 if false { 89017 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89018 z.DecExtension(x, yyxt1) 89019 } else { 89020 yyct2 := r.ContainerType() 89021 if yyct2 == codecSelferValueTypeMap100 { 89022 yyl2 := r.ReadMapStart() 89023 if yyl2 == 0 { 89024 r.ReadMapEnd() 89025 } else { 89026 x.codecDecodeSelfFromMap(yyl2, d) 89027 } 89028 } else if yyct2 == codecSelferValueTypeArray100 { 89029 yyl2 := r.ReadArrayStart() 89030 if yyl2 == 0 { 89031 r.ReadArrayEnd() 89032 } else { 89033 x.codecDecodeSelfFromArray(yyl2, d) 89034 } 89035 } else { 89036 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 89037 } 89038 } 89039 } 89040 89041 func (x *ReschedulePolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 89042 var h codecSelfer100 89043 z, r := codec1978.GenHelperDecoder(d) 89044 _, _, _ = h, z, r 89045 var yyhl3 bool = l >= 0 89046 for yyj3 := 0; ; yyj3++ { 89047 if yyhl3 { 89048 if yyj3 >= l { 89049 break 89050 } 89051 } else { 89052 if r.CheckBreak() { 89053 break 89054 } 89055 } 89056 r.ReadMapElemKey() 89057 yys3 := z.StringView(r.DecodeStringAsBytes()) 89058 r.ReadMapElemValue() 89059 switch yys3 { 89060 case "Attempts": 89061 if r.TryDecodeAsNil() { 89062 x.Attempts = 0 89063 } else { 89064 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89065 } 89066 case "Interval": 89067 if r.TryDecodeAsNil() { 89068 x.Interval = 0 89069 } else { 89070 if false { 89071 } else if yyxt6 := z.Extension(z.I2Rtid(x.Interval)); yyxt6 != nil { 89072 z.DecExtension(x.Interval, yyxt6) 89073 } else { 89074 x.Interval = (time.Duration)(r.DecodeInt64()) 89075 } 89076 } 89077 case "Delay": 89078 if r.TryDecodeAsNil() { 89079 x.Delay = 0 89080 } else { 89081 if false { 89082 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 89083 z.DecExtension(x.Delay, yyxt8) 89084 } else { 89085 x.Delay = (time.Duration)(r.DecodeInt64()) 89086 } 89087 } 89088 case "DelayFunction": 89089 if r.TryDecodeAsNil() { 89090 x.DelayFunction = "" 89091 } else { 89092 x.DelayFunction = (string)(r.DecodeString()) 89093 } 89094 case "MaxDelay": 89095 if r.TryDecodeAsNil() { 89096 x.MaxDelay = 0 89097 } else { 89098 if false { 89099 } else if yyxt11 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt11 != nil { 89100 z.DecExtension(x.MaxDelay, yyxt11) 89101 } else { 89102 x.MaxDelay = (time.Duration)(r.DecodeInt64()) 89103 } 89104 } 89105 case "Unlimited": 89106 if r.TryDecodeAsNil() { 89107 x.Unlimited = false 89108 } else { 89109 x.Unlimited = (bool)(r.DecodeBool()) 89110 } 89111 default: 89112 z.DecStructFieldNotFound(-1, yys3) 89113 } // end switch yys3 89114 } // end for yyj3 89115 r.ReadMapEnd() 89116 } 89117 89118 func (x *ReschedulePolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 89119 var h codecSelfer100 89120 z, r := codec1978.GenHelperDecoder(d) 89121 _, _, _ = h, z, r 89122 var yyj13 int 89123 var yyb13 bool 89124 var yyhl13 bool = l >= 0 89125 yyj13++ 89126 if yyhl13 { 89127 yyb13 = yyj13 > l 89128 } else { 89129 yyb13 = r.CheckBreak() 89130 } 89131 if yyb13 { 89132 r.ReadArrayEnd() 89133 return 89134 } 89135 r.ReadArrayElem() 89136 if r.TryDecodeAsNil() { 89137 x.Attempts = 0 89138 } else { 89139 x.Attempts = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89140 } 89141 yyj13++ 89142 if yyhl13 { 89143 yyb13 = yyj13 > l 89144 } else { 89145 yyb13 = r.CheckBreak() 89146 } 89147 if yyb13 { 89148 r.ReadArrayEnd() 89149 return 89150 } 89151 r.ReadArrayElem() 89152 if r.TryDecodeAsNil() { 89153 x.Interval = 0 89154 } else { 89155 if false { 89156 } else if yyxt16 := z.Extension(z.I2Rtid(x.Interval)); yyxt16 != nil { 89157 z.DecExtension(x.Interval, yyxt16) 89158 } else { 89159 x.Interval = (time.Duration)(r.DecodeInt64()) 89160 } 89161 } 89162 yyj13++ 89163 if yyhl13 { 89164 yyb13 = yyj13 > l 89165 } else { 89166 yyb13 = r.CheckBreak() 89167 } 89168 if yyb13 { 89169 r.ReadArrayEnd() 89170 return 89171 } 89172 r.ReadArrayElem() 89173 if r.TryDecodeAsNil() { 89174 x.Delay = 0 89175 } else { 89176 if false { 89177 } else if yyxt18 := z.Extension(z.I2Rtid(x.Delay)); yyxt18 != nil { 89178 z.DecExtension(x.Delay, yyxt18) 89179 } else { 89180 x.Delay = (time.Duration)(r.DecodeInt64()) 89181 } 89182 } 89183 yyj13++ 89184 if yyhl13 { 89185 yyb13 = yyj13 > l 89186 } else { 89187 yyb13 = r.CheckBreak() 89188 } 89189 if yyb13 { 89190 r.ReadArrayEnd() 89191 return 89192 } 89193 r.ReadArrayElem() 89194 if r.TryDecodeAsNil() { 89195 x.DelayFunction = "" 89196 } else { 89197 x.DelayFunction = (string)(r.DecodeString()) 89198 } 89199 yyj13++ 89200 if yyhl13 { 89201 yyb13 = yyj13 > l 89202 } else { 89203 yyb13 = r.CheckBreak() 89204 } 89205 if yyb13 { 89206 r.ReadArrayEnd() 89207 return 89208 } 89209 r.ReadArrayElem() 89210 if r.TryDecodeAsNil() { 89211 x.MaxDelay = 0 89212 } else { 89213 if false { 89214 } else if yyxt21 := z.Extension(z.I2Rtid(x.MaxDelay)); yyxt21 != nil { 89215 z.DecExtension(x.MaxDelay, yyxt21) 89216 } else { 89217 x.MaxDelay = (time.Duration)(r.DecodeInt64()) 89218 } 89219 } 89220 yyj13++ 89221 if yyhl13 { 89222 yyb13 = yyj13 > l 89223 } else { 89224 yyb13 = r.CheckBreak() 89225 } 89226 if yyb13 { 89227 r.ReadArrayEnd() 89228 return 89229 } 89230 r.ReadArrayElem() 89231 if r.TryDecodeAsNil() { 89232 x.Unlimited = false 89233 } else { 89234 x.Unlimited = (bool)(r.DecodeBool()) 89235 } 89236 for { 89237 yyj13++ 89238 if yyhl13 { 89239 yyb13 = yyj13 > l 89240 } else { 89241 yyb13 = r.CheckBreak() 89242 } 89243 if yyb13 { 89244 break 89245 } 89246 r.ReadArrayElem() 89247 z.DecStructFieldNotFound(yyj13-1, "") 89248 } 89249 r.ReadArrayEnd() 89250 } 89251 89252 func (x *MigrateStrategy) CodecEncodeSelf(e *codec1978.Encoder) { 89253 var h codecSelfer100 89254 z, r := codec1978.GenHelperEncoder(e) 89255 _, _, _ = h, z, r 89256 if x == nil { 89257 r.EncodeNil() 89258 } else { 89259 if false { 89260 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89261 z.EncExtension(x, yyxt1) 89262 } else { 89263 yysep2 := !z.EncBinary() 89264 yy2arr2 := z.EncBasicHandle().StructToArray 89265 _, _ = yysep2, yy2arr2 89266 const yyr2 bool = false // struct tag has 'toArray' 89267 if yyr2 || yy2arr2 { 89268 r.WriteArrayStart(4) 89269 } else { 89270 r.WriteMapStart(4) 89271 } 89272 if yyr2 || yy2arr2 { 89273 r.WriteArrayElem() 89274 if false { 89275 } else { 89276 r.EncodeInt(int64(x.MaxParallel)) 89277 } 89278 } else { 89279 r.WriteMapElemKey() 89280 if z.IsJSONHandle() { 89281 z.WriteStr("\"MaxParallel\"") 89282 } else { 89283 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxParallel`) 89284 } 89285 r.WriteMapElemValue() 89286 if false { 89287 } else { 89288 r.EncodeInt(int64(x.MaxParallel)) 89289 } 89290 } 89291 if yyr2 || yy2arr2 { 89292 r.WriteArrayElem() 89293 if false { 89294 } else { 89295 if z.EncBasicHandle().StringToRaw { 89296 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 89297 } else { 89298 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 89299 } 89300 } 89301 } else { 89302 r.WriteMapElemKey() 89303 if z.IsJSONHandle() { 89304 z.WriteStr("\"HealthCheck\"") 89305 } else { 89306 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthCheck`) 89307 } 89308 r.WriteMapElemValue() 89309 if false { 89310 } else { 89311 if z.EncBasicHandle().StringToRaw { 89312 r.EncodeStringBytesRaw(z.BytesView(string(x.HealthCheck))) 89313 } else { 89314 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.HealthCheck)) 89315 } 89316 } 89317 } 89318 if yyr2 || yy2arr2 { 89319 r.WriteArrayElem() 89320 if false { 89321 } else if yyxt10 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt10 != nil { 89322 z.EncExtension(x.MinHealthyTime, yyxt10) 89323 } else { 89324 r.EncodeInt(int64(x.MinHealthyTime)) 89325 } 89326 } else { 89327 r.WriteMapElemKey() 89328 if z.IsJSONHandle() { 89329 z.WriteStr("\"MinHealthyTime\"") 89330 } else { 89331 r.EncodeStringEnc(codecSelferCcUTF8100, `MinHealthyTime`) 89332 } 89333 r.WriteMapElemValue() 89334 if false { 89335 } else if yyxt11 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt11 != nil { 89336 z.EncExtension(x.MinHealthyTime, yyxt11) 89337 } else { 89338 r.EncodeInt(int64(x.MinHealthyTime)) 89339 } 89340 } 89341 if yyr2 || yy2arr2 { 89342 r.WriteArrayElem() 89343 if false { 89344 } else if yyxt13 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt13 != nil { 89345 z.EncExtension(x.HealthyDeadline, yyxt13) 89346 } else { 89347 r.EncodeInt(int64(x.HealthyDeadline)) 89348 } 89349 } else { 89350 r.WriteMapElemKey() 89351 if z.IsJSONHandle() { 89352 z.WriteStr("\"HealthyDeadline\"") 89353 } else { 89354 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyDeadline`) 89355 } 89356 r.WriteMapElemValue() 89357 if false { 89358 } else if yyxt14 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt14 != nil { 89359 z.EncExtension(x.HealthyDeadline, yyxt14) 89360 } else { 89361 r.EncodeInt(int64(x.HealthyDeadline)) 89362 } 89363 } 89364 if yyr2 || yy2arr2 { 89365 r.WriteArrayEnd() 89366 } else { 89367 r.WriteMapEnd() 89368 } 89369 } 89370 } 89371 } 89372 89373 func (x *MigrateStrategy) CodecDecodeSelf(d *codec1978.Decoder) { 89374 var h codecSelfer100 89375 z, r := codec1978.GenHelperDecoder(d) 89376 _, _, _ = h, z, r 89377 if false { 89378 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89379 z.DecExtension(x, yyxt1) 89380 } else { 89381 yyct2 := r.ContainerType() 89382 if yyct2 == codecSelferValueTypeMap100 { 89383 yyl2 := r.ReadMapStart() 89384 if yyl2 == 0 { 89385 r.ReadMapEnd() 89386 } else { 89387 x.codecDecodeSelfFromMap(yyl2, d) 89388 } 89389 } else if yyct2 == codecSelferValueTypeArray100 { 89390 yyl2 := r.ReadArrayStart() 89391 if yyl2 == 0 { 89392 r.ReadArrayEnd() 89393 } else { 89394 x.codecDecodeSelfFromArray(yyl2, d) 89395 } 89396 } else { 89397 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 89398 } 89399 } 89400 } 89401 89402 func (x *MigrateStrategy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 89403 var h codecSelfer100 89404 z, r := codec1978.GenHelperDecoder(d) 89405 _, _, _ = h, z, r 89406 var yyhl3 bool = l >= 0 89407 for yyj3 := 0; ; yyj3++ { 89408 if yyhl3 { 89409 if yyj3 >= l { 89410 break 89411 } 89412 } else { 89413 if r.CheckBreak() { 89414 break 89415 } 89416 } 89417 r.ReadMapElemKey() 89418 yys3 := z.StringView(r.DecodeStringAsBytes()) 89419 r.ReadMapElemValue() 89420 switch yys3 { 89421 case "MaxParallel": 89422 if r.TryDecodeAsNil() { 89423 x.MaxParallel = 0 89424 } else { 89425 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89426 } 89427 case "HealthCheck": 89428 if r.TryDecodeAsNil() { 89429 x.HealthCheck = "" 89430 } else { 89431 x.HealthCheck = (string)(r.DecodeString()) 89432 } 89433 case "MinHealthyTime": 89434 if r.TryDecodeAsNil() { 89435 x.MinHealthyTime = 0 89436 } else { 89437 if false { 89438 } else if yyxt7 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt7 != nil { 89439 z.DecExtension(x.MinHealthyTime, yyxt7) 89440 } else { 89441 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 89442 } 89443 } 89444 case "HealthyDeadline": 89445 if r.TryDecodeAsNil() { 89446 x.HealthyDeadline = 0 89447 } else { 89448 if false { 89449 } else if yyxt9 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt9 != nil { 89450 z.DecExtension(x.HealthyDeadline, yyxt9) 89451 } else { 89452 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 89453 } 89454 } 89455 default: 89456 z.DecStructFieldNotFound(-1, yys3) 89457 } // end switch yys3 89458 } // end for yyj3 89459 r.ReadMapEnd() 89460 } 89461 89462 func (x *MigrateStrategy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 89463 var h codecSelfer100 89464 z, r := codec1978.GenHelperDecoder(d) 89465 _, _, _ = h, z, r 89466 var yyj10 int 89467 var yyb10 bool 89468 var yyhl10 bool = l >= 0 89469 yyj10++ 89470 if yyhl10 { 89471 yyb10 = yyj10 > l 89472 } else { 89473 yyb10 = r.CheckBreak() 89474 } 89475 if yyb10 { 89476 r.ReadArrayEnd() 89477 return 89478 } 89479 r.ReadArrayElem() 89480 if r.TryDecodeAsNil() { 89481 x.MaxParallel = 0 89482 } else { 89483 x.MaxParallel = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 89484 } 89485 yyj10++ 89486 if yyhl10 { 89487 yyb10 = yyj10 > l 89488 } else { 89489 yyb10 = r.CheckBreak() 89490 } 89491 if yyb10 { 89492 r.ReadArrayEnd() 89493 return 89494 } 89495 r.ReadArrayElem() 89496 if r.TryDecodeAsNil() { 89497 x.HealthCheck = "" 89498 } else { 89499 x.HealthCheck = (string)(r.DecodeString()) 89500 } 89501 yyj10++ 89502 if yyhl10 { 89503 yyb10 = yyj10 > l 89504 } else { 89505 yyb10 = r.CheckBreak() 89506 } 89507 if yyb10 { 89508 r.ReadArrayEnd() 89509 return 89510 } 89511 r.ReadArrayElem() 89512 if r.TryDecodeAsNil() { 89513 x.MinHealthyTime = 0 89514 } else { 89515 if false { 89516 } else if yyxt14 := z.Extension(z.I2Rtid(x.MinHealthyTime)); yyxt14 != nil { 89517 z.DecExtension(x.MinHealthyTime, yyxt14) 89518 } else { 89519 x.MinHealthyTime = (time.Duration)(r.DecodeInt64()) 89520 } 89521 } 89522 yyj10++ 89523 if yyhl10 { 89524 yyb10 = yyj10 > l 89525 } else { 89526 yyb10 = r.CheckBreak() 89527 } 89528 if yyb10 { 89529 r.ReadArrayEnd() 89530 return 89531 } 89532 r.ReadArrayElem() 89533 if r.TryDecodeAsNil() { 89534 x.HealthyDeadline = 0 89535 } else { 89536 if false { 89537 } else if yyxt16 := z.Extension(z.I2Rtid(x.HealthyDeadline)); yyxt16 != nil { 89538 z.DecExtension(x.HealthyDeadline, yyxt16) 89539 } else { 89540 x.HealthyDeadline = (time.Duration)(r.DecodeInt64()) 89541 } 89542 } 89543 for { 89544 yyj10++ 89545 if yyhl10 { 89546 yyb10 = yyj10 > l 89547 } else { 89548 yyb10 = r.CheckBreak() 89549 } 89550 if yyb10 { 89551 break 89552 } 89553 r.ReadArrayElem() 89554 z.DecStructFieldNotFound(yyj10-1, "") 89555 } 89556 r.ReadArrayEnd() 89557 } 89558 89559 func (x *TaskGroup) CodecEncodeSelf(e *codec1978.Encoder) { 89560 var h codecSelfer100 89561 z, r := codec1978.GenHelperEncoder(e) 89562 _, _, _ = h, z, r 89563 if x == nil { 89564 r.EncodeNil() 89565 } else { 89566 if false { 89567 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 89568 z.EncExtension(x, yyxt1) 89569 } else { 89570 yysep2 := !z.EncBinary() 89571 yy2arr2 := z.EncBasicHandle().StructToArray 89572 _, _ = yysep2, yy2arr2 89573 const yyr2 bool = false // struct tag has 'toArray' 89574 if yyr2 || yy2arr2 { 89575 r.WriteArrayStart(18) 89576 } else { 89577 r.WriteMapStart(18) 89578 } 89579 if yyr2 || yy2arr2 { 89580 r.WriteArrayElem() 89581 if false { 89582 } else { 89583 if z.EncBasicHandle().StringToRaw { 89584 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 89585 } else { 89586 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 89587 } 89588 } 89589 } else { 89590 r.WriteMapElemKey() 89591 if z.IsJSONHandle() { 89592 z.WriteStr("\"Name\"") 89593 } else { 89594 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 89595 } 89596 r.WriteMapElemValue() 89597 if false { 89598 } else { 89599 if z.EncBasicHandle().StringToRaw { 89600 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 89601 } else { 89602 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 89603 } 89604 } 89605 } 89606 if yyr2 || yy2arr2 { 89607 r.WriteArrayElem() 89608 if false { 89609 } else { 89610 r.EncodeInt(int64(x.Count)) 89611 } 89612 } else { 89613 r.WriteMapElemKey() 89614 if z.IsJSONHandle() { 89615 z.WriteStr("\"Count\"") 89616 } else { 89617 r.EncodeStringEnc(codecSelferCcUTF8100, `Count`) 89618 } 89619 r.WriteMapElemValue() 89620 if false { 89621 } else { 89622 r.EncodeInt(int64(x.Count)) 89623 } 89624 } 89625 var yyn9 bool 89626 if x.Update == nil { 89627 yyn9 = true 89628 goto LABEL9 89629 } 89630 LABEL9: 89631 if yyr2 || yy2arr2 { 89632 if yyn9 { 89633 r.WriteArrayElem() 89634 r.EncodeNil() 89635 } else { 89636 r.WriteArrayElem() 89637 if x.Update == nil { 89638 r.EncodeNil() 89639 } else { 89640 x.Update.CodecEncodeSelf(e) 89641 } 89642 } 89643 } else { 89644 r.WriteMapElemKey() 89645 if z.IsJSONHandle() { 89646 z.WriteStr("\"Update\"") 89647 } else { 89648 r.EncodeStringEnc(codecSelferCcUTF8100, `Update`) 89649 } 89650 r.WriteMapElemValue() 89651 if yyn9 { 89652 r.EncodeNil() 89653 } else { 89654 if x.Update == nil { 89655 r.EncodeNil() 89656 } else { 89657 x.Update.CodecEncodeSelf(e) 89658 } 89659 } 89660 } 89661 var yyn12 bool 89662 if x.Migrate == nil { 89663 yyn12 = true 89664 goto LABEL12 89665 } 89666 LABEL12: 89667 if yyr2 || yy2arr2 { 89668 if yyn12 { 89669 r.WriteArrayElem() 89670 r.EncodeNil() 89671 } else { 89672 r.WriteArrayElem() 89673 if x.Migrate == nil { 89674 r.EncodeNil() 89675 } else { 89676 x.Migrate.CodecEncodeSelf(e) 89677 } 89678 } 89679 } else { 89680 r.WriteMapElemKey() 89681 if z.IsJSONHandle() { 89682 z.WriteStr("\"Migrate\"") 89683 } else { 89684 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 89685 } 89686 r.WriteMapElemValue() 89687 if yyn12 { 89688 r.EncodeNil() 89689 } else { 89690 if x.Migrate == nil { 89691 r.EncodeNil() 89692 } else { 89693 x.Migrate.CodecEncodeSelf(e) 89694 } 89695 } 89696 } 89697 if yyr2 || yy2arr2 { 89698 r.WriteArrayElem() 89699 if x.Constraints == nil { 89700 r.EncodeNil() 89701 } else { 89702 if false { 89703 } else { 89704 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 89705 } 89706 } 89707 } else { 89708 r.WriteMapElemKey() 89709 if z.IsJSONHandle() { 89710 z.WriteStr("\"Constraints\"") 89711 } else { 89712 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 89713 } 89714 r.WriteMapElemValue() 89715 if x.Constraints == nil { 89716 r.EncodeNil() 89717 } else { 89718 if false { 89719 } else { 89720 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 89721 } 89722 } 89723 } 89724 var yyn18 bool 89725 if x.Scaling == nil { 89726 yyn18 = true 89727 goto LABEL18 89728 } 89729 LABEL18: 89730 if yyr2 || yy2arr2 { 89731 if yyn18 { 89732 r.WriteArrayElem() 89733 r.EncodeNil() 89734 } else { 89735 r.WriteArrayElem() 89736 if x.Scaling == nil { 89737 r.EncodeNil() 89738 } else { 89739 x.Scaling.CodecEncodeSelf(e) 89740 } 89741 } 89742 } else { 89743 r.WriteMapElemKey() 89744 if z.IsJSONHandle() { 89745 z.WriteStr("\"Scaling\"") 89746 } else { 89747 r.EncodeStringEnc(codecSelferCcUTF8100, `Scaling`) 89748 } 89749 r.WriteMapElemValue() 89750 if yyn18 { 89751 r.EncodeNil() 89752 } else { 89753 if x.Scaling == nil { 89754 r.EncodeNil() 89755 } else { 89756 x.Scaling.CodecEncodeSelf(e) 89757 } 89758 } 89759 } 89760 var yyn21 bool 89761 if x.RestartPolicy == nil { 89762 yyn21 = true 89763 goto LABEL21 89764 } 89765 LABEL21: 89766 if yyr2 || yy2arr2 { 89767 if yyn21 { 89768 r.WriteArrayElem() 89769 r.EncodeNil() 89770 } else { 89771 r.WriteArrayElem() 89772 if x.RestartPolicy == nil { 89773 r.EncodeNil() 89774 } else { 89775 x.RestartPolicy.CodecEncodeSelf(e) 89776 } 89777 } 89778 } else { 89779 r.WriteMapElemKey() 89780 if z.IsJSONHandle() { 89781 z.WriteStr("\"RestartPolicy\"") 89782 } else { 89783 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) 89784 } 89785 r.WriteMapElemValue() 89786 if yyn21 { 89787 r.EncodeNil() 89788 } else { 89789 if x.RestartPolicy == nil { 89790 r.EncodeNil() 89791 } else { 89792 x.RestartPolicy.CodecEncodeSelf(e) 89793 } 89794 } 89795 } 89796 if yyr2 || yy2arr2 { 89797 r.WriteArrayElem() 89798 if x.Tasks == nil { 89799 r.EncodeNil() 89800 } else { 89801 if false { 89802 } else { 89803 h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) 89804 } 89805 } 89806 } else { 89807 r.WriteMapElemKey() 89808 if z.IsJSONHandle() { 89809 z.WriteStr("\"Tasks\"") 89810 } else { 89811 r.EncodeStringEnc(codecSelferCcUTF8100, `Tasks`) 89812 } 89813 r.WriteMapElemValue() 89814 if x.Tasks == nil { 89815 r.EncodeNil() 89816 } else { 89817 if false { 89818 } else { 89819 h.encSlicePtrtoTask(([]*Task)(x.Tasks), e) 89820 } 89821 } 89822 } 89823 var yyn27 bool 89824 if x.EphemeralDisk == nil { 89825 yyn27 = true 89826 goto LABEL27 89827 } 89828 LABEL27: 89829 if yyr2 || yy2arr2 { 89830 if yyn27 { 89831 r.WriteArrayElem() 89832 r.EncodeNil() 89833 } else { 89834 r.WriteArrayElem() 89835 if x.EphemeralDisk == nil { 89836 r.EncodeNil() 89837 } else { 89838 x.EphemeralDisk.CodecEncodeSelf(e) 89839 } 89840 } 89841 } else { 89842 r.WriteMapElemKey() 89843 if z.IsJSONHandle() { 89844 z.WriteStr("\"EphemeralDisk\"") 89845 } else { 89846 r.EncodeStringEnc(codecSelferCcUTF8100, `EphemeralDisk`) 89847 } 89848 r.WriteMapElemValue() 89849 if yyn27 { 89850 r.EncodeNil() 89851 } else { 89852 if x.EphemeralDisk == nil { 89853 r.EncodeNil() 89854 } else { 89855 x.EphemeralDisk.CodecEncodeSelf(e) 89856 } 89857 } 89858 } 89859 if yyr2 || yy2arr2 { 89860 r.WriteArrayElem() 89861 if x.Meta == nil { 89862 r.EncodeNil() 89863 } else { 89864 if false { 89865 } else { 89866 z.F.EncMapStringStringV(x.Meta, e) 89867 } 89868 } 89869 } else { 89870 r.WriteMapElemKey() 89871 if z.IsJSONHandle() { 89872 z.WriteStr("\"Meta\"") 89873 } else { 89874 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 89875 } 89876 r.WriteMapElemValue() 89877 if x.Meta == nil { 89878 r.EncodeNil() 89879 } else { 89880 if false { 89881 } else { 89882 z.F.EncMapStringStringV(x.Meta, e) 89883 } 89884 } 89885 } 89886 var yyn33 bool 89887 if x.ReschedulePolicy == nil { 89888 yyn33 = true 89889 goto LABEL33 89890 } 89891 LABEL33: 89892 if yyr2 || yy2arr2 { 89893 if yyn33 { 89894 r.WriteArrayElem() 89895 r.EncodeNil() 89896 } else { 89897 r.WriteArrayElem() 89898 if x.ReschedulePolicy == nil { 89899 r.EncodeNil() 89900 } else { 89901 x.ReschedulePolicy.CodecEncodeSelf(e) 89902 } 89903 } 89904 } else { 89905 r.WriteMapElemKey() 89906 if z.IsJSONHandle() { 89907 z.WriteStr("\"ReschedulePolicy\"") 89908 } else { 89909 r.EncodeStringEnc(codecSelferCcUTF8100, `ReschedulePolicy`) 89910 } 89911 r.WriteMapElemValue() 89912 if yyn33 { 89913 r.EncodeNil() 89914 } else { 89915 if x.ReschedulePolicy == nil { 89916 r.EncodeNil() 89917 } else { 89918 x.ReschedulePolicy.CodecEncodeSelf(e) 89919 } 89920 } 89921 } 89922 if yyr2 || yy2arr2 { 89923 r.WriteArrayElem() 89924 if x.Affinities == nil { 89925 r.EncodeNil() 89926 } else { 89927 if false { 89928 } else { 89929 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 89930 } 89931 } 89932 } else { 89933 r.WriteMapElemKey() 89934 if z.IsJSONHandle() { 89935 z.WriteStr("\"Affinities\"") 89936 } else { 89937 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 89938 } 89939 r.WriteMapElemValue() 89940 if x.Affinities == nil { 89941 r.EncodeNil() 89942 } else { 89943 if false { 89944 } else { 89945 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 89946 } 89947 } 89948 } 89949 if yyr2 || yy2arr2 { 89950 r.WriteArrayElem() 89951 if x.Spreads == nil { 89952 r.EncodeNil() 89953 } else { 89954 if false { 89955 } else { 89956 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 89957 } 89958 } 89959 } else { 89960 r.WriteMapElemKey() 89961 if z.IsJSONHandle() { 89962 z.WriteStr("\"Spreads\"") 89963 } else { 89964 r.EncodeStringEnc(codecSelferCcUTF8100, `Spreads`) 89965 } 89966 r.WriteMapElemValue() 89967 if x.Spreads == nil { 89968 r.EncodeNil() 89969 } else { 89970 if false { 89971 } else { 89972 h.encSlicePtrtoSpread(([]*Spread)(x.Spreads), e) 89973 } 89974 } 89975 } 89976 if yyr2 || yy2arr2 { 89977 r.WriteArrayElem() 89978 if x.Networks == nil { 89979 r.EncodeNil() 89980 } else { 89981 x.Networks.CodecEncodeSelf(e) 89982 } 89983 } else { 89984 r.WriteMapElemKey() 89985 if z.IsJSONHandle() { 89986 z.WriteStr("\"Networks\"") 89987 } else { 89988 r.EncodeStringEnc(codecSelferCcUTF8100, `Networks`) 89989 } 89990 r.WriteMapElemValue() 89991 if x.Networks == nil { 89992 r.EncodeNil() 89993 } else { 89994 x.Networks.CodecEncodeSelf(e) 89995 } 89996 } 89997 if yyr2 || yy2arr2 { 89998 r.WriteArrayElem() 89999 if x.Services == nil { 90000 r.EncodeNil() 90001 } else { 90002 if false { 90003 } else { 90004 h.encSlicePtrtoService(([]*Service)(x.Services), e) 90005 } 90006 } 90007 } else { 90008 r.WriteMapElemKey() 90009 if z.IsJSONHandle() { 90010 z.WriteStr("\"Services\"") 90011 } else { 90012 r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) 90013 } 90014 r.WriteMapElemValue() 90015 if x.Services == nil { 90016 r.EncodeNil() 90017 } else { 90018 if false { 90019 } else { 90020 h.encSlicePtrtoService(([]*Service)(x.Services), e) 90021 } 90022 } 90023 } 90024 if yyr2 || yy2arr2 { 90025 r.WriteArrayElem() 90026 if x.Volumes == nil { 90027 r.EncodeNil() 90028 } else { 90029 if false { 90030 } else { 90031 h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) 90032 } 90033 } 90034 } else { 90035 r.WriteMapElemKey() 90036 if z.IsJSONHandle() { 90037 z.WriteStr("\"Volumes\"") 90038 } else { 90039 r.EncodeStringEnc(codecSelferCcUTF8100, `Volumes`) 90040 } 90041 r.WriteMapElemValue() 90042 if x.Volumes == nil { 90043 r.EncodeNil() 90044 } else { 90045 if false { 90046 } else { 90047 h.encMapstringPtrtoVolumeRequest((map[string]*VolumeRequest)(x.Volumes), e) 90048 } 90049 } 90050 } 90051 var yyn51 bool 90052 if x.ShutdownDelay == nil { 90053 yyn51 = true 90054 goto LABEL51 90055 } 90056 LABEL51: 90057 if yyr2 || yy2arr2 { 90058 if yyn51 { 90059 r.WriteArrayElem() 90060 r.EncodeNil() 90061 } else { 90062 r.WriteArrayElem() 90063 if x.ShutdownDelay == nil { 90064 r.EncodeNil() 90065 } else { 90066 yy52 := *x.ShutdownDelay 90067 if false { 90068 } else if yyxt53 := z.Extension(z.I2Rtid(yy52)); yyxt53 != nil { 90069 z.EncExtension(yy52, yyxt53) 90070 } else { 90071 r.EncodeInt(int64(yy52)) 90072 } 90073 } 90074 } 90075 } else { 90076 r.WriteMapElemKey() 90077 if z.IsJSONHandle() { 90078 z.WriteStr("\"ShutdownDelay\"") 90079 } else { 90080 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 90081 } 90082 r.WriteMapElemValue() 90083 if yyn51 { 90084 r.EncodeNil() 90085 } else { 90086 if x.ShutdownDelay == nil { 90087 r.EncodeNil() 90088 } else { 90089 yy54 := *x.ShutdownDelay 90090 if false { 90091 } else if yyxt55 := z.Extension(z.I2Rtid(yy54)); yyxt55 != nil { 90092 z.EncExtension(yy54, yyxt55) 90093 } else { 90094 r.EncodeInt(int64(yy54)) 90095 } 90096 } 90097 } 90098 } 90099 var yyn56 bool 90100 if x.StopAfterClientDisconnect == nil { 90101 yyn56 = true 90102 goto LABEL56 90103 } 90104 LABEL56: 90105 if yyr2 || yy2arr2 { 90106 if yyn56 { 90107 r.WriteArrayElem() 90108 r.EncodeNil() 90109 } else { 90110 r.WriteArrayElem() 90111 if x.StopAfterClientDisconnect == nil { 90112 r.EncodeNil() 90113 } else { 90114 yy57 := *x.StopAfterClientDisconnect 90115 if false { 90116 } else if yyxt58 := z.Extension(z.I2Rtid(yy57)); yyxt58 != nil { 90117 z.EncExtension(yy57, yyxt58) 90118 } else { 90119 r.EncodeInt(int64(yy57)) 90120 } 90121 } 90122 } 90123 } else { 90124 r.WriteMapElemKey() 90125 if z.IsJSONHandle() { 90126 z.WriteStr("\"StopAfterClientDisconnect\"") 90127 } else { 90128 r.EncodeStringEnc(codecSelferCcUTF8100, `StopAfterClientDisconnect`) 90129 } 90130 r.WriteMapElemValue() 90131 if yyn56 { 90132 r.EncodeNil() 90133 } else { 90134 if x.StopAfterClientDisconnect == nil { 90135 r.EncodeNil() 90136 } else { 90137 yy59 := *x.StopAfterClientDisconnect 90138 if false { 90139 } else if yyxt60 := z.Extension(z.I2Rtid(yy59)); yyxt60 != nil { 90140 z.EncExtension(yy59, yyxt60) 90141 } else { 90142 r.EncodeInt(int64(yy59)) 90143 } 90144 } 90145 } 90146 } 90147 if yyr2 || yy2arr2 { 90148 r.WriteArrayEnd() 90149 } else { 90150 r.WriteMapEnd() 90151 } 90152 } 90153 } 90154 } 90155 90156 func (x *TaskGroup) CodecDecodeSelf(d *codec1978.Decoder) { 90157 var h codecSelfer100 90158 z, r := codec1978.GenHelperDecoder(d) 90159 _, _, _ = h, z, r 90160 if false { 90161 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 90162 z.DecExtension(x, yyxt1) 90163 } else { 90164 yyct2 := r.ContainerType() 90165 if yyct2 == codecSelferValueTypeMap100 { 90166 yyl2 := r.ReadMapStart() 90167 if yyl2 == 0 { 90168 r.ReadMapEnd() 90169 } else { 90170 x.codecDecodeSelfFromMap(yyl2, d) 90171 } 90172 } else if yyct2 == codecSelferValueTypeArray100 { 90173 yyl2 := r.ReadArrayStart() 90174 if yyl2 == 0 { 90175 r.ReadArrayEnd() 90176 } else { 90177 x.codecDecodeSelfFromArray(yyl2, d) 90178 } 90179 } else { 90180 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 90181 } 90182 } 90183 } 90184 90185 func (x *TaskGroup) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 90186 var h codecSelfer100 90187 z, r := codec1978.GenHelperDecoder(d) 90188 _, _, _ = h, z, r 90189 var yyhl3 bool = l >= 0 90190 for yyj3 := 0; ; yyj3++ { 90191 if yyhl3 { 90192 if yyj3 >= l { 90193 break 90194 } 90195 } else { 90196 if r.CheckBreak() { 90197 break 90198 } 90199 } 90200 r.ReadMapElemKey() 90201 yys3 := z.StringView(r.DecodeStringAsBytes()) 90202 r.ReadMapElemValue() 90203 switch yys3 { 90204 case "Name": 90205 if r.TryDecodeAsNil() { 90206 x.Name = "" 90207 } else { 90208 x.Name = (string)(r.DecodeString()) 90209 } 90210 case "Count": 90211 if r.TryDecodeAsNil() { 90212 x.Count = 0 90213 } else { 90214 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 90215 } 90216 case "Update": 90217 if r.TryDecodeAsNil() { 90218 if true && x.Update != nil { 90219 x.Update = nil 90220 } 90221 } else { 90222 if x.Update == nil { 90223 x.Update = new(UpdateStrategy) 90224 } 90225 90226 x.Update.CodecDecodeSelf(d) 90227 } 90228 case "Migrate": 90229 if r.TryDecodeAsNil() { 90230 if true && x.Migrate != nil { 90231 x.Migrate = nil 90232 } 90233 } else { 90234 if x.Migrate == nil { 90235 x.Migrate = new(MigrateStrategy) 90236 } 90237 90238 x.Migrate.CodecDecodeSelf(d) 90239 } 90240 case "Constraints": 90241 if r.TryDecodeAsNil() { 90242 x.Constraints = nil 90243 } else { 90244 if false { 90245 } else { 90246 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 90247 } 90248 } 90249 case "Scaling": 90250 if r.TryDecodeAsNil() { 90251 if true && x.Scaling != nil { 90252 x.Scaling = nil 90253 } 90254 } else { 90255 if x.Scaling == nil { 90256 x.Scaling = new(ScalingPolicy) 90257 } 90258 90259 x.Scaling.CodecDecodeSelf(d) 90260 } 90261 case "RestartPolicy": 90262 if r.TryDecodeAsNil() { 90263 if true && x.RestartPolicy != nil { 90264 x.RestartPolicy = nil 90265 } 90266 } else { 90267 if x.RestartPolicy == nil { 90268 x.RestartPolicy = new(RestartPolicy) 90269 } 90270 90271 x.RestartPolicy.CodecDecodeSelf(d) 90272 } 90273 case "Tasks": 90274 if r.TryDecodeAsNil() { 90275 x.Tasks = nil 90276 } else { 90277 if false { 90278 } else { 90279 h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) 90280 } 90281 } 90282 case "EphemeralDisk": 90283 if r.TryDecodeAsNil() { 90284 if true && x.EphemeralDisk != nil { 90285 x.EphemeralDisk = nil 90286 } 90287 } else { 90288 if x.EphemeralDisk == nil { 90289 x.EphemeralDisk = new(EphemeralDisk) 90290 } 90291 90292 x.EphemeralDisk.CodecDecodeSelf(d) 90293 } 90294 case "Meta": 90295 if r.TryDecodeAsNil() { 90296 x.Meta = nil 90297 } else { 90298 if false { 90299 } else { 90300 z.F.DecMapStringStringX(&x.Meta, d) 90301 } 90302 } 90303 case "ReschedulePolicy": 90304 if r.TryDecodeAsNil() { 90305 if true && x.ReschedulePolicy != nil { 90306 x.ReschedulePolicy = nil 90307 } 90308 } else { 90309 if x.ReschedulePolicy == nil { 90310 x.ReschedulePolicy = new(ReschedulePolicy) 90311 } 90312 90313 x.ReschedulePolicy.CodecDecodeSelf(d) 90314 } 90315 case "Affinities": 90316 if r.TryDecodeAsNil() { 90317 x.Affinities = nil 90318 } else { 90319 if false { 90320 } else { 90321 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 90322 } 90323 } 90324 case "Spreads": 90325 if r.TryDecodeAsNil() { 90326 x.Spreads = nil 90327 } else { 90328 if false { 90329 } else { 90330 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 90331 } 90332 } 90333 case "Networks": 90334 if r.TryDecodeAsNil() { 90335 x.Networks = nil 90336 } else { 90337 x.Networks.CodecDecodeSelf(d) 90338 } 90339 case "Services": 90340 if r.TryDecodeAsNil() { 90341 x.Services = nil 90342 } else { 90343 if false { 90344 } else { 90345 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 90346 } 90347 } 90348 case "Volumes": 90349 if r.TryDecodeAsNil() { 90350 x.Volumes = nil 90351 } else { 90352 if false { 90353 } else { 90354 h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) 90355 } 90356 } 90357 case "ShutdownDelay": 90358 if r.TryDecodeAsNil() { 90359 if true && x.ShutdownDelay != nil { 90360 x.ShutdownDelay = nil 90361 } 90362 } else { 90363 if x.ShutdownDelay == nil { 90364 x.ShutdownDelay = new(time.Duration) 90365 } 90366 90367 if false { 90368 } else if yyxt28 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt28 != nil { 90369 z.DecExtension(x.ShutdownDelay, yyxt28) 90370 } else { 90371 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 90372 } 90373 } 90374 case "StopAfterClientDisconnect": 90375 if r.TryDecodeAsNil() { 90376 if true && x.StopAfterClientDisconnect != nil { 90377 x.StopAfterClientDisconnect = nil 90378 } 90379 } else { 90380 if x.StopAfterClientDisconnect == nil { 90381 x.StopAfterClientDisconnect = new(time.Duration) 90382 } 90383 90384 if false { 90385 } else if yyxt30 := z.Extension(z.I2Rtid(x.StopAfterClientDisconnect)); yyxt30 != nil { 90386 z.DecExtension(x.StopAfterClientDisconnect, yyxt30) 90387 } else { 90388 *x.StopAfterClientDisconnect = (time.Duration)(r.DecodeInt64()) 90389 } 90390 } 90391 default: 90392 z.DecStructFieldNotFound(-1, yys3) 90393 } // end switch yys3 90394 } // end for yyj3 90395 r.ReadMapEnd() 90396 } 90397 90398 func (x *TaskGroup) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 90399 var h codecSelfer100 90400 z, r := codec1978.GenHelperDecoder(d) 90401 _, _, _ = h, z, r 90402 var yyj31 int 90403 var yyb31 bool 90404 var yyhl31 bool = l >= 0 90405 yyj31++ 90406 if yyhl31 { 90407 yyb31 = yyj31 > l 90408 } else { 90409 yyb31 = r.CheckBreak() 90410 } 90411 if yyb31 { 90412 r.ReadArrayEnd() 90413 return 90414 } 90415 r.ReadArrayElem() 90416 if r.TryDecodeAsNil() { 90417 x.Name = "" 90418 } else { 90419 x.Name = (string)(r.DecodeString()) 90420 } 90421 yyj31++ 90422 if yyhl31 { 90423 yyb31 = yyj31 > l 90424 } else { 90425 yyb31 = r.CheckBreak() 90426 } 90427 if yyb31 { 90428 r.ReadArrayEnd() 90429 return 90430 } 90431 r.ReadArrayElem() 90432 if r.TryDecodeAsNil() { 90433 x.Count = 0 90434 } else { 90435 x.Count = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 90436 } 90437 yyj31++ 90438 if yyhl31 { 90439 yyb31 = yyj31 > l 90440 } else { 90441 yyb31 = r.CheckBreak() 90442 } 90443 if yyb31 { 90444 r.ReadArrayEnd() 90445 return 90446 } 90447 r.ReadArrayElem() 90448 if r.TryDecodeAsNil() { 90449 if true && x.Update != nil { 90450 x.Update = nil 90451 } 90452 } else { 90453 if x.Update == nil { 90454 x.Update = new(UpdateStrategy) 90455 } 90456 90457 x.Update.CodecDecodeSelf(d) 90458 } 90459 yyj31++ 90460 if yyhl31 { 90461 yyb31 = yyj31 > l 90462 } else { 90463 yyb31 = r.CheckBreak() 90464 } 90465 if yyb31 { 90466 r.ReadArrayEnd() 90467 return 90468 } 90469 r.ReadArrayElem() 90470 if r.TryDecodeAsNil() { 90471 if true && x.Migrate != nil { 90472 x.Migrate = nil 90473 } 90474 } else { 90475 if x.Migrate == nil { 90476 x.Migrate = new(MigrateStrategy) 90477 } 90478 90479 x.Migrate.CodecDecodeSelf(d) 90480 } 90481 yyj31++ 90482 if yyhl31 { 90483 yyb31 = yyj31 > l 90484 } else { 90485 yyb31 = r.CheckBreak() 90486 } 90487 if yyb31 { 90488 r.ReadArrayEnd() 90489 return 90490 } 90491 r.ReadArrayElem() 90492 if r.TryDecodeAsNil() { 90493 x.Constraints = nil 90494 } else { 90495 if false { 90496 } else { 90497 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 90498 } 90499 } 90500 yyj31++ 90501 if yyhl31 { 90502 yyb31 = yyj31 > l 90503 } else { 90504 yyb31 = r.CheckBreak() 90505 } 90506 if yyb31 { 90507 r.ReadArrayEnd() 90508 return 90509 } 90510 r.ReadArrayElem() 90511 if r.TryDecodeAsNil() { 90512 if true && x.Scaling != nil { 90513 x.Scaling = nil 90514 } 90515 } else { 90516 if x.Scaling == nil { 90517 x.Scaling = new(ScalingPolicy) 90518 } 90519 90520 x.Scaling.CodecDecodeSelf(d) 90521 } 90522 yyj31++ 90523 if yyhl31 { 90524 yyb31 = yyj31 > l 90525 } else { 90526 yyb31 = r.CheckBreak() 90527 } 90528 if yyb31 { 90529 r.ReadArrayEnd() 90530 return 90531 } 90532 r.ReadArrayElem() 90533 if r.TryDecodeAsNil() { 90534 if true && x.RestartPolicy != nil { 90535 x.RestartPolicy = nil 90536 } 90537 } else { 90538 if x.RestartPolicy == nil { 90539 x.RestartPolicy = new(RestartPolicy) 90540 } 90541 90542 x.RestartPolicy.CodecDecodeSelf(d) 90543 } 90544 yyj31++ 90545 if yyhl31 { 90546 yyb31 = yyj31 > l 90547 } else { 90548 yyb31 = r.CheckBreak() 90549 } 90550 if yyb31 { 90551 r.ReadArrayEnd() 90552 return 90553 } 90554 r.ReadArrayElem() 90555 if r.TryDecodeAsNil() { 90556 x.Tasks = nil 90557 } else { 90558 if false { 90559 } else { 90560 h.decSlicePtrtoTask((*[]*Task)(&x.Tasks), d) 90561 } 90562 } 90563 yyj31++ 90564 if yyhl31 { 90565 yyb31 = yyj31 > l 90566 } else { 90567 yyb31 = r.CheckBreak() 90568 } 90569 if yyb31 { 90570 r.ReadArrayEnd() 90571 return 90572 } 90573 r.ReadArrayElem() 90574 if r.TryDecodeAsNil() { 90575 if true && x.EphemeralDisk != nil { 90576 x.EphemeralDisk = nil 90577 } 90578 } else { 90579 if x.EphemeralDisk == nil { 90580 x.EphemeralDisk = new(EphemeralDisk) 90581 } 90582 90583 x.EphemeralDisk.CodecDecodeSelf(d) 90584 } 90585 yyj31++ 90586 if yyhl31 { 90587 yyb31 = yyj31 > l 90588 } else { 90589 yyb31 = r.CheckBreak() 90590 } 90591 if yyb31 { 90592 r.ReadArrayEnd() 90593 return 90594 } 90595 r.ReadArrayElem() 90596 if r.TryDecodeAsNil() { 90597 x.Meta = nil 90598 } else { 90599 if false { 90600 } else { 90601 z.F.DecMapStringStringX(&x.Meta, d) 90602 } 90603 } 90604 yyj31++ 90605 if yyhl31 { 90606 yyb31 = yyj31 > l 90607 } else { 90608 yyb31 = r.CheckBreak() 90609 } 90610 if yyb31 { 90611 r.ReadArrayEnd() 90612 return 90613 } 90614 r.ReadArrayElem() 90615 if r.TryDecodeAsNil() { 90616 if true && x.ReschedulePolicy != nil { 90617 x.ReschedulePolicy = nil 90618 } 90619 } else { 90620 if x.ReschedulePolicy == nil { 90621 x.ReschedulePolicy = new(ReschedulePolicy) 90622 } 90623 90624 x.ReschedulePolicy.CodecDecodeSelf(d) 90625 } 90626 yyj31++ 90627 if yyhl31 { 90628 yyb31 = yyj31 > l 90629 } else { 90630 yyb31 = r.CheckBreak() 90631 } 90632 if yyb31 { 90633 r.ReadArrayEnd() 90634 return 90635 } 90636 r.ReadArrayElem() 90637 if r.TryDecodeAsNil() { 90638 x.Affinities = nil 90639 } else { 90640 if false { 90641 } else { 90642 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 90643 } 90644 } 90645 yyj31++ 90646 if yyhl31 { 90647 yyb31 = yyj31 > l 90648 } else { 90649 yyb31 = r.CheckBreak() 90650 } 90651 if yyb31 { 90652 r.ReadArrayEnd() 90653 return 90654 } 90655 r.ReadArrayElem() 90656 if r.TryDecodeAsNil() { 90657 x.Spreads = nil 90658 } else { 90659 if false { 90660 } else { 90661 h.decSlicePtrtoSpread((*[]*Spread)(&x.Spreads), d) 90662 } 90663 } 90664 yyj31++ 90665 if yyhl31 { 90666 yyb31 = yyj31 > l 90667 } else { 90668 yyb31 = r.CheckBreak() 90669 } 90670 if yyb31 { 90671 r.ReadArrayEnd() 90672 return 90673 } 90674 r.ReadArrayElem() 90675 if r.TryDecodeAsNil() { 90676 x.Networks = nil 90677 } else { 90678 x.Networks.CodecDecodeSelf(d) 90679 } 90680 yyj31++ 90681 if yyhl31 { 90682 yyb31 = yyj31 > l 90683 } else { 90684 yyb31 = r.CheckBreak() 90685 } 90686 if yyb31 { 90687 r.ReadArrayEnd() 90688 return 90689 } 90690 r.ReadArrayElem() 90691 if r.TryDecodeAsNil() { 90692 x.Services = nil 90693 } else { 90694 if false { 90695 } else { 90696 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 90697 } 90698 } 90699 yyj31++ 90700 if yyhl31 { 90701 yyb31 = yyj31 > l 90702 } else { 90703 yyb31 = r.CheckBreak() 90704 } 90705 if yyb31 { 90706 r.ReadArrayEnd() 90707 return 90708 } 90709 r.ReadArrayElem() 90710 if r.TryDecodeAsNil() { 90711 x.Volumes = nil 90712 } else { 90713 if false { 90714 } else { 90715 h.decMapstringPtrtoVolumeRequest((*map[string]*VolumeRequest)(&x.Volumes), d) 90716 } 90717 } 90718 yyj31++ 90719 if yyhl31 { 90720 yyb31 = yyj31 > l 90721 } else { 90722 yyb31 = r.CheckBreak() 90723 } 90724 if yyb31 { 90725 r.ReadArrayEnd() 90726 return 90727 } 90728 r.ReadArrayElem() 90729 if r.TryDecodeAsNil() { 90730 if true && x.ShutdownDelay != nil { 90731 x.ShutdownDelay = nil 90732 } 90733 } else { 90734 if x.ShutdownDelay == nil { 90735 x.ShutdownDelay = new(time.Duration) 90736 } 90737 90738 if false { 90739 } else if yyxt56 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt56 != nil { 90740 z.DecExtension(x.ShutdownDelay, yyxt56) 90741 } else { 90742 *x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 90743 } 90744 } 90745 yyj31++ 90746 if yyhl31 { 90747 yyb31 = yyj31 > l 90748 } else { 90749 yyb31 = r.CheckBreak() 90750 } 90751 if yyb31 { 90752 r.ReadArrayEnd() 90753 return 90754 } 90755 r.ReadArrayElem() 90756 if r.TryDecodeAsNil() { 90757 if true && x.StopAfterClientDisconnect != nil { 90758 x.StopAfterClientDisconnect = nil 90759 } 90760 } else { 90761 if x.StopAfterClientDisconnect == nil { 90762 x.StopAfterClientDisconnect = new(time.Duration) 90763 } 90764 90765 if false { 90766 } else if yyxt58 := z.Extension(z.I2Rtid(x.StopAfterClientDisconnect)); yyxt58 != nil { 90767 z.DecExtension(x.StopAfterClientDisconnect, yyxt58) 90768 } else { 90769 *x.StopAfterClientDisconnect = (time.Duration)(r.DecodeInt64()) 90770 } 90771 } 90772 for { 90773 yyj31++ 90774 if yyhl31 { 90775 yyb31 = yyj31 > l 90776 } else { 90777 yyb31 = r.CheckBreak() 90778 } 90779 if yyb31 { 90780 break 90781 } 90782 r.ReadArrayElem() 90783 z.DecStructFieldNotFound(yyj31-1, "") 90784 } 90785 r.ReadArrayEnd() 90786 } 90787 90788 func (x *CheckRestart) CodecEncodeSelf(e *codec1978.Encoder) { 90789 var h codecSelfer100 90790 z, r := codec1978.GenHelperEncoder(e) 90791 _, _, _ = h, z, r 90792 if x == nil { 90793 r.EncodeNil() 90794 } else { 90795 if false { 90796 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 90797 z.EncExtension(x, yyxt1) 90798 } else { 90799 yysep2 := !z.EncBinary() 90800 yy2arr2 := z.EncBasicHandle().StructToArray 90801 _, _ = yysep2, yy2arr2 90802 const yyr2 bool = false // struct tag has 'toArray' 90803 if yyr2 || yy2arr2 { 90804 r.WriteArrayStart(3) 90805 } else { 90806 r.WriteMapStart(3) 90807 } 90808 if yyr2 || yy2arr2 { 90809 r.WriteArrayElem() 90810 if false { 90811 } else { 90812 r.EncodeInt(int64(x.Limit)) 90813 } 90814 } else { 90815 r.WriteMapElemKey() 90816 if z.IsJSONHandle() { 90817 z.WriteStr("\"Limit\"") 90818 } else { 90819 r.EncodeStringEnc(codecSelferCcUTF8100, `Limit`) 90820 } 90821 r.WriteMapElemValue() 90822 if false { 90823 } else { 90824 r.EncodeInt(int64(x.Limit)) 90825 } 90826 } 90827 if yyr2 || yy2arr2 { 90828 r.WriteArrayElem() 90829 if false { 90830 } else if yyxt7 := z.Extension(z.I2Rtid(x.Grace)); yyxt7 != nil { 90831 z.EncExtension(x.Grace, yyxt7) 90832 } else { 90833 r.EncodeInt(int64(x.Grace)) 90834 } 90835 } else { 90836 r.WriteMapElemKey() 90837 if z.IsJSONHandle() { 90838 z.WriteStr("\"Grace\"") 90839 } else { 90840 r.EncodeStringEnc(codecSelferCcUTF8100, `Grace`) 90841 } 90842 r.WriteMapElemValue() 90843 if false { 90844 } else if yyxt8 := z.Extension(z.I2Rtid(x.Grace)); yyxt8 != nil { 90845 z.EncExtension(x.Grace, yyxt8) 90846 } else { 90847 r.EncodeInt(int64(x.Grace)) 90848 } 90849 } 90850 if yyr2 || yy2arr2 { 90851 r.WriteArrayElem() 90852 if false { 90853 } else { 90854 r.EncodeBool(bool(x.IgnoreWarnings)) 90855 } 90856 } else { 90857 r.WriteMapElemKey() 90858 if z.IsJSONHandle() { 90859 z.WriteStr("\"IgnoreWarnings\"") 90860 } else { 90861 r.EncodeStringEnc(codecSelferCcUTF8100, `IgnoreWarnings`) 90862 } 90863 r.WriteMapElemValue() 90864 if false { 90865 } else { 90866 r.EncodeBool(bool(x.IgnoreWarnings)) 90867 } 90868 } 90869 if yyr2 || yy2arr2 { 90870 r.WriteArrayEnd() 90871 } else { 90872 r.WriteMapEnd() 90873 } 90874 } 90875 } 90876 } 90877 90878 func (x *CheckRestart) CodecDecodeSelf(d *codec1978.Decoder) { 90879 var h codecSelfer100 90880 z, r := codec1978.GenHelperDecoder(d) 90881 _, _, _ = h, z, r 90882 if false { 90883 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 90884 z.DecExtension(x, yyxt1) 90885 } else { 90886 yyct2 := r.ContainerType() 90887 if yyct2 == codecSelferValueTypeMap100 { 90888 yyl2 := r.ReadMapStart() 90889 if yyl2 == 0 { 90890 r.ReadMapEnd() 90891 } else { 90892 x.codecDecodeSelfFromMap(yyl2, d) 90893 } 90894 } else if yyct2 == codecSelferValueTypeArray100 { 90895 yyl2 := r.ReadArrayStart() 90896 if yyl2 == 0 { 90897 r.ReadArrayEnd() 90898 } else { 90899 x.codecDecodeSelfFromArray(yyl2, d) 90900 } 90901 } else { 90902 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 90903 } 90904 } 90905 } 90906 90907 func (x *CheckRestart) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 90908 var h codecSelfer100 90909 z, r := codec1978.GenHelperDecoder(d) 90910 _, _, _ = h, z, r 90911 var yyhl3 bool = l >= 0 90912 for yyj3 := 0; ; yyj3++ { 90913 if yyhl3 { 90914 if yyj3 >= l { 90915 break 90916 } 90917 } else { 90918 if r.CheckBreak() { 90919 break 90920 } 90921 } 90922 r.ReadMapElemKey() 90923 yys3 := z.StringView(r.DecodeStringAsBytes()) 90924 r.ReadMapElemValue() 90925 switch yys3 { 90926 case "Limit": 90927 if r.TryDecodeAsNil() { 90928 x.Limit = 0 90929 } else { 90930 x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 90931 } 90932 case "Grace": 90933 if r.TryDecodeAsNil() { 90934 x.Grace = 0 90935 } else { 90936 if false { 90937 } else if yyxt6 := z.Extension(z.I2Rtid(x.Grace)); yyxt6 != nil { 90938 z.DecExtension(x.Grace, yyxt6) 90939 } else { 90940 x.Grace = (time.Duration)(r.DecodeInt64()) 90941 } 90942 } 90943 case "IgnoreWarnings": 90944 if r.TryDecodeAsNil() { 90945 x.IgnoreWarnings = false 90946 } else { 90947 x.IgnoreWarnings = (bool)(r.DecodeBool()) 90948 } 90949 default: 90950 z.DecStructFieldNotFound(-1, yys3) 90951 } // end switch yys3 90952 } // end for yyj3 90953 r.ReadMapEnd() 90954 } 90955 90956 func (x *CheckRestart) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 90957 var h codecSelfer100 90958 z, r := codec1978.GenHelperDecoder(d) 90959 _, _, _ = h, z, r 90960 var yyj8 int 90961 var yyb8 bool 90962 var yyhl8 bool = l >= 0 90963 yyj8++ 90964 if yyhl8 { 90965 yyb8 = yyj8 > l 90966 } else { 90967 yyb8 = r.CheckBreak() 90968 } 90969 if yyb8 { 90970 r.ReadArrayEnd() 90971 return 90972 } 90973 r.ReadArrayElem() 90974 if r.TryDecodeAsNil() { 90975 x.Limit = 0 90976 } else { 90977 x.Limit = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 90978 } 90979 yyj8++ 90980 if yyhl8 { 90981 yyb8 = yyj8 > l 90982 } else { 90983 yyb8 = r.CheckBreak() 90984 } 90985 if yyb8 { 90986 r.ReadArrayEnd() 90987 return 90988 } 90989 r.ReadArrayElem() 90990 if r.TryDecodeAsNil() { 90991 x.Grace = 0 90992 } else { 90993 if false { 90994 } else if yyxt11 := z.Extension(z.I2Rtid(x.Grace)); yyxt11 != nil { 90995 z.DecExtension(x.Grace, yyxt11) 90996 } else { 90997 x.Grace = (time.Duration)(r.DecodeInt64()) 90998 } 90999 } 91000 yyj8++ 91001 if yyhl8 { 91002 yyb8 = yyj8 > l 91003 } else { 91004 yyb8 = r.CheckBreak() 91005 } 91006 if yyb8 { 91007 r.ReadArrayEnd() 91008 return 91009 } 91010 r.ReadArrayElem() 91011 if r.TryDecodeAsNil() { 91012 x.IgnoreWarnings = false 91013 } else { 91014 x.IgnoreWarnings = (bool)(r.DecodeBool()) 91015 } 91016 for { 91017 yyj8++ 91018 if yyhl8 { 91019 yyb8 = yyj8 > l 91020 } else { 91021 yyb8 = r.CheckBreak() 91022 } 91023 if yyb8 { 91024 break 91025 } 91026 r.ReadArrayElem() 91027 z.DecStructFieldNotFound(yyj8-1, "") 91028 } 91029 r.ReadArrayEnd() 91030 } 91031 91032 func (x *LogConfig) CodecEncodeSelf(e *codec1978.Encoder) { 91033 var h codecSelfer100 91034 z, r := codec1978.GenHelperEncoder(e) 91035 _, _, _ = h, z, r 91036 if x == nil { 91037 r.EncodeNil() 91038 } else { 91039 if false { 91040 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91041 z.EncExtension(x, yyxt1) 91042 } else { 91043 yysep2 := !z.EncBinary() 91044 yy2arr2 := z.EncBasicHandle().StructToArray 91045 _, _ = yysep2, yy2arr2 91046 const yyr2 bool = false // struct tag has 'toArray' 91047 if yyr2 || yy2arr2 { 91048 r.WriteArrayStart(2) 91049 } else { 91050 r.WriteMapStart(2) 91051 } 91052 if yyr2 || yy2arr2 { 91053 r.WriteArrayElem() 91054 if false { 91055 } else { 91056 r.EncodeInt(int64(x.MaxFiles)) 91057 } 91058 } else { 91059 r.WriteMapElemKey() 91060 if z.IsJSONHandle() { 91061 z.WriteStr("\"MaxFiles\"") 91062 } else { 91063 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFiles`) 91064 } 91065 r.WriteMapElemValue() 91066 if false { 91067 } else { 91068 r.EncodeInt(int64(x.MaxFiles)) 91069 } 91070 } 91071 if yyr2 || yy2arr2 { 91072 r.WriteArrayElem() 91073 if false { 91074 } else { 91075 r.EncodeInt(int64(x.MaxFileSizeMB)) 91076 } 91077 } else { 91078 r.WriteMapElemKey() 91079 if z.IsJSONHandle() { 91080 z.WriteStr("\"MaxFileSizeMB\"") 91081 } else { 91082 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxFileSizeMB`) 91083 } 91084 r.WriteMapElemValue() 91085 if false { 91086 } else { 91087 r.EncodeInt(int64(x.MaxFileSizeMB)) 91088 } 91089 } 91090 if yyr2 || yy2arr2 { 91091 r.WriteArrayEnd() 91092 } else { 91093 r.WriteMapEnd() 91094 } 91095 } 91096 } 91097 } 91098 91099 func (x *LogConfig) CodecDecodeSelf(d *codec1978.Decoder) { 91100 var h codecSelfer100 91101 z, r := codec1978.GenHelperDecoder(d) 91102 _, _, _ = h, z, r 91103 if false { 91104 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91105 z.DecExtension(x, yyxt1) 91106 } else { 91107 yyct2 := r.ContainerType() 91108 if yyct2 == codecSelferValueTypeMap100 { 91109 yyl2 := r.ReadMapStart() 91110 if yyl2 == 0 { 91111 r.ReadMapEnd() 91112 } else { 91113 x.codecDecodeSelfFromMap(yyl2, d) 91114 } 91115 } else if yyct2 == codecSelferValueTypeArray100 { 91116 yyl2 := r.ReadArrayStart() 91117 if yyl2 == 0 { 91118 r.ReadArrayEnd() 91119 } else { 91120 x.codecDecodeSelfFromArray(yyl2, d) 91121 } 91122 } else { 91123 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 91124 } 91125 } 91126 } 91127 91128 func (x *LogConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 91129 var h codecSelfer100 91130 z, r := codec1978.GenHelperDecoder(d) 91131 _, _, _ = h, z, r 91132 var yyhl3 bool = l >= 0 91133 for yyj3 := 0; ; yyj3++ { 91134 if yyhl3 { 91135 if yyj3 >= l { 91136 break 91137 } 91138 } else { 91139 if r.CheckBreak() { 91140 break 91141 } 91142 } 91143 r.ReadMapElemKey() 91144 yys3 := z.StringView(r.DecodeStringAsBytes()) 91145 r.ReadMapElemValue() 91146 switch yys3 { 91147 case "MaxFiles": 91148 if r.TryDecodeAsNil() { 91149 x.MaxFiles = 0 91150 } else { 91151 x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 91152 } 91153 case "MaxFileSizeMB": 91154 if r.TryDecodeAsNil() { 91155 x.MaxFileSizeMB = 0 91156 } else { 91157 x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 91158 } 91159 default: 91160 z.DecStructFieldNotFound(-1, yys3) 91161 } // end switch yys3 91162 } // end for yyj3 91163 r.ReadMapEnd() 91164 } 91165 91166 func (x *LogConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 91167 var h codecSelfer100 91168 z, r := codec1978.GenHelperDecoder(d) 91169 _, _, _ = h, z, r 91170 var yyj6 int 91171 var yyb6 bool 91172 var yyhl6 bool = l >= 0 91173 yyj6++ 91174 if yyhl6 { 91175 yyb6 = yyj6 > l 91176 } else { 91177 yyb6 = r.CheckBreak() 91178 } 91179 if yyb6 { 91180 r.ReadArrayEnd() 91181 return 91182 } 91183 r.ReadArrayElem() 91184 if r.TryDecodeAsNil() { 91185 x.MaxFiles = 0 91186 } else { 91187 x.MaxFiles = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 91188 } 91189 yyj6++ 91190 if yyhl6 { 91191 yyb6 = yyj6 > l 91192 } else { 91193 yyb6 = r.CheckBreak() 91194 } 91195 if yyb6 { 91196 r.ReadArrayEnd() 91197 return 91198 } 91199 r.ReadArrayElem() 91200 if r.TryDecodeAsNil() { 91201 x.MaxFileSizeMB = 0 91202 } else { 91203 x.MaxFileSizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 91204 } 91205 for { 91206 yyj6++ 91207 if yyhl6 { 91208 yyb6 = yyj6 > l 91209 } else { 91210 yyb6 = r.CheckBreak() 91211 } 91212 if yyb6 { 91213 break 91214 } 91215 r.ReadArrayElem() 91216 z.DecStructFieldNotFound(yyj6-1, "") 91217 } 91218 r.ReadArrayEnd() 91219 } 91220 91221 func (x *Task) CodecEncodeSelf(e *codec1978.Encoder) { 91222 var h codecSelfer100 91223 z, r := codec1978.GenHelperEncoder(e) 91224 _, _, _ = h, z, r 91225 if x == nil { 91226 r.EncodeNil() 91227 } else { 91228 if false { 91229 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91230 z.EncExtension(x, yyxt1) 91231 } else { 91232 yysep2 := !z.EncBinary() 91233 yy2arr2 := z.EncBasicHandle().StructToArray 91234 _, _ = yysep2, yy2arr2 91235 const yyr2 bool = false // struct tag has 'toArray' 91236 if yyr2 || yy2arr2 { 91237 r.WriteArrayStart(24) 91238 } else { 91239 r.WriteMapStart(24) 91240 } 91241 if yyr2 || yy2arr2 { 91242 r.WriteArrayElem() 91243 if false { 91244 } else { 91245 if z.EncBasicHandle().StringToRaw { 91246 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 91247 } else { 91248 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 91249 } 91250 } 91251 } else { 91252 r.WriteMapElemKey() 91253 if z.IsJSONHandle() { 91254 z.WriteStr("\"Name\"") 91255 } else { 91256 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 91257 } 91258 r.WriteMapElemValue() 91259 if false { 91260 } else { 91261 if z.EncBasicHandle().StringToRaw { 91262 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 91263 } else { 91264 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 91265 } 91266 } 91267 } 91268 if yyr2 || yy2arr2 { 91269 r.WriteArrayElem() 91270 if false { 91271 } else { 91272 if z.EncBasicHandle().StringToRaw { 91273 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 91274 } else { 91275 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 91276 } 91277 } 91278 } else { 91279 r.WriteMapElemKey() 91280 if z.IsJSONHandle() { 91281 z.WriteStr("\"Driver\"") 91282 } else { 91283 r.EncodeStringEnc(codecSelferCcUTF8100, `Driver`) 91284 } 91285 r.WriteMapElemValue() 91286 if false { 91287 } else { 91288 if z.EncBasicHandle().StringToRaw { 91289 r.EncodeStringBytesRaw(z.BytesView(string(x.Driver))) 91290 } else { 91291 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Driver)) 91292 } 91293 } 91294 } 91295 if yyr2 || yy2arr2 { 91296 r.WriteArrayElem() 91297 if false { 91298 } else { 91299 if z.EncBasicHandle().StringToRaw { 91300 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 91301 } else { 91302 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 91303 } 91304 } 91305 } else { 91306 r.WriteMapElemKey() 91307 if z.IsJSONHandle() { 91308 z.WriteStr("\"User\"") 91309 } else { 91310 r.EncodeStringEnc(codecSelferCcUTF8100, `User`) 91311 } 91312 r.WriteMapElemValue() 91313 if false { 91314 } else { 91315 if z.EncBasicHandle().StringToRaw { 91316 r.EncodeStringBytesRaw(z.BytesView(string(x.User))) 91317 } else { 91318 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.User)) 91319 } 91320 } 91321 } 91322 if yyr2 || yy2arr2 { 91323 r.WriteArrayElem() 91324 if x.Config == nil { 91325 r.EncodeNil() 91326 } else { 91327 if false { 91328 } else { 91329 z.F.EncMapStringIntfV(x.Config, e) 91330 } 91331 } 91332 } else { 91333 r.WriteMapElemKey() 91334 if z.IsJSONHandle() { 91335 z.WriteStr("\"Config\"") 91336 } else { 91337 r.EncodeStringEnc(codecSelferCcUTF8100, `Config`) 91338 } 91339 r.WriteMapElemValue() 91340 if x.Config == nil { 91341 r.EncodeNil() 91342 } else { 91343 if false { 91344 } else { 91345 z.F.EncMapStringIntfV(x.Config, e) 91346 } 91347 } 91348 } 91349 if yyr2 || yy2arr2 { 91350 r.WriteArrayElem() 91351 if x.Env == nil { 91352 r.EncodeNil() 91353 } else { 91354 if false { 91355 } else { 91356 z.F.EncMapStringStringV(x.Env, e) 91357 } 91358 } 91359 } else { 91360 r.WriteMapElemKey() 91361 if z.IsJSONHandle() { 91362 z.WriteStr("\"Env\"") 91363 } else { 91364 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 91365 } 91366 r.WriteMapElemValue() 91367 if x.Env == nil { 91368 r.EncodeNil() 91369 } else { 91370 if false { 91371 } else { 91372 z.F.EncMapStringStringV(x.Env, e) 91373 } 91374 } 91375 } 91376 if yyr2 || yy2arr2 { 91377 r.WriteArrayElem() 91378 if x.Services == nil { 91379 r.EncodeNil() 91380 } else { 91381 if false { 91382 } else { 91383 h.encSlicePtrtoService(([]*Service)(x.Services), e) 91384 } 91385 } 91386 } else { 91387 r.WriteMapElemKey() 91388 if z.IsJSONHandle() { 91389 z.WriteStr("\"Services\"") 91390 } else { 91391 r.EncodeStringEnc(codecSelferCcUTF8100, `Services`) 91392 } 91393 r.WriteMapElemValue() 91394 if x.Services == nil { 91395 r.EncodeNil() 91396 } else { 91397 if false { 91398 } else { 91399 h.encSlicePtrtoService(([]*Service)(x.Services), e) 91400 } 91401 } 91402 } 91403 var yyn21 bool 91404 if x.Vault == nil { 91405 yyn21 = true 91406 goto LABEL21 91407 } 91408 LABEL21: 91409 if yyr2 || yy2arr2 { 91410 if yyn21 { 91411 r.WriteArrayElem() 91412 r.EncodeNil() 91413 } else { 91414 r.WriteArrayElem() 91415 if x.Vault == nil { 91416 r.EncodeNil() 91417 } else { 91418 x.Vault.CodecEncodeSelf(e) 91419 } 91420 } 91421 } else { 91422 r.WriteMapElemKey() 91423 if z.IsJSONHandle() { 91424 z.WriteStr("\"Vault\"") 91425 } else { 91426 r.EncodeStringEnc(codecSelferCcUTF8100, `Vault`) 91427 } 91428 r.WriteMapElemValue() 91429 if yyn21 { 91430 r.EncodeNil() 91431 } else { 91432 if x.Vault == nil { 91433 r.EncodeNil() 91434 } else { 91435 x.Vault.CodecEncodeSelf(e) 91436 } 91437 } 91438 } 91439 if yyr2 || yy2arr2 { 91440 r.WriteArrayElem() 91441 if x.Templates == nil { 91442 r.EncodeNil() 91443 } else { 91444 if false { 91445 } else { 91446 h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) 91447 } 91448 } 91449 } else { 91450 r.WriteMapElemKey() 91451 if z.IsJSONHandle() { 91452 z.WriteStr("\"Templates\"") 91453 } else { 91454 r.EncodeStringEnc(codecSelferCcUTF8100, `Templates`) 91455 } 91456 r.WriteMapElemValue() 91457 if x.Templates == nil { 91458 r.EncodeNil() 91459 } else { 91460 if false { 91461 } else { 91462 h.encSlicePtrtoTemplate(([]*Template)(x.Templates), e) 91463 } 91464 } 91465 } 91466 if yyr2 || yy2arr2 { 91467 r.WriteArrayElem() 91468 if x.Constraints == nil { 91469 r.EncodeNil() 91470 } else { 91471 if false { 91472 } else { 91473 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 91474 } 91475 } 91476 } else { 91477 r.WriteMapElemKey() 91478 if z.IsJSONHandle() { 91479 z.WriteStr("\"Constraints\"") 91480 } else { 91481 r.EncodeStringEnc(codecSelferCcUTF8100, `Constraints`) 91482 } 91483 r.WriteMapElemValue() 91484 if x.Constraints == nil { 91485 r.EncodeNil() 91486 } else { 91487 if false { 91488 } else { 91489 h.encSlicePtrtoConstraint(([]*Constraint)(x.Constraints), e) 91490 } 91491 } 91492 } 91493 if yyr2 || yy2arr2 { 91494 r.WriteArrayElem() 91495 if x.Affinities == nil { 91496 r.EncodeNil() 91497 } else { 91498 if false { 91499 } else { 91500 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 91501 } 91502 } 91503 } else { 91504 r.WriteMapElemKey() 91505 if z.IsJSONHandle() { 91506 z.WriteStr("\"Affinities\"") 91507 } else { 91508 r.EncodeStringEnc(codecSelferCcUTF8100, `Affinities`) 91509 } 91510 r.WriteMapElemValue() 91511 if x.Affinities == nil { 91512 r.EncodeNil() 91513 } else { 91514 if false { 91515 } else { 91516 h.encSlicePtrtoAffinity(([]*Affinity)(x.Affinities), e) 91517 } 91518 } 91519 } 91520 var yyn33 bool 91521 if x.Resources == nil { 91522 yyn33 = true 91523 goto LABEL33 91524 } 91525 LABEL33: 91526 if yyr2 || yy2arr2 { 91527 if yyn33 { 91528 r.WriteArrayElem() 91529 r.EncodeNil() 91530 } else { 91531 r.WriteArrayElem() 91532 if x.Resources == nil { 91533 r.EncodeNil() 91534 } else { 91535 x.Resources.CodecEncodeSelf(e) 91536 } 91537 } 91538 } else { 91539 r.WriteMapElemKey() 91540 if z.IsJSONHandle() { 91541 z.WriteStr("\"Resources\"") 91542 } else { 91543 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 91544 } 91545 r.WriteMapElemValue() 91546 if yyn33 { 91547 r.EncodeNil() 91548 } else { 91549 if x.Resources == nil { 91550 r.EncodeNil() 91551 } else { 91552 x.Resources.CodecEncodeSelf(e) 91553 } 91554 } 91555 } 91556 var yyn36 bool 91557 if x.RestartPolicy == nil { 91558 yyn36 = true 91559 goto LABEL36 91560 } 91561 LABEL36: 91562 if yyr2 || yy2arr2 { 91563 if yyn36 { 91564 r.WriteArrayElem() 91565 r.EncodeNil() 91566 } else { 91567 r.WriteArrayElem() 91568 if x.RestartPolicy == nil { 91569 r.EncodeNil() 91570 } else { 91571 x.RestartPolicy.CodecEncodeSelf(e) 91572 } 91573 } 91574 } else { 91575 r.WriteMapElemKey() 91576 if z.IsJSONHandle() { 91577 z.WriteStr("\"RestartPolicy\"") 91578 } else { 91579 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartPolicy`) 91580 } 91581 r.WriteMapElemValue() 91582 if yyn36 { 91583 r.EncodeNil() 91584 } else { 91585 if x.RestartPolicy == nil { 91586 r.EncodeNil() 91587 } else { 91588 x.RestartPolicy.CodecEncodeSelf(e) 91589 } 91590 } 91591 } 91592 var yyn39 bool 91593 if x.DispatchPayload == nil { 91594 yyn39 = true 91595 goto LABEL39 91596 } 91597 LABEL39: 91598 if yyr2 || yy2arr2 { 91599 if yyn39 { 91600 r.WriteArrayElem() 91601 r.EncodeNil() 91602 } else { 91603 r.WriteArrayElem() 91604 if x.DispatchPayload == nil { 91605 r.EncodeNil() 91606 } else { 91607 x.DispatchPayload.CodecEncodeSelf(e) 91608 } 91609 } 91610 } else { 91611 r.WriteMapElemKey() 91612 if z.IsJSONHandle() { 91613 z.WriteStr("\"DispatchPayload\"") 91614 } else { 91615 r.EncodeStringEnc(codecSelferCcUTF8100, `DispatchPayload`) 91616 } 91617 r.WriteMapElemValue() 91618 if yyn39 { 91619 r.EncodeNil() 91620 } else { 91621 if x.DispatchPayload == nil { 91622 r.EncodeNil() 91623 } else { 91624 x.DispatchPayload.CodecEncodeSelf(e) 91625 } 91626 } 91627 } 91628 var yyn42 bool 91629 if x.Lifecycle == nil { 91630 yyn42 = true 91631 goto LABEL42 91632 } 91633 LABEL42: 91634 if yyr2 || yy2arr2 { 91635 if yyn42 { 91636 r.WriteArrayElem() 91637 r.EncodeNil() 91638 } else { 91639 r.WriteArrayElem() 91640 if x.Lifecycle == nil { 91641 r.EncodeNil() 91642 } else { 91643 x.Lifecycle.CodecEncodeSelf(e) 91644 } 91645 } 91646 } else { 91647 r.WriteMapElemKey() 91648 if z.IsJSONHandle() { 91649 z.WriteStr("\"Lifecycle\"") 91650 } else { 91651 r.EncodeStringEnc(codecSelferCcUTF8100, `Lifecycle`) 91652 } 91653 r.WriteMapElemValue() 91654 if yyn42 { 91655 r.EncodeNil() 91656 } else { 91657 if x.Lifecycle == nil { 91658 r.EncodeNil() 91659 } else { 91660 x.Lifecycle.CodecEncodeSelf(e) 91661 } 91662 } 91663 } 91664 if yyr2 || yy2arr2 { 91665 r.WriteArrayElem() 91666 if x.Meta == nil { 91667 r.EncodeNil() 91668 } else { 91669 if false { 91670 } else { 91671 z.F.EncMapStringStringV(x.Meta, e) 91672 } 91673 } 91674 } else { 91675 r.WriteMapElemKey() 91676 if z.IsJSONHandle() { 91677 z.WriteStr("\"Meta\"") 91678 } else { 91679 r.EncodeStringEnc(codecSelferCcUTF8100, `Meta`) 91680 } 91681 r.WriteMapElemValue() 91682 if x.Meta == nil { 91683 r.EncodeNil() 91684 } else { 91685 if false { 91686 } else { 91687 z.F.EncMapStringStringV(x.Meta, e) 91688 } 91689 } 91690 } 91691 if yyr2 || yy2arr2 { 91692 r.WriteArrayElem() 91693 if false { 91694 } else if yyxt49 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt49 != nil { 91695 z.EncExtension(x.KillTimeout, yyxt49) 91696 } else { 91697 r.EncodeInt(int64(x.KillTimeout)) 91698 } 91699 } else { 91700 r.WriteMapElemKey() 91701 if z.IsJSONHandle() { 91702 z.WriteStr("\"KillTimeout\"") 91703 } else { 91704 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 91705 } 91706 r.WriteMapElemValue() 91707 if false { 91708 } else if yyxt50 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt50 != nil { 91709 z.EncExtension(x.KillTimeout, yyxt50) 91710 } else { 91711 r.EncodeInt(int64(x.KillTimeout)) 91712 } 91713 } 91714 var yyn51 bool 91715 if x.LogConfig == nil { 91716 yyn51 = true 91717 goto LABEL51 91718 } 91719 LABEL51: 91720 if yyr2 || yy2arr2 { 91721 if yyn51 { 91722 r.WriteArrayElem() 91723 r.EncodeNil() 91724 } else { 91725 r.WriteArrayElem() 91726 if x.LogConfig == nil { 91727 r.EncodeNil() 91728 } else { 91729 x.LogConfig.CodecEncodeSelf(e) 91730 } 91731 } 91732 } else { 91733 r.WriteMapElemKey() 91734 if z.IsJSONHandle() { 91735 z.WriteStr("\"LogConfig\"") 91736 } else { 91737 r.EncodeStringEnc(codecSelferCcUTF8100, `LogConfig`) 91738 } 91739 r.WriteMapElemValue() 91740 if yyn51 { 91741 r.EncodeNil() 91742 } else { 91743 if x.LogConfig == nil { 91744 r.EncodeNil() 91745 } else { 91746 x.LogConfig.CodecEncodeSelf(e) 91747 } 91748 } 91749 } 91750 if yyr2 || yy2arr2 { 91751 r.WriteArrayElem() 91752 if x.Artifacts == nil { 91753 r.EncodeNil() 91754 } else { 91755 if false { 91756 } else { 91757 h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) 91758 } 91759 } 91760 } else { 91761 r.WriteMapElemKey() 91762 if z.IsJSONHandle() { 91763 z.WriteStr("\"Artifacts\"") 91764 } else { 91765 r.EncodeStringEnc(codecSelferCcUTF8100, `Artifacts`) 91766 } 91767 r.WriteMapElemValue() 91768 if x.Artifacts == nil { 91769 r.EncodeNil() 91770 } else { 91771 if false { 91772 } else { 91773 h.encSlicePtrtoTaskArtifact(([]*TaskArtifact)(x.Artifacts), e) 91774 } 91775 } 91776 } 91777 if yyr2 || yy2arr2 { 91778 r.WriteArrayElem() 91779 if false { 91780 } else { 91781 r.EncodeBool(bool(x.Leader)) 91782 } 91783 } else { 91784 r.WriteMapElemKey() 91785 if z.IsJSONHandle() { 91786 z.WriteStr("\"Leader\"") 91787 } else { 91788 r.EncodeStringEnc(codecSelferCcUTF8100, `Leader`) 91789 } 91790 r.WriteMapElemValue() 91791 if false { 91792 } else { 91793 r.EncodeBool(bool(x.Leader)) 91794 } 91795 } 91796 if yyr2 || yy2arr2 { 91797 r.WriteArrayElem() 91798 if false { 91799 } else if yyxt61 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt61 != nil { 91800 z.EncExtension(x.ShutdownDelay, yyxt61) 91801 } else { 91802 r.EncodeInt(int64(x.ShutdownDelay)) 91803 } 91804 } else { 91805 r.WriteMapElemKey() 91806 if z.IsJSONHandle() { 91807 z.WriteStr("\"ShutdownDelay\"") 91808 } else { 91809 r.EncodeStringEnc(codecSelferCcUTF8100, `ShutdownDelay`) 91810 } 91811 r.WriteMapElemValue() 91812 if false { 91813 } else if yyxt62 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt62 != nil { 91814 z.EncExtension(x.ShutdownDelay, yyxt62) 91815 } else { 91816 r.EncodeInt(int64(x.ShutdownDelay)) 91817 } 91818 } 91819 if yyr2 || yy2arr2 { 91820 r.WriteArrayElem() 91821 if x.VolumeMounts == nil { 91822 r.EncodeNil() 91823 } else { 91824 if false { 91825 } else { 91826 h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) 91827 } 91828 } 91829 } else { 91830 r.WriteMapElemKey() 91831 if z.IsJSONHandle() { 91832 z.WriteStr("\"VolumeMounts\"") 91833 } else { 91834 r.EncodeStringEnc(codecSelferCcUTF8100, `VolumeMounts`) 91835 } 91836 r.WriteMapElemValue() 91837 if x.VolumeMounts == nil { 91838 r.EncodeNil() 91839 } else { 91840 if false { 91841 } else { 91842 h.encSlicePtrtoVolumeMount(([]*VolumeMount)(x.VolumeMounts), e) 91843 } 91844 } 91845 } 91846 if yyr2 || yy2arr2 { 91847 r.WriteArrayElem() 91848 if false { 91849 } else { 91850 if z.EncBasicHandle().StringToRaw { 91851 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 91852 } else { 91853 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 91854 } 91855 } 91856 } else { 91857 r.WriteMapElemKey() 91858 if z.IsJSONHandle() { 91859 z.WriteStr("\"KillSignal\"") 91860 } else { 91861 r.EncodeStringEnc(codecSelferCcUTF8100, `KillSignal`) 91862 } 91863 r.WriteMapElemValue() 91864 if false { 91865 } else { 91866 if z.EncBasicHandle().StringToRaw { 91867 r.EncodeStringBytesRaw(z.BytesView(string(x.KillSignal))) 91868 } else { 91869 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillSignal)) 91870 } 91871 } 91872 } 91873 if yyr2 || yy2arr2 { 91874 r.WriteArrayElem() 91875 x.Kind.CodecEncodeSelf(e) 91876 } else { 91877 r.WriteMapElemKey() 91878 if z.IsJSONHandle() { 91879 z.WriteStr("\"Kind\"") 91880 } else { 91881 r.EncodeStringEnc(codecSelferCcUTF8100, `Kind`) 91882 } 91883 r.WriteMapElemValue() 91884 x.Kind.CodecEncodeSelf(e) 91885 } 91886 var yyn72 bool 91887 if x.CSIPluginConfig == nil { 91888 yyn72 = true 91889 goto LABEL72 91890 } 91891 LABEL72: 91892 if yyr2 || yy2arr2 { 91893 if yyn72 { 91894 r.WriteArrayElem() 91895 r.EncodeNil() 91896 } else { 91897 r.WriteArrayElem() 91898 if x.CSIPluginConfig == nil { 91899 r.EncodeNil() 91900 } else { 91901 x.CSIPluginConfig.CodecEncodeSelf(e) 91902 } 91903 } 91904 } else { 91905 r.WriteMapElemKey() 91906 if z.IsJSONHandle() { 91907 z.WriteStr("\"CSIPluginConfig\"") 91908 } else { 91909 r.EncodeStringEnc(codecSelferCcUTF8100, `CSIPluginConfig`) 91910 } 91911 r.WriteMapElemValue() 91912 if yyn72 { 91913 r.EncodeNil() 91914 } else { 91915 if x.CSIPluginConfig == nil { 91916 r.EncodeNil() 91917 } else { 91918 x.CSIPluginConfig.CodecEncodeSelf(e) 91919 } 91920 } 91921 } 91922 if yyr2 || yy2arr2 { 91923 r.WriteArrayEnd() 91924 } else { 91925 r.WriteMapEnd() 91926 } 91927 } 91928 } 91929 } 91930 91931 func (x *Task) CodecDecodeSelf(d *codec1978.Decoder) { 91932 var h codecSelfer100 91933 z, r := codec1978.GenHelperDecoder(d) 91934 _, _, _ = h, z, r 91935 if false { 91936 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 91937 z.DecExtension(x, yyxt1) 91938 } else { 91939 yyct2 := r.ContainerType() 91940 if yyct2 == codecSelferValueTypeMap100 { 91941 yyl2 := r.ReadMapStart() 91942 if yyl2 == 0 { 91943 r.ReadMapEnd() 91944 } else { 91945 x.codecDecodeSelfFromMap(yyl2, d) 91946 } 91947 } else if yyct2 == codecSelferValueTypeArray100 { 91948 yyl2 := r.ReadArrayStart() 91949 if yyl2 == 0 { 91950 r.ReadArrayEnd() 91951 } else { 91952 x.codecDecodeSelfFromArray(yyl2, d) 91953 } 91954 } else { 91955 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 91956 } 91957 } 91958 } 91959 91960 func (x *Task) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 91961 var h codecSelfer100 91962 z, r := codec1978.GenHelperDecoder(d) 91963 _, _, _ = h, z, r 91964 var yyhl3 bool = l >= 0 91965 for yyj3 := 0; ; yyj3++ { 91966 if yyhl3 { 91967 if yyj3 >= l { 91968 break 91969 } 91970 } else { 91971 if r.CheckBreak() { 91972 break 91973 } 91974 } 91975 r.ReadMapElemKey() 91976 yys3 := z.StringView(r.DecodeStringAsBytes()) 91977 r.ReadMapElemValue() 91978 switch yys3 { 91979 case "Name": 91980 if r.TryDecodeAsNil() { 91981 x.Name = "" 91982 } else { 91983 x.Name = (string)(r.DecodeString()) 91984 } 91985 case "Driver": 91986 if r.TryDecodeAsNil() { 91987 x.Driver = "" 91988 } else { 91989 x.Driver = (string)(r.DecodeString()) 91990 } 91991 case "User": 91992 if r.TryDecodeAsNil() { 91993 x.User = "" 91994 } else { 91995 x.User = (string)(r.DecodeString()) 91996 } 91997 case "Config": 91998 if r.TryDecodeAsNil() { 91999 x.Config = nil 92000 } else { 92001 if false { 92002 } else { 92003 z.F.DecMapStringIntfX(&x.Config, d) 92004 } 92005 } 92006 case "Env": 92007 if r.TryDecodeAsNil() { 92008 x.Env = nil 92009 } else { 92010 if false { 92011 } else { 92012 z.F.DecMapStringStringX(&x.Env, d) 92013 } 92014 } 92015 case "Services": 92016 if r.TryDecodeAsNil() { 92017 x.Services = nil 92018 } else { 92019 if false { 92020 } else { 92021 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 92022 } 92023 } 92024 case "Vault": 92025 if r.TryDecodeAsNil() { 92026 if true && x.Vault != nil { 92027 x.Vault = nil 92028 } 92029 } else { 92030 if x.Vault == nil { 92031 x.Vault = new(Vault) 92032 } 92033 92034 x.Vault.CodecDecodeSelf(d) 92035 } 92036 case "Templates": 92037 if r.TryDecodeAsNil() { 92038 x.Templates = nil 92039 } else { 92040 if false { 92041 } else { 92042 h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) 92043 } 92044 } 92045 case "Constraints": 92046 if r.TryDecodeAsNil() { 92047 x.Constraints = nil 92048 } else { 92049 if false { 92050 } else { 92051 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 92052 } 92053 } 92054 case "Affinities": 92055 if r.TryDecodeAsNil() { 92056 x.Affinities = nil 92057 } else { 92058 if false { 92059 } else { 92060 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 92061 } 92062 } 92063 case "Resources": 92064 if r.TryDecodeAsNil() { 92065 if true && x.Resources != nil { 92066 x.Resources = nil 92067 } 92068 } else { 92069 if x.Resources == nil { 92070 x.Resources = new(Resources) 92071 } 92072 92073 x.Resources.CodecDecodeSelf(d) 92074 } 92075 case "RestartPolicy": 92076 if r.TryDecodeAsNil() { 92077 if true && x.RestartPolicy != nil { 92078 x.RestartPolicy = nil 92079 } 92080 } else { 92081 if x.RestartPolicy == nil { 92082 x.RestartPolicy = new(RestartPolicy) 92083 } 92084 92085 x.RestartPolicy.CodecDecodeSelf(d) 92086 } 92087 case "DispatchPayload": 92088 if r.TryDecodeAsNil() { 92089 if true && x.DispatchPayload != nil { 92090 x.DispatchPayload = nil 92091 } 92092 } else { 92093 if x.DispatchPayload == nil { 92094 x.DispatchPayload = new(DispatchPayloadConfig) 92095 } 92096 92097 x.DispatchPayload.CodecDecodeSelf(d) 92098 } 92099 case "Lifecycle": 92100 if r.TryDecodeAsNil() { 92101 if true && x.Lifecycle != nil { 92102 x.Lifecycle = nil 92103 } 92104 } else { 92105 if x.Lifecycle == nil { 92106 x.Lifecycle = new(TaskLifecycleConfig) 92107 } 92108 92109 x.Lifecycle.CodecDecodeSelf(d) 92110 } 92111 case "Meta": 92112 if r.TryDecodeAsNil() { 92113 x.Meta = nil 92114 } else { 92115 if false { 92116 } else { 92117 z.F.DecMapStringStringX(&x.Meta, d) 92118 } 92119 } 92120 case "KillTimeout": 92121 if r.TryDecodeAsNil() { 92122 x.KillTimeout = 0 92123 } else { 92124 if false { 92125 } else if yyxt27 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt27 != nil { 92126 z.DecExtension(x.KillTimeout, yyxt27) 92127 } else { 92128 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 92129 } 92130 } 92131 case "LogConfig": 92132 if r.TryDecodeAsNil() { 92133 if true && x.LogConfig != nil { 92134 x.LogConfig = nil 92135 } 92136 } else { 92137 if x.LogConfig == nil { 92138 x.LogConfig = new(LogConfig) 92139 } 92140 92141 x.LogConfig.CodecDecodeSelf(d) 92142 } 92143 case "Artifacts": 92144 if r.TryDecodeAsNil() { 92145 x.Artifacts = nil 92146 } else { 92147 if false { 92148 } else { 92149 h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) 92150 } 92151 } 92152 case "Leader": 92153 if r.TryDecodeAsNil() { 92154 x.Leader = false 92155 } else { 92156 x.Leader = (bool)(r.DecodeBool()) 92157 } 92158 case "ShutdownDelay": 92159 if r.TryDecodeAsNil() { 92160 x.ShutdownDelay = 0 92161 } else { 92162 if false { 92163 } else if yyxt33 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt33 != nil { 92164 z.DecExtension(x.ShutdownDelay, yyxt33) 92165 } else { 92166 x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 92167 } 92168 } 92169 case "VolumeMounts": 92170 if r.TryDecodeAsNil() { 92171 x.VolumeMounts = nil 92172 } else { 92173 if false { 92174 } else { 92175 h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) 92176 } 92177 } 92178 case "KillSignal": 92179 if r.TryDecodeAsNil() { 92180 x.KillSignal = "" 92181 } else { 92182 x.KillSignal = (string)(r.DecodeString()) 92183 } 92184 case "Kind": 92185 if r.TryDecodeAsNil() { 92186 x.Kind = "" 92187 } else { 92188 x.Kind.CodecDecodeSelf(d) 92189 } 92190 case "CSIPluginConfig": 92191 if r.TryDecodeAsNil() { 92192 if true && x.CSIPluginConfig != nil { 92193 x.CSIPluginConfig = nil 92194 } 92195 } else { 92196 if x.CSIPluginConfig == nil { 92197 x.CSIPluginConfig = new(TaskCSIPluginConfig) 92198 } 92199 92200 x.CSIPluginConfig.CodecDecodeSelf(d) 92201 } 92202 default: 92203 z.DecStructFieldNotFound(-1, yys3) 92204 } // end switch yys3 92205 } // end for yyj3 92206 r.ReadMapEnd() 92207 } 92208 92209 func (x *Task) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 92210 var h codecSelfer100 92211 z, r := codec1978.GenHelperDecoder(d) 92212 _, _, _ = h, z, r 92213 var yyj39 int 92214 var yyb39 bool 92215 var yyhl39 bool = l >= 0 92216 yyj39++ 92217 if yyhl39 { 92218 yyb39 = yyj39 > l 92219 } else { 92220 yyb39 = r.CheckBreak() 92221 } 92222 if yyb39 { 92223 r.ReadArrayEnd() 92224 return 92225 } 92226 r.ReadArrayElem() 92227 if r.TryDecodeAsNil() { 92228 x.Name = "" 92229 } else { 92230 x.Name = (string)(r.DecodeString()) 92231 } 92232 yyj39++ 92233 if yyhl39 { 92234 yyb39 = yyj39 > l 92235 } else { 92236 yyb39 = r.CheckBreak() 92237 } 92238 if yyb39 { 92239 r.ReadArrayEnd() 92240 return 92241 } 92242 r.ReadArrayElem() 92243 if r.TryDecodeAsNil() { 92244 x.Driver = "" 92245 } else { 92246 x.Driver = (string)(r.DecodeString()) 92247 } 92248 yyj39++ 92249 if yyhl39 { 92250 yyb39 = yyj39 > l 92251 } else { 92252 yyb39 = r.CheckBreak() 92253 } 92254 if yyb39 { 92255 r.ReadArrayEnd() 92256 return 92257 } 92258 r.ReadArrayElem() 92259 if r.TryDecodeAsNil() { 92260 x.User = "" 92261 } else { 92262 x.User = (string)(r.DecodeString()) 92263 } 92264 yyj39++ 92265 if yyhl39 { 92266 yyb39 = yyj39 > l 92267 } else { 92268 yyb39 = r.CheckBreak() 92269 } 92270 if yyb39 { 92271 r.ReadArrayEnd() 92272 return 92273 } 92274 r.ReadArrayElem() 92275 if r.TryDecodeAsNil() { 92276 x.Config = nil 92277 } else { 92278 if false { 92279 } else { 92280 z.F.DecMapStringIntfX(&x.Config, d) 92281 } 92282 } 92283 yyj39++ 92284 if yyhl39 { 92285 yyb39 = yyj39 > l 92286 } else { 92287 yyb39 = r.CheckBreak() 92288 } 92289 if yyb39 { 92290 r.ReadArrayEnd() 92291 return 92292 } 92293 r.ReadArrayElem() 92294 if r.TryDecodeAsNil() { 92295 x.Env = nil 92296 } else { 92297 if false { 92298 } else { 92299 z.F.DecMapStringStringX(&x.Env, d) 92300 } 92301 } 92302 yyj39++ 92303 if yyhl39 { 92304 yyb39 = yyj39 > l 92305 } else { 92306 yyb39 = r.CheckBreak() 92307 } 92308 if yyb39 { 92309 r.ReadArrayEnd() 92310 return 92311 } 92312 r.ReadArrayElem() 92313 if r.TryDecodeAsNil() { 92314 x.Services = nil 92315 } else { 92316 if false { 92317 } else { 92318 h.decSlicePtrtoService((*[]*Service)(&x.Services), d) 92319 } 92320 } 92321 yyj39++ 92322 if yyhl39 { 92323 yyb39 = yyj39 > l 92324 } else { 92325 yyb39 = r.CheckBreak() 92326 } 92327 if yyb39 { 92328 r.ReadArrayEnd() 92329 return 92330 } 92331 r.ReadArrayElem() 92332 if r.TryDecodeAsNil() { 92333 if true && x.Vault != nil { 92334 x.Vault = nil 92335 } 92336 } else { 92337 if x.Vault == nil { 92338 x.Vault = new(Vault) 92339 } 92340 92341 x.Vault.CodecDecodeSelf(d) 92342 } 92343 yyj39++ 92344 if yyhl39 { 92345 yyb39 = yyj39 > l 92346 } else { 92347 yyb39 = r.CheckBreak() 92348 } 92349 if yyb39 { 92350 r.ReadArrayEnd() 92351 return 92352 } 92353 r.ReadArrayElem() 92354 if r.TryDecodeAsNil() { 92355 x.Templates = nil 92356 } else { 92357 if false { 92358 } else { 92359 h.decSlicePtrtoTemplate((*[]*Template)(&x.Templates), d) 92360 } 92361 } 92362 yyj39++ 92363 if yyhl39 { 92364 yyb39 = yyj39 > l 92365 } else { 92366 yyb39 = r.CheckBreak() 92367 } 92368 if yyb39 { 92369 r.ReadArrayEnd() 92370 return 92371 } 92372 r.ReadArrayElem() 92373 if r.TryDecodeAsNil() { 92374 x.Constraints = nil 92375 } else { 92376 if false { 92377 } else { 92378 h.decSlicePtrtoConstraint((*[]*Constraint)(&x.Constraints), d) 92379 } 92380 } 92381 yyj39++ 92382 if yyhl39 { 92383 yyb39 = yyj39 > l 92384 } else { 92385 yyb39 = r.CheckBreak() 92386 } 92387 if yyb39 { 92388 r.ReadArrayEnd() 92389 return 92390 } 92391 r.ReadArrayElem() 92392 if r.TryDecodeAsNil() { 92393 x.Affinities = nil 92394 } else { 92395 if false { 92396 } else { 92397 h.decSlicePtrtoAffinity((*[]*Affinity)(&x.Affinities), d) 92398 } 92399 } 92400 yyj39++ 92401 if yyhl39 { 92402 yyb39 = yyj39 > l 92403 } else { 92404 yyb39 = r.CheckBreak() 92405 } 92406 if yyb39 { 92407 r.ReadArrayEnd() 92408 return 92409 } 92410 r.ReadArrayElem() 92411 if r.TryDecodeAsNil() { 92412 if true && x.Resources != nil { 92413 x.Resources = nil 92414 } 92415 } else { 92416 if x.Resources == nil { 92417 x.Resources = new(Resources) 92418 } 92419 92420 x.Resources.CodecDecodeSelf(d) 92421 } 92422 yyj39++ 92423 if yyhl39 { 92424 yyb39 = yyj39 > l 92425 } else { 92426 yyb39 = r.CheckBreak() 92427 } 92428 if yyb39 { 92429 r.ReadArrayEnd() 92430 return 92431 } 92432 r.ReadArrayElem() 92433 if r.TryDecodeAsNil() { 92434 if true && x.RestartPolicy != nil { 92435 x.RestartPolicy = nil 92436 } 92437 } else { 92438 if x.RestartPolicy == nil { 92439 x.RestartPolicy = new(RestartPolicy) 92440 } 92441 92442 x.RestartPolicy.CodecDecodeSelf(d) 92443 } 92444 yyj39++ 92445 if yyhl39 { 92446 yyb39 = yyj39 > l 92447 } else { 92448 yyb39 = r.CheckBreak() 92449 } 92450 if yyb39 { 92451 r.ReadArrayEnd() 92452 return 92453 } 92454 r.ReadArrayElem() 92455 if r.TryDecodeAsNil() { 92456 if true && x.DispatchPayload != nil { 92457 x.DispatchPayload = nil 92458 } 92459 } else { 92460 if x.DispatchPayload == nil { 92461 x.DispatchPayload = new(DispatchPayloadConfig) 92462 } 92463 92464 x.DispatchPayload.CodecDecodeSelf(d) 92465 } 92466 yyj39++ 92467 if yyhl39 { 92468 yyb39 = yyj39 > l 92469 } else { 92470 yyb39 = r.CheckBreak() 92471 } 92472 if yyb39 { 92473 r.ReadArrayEnd() 92474 return 92475 } 92476 r.ReadArrayElem() 92477 if r.TryDecodeAsNil() { 92478 if true && x.Lifecycle != nil { 92479 x.Lifecycle = nil 92480 } 92481 } else { 92482 if x.Lifecycle == nil { 92483 x.Lifecycle = new(TaskLifecycleConfig) 92484 } 92485 92486 x.Lifecycle.CodecDecodeSelf(d) 92487 } 92488 yyj39++ 92489 if yyhl39 { 92490 yyb39 = yyj39 > l 92491 } else { 92492 yyb39 = r.CheckBreak() 92493 } 92494 if yyb39 { 92495 r.ReadArrayEnd() 92496 return 92497 } 92498 r.ReadArrayElem() 92499 if r.TryDecodeAsNil() { 92500 x.Meta = nil 92501 } else { 92502 if false { 92503 } else { 92504 z.F.DecMapStringStringX(&x.Meta, d) 92505 } 92506 } 92507 yyj39++ 92508 if yyhl39 { 92509 yyb39 = yyj39 > l 92510 } else { 92511 yyb39 = r.CheckBreak() 92512 } 92513 if yyb39 { 92514 r.ReadArrayEnd() 92515 return 92516 } 92517 r.ReadArrayElem() 92518 if r.TryDecodeAsNil() { 92519 x.KillTimeout = 0 92520 } else { 92521 if false { 92522 } else if yyxt63 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt63 != nil { 92523 z.DecExtension(x.KillTimeout, yyxt63) 92524 } else { 92525 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 92526 } 92527 } 92528 yyj39++ 92529 if yyhl39 { 92530 yyb39 = yyj39 > l 92531 } else { 92532 yyb39 = r.CheckBreak() 92533 } 92534 if yyb39 { 92535 r.ReadArrayEnd() 92536 return 92537 } 92538 r.ReadArrayElem() 92539 if r.TryDecodeAsNil() { 92540 if true && x.LogConfig != nil { 92541 x.LogConfig = nil 92542 } 92543 } else { 92544 if x.LogConfig == nil { 92545 x.LogConfig = new(LogConfig) 92546 } 92547 92548 x.LogConfig.CodecDecodeSelf(d) 92549 } 92550 yyj39++ 92551 if yyhl39 { 92552 yyb39 = yyj39 > l 92553 } else { 92554 yyb39 = r.CheckBreak() 92555 } 92556 if yyb39 { 92557 r.ReadArrayEnd() 92558 return 92559 } 92560 r.ReadArrayElem() 92561 if r.TryDecodeAsNil() { 92562 x.Artifacts = nil 92563 } else { 92564 if false { 92565 } else { 92566 h.decSlicePtrtoTaskArtifact((*[]*TaskArtifact)(&x.Artifacts), d) 92567 } 92568 } 92569 yyj39++ 92570 if yyhl39 { 92571 yyb39 = yyj39 > l 92572 } else { 92573 yyb39 = r.CheckBreak() 92574 } 92575 if yyb39 { 92576 r.ReadArrayEnd() 92577 return 92578 } 92579 r.ReadArrayElem() 92580 if r.TryDecodeAsNil() { 92581 x.Leader = false 92582 } else { 92583 x.Leader = (bool)(r.DecodeBool()) 92584 } 92585 yyj39++ 92586 if yyhl39 { 92587 yyb39 = yyj39 > l 92588 } else { 92589 yyb39 = r.CheckBreak() 92590 } 92591 if yyb39 { 92592 r.ReadArrayEnd() 92593 return 92594 } 92595 r.ReadArrayElem() 92596 if r.TryDecodeAsNil() { 92597 x.ShutdownDelay = 0 92598 } else { 92599 if false { 92600 } else if yyxt69 := z.Extension(z.I2Rtid(x.ShutdownDelay)); yyxt69 != nil { 92601 z.DecExtension(x.ShutdownDelay, yyxt69) 92602 } else { 92603 x.ShutdownDelay = (time.Duration)(r.DecodeInt64()) 92604 } 92605 } 92606 yyj39++ 92607 if yyhl39 { 92608 yyb39 = yyj39 > l 92609 } else { 92610 yyb39 = r.CheckBreak() 92611 } 92612 if yyb39 { 92613 r.ReadArrayEnd() 92614 return 92615 } 92616 r.ReadArrayElem() 92617 if r.TryDecodeAsNil() { 92618 x.VolumeMounts = nil 92619 } else { 92620 if false { 92621 } else { 92622 h.decSlicePtrtoVolumeMount((*[]*VolumeMount)(&x.VolumeMounts), d) 92623 } 92624 } 92625 yyj39++ 92626 if yyhl39 { 92627 yyb39 = yyj39 > l 92628 } else { 92629 yyb39 = r.CheckBreak() 92630 } 92631 if yyb39 { 92632 r.ReadArrayEnd() 92633 return 92634 } 92635 r.ReadArrayElem() 92636 if r.TryDecodeAsNil() { 92637 x.KillSignal = "" 92638 } else { 92639 x.KillSignal = (string)(r.DecodeString()) 92640 } 92641 yyj39++ 92642 if yyhl39 { 92643 yyb39 = yyj39 > l 92644 } else { 92645 yyb39 = r.CheckBreak() 92646 } 92647 if yyb39 { 92648 r.ReadArrayEnd() 92649 return 92650 } 92651 r.ReadArrayElem() 92652 if r.TryDecodeAsNil() { 92653 x.Kind = "" 92654 } else { 92655 x.Kind.CodecDecodeSelf(d) 92656 } 92657 yyj39++ 92658 if yyhl39 { 92659 yyb39 = yyj39 > l 92660 } else { 92661 yyb39 = r.CheckBreak() 92662 } 92663 if yyb39 { 92664 r.ReadArrayEnd() 92665 return 92666 } 92667 r.ReadArrayElem() 92668 if r.TryDecodeAsNil() { 92669 if true && x.CSIPluginConfig != nil { 92670 x.CSIPluginConfig = nil 92671 } 92672 } else { 92673 if x.CSIPluginConfig == nil { 92674 x.CSIPluginConfig = new(TaskCSIPluginConfig) 92675 } 92676 92677 x.CSIPluginConfig.CodecDecodeSelf(d) 92678 } 92679 for { 92680 yyj39++ 92681 if yyhl39 { 92682 yyb39 = yyj39 > l 92683 } else { 92684 yyb39 = r.CheckBreak() 92685 } 92686 if yyb39 { 92687 break 92688 } 92689 r.ReadArrayElem() 92690 z.DecStructFieldNotFound(yyj39-1, "") 92691 } 92692 r.ReadArrayEnd() 92693 } 92694 92695 func (x TaskKind) CodecEncodeSelf(e *codec1978.Encoder) { 92696 var h codecSelfer100 92697 z, r := codec1978.GenHelperEncoder(e) 92698 _, _, _ = h, z, r 92699 if false { 92700 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92701 z.EncExtension(x, yyxt1) 92702 } else { 92703 if z.EncBasicHandle().StringToRaw { 92704 r.EncodeStringBytesRaw(z.BytesView(string(x))) 92705 } else { 92706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x)) 92707 } 92708 } 92709 } 92710 92711 func (x *TaskKind) CodecDecodeSelf(d *codec1978.Decoder) { 92712 var h codecSelfer100 92713 z, r := codec1978.GenHelperDecoder(d) 92714 _, _, _ = h, z, r 92715 if false { 92716 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92717 z.DecExtension(x, yyxt1) 92718 } else { 92719 *x = (TaskKind)(r.DecodeString()) 92720 } 92721 } 92722 92723 func (x *Template) CodecEncodeSelf(e *codec1978.Encoder) { 92724 var h codecSelfer100 92725 z, r := codec1978.GenHelperEncoder(e) 92726 _, _, _ = h, z, r 92727 if x == nil { 92728 r.EncodeNil() 92729 } else { 92730 if false { 92731 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 92732 z.EncExtension(x, yyxt1) 92733 } else { 92734 yysep2 := !z.EncBinary() 92735 yy2arr2 := z.EncBasicHandle().StructToArray 92736 _, _ = yysep2, yy2arr2 92737 const yyr2 bool = false // struct tag has 'toArray' 92738 if yyr2 || yy2arr2 { 92739 r.WriteArrayStart(11) 92740 } else { 92741 r.WriteMapStart(11) 92742 } 92743 if yyr2 || yy2arr2 { 92744 r.WriteArrayElem() 92745 if false { 92746 } else { 92747 if z.EncBasicHandle().StringToRaw { 92748 r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) 92749 } else { 92750 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) 92751 } 92752 } 92753 } else { 92754 r.WriteMapElemKey() 92755 if z.IsJSONHandle() { 92756 z.WriteStr("\"SourcePath\"") 92757 } else { 92758 r.EncodeStringEnc(codecSelferCcUTF8100, `SourcePath`) 92759 } 92760 r.WriteMapElemValue() 92761 if false { 92762 } else { 92763 if z.EncBasicHandle().StringToRaw { 92764 r.EncodeStringBytesRaw(z.BytesView(string(x.SourcePath))) 92765 } else { 92766 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SourcePath)) 92767 } 92768 } 92769 } 92770 if yyr2 || yy2arr2 { 92771 r.WriteArrayElem() 92772 if false { 92773 } else { 92774 if z.EncBasicHandle().StringToRaw { 92775 r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) 92776 } else { 92777 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) 92778 } 92779 } 92780 } else { 92781 r.WriteMapElemKey() 92782 if z.IsJSONHandle() { 92783 z.WriteStr("\"DestPath\"") 92784 } else { 92785 r.EncodeStringEnc(codecSelferCcUTF8100, `DestPath`) 92786 } 92787 r.WriteMapElemValue() 92788 if false { 92789 } else { 92790 if z.EncBasicHandle().StringToRaw { 92791 r.EncodeStringBytesRaw(z.BytesView(string(x.DestPath))) 92792 } else { 92793 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DestPath)) 92794 } 92795 } 92796 } 92797 if yyr2 || yy2arr2 { 92798 r.WriteArrayElem() 92799 if false { 92800 } else { 92801 if z.EncBasicHandle().StringToRaw { 92802 r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) 92803 } else { 92804 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) 92805 } 92806 } 92807 } else { 92808 r.WriteMapElemKey() 92809 if z.IsJSONHandle() { 92810 z.WriteStr("\"EmbeddedTmpl\"") 92811 } else { 92812 r.EncodeStringEnc(codecSelferCcUTF8100, `EmbeddedTmpl`) 92813 } 92814 r.WriteMapElemValue() 92815 if false { 92816 } else { 92817 if z.EncBasicHandle().StringToRaw { 92818 r.EncodeStringBytesRaw(z.BytesView(string(x.EmbeddedTmpl))) 92819 } else { 92820 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EmbeddedTmpl)) 92821 } 92822 } 92823 } 92824 if yyr2 || yy2arr2 { 92825 r.WriteArrayElem() 92826 if false { 92827 } else { 92828 if z.EncBasicHandle().StringToRaw { 92829 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 92830 } else { 92831 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 92832 } 92833 } 92834 } else { 92835 r.WriteMapElemKey() 92836 if z.IsJSONHandle() { 92837 z.WriteStr("\"ChangeMode\"") 92838 } else { 92839 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) 92840 } 92841 r.WriteMapElemValue() 92842 if false { 92843 } else { 92844 if z.EncBasicHandle().StringToRaw { 92845 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 92846 } else { 92847 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 92848 } 92849 } 92850 } 92851 if yyr2 || yy2arr2 { 92852 r.WriteArrayElem() 92853 if false { 92854 } else { 92855 if z.EncBasicHandle().StringToRaw { 92856 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 92857 } else { 92858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 92859 } 92860 } 92861 } else { 92862 r.WriteMapElemKey() 92863 if z.IsJSONHandle() { 92864 z.WriteStr("\"ChangeSignal\"") 92865 } else { 92866 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) 92867 } 92868 r.WriteMapElemValue() 92869 if false { 92870 } else { 92871 if z.EncBasicHandle().StringToRaw { 92872 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 92873 } else { 92874 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 92875 } 92876 } 92877 } 92878 if yyr2 || yy2arr2 { 92879 r.WriteArrayElem() 92880 if false { 92881 } else if yyxt19 := z.Extension(z.I2Rtid(x.Splay)); yyxt19 != nil { 92882 z.EncExtension(x.Splay, yyxt19) 92883 } else { 92884 r.EncodeInt(int64(x.Splay)) 92885 } 92886 } else { 92887 r.WriteMapElemKey() 92888 if z.IsJSONHandle() { 92889 z.WriteStr("\"Splay\"") 92890 } else { 92891 r.EncodeStringEnc(codecSelferCcUTF8100, `Splay`) 92892 } 92893 r.WriteMapElemValue() 92894 if false { 92895 } else if yyxt20 := z.Extension(z.I2Rtid(x.Splay)); yyxt20 != nil { 92896 z.EncExtension(x.Splay, yyxt20) 92897 } else { 92898 r.EncodeInt(int64(x.Splay)) 92899 } 92900 } 92901 if yyr2 || yy2arr2 { 92902 r.WriteArrayElem() 92903 if false { 92904 } else { 92905 if z.EncBasicHandle().StringToRaw { 92906 r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) 92907 } else { 92908 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) 92909 } 92910 } 92911 } else { 92912 r.WriteMapElemKey() 92913 if z.IsJSONHandle() { 92914 z.WriteStr("\"Perms\"") 92915 } else { 92916 r.EncodeStringEnc(codecSelferCcUTF8100, `Perms`) 92917 } 92918 r.WriteMapElemValue() 92919 if false { 92920 } else { 92921 if z.EncBasicHandle().StringToRaw { 92922 r.EncodeStringBytesRaw(z.BytesView(string(x.Perms))) 92923 } else { 92924 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Perms)) 92925 } 92926 } 92927 } 92928 if yyr2 || yy2arr2 { 92929 r.WriteArrayElem() 92930 if false { 92931 } else { 92932 if z.EncBasicHandle().StringToRaw { 92933 r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) 92934 } else { 92935 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) 92936 } 92937 } 92938 } else { 92939 r.WriteMapElemKey() 92940 if z.IsJSONHandle() { 92941 z.WriteStr("\"LeftDelim\"") 92942 } else { 92943 r.EncodeStringEnc(codecSelferCcUTF8100, `LeftDelim`) 92944 } 92945 r.WriteMapElemValue() 92946 if false { 92947 } else { 92948 if z.EncBasicHandle().StringToRaw { 92949 r.EncodeStringBytesRaw(z.BytesView(string(x.LeftDelim))) 92950 } else { 92951 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeftDelim)) 92952 } 92953 } 92954 } 92955 if yyr2 || yy2arr2 { 92956 r.WriteArrayElem() 92957 if false { 92958 } else { 92959 if z.EncBasicHandle().StringToRaw { 92960 r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) 92961 } else { 92962 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) 92963 } 92964 } 92965 } else { 92966 r.WriteMapElemKey() 92967 if z.IsJSONHandle() { 92968 z.WriteStr("\"RightDelim\"") 92969 } else { 92970 r.EncodeStringEnc(codecSelferCcUTF8100, `RightDelim`) 92971 } 92972 r.WriteMapElemValue() 92973 if false { 92974 } else { 92975 if z.EncBasicHandle().StringToRaw { 92976 r.EncodeStringBytesRaw(z.BytesView(string(x.RightDelim))) 92977 } else { 92978 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RightDelim)) 92979 } 92980 } 92981 } 92982 if yyr2 || yy2arr2 { 92983 r.WriteArrayElem() 92984 if false { 92985 } else { 92986 r.EncodeBool(bool(x.Envvars)) 92987 } 92988 } else { 92989 r.WriteMapElemKey() 92990 if z.IsJSONHandle() { 92991 z.WriteStr("\"Envvars\"") 92992 } else { 92993 r.EncodeStringEnc(codecSelferCcUTF8100, `Envvars`) 92994 } 92995 r.WriteMapElemValue() 92996 if false { 92997 } else { 92998 r.EncodeBool(bool(x.Envvars)) 92999 } 93000 } 93001 if yyr2 || yy2arr2 { 93002 r.WriteArrayElem() 93003 if false { 93004 } else if yyxt34 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt34 != nil { 93005 z.EncExtension(x.VaultGrace, yyxt34) 93006 } else { 93007 r.EncodeInt(int64(x.VaultGrace)) 93008 } 93009 } else { 93010 r.WriteMapElemKey() 93011 if z.IsJSONHandle() { 93012 z.WriteStr("\"VaultGrace\"") 93013 } else { 93014 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultGrace`) 93015 } 93016 r.WriteMapElemValue() 93017 if false { 93018 } else if yyxt35 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt35 != nil { 93019 z.EncExtension(x.VaultGrace, yyxt35) 93020 } else { 93021 r.EncodeInt(int64(x.VaultGrace)) 93022 } 93023 } 93024 if yyr2 || yy2arr2 { 93025 r.WriteArrayEnd() 93026 } else { 93027 r.WriteMapEnd() 93028 } 93029 } 93030 } 93031 } 93032 93033 func (x *Template) CodecDecodeSelf(d *codec1978.Decoder) { 93034 var h codecSelfer100 93035 z, r := codec1978.GenHelperDecoder(d) 93036 _, _, _ = h, z, r 93037 if false { 93038 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93039 z.DecExtension(x, yyxt1) 93040 } else { 93041 yyct2 := r.ContainerType() 93042 if yyct2 == codecSelferValueTypeMap100 { 93043 yyl2 := r.ReadMapStart() 93044 if yyl2 == 0 { 93045 r.ReadMapEnd() 93046 } else { 93047 x.codecDecodeSelfFromMap(yyl2, d) 93048 } 93049 } else if yyct2 == codecSelferValueTypeArray100 { 93050 yyl2 := r.ReadArrayStart() 93051 if yyl2 == 0 { 93052 r.ReadArrayEnd() 93053 } else { 93054 x.codecDecodeSelfFromArray(yyl2, d) 93055 } 93056 } else { 93057 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 93058 } 93059 } 93060 } 93061 93062 func (x *Template) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 93063 var h codecSelfer100 93064 z, r := codec1978.GenHelperDecoder(d) 93065 _, _, _ = h, z, r 93066 var yyhl3 bool = l >= 0 93067 for yyj3 := 0; ; yyj3++ { 93068 if yyhl3 { 93069 if yyj3 >= l { 93070 break 93071 } 93072 } else { 93073 if r.CheckBreak() { 93074 break 93075 } 93076 } 93077 r.ReadMapElemKey() 93078 yys3 := z.StringView(r.DecodeStringAsBytes()) 93079 r.ReadMapElemValue() 93080 switch yys3 { 93081 case "SourcePath": 93082 if r.TryDecodeAsNil() { 93083 x.SourcePath = "" 93084 } else { 93085 x.SourcePath = (string)(r.DecodeString()) 93086 } 93087 case "DestPath": 93088 if r.TryDecodeAsNil() { 93089 x.DestPath = "" 93090 } else { 93091 x.DestPath = (string)(r.DecodeString()) 93092 } 93093 case "EmbeddedTmpl": 93094 if r.TryDecodeAsNil() { 93095 x.EmbeddedTmpl = "" 93096 } else { 93097 x.EmbeddedTmpl = (string)(r.DecodeString()) 93098 } 93099 case "ChangeMode": 93100 if r.TryDecodeAsNil() { 93101 x.ChangeMode = "" 93102 } else { 93103 x.ChangeMode = (string)(r.DecodeString()) 93104 } 93105 case "ChangeSignal": 93106 if r.TryDecodeAsNil() { 93107 x.ChangeSignal = "" 93108 } else { 93109 x.ChangeSignal = (string)(r.DecodeString()) 93110 } 93111 case "Splay": 93112 if r.TryDecodeAsNil() { 93113 x.Splay = 0 93114 } else { 93115 if false { 93116 } else if yyxt10 := z.Extension(z.I2Rtid(x.Splay)); yyxt10 != nil { 93117 z.DecExtension(x.Splay, yyxt10) 93118 } else { 93119 x.Splay = (time.Duration)(r.DecodeInt64()) 93120 } 93121 } 93122 case "Perms": 93123 if r.TryDecodeAsNil() { 93124 x.Perms = "" 93125 } else { 93126 x.Perms = (string)(r.DecodeString()) 93127 } 93128 case "LeftDelim": 93129 if r.TryDecodeAsNil() { 93130 x.LeftDelim = "" 93131 } else { 93132 x.LeftDelim = (string)(r.DecodeString()) 93133 } 93134 case "RightDelim": 93135 if r.TryDecodeAsNil() { 93136 x.RightDelim = "" 93137 } else { 93138 x.RightDelim = (string)(r.DecodeString()) 93139 } 93140 case "Envvars": 93141 if r.TryDecodeAsNil() { 93142 x.Envvars = false 93143 } else { 93144 x.Envvars = (bool)(r.DecodeBool()) 93145 } 93146 case "VaultGrace": 93147 if r.TryDecodeAsNil() { 93148 x.VaultGrace = 0 93149 } else { 93150 if false { 93151 } else if yyxt16 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt16 != nil { 93152 z.DecExtension(x.VaultGrace, yyxt16) 93153 } else { 93154 x.VaultGrace = (time.Duration)(r.DecodeInt64()) 93155 } 93156 } 93157 default: 93158 z.DecStructFieldNotFound(-1, yys3) 93159 } // end switch yys3 93160 } // end for yyj3 93161 r.ReadMapEnd() 93162 } 93163 93164 func (x *Template) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 93165 var h codecSelfer100 93166 z, r := codec1978.GenHelperDecoder(d) 93167 _, _, _ = h, z, r 93168 var yyj17 int 93169 var yyb17 bool 93170 var yyhl17 bool = l >= 0 93171 yyj17++ 93172 if yyhl17 { 93173 yyb17 = yyj17 > l 93174 } else { 93175 yyb17 = r.CheckBreak() 93176 } 93177 if yyb17 { 93178 r.ReadArrayEnd() 93179 return 93180 } 93181 r.ReadArrayElem() 93182 if r.TryDecodeAsNil() { 93183 x.SourcePath = "" 93184 } else { 93185 x.SourcePath = (string)(r.DecodeString()) 93186 } 93187 yyj17++ 93188 if yyhl17 { 93189 yyb17 = yyj17 > l 93190 } else { 93191 yyb17 = r.CheckBreak() 93192 } 93193 if yyb17 { 93194 r.ReadArrayEnd() 93195 return 93196 } 93197 r.ReadArrayElem() 93198 if r.TryDecodeAsNil() { 93199 x.DestPath = "" 93200 } else { 93201 x.DestPath = (string)(r.DecodeString()) 93202 } 93203 yyj17++ 93204 if yyhl17 { 93205 yyb17 = yyj17 > l 93206 } else { 93207 yyb17 = r.CheckBreak() 93208 } 93209 if yyb17 { 93210 r.ReadArrayEnd() 93211 return 93212 } 93213 r.ReadArrayElem() 93214 if r.TryDecodeAsNil() { 93215 x.EmbeddedTmpl = "" 93216 } else { 93217 x.EmbeddedTmpl = (string)(r.DecodeString()) 93218 } 93219 yyj17++ 93220 if yyhl17 { 93221 yyb17 = yyj17 > l 93222 } else { 93223 yyb17 = r.CheckBreak() 93224 } 93225 if yyb17 { 93226 r.ReadArrayEnd() 93227 return 93228 } 93229 r.ReadArrayElem() 93230 if r.TryDecodeAsNil() { 93231 x.ChangeMode = "" 93232 } else { 93233 x.ChangeMode = (string)(r.DecodeString()) 93234 } 93235 yyj17++ 93236 if yyhl17 { 93237 yyb17 = yyj17 > l 93238 } else { 93239 yyb17 = r.CheckBreak() 93240 } 93241 if yyb17 { 93242 r.ReadArrayEnd() 93243 return 93244 } 93245 r.ReadArrayElem() 93246 if r.TryDecodeAsNil() { 93247 x.ChangeSignal = "" 93248 } else { 93249 x.ChangeSignal = (string)(r.DecodeString()) 93250 } 93251 yyj17++ 93252 if yyhl17 { 93253 yyb17 = yyj17 > l 93254 } else { 93255 yyb17 = r.CheckBreak() 93256 } 93257 if yyb17 { 93258 r.ReadArrayEnd() 93259 return 93260 } 93261 r.ReadArrayElem() 93262 if r.TryDecodeAsNil() { 93263 x.Splay = 0 93264 } else { 93265 if false { 93266 } else if yyxt24 := z.Extension(z.I2Rtid(x.Splay)); yyxt24 != nil { 93267 z.DecExtension(x.Splay, yyxt24) 93268 } else { 93269 x.Splay = (time.Duration)(r.DecodeInt64()) 93270 } 93271 } 93272 yyj17++ 93273 if yyhl17 { 93274 yyb17 = yyj17 > l 93275 } else { 93276 yyb17 = r.CheckBreak() 93277 } 93278 if yyb17 { 93279 r.ReadArrayEnd() 93280 return 93281 } 93282 r.ReadArrayElem() 93283 if r.TryDecodeAsNil() { 93284 x.Perms = "" 93285 } else { 93286 x.Perms = (string)(r.DecodeString()) 93287 } 93288 yyj17++ 93289 if yyhl17 { 93290 yyb17 = yyj17 > l 93291 } else { 93292 yyb17 = r.CheckBreak() 93293 } 93294 if yyb17 { 93295 r.ReadArrayEnd() 93296 return 93297 } 93298 r.ReadArrayElem() 93299 if r.TryDecodeAsNil() { 93300 x.LeftDelim = "" 93301 } else { 93302 x.LeftDelim = (string)(r.DecodeString()) 93303 } 93304 yyj17++ 93305 if yyhl17 { 93306 yyb17 = yyj17 > l 93307 } else { 93308 yyb17 = r.CheckBreak() 93309 } 93310 if yyb17 { 93311 r.ReadArrayEnd() 93312 return 93313 } 93314 r.ReadArrayElem() 93315 if r.TryDecodeAsNil() { 93316 x.RightDelim = "" 93317 } else { 93318 x.RightDelim = (string)(r.DecodeString()) 93319 } 93320 yyj17++ 93321 if yyhl17 { 93322 yyb17 = yyj17 > l 93323 } else { 93324 yyb17 = r.CheckBreak() 93325 } 93326 if yyb17 { 93327 r.ReadArrayEnd() 93328 return 93329 } 93330 r.ReadArrayElem() 93331 if r.TryDecodeAsNil() { 93332 x.Envvars = false 93333 } else { 93334 x.Envvars = (bool)(r.DecodeBool()) 93335 } 93336 yyj17++ 93337 if yyhl17 { 93338 yyb17 = yyj17 > l 93339 } else { 93340 yyb17 = r.CheckBreak() 93341 } 93342 if yyb17 { 93343 r.ReadArrayEnd() 93344 return 93345 } 93346 r.ReadArrayElem() 93347 if r.TryDecodeAsNil() { 93348 x.VaultGrace = 0 93349 } else { 93350 if false { 93351 } else if yyxt30 := z.Extension(z.I2Rtid(x.VaultGrace)); yyxt30 != nil { 93352 z.DecExtension(x.VaultGrace, yyxt30) 93353 } else { 93354 x.VaultGrace = (time.Duration)(r.DecodeInt64()) 93355 } 93356 } 93357 for { 93358 yyj17++ 93359 if yyhl17 { 93360 yyb17 = yyj17 > l 93361 } else { 93362 yyb17 = r.CheckBreak() 93363 } 93364 if yyb17 { 93365 break 93366 } 93367 r.ReadArrayElem() 93368 z.DecStructFieldNotFound(yyj17-1, "") 93369 } 93370 r.ReadArrayEnd() 93371 } 93372 93373 func (x AllocStateField) CodecEncodeSelf(e *codec1978.Encoder) { 93374 var h codecSelfer100 93375 z, r := codec1978.GenHelperEncoder(e) 93376 _, _, _ = h, z, r 93377 if false { 93378 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93379 z.EncExtension(x, yyxt1) 93380 } else { 93381 r.EncodeUint(uint64(x)) 93382 } 93383 } 93384 93385 func (x *AllocStateField) CodecDecodeSelf(d *codec1978.Decoder) { 93386 var h codecSelfer100 93387 z, r := codec1978.GenHelperDecoder(d) 93388 _, _, _ = h, z, r 93389 if false { 93390 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93391 z.DecExtension(x, yyxt1) 93392 } else { 93393 *x = (AllocStateField)(z.C.UintV(r.DecodeUint64(), 8)) 93394 } 93395 } 93396 93397 func (x *AllocState) CodecEncodeSelf(e *codec1978.Encoder) { 93398 var h codecSelfer100 93399 z, r := codec1978.GenHelperEncoder(e) 93400 _, _, _ = h, z, r 93401 if x == nil { 93402 r.EncodeNil() 93403 } else { 93404 if false { 93405 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93406 z.EncExtension(x, yyxt1) 93407 } else { 93408 yysep2 := !z.EncBinary() 93409 yy2arr2 := z.EncBasicHandle().StructToArray 93410 _, _ = yysep2, yy2arr2 93411 const yyr2 bool = false // struct tag has 'toArray' 93412 if yyr2 || yy2arr2 { 93413 r.WriteArrayStart(3) 93414 } else { 93415 r.WriteMapStart(3) 93416 } 93417 if yyr2 || yy2arr2 { 93418 r.WriteArrayElem() 93419 x.Field.CodecEncodeSelf(e) 93420 } else { 93421 r.WriteMapElemKey() 93422 if z.IsJSONHandle() { 93423 z.WriteStr("\"Field\"") 93424 } else { 93425 r.EncodeStringEnc(codecSelferCcUTF8100, `Field`) 93426 } 93427 r.WriteMapElemValue() 93428 x.Field.CodecEncodeSelf(e) 93429 } 93430 if yyr2 || yy2arr2 { 93431 r.WriteArrayElem() 93432 if false { 93433 } else { 93434 if z.EncBasicHandle().StringToRaw { 93435 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 93436 } else { 93437 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 93438 } 93439 } 93440 } else { 93441 r.WriteMapElemKey() 93442 if z.IsJSONHandle() { 93443 z.WriteStr("\"Value\"") 93444 } else { 93445 r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) 93446 } 93447 r.WriteMapElemValue() 93448 if false { 93449 } else { 93450 if z.EncBasicHandle().StringToRaw { 93451 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 93452 } else { 93453 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 93454 } 93455 } 93456 } 93457 if yyr2 || yy2arr2 { 93458 r.WriteArrayElem() 93459 if false { 93460 } else if !z.EncBasicHandle().TimeNotBuiltin { 93461 r.EncodeTime(x.Time) 93462 } else if yyxt10 := z.Extension(z.I2Rtid(x.Time)); yyxt10 != nil { 93463 z.EncExtension(x.Time, yyxt10) 93464 } else if z.EncBinary() { 93465 z.EncBinaryMarshal(x.Time) 93466 } else if !z.EncBinary() && z.IsJSONHandle() { 93467 z.EncJSONMarshal(x.Time) 93468 } else { 93469 z.EncFallback(x.Time) 93470 } 93471 } else { 93472 r.WriteMapElemKey() 93473 if z.IsJSONHandle() { 93474 z.WriteStr("\"Time\"") 93475 } else { 93476 r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) 93477 } 93478 r.WriteMapElemValue() 93479 if false { 93480 } else if !z.EncBasicHandle().TimeNotBuiltin { 93481 r.EncodeTime(x.Time) 93482 } else if yyxt11 := z.Extension(z.I2Rtid(x.Time)); yyxt11 != nil { 93483 z.EncExtension(x.Time, yyxt11) 93484 } else if z.EncBinary() { 93485 z.EncBinaryMarshal(x.Time) 93486 } else if !z.EncBinary() && z.IsJSONHandle() { 93487 z.EncJSONMarshal(x.Time) 93488 } else { 93489 z.EncFallback(x.Time) 93490 } 93491 } 93492 if yyr2 || yy2arr2 { 93493 r.WriteArrayEnd() 93494 } else { 93495 r.WriteMapEnd() 93496 } 93497 } 93498 } 93499 } 93500 93501 func (x *AllocState) CodecDecodeSelf(d *codec1978.Decoder) { 93502 var h codecSelfer100 93503 z, r := codec1978.GenHelperDecoder(d) 93504 _, _, _ = h, z, r 93505 if false { 93506 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93507 z.DecExtension(x, yyxt1) 93508 } else { 93509 yyct2 := r.ContainerType() 93510 if yyct2 == codecSelferValueTypeMap100 { 93511 yyl2 := r.ReadMapStart() 93512 if yyl2 == 0 { 93513 r.ReadMapEnd() 93514 } else { 93515 x.codecDecodeSelfFromMap(yyl2, d) 93516 } 93517 } else if yyct2 == codecSelferValueTypeArray100 { 93518 yyl2 := r.ReadArrayStart() 93519 if yyl2 == 0 { 93520 r.ReadArrayEnd() 93521 } else { 93522 x.codecDecodeSelfFromArray(yyl2, d) 93523 } 93524 } else { 93525 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 93526 } 93527 } 93528 } 93529 93530 func (x *AllocState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 93531 var h codecSelfer100 93532 z, r := codec1978.GenHelperDecoder(d) 93533 _, _, _ = h, z, r 93534 var yyhl3 bool = l >= 0 93535 for yyj3 := 0; ; yyj3++ { 93536 if yyhl3 { 93537 if yyj3 >= l { 93538 break 93539 } 93540 } else { 93541 if r.CheckBreak() { 93542 break 93543 } 93544 } 93545 r.ReadMapElemKey() 93546 yys3 := z.StringView(r.DecodeStringAsBytes()) 93547 r.ReadMapElemValue() 93548 switch yys3 { 93549 case "Field": 93550 if r.TryDecodeAsNil() { 93551 x.Field = 0 93552 } else { 93553 x.Field.CodecDecodeSelf(d) 93554 } 93555 case "Value": 93556 if r.TryDecodeAsNil() { 93557 x.Value = "" 93558 } else { 93559 x.Value = (string)(r.DecodeString()) 93560 } 93561 case "Time": 93562 if r.TryDecodeAsNil() { 93563 x.Time = time.Time{} 93564 } else { 93565 if false { 93566 } else if !z.DecBasicHandle().TimeNotBuiltin { 93567 x.Time = r.DecodeTime() 93568 } else if yyxt7 := z.Extension(z.I2Rtid(x.Time)); yyxt7 != nil { 93569 z.DecExtension(x.Time, yyxt7) 93570 } else if z.DecBinary() { 93571 z.DecBinaryUnmarshal(&x.Time) 93572 } else if !z.DecBinary() && z.IsJSONHandle() { 93573 z.DecJSONUnmarshal(&x.Time) 93574 } else { 93575 z.DecFallback(&x.Time, false) 93576 } 93577 } 93578 default: 93579 z.DecStructFieldNotFound(-1, yys3) 93580 } // end switch yys3 93581 } // end for yyj3 93582 r.ReadMapEnd() 93583 } 93584 93585 func (x *AllocState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 93586 var h codecSelfer100 93587 z, r := codec1978.GenHelperDecoder(d) 93588 _, _, _ = h, z, r 93589 var yyj8 int 93590 var yyb8 bool 93591 var yyhl8 bool = l >= 0 93592 yyj8++ 93593 if yyhl8 { 93594 yyb8 = yyj8 > l 93595 } else { 93596 yyb8 = r.CheckBreak() 93597 } 93598 if yyb8 { 93599 r.ReadArrayEnd() 93600 return 93601 } 93602 r.ReadArrayElem() 93603 if r.TryDecodeAsNil() { 93604 x.Field = 0 93605 } else { 93606 x.Field.CodecDecodeSelf(d) 93607 } 93608 yyj8++ 93609 if yyhl8 { 93610 yyb8 = yyj8 > l 93611 } else { 93612 yyb8 = r.CheckBreak() 93613 } 93614 if yyb8 { 93615 r.ReadArrayEnd() 93616 return 93617 } 93618 r.ReadArrayElem() 93619 if r.TryDecodeAsNil() { 93620 x.Value = "" 93621 } else { 93622 x.Value = (string)(r.DecodeString()) 93623 } 93624 yyj8++ 93625 if yyhl8 { 93626 yyb8 = yyj8 > l 93627 } else { 93628 yyb8 = r.CheckBreak() 93629 } 93630 if yyb8 { 93631 r.ReadArrayEnd() 93632 return 93633 } 93634 r.ReadArrayElem() 93635 if r.TryDecodeAsNil() { 93636 x.Time = time.Time{} 93637 } else { 93638 if false { 93639 } else if !z.DecBasicHandle().TimeNotBuiltin { 93640 x.Time = r.DecodeTime() 93641 } else if yyxt12 := z.Extension(z.I2Rtid(x.Time)); yyxt12 != nil { 93642 z.DecExtension(x.Time, yyxt12) 93643 } else if z.DecBinary() { 93644 z.DecBinaryUnmarshal(&x.Time) 93645 } else if !z.DecBinary() && z.IsJSONHandle() { 93646 z.DecJSONUnmarshal(&x.Time) 93647 } else { 93648 z.DecFallback(&x.Time, false) 93649 } 93650 } 93651 for { 93652 yyj8++ 93653 if yyhl8 { 93654 yyb8 = yyj8 > l 93655 } else { 93656 yyb8 = r.CheckBreak() 93657 } 93658 if yyb8 { 93659 break 93660 } 93661 r.ReadArrayElem() 93662 z.DecStructFieldNotFound(yyj8-1, "") 93663 } 93664 r.ReadArrayEnd() 93665 } 93666 93667 func (x *TaskState) CodecEncodeSelf(e *codec1978.Encoder) { 93668 var h codecSelfer100 93669 z, r := codec1978.GenHelperEncoder(e) 93670 _, _, _ = h, z, r 93671 if x == nil { 93672 r.EncodeNil() 93673 } else { 93674 if false { 93675 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93676 z.EncExtension(x, yyxt1) 93677 } else { 93678 yysep2 := !z.EncBinary() 93679 yy2arr2 := z.EncBasicHandle().StructToArray 93680 _, _ = yysep2, yy2arr2 93681 const yyr2 bool = false // struct tag has 'toArray' 93682 if yyr2 || yy2arr2 { 93683 r.WriteArrayStart(7) 93684 } else { 93685 r.WriteMapStart(7) 93686 } 93687 if yyr2 || yy2arr2 { 93688 r.WriteArrayElem() 93689 if false { 93690 } else { 93691 if z.EncBasicHandle().StringToRaw { 93692 r.EncodeStringBytesRaw(z.BytesView(string(x.State))) 93693 } else { 93694 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) 93695 } 93696 } 93697 } else { 93698 r.WriteMapElemKey() 93699 if z.IsJSONHandle() { 93700 z.WriteStr("\"State\"") 93701 } else { 93702 r.EncodeStringEnc(codecSelferCcUTF8100, `State`) 93703 } 93704 r.WriteMapElemValue() 93705 if false { 93706 } else { 93707 if z.EncBasicHandle().StringToRaw { 93708 r.EncodeStringBytesRaw(z.BytesView(string(x.State))) 93709 } else { 93710 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.State)) 93711 } 93712 } 93713 } 93714 if yyr2 || yy2arr2 { 93715 r.WriteArrayElem() 93716 if false { 93717 } else { 93718 r.EncodeBool(bool(x.Failed)) 93719 } 93720 } else { 93721 r.WriteMapElemKey() 93722 if z.IsJSONHandle() { 93723 z.WriteStr("\"Failed\"") 93724 } else { 93725 r.EncodeStringEnc(codecSelferCcUTF8100, `Failed`) 93726 } 93727 r.WriteMapElemValue() 93728 if false { 93729 } else { 93730 r.EncodeBool(bool(x.Failed)) 93731 } 93732 } 93733 if yyr2 || yy2arr2 { 93734 r.WriteArrayElem() 93735 if false { 93736 } else { 93737 r.EncodeUint(uint64(x.Restarts)) 93738 } 93739 } else { 93740 r.WriteMapElemKey() 93741 if z.IsJSONHandle() { 93742 z.WriteStr("\"Restarts\"") 93743 } else { 93744 r.EncodeStringEnc(codecSelferCcUTF8100, `Restarts`) 93745 } 93746 r.WriteMapElemValue() 93747 if false { 93748 } else { 93749 r.EncodeUint(uint64(x.Restarts)) 93750 } 93751 } 93752 if yyr2 || yy2arr2 { 93753 r.WriteArrayElem() 93754 if false { 93755 } else if !z.EncBasicHandle().TimeNotBuiltin { 93756 r.EncodeTime(x.LastRestart) 93757 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt13 != nil { 93758 z.EncExtension(x.LastRestart, yyxt13) 93759 } else if z.EncBinary() { 93760 z.EncBinaryMarshal(x.LastRestart) 93761 } else if !z.EncBinary() && z.IsJSONHandle() { 93762 z.EncJSONMarshal(x.LastRestart) 93763 } else { 93764 z.EncFallback(x.LastRestart) 93765 } 93766 } else { 93767 r.WriteMapElemKey() 93768 if z.IsJSONHandle() { 93769 z.WriteStr("\"LastRestart\"") 93770 } else { 93771 r.EncodeStringEnc(codecSelferCcUTF8100, `LastRestart`) 93772 } 93773 r.WriteMapElemValue() 93774 if false { 93775 } else if !z.EncBasicHandle().TimeNotBuiltin { 93776 r.EncodeTime(x.LastRestart) 93777 } else if yyxt14 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt14 != nil { 93778 z.EncExtension(x.LastRestart, yyxt14) 93779 } else if z.EncBinary() { 93780 z.EncBinaryMarshal(x.LastRestart) 93781 } else if !z.EncBinary() && z.IsJSONHandle() { 93782 z.EncJSONMarshal(x.LastRestart) 93783 } else { 93784 z.EncFallback(x.LastRestart) 93785 } 93786 } 93787 if yyr2 || yy2arr2 { 93788 r.WriteArrayElem() 93789 if false { 93790 } else if !z.EncBasicHandle().TimeNotBuiltin { 93791 r.EncodeTime(x.StartedAt) 93792 } else if yyxt16 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt16 != nil { 93793 z.EncExtension(x.StartedAt, yyxt16) 93794 } else if z.EncBinary() { 93795 z.EncBinaryMarshal(x.StartedAt) 93796 } else if !z.EncBinary() && z.IsJSONHandle() { 93797 z.EncJSONMarshal(x.StartedAt) 93798 } else { 93799 z.EncFallback(x.StartedAt) 93800 } 93801 } else { 93802 r.WriteMapElemKey() 93803 if z.IsJSONHandle() { 93804 z.WriteStr("\"StartedAt\"") 93805 } else { 93806 r.EncodeStringEnc(codecSelferCcUTF8100, `StartedAt`) 93807 } 93808 r.WriteMapElemValue() 93809 if false { 93810 } else if !z.EncBasicHandle().TimeNotBuiltin { 93811 r.EncodeTime(x.StartedAt) 93812 } else if yyxt17 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt17 != nil { 93813 z.EncExtension(x.StartedAt, yyxt17) 93814 } else if z.EncBinary() { 93815 z.EncBinaryMarshal(x.StartedAt) 93816 } else if !z.EncBinary() && z.IsJSONHandle() { 93817 z.EncJSONMarshal(x.StartedAt) 93818 } else { 93819 z.EncFallback(x.StartedAt) 93820 } 93821 } 93822 if yyr2 || yy2arr2 { 93823 r.WriteArrayElem() 93824 if false { 93825 } else if !z.EncBasicHandle().TimeNotBuiltin { 93826 r.EncodeTime(x.FinishedAt) 93827 } else if yyxt19 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt19 != nil { 93828 z.EncExtension(x.FinishedAt, yyxt19) 93829 } else if z.EncBinary() { 93830 z.EncBinaryMarshal(x.FinishedAt) 93831 } else if !z.EncBinary() && z.IsJSONHandle() { 93832 z.EncJSONMarshal(x.FinishedAt) 93833 } else { 93834 z.EncFallback(x.FinishedAt) 93835 } 93836 } else { 93837 r.WriteMapElemKey() 93838 if z.IsJSONHandle() { 93839 z.WriteStr("\"FinishedAt\"") 93840 } else { 93841 r.EncodeStringEnc(codecSelferCcUTF8100, `FinishedAt`) 93842 } 93843 r.WriteMapElemValue() 93844 if false { 93845 } else if !z.EncBasicHandle().TimeNotBuiltin { 93846 r.EncodeTime(x.FinishedAt) 93847 } else if yyxt20 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt20 != nil { 93848 z.EncExtension(x.FinishedAt, yyxt20) 93849 } else if z.EncBinary() { 93850 z.EncBinaryMarshal(x.FinishedAt) 93851 } else if !z.EncBinary() && z.IsJSONHandle() { 93852 z.EncJSONMarshal(x.FinishedAt) 93853 } else { 93854 z.EncFallback(x.FinishedAt) 93855 } 93856 } 93857 if yyr2 || yy2arr2 { 93858 r.WriteArrayElem() 93859 if x.Events == nil { 93860 r.EncodeNil() 93861 } else { 93862 if false { 93863 } else { 93864 h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) 93865 } 93866 } 93867 } else { 93868 r.WriteMapElemKey() 93869 if z.IsJSONHandle() { 93870 z.WriteStr("\"Events\"") 93871 } else { 93872 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 93873 } 93874 r.WriteMapElemValue() 93875 if x.Events == nil { 93876 r.EncodeNil() 93877 } else { 93878 if false { 93879 } else { 93880 h.encSlicePtrtoTaskEvent(([]*TaskEvent)(x.Events), e) 93881 } 93882 } 93883 } 93884 if yyr2 || yy2arr2 { 93885 r.WriteArrayEnd() 93886 } else { 93887 r.WriteMapEnd() 93888 } 93889 } 93890 } 93891 } 93892 93893 func (x *TaskState) CodecDecodeSelf(d *codec1978.Decoder) { 93894 var h codecSelfer100 93895 z, r := codec1978.GenHelperDecoder(d) 93896 _, _, _ = h, z, r 93897 if false { 93898 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 93899 z.DecExtension(x, yyxt1) 93900 } else { 93901 yyct2 := r.ContainerType() 93902 if yyct2 == codecSelferValueTypeMap100 { 93903 yyl2 := r.ReadMapStart() 93904 if yyl2 == 0 { 93905 r.ReadMapEnd() 93906 } else { 93907 x.codecDecodeSelfFromMap(yyl2, d) 93908 } 93909 } else if yyct2 == codecSelferValueTypeArray100 { 93910 yyl2 := r.ReadArrayStart() 93911 if yyl2 == 0 { 93912 r.ReadArrayEnd() 93913 } else { 93914 x.codecDecodeSelfFromArray(yyl2, d) 93915 } 93916 } else { 93917 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 93918 } 93919 } 93920 } 93921 93922 func (x *TaskState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 93923 var h codecSelfer100 93924 z, r := codec1978.GenHelperDecoder(d) 93925 _, _, _ = h, z, r 93926 var yyhl3 bool = l >= 0 93927 for yyj3 := 0; ; yyj3++ { 93928 if yyhl3 { 93929 if yyj3 >= l { 93930 break 93931 } 93932 } else { 93933 if r.CheckBreak() { 93934 break 93935 } 93936 } 93937 r.ReadMapElemKey() 93938 yys3 := z.StringView(r.DecodeStringAsBytes()) 93939 r.ReadMapElemValue() 93940 switch yys3 { 93941 case "State": 93942 if r.TryDecodeAsNil() { 93943 x.State = "" 93944 } else { 93945 x.State = (string)(r.DecodeString()) 93946 } 93947 case "Failed": 93948 if r.TryDecodeAsNil() { 93949 x.Failed = false 93950 } else { 93951 x.Failed = (bool)(r.DecodeBool()) 93952 } 93953 case "Restarts": 93954 if r.TryDecodeAsNil() { 93955 x.Restarts = 0 93956 } else { 93957 x.Restarts = (uint64)(r.DecodeUint64()) 93958 } 93959 case "LastRestart": 93960 if r.TryDecodeAsNil() { 93961 x.LastRestart = time.Time{} 93962 } else { 93963 if false { 93964 } else if !z.DecBasicHandle().TimeNotBuiltin { 93965 x.LastRestart = r.DecodeTime() 93966 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt8 != nil { 93967 z.DecExtension(x.LastRestart, yyxt8) 93968 } else if z.DecBinary() { 93969 z.DecBinaryUnmarshal(&x.LastRestart) 93970 } else if !z.DecBinary() && z.IsJSONHandle() { 93971 z.DecJSONUnmarshal(&x.LastRestart) 93972 } else { 93973 z.DecFallback(&x.LastRestart, false) 93974 } 93975 } 93976 case "StartedAt": 93977 if r.TryDecodeAsNil() { 93978 x.StartedAt = time.Time{} 93979 } else { 93980 if false { 93981 } else if !z.DecBasicHandle().TimeNotBuiltin { 93982 x.StartedAt = r.DecodeTime() 93983 } else if yyxt10 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt10 != nil { 93984 z.DecExtension(x.StartedAt, yyxt10) 93985 } else if z.DecBinary() { 93986 z.DecBinaryUnmarshal(&x.StartedAt) 93987 } else if !z.DecBinary() && z.IsJSONHandle() { 93988 z.DecJSONUnmarshal(&x.StartedAt) 93989 } else { 93990 z.DecFallback(&x.StartedAt, false) 93991 } 93992 } 93993 case "FinishedAt": 93994 if r.TryDecodeAsNil() { 93995 x.FinishedAt = time.Time{} 93996 } else { 93997 if false { 93998 } else if !z.DecBasicHandle().TimeNotBuiltin { 93999 x.FinishedAt = r.DecodeTime() 94000 } else if yyxt12 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt12 != nil { 94001 z.DecExtension(x.FinishedAt, yyxt12) 94002 } else if z.DecBinary() { 94003 z.DecBinaryUnmarshal(&x.FinishedAt) 94004 } else if !z.DecBinary() && z.IsJSONHandle() { 94005 z.DecJSONUnmarshal(&x.FinishedAt) 94006 } else { 94007 z.DecFallback(&x.FinishedAt, false) 94008 } 94009 } 94010 case "Events": 94011 if r.TryDecodeAsNil() { 94012 x.Events = nil 94013 } else { 94014 if false { 94015 } else { 94016 h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) 94017 } 94018 } 94019 default: 94020 z.DecStructFieldNotFound(-1, yys3) 94021 } // end switch yys3 94022 } // end for yyj3 94023 r.ReadMapEnd() 94024 } 94025 94026 func (x *TaskState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 94027 var h codecSelfer100 94028 z, r := codec1978.GenHelperDecoder(d) 94029 _, _, _ = h, z, r 94030 var yyj15 int 94031 var yyb15 bool 94032 var yyhl15 bool = l >= 0 94033 yyj15++ 94034 if yyhl15 { 94035 yyb15 = yyj15 > l 94036 } else { 94037 yyb15 = r.CheckBreak() 94038 } 94039 if yyb15 { 94040 r.ReadArrayEnd() 94041 return 94042 } 94043 r.ReadArrayElem() 94044 if r.TryDecodeAsNil() { 94045 x.State = "" 94046 } else { 94047 x.State = (string)(r.DecodeString()) 94048 } 94049 yyj15++ 94050 if yyhl15 { 94051 yyb15 = yyj15 > l 94052 } else { 94053 yyb15 = r.CheckBreak() 94054 } 94055 if yyb15 { 94056 r.ReadArrayEnd() 94057 return 94058 } 94059 r.ReadArrayElem() 94060 if r.TryDecodeAsNil() { 94061 x.Failed = false 94062 } else { 94063 x.Failed = (bool)(r.DecodeBool()) 94064 } 94065 yyj15++ 94066 if yyhl15 { 94067 yyb15 = yyj15 > l 94068 } else { 94069 yyb15 = r.CheckBreak() 94070 } 94071 if yyb15 { 94072 r.ReadArrayEnd() 94073 return 94074 } 94075 r.ReadArrayElem() 94076 if r.TryDecodeAsNil() { 94077 x.Restarts = 0 94078 } else { 94079 x.Restarts = (uint64)(r.DecodeUint64()) 94080 } 94081 yyj15++ 94082 if yyhl15 { 94083 yyb15 = yyj15 > l 94084 } else { 94085 yyb15 = r.CheckBreak() 94086 } 94087 if yyb15 { 94088 r.ReadArrayEnd() 94089 return 94090 } 94091 r.ReadArrayElem() 94092 if r.TryDecodeAsNil() { 94093 x.LastRestart = time.Time{} 94094 } else { 94095 if false { 94096 } else if !z.DecBasicHandle().TimeNotBuiltin { 94097 x.LastRestart = r.DecodeTime() 94098 } else if yyxt20 := z.Extension(z.I2Rtid(x.LastRestart)); yyxt20 != nil { 94099 z.DecExtension(x.LastRestart, yyxt20) 94100 } else if z.DecBinary() { 94101 z.DecBinaryUnmarshal(&x.LastRestart) 94102 } else if !z.DecBinary() && z.IsJSONHandle() { 94103 z.DecJSONUnmarshal(&x.LastRestart) 94104 } else { 94105 z.DecFallback(&x.LastRestart, false) 94106 } 94107 } 94108 yyj15++ 94109 if yyhl15 { 94110 yyb15 = yyj15 > l 94111 } else { 94112 yyb15 = r.CheckBreak() 94113 } 94114 if yyb15 { 94115 r.ReadArrayEnd() 94116 return 94117 } 94118 r.ReadArrayElem() 94119 if r.TryDecodeAsNil() { 94120 x.StartedAt = time.Time{} 94121 } else { 94122 if false { 94123 } else if !z.DecBasicHandle().TimeNotBuiltin { 94124 x.StartedAt = r.DecodeTime() 94125 } else if yyxt22 := z.Extension(z.I2Rtid(x.StartedAt)); yyxt22 != nil { 94126 z.DecExtension(x.StartedAt, yyxt22) 94127 } else if z.DecBinary() { 94128 z.DecBinaryUnmarshal(&x.StartedAt) 94129 } else if !z.DecBinary() && z.IsJSONHandle() { 94130 z.DecJSONUnmarshal(&x.StartedAt) 94131 } else { 94132 z.DecFallback(&x.StartedAt, false) 94133 } 94134 } 94135 yyj15++ 94136 if yyhl15 { 94137 yyb15 = yyj15 > l 94138 } else { 94139 yyb15 = r.CheckBreak() 94140 } 94141 if yyb15 { 94142 r.ReadArrayEnd() 94143 return 94144 } 94145 r.ReadArrayElem() 94146 if r.TryDecodeAsNil() { 94147 x.FinishedAt = time.Time{} 94148 } else { 94149 if false { 94150 } else if !z.DecBasicHandle().TimeNotBuiltin { 94151 x.FinishedAt = r.DecodeTime() 94152 } else if yyxt24 := z.Extension(z.I2Rtid(x.FinishedAt)); yyxt24 != nil { 94153 z.DecExtension(x.FinishedAt, yyxt24) 94154 } else if z.DecBinary() { 94155 z.DecBinaryUnmarshal(&x.FinishedAt) 94156 } else if !z.DecBinary() && z.IsJSONHandle() { 94157 z.DecJSONUnmarshal(&x.FinishedAt) 94158 } else { 94159 z.DecFallback(&x.FinishedAt, false) 94160 } 94161 } 94162 yyj15++ 94163 if yyhl15 { 94164 yyb15 = yyj15 > l 94165 } else { 94166 yyb15 = r.CheckBreak() 94167 } 94168 if yyb15 { 94169 r.ReadArrayEnd() 94170 return 94171 } 94172 r.ReadArrayElem() 94173 if r.TryDecodeAsNil() { 94174 x.Events = nil 94175 } else { 94176 if false { 94177 } else { 94178 h.decSlicePtrtoTaskEvent((*[]*TaskEvent)(&x.Events), d) 94179 } 94180 } 94181 for { 94182 yyj15++ 94183 if yyhl15 { 94184 yyb15 = yyj15 > l 94185 } else { 94186 yyb15 = r.CheckBreak() 94187 } 94188 if yyb15 { 94189 break 94190 } 94191 r.ReadArrayElem() 94192 z.DecStructFieldNotFound(yyj15-1, "") 94193 } 94194 r.ReadArrayEnd() 94195 } 94196 94197 func (x *TaskEvent) CodecEncodeSelf(e *codec1978.Encoder) { 94198 var h codecSelfer100 94199 z, r := codec1978.GenHelperEncoder(e) 94200 _, _, _ = h, z, r 94201 if x == nil { 94202 r.EncodeNil() 94203 } else { 94204 if false { 94205 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94206 z.EncExtension(x, yyxt1) 94207 } else { 94208 yysep2 := !z.EncBinary() 94209 yy2arr2 := z.EncBasicHandle().StructToArray 94210 _, _ = yysep2, yy2arr2 94211 const yyr2 bool = false // struct tag has 'toArray' 94212 if yyr2 || yy2arr2 { 94213 r.WriteArrayStart(24) 94214 } else { 94215 r.WriteMapStart(24) 94216 } 94217 if yyr2 || yy2arr2 { 94218 r.WriteArrayElem() 94219 if false { 94220 } else { 94221 if z.EncBasicHandle().StringToRaw { 94222 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 94223 } else { 94224 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 94225 } 94226 } 94227 } else { 94228 r.WriteMapElemKey() 94229 if z.IsJSONHandle() { 94230 z.WriteStr("\"Type\"") 94231 } else { 94232 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 94233 } 94234 r.WriteMapElemValue() 94235 if false { 94236 } else { 94237 if z.EncBasicHandle().StringToRaw { 94238 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 94239 } else { 94240 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 94241 } 94242 } 94243 } 94244 if yyr2 || yy2arr2 { 94245 r.WriteArrayElem() 94246 if false { 94247 } else { 94248 r.EncodeInt(int64(x.Time)) 94249 } 94250 } else { 94251 r.WriteMapElemKey() 94252 if z.IsJSONHandle() { 94253 z.WriteStr("\"Time\"") 94254 } else { 94255 r.EncodeStringEnc(codecSelferCcUTF8100, `Time`) 94256 } 94257 r.WriteMapElemValue() 94258 if false { 94259 } else { 94260 r.EncodeInt(int64(x.Time)) 94261 } 94262 } 94263 if yyr2 || yy2arr2 { 94264 r.WriteArrayElem() 94265 if false { 94266 } else { 94267 if z.EncBasicHandle().StringToRaw { 94268 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 94269 } else { 94270 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 94271 } 94272 } 94273 } else { 94274 r.WriteMapElemKey() 94275 if z.IsJSONHandle() { 94276 z.WriteStr("\"Message\"") 94277 } else { 94278 r.EncodeStringEnc(codecSelferCcUTF8100, `Message`) 94279 } 94280 r.WriteMapElemValue() 94281 if false { 94282 } else { 94283 if z.EncBasicHandle().StringToRaw { 94284 r.EncodeStringBytesRaw(z.BytesView(string(x.Message))) 94285 } else { 94286 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Message)) 94287 } 94288 } 94289 } 94290 if yyr2 || yy2arr2 { 94291 r.WriteArrayElem() 94292 if false { 94293 } else { 94294 if z.EncBasicHandle().StringToRaw { 94295 r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) 94296 } else { 94297 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) 94298 } 94299 } 94300 } else { 94301 r.WriteMapElemKey() 94302 if z.IsJSONHandle() { 94303 z.WriteStr("\"DisplayMessage\"") 94304 } else { 94305 r.EncodeStringEnc(codecSelferCcUTF8100, `DisplayMessage`) 94306 } 94307 r.WriteMapElemValue() 94308 if false { 94309 } else { 94310 if z.EncBasicHandle().StringToRaw { 94311 r.EncodeStringBytesRaw(z.BytesView(string(x.DisplayMessage))) 94312 } else { 94313 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DisplayMessage)) 94314 } 94315 } 94316 } 94317 if yyr2 || yy2arr2 { 94318 r.WriteArrayElem() 94319 if x.Details == nil { 94320 r.EncodeNil() 94321 } else { 94322 if false { 94323 } else { 94324 z.F.EncMapStringStringV(x.Details, e) 94325 } 94326 } 94327 } else { 94328 r.WriteMapElemKey() 94329 if z.IsJSONHandle() { 94330 z.WriteStr("\"Details\"") 94331 } else { 94332 r.EncodeStringEnc(codecSelferCcUTF8100, `Details`) 94333 } 94334 r.WriteMapElemValue() 94335 if x.Details == nil { 94336 r.EncodeNil() 94337 } else { 94338 if false { 94339 } else { 94340 z.F.EncMapStringStringV(x.Details, e) 94341 } 94342 } 94343 } 94344 if yyr2 || yy2arr2 { 94345 r.WriteArrayElem() 94346 if false { 94347 } else { 94348 r.EncodeBool(bool(x.FailsTask)) 94349 } 94350 } else { 94351 r.WriteMapElemKey() 94352 if z.IsJSONHandle() { 94353 z.WriteStr("\"FailsTask\"") 94354 } else { 94355 r.EncodeStringEnc(codecSelferCcUTF8100, `FailsTask`) 94356 } 94357 r.WriteMapElemValue() 94358 if false { 94359 } else { 94360 r.EncodeBool(bool(x.FailsTask)) 94361 } 94362 } 94363 if yyr2 || yy2arr2 { 94364 r.WriteArrayElem() 94365 if false { 94366 } else { 94367 if z.EncBasicHandle().StringToRaw { 94368 r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) 94369 } else { 94370 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) 94371 } 94372 } 94373 } else { 94374 r.WriteMapElemKey() 94375 if z.IsJSONHandle() { 94376 z.WriteStr("\"RestartReason\"") 94377 } else { 94378 r.EncodeStringEnc(codecSelferCcUTF8100, `RestartReason`) 94379 } 94380 r.WriteMapElemValue() 94381 if false { 94382 } else { 94383 if z.EncBasicHandle().StringToRaw { 94384 r.EncodeStringBytesRaw(z.BytesView(string(x.RestartReason))) 94385 } else { 94386 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RestartReason)) 94387 } 94388 } 94389 } 94390 if yyr2 || yy2arr2 { 94391 r.WriteArrayElem() 94392 if false { 94393 } else { 94394 if z.EncBasicHandle().StringToRaw { 94395 r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) 94396 } else { 94397 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) 94398 } 94399 } 94400 } else { 94401 r.WriteMapElemKey() 94402 if z.IsJSONHandle() { 94403 z.WriteStr("\"SetupError\"") 94404 } else { 94405 r.EncodeStringEnc(codecSelferCcUTF8100, `SetupError`) 94406 } 94407 r.WriteMapElemValue() 94408 if false { 94409 } else { 94410 if z.EncBasicHandle().StringToRaw { 94411 r.EncodeStringBytesRaw(z.BytesView(string(x.SetupError))) 94412 } else { 94413 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SetupError)) 94414 } 94415 } 94416 } 94417 if yyr2 || yy2arr2 { 94418 r.WriteArrayElem() 94419 if false { 94420 } else { 94421 if z.EncBasicHandle().StringToRaw { 94422 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) 94423 } else { 94424 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) 94425 } 94426 } 94427 } else { 94428 r.WriteMapElemKey() 94429 if z.IsJSONHandle() { 94430 z.WriteStr("\"DriverError\"") 94431 } else { 94432 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverError`) 94433 } 94434 r.WriteMapElemValue() 94435 if false { 94436 } else { 94437 if z.EncBasicHandle().StringToRaw { 94438 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverError))) 94439 } else { 94440 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverError)) 94441 } 94442 } 94443 } 94444 if yyr2 || yy2arr2 { 94445 r.WriteArrayElem() 94446 if false { 94447 } else { 94448 r.EncodeInt(int64(x.ExitCode)) 94449 } 94450 } else { 94451 r.WriteMapElemKey() 94452 if z.IsJSONHandle() { 94453 z.WriteStr("\"ExitCode\"") 94454 } else { 94455 r.EncodeStringEnc(codecSelferCcUTF8100, `ExitCode`) 94456 } 94457 r.WriteMapElemValue() 94458 if false { 94459 } else { 94460 r.EncodeInt(int64(x.ExitCode)) 94461 } 94462 } 94463 if yyr2 || yy2arr2 { 94464 r.WriteArrayElem() 94465 if false { 94466 } else { 94467 r.EncodeInt(int64(x.Signal)) 94468 } 94469 } else { 94470 r.WriteMapElemKey() 94471 if z.IsJSONHandle() { 94472 z.WriteStr("\"Signal\"") 94473 } else { 94474 r.EncodeStringEnc(codecSelferCcUTF8100, `Signal`) 94475 } 94476 r.WriteMapElemValue() 94477 if false { 94478 } else { 94479 r.EncodeInt(int64(x.Signal)) 94480 } 94481 } 94482 if yyr2 || yy2arr2 { 94483 r.WriteArrayElem() 94484 if false { 94485 } else if yyxt37 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt37 != nil { 94486 z.EncExtension(x.KillTimeout, yyxt37) 94487 } else { 94488 r.EncodeInt(int64(x.KillTimeout)) 94489 } 94490 } else { 94491 r.WriteMapElemKey() 94492 if z.IsJSONHandle() { 94493 z.WriteStr("\"KillTimeout\"") 94494 } else { 94495 r.EncodeStringEnc(codecSelferCcUTF8100, `KillTimeout`) 94496 } 94497 r.WriteMapElemValue() 94498 if false { 94499 } else if yyxt38 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt38 != nil { 94500 z.EncExtension(x.KillTimeout, yyxt38) 94501 } else { 94502 r.EncodeInt(int64(x.KillTimeout)) 94503 } 94504 } 94505 if yyr2 || yy2arr2 { 94506 r.WriteArrayElem() 94507 if false { 94508 } else { 94509 if z.EncBasicHandle().StringToRaw { 94510 r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) 94511 } else { 94512 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) 94513 } 94514 } 94515 } else { 94516 r.WriteMapElemKey() 94517 if z.IsJSONHandle() { 94518 z.WriteStr("\"KillError\"") 94519 } else { 94520 r.EncodeStringEnc(codecSelferCcUTF8100, `KillError`) 94521 } 94522 r.WriteMapElemValue() 94523 if false { 94524 } else { 94525 if z.EncBasicHandle().StringToRaw { 94526 r.EncodeStringBytesRaw(z.BytesView(string(x.KillError))) 94527 } else { 94528 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillError)) 94529 } 94530 } 94531 } 94532 if yyr2 || yy2arr2 { 94533 r.WriteArrayElem() 94534 if false { 94535 } else { 94536 if z.EncBasicHandle().StringToRaw { 94537 r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) 94538 } else { 94539 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) 94540 } 94541 } 94542 } else { 94543 r.WriteMapElemKey() 94544 if z.IsJSONHandle() { 94545 z.WriteStr("\"KillReason\"") 94546 } else { 94547 r.EncodeStringEnc(codecSelferCcUTF8100, `KillReason`) 94548 } 94549 r.WriteMapElemValue() 94550 if false { 94551 } else { 94552 if z.EncBasicHandle().StringToRaw { 94553 r.EncodeStringBytesRaw(z.BytesView(string(x.KillReason))) 94554 } else { 94555 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.KillReason)) 94556 } 94557 } 94558 } 94559 if yyr2 || yy2arr2 { 94560 r.WriteArrayElem() 94561 if false { 94562 } else { 94563 r.EncodeInt(int64(x.StartDelay)) 94564 } 94565 } else { 94566 r.WriteMapElemKey() 94567 if z.IsJSONHandle() { 94568 z.WriteStr("\"StartDelay\"") 94569 } else { 94570 r.EncodeStringEnc(codecSelferCcUTF8100, `StartDelay`) 94571 } 94572 r.WriteMapElemValue() 94573 if false { 94574 } else { 94575 r.EncodeInt(int64(x.StartDelay)) 94576 } 94577 } 94578 if yyr2 || yy2arr2 { 94579 r.WriteArrayElem() 94580 if false { 94581 } else { 94582 if z.EncBasicHandle().StringToRaw { 94583 r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) 94584 } else { 94585 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) 94586 } 94587 } 94588 } else { 94589 r.WriteMapElemKey() 94590 if z.IsJSONHandle() { 94591 z.WriteStr("\"DownloadError\"") 94592 } else { 94593 r.EncodeStringEnc(codecSelferCcUTF8100, `DownloadError`) 94594 } 94595 r.WriteMapElemValue() 94596 if false { 94597 } else { 94598 if z.EncBasicHandle().StringToRaw { 94599 r.EncodeStringBytesRaw(z.BytesView(string(x.DownloadError))) 94600 } else { 94601 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DownloadError)) 94602 } 94603 } 94604 } 94605 if yyr2 || yy2arr2 { 94606 r.WriteArrayElem() 94607 if false { 94608 } else { 94609 if z.EncBasicHandle().StringToRaw { 94610 r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) 94611 } else { 94612 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) 94613 } 94614 } 94615 } else { 94616 r.WriteMapElemKey() 94617 if z.IsJSONHandle() { 94618 z.WriteStr("\"ValidationError\"") 94619 } else { 94620 r.EncodeStringEnc(codecSelferCcUTF8100, `ValidationError`) 94621 } 94622 r.WriteMapElemValue() 94623 if false { 94624 } else { 94625 if z.EncBasicHandle().StringToRaw { 94626 r.EncodeStringBytesRaw(z.BytesView(string(x.ValidationError))) 94627 } else { 94628 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ValidationError)) 94629 } 94630 } 94631 } 94632 if yyr2 || yy2arr2 { 94633 r.WriteArrayElem() 94634 if false { 94635 } else { 94636 r.EncodeInt(int64(x.DiskLimit)) 94637 } 94638 } else { 94639 r.WriteMapElemKey() 94640 if z.IsJSONHandle() { 94641 z.WriteStr("\"DiskLimit\"") 94642 } else { 94643 r.EncodeStringEnc(codecSelferCcUTF8100, `DiskLimit`) 94644 } 94645 r.WriteMapElemValue() 94646 if false { 94647 } else { 94648 r.EncodeInt(int64(x.DiskLimit)) 94649 } 94650 } 94651 if yyr2 || yy2arr2 { 94652 r.WriteArrayElem() 94653 if false { 94654 } else { 94655 if z.EncBasicHandle().StringToRaw { 94656 r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) 94657 } else { 94658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) 94659 } 94660 } 94661 } else { 94662 r.WriteMapElemKey() 94663 if z.IsJSONHandle() { 94664 z.WriteStr("\"FailedSibling\"") 94665 } else { 94666 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedSibling`) 94667 } 94668 r.WriteMapElemValue() 94669 if false { 94670 } else { 94671 if z.EncBasicHandle().StringToRaw { 94672 r.EncodeStringBytesRaw(z.BytesView(string(x.FailedSibling))) 94673 } else { 94674 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FailedSibling)) 94675 } 94676 } 94677 } 94678 if yyr2 || yy2arr2 { 94679 r.WriteArrayElem() 94680 if false { 94681 } else { 94682 if z.EncBasicHandle().StringToRaw { 94683 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) 94684 } else { 94685 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) 94686 } 94687 } 94688 } else { 94689 r.WriteMapElemKey() 94690 if z.IsJSONHandle() { 94691 z.WriteStr("\"VaultError\"") 94692 } else { 94693 r.EncodeStringEnc(codecSelferCcUTF8100, `VaultError`) 94694 } 94695 r.WriteMapElemValue() 94696 if false { 94697 } else { 94698 if z.EncBasicHandle().StringToRaw { 94699 r.EncodeStringBytesRaw(z.BytesView(string(x.VaultError))) 94700 } else { 94701 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.VaultError)) 94702 } 94703 } 94704 } 94705 if yyr2 || yy2arr2 { 94706 r.WriteArrayElem() 94707 if false { 94708 } else { 94709 if z.EncBasicHandle().StringToRaw { 94710 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) 94711 } else { 94712 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) 94713 } 94714 } 94715 } else { 94716 r.WriteMapElemKey() 94717 if z.IsJSONHandle() { 94718 z.WriteStr("\"TaskSignalReason\"") 94719 } else { 94720 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignalReason`) 94721 } 94722 r.WriteMapElemValue() 94723 if false { 94724 } else { 94725 if z.EncBasicHandle().StringToRaw { 94726 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignalReason))) 94727 } else { 94728 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignalReason)) 94729 } 94730 } 94731 } 94732 if yyr2 || yy2arr2 { 94733 r.WriteArrayElem() 94734 if false { 94735 } else { 94736 if z.EncBasicHandle().StringToRaw { 94737 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) 94738 } else { 94739 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) 94740 } 94741 } 94742 } else { 94743 r.WriteMapElemKey() 94744 if z.IsJSONHandle() { 94745 z.WriteStr("\"TaskSignal\"") 94746 } else { 94747 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskSignal`) 94748 } 94749 r.WriteMapElemValue() 94750 if false { 94751 } else { 94752 if z.EncBasicHandle().StringToRaw { 94753 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskSignal))) 94754 } else { 94755 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskSignal)) 94756 } 94757 } 94758 } 94759 if yyr2 || yy2arr2 { 94760 r.WriteArrayElem() 94761 if false { 94762 } else { 94763 if z.EncBasicHandle().StringToRaw { 94764 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) 94765 } else { 94766 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) 94767 } 94768 } 94769 } else { 94770 r.WriteMapElemKey() 94771 if z.IsJSONHandle() { 94772 z.WriteStr("\"DriverMessage\"") 94773 } else { 94774 r.EncodeStringEnc(codecSelferCcUTF8100, `DriverMessage`) 94775 } 94776 r.WriteMapElemValue() 94777 if false { 94778 } else { 94779 if z.EncBasicHandle().StringToRaw { 94780 r.EncodeStringBytesRaw(z.BytesView(string(x.DriverMessage))) 94781 } else { 94782 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DriverMessage)) 94783 } 94784 } 94785 } 94786 if yyr2 || yy2arr2 { 94787 r.WriteArrayElem() 94788 if false { 94789 } else { 94790 if z.EncBasicHandle().StringToRaw { 94791 r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) 94792 } else { 94793 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) 94794 } 94795 } 94796 } else { 94797 r.WriteMapElemKey() 94798 if z.IsJSONHandle() { 94799 z.WriteStr("\"GenericSource\"") 94800 } else { 94801 r.EncodeStringEnc(codecSelferCcUTF8100, `GenericSource`) 94802 } 94803 r.WriteMapElemValue() 94804 if false { 94805 } else { 94806 if z.EncBasicHandle().StringToRaw { 94807 r.EncodeStringBytesRaw(z.BytesView(string(x.GenericSource))) 94808 } else { 94809 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GenericSource)) 94810 } 94811 } 94812 } 94813 if yyr2 || yy2arr2 { 94814 r.WriteArrayEnd() 94815 } else { 94816 r.WriteMapEnd() 94817 } 94818 } 94819 } 94820 } 94821 94822 func (x *TaskEvent) CodecDecodeSelf(d *codec1978.Decoder) { 94823 var h codecSelfer100 94824 z, r := codec1978.GenHelperDecoder(d) 94825 _, _, _ = h, z, r 94826 if false { 94827 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 94828 z.DecExtension(x, yyxt1) 94829 } else { 94830 yyct2 := r.ContainerType() 94831 if yyct2 == codecSelferValueTypeMap100 { 94832 yyl2 := r.ReadMapStart() 94833 if yyl2 == 0 { 94834 r.ReadMapEnd() 94835 } else { 94836 x.codecDecodeSelfFromMap(yyl2, d) 94837 } 94838 } else if yyct2 == codecSelferValueTypeArray100 { 94839 yyl2 := r.ReadArrayStart() 94840 if yyl2 == 0 { 94841 r.ReadArrayEnd() 94842 } else { 94843 x.codecDecodeSelfFromArray(yyl2, d) 94844 } 94845 } else { 94846 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 94847 } 94848 } 94849 } 94850 94851 func (x *TaskEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 94852 var h codecSelfer100 94853 z, r := codec1978.GenHelperDecoder(d) 94854 _, _, _ = h, z, r 94855 var yyhl3 bool = l >= 0 94856 for yyj3 := 0; ; yyj3++ { 94857 if yyhl3 { 94858 if yyj3 >= l { 94859 break 94860 } 94861 } else { 94862 if r.CheckBreak() { 94863 break 94864 } 94865 } 94866 r.ReadMapElemKey() 94867 yys3 := z.StringView(r.DecodeStringAsBytes()) 94868 r.ReadMapElemValue() 94869 switch yys3 { 94870 case "Type": 94871 if r.TryDecodeAsNil() { 94872 x.Type = "" 94873 } else { 94874 x.Type = (string)(r.DecodeString()) 94875 } 94876 case "Time": 94877 if r.TryDecodeAsNil() { 94878 x.Time = 0 94879 } else { 94880 x.Time = (int64)(r.DecodeInt64()) 94881 } 94882 case "Message": 94883 if r.TryDecodeAsNil() { 94884 x.Message = "" 94885 } else { 94886 x.Message = (string)(r.DecodeString()) 94887 } 94888 case "DisplayMessage": 94889 if r.TryDecodeAsNil() { 94890 x.DisplayMessage = "" 94891 } else { 94892 x.DisplayMessage = (string)(r.DecodeString()) 94893 } 94894 case "Details": 94895 if r.TryDecodeAsNil() { 94896 x.Details = nil 94897 } else { 94898 if false { 94899 } else { 94900 z.F.DecMapStringStringX(&x.Details, d) 94901 } 94902 } 94903 case "FailsTask": 94904 if r.TryDecodeAsNil() { 94905 x.FailsTask = false 94906 } else { 94907 x.FailsTask = (bool)(r.DecodeBool()) 94908 } 94909 case "RestartReason": 94910 if r.TryDecodeAsNil() { 94911 x.RestartReason = "" 94912 } else { 94913 x.RestartReason = (string)(r.DecodeString()) 94914 } 94915 case "SetupError": 94916 if r.TryDecodeAsNil() { 94917 x.SetupError = "" 94918 } else { 94919 x.SetupError = (string)(r.DecodeString()) 94920 } 94921 case "DriverError": 94922 if r.TryDecodeAsNil() { 94923 x.DriverError = "" 94924 } else { 94925 x.DriverError = (string)(r.DecodeString()) 94926 } 94927 case "ExitCode": 94928 if r.TryDecodeAsNil() { 94929 x.ExitCode = 0 94930 } else { 94931 x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 94932 } 94933 case "Signal": 94934 if r.TryDecodeAsNil() { 94935 x.Signal = 0 94936 } else { 94937 x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 94938 } 94939 case "KillTimeout": 94940 if r.TryDecodeAsNil() { 94941 x.KillTimeout = 0 94942 } else { 94943 if false { 94944 } else if yyxt17 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt17 != nil { 94945 z.DecExtension(x.KillTimeout, yyxt17) 94946 } else { 94947 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 94948 } 94949 } 94950 case "KillError": 94951 if r.TryDecodeAsNil() { 94952 x.KillError = "" 94953 } else { 94954 x.KillError = (string)(r.DecodeString()) 94955 } 94956 case "KillReason": 94957 if r.TryDecodeAsNil() { 94958 x.KillReason = "" 94959 } else { 94960 x.KillReason = (string)(r.DecodeString()) 94961 } 94962 case "StartDelay": 94963 if r.TryDecodeAsNil() { 94964 x.StartDelay = 0 94965 } else { 94966 x.StartDelay = (int64)(r.DecodeInt64()) 94967 } 94968 case "DownloadError": 94969 if r.TryDecodeAsNil() { 94970 x.DownloadError = "" 94971 } else { 94972 x.DownloadError = (string)(r.DecodeString()) 94973 } 94974 case "ValidationError": 94975 if r.TryDecodeAsNil() { 94976 x.ValidationError = "" 94977 } else { 94978 x.ValidationError = (string)(r.DecodeString()) 94979 } 94980 case "DiskLimit": 94981 if r.TryDecodeAsNil() { 94982 x.DiskLimit = 0 94983 } else { 94984 x.DiskLimit = (int64)(r.DecodeInt64()) 94985 } 94986 case "FailedSibling": 94987 if r.TryDecodeAsNil() { 94988 x.FailedSibling = "" 94989 } else { 94990 x.FailedSibling = (string)(r.DecodeString()) 94991 } 94992 case "VaultError": 94993 if r.TryDecodeAsNil() { 94994 x.VaultError = "" 94995 } else { 94996 x.VaultError = (string)(r.DecodeString()) 94997 } 94998 case "TaskSignalReason": 94999 if r.TryDecodeAsNil() { 95000 x.TaskSignalReason = "" 95001 } else { 95002 x.TaskSignalReason = (string)(r.DecodeString()) 95003 } 95004 case "TaskSignal": 95005 if r.TryDecodeAsNil() { 95006 x.TaskSignal = "" 95007 } else { 95008 x.TaskSignal = (string)(r.DecodeString()) 95009 } 95010 case "DriverMessage": 95011 if r.TryDecodeAsNil() { 95012 x.DriverMessage = "" 95013 } else { 95014 x.DriverMessage = (string)(r.DecodeString()) 95015 } 95016 case "GenericSource": 95017 if r.TryDecodeAsNil() { 95018 x.GenericSource = "" 95019 } else { 95020 x.GenericSource = (string)(r.DecodeString()) 95021 } 95022 default: 95023 z.DecStructFieldNotFound(-1, yys3) 95024 } // end switch yys3 95025 } // end for yyj3 95026 r.ReadMapEnd() 95027 } 95028 95029 func (x *TaskEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 95030 var h codecSelfer100 95031 z, r := codec1978.GenHelperDecoder(d) 95032 _, _, _ = h, z, r 95033 var yyj30 int 95034 var yyb30 bool 95035 var yyhl30 bool = l >= 0 95036 yyj30++ 95037 if yyhl30 { 95038 yyb30 = yyj30 > l 95039 } else { 95040 yyb30 = r.CheckBreak() 95041 } 95042 if yyb30 { 95043 r.ReadArrayEnd() 95044 return 95045 } 95046 r.ReadArrayElem() 95047 if r.TryDecodeAsNil() { 95048 x.Type = "" 95049 } else { 95050 x.Type = (string)(r.DecodeString()) 95051 } 95052 yyj30++ 95053 if yyhl30 { 95054 yyb30 = yyj30 > l 95055 } else { 95056 yyb30 = r.CheckBreak() 95057 } 95058 if yyb30 { 95059 r.ReadArrayEnd() 95060 return 95061 } 95062 r.ReadArrayElem() 95063 if r.TryDecodeAsNil() { 95064 x.Time = 0 95065 } else { 95066 x.Time = (int64)(r.DecodeInt64()) 95067 } 95068 yyj30++ 95069 if yyhl30 { 95070 yyb30 = yyj30 > l 95071 } else { 95072 yyb30 = r.CheckBreak() 95073 } 95074 if yyb30 { 95075 r.ReadArrayEnd() 95076 return 95077 } 95078 r.ReadArrayElem() 95079 if r.TryDecodeAsNil() { 95080 x.Message = "" 95081 } else { 95082 x.Message = (string)(r.DecodeString()) 95083 } 95084 yyj30++ 95085 if yyhl30 { 95086 yyb30 = yyj30 > l 95087 } else { 95088 yyb30 = r.CheckBreak() 95089 } 95090 if yyb30 { 95091 r.ReadArrayEnd() 95092 return 95093 } 95094 r.ReadArrayElem() 95095 if r.TryDecodeAsNil() { 95096 x.DisplayMessage = "" 95097 } else { 95098 x.DisplayMessage = (string)(r.DecodeString()) 95099 } 95100 yyj30++ 95101 if yyhl30 { 95102 yyb30 = yyj30 > l 95103 } else { 95104 yyb30 = r.CheckBreak() 95105 } 95106 if yyb30 { 95107 r.ReadArrayEnd() 95108 return 95109 } 95110 r.ReadArrayElem() 95111 if r.TryDecodeAsNil() { 95112 x.Details = nil 95113 } else { 95114 if false { 95115 } else { 95116 z.F.DecMapStringStringX(&x.Details, d) 95117 } 95118 } 95119 yyj30++ 95120 if yyhl30 { 95121 yyb30 = yyj30 > l 95122 } else { 95123 yyb30 = r.CheckBreak() 95124 } 95125 if yyb30 { 95126 r.ReadArrayEnd() 95127 return 95128 } 95129 r.ReadArrayElem() 95130 if r.TryDecodeAsNil() { 95131 x.FailsTask = false 95132 } else { 95133 x.FailsTask = (bool)(r.DecodeBool()) 95134 } 95135 yyj30++ 95136 if yyhl30 { 95137 yyb30 = yyj30 > l 95138 } else { 95139 yyb30 = r.CheckBreak() 95140 } 95141 if yyb30 { 95142 r.ReadArrayEnd() 95143 return 95144 } 95145 r.ReadArrayElem() 95146 if r.TryDecodeAsNil() { 95147 x.RestartReason = "" 95148 } else { 95149 x.RestartReason = (string)(r.DecodeString()) 95150 } 95151 yyj30++ 95152 if yyhl30 { 95153 yyb30 = yyj30 > l 95154 } else { 95155 yyb30 = r.CheckBreak() 95156 } 95157 if yyb30 { 95158 r.ReadArrayEnd() 95159 return 95160 } 95161 r.ReadArrayElem() 95162 if r.TryDecodeAsNil() { 95163 x.SetupError = "" 95164 } else { 95165 x.SetupError = (string)(r.DecodeString()) 95166 } 95167 yyj30++ 95168 if yyhl30 { 95169 yyb30 = yyj30 > l 95170 } else { 95171 yyb30 = r.CheckBreak() 95172 } 95173 if yyb30 { 95174 r.ReadArrayEnd() 95175 return 95176 } 95177 r.ReadArrayElem() 95178 if r.TryDecodeAsNil() { 95179 x.DriverError = "" 95180 } else { 95181 x.DriverError = (string)(r.DecodeString()) 95182 } 95183 yyj30++ 95184 if yyhl30 { 95185 yyb30 = yyj30 > l 95186 } else { 95187 yyb30 = r.CheckBreak() 95188 } 95189 if yyb30 { 95190 r.ReadArrayEnd() 95191 return 95192 } 95193 r.ReadArrayElem() 95194 if r.TryDecodeAsNil() { 95195 x.ExitCode = 0 95196 } else { 95197 x.ExitCode = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 95198 } 95199 yyj30++ 95200 if yyhl30 { 95201 yyb30 = yyj30 > l 95202 } else { 95203 yyb30 = r.CheckBreak() 95204 } 95205 if yyb30 { 95206 r.ReadArrayEnd() 95207 return 95208 } 95209 r.ReadArrayElem() 95210 if r.TryDecodeAsNil() { 95211 x.Signal = 0 95212 } else { 95213 x.Signal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 95214 } 95215 yyj30++ 95216 if yyhl30 { 95217 yyb30 = yyj30 > l 95218 } else { 95219 yyb30 = r.CheckBreak() 95220 } 95221 if yyb30 { 95222 r.ReadArrayEnd() 95223 return 95224 } 95225 r.ReadArrayElem() 95226 if r.TryDecodeAsNil() { 95227 x.KillTimeout = 0 95228 } else { 95229 if false { 95230 } else if yyxt44 := z.Extension(z.I2Rtid(x.KillTimeout)); yyxt44 != nil { 95231 z.DecExtension(x.KillTimeout, yyxt44) 95232 } else { 95233 x.KillTimeout = (time.Duration)(r.DecodeInt64()) 95234 } 95235 } 95236 yyj30++ 95237 if yyhl30 { 95238 yyb30 = yyj30 > l 95239 } else { 95240 yyb30 = r.CheckBreak() 95241 } 95242 if yyb30 { 95243 r.ReadArrayEnd() 95244 return 95245 } 95246 r.ReadArrayElem() 95247 if r.TryDecodeAsNil() { 95248 x.KillError = "" 95249 } else { 95250 x.KillError = (string)(r.DecodeString()) 95251 } 95252 yyj30++ 95253 if yyhl30 { 95254 yyb30 = yyj30 > l 95255 } else { 95256 yyb30 = r.CheckBreak() 95257 } 95258 if yyb30 { 95259 r.ReadArrayEnd() 95260 return 95261 } 95262 r.ReadArrayElem() 95263 if r.TryDecodeAsNil() { 95264 x.KillReason = "" 95265 } else { 95266 x.KillReason = (string)(r.DecodeString()) 95267 } 95268 yyj30++ 95269 if yyhl30 { 95270 yyb30 = yyj30 > l 95271 } else { 95272 yyb30 = r.CheckBreak() 95273 } 95274 if yyb30 { 95275 r.ReadArrayEnd() 95276 return 95277 } 95278 r.ReadArrayElem() 95279 if r.TryDecodeAsNil() { 95280 x.StartDelay = 0 95281 } else { 95282 x.StartDelay = (int64)(r.DecodeInt64()) 95283 } 95284 yyj30++ 95285 if yyhl30 { 95286 yyb30 = yyj30 > l 95287 } else { 95288 yyb30 = r.CheckBreak() 95289 } 95290 if yyb30 { 95291 r.ReadArrayEnd() 95292 return 95293 } 95294 r.ReadArrayElem() 95295 if r.TryDecodeAsNil() { 95296 x.DownloadError = "" 95297 } else { 95298 x.DownloadError = (string)(r.DecodeString()) 95299 } 95300 yyj30++ 95301 if yyhl30 { 95302 yyb30 = yyj30 > l 95303 } else { 95304 yyb30 = r.CheckBreak() 95305 } 95306 if yyb30 { 95307 r.ReadArrayEnd() 95308 return 95309 } 95310 r.ReadArrayElem() 95311 if r.TryDecodeAsNil() { 95312 x.ValidationError = "" 95313 } else { 95314 x.ValidationError = (string)(r.DecodeString()) 95315 } 95316 yyj30++ 95317 if yyhl30 { 95318 yyb30 = yyj30 > l 95319 } else { 95320 yyb30 = r.CheckBreak() 95321 } 95322 if yyb30 { 95323 r.ReadArrayEnd() 95324 return 95325 } 95326 r.ReadArrayElem() 95327 if r.TryDecodeAsNil() { 95328 x.DiskLimit = 0 95329 } else { 95330 x.DiskLimit = (int64)(r.DecodeInt64()) 95331 } 95332 yyj30++ 95333 if yyhl30 { 95334 yyb30 = yyj30 > l 95335 } else { 95336 yyb30 = r.CheckBreak() 95337 } 95338 if yyb30 { 95339 r.ReadArrayEnd() 95340 return 95341 } 95342 r.ReadArrayElem() 95343 if r.TryDecodeAsNil() { 95344 x.FailedSibling = "" 95345 } else { 95346 x.FailedSibling = (string)(r.DecodeString()) 95347 } 95348 yyj30++ 95349 if yyhl30 { 95350 yyb30 = yyj30 > l 95351 } else { 95352 yyb30 = r.CheckBreak() 95353 } 95354 if yyb30 { 95355 r.ReadArrayEnd() 95356 return 95357 } 95358 r.ReadArrayElem() 95359 if r.TryDecodeAsNil() { 95360 x.VaultError = "" 95361 } else { 95362 x.VaultError = (string)(r.DecodeString()) 95363 } 95364 yyj30++ 95365 if yyhl30 { 95366 yyb30 = yyj30 > l 95367 } else { 95368 yyb30 = r.CheckBreak() 95369 } 95370 if yyb30 { 95371 r.ReadArrayEnd() 95372 return 95373 } 95374 r.ReadArrayElem() 95375 if r.TryDecodeAsNil() { 95376 x.TaskSignalReason = "" 95377 } else { 95378 x.TaskSignalReason = (string)(r.DecodeString()) 95379 } 95380 yyj30++ 95381 if yyhl30 { 95382 yyb30 = yyj30 > l 95383 } else { 95384 yyb30 = r.CheckBreak() 95385 } 95386 if yyb30 { 95387 r.ReadArrayEnd() 95388 return 95389 } 95390 r.ReadArrayElem() 95391 if r.TryDecodeAsNil() { 95392 x.TaskSignal = "" 95393 } else { 95394 x.TaskSignal = (string)(r.DecodeString()) 95395 } 95396 yyj30++ 95397 if yyhl30 { 95398 yyb30 = yyj30 > l 95399 } else { 95400 yyb30 = r.CheckBreak() 95401 } 95402 if yyb30 { 95403 r.ReadArrayEnd() 95404 return 95405 } 95406 r.ReadArrayElem() 95407 if r.TryDecodeAsNil() { 95408 x.DriverMessage = "" 95409 } else { 95410 x.DriverMessage = (string)(r.DecodeString()) 95411 } 95412 yyj30++ 95413 if yyhl30 { 95414 yyb30 = yyj30 > l 95415 } else { 95416 yyb30 = r.CheckBreak() 95417 } 95418 if yyb30 { 95419 r.ReadArrayEnd() 95420 return 95421 } 95422 r.ReadArrayElem() 95423 if r.TryDecodeAsNil() { 95424 x.GenericSource = "" 95425 } else { 95426 x.GenericSource = (string)(r.DecodeString()) 95427 } 95428 for { 95429 yyj30++ 95430 if yyhl30 { 95431 yyb30 = yyj30 > l 95432 } else { 95433 yyb30 = r.CheckBreak() 95434 } 95435 if yyb30 { 95436 break 95437 } 95438 r.ReadArrayElem() 95439 z.DecStructFieldNotFound(yyj30-1, "") 95440 } 95441 r.ReadArrayEnd() 95442 } 95443 95444 func (x *TaskArtifact) CodecEncodeSelf(e *codec1978.Encoder) { 95445 var h codecSelfer100 95446 z, r := codec1978.GenHelperEncoder(e) 95447 _, _, _ = h, z, r 95448 if x == nil { 95449 r.EncodeNil() 95450 } else { 95451 if false { 95452 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95453 z.EncExtension(x, yyxt1) 95454 } else { 95455 yysep2 := !z.EncBinary() 95456 yy2arr2 := z.EncBasicHandle().StructToArray 95457 _, _ = yysep2, yy2arr2 95458 const yyr2 bool = false // struct tag has 'toArray' 95459 if yyr2 || yy2arr2 { 95460 r.WriteArrayStart(4) 95461 } else { 95462 r.WriteMapStart(4) 95463 } 95464 if yyr2 || yy2arr2 { 95465 r.WriteArrayElem() 95466 if false { 95467 } else { 95468 if z.EncBasicHandle().StringToRaw { 95469 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) 95470 } else { 95471 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) 95472 } 95473 } 95474 } else { 95475 r.WriteMapElemKey() 95476 if z.IsJSONHandle() { 95477 z.WriteStr("\"GetterSource\"") 95478 } else { 95479 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterSource`) 95480 } 95481 r.WriteMapElemValue() 95482 if false { 95483 } else { 95484 if z.EncBasicHandle().StringToRaw { 95485 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterSource))) 95486 } else { 95487 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterSource)) 95488 } 95489 } 95490 } 95491 if yyr2 || yy2arr2 { 95492 r.WriteArrayElem() 95493 if x.GetterOptions == nil { 95494 r.EncodeNil() 95495 } else { 95496 if false { 95497 } else { 95498 z.F.EncMapStringStringV(x.GetterOptions, e) 95499 } 95500 } 95501 } else { 95502 r.WriteMapElemKey() 95503 if z.IsJSONHandle() { 95504 z.WriteStr("\"GetterOptions\"") 95505 } else { 95506 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterOptions`) 95507 } 95508 r.WriteMapElemValue() 95509 if x.GetterOptions == nil { 95510 r.EncodeNil() 95511 } else { 95512 if false { 95513 } else { 95514 z.F.EncMapStringStringV(x.GetterOptions, e) 95515 } 95516 } 95517 } 95518 if yyr2 || yy2arr2 { 95519 r.WriteArrayElem() 95520 if false { 95521 } else { 95522 if z.EncBasicHandle().StringToRaw { 95523 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) 95524 } else { 95525 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) 95526 } 95527 } 95528 } else { 95529 r.WriteMapElemKey() 95530 if z.IsJSONHandle() { 95531 z.WriteStr("\"GetterMode\"") 95532 } else { 95533 r.EncodeStringEnc(codecSelferCcUTF8100, `GetterMode`) 95534 } 95535 r.WriteMapElemValue() 95536 if false { 95537 } else { 95538 if z.EncBasicHandle().StringToRaw { 95539 r.EncodeStringBytesRaw(z.BytesView(string(x.GetterMode))) 95540 } else { 95541 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.GetterMode)) 95542 } 95543 } 95544 } 95545 if yyr2 || yy2arr2 { 95546 r.WriteArrayElem() 95547 if false { 95548 } else { 95549 if z.EncBasicHandle().StringToRaw { 95550 r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) 95551 } else { 95552 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) 95553 } 95554 } 95555 } else { 95556 r.WriteMapElemKey() 95557 if z.IsJSONHandle() { 95558 z.WriteStr("\"RelativeDest\"") 95559 } else { 95560 r.EncodeStringEnc(codecSelferCcUTF8100, `RelativeDest`) 95561 } 95562 r.WriteMapElemValue() 95563 if false { 95564 } else { 95565 if z.EncBasicHandle().StringToRaw { 95566 r.EncodeStringBytesRaw(z.BytesView(string(x.RelativeDest))) 95567 } else { 95568 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RelativeDest)) 95569 } 95570 } 95571 } 95572 if yyr2 || yy2arr2 { 95573 r.WriteArrayEnd() 95574 } else { 95575 r.WriteMapEnd() 95576 } 95577 } 95578 } 95579 } 95580 95581 func (x *TaskArtifact) CodecDecodeSelf(d *codec1978.Decoder) { 95582 var h codecSelfer100 95583 z, r := codec1978.GenHelperDecoder(d) 95584 _, _, _ = h, z, r 95585 if false { 95586 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95587 z.DecExtension(x, yyxt1) 95588 } else { 95589 yyct2 := r.ContainerType() 95590 if yyct2 == codecSelferValueTypeMap100 { 95591 yyl2 := r.ReadMapStart() 95592 if yyl2 == 0 { 95593 r.ReadMapEnd() 95594 } else { 95595 x.codecDecodeSelfFromMap(yyl2, d) 95596 } 95597 } else if yyct2 == codecSelferValueTypeArray100 { 95598 yyl2 := r.ReadArrayStart() 95599 if yyl2 == 0 { 95600 r.ReadArrayEnd() 95601 } else { 95602 x.codecDecodeSelfFromArray(yyl2, d) 95603 } 95604 } else { 95605 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 95606 } 95607 } 95608 } 95609 95610 func (x *TaskArtifact) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 95611 var h codecSelfer100 95612 z, r := codec1978.GenHelperDecoder(d) 95613 _, _, _ = h, z, r 95614 var yyhl3 bool = l >= 0 95615 for yyj3 := 0; ; yyj3++ { 95616 if yyhl3 { 95617 if yyj3 >= l { 95618 break 95619 } 95620 } else { 95621 if r.CheckBreak() { 95622 break 95623 } 95624 } 95625 r.ReadMapElemKey() 95626 yys3 := z.StringView(r.DecodeStringAsBytes()) 95627 r.ReadMapElemValue() 95628 switch yys3 { 95629 case "GetterSource": 95630 if r.TryDecodeAsNil() { 95631 x.GetterSource = "" 95632 } else { 95633 x.GetterSource = (string)(r.DecodeString()) 95634 } 95635 case "GetterOptions": 95636 if r.TryDecodeAsNil() { 95637 x.GetterOptions = nil 95638 } else { 95639 if false { 95640 } else { 95641 z.F.DecMapStringStringX(&x.GetterOptions, d) 95642 } 95643 } 95644 case "GetterMode": 95645 if r.TryDecodeAsNil() { 95646 x.GetterMode = "" 95647 } else { 95648 x.GetterMode = (string)(r.DecodeString()) 95649 } 95650 case "RelativeDest": 95651 if r.TryDecodeAsNil() { 95652 x.RelativeDest = "" 95653 } else { 95654 x.RelativeDest = (string)(r.DecodeString()) 95655 } 95656 default: 95657 z.DecStructFieldNotFound(-1, yys3) 95658 } // end switch yys3 95659 } // end for yyj3 95660 r.ReadMapEnd() 95661 } 95662 95663 func (x *TaskArtifact) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 95664 var h codecSelfer100 95665 z, r := codec1978.GenHelperDecoder(d) 95666 _, _, _ = h, z, r 95667 var yyj9 int 95668 var yyb9 bool 95669 var yyhl9 bool = l >= 0 95670 yyj9++ 95671 if yyhl9 { 95672 yyb9 = yyj9 > l 95673 } else { 95674 yyb9 = r.CheckBreak() 95675 } 95676 if yyb9 { 95677 r.ReadArrayEnd() 95678 return 95679 } 95680 r.ReadArrayElem() 95681 if r.TryDecodeAsNil() { 95682 x.GetterSource = "" 95683 } else { 95684 x.GetterSource = (string)(r.DecodeString()) 95685 } 95686 yyj9++ 95687 if yyhl9 { 95688 yyb9 = yyj9 > l 95689 } else { 95690 yyb9 = r.CheckBreak() 95691 } 95692 if yyb9 { 95693 r.ReadArrayEnd() 95694 return 95695 } 95696 r.ReadArrayElem() 95697 if r.TryDecodeAsNil() { 95698 x.GetterOptions = nil 95699 } else { 95700 if false { 95701 } else { 95702 z.F.DecMapStringStringX(&x.GetterOptions, d) 95703 } 95704 } 95705 yyj9++ 95706 if yyhl9 { 95707 yyb9 = yyj9 > l 95708 } else { 95709 yyb9 = r.CheckBreak() 95710 } 95711 if yyb9 { 95712 r.ReadArrayEnd() 95713 return 95714 } 95715 r.ReadArrayElem() 95716 if r.TryDecodeAsNil() { 95717 x.GetterMode = "" 95718 } else { 95719 x.GetterMode = (string)(r.DecodeString()) 95720 } 95721 yyj9++ 95722 if yyhl9 { 95723 yyb9 = yyj9 > l 95724 } else { 95725 yyb9 = r.CheckBreak() 95726 } 95727 if yyb9 { 95728 r.ReadArrayEnd() 95729 return 95730 } 95731 r.ReadArrayElem() 95732 if r.TryDecodeAsNil() { 95733 x.RelativeDest = "" 95734 } else { 95735 x.RelativeDest = (string)(r.DecodeString()) 95736 } 95737 for { 95738 yyj9++ 95739 if yyhl9 { 95740 yyb9 = yyj9 > l 95741 } else { 95742 yyb9 = r.CheckBreak() 95743 } 95744 if yyb9 { 95745 break 95746 } 95747 r.ReadArrayElem() 95748 z.DecStructFieldNotFound(yyj9-1, "") 95749 } 95750 r.ReadArrayEnd() 95751 } 95752 95753 func (x *Constraint) CodecEncodeSelf(e *codec1978.Encoder) { 95754 var h codecSelfer100 95755 z, r := codec1978.GenHelperEncoder(e) 95756 _, _, _ = h, z, r 95757 if x == nil { 95758 r.EncodeNil() 95759 } else { 95760 if false { 95761 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95762 z.EncExtension(x, yyxt1) 95763 } else { 95764 yysep2 := !z.EncBinary() 95765 yy2arr2 := z.EncBasicHandle().StructToArray 95766 _, _ = yysep2, yy2arr2 95767 const yyr2 bool = false // struct tag has 'toArray' 95768 if yyr2 || yy2arr2 { 95769 r.WriteArrayStart(3) 95770 } else { 95771 r.WriteMapStart(3) 95772 } 95773 if yyr2 || yy2arr2 { 95774 r.WriteArrayElem() 95775 if false { 95776 } else { 95777 if z.EncBasicHandle().StringToRaw { 95778 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 95779 } else { 95780 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 95781 } 95782 } 95783 } else { 95784 r.WriteMapElemKey() 95785 if z.IsJSONHandle() { 95786 z.WriteStr("\"LTarget\"") 95787 } else { 95788 r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) 95789 } 95790 r.WriteMapElemValue() 95791 if false { 95792 } else { 95793 if z.EncBasicHandle().StringToRaw { 95794 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 95795 } else { 95796 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 95797 } 95798 } 95799 } 95800 if yyr2 || yy2arr2 { 95801 r.WriteArrayElem() 95802 if false { 95803 } else { 95804 if z.EncBasicHandle().StringToRaw { 95805 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 95806 } else { 95807 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 95808 } 95809 } 95810 } else { 95811 r.WriteMapElemKey() 95812 if z.IsJSONHandle() { 95813 z.WriteStr("\"RTarget\"") 95814 } else { 95815 r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) 95816 } 95817 r.WriteMapElemValue() 95818 if false { 95819 } else { 95820 if z.EncBasicHandle().StringToRaw { 95821 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 95822 } else { 95823 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 95824 } 95825 } 95826 } 95827 if yyr2 || yy2arr2 { 95828 r.WriteArrayElem() 95829 if false { 95830 } else { 95831 if z.EncBasicHandle().StringToRaw { 95832 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 95833 } else { 95834 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 95835 } 95836 } 95837 } else { 95838 r.WriteMapElemKey() 95839 if z.IsJSONHandle() { 95840 z.WriteStr("\"Operand\"") 95841 } else { 95842 r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) 95843 } 95844 r.WriteMapElemValue() 95845 if false { 95846 } else { 95847 if z.EncBasicHandle().StringToRaw { 95848 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 95849 } else { 95850 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 95851 } 95852 } 95853 } 95854 if yyr2 || yy2arr2 { 95855 r.WriteArrayEnd() 95856 } else { 95857 r.WriteMapEnd() 95858 } 95859 } 95860 } 95861 } 95862 95863 func (x *Constraint) CodecDecodeSelf(d *codec1978.Decoder) { 95864 var h codecSelfer100 95865 z, r := codec1978.GenHelperDecoder(d) 95866 _, _, _ = h, z, r 95867 if false { 95868 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 95869 z.DecExtension(x, yyxt1) 95870 } else { 95871 yyct2 := r.ContainerType() 95872 if yyct2 == codecSelferValueTypeMap100 { 95873 yyl2 := r.ReadMapStart() 95874 if yyl2 == 0 { 95875 r.ReadMapEnd() 95876 } else { 95877 x.codecDecodeSelfFromMap(yyl2, d) 95878 } 95879 } else if yyct2 == codecSelferValueTypeArray100 { 95880 yyl2 := r.ReadArrayStart() 95881 if yyl2 == 0 { 95882 r.ReadArrayEnd() 95883 } else { 95884 x.codecDecodeSelfFromArray(yyl2, d) 95885 } 95886 } else { 95887 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 95888 } 95889 } 95890 } 95891 95892 func (x *Constraint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 95893 var h codecSelfer100 95894 z, r := codec1978.GenHelperDecoder(d) 95895 _, _, _ = h, z, r 95896 var yyhl3 bool = l >= 0 95897 for yyj3 := 0; ; yyj3++ { 95898 if yyhl3 { 95899 if yyj3 >= l { 95900 break 95901 } 95902 } else { 95903 if r.CheckBreak() { 95904 break 95905 } 95906 } 95907 r.ReadMapElemKey() 95908 yys3 := z.StringView(r.DecodeStringAsBytes()) 95909 r.ReadMapElemValue() 95910 switch yys3 { 95911 case "LTarget": 95912 if r.TryDecodeAsNil() { 95913 x.LTarget = "" 95914 } else { 95915 x.LTarget = (string)(r.DecodeString()) 95916 } 95917 case "RTarget": 95918 if r.TryDecodeAsNil() { 95919 x.RTarget = "" 95920 } else { 95921 x.RTarget = (string)(r.DecodeString()) 95922 } 95923 case "Operand": 95924 if r.TryDecodeAsNil() { 95925 x.Operand = "" 95926 } else { 95927 x.Operand = (string)(r.DecodeString()) 95928 } 95929 default: 95930 z.DecStructFieldNotFound(-1, yys3) 95931 } // end switch yys3 95932 } // end for yyj3 95933 r.ReadMapEnd() 95934 } 95935 95936 func (x *Constraint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 95937 var h codecSelfer100 95938 z, r := codec1978.GenHelperDecoder(d) 95939 _, _, _ = h, z, r 95940 var yyj7 int 95941 var yyb7 bool 95942 var yyhl7 bool = l >= 0 95943 yyj7++ 95944 if yyhl7 { 95945 yyb7 = yyj7 > l 95946 } else { 95947 yyb7 = r.CheckBreak() 95948 } 95949 if yyb7 { 95950 r.ReadArrayEnd() 95951 return 95952 } 95953 r.ReadArrayElem() 95954 if r.TryDecodeAsNil() { 95955 x.LTarget = "" 95956 } else { 95957 x.LTarget = (string)(r.DecodeString()) 95958 } 95959 yyj7++ 95960 if yyhl7 { 95961 yyb7 = yyj7 > l 95962 } else { 95963 yyb7 = r.CheckBreak() 95964 } 95965 if yyb7 { 95966 r.ReadArrayEnd() 95967 return 95968 } 95969 r.ReadArrayElem() 95970 if r.TryDecodeAsNil() { 95971 x.RTarget = "" 95972 } else { 95973 x.RTarget = (string)(r.DecodeString()) 95974 } 95975 yyj7++ 95976 if yyhl7 { 95977 yyb7 = yyj7 > l 95978 } else { 95979 yyb7 = r.CheckBreak() 95980 } 95981 if yyb7 { 95982 r.ReadArrayEnd() 95983 return 95984 } 95985 r.ReadArrayElem() 95986 if r.TryDecodeAsNil() { 95987 x.Operand = "" 95988 } else { 95989 x.Operand = (string)(r.DecodeString()) 95990 } 95991 for { 95992 yyj7++ 95993 if yyhl7 { 95994 yyb7 = yyj7 > l 95995 } else { 95996 yyb7 = r.CheckBreak() 95997 } 95998 if yyb7 { 95999 break 96000 } 96001 r.ReadArrayElem() 96002 z.DecStructFieldNotFound(yyj7-1, "") 96003 } 96004 r.ReadArrayEnd() 96005 } 96006 96007 func (x Constraints) CodecEncodeSelf(e *codec1978.Encoder) { 96008 var h codecSelfer100 96009 z, r := codec1978.GenHelperEncoder(e) 96010 _, _, _ = h, z, r 96011 if x == nil { 96012 r.EncodeNil() 96013 } else { 96014 if false { 96015 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96016 z.EncExtension(x, yyxt1) 96017 } else { 96018 h.encConstraints((Constraints)(x), e) 96019 } 96020 } 96021 } 96022 96023 func (x *Constraints) CodecDecodeSelf(d *codec1978.Decoder) { 96024 var h codecSelfer100 96025 z, r := codec1978.GenHelperDecoder(d) 96026 _, _, _ = h, z, r 96027 if false { 96028 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96029 z.DecExtension(x, yyxt1) 96030 } else { 96031 h.decConstraints((*Constraints)(x), d) 96032 } 96033 } 96034 96035 func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { 96036 var h codecSelfer100 96037 z, r := codec1978.GenHelperEncoder(e) 96038 _, _, _ = h, z, r 96039 if x == nil { 96040 r.EncodeNil() 96041 } else { 96042 if false { 96043 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96044 z.EncExtension(x, yyxt1) 96045 } else { 96046 yysep2 := !z.EncBinary() 96047 yy2arr2 := z.EncBasicHandle().StructToArray 96048 _, _ = yysep2, yy2arr2 96049 const yyr2 bool = false // struct tag has 'toArray' 96050 if yyr2 || yy2arr2 { 96051 r.WriteArrayStart(4) 96052 } else { 96053 r.WriteMapStart(4) 96054 } 96055 if yyr2 || yy2arr2 { 96056 r.WriteArrayElem() 96057 if false { 96058 } else { 96059 if z.EncBasicHandle().StringToRaw { 96060 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 96061 } else { 96062 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 96063 } 96064 } 96065 } else { 96066 r.WriteMapElemKey() 96067 if z.IsJSONHandle() { 96068 z.WriteStr("\"LTarget\"") 96069 } else { 96070 r.EncodeStringEnc(codecSelferCcUTF8100, `LTarget`) 96071 } 96072 r.WriteMapElemValue() 96073 if false { 96074 } else { 96075 if z.EncBasicHandle().StringToRaw { 96076 r.EncodeStringBytesRaw(z.BytesView(string(x.LTarget))) 96077 } else { 96078 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LTarget)) 96079 } 96080 } 96081 } 96082 if yyr2 || yy2arr2 { 96083 r.WriteArrayElem() 96084 if false { 96085 } else { 96086 if z.EncBasicHandle().StringToRaw { 96087 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 96088 } else { 96089 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 96090 } 96091 } 96092 } else { 96093 r.WriteMapElemKey() 96094 if z.IsJSONHandle() { 96095 z.WriteStr("\"RTarget\"") 96096 } else { 96097 r.EncodeStringEnc(codecSelferCcUTF8100, `RTarget`) 96098 } 96099 r.WriteMapElemValue() 96100 if false { 96101 } else { 96102 if z.EncBasicHandle().StringToRaw { 96103 r.EncodeStringBytesRaw(z.BytesView(string(x.RTarget))) 96104 } else { 96105 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.RTarget)) 96106 } 96107 } 96108 } 96109 if yyr2 || yy2arr2 { 96110 r.WriteArrayElem() 96111 if false { 96112 } else { 96113 if z.EncBasicHandle().StringToRaw { 96114 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 96115 } else { 96116 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 96117 } 96118 } 96119 } else { 96120 r.WriteMapElemKey() 96121 if z.IsJSONHandle() { 96122 z.WriteStr("\"Operand\"") 96123 } else { 96124 r.EncodeStringEnc(codecSelferCcUTF8100, `Operand`) 96125 } 96126 r.WriteMapElemValue() 96127 if false { 96128 } else { 96129 if z.EncBasicHandle().StringToRaw { 96130 r.EncodeStringBytesRaw(z.BytesView(string(x.Operand))) 96131 } else { 96132 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Operand)) 96133 } 96134 } 96135 } 96136 if yyr2 || yy2arr2 { 96137 r.WriteArrayElem() 96138 if false { 96139 } else { 96140 r.EncodeInt(int64(x.Weight)) 96141 } 96142 } else { 96143 r.WriteMapElemKey() 96144 if z.IsJSONHandle() { 96145 z.WriteStr("\"Weight\"") 96146 } else { 96147 r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) 96148 } 96149 r.WriteMapElemValue() 96150 if false { 96151 } else { 96152 r.EncodeInt(int64(x.Weight)) 96153 } 96154 } 96155 if yyr2 || yy2arr2 { 96156 r.WriteArrayEnd() 96157 } else { 96158 r.WriteMapEnd() 96159 } 96160 } 96161 } 96162 } 96163 96164 func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { 96165 var h codecSelfer100 96166 z, r := codec1978.GenHelperDecoder(d) 96167 _, _, _ = h, z, r 96168 if false { 96169 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96170 z.DecExtension(x, yyxt1) 96171 } else { 96172 yyct2 := r.ContainerType() 96173 if yyct2 == codecSelferValueTypeMap100 { 96174 yyl2 := r.ReadMapStart() 96175 if yyl2 == 0 { 96176 r.ReadMapEnd() 96177 } else { 96178 x.codecDecodeSelfFromMap(yyl2, d) 96179 } 96180 } else if yyct2 == codecSelferValueTypeArray100 { 96181 yyl2 := r.ReadArrayStart() 96182 if yyl2 == 0 { 96183 r.ReadArrayEnd() 96184 } else { 96185 x.codecDecodeSelfFromArray(yyl2, d) 96186 } 96187 } else { 96188 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96189 } 96190 } 96191 } 96192 96193 func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96194 var h codecSelfer100 96195 z, r := codec1978.GenHelperDecoder(d) 96196 _, _, _ = h, z, r 96197 var yyhl3 bool = l >= 0 96198 for yyj3 := 0; ; yyj3++ { 96199 if yyhl3 { 96200 if yyj3 >= l { 96201 break 96202 } 96203 } else { 96204 if r.CheckBreak() { 96205 break 96206 } 96207 } 96208 r.ReadMapElemKey() 96209 yys3 := z.StringView(r.DecodeStringAsBytes()) 96210 r.ReadMapElemValue() 96211 switch yys3 { 96212 case "LTarget": 96213 if r.TryDecodeAsNil() { 96214 x.LTarget = "" 96215 } else { 96216 x.LTarget = (string)(r.DecodeString()) 96217 } 96218 case "RTarget": 96219 if r.TryDecodeAsNil() { 96220 x.RTarget = "" 96221 } else { 96222 x.RTarget = (string)(r.DecodeString()) 96223 } 96224 case "Operand": 96225 if r.TryDecodeAsNil() { 96226 x.Operand = "" 96227 } else { 96228 x.Operand = (string)(r.DecodeString()) 96229 } 96230 case "Weight": 96231 if r.TryDecodeAsNil() { 96232 x.Weight = 0 96233 } else { 96234 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 96235 } 96236 default: 96237 z.DecStructFieldNotFound(-1, yys3) 96238 } // end switch yys3 96239 } // end for yyj3 96240 r.ReadMapEnd() 96241 } 96242 96243 func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96244 var h codecSelfer100 96245 z, r := codec1978.GenHelperDecoder(d) 96246 _, _, _ = h, z, r 96247 var yyj8 int 96248 var yyb8 bool 96249 var yyhl8 bool = l >= 0 96250 yyj8++ 96251 if yyhl8 { 96252 yyb8 = yyj8 > l 96253 } else { 96254 yyb8 = r.CheckBreak() 96255 } 96256 if yyb8 { 96257 r.ReadArrayEnd() 96258 return 96259 } 96260 r.ReadArrayElem() 96261 if r.TryDecodeAsNil() { 96262 x.LTarget = "" 96263 } else { 96264 x.LTarget = (string)(r.DecodeString()) 96265 } 96266 yyj8++ 96267 if yyhl8 { 96268 yyb8 = yyj8 > l 96269 } else { 96270 yyb8 = r.CheckBreak() 96271 } 96272 if yyb8 { 96273 r.ReadArrayEnd() 96274 return 96275 } 96276 r.ReadArrayElem() 96277 if r.TryDecodeAsNil() { 96278 x.RTarget = "" 96279 } else { 96280 x.RTarget = (string)(r.DecodeString()) 96281 } 96282 yyj8++ 96283 if yyhl8 { 96284 yyb8 = yyj8 > l 96285 } else { 96286 yyb8 = r.CheckBreak() 96287 } 96288 if yyb8 { 96289 r.ReadArrayEnd() 96290 return 96291 } 96292 r.ReadArrayElem() 96293 if r.TryDecodeAsNil() { 96294 x.Operand = "" 96295 } else { 96296 x.Operand = (string)(r.DecodeString()) 96297 } 96298 yyj8++ 96299 if yyhl8 { 96300 yyb8 = yyj8 > l 96301 } else { 96302 yyb8 = r.CheckBreak() 96303 } 96304 if yyb8 { 96305 r.ReadArrayEnd() 96306 return 96307 } 96308 r.ReadArrayElem() 96309 if r.TryDecodeAsNil() { 96310 x.Weight = 0 96311 } else { 96312 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 96313 } 96314 for { 96315 yyj8++ 96316 if yyhl8 { 96317 yyb8 = yyj8 > l 96318 } else { 96319 yyb8 = r.CheckBreak() 96320 } 96321 if yyb8 { 96322 break 96323 } 96324 r.ReadArrayElem() 96325 z.DecStructFieldNotFound(yyj8-1, "") 96326 } 96327 r.ReadArrayEnd() 96328 } 96329 96330 func (x *Spread) CodecEncodeSelf(e *codec1978.Encoder) { 96331 var h codecSelfer100 96332 z, r := codec1978.GenHelperEncoder(e) 96333 _, _, _ = h, z, r 96334 if x == nil { 96335 r.EncodeNil() 96336 } else { 96337 if false { 96338 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96339 z.EncExtension(x, yyxt1) 96340 } else { 96341 yysep2 := !z.EncBinary() 96342 yy2arr2 := z.EncBasicHandle().StructToArray 96343 _, _ = yysep2, yy2arr2 96344 const yyr2 bool = false // struct tag has 'toArray' 96345 if yyr2 || yy2arr2 { 96346 r.WriteArrayStart(3) 96347 } else { 96348 r.WriteMapStart(3) 96349 } 96350 if yyr2 || yy2arr2 { 96351 r.WriteArrayElem() 96352 if false { 96353 } else { 96354 if z.EncBasicHandle().StringToRaw { 96355 r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) 96356 } else { 96357 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) 96358 } 96359 } 96360 } else { 96361 r.WriteMapElemKey() 96362 if z.IsJSONHandle() { 96363 z.WriteStr("\"Attribute\"") 96364 } else { 96365 r.EncodeStringEnc(codecSelferCcUTF8100, `Attribute`) 96366 } 96367 r.WriteMapElemValue() 96368 if false { 96369 } else { 96370 if z.EncBasicHandle().StringToRaw { 96371 r.EncodeStringBytesRaw(z.BytesView(string(x.Attribute))) 96372 } else { 96373 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Attribute)) 96374 } 96375 } 96376 } 96377 if yyr2 || yy2arr2 { 96378 r.WriteArrayElem() 96379 if false { 96380 } else { 96381 r.EncodeInt(int64(x.Weight)) 96382 } 96383 } else { 96384 r.WriteMapElemKey() 96385 if z.IsJSONHandle() { 96386 z.WriteStr("\"Weight\"") 96387 } else { 96388 r.EncodeStringEnc(codecSelferCcUTF8100, `Weight`) 96389 } 96390 r.WriteMapElemValue() 96391 if false { 96392 } else { 96393 r.EncodeInt(int64(x.Weight)) 96394 } 96395 } 96396 if yyr2 || yy2arr2 { 96397 r.WriteArrayElem() 96398 if x.SpreadTarget == nil { 96399 r.EncodeNil() 96400 } else { 96401 if false { 96402 } else { 96403 h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) 96404 } 96405 } 96406 } else { 96407 r.WriteMapElemKey() 96408 if z.IsJSONHandle() { 96409 z.WriteStr("\"SpreadTarget\"") 96410 } else { 96411 r.EncodeStringEnc(codecSelferCcUTF8100, `SpreadTarget`) 96412 } 96413 r.WriteMapElemValue() 96414 if x.SpreadTarget == nil { 96415 r.EncodeNil() 96416 } else { 96417 if false { 96418 } else { 96419 h.encSlicePtrtoSpreadTarget(([]*SpreadTarget)(x.SpreadTarget), e) 96420 } 96421 } 96422 } 96423 if yyr2 || yy2arr2 { 96424 r.WriteArrayEnd() 96425 } else { 96426 r.WriteMapEnd() 96427 } 96428 } 96429 } 96430 } 96431 96432 func (x *Spread) CodecDecodeSelf(d *codec1978.Decoder) { 96433 var h codecSelfer100 96434 z, r := codec1978.GenHelperDecoder(d) 96435 _, _, _ = h, z, r 96436 if false { 96437 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96438 z.DecExtension(x, yyxt1) 96439 } else { 96440 yyct2 := r.ContainerType() 96441 if yyct2 == codecSelferValueTypeMap100 { 96442 yyl2 := r.ReadMapStart() 96443 if yyl2 == 0 { 96444 r.ReadMapEnd() 96445 } else { 96446 x.codecDecodeSelfFromMap(yyl2, d) 96447 } 96448 } else if yyct2 == codecSelferValueTypeArray100 { 96449 yyl2 := r.ReadArrayStart() 96450 if yyl2 == 0 { 96451 r.ReadArrayEnd() 96452 } else { 96453 x.codecDecodeSelfFromArray(yyl2, d) 96454 } 96455 } else { 96456 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96457 } 96458 } 96459 } 96460 96461 func (x *Spread) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96462 var h codecSelfer100 96463 z, r := codec1978.GenHelperDecoder(d) 96464 _, _, _ = h, z, r 96465 var yyhl3 bool = l >= 0 96466 for yyj3 := 0; ; yyj3++ { 96467 if yyhl3 { 96468 if yyj3 >= l { 96469 break 96470 } 96471 } else { 96472 if r.CheckBreak() { 96473 break 96474 } 96475 } 96476 r.ReadMapElemKey() 96477 yys3 := z.StringView(r.DecodeStringAsBytes()) 96478 r.ReadMapElemValue() 96479 switch yys3 { 96480 case "Attribute": 96481 if r.TryDecodeAsNil() { 96482 x.Attribute = "" 96483 } else { 96484 x.Attribute = (string)(r.DecodeString()) 96485 } 96486 case "Weight": 96487 if r.TryDecodeAsNil() { 96488 x.Weight = 0 96489 } else { 96490 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 96491 } 96492 case "SpreadTarget": 96493 if r.TryDecodeAsNil() { 96494 x.SpreadTarget = nil 96495 } else { 96496 if false { 96497 } else { 96498 h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) 96499 } 96500 } 96501 default: 96502 z.DecStructFieldNotFound(-1, yys3) 96503 } // end switch yys3 96504 } // end for yyj3 96505 r.ReadMapEnd() 96506 } 96507 96508 func (x *Spread) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96509 var h codecSelfer100 96510 z, r := codec1978.GenHelperDecoder(d) 96511 _, _, _ = h, z, r 96512 var yyj8 int 96513 var yyb8 bool 96514 var yyhl8 bool = l >= 0 96515 yyj8++ 96516 if yyhl8 { 96517 yyb8 = yyj8 > l 96518 } else { 96519 yyb8 = r.CheckBreak() 96520 } 96521 if yyb8 { 96522 r.ReadArrayEnd() 96523 return 96524 } 96525 r.ReadArrayElem() 96526 if r.TryDecodeAsNil() { 96527 x.Attribute = "" 96528 } else { 96529 x.Attribute = (string)(r.DecodeString()) 96530 } 96531 yyj8++ 96532 if yyhl8 { 96533 yyb8 = yyj8 > l 96534 } else { 96535 yyb8 = r.CheckBreak() 96536 } 96537 if yyb8 { 96538 r.ReadArrayEnd() 96539 return 96540 } 96541 r.ReadArrayElem() 96542 if r.TryDecodeAsNil() { 96543 x.Weight = 0 96544 } else { 96545 x.Weight = (int8)(z.C.IntV(r.DecodeInt64(), 8)) 96546 } 96547 yyj8++ 96548 if yyhl8 { 96549 yyb8 = yyj8 > l 96550 } else { 96551 yyb8 = r.CheckBreak() 96552 } 96553 if yyb8 { 96554 r.ReadArrayEnd() 96555 return 96556 } 96557 r.ReadArrayElem() 96558 if r.TryDecodeAsNil() { 96559 x.SpreadTarget = nil 96560 } else { 96561 if false { 96562 } else { 96563 h.decSlicePtrtoSpreadTarget((*[]*SpreadTarget)(&x.SpreadTarget), d) 96564 } 96565 } 96566 for { 96567 yyj8++ 96568 if yyhl8 { 96569 yyb8 = yyj8 > l 96570 } else { 96571 yyb8 = r.CheckBreak() 96572 } 96573 if yyb8 { 96574 break 96575 } 96576 r.ReadArrayElem() 96577 z.DecStructFieldNotFound(yyj8-1, "") 96578 } 96579 r.ReadArrayEnd() 96580 } 96581 96582 func (x Affinities) CodecEncodeSelf(e *codec1978.Encoder) { 96583 var h codecSelfer100 96584 z, r := codec1978.GenHelperEncoder(e) 96585 _, _, _ = h, z, r 96586 if x == nil { 96587 r.EncodeNil() 96588 } else { 96589 if false { 96590 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96591 z.EncExtension(x, yyxt1) 96592 } else { 96593 h.encAffinities((Affinities)(x), e) 96594 } 96595 } 96596 } 96597 96598 func (x *Affinities) CodecDecodeSelf(d *codec1978.Decoder) { 96599 var h codecSelfer100 96600 z, r := codec1978.GenHelperDecoder(d) 96601 _, _, _ = h, z, r 96602 if false { 96603 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96604 z.DecExtension(x, yyxt1) 96605 } else { 96606 h.decAffinities((*Affinities)(x), d) 96607 } 96608 } 96609 96610 func (x *SpreadTarget) CodecEncodeSelf(e *codec1978.Encoder) { 96611 var h codecSelfer100 96612 z, r := codec1978.GenHelperEncoder(e) 96613 _, _, _ = h, z, r 96614 if x == nil { 96615 r.EncodeNil() 96616 } else { 96617 if false { 96618 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96619 z.EncExtension(x, yyxt1) 96620 } else { 96621 yysep2 := !z.EncBinary() 96622 yy2arr2 := z.EncBasicHandle().StructToArray 96623 _, _ = yysep2, yy2arr2 96624 const yyr2 bool = false // struct tag has 'toArray' 96625 if yyr2 || yy2arr2 { 96626 r.WriteArrayStart(2) 96627 } else { 96628 r.WriteMapStart(2) 96629 } 96630 if yyr2 || yy2arr2 { 96631 r.WriteArrayElem() 96632 if false { 96633 } else { 96634 if z.EncBasicHandle().StringToRaw { 96635 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 96636 } else { 96637 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 96638 } 96639 } 96640 } else { 96641 r.WriteMapElemKey() 96642 if z.IsJSONHandle() { 96643 z.WriteStr("\"Value\"") 96644 } else { 96645 r.EncodeStringEnc(codecSelferCcUTF8100, `Value`) 96646 } 96647 r.WriteMapElemValue() 96648 if false { 96649 } else { 96650 if z.EncBasicHandle().StringToRaw { 96651 r.EncodeStringBytesRaw(z.BytesView(string(x.Value))) 96652 } else { 96653 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Value)) 96654 } 96655 } 96656 } 96657 if yyr2 || yy2arr2 { 96658 r.WriteArrayElem() 96659 if false { 96660 } else { 96661 r.EncodeUint(uint64(x.Percent)) 96662 } 96663 } else { 96664 r.WriteMapElemKey() 96665 if z.IsJSONHandle() { 96666 z.WriteStr("\"Percent\"") 96667 } else { 96668 r.EncodeStringEnc(codecSelferCcUTF8100, `Percent`) 96669 } 96670 r.WriteMapElemValue() 96671 if false { 96672 } else { 96673 r.EncodeUint(uint64(x.Percent)) 96674 } 96675 } 96676 if yyr2 || yy2arr2 { 96677 r.WriteArrayEnd() 96678 } else { 96679 r.WriteMapEnd() 96680 } 96681 } 96682 } 96683 } 96684 96685 func (x *SpreadTarget) CodecDecodeSelf(d *codec1978.Decoder) { 96686 var h codecSelfer100 96687 z, r := codec1978.GenHelperDecoder(d) 96688 _, _, _ = h, z, r 96689 if false { 96690 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96691 z.DecExtension(x, yyxt1) 96692 } else { 96693 yyct2 := r.ContainerType() 96694 if yyct2 == codecSelferValueTypeMap100 { 96695 yyl2 := r.ReadMapStart() 96696 if yyl2 == 0 { 96697 r.ReadMapEnd() 96698 } else { 96699 x.codecDecodeSelfFromMap(yyl2, d) 96700 } 96701 } else if yyct2 == codecSelferValueTypeArray100 { 96702 yyl2 := r.ReadArrayStart() 96703 if yyl2 == 0 { 96704 r.ReadArrayEnd() 96705 } else { 96706 x.codecDecodeSelfFromArray(yyl2, d) 96707 } 96708 } else { 96709 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96710 } 96711 } 96712 } 96713 96714 func (x *SpreadTarget) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96715 var h codecSelfer100 96716 z, r := codec1978.GenHelperDecoder(d) 96717 _, _, _ = h, z, r 96718 var yyhl3 bool = l >= 0 96719 for yyj3 := 0; ; yyj3++ { 96720 if yyhl3 { 96721 if yyj3 >= l { 96722 break 96723 } 96724 } else { 96725 if r.CheckBreak() { 96726 break 96727 } 96728 } 96729 r.ReadMapElemKey() 96730 yys3 := z.StringView(r.DecodeStringAsBytes()) 96731 r.ReadMapElemValue() 96732 switch yys3 { 96733 case "Value": 96734 if r.TryDecodeAsNil() { 96735 x.Value = "" 96736 } else { 96737 x.Value = (string)(r.DecodeString()) 96738 } 96739 case "Percent": 96740 if r.TryDecodeAsNil() { 96741 x.Percent = 0 96742 } else { 96743 x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 96744 } 96745 default: 96746 z.DecStructFieldNotFound(-1, yys3) 96747 } // end switch yys3 96748 } // end for yyj3 96749 r.ReadMapEnd() 96750 } 96751 96752 func (x *SpreadTarget) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96753 var h codecSelfer100 96754 z, r := codec1978.GenHelperDecoder(d) 96755 _, _, _ = h, z, r 96756 var yyj6 int 96757 var yyb6 bool 96758 var yyhl6 bool = l >= 0 96759 yyj6++ 96760 if yyhl6 { 96761 yyb6 = yyj6 > l 96762 } else { 96763 yyb6 = r.CheckBreak() 96764 } 96765 if yyb6 { 96766 r.ReadArrayEnd() 96767 return 96768 } 96769 r.ReadArrayElem() 96770 if r.TryDecodeAsNil() { 96771 x.Value = "" 96772 } else { 96773 x.Value = (string)(r.DecodeString()) 96774 } 96775 yyj6++ 96776 if yyhl6 { 96777 yyb6 = yyj6 > l 96778 } else { 96779 yyb6 = r.CheckBreak() 96780 } 96781 if yyb6 { 96782 r.ReadArrayEnd() 96783 return 96784 } 96785 r.ReadArrayElem() 96786 if r.TryDecodeAsNil() { 96787 x.Percent = 0 96788 } else { 96789 x.Percent = (uint8)(z.C.UintV(r.DecodeUint64(), 8)) 96790 } 96791 for { 96792 yyj6++ 96793 if yyhl6 { 96794 yyb6 = yyj6 > l 96795 } else { 96796 yyb6 = r.CheckBreak() 96797 } 96798 if yyb6 { 96799 break 96800 } 96801 r.ReadArrayElem() 96802 z.DecStructFieldNotFound(yyj6-1, "") 96803 } 96804 r.ReadArrayEnd() 96805 } 96806 96807 func (x *EphemeralDisk) CodecEncodeSelf(e *codec1978.Encoder) { 96808 var h codecSelfer100 96809 z, r := codec1978.GenHelperEncoder(e) 96810 _, _, _ = h, z, r 96811 if x == nil { 96812 r.EncodeNil() 96813 } else { 96814 if false { 96815 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96816 z.EncExtension(x, yyxt1) 96817 } else { 96818 yysep2 := !z.EncBinary() 96819 yy2arr2 := z.EncBasicHandle().StructToArray 96820 _, _ = yysep2, yy2arr2 96821 const yyr2 bool = false // struct tag has 'toArray' 96822 if yyr2 || yy2arr2 { 96823 r.WriteArrayStart(3) 96824 } else { 96825 r.WriteMapStart(3) 96826 } 96827 if yyr2 || yy2arr2 { 96828 r.WriteArrayElem() 96829 if false { 96830 } else { 96831 r.EncodeBool(bool(x.Sticky)) 96832 } 96833 } else { 96834 r.WriteMapElemKey() 96835 if z.IsJSONHandle() { 96836 z.WriteStr("\"Sticky\"") 96837 } else { 96838 r.EncodeStringEnc(codecSelferCcUTF8100, `Sticky`) 96839 } 96840 r.WriteMapElemValue() 96841 if false { 96842 } else { 96843 r.EncodeBool(bool(x.Sticky)) 96844 } 96845 } 96846 if yyr2 || yy2arr2 { 96847 r.WriteArrayElem() 96848 if false { 96849 } else { 96850 r.EncodeInt(int64(x.SizeMB)) 96851 } 96852 } else { 96853 r.WriteMapElemKey() 96854 if z.IsJSONHandle() { 96855 z.WriteStr("\"SizeMB\"") 96856 } else { 96857 r.EncodeStringEnc(codecSelferCcUTF8100, `SizeMB`) 96858 } 96859 r.WriteMapElemValue() 96860 if false { 96861 } else { 96862 r.EncodeInt(int64(x.SizeMB)) 96863 } 96864 } 96865 if yyr2 || yy2arr2 { 96866 r.WriteArrayElem() 96867 if false { 96868 } else { 96869 r.EncodeBool(bool(x.Migrate)) 96870 } 96871 } else { 96872 r.WriteMapElemKey() 96873 if z.IsJSONHandle() { 96874 z.WriteStr("\"Migrate\"") 96875 } else { 96876 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 96877 } 96878 r.WriteMapElemValue() 96879 if false { 96880 } else { 96881 r.EncodeBool(bool(x.Migrate)) 96882 } 96883 } 96884 if yyr2 || yy2arr2 { 96885 r.WriteArrayEnd() 96886 } else { 96887 r.WriteMapEnd() 96888 } 96889 } 96890 } 96891 } 96892 96893 func (x *EphemeralDisk) CodecDecodeSelf(d *codec1978.Decoder) { 96894 var h codecSelfer100 96895 z, r := codec1978.GenHelperDecoder(d) 96896 _, _, _ = h, z, r 96897 if false { 96898 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 96899 z.DecExtension(x, yyxt1) 96900 } else { 96901 yyct2 := r.ContainerType() 96902 if yyct2 == codecSelferValueTypeMap100 { 96903 yyl2 := r.ReadMapStart() 96904 if yyl2 == 0 { 96905 r.ReadMapEnd() 96906 } else { 96907 x.codecDecodeSelfFromMap(yyl2, d) 96908 } 96909 } else if yyct2 == codecSelferValueTypeArray100 { 96910 yyl2 := r.ReadArrayStart() 96911 if yyl2 == 0 { 96912 r.ReadArrayEnd() 96913 } else { 96914 x.codecDecodeSelfFromArray(yyl2, d) 96915 } 96916 } else { 96917 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 96918 } 96919 } 96920 } 96921 96922 func (x *EphemeralDisk) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 96923 var h codecSelfer100 96924 z, r := codec1978.GenHelperDecoder(d) 96925 _, _, _ = h, z, r 96926 var yyhl3 bool = l >= 0 96927 for yyj3 := 0; ; yyj3++ { 96928 if yyhl3 { 96929 if yyj3 >= l { 96930 break 96931 } 96932 } else { 96933 if r.CheckBreak() { 96934 break 96935 } 96936 } 96937 r.ReadMapElemKey() 96938 yys3 := z.StringView(r.DecodeStringAsBytes()) 96939 r.ReadMapElemValue() 96940 switch yys3 { 96941 case "Sticky": 96942 if r.TryDecodeAsNil() { 96943 x.Sticky = false 96944 } else { 96945 x.Sticky = (bool)(r.DecodeBool()) 96946 } 96947 case "SizeMB": 96948 if r.TryDecodeAsNil() { 96949 x.SizeMB = 0 96950 } else { 96951 x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 96952 } 96953 case "Migrate": 96954 if r.TryDecodeAsNil() { 96955 x.Migrate = false 96956 } else { 96957 x.Migrate = (bool)(r.DecodeBool()) 96958 } 96959 default: 96960 z.DecStructFieldNotFound(-1, yys3) 96961 } // end switch yys3 96962 } // end for yyj3 96963 r.ReadMapEnd() 96964 } 96965 96966 func (x *EphemeralDisk) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 96967 var h codecSelfer100 96968 z, r := codec1978.GenHelperDecoder(d) 96969 _, _, _ = h, z, r 96970 var yyj7 int 96971 var yyb7 bool 96972 var yyhl7 bool = l >= 0 96973 yyj7++ 96974 if yyhl7 { 96975 yyb7 = yyj7 > l 96976 } else { 96977 yyb7 = r.CheckBreak() 96978 } 96979 if yyb7 { 96980 r.ReadArrayEnd() 96981 return 96982 } 96983 r.ReadArrayElem() 96984 if r.TryDecodeAsNil() { 96985 x.Sticky = false 96986 } else { 96987 x.Sticky = (bool)(r.DecodeBool()) 96988 } 96989 yyj7++ 96990 if yyhl7 { 96991 yyb7 = yyj7 > l 96992 } else { 96993 yyb7 = r.CheckBreak() 96994 } 96995 if yyb7 { 96996 r.ReadArrayEnd() 96997 return 96998 } 96999 r.ReadArrayElem() 97000 if r.TryDecodeAsNil() { 97001 x.SizeMB = 0 97002 } else { 97003 x.SizeMB = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 97004 } 97005 yyj7++ 97006 if yyhl7 { 97007 yyb7 = yyj7 > l 97008 } else { 97009 yyb7 = r.CheckBreak() 97010 } 97011 if yyb7 { 97012 r.ReadArrayEnd() 97013 return 97014 } 97015 r.ReadArrayElem() 97016 if r.TryDecodeAsNil() { 97017 x.Migrate = false 97018 } else { 97019 x.Migrate = (bool)(r.DecodeBool()) 97020 } 97021 for { 97022 yyj7++ 97023 if yyhl7 { 97024 yyb7 = yyj7 > l 97025 } else { 97026 yyb7 = r.CheckBreak() 97027 } 97028 if yyb7 { 97029 break 97030 } 97031 r.ReadArrayElem() 97032 z.DecStructFieldNotFound(yyj7-1, "") 97033 } 97034 r.ReadArrayEnd() 97035 } 97036 97037 func (x *Vault) CodecEncodeSelf(e *codec1978.Encoder) { 97038 var h codecSelfer100 97039 z, r := codec1978.GenHelperEncoder(e) 97040 _, _, _ = h, z, r 97041 if x == nil { 97042 r.EncodeNil() 97043 } else { 97044 if false { 97045 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97046 z.EncExtension(x, yyxt1) 97047 } else { 97048 yysep2 := !z.EncBinary() 97049 yy2arr2 := z.EncBasicHandle().StructToArray 97050 _, _ = yysep2, yy2arr2 97051 const yyr2 bool = false // struct tag has 'toArray' 97052 if yyr2 || yy2arr2 { 97053 r.WriteArrayStart(4) 97054 } else { 97055 r.WriteMapStart(4) 97056 } 97057 if yyr2 || yy2arr2 { 97058 r.WriteArrayElem() 97059 if x.Policies == nil { 97060 r.EncodeNil() 97061 } else { 97062 if false { 97063 } else { 97064 z.F.EncSliceStringV(x.Policies, e) 97065 } 97066 } 97067 } else { 97068 r.WriteMapElemKey() 97069 if z.IsJSONHandle() { 97070 z.WriteStr("\"Policies\"") 97071 } else { 97072 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 97073 } 97074 r.WriteMapElemValue() 97075 if x.Policies == nil { 97076 r.EncodeNil() 97077 } else { 97078 if false { 97079 } else { 97080 z.F.EncSliceStringV(x.Policies, e) 97081 } 97082 } 97083 } 97084 if yyr2 || yy2arr2 { 97085 r.WriteArrayElem() 97086 if false { 97087 } else { 97088 r.EncodeBool(bool(x.Env)) 97089 } 97090 } else { 97091 r.WriteMapElemKey() 97092 if z.IsJSONHandle() { 97093 z.WriteStr("\"Env\"") 97094 } else { 97095 r.EncodeStringEnc(codecSelferCcUTF8100, `Env`) 97096 } 97097 r.WriteMapElemValue() 97098 if false { 97099 } else { 97100 r.EncodeBool(bool(x.Env)) 97101 } 97102 } 97103 if yyr2 || yy2arr2 { 97104 r.WriteArrayElem() 97105 if false { 97106 } else { 97107 if z.EncBasicHandle().StringToRaw { 97108 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 97109 } else { 97110 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 97111 } 97112 } 97113 } else { 97114 r.WriteMapElemKey() 97115 if z.IsJSONHandle() { 97116 z.WriteStr("\"ChangeMode\"") 97117 } else { 97118 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeMode`) 97119 } 97120 r.WriteMapElemValue() 97121 if false { 97122 } else { 97123 if z.EncBasicHandle().StringToRaw { 97124 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeMode))) 97125 } else { 97126 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeMode)) 97127 } 97128 } 97129 } 97130 if yyr2 || yy2arr2 { 97131 r.WriteArrayElem() 97132 if false { 97133 } else { 97134 if z.EncBasicHandle().StringToRaw { 97135 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 97136 } else { 97137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 97138 } 97139 } 97140 } else { 97141 r.WriteMapElemKey() 97142 if z.IsJSONHandle() { 97143 z.WriteStr("\"ChangeSignal\"") 97144 } else { 97145 r.EncodeStringEnc(codecSelferCcUTF8100, `ChangeSignal`) 97146 } 97147 r.WriteMapElemValue() 97148 if false { 97149 } else { 97150 if z.EncBasicHandle().StringToRaw { 97151 r.EncodeStringBytesRaw(z.BytesView(string(x.ChangeSignal))) 97152 } else { 97153 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ChangeSignal)) 97154 } 97155 } 97156 } 97157 if yyr2 || yy2arr2 { 97158 r.WriteArrayEnd() 97159 } else { 97160 r.WriteMapEnd() 97161 } 97162 } 97163 } 97164 } 97165 97166 func (x *Vault) CodecDecodeSelf(d *codec1978.Decoder) { 97167 var h codecSelfer100 97168 z, r := codec1978.GenHelperDecoder(d) 97169 _, _, _ = h, z, r 97170 if false { 97171 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97172 z.DecExtension(x, yyxt1) 97173 } else { 97174 yyct2 := r.ContainerType() 97175 if yyct2 == codecSelferValueTypeMap100 { 97176 yyl2 := r.ReadMapStart() 97177 if yyl2 == 0 { 97178 r.ReadMapEnd() 97179 } else { 97180 x.codecDecodeSelfFromMap(yyl2, d) 97181 } 97182 } else if yyct2 == codecSelferValueTypeArray100 { 97183 yyl2 := r.ReadArrayStart() 97184 if yyl2 == 0 { 97185 r.ReadArrayEnd() 97186 } else { 97187 x.codecDecodeSelfFromArray(yyl2, d) 97188 } 97189 } else { 97190 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 97191 } 97192 } 97193 } 97194 97195 func (x *Vault) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 97196 var h codecSelfer100 97197 z, r := codec1978.GenHelperDecoder(d) 97198 _, _, _ = h, z, r 97199 var yyhl3 bool = l >= 0 97200 for yyj3 := 0; ; yyj3++ { 97201 if yyhl3 { 97202 if yyj3 >= l { 97203 break 97204 } 97205 } else { 97206 if r.CheckBreak() { 97207 break 97208 } 97209 } 97210 r.ReadMapElemKey() 97211 yys3 := z.StringView(r.DecodeStringAsBytes()) 97212 r.ReadMapElemValue() 97213 switch yys3 { 97214 case "Policies": 97215 if r.TryDecodeAsNil() { 97216 x.Policies = nil 97217 } else { 97218 if false { 97219 } else { 97220 z.F.DecSliceStringX(&x.Policies, d) 97221 } 97222 } 97223 case "Env": 97224 if r.TryDecodeAsNil() { 97225 x.Env = false 97226 } else { 97227 x.Env = (bool)(r.DecodeBool()) 97228 } 97229 case "ChangeMode": 97230 if r.TryDecodeAsNil() { 97231 x.ChangeMode = "" 97232 } else { 97233 x.ChangeMode = (string)(r.DecodeString()) 97234 } 97235 case "ChangeSignal": 97236 if r.TryDecodeAsNil() { 97237 x.ChangeSignal = "" 97238 } else { 97239 x.ChangeSignal = (string)(r.DecodeString()) 97240 } 97241 default: 97242 z.DecStructFieldNotFound(-1, yys3) 97243 } // end switch yys3 97244 } // end for yyj3 97245 r.ReadMapEnd() 97246 } 97247 97248 func (x *Vault) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 97249 var h codecSelfer100 97250 z, r := codec1978.GenHelperDecoder(d) 97251 _, _, _ = h, z, r 97252 var yyj9 int 97253 var yyb9 bool 97254 var yyhl9 bool = l >= 0 97255 yyj9++ 97256 if yyhl9 { 97257 yyb9 = yyj9 > l 97258 } else { 97259 yyb9 = r.CheckBreak() 97260 } 97261 if yyb9 { 97262 r.ReadArrayEnd() 97263 return 97264 } 97265 r.ReadArrayElem() 97266 if r.TryDecodeAsNil() { 97267 x.Policies = nil 97268 } else { 97269 if false { 97270 } else { 97271 z.F.DecSliceStringX(&x.Policies, d) 97272 } 97273 } 97274 yyj9++ 97275 if yyhl9 { 97276 yyb9 = yyj9 > l 97277 } else { 97278 yyb9 = r.CheckBreak() 97279 } 97280 if yyb9 { 97281 r.ReadArrayEnd() 97282 return 97283 } 97284 r.ReadArrayElem() 97285 if r.TryDecodeAsNil() { 97286 x.Env = false 97287 } else { 97288 x.Env = (bool)(r.DecodeBool()) 97289 } 97290 yyj9++ 97291 if yyhl9 { 97292 yyb9 = yyj9 > l 97293 } else { 97294 yyb9 = r.CheckBreak() 97295 } 97296 if yyb9 { 97297 r.ReadArrayEnd() 97298 return 97299 } 97300 r.ReadArrayElem() 97301 if r.TryDecodeAsNil() { 97302 x.ChangeMode = "" 97303 } else { 97304 x.ChangeMode = (string)(r.DecodeString()) 97305 } 97306 yyj9++ 97307 if yyhl9 { 97308 yyb9 = yyj9 > l 97309 } else { 97310 yyb9 = r.CheckBreak() 97311 } 97312 if yyb9 { 97313 r.ReadArrayEnd() 97314 return 97315 } 97316 r.ReadArrayElem() 97317 if r.TryDecodeAsNil() { 97318 x.ChangeSignal = "" 97319 } else { 97320 x.ChangeSignal = (string)(r.DecodeString()) 97321 } 97322 for { 97323 yyj9++ 97324 if yyhl9 { 97325 yyb9 = yyj9 > l 97326 } else { 97327 yyb9 = r.CheckBreak() 97328 } 97329 if yyb9 { 97330 break 97331 } 97332 r.ReadArrayElem() 97333 z.DecStructFieldNotFound(yyj9-1, "") 97334 } 97335 r.ReadArrayEnd() 97336 } 97337 97338 func (x *Deployment) CodecEncodeSelf(e *codec1978.Encoder) { 97339 var h codecSelfer100 97340 z, r := codec1978.GenHelperEncoder(e) 97341 _, _, _ = h, z, r 97342 if x == nil { 97343 r.EncodeNil() 97344 } else { 97345 if false { 97346 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97347 z.EncExtension(x, yyxt1) 97348 } else { 97349 yysep2 := !z.EncBinary() 97350 yy2arr2 := z.EncBasicHandle().StructToArray 97351 _, _ = yysep2, yy2arr2 97352 const yyr2 bool = false // struct tag has 'toArray' 97353 if yyr2 || yy2arr2 { 97354 r.WriteArrayStart(12) 97355 } else { 97356 r.WriteMapStart(12) 97357 } 97358 if yyr2 || yy2arr2 { 97359 r.WriteArrayElem() 97360 if false { 97361 } else { 97362 if z.EncBasicHandle().StringToRaw { 97363 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 97364 } else { 97365 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 97366 } 97367 } 97368 } else { 97369 r.WriteMapElemKey() 97370 if z.IsJSONHandle() { 97371 z.WriteStr("\"ID\"") 97372 } else { 97373 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 97374 } 97375 r.WriteMapElemValue() 97376 if false { 97377 } else { 97378 if z.EncBasicHandle().StringToRaw { 97379 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 97380 } else { 97381 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 97382 } 97383 } 97384 } 97385 if yyr2 || yy2arr2 { 97386 r.WriteArrayElem() 97387 if false { 97388 } else { 97389 if z.EncBasicHandle().StringToRaw { 97390 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 97391 } else { 97392 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 97393 } 97394 } 97395 } else { 97396 r.WriteMapElemKey() 97397 if z.IsJSONHandle() { 97398 z.WriteStr("\"Namespace\"") 97399 } else { 97400 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 97401 } 97402 r.WriteMapElemValue() 97403 if false { 97404 } else { 97405 if z.EncBasicHandle().StringToRaw { 97406 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 97407 } else { 97408 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 97409 } 97410 } 97411 } 97412 if yyr2 || yy2arr2 { 97413 r.WriteArrayElem() 97414 if false { 97415 } else { 97416 if z.EncBasicHandle().StringToRaw { 97417 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 97418 } else { 97419 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 97420 } 97421 } 97422 } else { 97423 r.WriteMapElemKey() 97424 if z.IsJSONHandle() { 97425 z.WriteStr("\"JobID\"") 97426 } else { 97427 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 97428 } 97429 r.WriteMapElemValue() 97430 if false { 97431 } else { 97432 if z.EncBasicHandle().StringToRaw { 97433 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 97434 } else { 97435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 97436 } 97437 } 97438 } 97439 if yyr2 || yy2arr2 { 97440 r.WriteArrayElem() 97441 if false { 97442 } else { 97443 r.EncodeUint(uint64(x.JobVersion)) 97444 } 97445 } else { 97446 r.WriteMapElemKey() 97447 if z.IsJSONHandle() { 97448 z.WriteStr("\"JobVersion\"") 97449 } else { 97450 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 97451 } 97452 r.WriteMapElemValue() 97453 if false { 97454 } else { 97455 r.EncodeUint(uint64(x.JobVersion)) 97456 } 97457 } 97458 if yyr2 || yy2arr2 { 97459 r.WriteArrayElem() 97460 if false { 97461 } else { 97462 r.EncodeUint(uint64(x.JobModifyIndex)) 97463 } 97464 } else { 97465 r.WriteMapElemKey() 97466 if z.IsJSONHandle() { 97467 z.WriteStr("\"JobModifyIndex\"") 97468 } else { 97469 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 97470 } 97471 r.WriteMapElemValue() 97472 if false { 97473 } else { 97474 r.EncodeUint(uint64(x.JobModifyIndex)) 97475 } 97476 } 97477 if yyr2 || yy2arr2 { 97478 r.WriteArrayElem() 97479 if false { 97480 } else { 97481 r.EncodeUint(uint64(x.JobSpecModifyIndex)) 97482 } 97483 } else { 97484 r.WriteMapElemKey() 97485 if z.IsJSONHandle() { 97486 z.WriteStr("\"JobSpecModifyIndex\"") 97487 } else { 97488 r.EncodeStringEnc(codecSelferCcUTF8100, `JobSpecModifyIndex`) 97489 } 97490 r.WriteMapElemValue() 97491 if false { 97492 } else { 97493 r.EncodeUint(uint64(x.JobSpecModifyIndex)) 97494 } 97495 } 97496 if yyr2 || yy2arr2 { 97497 r.WriteArrayElem() 97498 if false { 97499 } else { 97500 r.EncodeUint(uint64(x.JobCreateIndex)) 97501 } 97502 } else { 97503 r.WriteMapElemKey() 97504 if z.IsJSONHandle() { 97505 z.WriteStr("\"JobCreateIndex\"") 97506 } else { 97507 r.EncodeStringEnc(codecSelferCcUTF8100, `JobCreateIndex`) 97508 } 97509 r.WriteMapElemValue() 97510 if false { 97511 } else { 97512 r.EncodeUint(uint64(x.JobCreateIndex)) 97513 } 97514 } 97515 if yyr2 || yy2arr2 { 97516 r.WriteArrayElem() 97517 if x.TaskGroups == nil { 97518 r.EncodeNil() 97519 } else { 97520 if false { 97521 } else { 97522 h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) 97523 } 97524 } 97525 } else { 97526 r.WriteMapElemKey() 97527 if z.IsJSONHandle() { 97528 z.WriteStr("\"TaskGroups\"") 97529 } else { 97530 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroups`) 97531 } 97532 r.WriteMapElemValue() 97533 if x.TaskGroups == nil { 97534 r.EncodeNil() 97535 } else { 97536 if false { 97537 } else { 97538 h.encMapstringPtrtoDeploymentState((map[string]*DeploymentState)(x.TaskGroups), e) 97539 } 97540 } 97541 } 97542 if yyr2 || yy2arr2 { 97543 r.WriteArrayElem() 97544 if false { 97545 } else { 97546 if z.EncBasicHandle().StringToRaw { 97547 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 97548 } else { 97549 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 97550 } 97551 } 97552 } else { 97553 r.WriteMapElemKey() 97554 if z.IsJSONHandle() { 97555 z.WriteStr("\"Status\"") 97556 } else { 97557 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 97558 } 97559 r.WriteMapElemValue() 97560 if false { 97561 } else { 97562 if z.EncBasicHandle().StringToRaw { 97563 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 97564 } else { 97565 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 97566 } 97567 } 97568 } 97569 if yyr2 || yy2arr2 { 97570 r.WriteArrayElem() 97571 if false { 97572 } else { 97573 if z.EncBasicHandle().StringToRaw { 97574 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 97575 } else { 97576 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 97577 } 97578 } 97579 } else { 97580 r.WriteMapElemKey() 97581 if z.IsJSONHandle() { 97582 z.WriteStr("\"StatusDescription\"") 97583 } else { 97584 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 97585 } 97586 r.WriteMapElemValue() 97587 if false { 97588 } else { 97589 if z.EncBasicHandle().StringToRaw { 97590 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 97591 } else { 97592 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 97593 } 97594 } 97595 } 97596 if yyr2 || yy2arr2 { 97597 r.WriteArrayElem() 97598 if false { 97599 } else { 97600 r.EncodeUint(uint64(x.CreateIndex)) 97601 } 97602 } else { 97603 r.WriteMapElemKey() 97604 if z.IsJSONHandle() { 97605 z.WriteStr("\"CreateIndex\"") 97606 } else { 97607 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 97608 } 97609 r.WriteMapElemValue() 97610 if false { 97611 } else { 97612 r.EncodeUint(uint64(x.CreateIndex)) 97613 } 97614 } 97615 if yyr2 || yy2arr2 { 97616 r.WriteArrayElem() 97617 if false { 97618 } else { 97619 r.EncodeUint(uint64(x.ModifyIndex)) 97620 } 97621 } else { 97622 r.WriteMapElemKey() 97623 if z.IsJSONHandle() { 97624 z.WriteStr("\"ModifyIndex\"") 97625 } else { 97626 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 97627 } 97628 r.WriteMapElemValue() 97629 if false { 97630 } else { 97631 r.EncodeUint(uint64(x.ModifyIndex)) 97632 } 97633 } 97634 if yyr2 || yy2arr2 { 97635 r.WriteArrayEnd() 97636 } else { 97637 r.WriteMapEnd() 97638 } 97639 } 97640 } 97641 } 97642 97643 func (x *Deployment) CodecDecodeSelf(d *codec1978.Decoder) { 97644 var h codecSelfer100 97645 z, r := codec1978.GenHelperDecoder(d) 97646 _, _, _ = h, z, r 97647 if false { 97648 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 97649 z.DecExtension(x, yyxt1) 97650 } else { 97651 yyct2 := r.ContainerType() 97652 if yyct2 == codecSelferValueTypeMap100 { 97653 yyl2 := r.ReadMapStart() 97654 if yyl2 == 0 { 97655 r.ReadMapEnd() 97656 } else { 97657 x.codecDecodeSelfFromMap(yyl2, d) 97658 } 97659 } else if yyct2 == codecSelferValueTypeArray100 { 97660 yyl2 := r.ReadArrayStart() 97661 if yyl2 == 0 { 97662 r.ReadArrayEnd() 97663 } else { 97664 x.codecDecodeSelfFromArray(yyl2, d) 97665 } 97666 } else { 97667 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 97668 } 97669 } 97670 } 97671 97672 func (x *Deployment) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 97673 var h codecSelfer100 97674 z, r := codec1978.GenHelperDecoder(d) 97675 _, _, _ = h, z, r 97676 var yyhl3 bool = l >= 0 97677 for yyj3 := 0; ; yyj3++ { 97678 if yyhl3 { 97679 if yyj3 >= l { 97680 break 97681 } 97682 } else { 97683 if r.CheckBreak() { 97684 break 97685 } 97686 } 97687 r.ReadMapElemKey() 97688 yys3 := z.StringView(r.DecodeStringAsBytes()) 97689 r.ReadMapElemValue() 97690 switch yys3 { 97691 case "ID": 97692 if r.TryDecodeAsNil() { 97693 x.ID = "" 97694 } else { 97695 x.ID = (string)(r.DecodeString()) 97696 } 97697 case "Namespace": 97698 if r.TryDecodeAsNil() { 97699 x.Namespace = "" 97700 } else { 97701 x.Namespace = (string)(r.DecodeString()) 97702 } 97703 case "JobID": 97704 if r.TryDecodeAsNil() { 97705 x.JobID = "" 97706 } else { 97707 x.JobID = (string)(r.DecodeString()) 97708 } 97709 case "JobVersion": 97710 if r.TryDecodeAsNil() { 97711 x.JobVersion = 0 97712 } else { 97713 x.JobVersion = (uint64)(r.DecodeUint64()) 97714 } 97715 case "JobModifyIndex": 97716 if r.TryDecodeAsNil() { 97717 x.JobModifyIndex = 0 97718 } else { 97719 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 97720 } 97721 case "JobSpecModifyIndex": 97722 if r.TryDecodeAsNil() { 97723 x.JobSpecModifyIndex = 0 97724 } else { 97725 x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) 97726 } 97727 case "JobCreateIndex": 97728 if r.TryDecodeAsNil() { 97729 x.JobCreateIndex = 0 97730 } else { 97731 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 97732 } 97733 case "TaskGroups": 97734 if r.TryDecodeAsNil() { 97735 x.TaskGroups = nil 97736 } else { 97737 if false { 97738 } else { 97739 h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) 97740 } 97741 } 97742 case "Status": 97743 if r.TryDecodeAsNil() { 97744 x.Status = "" 97745 } else { 97746 x.Status = (string)(r.DecodeString()) 97747 } 97748 case "StatusDescription": 97749 if r.TryDecodeAsNil() { 97750 x.StatusDescription = "" 97751 } else { 97752 x.StatusDescription = (string)(r.DecodeString()) 97753 } 97754 case "CreateIndex": 97755 if r.TryDecodeAsNil() { 97756 x.CreateIndex = 0 97757 } else { 97758 x.CreateIndex = (uint64)(r.DecodeUint64()) 97759 } 97760 case "ModifyIndex": 97761 if r.TryDecodeAsNil() { 97762 x.ModifyIndex = 0 97763 } else { 97764 x.ModifyIndex = (uint64)(r.DecodeUint64()) 97765 } 97766 default: 97767 z.DecStructFieldNotFound(-1, yys3) 97768 } // end switch yys3 97769 } // end for yyj3 97770 r.ReadMapEnd() 97771 } 97772 97773 func (x *Deployment) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 97774 var h codecSelfer100 97775 z, r := codec1978.GenHelperDecoder(d) 97776 _, _, _ = h, z, r 97777 var yyj17 int 97778 var yyb17 bool 97779 var yyhl17 bool = l >= 0 97780 yyj17++ 97781 if yyhl17 { 97782 yyb17 = yyj17 > l 97783 } else { 97784 yyb17 = r.CheckBreak() 97785 } 97786 if yyb17 { 97787 r.ReadArrayEnd() 97788 return 97789 } 97790 r.ReadArrayElem() 97791 if r.TryDecodeAsNil() { 97792 x.ID = "" 97793 } else { 97794 x.ID = (string)(r.DecodeString()) 97795 } 97796 yyj17++ 97797 if yyhl17 { 97798 yyb17 = yyj17 > l 97799 } else { 97800 yyb17 = r.CheckBreak() 97801 } 97802 if yyb17 { 97803 r.ReadArrayEnd() 97804 return 97805 } 97806 r.ReadArrayElem() 97807 if r.TryDecodeAsNil() { 97808 x.Namespace = "" 97809 } else { 97810 x.Namespace = (string)(r.DecodeString()) 97811 } 97812 yyj17++ 97813 if yyhl17 { 97814 yyb17 = yyj17 > l 97815 } else { 97816 yyb17 = r.CheckBreak() 97817 } 97818 if yyb17 { 97819 r.ReadArrayEnd() 97820 return 97821 } 97822 r.ReadArrayElem() 97823 if r.TryDecodeAsNil() { 97824 x.JobID = "" 97825 } else { 97826 x.JobID = (string)(r.DecodeString()) 97827 } 97828 yyj17++ 97829 if yyhl17 { 97830 yyb17 = yyj17 > l 97831 } else { 97832 yyb17 = r.CheckBreak() 97833 } 97834 if yyb17 { 97835 r.ReadArrayEnd() 97836 return 97837 } 97838 r.ReadArrayElem() 97839 if r.TryDecodeAsNil() { 97840 x.JobVersion = 0 97841 } else { 97842 x.JobVersion = (uint64)(r.DecodeUint64()) 97843 } 97844 yyj17++ 97845 if yyhl17 { 97846 yyb17 = yyj17 > l 97847 } else { 97848 yyb17 = r.CheckBreak() 97849 } 97850 if yyb17 { 97851 r.ReadArrayEnd() 97852 return 97853 } 97854 r.ReadArrayElem() 97855 if r.TryDecodeAsNil() { 97856 x.JobModifyIndex = 0 97857 } else { 97858 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 97859 } 97860 yyj17++ 97861 if yyhl17 { 97862 yyb17 = yyj17 > l 97863 } else { 97864 yyb17 = r.CheckBreak() 97865 } 97866 if yyb17 { 97867 r.ReadArrayEnd() 97868 return 97869 } 97870 r.ReadArrayElem() 97871 if r.TryDecodeAsNil() { 97872 x.JobSpecModifyIndex = 0 97873 } else { 97874 x.JobSpecModifyIndex = (uint64)(r.DecodeUint64()) 97875 } 97876 yyj17++ 97877 if yyhl17 { 97878 yyb17 = yyj17 > l 97879 } else { 97880 yyb17 = r.CheckBreak() 97881 } 97882 if yyb17 { 97883 r.ReadArrayEnd() 97884 return 97885 } 97886 r.ReadArrayElem() 97887 if r.TryDecodeAsNil() { 97888 x.JobCreateIndex = 0 97889 } else { 97890 x.JobCreateIndex = (uint64)(r.DecodeUint64()) 97891 } 97892 yyj17++ 97893 if yyhl17 { 97894 yyb17 = yyj17 > l 97895 } else { 97896 yyb17 = r.CheckBreak() 97897 } 97898 if yyb17 { 97899 r.ReadArrayEnd() 97900 return 97901 } 97902 r.ReadArrayElem() 97903 if r.TryDecodeAsNil() { 97904 x.TaskGroups = nil 97905 } else { 97906 if false { 97907 } else { 97908 h.decMapstringPtrtoDeploymentState((*map[string]*DeploymentState)(&x.TaskGroups), d) 97909 } 97910 } 97911 yyj17++ 97912 if yyhl17 { 97913 yyb17 = yyj17 > l 97914 } else { 97915 yyb17 = r.CheckBreak() 97916 } 97917 if yyb17 { 97918 r.ReadArrayEnd() 97919 return 97920 } 97921 r.ReadArrayElem() 97922 if r.TryDecodeAsNil() { 97923 x.Status = "" 97924 } else { 97925 x.Status = (string)(r.DecodeString()) 97926 } 97927 yyj17++ 97928 if yyhl17 { 97929 yyb17 = yyj17 > l 97930 } else { 97931 yyb17 = r.CheckBreak() 97932 } 97933 if yyb17 { 97934 r.ReadArrayEnd() 97935 return 97936 } 97937 r.ReadArrayElem() 97938 if r.TryDecodeAsNil() { 97939 x.StatusDescription = "" 97940 } else { 97941 x.StatusDescription = (string)(r.DecodeString()) 97942 } 97943 yyj17++ 97944 if yyhl17 { 97945 yyb17 = yyj17 > l 97946 } else { 97947 yyb17 = r.CheckBreak() 97948 } 97949 if yyb17 { 97950 r.ReadArrayEnd() 97951 return 97952 } 97953 r.ReadArrayElem() 97954 if r.TryDecodeAsNil() { 97955 x.CreateIndex = 0 97956 } else { 97957 x.CreateIndex = (uint64)(r.DecodeUint64()) 97958 } 97959 yyj17++ 97960 if yyhl17 { 97961 yyb17 = yyj17 > l 97962 } else { 97963 yyb17 = r.CheckBreak() 97964 } 97965 if yyb17 { 97966 r.ReadArrayEnd() 97967 return 97968 } 97969 r.ReadArrayElem() 97970 if r.TryDecodeAsNil() { 97971 x.ModifyIndex = 0 97972 } else { 97973 x.ModifyIndex = (uint64)(r.DecodeUint64()) 97974 } 97975 for { 97976 yyj17++ 97977 if yyhl17 { 97978 yyb17 = yyj17 > l 97979 } else { 97980 yyb17 = r.CheckBreak() 97981 } 97982 if yyb17 { 97983 break 97984 } 97985 r.ReadArrayElem() 97986 z.DecStructFieldNotFound(yyj17-1, "") 97987 } 97988 r.ReadArrayEnd() 97989 } 97990 97991 func (x *DeploymentState) CodecEncodeSelf(e *codec1978.Encoder) { 97992 var h codecSelfer100 97993 z, r := codec1978.GenHelperEncoder(e) 97994 _, _, _ = h, z, r 97995 if x == nil { 97996 r.EncodeNil() 97997 } else { 97998 if false { 97999 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98000 z.EncExtension(x, yyxt1) 98001 } else { 98002 yysep2 := !z.EncBinary() 98003 yy2arr2 := z.EncBasicHandle().StructToArray 98004 _, _ = yysep2, yy2arr2 98005 const yyr2 bool = false // struct tag has 'toArray' 98006 if yyr2 || yy2arr2 { 98007 r.WriteArrayStart(11) 98008 } else { 98009 r.WriteMapStart(11) 98010 } 98011 if yyr2 || yy2arr2 { 98012 r.WriteArrayElem() 98013 if false { 98014 } else { 98015 r.EncodeBool(bool(x.AutoRevert)) 98016 } 98017 } else { 98018 r.WriteMapElemKey() 98019 if z.IsJSONHandle() { 98020 z.WriteStr("\"AutoRevert\"") 98021 } else { 98022 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoRevert`) 98023 } 98024 r.WriteMapElemValue() 98025 if false { 98026 } else { 98027 r.EncodeBool(bool(x.AutoRevert)) 98028 } 98029 } 98030 if yyr2 || yy2arr2 { 98031 r.WriteArrayElem() 98032 if false { 98033 } else { 98034 r.EncodeBool(bool(x.AutoPromote)) 98035 } 98036 } else { 98037 r.WriteMapElemKey() 98038 if z.IsJSONHandle() { 98039 z.WriteStr("\"AutoPromote\"") 98040 } else { 98041 r.EncodeStringEnc(codecSelferCcUTF8100, `AutoPromote`) 98042 } 98043 r.WriteMapElemValue() 98044 if false { 98045 } else { 98046 r.EncodeBool(bool(x.AutoPromote)) 98047 } 98048 } 98049 if yyr2 || yy2arr2 { 98050 r.WriteArrayElem() 98051 if false { 98052 } else if yyxt10 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt10 != nil { 98053 z.EncExtension(x.ProgressDeadline, yyxt10) 98054 } else { 98055 r.EncodeInt(int64(x.ProgressDeadline)) 98056 } 98057 } else { 98058 r.WriteMapElemKey() 98059 if z.IsJSONHandle() { 98060 z.WriteStr("\"ProgressDeadline\"") 98061 } else { 98062 r.EncodeStringEnc(codecSelferCcUTF8100, `ProgressDeadline`) 98063 } 98064 r.WriteMapElemValue() 98065 if false { 98066 } else if yyxt11 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt11 != nil { 98067 z.EncExtension(x.ProgressDeadline, yyxt11) 98068 } else { 98069 r.EncodeInt(int64(x.ProgressDeadline)) 98070 } 98071 } 98072 if yyr2 || yy2arr2 { 98073 r.WriteArrayElem() 98074 if false { 98075 } else if !z.EncBasicHandle().TimeNotBuiltin { 98076 r.EncodeTime(x.RequireProgressBy) 98077 } else if yyxt13 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt13 != nil { 98078 z.EncExtension(x.RequireProgressBy, yyxt13) 98079 } else if z.EncBinary() { 98080 z.EncBinaryMarshal(x.RequireProgressBy) 98081 } else if !z.EncBinary() && z.IsJSONHandle() { 98082 z.EncJSONMarshal(x.RequireProgressBy) 98083 } else { 98084 z.EncFallback(x.RequireProgressBy) 98085 } 98086 } else { 98087 r.WriteMapElemKey() 98088 if z.IsJSONHandle() { 98089 z.WriteStr("\"RequireProgressBy\"") 98090 } else { 98091 r.EncodeStringEnc(codecSelferCcUTF8100, `RequireProgressBy`) 98092 } 98093 r.WriteMapElemValue() 98094 if false { 98095 } else if !z.EncBasicHandle().TimeNotBuiltin { 98096 r.EncodeTime(x.RequireProgressBy) 98097 } else if yyxt14 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt14 != nil { 98098 z.EncExtension(x.RequireProgressBy, yyxt14) 98099 } else if z.EncBinary() { 98100 z.EncBinaryMarshal(x.RequireProgressBy) 98101 } else if !z.EncBinary() && z.IsJSONHandle() { 98102 z.EncJSONMarshal(x.RequireProgressBy) 98103 } else { 98104 z.EncFallback(x.RequireProgressBy) 98105 } 98106 } 98107 if yyr2 || yy2arr2 { 98108 r.WriteArrayElem() 98109 if false { 98110 } else { 98111 r.EncodeBool(bool(x.Promoted)) 98112 } 98113 } else { 98114 r.WriteMapElemKey() 98115 if z.IsJSONHandle() { 98116 z.WriteStr("\"Promoted\"") 98117 } else { 98118 r.EncodeStringEnc(codecSelferCcUTF8100, `Promoted`) 98119 } 98120 r.WriteMapElemValue() 98121 if false { 98122 } else { 98123 r.EncodeBool(bool(x.Promoted)) 98124 } 98125 } 98126 if yyr2 || yy2arr2 { 98127 r.WriteArrayElem() 98128 if x.PlacedCanaries == nil { 98129 r.EncodeNil() 98130 } else { 98131 if false { 98132 } else { 98133 z.F.EncSliceStringV(x.PlacedCanaries, e) 98134 } 98135 } 98136 } else { 98137 r.WriteMapElemKey() 98138 if z.IsJSONHandle() { 98139 z.WriteStr("\"PlacedCanaries\"") 98140 } else { 98141 r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedCanaries`) 98142 } 98143 r.WriteMapElemValue() 98144 if x.PlacedCanaries == nil { 98145 r.EncodeNil() 98146 } else { 98147 if false { 98148 } else { 98149 z.F.EncSliceStringV(x.PlacedCanaries, e) 98150 } 98151 } 98152 } 98153 if yyr2 || yy2arr2 { 98154 r.WriteArrayElem() 98155 if false { 98156 } else { 98157 r.EncodeInt(int64(x.DesiredCanaries)) 98158 } 98159 } else { 98160 r.WriteMapElemKey() 98161 if z.IsJSONHandle() { 98162 z.WriteStr("\"DesiredCanaries\"") 98163 } else { 98164 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredCanaries`) 98165 } 98166 r.WriteMapElemValue() 98167 if false { 98168 } else { 98169 r.EncodeInt(int64(x.DesiredCanaries)) 98170 } 98171 } 98172 if yyr2 || yy2arr2 { 98173 r.WriteArrayElem() 98174 if false { 98175 } else { 98176 r.EncodeInt(int64(x.DesiredTotal)) 98177 } 98178 } else { 98179 r.WriteMapElemKey() 98180 if z.IsJSONHandle() { 98181 z.WriteStr("\"DesiredTotal\"") 98182 } else { 98183 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTotal`) 98184 } 98185 r.WriteMapElemValue() 98186 if false { 98187 } else { 98188 r.EncodeInt(int64(x.DesiredTotal)) 98189 } 98190 } 98191 if yyr2 || yy2arr2 { 98192 r.WriteArrayElem() 98193 if false { 98194 } else { 98195 r.EncodeInt(int64(x.PlacedAllocs)) 98196 } 98197 } else { 98198 r.WriteMapElemKey() 98199 if z.IsJSONHandle() { 98200 z.WriteStr("\"PlacedAllocs\"") 98201 } else { 98202 r.EncodeStringEnc(codecSelferCcUTF8100, `PlacedAllocs`) 98203 } 98204 r.WriteMapElemValue() 98205 if false { 98206 } else { 98207 r.EncodeInt(int64(x.PlacedAllocs)) 98208 } 98209 } 98210 if yyr2 || yy2arr2 { 98211 r.WriteArrayElem() 98212 if false { 98213 } else { 98214 r.EncodeInt(int64(x.HealthyAllocs)) 98215 } 98216 } else { 98217 r.WriteMapElemKey() 98218 if z.IsJSONHandle() { 98219 z.WriteStr("\"HealthyAllocs\"") 98220 } else { 98221 r.EncodeStringEnc(codecSelferCcUTF8100, `HealthyAllocs`) 98222 } 98223 r.WriteMapElemValue() 98224 if false { 98225 } else { 98226 r.EncodeInt(int64(x.HealthyAllocs)) 98227 } 98228 } 98229 if yyr2 || yy2arr2 { 98230 r.WriteArrayElem() 98231 if false { 98232 } else { 98233 r.EncodeInt(int64(x.UnhealthyAllocs)) 98234 } 98235 } else { 98236 r.WriteMapElemKey() 98237 if z.IsJSONHandle() { 98238 z.WriteStr("\"UnhealthyAllocs\"") 98239 } else { 98240 r.EncodeStringEnc(codecSelferCcUTF8100, `UnhealthyAllocs`) 98241 } 98242 r.WriteMapElemValue() 98243 if false { 98244 } else { 98245 r.EncodeInt(int64(x.UnhealthyAllocs)) 98246 } 98247 } 98248 if yyr2 || yy2arr2 { 98249 r.WriteArrayEnd() 98250 } else { 98251 r.WriteMapEnd() 98252 } 98253 } 98254 } 98255 } 98256 98257 func (x *DeploymentState) CodecDecodeSelf(d *codec1978.Decoder) { 98258 var h codecSelfer100 98259 z, r := codec1978.GenHelperDecoder(d) 98260 _, _, _ = h, z, r 98261 if false { 98262 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98263 z.DecExtension(x, yyxt1) 98264 } else { 98265 yyct2 := r.ContainerType() 98266 if yyct2 == codecSelferValueTypeMap100 { 98267 yyl2 := r.ReadMapStart() 98268 if yyl2 == 0 { 98269 r.ReadMapEnd() 98270 } else { 98271 x.codecDecodeSelfFromMap(yyl2, d) 98272 } 98273 } else if yyct2 == codecSelferValueTypeArray100 { 98274 yyl2 := r.ReadArrayStart() 98275 if yyl2 == 0 { 98276 r.ReadArrayEnd() 98277 } else { 98278 x.codecDecodeSelfFromArray(yyl2, d) 98279 } 98280 } else { 98281 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 98282 } 98283 } 98284 } 98285 98286 func (x *DeploymentState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 98287 var h codecSelfer100 98288 z, r := codec1978.GenHelperDecoder(d) 98289 _, _, _ = h, z, r 98290 var yyhl3 bool = l >= 0 98291 for yyj3 := 0; ; yyj3++ { 98292 if yyhl3 { 98293 if yyj3 >= l { 98294 break 98295 } 98296 } else { 98297 if r.CheckBreak() { 98298 break 98299 } 98300 } 98301 r.ReadMapElemKey() 98302 yys3 := z.StringView(r.DecodeStringAsBytes()) 98303 r.ReadMapElemValue() 98304 switch yys3 { 98305 case "AutoRevert": 98306 if r.TryDecodeAsNil() { 98307 x.AutoRevert = false 98308 } else { 98309 x.AutoRevert = (bool)(r.DecodeBool()) 98310 } 98311 case "AutoPromote": 98312 if r.TryDecodeAsNil() { 98313 x.AutoPromote = false 98314 } else { 98315 x.AutoPromote = (bool)(r.DecodeBool()) 98316 } 98317 case "ProgressDeadline": 98318 if r.TryDecodeAsNil() { 98319 x.ProgressDeadline = 0 98320 } else { 98321 if false { 98322 } else if yyxt7 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt7 != nil { 98323 z.DecExtension(x.ProgressDeadline, yyxt7) 98324 } else { 98325 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 98326 } 98327 } 98328 case "RequireProgressBy": 98329 if r.TryDecodeAsNil() { 98330 x.RequireProgressBy = time.Time{} 98331 } else { 98332 if false { 98333 } else if !z.DecBasicHandle().TimeNotBuiltin { 98334 x.RequireProgressBy = r.DecodeTime() 98335 } else if yyxt9 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt9 != nil { 98336 z.DecExtension(x.RequireProgressBy, yyxt9) 98337 } else if z.DecBinary() { 98338 z.DecBinaryUnmarshal(&x.RequireProgressBy) 98339 } else if !z.DecBinary() && z.IsJSONHandle() { 98340 z.DecJSONUnmarshal(&x.RequireProgressBy) 98341 } else { 98342 z.DecFallback(&x.RequireProgressBy, false) 98343 } 98344 } 98345 case "Promoted": 98346 if r.TryDecodeAsNil() { 98347 x.Promoted = false 98348 } else { 98349 x.Promoted = (bool)(r.DecodeBool()) 98350 } 98351 case "PlacedCanaries": 98352 if r.TryDecodeAsNil() { 98353 x.PlacedCanaries = nil 98354 } else { 98355 if false { 98356 } else { 98357 z.F.DecSliceStringX(&x.PlacedCanaries, d) 98358 } 98359 } 98360 case "DesiredCanaries": 98361 if r.TryDecodeAsNil() { 98362 x.DesiredCanaries = 0 98363 } else { 98364 x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98365 } 98366 case "DesiredTotal": 98367 if r.TryDecodeAsNil() { 98368 x.DesiredTotal = 0 98369 } else { 98370 x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98371 } 98372 case "PlacedAllocs": 98373 if r.TryDecodeAsNil() { 98374 x.PlacedAllocs = 0 98375 } else { 98376 x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98377 } 98378 case "HealthyAllocs": 98379 if r.TryDecodeAsNil() { 98380 x.HealthyAllocs = 0 98381 } else { 98382 x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98383 } 98384 case "UnhealthyAllocs": 98385 if r.TryDecodeAsNil() { 98386 x.UnhealthyAllocs = 0 98387 } else { 98388 x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98389 } 98390 default: 98391 z.DecStructFieldNotFound(-1, yys3) 98392 } // end switch yys3 98393 } // end for yyj3 98394 r.ReadMapEnd() 98395 } 98396 98397 func (x *DeploymentState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 98398 var h codecSelfer100 98399 z, r := codec1978.GenHelperDecoder(d) 98400 _, _, _ = h, z, r 98401 var yyj18 int 98402 var yyb18 bool 98403 var yyhl18 bool = l >= 0 98404 yyj18++ 98405 if yyhl18 { 98406 yyb18 = yyj18 > l 98407 } else { 98408 yyb18 = r.CheckBreak() 98409 } 98410 if yyb18 { 98411 r.ReadArrayEnd() 98412 return 98413 } 98414 r.ReadArrayElem() 98415 if r.TryDecodeAsNil() { 98416 x.AutoRevert = false 98417 } else { 98418 x.AutoRevert = (bool)(r.DecodeBool()) 98419 } 98420 yyj18++ 98421 if yyhl18 { 98422 yyb18 = yyj18 > l 98423 } else { 98424 yyb18 = r.CheckBreak() 98425 } 98426 if yyb18 { 98427 r.ReadArrayEnd() 98428 return 98429 } 98430 r.ReadArrayElem() 98431 if r.TryDecodeAsNil() { 98432 x.AutoPromote = false 98433 } else { 98434 x.AutoPromote = (bool)(r.DecodeBool()) 98435 } 98436 yyj18++ 98437 if yyhl18 { 98438 yyb18 = yyj18 > l 98439 } else { 98440 yyb18 = r.CheckBreak() 98441 } 98442 if yyb18 { 98443 r.ReadArrayEnd() 98444 return 98445 } 98446 r.ReadArrayElem() 98447 if r.TryDecodeAsNil() { 98448 x.ProgressDeadline = 0 98449 } else { 98450 if false { 98451 } else if yyxt22 := z.Extension(z.I2Rtid(x.ProgressDeadline)); yyxt22 != nil { 98452 z.DecExtension(x.ProgressDeadline, yyxt22) 98453 } else { 98454 x.ProgressDeadline = (time.Duration)(r.DecodeInt64()) 98455 } 98456 } 98457 yyj18++ 98458 if yyhl18 { 98459 yyb18 = yyj18 > l 98460 } else { 98461 yyb18 = r.CheckBreak() 98462 } 98463 if yyb18 { 98464 r.ReadArrayEnd() 98465 return 98466 } 98467 r.ReadArrayElem() 98468 if r.TryDecodeAsNil() { 98469 x.RequireProgressBy = time.Time{} 98470 } else { 98471 if false { 98472 } else if !z.DecBasicHandle().TimeNotBuiltin { 98473 x.RequireProgressBy = r.DecodeTime() 98474 } else if yyxt24 := z.Extension(z.I2Rtid(x.RequireProgressBy)); yyxt24 != nil { 98475 z.DecExtension(x.RequireProgressBy, yyxt24) 98476 } else if z.DecBinary() { 98477 z.DecBinaryUnmarshal(&x.RequireProgressBy) 98478 } else if !z.DecBinary() && z.IsJSONHandle() { 98479 z.DecJSONUnmarshal(&x.RequireProgressBy) 98480 } else { 98481 z.DecFallback(&x.RequireProgressBy, false) 98482 } 98483 } 98484 yyj18++ 98485 if yyhl18 { 98486 yyb18 = yyj18 > l 98487 } else { 98488 yyb18 = r.CheckBreak() 98489 } 98490 if yyb18 { 98491 r.ReadArrayEnd() 98492 return 98493 } 98494 r.ReadArrayElem() 98495 if r.TryDecodeAsNil() { 98496 x.Promoted = false 98497 } else { 98498 x.Promoted = (bool)(r.DecodeBool()) 98499 } 98500 yyj18++ 98501 if yyhl18 { 98502 yyb18 = yyj18 > l 98503 } else { 98504 yyb18 = r.CheckBreak() 98505 } 98506 if yyb18 { 98507 r.ReadArrayEnd() 98508 return 98509 } 98510 r.ReadArrayElem() 98511 if r.TryDecodeAsNil() { 98512 x.PlacedCanaries = nil 98513 } else { 98514 if false { 98515 } else { 98516 z.F.DecSliceStringX(&x.PlacedCanaries, d) 98517 } 98518 } 98519 yyj18++ 98520 if yyhl18 { 98521 yyb18 = yyj18 > l 98522 } else { 98523 yyb18 = r.CheckBreak() 98524 } 98525 if yyb18 { 98526 r.ReadArrayEnd() 98527 return 98528 } 98529 r.ReadArrayElem() 98530 if r.TryDecodeAsNil() { 98531 x.DesiredCanaries = 0 98532 } else { 98533 x.DesiredCanaries = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98534 } 98535 yyj18++ 98536 if yyhl18 { 98537 yyb18 = yyj18 > l 98538 } else { 98539 yyb18 = r.CheckBreak() 98540 } 98541 if yyb18 { 98542 r.ReadArrayEnd() 98543 return 98544 } 98545 r.ReadArrayElem() 98546 if r.TryDecodeAsNil() { 98547 x.DesiredTotal = 0 98548 } else { 98549 x.DesiredTotal = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98550 } 98551 yyj18++ 98552 if yyhl18 { 98553 yyb18 = yyj18 > l 98554 } else { 98555 yyb18 = r.CheckBreak() 98556 } 98557 if yyb18 { 98558 r.ReadArrayEnd() 98559 return 98560 } 98561 r.ReadArrayElem() 98562 if r.TryDecodeAsNil() { 98563 x.PlacedAllocs = 0 98564 } else { 98565 x.PlacedAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98566 } 98567 yyj18++ 98568 if yyhl18 { 98569 yyb18 = yyj18 > l 98570 } else { 98571 yyb18 = r.CheckBreak() 98572 } 98573 if yyb18 { 98574 r.ReadArrayEnd() 98575 return 98576 } 98577 r.ReadArrayElem() 98578 if r.TryDecodeAsNil() { 98579 x.HealthyAllocs = 0 98580 } else { 98581 x.HealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98582 } 98583 yyj18++ 98584 if yyhl18 { 98585 yyb18 = yyj18 > l 98586 } else { 98587 yyb18 = r.CheckBreak() 98588 } 98589 if yyb18 { 98590 r.ReadArrayEnd() 98591 return 98592 } 98593 r.ReadArrayElem() 98594 if r.TryDecodeAsNil() { 98595 x.UnhealthyAllocs = 0 98596 } else { 98597 x.UnhealthyAllocs = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 98598 } 98599 for { 98600 yyj18++ 98601 if yyhl18 { 98602 yyb18 = yyj18 > l 98603 } else { 98604 yyb18 = r.CheckBreak() 98605 } 98606 if yyb18 { 98607 break 98608 } 98609 r.ReadArrayElem() 98610 z.DecStructFieldNotFound(yyj18-1, "") 98611 } 98612 r.ReadArrayEnd() 98613 } 98614 98615 func (x *DeploymentStatusUpdate) CodecEncodeSelf(e *codec1978.Encoder) { 98616 var h codecSelfer100 98617 z, r := codec1978.GenHelperEncoder(e) 98618 _, _, _ = h, z, r 98619 if x == nil { 98620 r.EncodeNil() 98621 } else { 98622 if false { 98623 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98624 z.EncExtension(x, yyxt1) 98625 } else { 98626 yysep2 := !z.EncBinary() 98627 yy2arr2 := z.EncBasicHandle().StructToArray 98628 _, _ = yysep2, yy2arr2 98629 const yyr2 bool = false // struct tag has 'toArray' 98630 if yyr2 || yy2arr2 { 98631 r.WriteArrayStart(3) 98632 } else { 98633 r.WriteMapStart(3) 98634 } 98635 if yyr2 || yy2arr2 { 98636 r.WriteArrayElem() 98637 if false { 98638 } else { 98639 if z.EncBasicHandle().StringToRaw { 98640 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 98641 } else { 98642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 98643 } 98644 } 98645 } else { 98646 r.WriteMapElemKey() 98647 if z.IsJSONHandle() { 98648 z.WriteStr("\"DeploymentID\"") 98649 } else { 98650 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 98651 } 98652 r.WriteMapElemValue() 98653 if false { 98654 } else { 98655 if z.EncBasicHandle().StringToRaw { 98656 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 98657 } else { 98658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 98659 } 98660 } 98661 } 98662 if yyr2 || yy2arr2 { 98663 r.WriteArrayElem() 98664 if false { 98665 } else { 98666 if z.EncBasicHandle().StringToRaw { 98667 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 98668 } else { 98669 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 98670 } 98671 } 98672 } else { 98673 r.WriteMapElemKey() 98674 if z.IsJSONHandle() { 98675 z.WriteStr("\"Status\"") 98676 } else { 98677 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 98678 } 98679 r.WriteMapElemValue() 98680 if false { 98681 } else { 98682 if z.EncBasicHandle().StringToRaw { 98683 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 98684 } else { 98685 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 98686 } 98687 } 98688 } 98689 if yyr2 || yy2arr2 { 98690 r.WriteArrayElem() 98691 if false { 98692 } else { 98693 if z.EncBasicHandle().StringToRaw { 98694 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 98695 } else { 98696 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 98697 } 98698 } 98699 } else { 98700 r.WriteMapElemKey() 98701 if z.IsJSONHandle() { 98702 z.WriteStr("\"StatusDescription\"") 98703 } else { 98704 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 98705 } 98706 r.WriteMapElemValue() 98707 if false { 98708 } else { 98709 if z.EncBasicHandle().StringToRaw { 98710 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 98711 } else { 98712 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 98713 } 98714 } 98715 } 98716 if yyr2 || yy2arr2 { 98717 r.WriteArrayEnd() 98718 } else { 98719 r.WriteMapEnd() 98720 } 98721 } 98722 } 98723 } 98724 98725 func (x *DeploymentStatusUpdate) CodecDecodeSelf(d *codec1978.Decoder) { 98726 var h codecSelfer100 98727 z, r := codec1978.GenHelperDecoder(d) 98728 _, _, _ = h, z, r 98729 if false { 98730 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98731 z.DecExtension(x, yyxt1) 98732 } else { 98733 yyct2 := r.ContainerType() 98734 if yyct2 == codecSelferValueTypeMap100 { 98735 yyl2 := r.ReadMapStart() 98736 if yyl2 == 0 { 98737 r.ReadMapEnd() 98738 } else { 98739 x.codecDecodeSelfFromMap(yyl2, d) 98740 } 98741 } else if yyct2 == codecSelferValueTypeArray100 { 98742 yyl2 := r.ReadArrayStart() 98743 if yyl2 == 0 { 98744 r.ReadArrayEnd() 98745 } else { 98746 x.codecDecodeSelfFromArray(yyl2, d) 98747 } 98748 } else { 98749 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 98750 } 98751 } 98752 } 98753 98754 func (x *DeploymentStatusUpdate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 98755 var h codecSelfer100 98756 z, r := codec1978.GenHelperDecoder(d) 98757 _, _, _ = h, z, r 98758 var yyhl3 bool = l >= 0 98759 for yyj3 := 0; ; yyj3++ { 98760 if yyhl3 { 98761 if yyj3 >= l { 98762 break 98763 } 98764 } else { 98765 if r.CheckBreak() { 98766 break 98767 } 98768 } 98769 r.ReadMapElemKey() 98770 yys3 := z.StringView(r.DecodeStringAsBytes()) 98771 r.ReadMapElemValue() 98772 switch yys3 { 98773 case "DeploymentID": 98774 if r.TryDecodeAsNil() { 98775 x.DeploymentID = "" 98776 } else { 98777 x.DeploymentID = (string)(r.DecodeString()) 98778 } 98779 case "Status": 98780 if r.TryDecodeAsNil() { 98781 x.Status = "" 98782 } else { 98783 x.Status = (string)(r.DecodeString()) 98784 } 98785 case "StatusDescription": 98786 if r.TryDecodeAsNil() { 98787 x.StatusDescription = "" 98788 } else { 98789 x.StatusDescription = (string)(r.DecodeString()) 98790 } 98791 default: 98792 z.DecStructFieldNotFound(-1, yys3) 98793 } // end switch yys3 98794 } // end for yyj3 98795 r.ReadMapEnd() 98796 } 98797 98798 func (x *DeploymentStatusUpdate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 98799 var h codecSelfer100 98800 z, r := codec1978.GenHelperDecoder(d) 98801 _, _, _ = h, z, r 98802 var yyj7 int 98803 var yyb7 bool 98804 var yyhl7 bool = l >= 0 98805 yyj7++ 98806 if yyhl7 { 98807 yyb7 = yyj7 > l 98808 } else { 98809 yyb7 = r.CheckBreak() 98810 } 98811 if yyb7 { 98812 r.ReadArrayEnd() 98813 return 98814 } 98815 r.ReadArrayElem() 98816 if r.TryDecodeAsNil() { 98817 x.DeploymentID = "" 98818 } else { 98819 x.DeploymentID = (string)(r.DecodeString()) 98820 } 98821 yyj7++ 98822 if yyhl7 { 98823 yyb7 = yyj7 > l 98824 } else { 98825 yyb7 = r.CheckBreak() 98826 } 98827 if yyb7 { 98828 r.ReadArrayEnd() 98829 return 98830 } 98831 r.ReadArrayElem() 98832 if r.TryDecodeAsNil() { 98833 x.Status = "" 98834 } else { 98835 x.Status = (string)(r.DecodeString()) 98836 } 98837 yyj7++ 98838 if yyhl7 { 98839 yyb7 = yyj7 > l 98840 } else { 98841 yyb7 = r.CheckBreak() 98842 } 98843 if yyb7 { 98844 r.ReadArrayEnd() 98845 return 98846 } 98847 r.ReadArrayElem() 98848 if r.TryDecodeAsNil() { 98849 x.StatusDescription = "" 98850 } else { 98851 x.StatusDescription = (string)(r.DecodeString()) 98852 } 98853 for { 98854 yyj7++ 98855 if yyhl7 { 98856 yyb7 = yyj7 > l 98857 } else { 98858 yyb7 = r.CheckBreak() 98859 } 98860 if yyb7 { 98861 break 98862 } 98863 r.ReadArrayElem() 98864 z.DecStructFieldNotFound(yyj7-1, "") 98865 } 98866 r.ReadArrayEnd() 98867 } 98868 98869 func (x *RescheduleTracker) CodecEncodeSelf(e *codec1978.Encoder) { 98870 var h codecSelfer100 98871 z, r := codec1978.GenHelperEncoder(e) 98872 _, _, _ = h, z, r 98873 if x == nil { 98874 r.EncodeNil() 98875 } else { 98876 if false { 98877 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98878 z.EncExtension(x, yyxt1) 98879 } else { 98880 yysep2 := !z.EncBinary() 98881 yy2arr2 := z.EncBasicHandle().StructToArray 98882 _, _ = yysep2, yy2arr2 98883 const yyr2 bool = false // struct tag has 'toArray' 98884 if yyr2 || yy2arr2 { 98885 r.WriteArrayStart(1) 98886 } else { 98887 r.WriteMapStart(1) 98888 } 98889 if yyr2 || yy2arr2 { 98890 r.WriteArrayElem() 98891 if x.Events == nil { 98892 r.EncodeNil() 98893 } else { 98894 if false { 98895 } else { 98896 h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) 98897 } 98898 } 98899 } else { 98900 r.WriteMapElemKey() 98901 if z.IsJSONHandle() { 98902 z.WriteStr("\"Events\"") 98903 } else { 98904 r.EncodeStringEnc(codecSelferCcUTF8100, `Events`) 98905 } 98906 r.WriteMapElemValue() 98907 if x.Events == nil { 98908 r.EncodeNil() 98909 } else { 98910 if false { 98911 } else { 98912 h.encSlicePtrtoRescheduleEvent(([]*RescheduleEvent)(x.Events), e) 98913 } 98914 } 98915 } 98916 if yyr2 || yy2arr2 { 98917 r.WriteArrayEnd() 98918 } else { 98919 r.WriteMapEnd() 98920 } 98921 } 98922 } 98923 } 98924 98925 func (x *RescheduleTracker) CodecDecodeSelf(d *codec1978.Decoder) { 98926 var h codecSelfer100 98927 z, r := codec1978.GenHelperDecoder(d) 98928 _, _, _ = h, z, r 98929 if false { 98930 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 98931 z.DecExtension(x, yyxt1) 98932 } else { 98933 yyct2 := r.ContainerType() 98934 if yyct2 == codecSelferValueTypeMap100 { 98935 yyl2 := r.ReadMapStart() 98936 if yyl2 == 0 { 98937 r.ReadMapEnd() 98938 } else { 98939 x.codecDecodeSelfFromMap(yyl2, d) 98940 } 98941 } else if yyct2 == codecSelferValueTypeArray100 { 98942 yyl2 := r.ReadArrayStart() 98943 if yyl2 == 0 { 98944 r.ReadArrayEnd() 98945 } else { 98946 x.codecDecodeSelfFromArray(yyl2, d) 98947 } 98948 } else { 98949 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 98950 } 98951 } 98952 } 98953 98954 func (x *RescheduleTracker) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 98955 var h codecSelfer100 98956 z, r := codec1978.GenHelperDecoder(d) 98957 _, _, _ = h, z, r 98958 var yyhl3 bool = l >= 0 98959 for yyj3 := 0; ; yyj3++ { 98960 if yyhl3 { 98961 if yyj3 >= l { 98962 break 98963 } 98964 } else { 98965 if r.CheckBreak() { 98966 break 98967 } 98968 } 98969 r.ReadMapElemKey() 98970 yys3 := z.StringView(r.DecodeStringAsBytes()) 98971 r.ReadMapElemValue() 98972 switch yys3 { 98973 case "Events": 98974 if r.TryDecodeAsNil() { 98975 x.Events = nil 98976 } else { 98977 if false { 98978 } else { 98979 h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) 98980 } 98981 } 98982 default: 98983 z.DecStructFieldNotFound(-1, yys3) 98984 } // end switch yys3 98985 } // end for yyj3 98986 r.ReadMapEnd() 98987 } 98988 98989 func (x *RescheduleTracker) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 98990 var h codecSelfer100 98991 z, r := codec1978.GenHelperDecoder(d) 98992 _, _, _ = h, z, r 98993 var yyj6 int 98994 var yyb6 bool 98995 var yyhl6 bool = l >= 0 98996 yyj6++ 98997 if yyhl6 { 98998 yyb6 = yyj6 > l 98999 } else { 99000 yyb6 = r.CheckBreak() 99001 } 99002 if yyb6 { 99003 r.ReadArrayEnd() 99004 return 99005 } 99006 r.ReadArrayElem() 99007 if r.TryDecodeAsNil() { 99008 x.Events = nil 99009 } else { 99010 if false { 99011 } else { 99012 h.decSlicePtrtoRescheduleEvent((*[]*RescheduleEvent)(&x.Events), d) 99013 } 99014 } 99015 for { 99016 yyj6++ 99017 if yyhl6 { 99018 yyb6 = yyj6 > l 99019 } else { 99020 yyb6 = r.CheckBreak() 99021 } 99022 if yyb6 { 99023 break 99024 } 99025 r.ReadArrayElem() 99026 z.DecStructFieldNotFound(yyj6-1, "") 99027 } 99028 r.ReadArrayEnd() 99029 } 99030 99031 func (x *RescheduleEvent) CodecEncodeSelf(e *codec1978.Encoder) { 99032 var h codecSelfer100 99033 z, r := codec1978.GenHelperEncoder(e) 99034 _, _, _ = h, z, r 99035 if x == nil { 99036 r.EncodeNil() 99037 } else { 99038 if false { 99039 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99040 z.EncExtension(x, yyxt1) 99041 } else { 99042 yysep2 := !z.EncBinary() 99043 yy2arr2 := z.EncBasicHandle().StructToArray 99044 _, _ = yysep2, yy2arr2 99045 const yyr2 bool = false // struct tag has 'toArray' 99046 if yyr2 || yy2arr2 { 99047 r.WriteArrayStart(4) 99048 } else { 99049 r.WriteMapStart(4) 99050 } 99051 if yyr2 || yy2arr2 { 99052 r.WriteArrayElem() 99053 if false { 99054 } else { 99055 r.EncodeInt(int64(x.RescheduleTime)) 99056 } 99057 } else { 99058 r.WriteMapElemKey() 99059 if z.IsJSONHandle() { 99060 z.WriteStr("\"RescheduleTime\"") 99061 } else { 99062 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTime`) 99063 } 99064 r.WriteMapElemValue() 99065 if false { 99066 } else { 99067 r.EncodeInt(int64(x.RescheduleTime)) 99068 } 99069 } 99070 if yyr2 || yy2arr2 { 99071 r.WriteArrayElem() 99072 if false { 99073 } else { 99074 if z.EncBasicHandle().StringToRaw { 99075 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) 99076 } else { 99077 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) 99078 } 99079 } 99080 } else { 99081 r.WriteMapElemKey() 99082 if z.IsJSONHandle() { 99083 z.WriteStr("\"PrevAllocID\"") 99084 } else { 99085 r.EncodeStringEnc(codecSelferCcUTF8100, `PrevAllocID`) 99086 } 99087 r.WriteMapElemValue() 99088 if false { 99089 } else { 99090 if z.EncBasicHandle().StringToRaw { 99091 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevAllocID))) 99092 } else { 99093 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevAllocID)) 99094 } 99095 } 99096 } 99097 if yyr2 || yy2arr2 { 99098 r.WriteArrayElem() 99099 if false { 99100 } else { 99101 if z.EncBasicHandle().StringToRaw { 99102 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) 99103 } else { 99104 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) 99105 } 99106 } 99107 } else { 99108 r.WriteMapElemKey() 99109 if z.IsJSONHandle() { 99110 z.WriteStr("\"PrevNodeID\"") 99111 } else { 99112 r.EncodeStringEnc(codecSelferCcUTF8100, `PrevNodeID`) 99113 } 99114 r.WriteMapElemValue() 99115 if false { 99116 } else { 99117 if z.EncBasicHandle().StringToRaw { 99118 r.EncodeStringBytesRaw(z.BytesView(string(x.PrevNodeID))) 99119 } else { 99120 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PrevNodeID)) 99121 } 99122 } 99123 } 99124 if yyr2 || yy2arr2 { 99125 r.WriteArrayElem() 99126 if false { 99127 } else if yyxt13 := z.Extension(z.I2Rtid(x.Delay)); yyxt13 != nil { 99128 z.EncExtension(x.Delay, yyxt13) 99129 } else { 99130 r.EncodeInt(int64(x.Delay)) 99131 } 99132 } else { 99133 r.WriteMapElemKey() 99134 if z.IsJSONHandle() { 99135 z.WriteStr("\"Delay\"") 99136 } else { 99137 r.EncodeStringEnc(codecSelferCcUTF8100, `Delay`) 99138 } 99139 r.WriteMapElemValue() 99140 if false { 99141 } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { 99142 z.EncExtension(x.Delay, yyxt14) 99143 } else { 99144 r.EncodeInt(int64(x.Delay)) 99145 } 99146 } 99147 if yyr2 || yy2arr2 { 99148 r.WriteArrayEnd() 99149 } else { 99150 r.WriteMapEnd() 99151 } 99152 } 99153 } 99154 } 99155 99156 func (x *RescheduleEvent) CodecDecodeSelf(d *codec1978.Decoder) { 99157 var h codecSelfer100 99158 z, r := codec1978.GenHelperDecoder(d) 99159 _, _, _ = h, z, r 99160 if false { 99161 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99162 z.DecExtension(x, yyxt1) 99163 } else { 99164 yyct2 := r.ContainerType() 99165 if yyct2 == codecSelferValueTypeMap100 { 99166 yyl2 := r.ReadMapStart() 99167 if yyl2 == 0 { 99168 r.ReadMapEnd() 99169 } else { 99170 x.codecDecodeSelfFromMap(yyl2, d) 99171 } 99172 } else if yyct2 == codecSelferValueTypeArray100 { 99173 yyl2 := r.ReadArrayStart() 99174 if yyl2 == 0 { 99175 r.ReadArrayEnd() 99176 } else { 99177 x.codecDecodeSelfFromArray(yyl2, d) 99178 } 99179 } else { 99180 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 99181 } 99182 } 99183 } 99184 99185 func (x *RescheduleEvent) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 99186 var h codecSelfer100 99187 z, r := codec1978.GenHelperDecoder(d) 99188 _, _, _ = h, z, r 99189 var yyhl3 bool = l >= 0 99190 for yyj3 := 0; ; yyj3++ { 99191 if yyhl3 { 99192 if yyj3 >= l { 99193 break 99194 } 99195 } else { 99196 if r.CheckBreak() { 99197 break 99198 } 99199 } 99200 r.ReadMapElemKey() 99201 yys3 := z.StringView(r.DecodeStringAsBytes()) 99202 r.ReadMapElemValue() 99203 switch yys3 { 99204 case "RescheduleTime": 99205 if r.TryDecodeAsNil() { 99206 x.RescheduleTime = 0 99207 } else { 99208 x.RescheduleTime = (int64)(r.DecodeInt64()) 99209 } 99210 case "PrevAllocID": 99211 if r.TryDecodeAsNil() { 99212 x.PrevAllocID = "" 99213 } else { 99214 x.PrevAllocID = (string)(r.DecodeString()) 99215 } 99216 case "PrevNodeID": 99217 if r.TryDecodeAsNil() { 99218 x.PrevNodeID = "" 99219 } else { 99220 x.PrevNodeID = (string)(r.DecodeString()) 99221 } 99222 case "Delay": 99223 if r.TryDecodeAsNil() { 99224 x.Delay = 0 99225 } else { 99226 if false { 99227 } else if yyxt8 := z.Extension(z.I2Rtid(x.Delay)); yyxt8 != nil { 99228 z.DecExtension(x.Delay, yyxt8) 99229 } else { 99230 x.Delay = (time.Duration)(r.DecodeInt64()) 99231 } 99232 } 99233 default: 99234 z.DecStructFieldNotFound(-1, yys3) 99235 } // end switch yys3 99236 } // end for yyj3 99237 r.ReadMapEnd() 99238 } 99239 99240 func (x *RescheduleEvent) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 99241 var h codecSelfer100 99242 z, r := codec1978.GenHelperDecoder(d) 99243 _, _, _ = h, z, r 99244 var yyj9 int 99245 var yyb9 bool 99246 var yyhl9 bool = l >= 0 99247 yyj9++ 99248 if yyhl9 { 99249 yyb9 = yyj9 > l 99250 } else { 99251 yyb9 = r.CheckBreak() 99252 } 99253 if yyb9 { 99254 r.ReadArrayEnd() 99255 return 99256 } 99257 r.ReadArrayElem() 99258 if r.TryDecodeAsNil() { 99259 x.RescheduleTime = 0 99260 } else { 99261 x.RescheduleTime = (int64)(r.DecodeInt64()) 99262 } 99263 yyj9++ 99264 if yyhl9 { 99265 yyb9 = yyj9 > l 99266 } else { 99267 yyb9 = r.CheckBreak() 99268 } 99269 if yyb9 { 99270 r.ReadArrayEnd() 99271 return 99272 } 99273 r.ReadArrayElem() 99274 if r.TryDecodeAsNil() { 99275 x.PrevAllocID = "" 99276 } else { 99277 x.PrevAllocID = (string)(r.DecodeString()) 99278 } 99279 yyj9++ 99280 if yyhl9 { 99281 yyb9 = yyj9 > l 99282 } else { 99283 yyb9 = r.CheckBreak() 99284 } 99285 if yyb9 { 99286 r.ReadArrayEnd() 99287 return 99288 } 99289 r.ReadArrayElem() 99290 if r.TryDecodeAsNil() { 99291 x.PrevNodeID = "" 99292 } else { 99293 x.PrevNodeID = (string)(r.DecodeString()) 99294 } 99295 yyj9++ 99296 if yyhl9 { 99297 yyb9 = yyj9 > l 99298 } else { 99299 yyb9 = r.CheckBreak() 99300 } 99301 if yyb9 { 99302 r.ReadArrayEnd() 99303 return 99304 } 99305 r.ReadArrayElem() 99306 if r.TryDecodeAsNil() { 99307 x.Delay = 0 99308 } else { 99309 if false { 99310 } else if yyxt14 := z.Extension(z.I2Rtid(x.Delay)); yyxt14 != nil { 99311 z.DecExtension(x.Delay, yyxt14) 99312 } else { 99313 x.Delay = (time.Duration)(r.DecodeInt64()) 99314 } 99315 } 99316 for { 99317 yyj9++ 99318 if yyhl9 { 99319 yyb9 = yyj9 > l 99320 } else { 99321 yyb9 = r.CheckBreak() 99322 } 99323 if yyb9 { 99324 break 99325 } 99326 r.ReadArrayElem() 99327 z.DecStructFieldNotFound(yyj9-1, "") 99328 } 99329 r.ReadArrayEnd() 99330 } 99331 99332 func (x *DesiredTransition) CodecEncodeSelf(e *codec1978.Encoder) { 99333 var h codecSelfer100 99334 z, r := codec1978.GenHelperEncoder(e) 99335 _, _, _ = h, z, r 99336 if x == nil { 99337 r.EncodeNil() 99338 } else { 99339 if false { 99340 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99341 z.EncExtension(x, yyxt1) 99342 } else { 99343 yysep2 := !z.EncBinary() 99344 yy2arr2 := z.EncBasicHandle().StructToArray 99345 _, _ = yysep2, yy2arr2 99346 const yyr2 bool = false // struct tag has 'toArray' 99347 if yyr2 || yy2arr2 { 99348 r.WriteArrayStart(3) 99349 } else { 99350 r.WriteMapStart(3) 99351 } 99352 var yyn3 bool 99353 if x.Migrate == nil { 99354 yyn3 = true 99355 goto LABEL3 99356 } 99357 LABEL3: 99358 if yyr2 || yy2arr2 { 99359 if yyn3 { 99360 r.WriteArrayElem() 99361 r.EncodeNil() 99362 } else { 99363 r.WriteArrayElem() 99364 if x.Migrate == nil { 99365 r.EncodeNil() 99366 } else { 99367 yy4 := *x.Migrate 99368 if false { 99369 } else { 99370 r.EncodeBool(bool(yy4)) 99371 } 99372 } 99373 } 99374 } else { 99375 r.WriteMapElemKey() 99376 if z.IsJSONHandle() { 99377 z.WriteStr("\"Migrate\"") 99378 } else { 99379 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 99380 } 99381 r.WriteMapElemValue() 99382 if yyn3 { 99383 r.EncodeNil() 99384 } else { 99385 if x.Migrate == nil { 99386 r.EncodeNil() 99387 } else { 99388 yy6 := *x.Migrate 99389 if false { 99390 } else { 99391 r.EncodeBool(bool(yy6)) 99392 } 99393 } 99394 } 99395 } 99396 var yyn8 bool 99397 if x.Reschedule == nil { 99398 yyn8 = true 99399 goto LABEL8 99400 } 99401 LABEL8: 99402 if yyr2 || yy2arr2 { 99403 if yyn8 { 99404 r.WriteArrayElem() 99405 r.EncodeNil() 99406 } else { 99407 r.WriteArrayElem() 99408 if x.Reschedule == nil { 99409 r.EncodeNil() 99410 } else { 99411 yy9 := *x.Reschedule 99412 if false { 99413 } else { 99414 r.EncodeBool(bool(yy9)) 99415 } 99416 } 99417 } 99418 } else { 99419 r.WriteMapElemKey() 99420 if z.IsJSONHandle() { 99421 z.WriteStr("\"Reschedule\"") 99422 } else { 99423 r.EncodeStringEnc(codecSelferCcUTF8100, `Reschedule`) 99424 } 99425 r.WriteMapElemValue() 99426 if yyn8 { 99427 r.EncodeNil() 99428 } else { 99429 if x.Reschedule == nil { 99430 r.EncodeNil() 99431 } else { 99432 yy11 := *x.Reschedule 99433 if false { 99434 } else { 99435 r.EncodeBool(bool(yy11)) 99436 } 99437 } 99438 } 99439 } 99440 var yyn13 bool 99441 if x.ForceReschedule == nil { 99442 yyn13 = true 99443 goto LABEL13 99444 } 99445 LABEL13: 99446 if yyr2 || yy2arr2 { 99447 if yyn13 { 99448 r.WriteArrayElem() 99449 r.EncodeNil() 99450 } else { 99451 r.WriteArrayElem() 99452 if x.ForceReschedule == nil { 99453 r.EncodeNil() 99454 } else { 99455 yy14 := *x.ForceReschedule 99456 if false { 99457 } else { 99458 r.EncodeBool(bool(yy14)) 99459 } 99460 } 99461 } 99462 } else { 99463 r.WriteMapElemKey() 99464 if z.IsJSONHandle() { 99465 z.WriteStr("\"ForceReschedule\"") 99466 } else { 99467 r.EncodeStringEnc(codecSelferCcUTF8100, `ForceReschedule`) 99468 } 99469 r.WriteMapElemValue() 99470 if yyn13 { 99471 r.EncodeNil() 99472 } else { 99473 if x.ForceReschedule == nil { 99474 r.EncodeNil() 99475 } else { 99476 yy16 := *x.ForceReschedule 99477 if false { 99478 } else { 99479 r.EncodeBool(bool(yy16)) 99480 } 99481 } 99482 } 99483 } 99484 if yyr2 || yy2arr2 { 99485 r.WriteArrayEnd() 99486 } else { 99487 r.WriteMapEnd() 99488 } 99489 } 99490 } 99491 } 99492 99493 func (x *DesiredTransition) CodecDecodeSelf(d *codec1978.Decoder) { 99494 var h codecSelfer100 99495 z, r := codec1978.GenHelperDecoder(d) 99496 _, _, _ = h, z, r 99497 if false { 99498 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99499 z.DecExtension(x, yyxt1) 99500 } else { 99501 yyct2 := r.ContainerType() 99502 if yyct2 == codecSelferValueTypeMap100 { 99503 yyl2 := r.ReadMapStart() 99504 if yyl2 == 0 { 99505 r.ReadMapEnd() 99506 } else { 99507 x.codecDecodeSelfFromMap(yyl2, d) 99508 } 99509 } else if yyct2 == codecSelferValueTypeArray100 { 99510 yyl2 := r.ReadArrayStart() 99511 if yyl2 == 0 { 99512 r.ReadArrayEnd() 99513 } else { 99514 x.codecDecodeSelfFromArray(yyl2, d) 99515 } 99516 } else { 99517 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 99518 } 99519 } 99520 } 99521 99522 func (x *DesiredTransition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 99523 var h codecSelfer100 99524 z, r := codec1978.GenHelperDecoder(d) 99525 _, _, _ = h, z, r 99526 var yyhl3 bool = l >= 0 99527 for yyj3 := 0; ; yyj3++ { 99528 if yyhl3 { 99529 if yyj3 >= l { 99530 break 99531 } 99532 } else { 99533 if r.CheckBreak() { 99534 break 99535 } 99536 } 99537 r.ReadMapElemKey() 99538 yys3 := z.StringView(r.DecodeStringAsBytes()) 99539 r.ReadMapElemValue() 99540 switch yys3 { 99541 case "Migrate": 99542 if r.TryDecodeAsNil() { 99543 if true && x.Migrate != nil { 99544 x.Migrate = nil 99545 } 99546 } else { 99547 if x.Migrate == nil { 99548 x.Migrate = new(bool) 99549 } 99550 99551 if false { 99552 } else { 99553 *x.Migrate = (bool)(r.DecodeBool()) 99554 } 99555 } 99556 case "Reschedule": 99557 if r.TryDecodeAsNil() { 99558 if true && x.Reschedule != nil { 99559 x.Reschedule = nil 99560 } 99561 } else { 99562 if x.Reschedule == nil { 99563 x.Reschedule = new(bool) 99564 } 99565 99566 if false { 99567 } else { 99568 *x.Reschedule = (bool)(r.DecodeBool()) 99569 } 99570 } 99571 case "ForceReschedule": 99572 if r.TryDecodeAsNil() { 99573 if true && x.ForceReschedule != nil { 99574 x.ForceReschedule = nil 99575 } 99576 } else { 99577 if x.ForceReschedule == nil { 99578 x.ForceReschedule = new(bool) 99579 } 99580 99581 if false { 99582 } else { 99583 *x.ForceReschedule = (bool)(r.DecodeBool()) 99584 } 99585 } 99586 default: 99587 z.DecStructFieldNotFound(-1, yys3) 99588 } // end switch yys3 99589 } // end for yyj3 99590 r.ReadMapEnd() 99591 } 99592 99593 func (x *DesiredTransition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 99594 var h codecSelfer100 99595 z, r := codec1978.GenHelperDecoder(d) 99596 _, _, _ = h, z, r 99597 var yyj10 int 99598 var yyb10 bool 99599 var yyhl10 bool = l >= 0 99600 yyj10++ 99601 if yyhl10 { 99602 yyb10 = yyj10 > l 99603 } else { 99604 yyb10 = r.CheckBreak() 99605 } 99606 if yyb10 { 99607 r.ReadArrayEnd() 99608 return 99609 } 99610 r.ReadArrayElem() 99611 if r.TryDecodeAsNil() { 99612 if true && x.Migrate != nil { 99613 x.Migrate = nil 99614 } 99615 } else { 99616 if x.Migrate == nil { 99617 x.Migrate = new(bool) 99618 } 99619 99620 if false { 99621 } else { 99622 *x.Migrate = (bool)(r.DecodeBool()) 99623 } 99624 } 99625 yyj10++ 99626 if yyhl10 { 99627 yyb10 = yyj10 > l 99628 } else { 99629 yyb10 = r.CheckBreak() 99630 } 99631 if yyb10 { 99632 r.ReadArrayEnd() 99633 return 99634 } 99635 r.ReadArrayElem() 99636 if r.TryDecodeAsNil() { 99637 if true && x.Reschedule != nil { 99638 x.Reschedule = nil 99639 } 99640 } else { 99641 if x.Reschedule == nil { 99642 x.Reschedule = new(bool) 99643 } 99644 99645 if false { 99646 } else { 99647 *x.Reschedule = (bool)(r.DecodeBool()) 99648 } 99649 } 99650 yyj10++ 99651 if yyhl10 { 99652 yyb10 = yyj10 > l 99653 } else { 99654 yyb10 = r.CheckBreak() 99655 } 99656 if yyb10 { 99657 r.ReadArrayEnd() 99658 return 99659 } 99660 r.ReadArrayElem() 99661 if r.TryDecodeAsNil() { 99662 if true && x.ForceReschedule != nil { 99663 x.ForceReschedule = nil 99664 } 99665 } else { 99666 if x.ForceReschedule == nil { 99667 x.ForceReschedule = new(bool) 99668 } 99669 99670 if false { 99671 } else { 99672 *x.ForceReschedule = (bool)(r.DecodeBool()) 99673 } 99674 } 99675 for { 99676 yyj10++ 99677 if yyhl10 { 99678 yyb10 = yyj10 > l 99679 } else { 99680 yyb10 = r.CheckBreak() 99681 } 99682 if yyb10 { 99683 break 99684 } 99685 r.ReadArrayElem() 99686 z.DecStructFieldNotFound(yyj10-1, "") 99687 } 99688 r.ReadArrayEnd() 99689 } 99690 99691 func (x *Allocation) CodecEncodeSelf(e *codec1978.Encoder) { 99692 var h codecSelfer100 99693 z, r := codec1978.GenHelperEncoder(e) 99694 _, _, _ = h, z, r 99695 if x == nil { 99696 r.EncodeNil() 99697 } else { 99698 if false { 99699 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 99700 z.EncExtension(x, yyxt1) 99701 } else { 99702 yysep2 := !z.EncBinary() 99703 yy2arr2 := z.EncBasicHandle().StructToArray 99704 _, _ = yysep2, yy2arr2 99705 const yyr2 bool = false // struct tag has 'toArray' 99706 var yyq2 = [34]bool{ // should field at this index be written? 99707 x.ID != "", // ID 99708 x.Namespace != "", // Namespace 99709 x.EvalID != "", // EvalID 99710 x.Name != "", // Name 99711 x.NodeID != "", // NodeID 99712 x.NodeName != "", // NodeName 99713 x.JobID != "", // JobID 99714 x.Job != nil, // Job 99715 x.TaskGroup != "", // TaskGroup 99716 x.Resources != nil, // Resources 99717 x.SharedResources != nil, // SharedResources 99718 len(x.TaskResources) != 0, // TaskResources 99719 x.AllocatedResources != nil, // AllocatedResources 99720 x.Metrics != nil, // Metrics 99721 x.DesiredStatus != "", // DesiredStatus 99722 x.DesiredDescription != "", // DesiredDescription 99723 x.DesiredTransition != DesiredTransition{}, // DesiredTransition 99724 x.ClientStatus != "", // ClientStatus 99725 x.ClientDescription != "", // ClientDescription 99726 len(x.TaskStates) != 0, // TaskStates 99727 len(x.AllocStates) != 0, // AllocStates 99728 x.PreviousAllocation != "", // PreviousAllocation 99729 x.NextAllocation != "", // NextAllocation 99730 x.DeploymentID != "", // DeploymentID 99731 x.DeploymentStatus != nil, // DeploymentStatus 99732 x.RescheduleTracker != nil, // RescheduleTracker 99733 x.FollowupEvalID != "", // FollowupEvalID 99734 len(x.PreemptedAllocations) != 0, // PreemptedAllocations 99735 x.PreemptedByAllocation != "", // PreemptedByAllocation 99736 x.CreateIndex != 0, // CreateIndex 99737 x.ModifyIndex != 0, // ModifyIndex 99738 x.AllocModifyIndex != 0, // AllocModifyIndex 99739 x.CreateTime != 0, // CreateTime 99740 x.ModifyTime != 0, // ModifyTime 99741 } 99742 _ = yyq2 99743 if yyr2 || yy2arr2 { 99744 r.WriteArrayStart(34) 99745 } else { 99746 var yynn2 int 99747 for _, b := range yyq2 { 99748 if b { 99749 yynn2++ 99750 } 99751 } 99752 r.WriteMapStart(yynn2) 99753 yynn2 = 0 99754 } 99755 if yyr2 || yy2arr2 { 99756 r.WriteArrayElem() 99757 if yyq2[0] { 99758 if false { 99759 } else { 99760 if z.EncBasicHandle().StringToRaw { 99761 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 99762 } else { 99763 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 99764 } 99765 } 99766 } else { 99767 if z.EncBasicHandle().StringToRaw { 99768 r.EncodeStringBytesRaw([]byte{}) 99769 } else { 99770 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99771 } 99772 } 99773 } else { 99774 if yyq2[0] { 99775 r.WriteMapElemKey() 99776 if z.IsJSONHandle() { 99777 z.WriteStr("\"ID\"") 99778 } else { 99779 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 99780 } 99781 r.WriteMapElemValue() 99782 if false { 99783 } else { 99784 if z.EncBasicHandle().StringToRaw { 99785 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 99786 } else { 99787 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 99788 } 99789 } 99790 } 99791 } 99792 if yyr2 || yy2arr2 { 99793 r.WriteArrayElem() 99794 if yyq2[1] { 99795 if false { 99796 } else { 99797 if z.EncBasicHandle().StringToRaw { 99798 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 99799 } else { 99800 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 99801 } 99802 } 99803 } else { 99804 if z.EncBasicHandle().StringToRaw { 99805 r.EncodeStringBytesRaw([]byte{}) 99806 } else { 99807 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99808 } 99809 } 99810 } else { 99811 if yyq2[1] { 99812 r.WriteMapElemKey() 99813 if z.IsJSONHandle() { 99814 z.WriteStr("\"Namespace\"") 99815 } else { 99816 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 99817 } 99818 r.WriteMapElemValue() 99819 if false { 99820 } else { 99821 if z.EncBasicHandle().StringToRaw { 99822 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 99823 } else { 99824 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 99825 } 99826 } 99827 } 99828 } 99829 if yyr2 || yy2arr2 { 99830 r.WriteArrayElem() 99831 if yyq2[2] { 99832 if false { 99833 } else { 99834 if z.EncBasicHandle().StringToRaw { 99835 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 99836 } else { 99837 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 99838 } 99839 } 99840 } else { 99841 if z.EncBasicHandle().StringToRaw { 99842 r.EncodeStringBytesRaw([]byte{}) 99843 } else { 99844 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99845 } 99846 } 99847 } else { 99848 if yyq2[2] { 99849 r.WriteMapElemKey() 99850 if z.IsJSONHandle() { 99851 z.WriteStr("\"EvalID\"") 99852 } else { 99853 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 99854 } 99855 r.WriteMapElemValue() 99856 if false { 99857 } else { 99858 if z.EncBasicHandle().StringToRaw { 99859 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 99860 } else { 99861 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 99862 } 99863 } 99864 } 99865 } 99866 if yyr2 || yy2arr2 { 99867 r.WriteArrayElem() 99868 if yyq2[3] { 99869 if false { 99870 } else { 99871 if z.EncBasicHandle().StringToRaw { 99872 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 99873 } else { 99874 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 99875 } 99876 } 99877 } else { 99878 if z.EncBasicHandle().StringToRaw { 99879 r.EncodeStringBytesRaw([]byte{}) 99880 } else { 99881 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99882 } 99883 } 99884 } else { 99885 if yyq2[3] { 99886 r.WriteMapElemKey() 99887 if z.IsJSONHandle() { 99888 z.WriteStr("\"Name\"") 99889 } else { 99890 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 99891 } 99892 r.WriteMapElemValue() 99893 if false { 99894 } else { 99895 if z.EncBasicHandle().StringToRaw { 99896 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 99897 } else { 99898 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 99899 } 99900 } 99901 } 99902 } 99903 if yyr2 || yy2arr2 { 99904 r.WriteArrayElem() 99905 if yyq2[4] { 99906 if false { 99907 } else { 99908 if z.EncBasicHandle().StringToRaw { 99909 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 99910 } else { 99911 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 99912 } 99913 } 99914 } else { 99915 if z.EncBasicHandle().StringToRaw { 99916 r.EncodeStringBytesRaw([]byte{}) 99917 } else { 99918 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99919 } 99920 } 99921 } else { 99922 if yyq2[4] { 99923 r.WriteMapElemKey() 99924 if z.IsJSONHandle() { 99925 z.WriteStr("\"NodeID\"") 99926 } else { 99927 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 99928 } 99929 r.WriteMapElemValue() 99930 if false { 99931 } else { 99932 if z.EncBasicHandle().StringToRaw { 99933 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 99934 } else { 99935 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 99936 } 99937 } 99938 } 99939 } 99940 if yyr2 || yy2arr2 { 99941 r.WriteArrayElem() 99942 if yyq2[5] { 99943 if false { 99944 } else { 99945 if z.EncBasicHandle().StringToRaw { 99946 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 99947 } else { 99948 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 99949 } 99950 } 99951 } else { 99952 if z.EncBasicHandle().StringToRaw { 99953 r.EncodeStringBytesRaw([]byte{}) 99954 } else { 99955 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99956 } 99957 } 99958 } else { 99959 if yyq2[5] { 99960 r.WriteMapElemKey() 99961 if z.IsJSONHandle() { 99962 z.WriteStr("\"NodeName\"") 99963 } else { 99964 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 99965 } 99966 r.WriteMapElemValue() 99967 if false { 99968 } else { 99969 if z.EncBasicHandle().StringToRaw { 99970 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 99971 } else { 99972 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 99973 } 99974 } 99975 } 99976 } 99977 if yyr2 || yy2arr2 { 99978 r.WriteArrayElem() 99979 if yyq2[6] { 99980 if false { 99981 } else { 99982 if z.EncBasicHandle().StringToRaw { 99983 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 99984 } else { 99985 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 99986 } 99987 } 99988 } else { 99989 if z.EncBasicHandle().StringToRaw { 99990 r.EncodeStringBytesRaw([]byte{}) 99991 } else { 99992 r.EncodeStringEnc(codecSelferCcUTF8100, "") 99993 } 99994 } 99995 } else { 99996 if yyq2[6] { 99997 r.WriteMapElemKey() 99998 if z.IsJSONHandle() { 99999 z.WriteStr("\"JobID\"") 100000 } else { 100001 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 100002 } 100003 r.WriteMapElemValue() 100004 if false { 100005 } else { 100006 if z.EncBasicHandle().StringToRaw { 100007 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 100008 } else { 100009 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 100010 } 100011 } 100012 } 100013 } 100014 var yyn24 bool 100015 if x.Job == nil { 100016 yyn24 = true 100017 goto LABEL24 100018 } 100019 LABEL24: 100020 if yyr2 || yy2arr2 { 100021 if yyn24 { 100022 r.WriteArrayElem() 100023 r.EncodeNil() 100024 } else { 100025 r.WriteArrayElem() 100026 if yyq2[7] { 100027 if x.Job == nil { 100028 r.EncodeNil() 100029 } else { 100030 x.Job.CodecEncodeSelf(e) 100031 } 100032 } else { 100033 r.EncodeNil() 100034 } 100035 } 100036 } else { 100037 if yyq2[7] { 100038 r.WriteMapElemKey() 100039 if z.IsJSONHandle() { 100040 z.WriteStr("\"Job\"") 100041 } else { 100042 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 100043 } 100044 r.WriteMapElemValue() 100045 if yyn24 { 100046 r.EncodeNil() 100047 } else { 100048 if x.Job == nil { 100049 r.EncodeNil() 100050 } else { 100051 x.Job.CodecEncodeSelf(e) 100052 } 100053 } 100054 } 100055 } 100056 if yyr2 || yy2arr2 { 100057 r.WriteArrayElem() 100058 if yyq2[8] { 100059 if false { 100060 } else { 100061 if z.EncBasicHandle().StringToRaw { 100062 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 100063 } else { 100064 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 100065 } 100066 } 100067 } else { 100068 if z.EncBasicHandle().StringToRaw { 100069 r.EncodeStringBytesRaw([]byte{}) 100070 } else { 100071 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100072 } 100073 } 100074 } else { 100075 if yyq2[8] { 100076 r.WriteMapElemKey() 100077 if z.IsJSONHandle() { 100078 z.WriteStr("\"TaskGroup\"") 100079 } else { 100080 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 100081 } 100082 r.WriteMapElemValue() 100083 if false { 100084 } else { 100085 if z.EncBasicHandle().StringToRaw { 100086 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 100087 } else { 100088 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 100089 } 100090 } 100091 } 100092 } 100093 var yyn30 bool 100094 if x.Resources == nil { 100095 yyn30 = true 100096 goto LABEL30 100097 } 100098 LABEL30: 100099 if yyr2 || yy2arr2 { 100100 if yyn30 { 100101 r.WriteArrayElem() 100102 r.EncodeNil() 100103 } else { 100104 r.WriteArrayElem() 100105 if yyq2[9] { 100106 if x.Resources == nil { 100107 r.EncodeNil() 100108 } else { 100109 x.Resources.CodecEncodeSelf(e) 100110 } 100111 } else { 100112 r.EncodeNil() 100113 } 100114 } 100115 } else { 100116 if yyq2[9] { 100117 r.WriteMapElemKey() 100118 if z.IsJSONHandle() { 100119 z.WriteStr("\"Resources\"") 100120 } else { 100121 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 100122 } 100123 r.WriteMapElemValue() 100124 if yyn30 { 100125 r.EncodeNil() 100126 } else { 100127 if x.Resources == nil { 100128 r.EncodeNil() 100129 } else { 100130 x.Resources.CodecEncodeSelf(e) 100131 } 100132 } 100133 } 100134 } 100135 var yyn33 bool 100136 if x.SharedResources == nil { 100137 yyn33 = true 100138 goto LABEL33 100139 } 100140 LABEL33: 100141 if yyr2 || yy2arr2 { 100142 if yyn33 { 100143 r.WriteArrayElem() 100144 r.EncodeNil() 100145 } else { 100146 r.WriteArrayElem() 100147 if yyq2[10] { 100148 if x.SharedResources == nil { 100149 r.EncodeNil() 100150 } else { 100151 x.SharedResources.CodecEncodeSelf(e) 100152 } 100153 } else { 100154 r.EncodeNil() 100155 } 100156 } 100157 } else { 100158 if yyq2[10] { 100159 r.WriteMapElemKey() 100160 if z.IsJSONHandle() { 100161 z.WriteStr("\"SharedResources\"") 100162 } else { 100163 r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) 100164 } 100165 r.WriteMapElemValue() 100166 if yyn33 { 100167 r.EncodeNil() 100168 } else { 100169 if x.SharedResources == nil { 100170 r.EncodeNil() 100171 } else { 100172 x.SharedResources.CodecEncodeSelf(e) 100173 } 100174 } 100175 } 100176 } 100177 if yyr2 || yy2arr2 { 100178 r.WriteArrayElem() 100179 if yyq2[11] { 100180 if x.TaskResources == nil { 100181 r.EncodeNil() 100182 } else { 100183 if false { 100184 } else { 100185 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 100186 } 100187 } 100188 } else { 100189 r.EncodeNil() 100190 } 100191 } else { 100192 if yyq2[11] { 100193 r.WriteMapElemKey() 100194 if z.IsJSONHandle() { 100195 z.WriteStr("\"TaskResources\"") 100196 } else { 100197 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) 100198 } 100199 r.WriteMapElemValue() 100200 if x.TaskResources == nil { 100201 r.EncodeNil() 100202 } else { 100203 if false { 100204 } else { 100205 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 100206 } 100207 } 100208 } 100209 } 100210 var yyn39 bool 100211 if x.AllocatedResources == nil { 100212 yyn39 = true 100213 goto LABEL39 100214 } 100215 LABEL39: 100216 if yyr2 || yy2arr2 { 100217 if yyn39 { 100218 r.WriteArrayElem() 100219 r.EncodeNil() 100220 } else { 100221 r.WriteArrayElem() 100222 if yyq2[12] { 100223 if x.AllocatedResources == nil { 100224 r.EncodeNil() 100225 } else { 100226 x.AllocatedResources.CodecEncodeSelf(e) 100227 } 100228 } else { 100229 r.EncodeNil() 100230 } 100231 } 100232 } else { 100233 if yyq2[12] { 100234 r.WriteMapElemKey() 100235 if z.IsJSONHandle() { 100236 z.WriteStr("\"AllocatedResources\"") 100237 } else { 100238 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) 100239 } 100240 r.WriteMapElemValue() 100241 if yyn39 { 100242 r.EncodeNil() 100243 } else { 100244 if x.AllocatedResources == nil { 100245 r.EncodeNil() 100246 } else { 100247 x.AllocatedResources.CodecEncodeSelf(e) 100248 } 100249 } 100250 } 100251 } 100252 var yyn42 bool 100253 if x.Metrics == nil { 100254 yyn42 = true 100255 goto LABEL42 100256 } 100257 LABEL42: 100258 if yyr2 || yy2arr2 { 100259 if yyn42 { 100260 r.WriteArrayElem() 100261 r.EncodeNil() 100262 } else { 100263 r.WriteArrayElem() 100264 if yyq2[13] { 100265 if x.Metrics == nil { 100266 r.EncodeNil() 100267 } else { 100268 x.Metrics.CodecEncodeSelf(e) 100269 } 100270 } else { 100271 r.EncodeNil() 100272 } 100273 } 100274 } else { 100275 if yyq2[13] { 100276 r.WriteMapElemKey() 100277 if z.IsJSONHandle() { 100278 z.WriteStr("\"Metrics\"") 100279 } else { 100280 r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) 100281 } 100282 r.WriteMapElemValue() 100283 if yyn42 { 100284 r.EncodeNil() 100285 } else { 100286 if x.Metrics == nil { 100287 r.EncodeNil() 100288 } else { 100289 x.Metrics.CodecEncodeSelf(e) 100290 } 100291 } 100292 } 100293 } 100294 if yyr2 || yy2arr2 { 100295 r.WriteArrayElem() 100296 if yyq2[14] { 100297 if false { 100298 } else { 100299 if z.EncBasicHandle().StringToRaw { 100300 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 100301 } else { 100302 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 100303 } 100304 } 100305 } else { 100306 if z.EncBasicHandle().StringToRaw { 100307 r.EncodeStringBytesRaw([]byte{}) 100308 } else { 100309 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100310 } 100311 } 100312 } else { 100313 if yyq2[14] { 100314 r.WriteMapElemKey() 100315 if z.IsJSONHandle() { 100316 z.WriteStr("\"DesiredStatus\"") 100317 } else { 100318 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 100319 } 100320 r.WriteMapElemValue() 100321 if false { 100322 } else { 100323 if z.EncBasicHandle().StringToRaw { 100324 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 100325 } else { 100326 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 100327 } 100328 } 100329 } 100330 } 100331 if yyr2 || yy2arr2 { 100332 r.WriteArrayElem() 100333 if yyq2[15] { 100334 if false { 100335 } else { 100336 if z.EncBasicHandle().StringToRaw { 100337 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 100338 } else { 100339 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 100340 } 100341 } 100342 } else { 100343 if z.EncBasicHandle().StringToRaw { 100344 r.EncodeStringBytesRaw([]byte{}) 100345 } else { 100346 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100347 } 100348 } 100349 } else { 100350 if yyq2[15] { 100351 r.WriteMapElemKey() 100352 if z.IsJSONHandle() { 100353 z.WriteStr("\"DesiredDescription\"") 100354 } else { 100355 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 100356 } 100357 r.WriteMapElemValue() 100358 if false { 100359 } else { 100360 if z.EncBasicHandle().StringToRaw { 100361 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 100362 } else { 100363 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 100364 } 100365 } 100366 } 100367 } 100368 if yyr2 || yy2arr2 { 100369 r.WriteArrayElem() 100370 if yyq2[16] { 100371 yy52 := &x.DesiredTransition 100372 yy52.CodecEncodeSelf(e) 100373 } else { 100374 r.EncodeNil() 100375 } 100376 } else { 100377 if yyq2[16] { 100378 r.WriteMapElemKey() 100379 if z.IsJSONHandle() { 100380 z.WriteStr("\"DesiredTransition\"") 100381 } else { 100382 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 100383 } 100384 r.WriteMapElemValue() 100385 yy54 := &x.DesiredTransition 100386 yy54.CodecEncodeSelf(e) 100387 } 100388 } 100389 if yyr2 || yy2arr2 { 100390 r.WriteArrayElem() 100391 if yyq2[17] { 100392 if false { 100393 } else { 100394 if z.EncBasicHandle().StringToRaw { 100395 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 100396 } else { 100397 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 100398 } 100399 } 100400 } else { 100401 if z.EncBasicHandle().StringToRaw { 100402 r.EncodeStringBytesRaw([]byte{}) 100403 } else { 100404 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100405 } 100406 } 100407 } else { 100408 if yyq2[17] { 100409 r.WriteMapElemKey() 100410 if z.IsJSONHandle() { 100411 z.WriteStr("\"ClientStatus\"") 100412 } else { 100413 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 100414 } 100415 r.WriteMapElemValue() 100416 if false { 100417 } else { 100418 if z.EncBasicHandle().StringToRaw { 100419 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 100420 } else { 100421 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 100422 } 100423 } 100424 } 100425 } 100426 if yyr2 || yy2arr2 { 100427 r.WriteArrayElem() 100428 if yyq2[18] { 100429 if false { 100430 } else { 100431 if z.EncBasicHandle().StringToRaw { 100432 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 100433 } else { 100434 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 100435 } 100436 } 100437 } else { 100438 if z.EncBasicHandle().StringToRaw { 100439 r.EncodeStringBytesRaw([]byte{}) 100440 } else { 100441 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100442 } 100443 } 100444 } else { 100445 if yyq2[18] { 100446 r.WriteMapElemKey() 100447 if z.IsJSONHandle() { 100448 z.WriteStr("\"ClientDescription\"") 100449 } else { 100450 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 100451 } 100452 r.WriteMapElemValue() 100453 if false { 100454 } else { 100455 if z.EncBasicHandle().StringToRaw { 100456 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 100457 } else { 100458 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 100459 } 100460 } 100461 } 100462 } 100463 if yyr2 || yy2arr2 { 100464 r.WriteArrayElem() 100465 if yyq2[19] { 100466 if x.TaskStates == nil { 100467 r.EncodeNil() 100468 } else { 100469 if false { 100470 } else { 100471 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 100472 } 100473 } 100474 } else { 100475 r.EncodeNil() 100476 } 100477 } else { 100478 if yyq2[19] { 100479 r.WriteMapElemKey() 100480 if z.IsJSONHandle() { 100481 z.WriteStr("\"TaskStates\"") 100482 } else { 100483 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 100484 } 100485 r.WriteMapElemValue() 100486 if x.TaskStates == nil { 100487 r.EncodeNil() 100488 } else { 100489 if false { 100490 } else { 100491 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 100492 } 100493 } 100494 } 100495 } 100496 if yyr2 || yy2arr2 { 100497 r.WriteArrayElem() 100498 if yyq2[20] { 100499 if x.AllocStates == nil { 100500 r.EncodeNil() 100501 } else { 100502 if false { 100503 } else { 100504 h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) 100505 } 100506 } 100507 } else { 100508 r.EncodeNil() 100509 } 100510 } else { 100511 if yyq2[20] { 100512 r.WriteMapElemKey() 100513 if z.IsJSONHandle() { 100514 z.WriteStr("\"AllocStates\"") 100515 } else { 100516 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocStates`) 100517 } 100518 r.WriteMapElemValue() 100519 if x.AllocStates == nil { 100520 r.EncodeNil() 100521 } else { 100522 if false { 100523 } else { 100524 h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) 100525 } 100526 } 100527 } 100528 } 100529 if yyr2 || yy2arr2 { 100530 r.WriteArrayElem() 100531 if yyq2[21] { 100532 if false { 100533 } else { 100534 if z.EncBasicHandle().StringToRaw { 100535 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 100536 } else { 100537 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 100538 } 100539 } 100540 } else { 100541 if z.EncBasicHandle().StringToRaw { 100542 r.EncodeStringBytesRaw([]byte{}) 100543 } else { 100544 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100545 } 100546 } 100547 } else { 100548 if yyq2[21] { 100549 r.WriteMapElemKey() 100550 if z.IsJSONHandle() { 100551 z.WriteStr("\"PreviousAllocation\"") 100552 } else { 100553 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) 100554 } 100555 r.WriteMapElemValue() 100556 if false { 100557 } else { 100558 if z.EncBasicHandle().StringToRaw { 100559 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 100560 } else { 100561 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 100562 } 100563 } 100564 } 100565 } 100566 if yyr2 || yy2arr2 { 100567 r.WriteArrayElem() 100568 if yyq2[22] { 100569 if false { 100570 } else { 100571 if z.EncBasicHandle().StringToRaw { 100572 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 100573 } else { 100574 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 100575 } 100576 } 100577 } else { 100578 if z.EncBasicHandle().StringToRaw { 100579 r.EncodeStringBytesRaw([]byte{}) 100580 } else { 100581 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100582 } 100583 } 100584 } else { 100585 if yyq2[22] { 100586 r.WriteMapElemKey() 100587 if z.IsJSONHandle() { 100588 z.WriteStr("\"NextAllocation\"") 100589 } else { 100590 r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) 100591 } 100592 r.WriteMapElemValue() 100593 if false { 100594 } else { 100595 if z.EncBasicHandle().StringToRaw { 100596 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 100597 } else { 100598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 100599 } 100600 } 100601 } 100602 } 100603 if yyr2 || yy2arr2 { 100604 r.WriteArrayElem() 100605 if yyq2[23] { 100606 if false { 100607 } else { 100608 if z.EncBasicHandle().StringToRaw { 100609 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 100610 } else { 100611 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 100612 } 100613 } 100614 } else { 100615 if z.EncBasicHandle().StringToRaw { 100616 r.EncodeStringBytesRaw([]byte{}) 100617 } else { 100618 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100619 } 100620 } 100621 } else { 100622 if yyq2[23] { 100623 r.WriteMapElemKey() 100624 if z.IsJSONHandle() { 100625 z.WriteStr("\"DeploymentID\"") 100626 } else { 100627 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 100628 } 100629 r.WriteMapElemValue() 100630 if false { 100631 } else { 100632 if z.EncBasicHandle().StringToRaw { 100633 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 100634 } else { 100635 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 100636 } 100637 } 100638 } 100639 } 100640 var yyn77 bool 100641 if x.DeploymentStatus == nil { 100642 yyn77 = true 100643 goto LABEL77 100644 } 100645 LABEL77: 100646 if yyr2 || yy2arr2 { 100647 if yyn77 { 100648 r.WriteArrayElem() 100649 r.EncodeNil() 100650 } else { 100651 r.WriteArrayElem() 100652 if yyq2[24] { 100653 if x.DeploymentStatus == nil { 100654 r.EncodeNil() 100655 } else { 100656 x.DeploymentStatus.CodecEncodeSelf(e) 100657 } 100658 } else { 100659 r.EncodeNil() 100660 } 100661 } 100662 } else { 100663 if yyq2[24] { 100664 r.WriteMapElemKey() 100665 if z.IsJSONHandle() { 100666 z.WriteStr("\"DeploymentStatus\"") 100667 } else { 100668 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 100669 } 100670 r.WriteMapElemValue() 100671 if yyn77 { 100672 r.EncodeNil() 100673 } else { 100674 if x.DeploymentStatus == nil { 100675 r.EncodeNil() 100676 } else { 100677 x.DeploymentStatus.CodecEncodeSelf(e) 100678 } 100679 } 100680 } 100681 } 100682 var yyn80 bool 100683 if x.RescheduleTracker == nil { 100684 yyn80 = true 100685 goto LABEL80 100686 } 100687 LABEL80: 100688 if yyr2 || yy2arr2 { 100689 if yyn80 { 100690 r.WriteArrayElem() 100691 r.EncodeNil() 100692 } else { 100693 r.WriteArrayElem() 100694 if yyq2[25] { 100695 if x.RescheduleTracker == nil { 100696 r.EncodeNil() 100697 } else { 100698 x.RescheduleTracker.CodecEncodeSelf(e) 100699 } 100700 } else { 100701 r.EncodeNil() 100702 } 100703 } 100704 } else { 100705 if yyq2[25] { 100706 r.WriteMapElemKey() 100707 if z.IsJSONHandle() { 100708 z.WriteStr("\"RescheduleTracker\"") 100709 } else { 100710 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 100711 } 100712 r.WriteMapElemValue() 100713 if yyn80 { 100714 r.EncodeNil() 100715 } else { 100716 if x.RescheduleTracker == nil { 100717 r.EncodeNil() 100718 } else { 100719 x.RescheduleTracker.CodecEncodeSelf(e) 100720 } 100721 } 100722 } 100723 } 100724 if yyr2 || yy2arr2 { 100725 r.WriteArrayElem() 100726 if yyq2[26] { 100727 if false { 100728 } else { 100729 if z.EncBasicHandle().StringToRaw { 100730 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 100731 } else { 100732 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 100733 } 100734 } 100735 } else { 100736 if z.EncBasicHandle().StringToRaw { 100737 r.EncodeStringBytesRaw([]byte{}) 100738 } else { 100739 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100740 } 100741 } 100742 } else { 100743 if yyq2[26] { 100744 r.WriteMapElemKey() 100745 if z.IsJSONHandle() { 100746 z.WriteStr("\"FollowupEvalID\"") 100747 } else { 100748 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 100749 } 100750 r.WriteMapElemValue() 100751 if false { 100752 } else { 100753 if z.EncBasicHandle().StringToRaw { 100754 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 100755 } else { 100756 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 100757 } 100758 } 100759 } 100760 } 100761 if yyr2 || yy2arr2 { 100762 r.WriteArrayElem() 100763 if yyq2[27] { 100764 if x.PreemptedAllocations == nil { 100765 r.EncodeNil() 100766 } else { 100767 if false { 100768 } else { 100769 z.F.EncSliceStringV(x.PreemptedAllocations, e) 100770 } 100771 } 100772 } else { 100773 r.EncodeNil() 100774 } 100775 } else { 100776 if yyq2[27] { 100777 r.WriteMapElemKey() 100778 if z.IsJSONHandle() { 100779 z.WriteStr("\"PreemptedAllocations\"") 100780 } else { 100781 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 100782 } 100783 r.WriteMapElemValue() 100784 if x.PreemptedAllocations == nil { 100785 r.EncodeNil() 100786 } else { 100787 if false { 100788 } else { 100789 z.F.EncSliceStringV(x.PreemptedAllocations, e) 100790 } 100791 } 100792 } 100793 } 100794 if yyr2 || yy2arr2 { 100795 r.WriteArrayElem() 100796 if yyq2[28] { 100797 if false { 100798 } else { 100799 if z.EncBasicHandle().StringToRaw { 100800 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 100801 } else { 100802 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 100803 } 100804 } 100805 } else { 100806 if z.EncBasicHandle().StringToRaw { 100807 r.EncodeStringBytesRaw([]byte{}) 100808 } else { 100809 r.EncodeStringEnc(codecSelferCcUTF8100, "") 100810 } 100811 } 100812 } else { 100813 if yyq2[28] { 100814 r.WriteMapElemKey() 100815 if z.IsJSONHandle() { 100816 z.WriteStr("\"PreemptedByAllocation\"") 100817 } else { 100818 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 100819 } 100820 r.WriteMapElemValue() 100821 if false { 100822 } else { 100823 if z.EncBasicHandle().StringToRaw { 100824 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 100825 } else { 100826 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 100827 } 100828 } 100829 } 100830 } 100831 if yyr2 || yy2arr2 { 100832 r.WriteArrayElem() 100833 if yyq2[29] { 100834 if false { 100835 } else { 100836 r.EncodeUint(uint64(x.CreateIndex)) 100837 } 100838 } else { 100839 r.EncodeUint(0) 100840 } 100841 } else { 100842 if yyq2[29] { 100843 r.WriteMapElemKey() 100844 if z.IsJSONHandle() { 100845 z.WriteStr("\"CreateIndex\"") 100846 } else { 100847 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 100848 } 100849 r.WriteMapElemValue() 100850 if false { 100851 } else { 100852 r.EncodeUint(uint64(x.CreateIndex)) 100853 } 100854 } 100855 } 100856 if yyr2 || yy2arr2 { 100857 r.WriteArrayElem() 100858 if yyq2[30] { 100859 if false { 100860 } else { 100861 r.EncodeUint(uint64(x.ModifyIndex)) 100862 } 100863 } else { 100864 r.EncodeUint(0) 100865 } 100866 } else { 100867 if yyq2[30] { 100868 r.WriteMapElemKey() 100869 if z.IsJSONHandle() { 100870 z.WriteStr("\"ModifyIndex\"") 100871 } else { 100872 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 100873 } 100874 r.WriteMapElemValue() 100875 if false { 100876 } else { 100877 r.EncodeUint(uint64(x.ModifyIndex)) 100878 } 100879 } 100880 } 100881 if yyr2 || yy2arr2 { 100882 r.WriteArrayElem() 100883 if yyq2[31] { 100884 if false { 100885 } else { 100886 r.EncodeUint(uint64(x.AllocModifyIndex)) 100887 } 100888 } else { 100889 r.EncodeUint(0) 100890 } 100891 } else { 100892 if yyq2[31] { 100893 r.WriteMapElemKey() 100894 if z.IsJSONHandle() { 100895 z.WriteStr("\"AllocModifyIndex\"") 100896 } else { 100897 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) 100898 } 100899 r.WriteMapElemValue() 100900 if false { 100901 } else { 100902 r.EncodeUint(uint64(x.AllocModifyIndex)) 100903 } 100904 } 100905 } 100906 if yyr2 || yy2arr2 { 100907 r.WriteArrayElem() 100908 if yyq2[32] { 100909 if false { 100910 } else { 100911 r.EncodeInt(int64(x.CreateTime)) 100912 } 100913 } else { 100914 r.EncodeInt(0) 100915 } 100916 } else { 100917 if yyq2[32] { 100918 r.WriteMapElemKey() 100919 if z.IsJSONHandle() { 100920 z.WriteStr("\"CreateTime\"") 100921 } else { 100922 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 100923 } 100924 r.WriteMapElemValue() 100925 if false { 100926 } else { 100927 r.EncodeInt(int64(x.CreateTime)) 100928 } 100929 } 100930 } 100931 if yyr2 || yy2arr2 { 100932 r.WriteArrayElem() 100933 if yyq2[33] { 100934 if false { 100935 } else { 100936 r.EncodeInt(int64(x.ModifyTime)) 100937 } 100938 } else { 100939 r.EncodeInt(0) 100940 } 100941 } else { 100942 if yyq2[33] { 100943 r.WriteMapElemKey() 100944 if z.IsJSONHandle() { 100945 z.WriteStr("\"ModifyTime\"") 100946 } else { 100947 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 100948 } 100949 r.WriteMapElemValue() 100950 if false { 100951 } else { 100952 r.EncodeInt(int64(x.ModifyTime)) 100953 } 100954 } 100955 } 100956 if yyr2 || yy2arr2 { 100957 r.WriteArrayEnd() 100958 } else { 100959 r.WriteMapEnd() 100960 } 100961 } 100962 } 100963 } 100964 100965 func (x *Allocation) CodecDecodeSelf(d *codec1978.Decoder) { 100966 var h codecSelfer100 100967 z, r := codec1978.GenHelperDecoder(d) 100968 _, _, _ = h, z, r 100969 if false { 100970 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 100971 z.DecExtension(x, yyxt1) 100972 } else { 100973 yyct2 := r.ContainerType() 100974 if yyct2 == codecSelferValueTypeMap100 { 100975 yyl2 := r.ReadMapStart() 100976 if yyl2 == 0 { 100977 r.ReadMapEnd() 100978 } else { 100979 x.codecDecodeSelfFromMap(yyl2, d) 100980 } 100981 } else if yyct2 == codecSelferValueTypeArray100 { 100982 yyl2 := r.ReadArrayStart() 100983 if yyl2 == 0 { 100984 r.ReadArrayEnd() 100985 } else { 100986 x.codecDecodeSelfFromArray(yyl2, d) 100987 } 100988 } else { 100989 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 100990 } 100991 } 100992 } 100993 100994 func (x *Allocation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 100995 var h codecSelfer100 100996 z, r := codec1978.GenHelperDecoder(d) 100997 _, _, _ = h, z, r 100998 var yyhl3 bool = l >= 0 100999 for yyj3 := 0; ; yyj3++ { 101000 if yyhl3 { 101001 if yyj3 >= l { 101002 break 101003 } 101004 } else { 101005 if r.CheckBreak() { 101006 break 101007 } 101008 } 101009 r.ReadMapElemKey() 101010 yys3 := z.StringView(r.DecodeStringAsBytes()) 101011 r.ReadMapElemValue() 101012 switch yys3 { 101013 case "ID": 101014 if r.TryDecodeAsNil() { 101015 x.ID = "" 101016 } else { 101017 x.ID = (string)(r.DecodeString()) 101018 } 101019 case "Namespace": 101020 if r.TryDecodeAsNil() { 101021 x.Namespace = "" 101022 } else { 101023 x.Namespace = (string)(r.DecodeString()) 101024 } 101025 case "EvalID": 101026 if r.TryDecodeAsNil() { 101027 x.EvalID = "" 101028 } else { 101029 x.EvalID = (string)(r.DecodeString()) 101030 } 101031 case "Name": 101032 if r.TryDecodeAsNil() { 101033 x.Name = "" 101034 } else { 101035 x.Name = (string)(r.DecodeString()) 101036 } 101037 case "NodeID": 101038 if r.TryDecodeAsNil() { 101039 x.NodeID = "" 101040 } else { 101041 x.NodeID = (string)(r.DecodeString()) 101042 } 101043 case "NodeName": 101044 if r.TryDecodeAsNil() { 101045 x.NodeName = "" 101046 } else { 101047 x.NodeName = (string)(r.DecodeString()) 101048 } 101049 case "JobID": 101050 if r.TryDecodeAsNil() { 101051 x.JobID = "" 101052 } else { 101053 x.JobID = (string)(r.DecodeString()) 101054 } 101055 case "Job": 101056 if r.TryDecodeAsNil() { 101057 if true && x.Job != nil { 101058 x.Job = nil 101059 } 101060 } else { 101061 if x.Job == nil { 101062 x.Job = new(Job) 101063 } 101064 101065 x.Job.CodecDecodeSelf(d) 101066 } 101067 case "TaskGroup": 101068 if r.TryDecodeAsNil() { 101069 x.TaskGroup = "" 101070 } else { 101071 x.TaskGroup = (string)(r.DecodeString()) 101072 } 101073 case "Resources": 101074 if r.TryDecodeAsNil() { 101075 if true && x.Resources != nil { 101076 x.Resources = nil 101077 } 101078 } else { 101079 if x.Resources == nil { 101080 x.Resources = new(Resources) 101081 } 101082 101083 x.Resources.CodecDecodeSelf(d) 101084 } 101085 case "SharedResources": 101086 if r.TryDecodeAsNil() { 101087 if true && x.SharedResources != nil { 101088 x.SharedResources = nil 101089 } 101090 } else { 101091 if x.SharedResources == nil { 101092 x.SharedResources = new(Resources) 101093 } 101094 101095 x.SharedResources.CodecDecodeSelf(d) 101096 } 101097 case "TaskResources": 101098 if r.TryDecodeAsNil() { 101099 x.TaskResources = nil 101100 } else { 101101 if false { 101102 } else { 101103 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 101104 } 101105 } 101106 case "AllocatedResources": 101107 if r.TryDecodeAsNil() { 101108 if true && x.AllocatedResources != nil { 101109 x.AllocatedResources = nil 101110 } 101111 } else { 101112 if x.AllocatedResources == nil { 101113 x.AllocatedResources = new(AllocatedResources) 101114 } 101115 101116 x.AllocatedResources.CodecDecodeSelf(d) 101117 } 101118 case "Metrics": 101119 if r.TryDecodeAsNil() { 101120 if true && x.Metrics != nil { 101121 x.Metrics = nil 101122 } 101123 } else { 101124 if x.Metrics == nil { 101125 x.Metrics = new(AllocMetric) 101126 } 101127 101128 x.Metrics.CodecDecodeSelf(d) 101129 } 101130 case "DesiredStatus": 101131 if r.TryDecodeAsNil() { 101132 x.DesiredStatus = "" 101133 } else { 101134 x.DesiredStatus = (string)(r.DecodeString()) 101135 } 101136 case "DesiredDescription": 101137 if r.TryDecodeAsNil() { 101138 x.DesiredDescription = "" 101139 } else { 101140 x.DesiredDescription = (string)(r.DecodeString()) 101141 } 101142 case "DesiredTransition": 101143 if r.TryDecodeAsNil() { 101144 x.DesiredTransition = DesiredTransition{} 101145 } else { 101146 x.DesiredTransition.CodecDecodeSelf(d) 101147 } 101148 case "ClientStatus": 101149 if r.TryDecodeAsNil() { 101150 x.ClientStatus = "" 101151 } else { 101152 x.ClientStatus = (string)(r.DecodeString()) 101153 } 101154 case "ClientDescription": 101155 if r.TryDecodeAsNil() { 101156 x.ClientDescription = "" 101157 } else { 101158 x.ClientDescription = (string)(r.DecodeString()) 101159 } 101160 case "TaskStates": 101161 if r.TryDecodeAsNil() { 101162 x.TaskStates = nil 101163 } else { 101164 if false { 101165 } else { 101166 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 101167 } 101168 } 101169 case "AllocStates": 101170 if r.TryDecodeAsNil() { 101171 x.AllocStates = nil 101172 } else { 101173 if false { 101174 } else { 101175 h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) 101176 } 101177 } 101178 case "PreviousAllocation": 101179 if r.TryDecodeAsNil() { 101180 x.PreviousAllocation = "" 101181 } else { 101182 x.PreviousAllocation = (string)(r.DecodeString()) 101183 } 101184 case "NextAllocation": 101185 if r.TryDecodeAsNil() { 101186 x.NextAllocation = "" 101187 } else { 101188 x.NextAllocation = (string)(r.DecodeString()) 101189 } 101190 case "DeploymentID": 101191 if r.TryDecodeAsNil() { 101192 x.DeploymentID = "" 101193 } else { 101194 x.DeploymentID = (string)(r.DecodeString()) 101195 } 101196 case "DeploymentStatus": 101197 if r.TryDecodeAsNil() { 101198 if true && x.DeploymentStatus != nil { 101199 x.DeploymentStatus = nil 101200 } 101201 } else { 101202 if x.DeploymentStatus == nil { 101203 x.DeploymentStatus = new(AllocDeploymentStatus) 101204 } 101205 101206 x.DeploymentStatus.CodecDecodeSelf(d) 101207 } 101208 case "RescheduleTracker": 101209 if r.TryDecodeAsNil() { 101210 if true && x.RescheduleTracker != nil { 101211 x.RescheduleTracker = nil 101212 } 101213 } else { 101214 if x.RescheduleTracker == nil { 101215 x.RescheduleTracker = new(RescheduleTracker) 101216 } 101217 101218 x.RescheduleTracker.CodecDecodeSelf(d) 101219 } 101220 case "FollowupEvalID": 101221 if r.TryDecodeAsNil() { 101222 x.FollowupEvalID = "" 101223 } else { 101224 x.FollowupEvalID = (string)(r.DecodeString()) 101225 } 101226 case "PreemptedAllocations": 101227 if r.TryDecodeAsNil() { 101228 x.PreemptedAllocations = nil 101229 } else { 101230 if false { 101231 } else { 101232 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 101233 } 101234 } 101235 case "PreemptedByAllocation": 101236 if r.TryDecodeAsNil() { 101237 x.PreemptedByAllocation = "" 101238 } else { 101239 x.PreemptedByAllocation = (string)(r.DecodeString()) 101240 } 101241 case "CreateIndex": 101242 if r.TryDecodeAsNil() { 101243 x.CreateIndex = 0 101244 } else { 101245 x.CreateIndex = (uint64)(r.DecodeUint64()) 101246 } 101247 case "ModifyIndex": 101248 if r.TryDecodeAsNil() { 101249 x.ModifyIndex = 0 101250 } else { 101251 x.ModifyIndex = (uint64)(r.DecodeUint64()) 101252 } 101253 case "AllocModifyIndex": 101254 if r.TryDecodeAsNil() { 101255 x.AllocModifyIndex = 0 101256 } else { 101257 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 101258 } 101259 case "CreateTime": 101260 if r.TryDecodeAsNil() { 101261 x.CreateTime = 0 101262 } else { 101263 x.CreateTime = (int64)(r.DecodeInt64()) 101264 } 101265 case "ModifyTime": 101266 if r.TryDecodeAsNil() { 101267 x.ModifyTime = 0 101268 } else { 101269 x.ModifyTime = (int64)(r.DecodeInt64()) 101270 } 101271 default: 101272 z.DecStructFieldNotFound(-1, yys3) 101273 } // end switch yys3 101274 } // end for yyj3 101275 r.ReadMapEnd() 101276 } 101277 101278 func (x *Allocation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 101279 var h codecSelfer100 101280 z, r := codec1978.GenHelperDecoder(d) 101281 _, _, _ = h, z, r 101282 var yyj42 int 101283 var yyb42 bool 101284 var yyhl42 bool = l >= 0 101285 yyj42++ 101286 if yyhl42 { 101287 yyb42 = yyj42 > l 101288 } else { 101289 yyb42 = r.CheckBreak() 101290 } 101291 if yyb42 { 101292 r.ReadArrayEnd() 101293 return 101294 } 101295 r.ReadArrayElem() 101296 if r.TryDecodeAsNil() { 101297 x.ID = "" 101298 } else { 101299 x.ID = (string)(r.DecodeString()) 101300 } 101301 yyj42++ 101302 if yyhl42 { 101303 yyb42 = yyj42 > l 101304 } else { 101305 yyb42 = r.CheckBreak() 101306 } 101307 if yyb42 { 101308 r.ReadArrayEnd() 101309 return 101310 } 101311 r.ReadArrayElem() 101312 if r.TryDecodeAsNil() { 101313 x.Namespace = "" 101314 } else { 101315 x.Namespace = (string)(r.DecodeString()) 101316 } 101317 yyj42++ 101318 if yyhl42 { 101319 yyb42 = yyj42 > l 101320 } else { 101321 yyb42 = r.CheckBreak() 101322 } 101323 if yyb42 { 101324 r.ReadArrayEnd() 101325 return 101326 } 101327 r.ReadArrayElem() 101328 if r.TryDecodeAsNil() { 101329 x.EvalID = "" 101330 } else { 101331 x.EvalID = (string)(r.DecodeString()) 101332 } 101333 yyj42++ 101334 if yyhl42 { 101335 yyb42 = yyj42 > l 101336 } else { 101337 yyb42 = r.CheckBreak() 101338 } 101339 if yyb42 { 101340 r.ReadArrayEnd() 101341 return 101342 } 101343 r.ReadArrayElem() 101344 if r.TryDecodeAsNil() { 101345 x.Name = "" 101346 } else { 101347 x.Name = (string)(r.DecodeString()) 101348 } 101349 yyj42++ 101350 if yyhl42 { 101351 yyb42 = yyj42 > l 101352 } else { 101353 yyb42 = r.CheckBreak() 101354 } 101355 if yyb42 { 101356 r.ReadArrayEnd() 101357 return 101358 } 101359 r.ReadArrayElem() 101360 if r.TryDecodeAsNil() { 101361 x.NodeID = "" 101362 } else { 101363 x.NodeID = (string)(r.DecodeString()) 101364 } 101365 yyj42++ 101366 if yyhl42 { 101367 yyb42 = yyj42 > l 101368 } else { 101369 yyb42 = r.CheckBreak() 101370 } 101371 if yyb42 { 101372 r.ReadArrayEnd() 101373 return 101374 } 101375 r.ReadArrayElem() 101376 if r.TryDecodeAsNil() { 101377 x.NodeName = "" 101378 } else { 101379 x.NodeName = (string)(r.DecodeString()) 101380 } 101381 yyj42++ 101382 if yyhl42 { 101383 yyb42 = yyj42 > l 101384 } else { 101385 yyb42 = r.CheckBreak() 101386 } 101387 if yyb42 { 101388 r.ReadArrayEnd() 101389 return 101390 } 101391 r.ReadArrayElem() 101392 if r.TryDecodeAsNil() { 101393 x.JobID = "" 101394 } else { 101395 x.JobID = (string)(r.DecodeString()) 101396 } 101397 yyj42++ 101398 if yyhl42 { 101399 yyb42 = yyj42 > l 101400 } else { 101401 yyb42 = r.CheckBreak() 101402 } 101403 if yyb42 { 101404 r.ReadArrayEnd() 101405 return 101406 } 101407 r.ReadArrayElem() 101408 if r.TryDecodeAsNil() { 101409 if true && x.Job != nil { 101410 x.Job = nil 101411 } 101412 } else { 101413 if x.Job == nil { 101414 x.Job = new(Job) 101415 } 101416 101417 x.Job.CodecDecodeSelf(d) 101418 } 101419 yyj42++ 101420 if yyhl42 { 101421 yyb42 = yyj42 > l 101422 } else { 101423 yyb42 = r.CheckBreak() 101424 } 101425 if yyb42 { 101426 r.ReadArrayEnd() 101427 return 101428 } 101429 r.ReadArrayElem() 101430 if r.TryDecodeAsNil() { 101431 x.TaskGroup = "" 101432 } else { 101433 x.TaskGroup = (string)(r.DecodeString()) 101434 } 101435 yyj42++ 101436 if yyhl42 { 101437 yyb42 = yyj42 > l 101438 } else { 101439 yyb42 = r.CheckBreak() 101440 } 101441 if yyb42 { 101442 r.ReadArrayEnd() 101443 return 101444 } 101445 r.ReadArrayElem() 101446 if r.TryDecodeAsNil() { 101447 if true && x.Resources != nil { 101448 x.Resources = nil 101449 } 101450 } else { 101451 if x.Resources == nil { 101452 x.Resources = new(Resources) 101453 } 101454 101455 x.Resources.CodecDecodeSelf(d) 101456 } 101457 yyj42++ 101458 if yyhl42 { 101459 yyb42 = yyj42 > l 101460 } else { 101461 yyb42 = r.CheckBreak() 101462 } 101463 if yyb42 { 101464 r.ReadArrayEnd() 101465 return 101466 } 101467 r.ReadArrayElem() 101468 if r.TryDecodeAsNil() { 101469 if true && x.SharedResources != nil { 101470 x.SharedResources = nil 101471 } 101472 } else { 101473 if x.SharedResources == nil { 101474 x.SharedResources = new(Resources) 101475 } 101476 101477 x.SharedResources.CodecDecodeSelf(d) 101478 } 101479 yyj42++ 101480 if yyhl42 { 101481 yyb42 = yyj42 > l 101482 } else { 101483 yyb42 = r.CheckBreak() 101484 } 101485 if yyb42 { 101486 r.ReadArrayEnd() 101487 return 101488 } 101489 r.ReadArrayElem() 101490 if r.TryDecodeAsNil() { 101491 x.TaskResources = nil 101492 } else { 101493 if false { 101494 } else { 101495 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 101496 } 101497 } 101498 yyj42++ 101499 if yyhl42 { 101500 yyb42 = yyj42 > l 101501 } else { 101502 yyb42 = r.CheckBreak() 101503 } 101504 if yyb42 { 101505 r.ReadArrayEnd() 101506 return 101507 } 101508 r.ReadArrayElem() 101509 if r.TryDecodeAsNil() { 101510 if true && x.AllocatedResources != nil { 101511 x.AllocatedResources = nil 101512 } 101513 } else { 101514 if x.AllocatedResources == nil { 101515 x.AllocatedResources = new(AllocatedResources) 101516 } 101517 101518 x.AllocatedResources.CodecDecodeSelf(d) 101519 } 101520 yyj42++ 101521 if yyhl42 { 101522 yyb42 = yyj42 > l 101523 } else { 101524 yyb42 = r.CheckBreak() 101525 } 101526 if yyb42 { 101527 r.ReadArrayEnd() 101528 return 101529 } 101530 r.ReadArrayElem() 101531 if r.TryDecodeAsNil() { 101532 if true && x.Metrics != nil { 101533 x.Metrics = nil 101534 } 101535 } else { 101536 if x.Metrics == nil { 101537 x.Metrics = new(AllocMetric) 101538 } 101539 101540 x.Metrics.CodecDecodeSelf(d) 101541 } 101542 yyj42++ 101543 if yyhl42 { 101544 yyb42 = yyj42 > l 101545 } else { 101546 yyb42 = r.CheckBreak() 101547 } 101548 if yyb42 { 101549 r.ReadArrayEnd() 101550 return 101551 } 101552 r.ReadArrayElem() 101553 if r.TryDecodeAsNil() { 101554 x.DesiredStatus = "" 101555 } else { 101556 x.DesiredStatus = (string)(r.DecodeString()) 101557 } 101558 yyj42++ 101559 if yyhl42 { 101560 yyb42 = yyj42 > l 101561 } else { 101562 yyb42 = r.CheckBreak() 101563 } 101564 if yyb42 { 101565 r.ReadArrayEnd() 101566 return 101567 } 101568 r.ReadArrayElem() 101569 if r.TryDecodeAsNil() { 101570 x.DesiredDescription = "" 101571 } else { 101572 x.DesiredDescription = (string)(r.DecodeString()) 101573 } 101574 yyj42++ 101575 if yyhl42 { 101576 yyb42 = yyj42 > l 101577 } else { 101578 yyb42 = r.CheckBreak() 101579 } 101580 if yyb42 { 101581 r.ReadArrayEnd() 101582 return 101583 } 101584 r.ReadArrayElem() 101585 if r.TryDecodeAsNil() { 101586 x.DesiredTransition = DesiredTransition{} 101587 } else { 101588 x.DesiredTransition.CodecDecodeSelf(d) 101589 } 101590 yyj42++ 101591 if yyhl42 { 101592 yyb42 = yyj42 > l 101593 } else { 101594 yyb42 = r.CheckBreak() 101595 } 101596 if yyb42 { 101597 r.ReadArrayEnd() 101598 return 101599 } 101600 r.ReadArrayElem() 101601 if r.TryDecodeAsNil() { 101602 x.ClientStatus = "" 101603 } else { 101604 x.ClientStatus = (string)(r.DecodeString()) 101605 } 101606 yyj42++ 101607 if yyhl42 { 101608 yyb42 = yyj42 > l 101609 } else { 101610 yyb42 = r.CheckBreak() 101611 } 101612 if yyb42 { 101613 r.ReadArrayEnd() 101614 return 101615 } 101616 r.ReadArrayElem() 101617 if r.TryDecodeAsNil() { 101618 x.ClientDescription = "" 101619 } else { 101620 x.ClientDescription = (string)(r.DecodeString()) 101621 } 101622 yyj42++ 101623 if yyhl42 { 101624 yyb42 = yyj42 > l 101625 } else { 101626 yyb42 = r.CheckBreak() 101627 } 101628 if yyb42 { 101629 r.ReadArrayEnd() 101630 return 101631 } 101632 r.ReadArrayElem() 101633 if r.TryDecodeAsNil() { 101634 x.TaskStates = nil 101635 } else { 101636 if false { 101637 } else { 101638 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 101639 } 101640 } 101641 yyj42++ 101642 if yyhl42 { 101643 yyb42 = yyj42 > l 101644 } else { 101645 yyb42 = r.CheckBreak() 101646 } 101647 if yyb42 { 101648 r.ReadArrayEnd() 101649 return 101650 } 101651 r.ReadArrayElem() 101652 if r.TryDecodeAsNil() { 101653 x.AllocStates = nil 101654 } else { 101655 if false { 101656 } else { 101657 h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) 101658 } 101659 } 101660 yyj42++ 101661 if yyhl42 { 101662 yyb42 = yyj42 > l 101663 } else { 101664 yyb42 = r.CheckBreak() 101665 } 101666 if yyb42 { 101667 r.ReadArrayEnd() 101668 return 101669 } 101670 r.ReadArrayElem() 101671 if r.TryDecodeAsNil() { 101672 x.PreviousAllocation = "" 101673 } else { 101674 x.PreviousAllocation = (string)(r.DecodeString()) 101675 } 101676 yyj42++ 101677 if yyhl42 { 101678 yyb42 = yyj42 > l 101679 } else { 101680 yyb42 = r.CheckBreak() 101681 } 101682 if yyb42 { 101683 r.ReadArrayEnd() 101684 return 101685 } 101686 r.ReadArrayElem() 101687 if r.TryDecodeAsNil() { 101688 x.NextAllocation = "" 101689 } else { 101690 x.NextAllocation = (string)(r.DecodeString()) 101691 } 101692 yyj42++ 101693 if yyhl42 { 101694 yyb42 = yyj42 > l 101695 } else { 101696 yyb42 = r.CheckBreak() 101697 } 101698 if yyb42 { 101699 r.ReadArrayEnd() 101700 return 101701 } 101702 r.ReadArrayElem() 101703 if r.TryDecodeAsNil() { 101704 x.DeploymentID = "" 101705 } else { 101706 x.DeploymentID = (string)(r.DecodeString()) 101707 } 101708 yyj42++ 101709 if yyhl42 { 101710 yyb42 = yyj42 > l 101711 } else { 101712 yyb42 = r.CheckBreak() 101713 } 101714 if yyb42 { 101715 r.ReadArrayEnd() 101716 return 101717 } 101718 r.ReadArrayElem() 101719 if r.TryDecodeAsNil() { 101720 if true && x.DeploymentStatus != nil { 101721 x.DeploymentStatus = nil 101722 } 101723 } else { 101724 if x.DeploymentStatus == nil { 101725 x.DeploymentStatus = new(AllocDeploymentStatus) 101726 } 101727 101728 x.DeploymentStatus.CodecDecodeSelf(d) 101729 } 101730 yyj42++ 101731 if yyhl42 { 101732 yyb42 = yyj42 > l 101733 } else { 101734 yyb42 = r.CheckBreak() 101735 } 101736 if yyb42 { 101737 r.ReadArrayEnd() 101738 return 101739 } 101740 r.ReadArrayElem() 101741 if r.TryDecodeAsNil() { 101742 if true && x.RescheduleTracker != nil { 101743 x.RescheduleTracker = nil 101744 } 101745 } else { 101746 if x.RescheduleTracker == nil { 101747 x.RescheduleTracker = new(RescheduleTracker) 101748 } 101749 101750 x.RescheduleTracker.CodecDecodeSelf(d) 101751 } 101752 yyj42++ 101753 if yyhl42 { 101754 yyb42 = yyj42 > l 101755 } else { 101756 yyb42 = r.CheckBreak() 101757 } 101758 if yyb42 { 101759 r.ReadArrayEnd() 101760 return 101761 } 101762 r.ReadArrayElem() 101763 if r.TryDecodeAsNil() { 101764 x.FollowupEvalID = "" 101765 } else { 101766 x.FollowupEvalID = (string)(r.DecodeString()) 101767 } 101768 yyj42++ 101769 if yyhl42 { 101770 yyb42 = yyj42 > l 101771 } else { 101772 yyb42 = r.CheckBreak() 101773 } 101774 if yyb42 { 101775 r.ReadArrayEnd() 101776 return 101777 } 101778 r.ReadArrayElem() 101779 if r.TryDecodeAsNil() { 101780 x.PreemptedAllocations = nil 101781 } else { 101782 if false { 101783 } else { 101784 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 101785 } 101786 } 101787 yyj42++ 101788 if yyhl42 { 101789 yyb42 = yyj42 > l 101790 } else { 101791 yyb42 = r.CheckBreak() 101792 } 101793 if yyb42 { 101794 r.ReadArrayEnd() 101795 return 101796 } 101797 r.ReadArrayElem() 101798 if r.TryDecodeAsNil() { 101799 x.PreemptedByAllocation = "" 101800 } else { 101801 x.PreemptedByAllocation = (string)(r.DecodeString()) 101802 } 101803 yyj42++ 101804 if yyhl42 { 101805 yyb42 = yyj42 > l 101806 } else { 101807 yyb42 = r.CheckBreak() 101808 } 101809 if yyb42 { 101810 r.ReadArrayEnd() 101811 return 101812 } 101813 r.ReadArrayElem() 101814 if r.TryDecodeAsNil() { 101815 x.CreateIndex = 0 101816 } else { 101817 x.CreateIndex = (uint64)(r.DecodeUint64()) 101818 } 101819 yyj42++ 101820 if yyhl42 { 101821 yyb42 = yyj42 > l 101822 } else { 101823 yyb42 = r.CheckBreak() 101824 } 101825 if yyb42 { 101826 r.ReadArrayEnd() 101827 return 101828 } 101829 r.ReadArrayElem() 101830 if r.TryDecodeAsNil() { 101831 x.ModifyIndex = 0 101832 } else { 101833 x.ModifyIndex = (uint64)(r.DecodeUint64()) 101834 } 101835 yyj42++ 101836 if yyhl42 { 101837 yyb42 = yyj42 > l 101838 } else { 101839 yyb42 = r.CheckBreak() 101840 } 101841 if yyb42 { 101842 r.ReadArrayEnd() 101843 return 101844 } 101845 r.ReadArrayElem() 101846 if r.TryDecodeAsNil() { 101847 x.AllocModifyIndex = 0 101848 } else { 101849 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 101850 } 101851 yyj42++ 101852 if yyhl42 { 101853 yyb42 = yyj42 > l 101854 } else { 101855 yyb42 = r.CheckBreak() 101856 } 101857 if yyb42 { 101858 r.ReadArrayEnd() 101859 return 101860 } 101861 r.ReadArrayElem() 101862 if r.TryDecodeAsNil() { 101863 x.CreateTime = 0 101864 } else { 101865 x.CreateTime = (int64)(r.DecodeInt64()) 101866 } 101867 yyj42++ 101868 if yyhl42 { 101869 yyb42 = yyj42 > l 101870 } else { 101871 yyb42 = r.CheckBreak() 101872 } 101873 if yyb42 { 101874 r.ReadArrayEnd() 101875 return 101876 } 101877 r.ReadArrayElem() 101878 if r.TryDecodeAsNil() { 101879 x.ModifyTime = 0 101880 } else { 101881 x.ModifyTime = (int64)(r.DecodeInt64()) 101882 } 101883 for { 101884 yyj42++ 101885 if yyhl42 { 101886 yyb42 = yyj42 > l 101887 } else { 101888 yyb42 = r.CheckBreak() 101889 } 101890 if yyb42 { 101891 break 101892 } 101893 r.ReadArrayElem() 101894 z.DecStructFieldNotFound(yyj42-1, "") 101895 } 101896 r.ReadArrayEnd() 101897 } 101898 101899 func (x *AllocationDiff) CodecEncodeSelf(e *codec1978.Encoder) { 101900 var h codecSelfer100 101901 z, r := codec1978.GenHelperEncoder(e) 101902 _, _, _ = h, z, r 101903 if x == nil { 101904 r.EncodeNil() 101905 } else { 101906 if false { 101907 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 101908 z.EncExtension(x, yyxt1) 101909 } else { 101910 yysep2 := !z.EncBinary() 101911 yy2arr2 := z.EncBasicHandle().StructToArray 101912 _, _ = yysep2, yy2arr2 101913 const yyr2 bool = false // struct tag has 'toArray' 101914 var yyq2 = [34]bool{ // should field at this index be written? 101915 x.ID != "", // ID 101916 x.Namespace != "", // Namespace 101917 x.EvalID != "", // EvalID 101918 x.Name != "", // Name 101919 x.NodeID != "", // NodeID 101920 x.NodeName != "", // NodeName 101921 x.JobID != "", // JobID 101922 x.Job != nil, // Job 101923 x.TaskGroup != "", // TaskGroup 101924 x.Resources != nil, // Resources 101925 x.SharedResources != nil, // SharedResources 101926 len(x.TaskResources) != 0, // TaskResources 101927 x.AllocatedResources != nil, // AllocatedResources 101928 x.Metrics != nil, // Metrics 101929 x.DesiredStatus != "", // DesiredStatus 101930 x.DesiredDescription != "", // DesiredDescription 101931 x.DesiredTransition != DesiredTransition{}, // DesiredTransition 101932 x.ClientStatus != "", // ClientStatus 101933 x.ClientDescription != "", // ClientDescription 101934 len(x.TaskStates) != 0, // TaskStates 101935 len(x.AllocStates) != 0, // AllocStates 101936 x.PreviousAllocation != "", // PreviousAllocation 101937 x.NextAllocation != "", // NextAllocation 101938 x.DeploymentID != "", // DeploymentID 101939 x.DeploymentStatus != nil, // DeploymentStatus 101940 x.RescheduleTracker != nil, // RescheduleTracker 101941 x.FollowupEvalID != "", // FollowupEvalID 101942 len(x.PreemptedAllocations) != 0, // PreemptedAllocations 101943 x.PreemptedByAllocation != "", // PreemptedByAllocation 101944 x.CreateIndex != 0, // CreateIndex 101945 x.ModifyIndex != 0, // ModifyIndex 101946 x.AllocModifyIndex != 0, // AllocModifyIndex 101947 x.CreateTime != 0, // CreateTime 101948 x.ModifyTime != 0, // ModifyTime 101949 } 101950 _ = yyq2 101951 if yyr2 || yy2arr2 { 101952 r.WriteArrayStart(34) 101953 } else { 101954 var yynn2 int 101955 for _, b := range yyq2 { 101956 if b { 101957 yynn2++ 101958 } 101959 } 101960 r.WriteMapStart(yynn2) 101961 yynn2 = 0 101962 } 101963 if yyr2 || yy2arr2 { 101964 r.WriteArrayElem() 101965 if yyq2[0] { 101966 if false { 101967 } else { 101968 if z.EncBasicHandle().StringToRaw { 101969 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 101970 } else { 101971 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 101972 } 101973 } 101974 } else { 101975 if z.EncBasicHandle().StringToRaw { 101976 r.EncodeStringBytesRaw([]byte{}) 101977 } else { 101978 r.EncodeStringEnc(codecSelferCcUTF8100, "") 101979 } 101980 } 101981 } else { 101982 if yyq2[0] { 101983 r.WriteMapElemKey() 101984 if z.IsJSONHandle() { 101985 z.WriteStr("\"ID\"") 101986 } else { 101987 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 101988 } 101989 r.WriteMapElemValue() 101990 if false { 101991 } else { 101992 if z.EncBasicHandle().StringToRaw { 101993 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 101994 } else { 101995 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 101996 } 101997 } 101998 } 101999 } 102000 if yyr2 || yy2arr2 { 102001 r.WriteArrayElem() 102002 if yyq2[1] { 102003 if false { 102004 } else { 102005 if z.EncBasicHandle().StringToRaw { 102006 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 102007 } else { 102008 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 102009 } 102010 } 102011 } else { 102012 if z.EncBasicHandle().StringToRaw { 102013 r.EncodeStringBytesRaw([]byte{}) 102014 } else { 102015 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102016 } 102017 } 102018 } else { 102019 if yyq2[1] { 102020 r.WriteMapElemKey() 102021 if z.IsJSONHandle() { 102022 z.WriteStr("\"Namespace\"") 102023 } else { 102024 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 102025 } 102026 r.WriteMapElemValue() 102027 if false { 102028 } else { 102029 if z.EncBasicHandle().StringToRaw { 102030 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 102031 } else { 102032 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 102033 } 102034 } 102035 } 102036 } 102037 if yyr2 || yy2arr2 { 102038 r.WriteArrayElem() 102039 if yyq2[2] { 102040 if false { 102041 } else { 102042 if z.EncBasicHandle().StringToRaw { 102043 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 102044 } else { 102045 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 102046 } 102047 } 102048 } else { 102049 if z.EncBasicHandle().StringToRaw { 102050 r.EncodeStringBytesRaw([]byte{}) 102051 } else { 102052 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102053 } 102054 } 102055 } else { 102056 if yyq2[2] { 102057 r.WriteMapElemKey() 102058 if z.IsJSONHandle() { 102059 z.WriteStr("\"EvalID\"") 102060 } else { 102061 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 102062 } 102063 r.WriteMapElemValue() 102064 if false { 102065 } else { 102066 if z.EncBasicHandle().StringToRaw { 102067 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 102068 } else { 102069 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 102070 } 102071 } 102072 } 102073 } 102074 if yyr2 || yy2arr2 { 102075 r.WriteArrayElem() 102076 if yyq2[3] { 102077 if false { 102078 } else { 102079 if z.EncBasicHandle().StringToRaw { 102080 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 102081 } else { 102082 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 102083 } 102084 } 102085 } else { 102086 if z.EncBasicHandle().StringToRaw { 102087 r.EncodeStringBytesRaw([]byte{}) 102088 } else { 102089 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102090 } 102091 } 102092 } else { 102093 if yyq2[3] { 102094 r.WriteMapElemKey() 102095 if z.IsJSONHandle() { 102096 z.WriteStr("\"Name\"") 102097 } else { 102098 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 102099 } 102100 r.WriteMapElemValue() 102101 if false { 102102 } else { 102103 if z.EncBasicHandle().StringToRaw { 102104 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 102105 } else { 102106 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 102107 } 102108 } 102109 } 102110 } 102111 if yyr2 || yy2arr2 { 102112 r.WriteArrayElem() 102113 if yyq2[4] { 102114 if false { 102115 } else { 102116 if z.EncBasicHandle().StringToRaw { 102117 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 102118 } else { 102119 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 102120 } 102121 } 102122 } else { 102123 if z.EncBasicHandle().StringToRaw { 102124 r.EncodeStringBytesRaw([]byte{}) 102125 } else { 102126 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102127 } 102128 } 102129 } else { 102130 if yyq2[4] { 102131 r.WriteMapElemKey() 102132 if z.IsJSONHandle() { 102133 z.WriteStr("\"NodeID\"") 102134 } else { 102135 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 102136 } 102137 r.WriteMapElemValue() 102138 if false { 102139 } else { 102140 if z.EncBasicHandle().StringToRaw { 102141 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 102142 } else { 102143 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 102144 } 102145 } 102146 } 102147 } 102148 if yyr2 || yy2arr2 { 102149 r.WriteArrayElem() 102150 if yyq2[5] { 102151 if false { 102152 } else { 102153 if z.EncBasicHandle().StringToRaw { 102154 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 102155 } else { 102156 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 102157 } 102158 } 102159 } else { 102160 if z.EncBasicHandle().StringToRaw { 102161 r.EncodeStringBytesRaw([]byte{}) 102162 } else { 102163 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102164 } 102165 } 102166 } else { 102167 if yyq2[5] { 102168 r.WriteMapElemKey() 102169 if z.IsJSONHandle() { 102170 z.WriteStr("\"NodeName\"") 102171 } else { 102172 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 102173 } 102174 r.WriteMapElemValue() 102175 if false { 102176 } else { 102177 if z.EncBasicHandle().StringToRaw { 102178 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 102179 } else { 102180 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 102181 } 102182 } 102183 } 102184 } 102185 if yyr2 || yy2arr2 { 102186 r.WriteArrayElem() 102187 if yyq2[6] { 102188 if false { 102189 } else { 102190 if z.EncBasicHandle().StringToRaw { 102191 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 102192 } else { 102193 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 102194 } 102195 } 102196 } else { 102197 if z.EncBasicHandle().StringToRaw { 102198 r.EncodeStringBytesRaw([]byte{}) 102199 } else { 102200 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102201 } 102202 } 102203 } else { 102204 if yyq2[6] { 102205 r.WriteMapElemKey() 102206 if z.IsJSONHandle() { 102207 z.WriteStr("\"JobID\"") 102208 } else { 102209 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 102210 } 102211 r.WriteMapElemValue() 102212 if false { 102213 } else { 102214 if z.EncBasicHandle().StringToRaw { 102215 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 102216 } else { 102217 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 102218 } 102219 } 102220 } 102221 } 102222 var yyn24 bool 102223 if x.Job == nil { 102224 yyn24 = true 102225 goto LABEL24 102226 } 102227 LABEL24: 102228 if yyr2 || yy2arr2 { 102229 if yyn24 { 102230 r.WriteArrayElem() 102231 r.EncodeNil() 102232 } else { 102233 r.WriteArrayElem() 102234 if yyq2[7] { 102235 if x.Job == nil { 102236 r.EncodeNil() 102237 } else { 102238 x.Job.CodecEncodeSelf(e) 102239 } 102240 } else { 102241 r.EncodeNil() 102242 } 102243 } 102244 } else { 102245 if yyq2[7] { 102246 r.WriteMapElemKey() 102247 if z.IsJSONHandle() { 102248 z.WriteStr("\"Job\"") 102249 } else { 102250 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 102251 } 102252 r.WriteMapElemValue() 102253 if yyn24 { 102254 r.EncodeNil() 102255 } else { 102256 if x.Job == nil { 102257 r.EncodeNil() 102258 } else { 102259 x.Job.CodecEncodeSelf(e) 102260 } 102261 } 102262 } 102263 } 102264 if yyr2 || yy2arr2 { 102265 r.WriteArrayElem() 102266 if yyq2[8] { 102267 if false { 102268 } else { 102269 if z.EncBasicHandle().StringToRaw { 102270 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 102271 } else { 102272 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 102273 } 102274 } 102275 } else { 102276 if z.EncBasicHandle().StringToRaw { 102277 r.EncodeStringBytesRaw([]byte{}) 102278 } else { 102279 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102280 } 102281 } 102282 } else { 102283 if yyq2[8] { 102284 r.WriteMapElemKey() 102285 if z.IsJSONHandle() { 102286 z.WriteStr("\"TaskGroup\"") 102287 } else { 102288 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 102289 } 102290 r.WriteMapElemValue() 102291 if false { 102292 } else { 102293 if z.EncBasicHandle().StringToRaw { 102294 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 102295 } else { 102296 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 102297 } 102298 } 102299 } 102300 } 102301 var yyn30 bool 102302 if x.Resources == nil { 102303 yyn30 = true 102304 goto LABEL30 102305 } 102306 LABEL30: 102307 if yyr2 || yy2arr2 { 102308 if yyn30 { 102309 r.WriteArrayElem() 102310 r.EncodeNil() 102311 } else { 102312 r.WriteArrayElem() 102313 if yyq2[9] { 102314 if x.Resources == nil { 102315 r.EncodeNil() 102316 } else { 102317 x.Resources.CodecEncodeSelf(e) 102318 } 102319 } else { 102320 r.EncodeNil() 102321 } 102322 } 102323 } else { 102324 if yyq2[9] { 102325 r.WriteMapElemKey() 102326 if z.IsJSONHandle() { 102327 z.WriteStr("\"Resources\"") 102328 } else { 102329 r.EncodeStringEnc(codecSelferCcUTF8100, `Resources`) 102330 } 102331 r.WriteMapElemValue() 102332 if yyn30 { 102333 r.EncodeNil() 102334 } else { 102335 if x.Resources == nil { 102336 r.EncodeNil() 102337 } else { 102338 x.Resources.CodecEncodeSelf(e) 102339 } 102340 } 102341 } 102342 } 102343 var yyn33 bool 102344 if x.SharedResources == nil { 102345 yyn33 = true 102346 goto LABEL33 102347 } 102348 LABEL33: 102349 if yyr2 || yy2arr2 { 102350 if yyn33 { 102351 r.WriteArrayElem() 102352 r.EncodeNil() 102353 } else { 102354 r.WriteArrayElem() 102355 if yyq2[10] { 102356 if x.SharedResources == nil { 102357 r.EncodeNil() 102358 } else { 102359 x.SharedResources.CodecEncodeSelf(e) 102360 } 102361 } else { 102362 r.EncodeNil() 102363 } 102364 } 102365 } else { 102366 if yyq2[10] { 102367 r.WriteMapElemKey() 102368 if z.IsJSONHandle() { 102369 z.WriteStr("\"SharedResources\"") 102370 } else { 102371 r.EncodeStringEnc(codecSelferCcUTF8100, `SharedResources`) 102372 } 102373 r.WriteMapElemValue() 102374 if yyn33 { 102375 r.EncodeNil() 102376 } else { 102377 if x.SharedResources == nil { 102378 r.EncodeNil() 102379 } else { 102380 x.SharedResources.CodecEncodeSelf(e) 102381 } 102382 } 102383 } 102384 } 102385 if yyr2 || yy2arr2 { 102386 r.WriteArrayElem() 102387 if yyq2[11] { 102388 if x.TaskResources == nil { 102389 r.EncodeNil() 102390 } else { 102391 if false { 102392 } else { 102393 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 102394 } 102395 } 102396 } else { 102397 r.EncodeNil() 102398 } 102399 } else { 102400 if yyq2[11] { 102401 r.WriteMapElemKey() 102402 if z.IsJSONHandle() { 102403 z.WriteStr("\"TaskResources\"") 102404 } else { 102405 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskResources`) 102406 } 102407 r.WriteMapElemValue() 102408 if x.TaskResources == nil { 102409 r.EncodeNil() 102410 } else { 102411 if false { 102412 } else { 102413 h.encMapstringPtrtoResources((map[string]*Resources)(x.TaskResources), e) 102414 } 102415 } 102416 } 102417 } 102418 var yyn39 bool 102419 if x.AllocatedResources == nil { 102420 yyn39 = true 102421 goto LABEL39 102422 } 102423 LABEL39: 102424 if yyr2 || yy2arr2 { 102425 if yyn39 { 102426 r.WriteArrayElem() 102427 r.EncodeNil() 102428 } else { 102429 r.WriteArrayElem() 102430 if yyq2[12] { 102431 if x.AllocatedResources == nil { 102432 r.EncodeNil() 102433 } else { 102434 x.AllocatedResources.CodecEncodeSelf(e) 102435 } 102436 } else { 102437 r.EncodeNil() 102438 } 102439 } 102440 } else { 102441 if yyq2[12] { 102442 r.WriteMapElemKey() 102443 if z.IsJSONHandle() { 102444 z.WriteStr("\"AllocatedResources\"") 102445 } else { 102446 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocatedResources`) 102447 } 102448 r.WriteMapElemValue() 102449 if yyn39 { 102450 r.EncodeNil() 102451 } else { 102452 if x.AllocatedResources == nil { 102453 r.EncodeNil() 102454 } else { 102455 x.AllocatedResources.CodecEncodeSelf(e) 102456 } 102457 } 102458 } 102459 } 102460 var yyn42 bool 102461 if x.Metrics == nil { 102462 yyn42 = true 102463 goto LABEL42 102464 } 102465 LABEL42: 102466 if yyr2 || yy2arr2 { 102467 if yyn42 { 102468 r.WriteArrayElem() 102469 r.EncodeNil() 102470 } else { 102471 r.WriteArrayElem() 102472 if yyq2[13] { 102473 if x.Metrics == nil { 102474 r.EncodeNil() 102475 } else { 102476 x.Metrics.CodecEncodeSelf(e) 102477 } 102478 } else { 102479 r.EncodeNil() 102480 } 102481 } 102482 } else { 102483 if yyq2[13] { 102484 r.WriteMapElemKey() 102485 if z.IsJSONHandle() { 102486 z.WriteStr("\"Metrics\"") 102487 } else { 102488 r.EncodeStringEnc(codecSelferCcUTF8100, `Metrics`) 102489 } 102490 r.WriteMapElemValue() 102491 if yyn42 { 102492 r.EncodeNil() 102493 } else { 102494 if x.Metrics == nil { 102495 r.EncodeNil() 102496 } else { 102497 x.Metrics.CodecEncodeSelf(e) 102498 } 102499 } 102500 } 102501 } 102502 if yyr2 || yy2arr2 { 102503 r.WriteArrayElem() 102504 if yyq2[14] { 102505 if false { 102506 } else { 102507 if z.EncBasicHandle().StringToRaw { 102508 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 102509 } else { 102510 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 102511 } 102512 } 102513 } else { 102514 if z.EncBasicHandle().StringToRaw { 102515 r.EncodeStringBytesRaw([]byte{}) 102516 } else { 102517 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102518 } 102519 } 102520 } else { 102521 if yyq2[14] { 102522 r.WriteMapElemKey() 102523 if z.IsJSONHandle() { 102524 z.WriteStr("\"DesiredStatus\"") 102525 } else { 102526 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 102527 } 102528 r.WriteMapElemValue() 102529 if false { 102530 } else { 102531 if z.EncBasicHandle().StringToRaw { 102532 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 102533 } else { 102534 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 102535 } 102536 } 102537 } 102538 } 102539 if yyr2 || yy2arr2 { 102540 r.WriteArrayElem() 102541 if yyq2[15] { 102542 if false { 102543 } else { 102544 if z.EncBasicHandle().StringToRaw { 102545 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 102546 } else { 102547 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 102548 } 102549 } 102550 } else { 102551 if z.EncBasicHandle().StringToRaw { 102552 r.EncodeStringBytesRaw([]byte{}) 102553 } else { 102554 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102555 } 102556 } 102557 } else { 102558 if yyq2[15] { 102559 r.WriteMapElemKey() 102560 if z.IsJSONHandle() { 102561 z.WriteStr("\"DesiredDescription\"") 102562 } else { 102563 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 102564 } 102565 r.WriteMapElemValue() 102566 if false { 102567 } else { 102568 if z.EncBasicHandle().StringToRaw { 102569 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 102570 } else { 102571 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 102572 } 102573 } 102574 } 102575 } 102576 if yyr2 || yy2arr2 { 102577 r.WriteArrayElem() 102578 if yyq2[16] { 102579 yy52 := &x.DesiredTransition 102580 yy52.CodecEncodeSelf(e) 102581 } else { 102582 r.EncodeNil() 102583 } 102584 } else { 102585 if yyq2[16] { 102586 r.WriteMapElemKey() 102587 if z.IsJSONHandle() { 102588 z.WriteStr("\"DesiredTransition\"") 102589 } else { 102590 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 102591 } 102592 r.WriteMapElemValue() 102593 yy54 := &x.DesiredTransition 102594 yy54.CodecEncodeSelf(e) 102595 } 102596 } 102597 if yyr2 || yy2arr2 { 102598 r.WriteArrayElem() 102599 if yyq2[17] { 102600 if false { 102601 } else { 102602 if z.EncBasicHandle().StringToRaw { 102603 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 102604 } else { 102605 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 102606 } 102607 } 102608 } else { 102609 if z.EncBasicHandle().StringToRaw { 102610 r.EncodeStringBytesRaw([]byte{}) 102611 } else { 102612 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102613 } 102614 } 102615 } else { 102616 if yyq2[17] { 102617 r.WriteMapElemKey() 102618 if z.IsJSONHandle() { 102619 z.WriteStr("\"ClientStatus\"") 102620 } else { 102621 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 102622 } 102623 r.WriteMapElemValue() 102624 if false { 102625 } else { 102626 if z.EncBasicHandle().StringToRaw { 102627 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 102628 } else { 102629 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 102630 } 102631 } 102632 } 102633 } 102634 if yyr2 || yy2arr2 { 102635 r.WriteArrayElem() 102636 if yyq2[18] { 102637 if false { 102638 } else { 102639 if z.EncBasicHandle().StringToRaw { 102640 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 102641 } else { 102642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 102643 } 102644 } 102645 } else { 102646 if z.EncBasicHandle().StringToRaw { 102647 r.EncodeStringBytesRaw([]byte{}) 102648 } else { 102649 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102650 } 102651 } 102652 } else { 102653 if yyq2[18] { 102654 r.WriteMapElemKey() 102655 if z.IsJSONHandle() { 102656 z.WriteStr("\"ClientDescription\"") 102657 } else { 102658 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 102659 } 102660 r.WriteMapElemValue() 102661 if false { 102662 } else { 102663 if z.EncBasicHandle().StringToRaw { 102664 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 102665 } else { 102666 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 102667 } 102668 } 102669 } 102670 } 102671 if yyr2 || yy2arr2 { 102672 r.WriteArrayElem() 102673 if yyq2[19] { 102674 if x.TaskStates == nil { 102675 r.EncodeNil() 102676 } else { 102677 if false { 102678 } else { 102679 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 102680 } 102681 } 102682 } else { 102683 r.EncodeNil() 102684 } 102685 } else { 102686 if yyq2[19] { 102687 r.WriteMapElemKey() 102688 if z.IsJSONHandle() { 102689 z.WriteStr("\"TaskStates\"") 102690 } else { 102691 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 102692 } 102693 r.WriteMapElemValue() 102694 if x.TaskStates == nil { 102695 r.EncodeNil() 102696 } else { 102697 if false { 102698 } else { 102699 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 102700 } 102701 } 102702 } 102703 } 102704 if yyr2 || yy2arr2 { 102705 r.WriteArrayElem() 102706 if yyq2[20] { 102707 if x.AllocStates == nil { 102708 r.EncodeNil() 102709 } else { 102710 if false { 102711 } else { 102712 h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) 102713 } 102714 } 102715 } else { 102716 r.EncodeNil() 102717 } 102718 } else { 102719 if yyq2[20] { 102720 r.WriteMapElemKey() 102721 if z.IsJSONHandle() { 102722 z.WriteStr("\"AllocStates\"") 102723 } else { 102724 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocStates`) 102725 } 102726 r.WriteMapElemValue() 102727 if x.AllocStates == nil { 102728 r.EncodeNil() 102729 } else { 102730 if false { 102731 } else { 102732 h.encSlicePtrtoAllocState(([]*AllocState)(x.AllocStates), e) 102733 } 102734 } 102735 } 102736 } 102737 if yyr2 || yy2arr2 { 102738 r.WriteArrayElem() 102739 if yyq2[21] { 102740 if false { 102741 } else { 102742 if z.EncBasicHandle().StringToRaw { 102743 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 102744 } else { 102745 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 102746 } 102747 } 102748 } else { 102749 if z.EncBasicHandle().StringToRaw { 102750 r.EncodeStringBytesRaw([]byte{}) 102751 } else { 102752 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102753 } 102754 } 102755 } else { 102756 if yyq2[21] { 102757 r.WriteMapElemKey() 102758 if z.IsJSONHandle() { 102759 z.WriteStr("\"PreviousAllocation\"") 102760 } else { 102761 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousAllocation`) 102762 } 102763 r.WriteMapElemValue() 102764 if false { 102765 } else { 102766 if z.EncBasicHandle().StringToRaw { 102767 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousAllocation))) 102768 } else { 102769 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousAllocation)) 102770 } 102771 } 102772 } 102773 } 102774 if yyr2 || yy2arr2 { 102775 r.WriteArrayElem() 102776 if yyq2[22] { 102777 if false { 102778 } else { 102779 if z.EncBasicHandle().StringToRaw { 102780 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 102781 } else { 102782 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 102783 } 102784 } 102785 } else { 102786 if z.EncBasicHandle().StringToRaw { 102787 r.EncodeStringBytesRaw([]byte{}) 102788 } else { 102789 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102790 } 102791 } 102792 } else { 102793 if yyq2[22] { 102794 r.WriteMapElemKey() 102795 if z.IsJSONHandle() { 102796 z.WriteStr("\"NextAllocation\"") 102797 } else { 102798 r.EncodeStringEnc(codecSelferCcUTF8100, `NextAllocation`) 102799 } 102800 r.WriteMapElemValue() 102801 if false { 102802 } else { 102803 if z.EncBasicHandle().StringToRaw { 102804 r.EncodeStringBytesRaw(z.BytesView(string(x.NextAllocation))) 102805 } else { 102806 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextAllocation)) 102807 } 102808 } 102809 } 102810 } 102811 if yyr2 || yy2arr2 { 102812 r.WriteArrayElem() 102813 if yyq2[23] { 102814 if false { 102815 } else { 102816 if z.EncBasicHandle().StringToRaw { 102817 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 102818 } else { 102819 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 102820 } 102821 } 102822 } else { 102823 if z.EncBasicHandle().StringToRaw { 102824 r.EncodeStringBytesRaw([]byte{}) 102825 } else { 102826 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102827 } 102828 } 102829 } else { 102830 if yyq2[23] { 102831 r.WriteMapElemKey() 102832 if z.IsJSONHandle() { 102833 z.WriteStr("\"DeploymentID\"") 102834 } else { 102835 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 102836 } 102837 r.WriteMapElemValue() 102838 if false { 102839 } else { 102840 if z.EncBasicHandle().StringToRaw { 102841 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 102842 } else { 102843 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 102844 } 102845 } 102846 } 102847 } 102848 var yyn77 bool 102849 if x.DeploymentStatus == nil { 102850 yyn77 = true 102851 goto LABEL77 102852 } 102853 LABEL77: 102854 if yyr2 || yy2arr2 { 102855 if yyn77 { 102856 r.WriteArrayElem() 102857 r.EncodeNil() 102858 } else { 102859 r.WriteArrayElem() 102860 if yyq2[24] { 102861 if x.DeploymentStatus == nil { 102862 r.EncodeNil() 102863 } else { 102864 x.DeploymentStatus.CodecEncodeSelf(e) 102865 } 102866 } else { 102867 r.EncodeNil() 102868 } 102869 } 102870 } else { 102871 if yyq2[24] { 102872 r.WriteMapElemKey() 102873 if z.IsJSONHandle() { 102874 z.WriteStr("\"DeploymentStatus\"") 102875 } else { 102876 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 102877 } 102878 r.WriteMapElemValue() 102879 if yyn77 { 102880 r.EncodeNil() 102881 } else { 102882 if x.DeploymentStatus == nil { 102883 r.EncodeNil() 102884 } else { 102885 x.DeploymentStatus.CodecEncodeSelf(e) 102886 } 102887 } 102888 } 102889 } 102890 var yyn80 bool 102891 if x.RescheduleTracker == nil { 102892 yyn80 = true 102893 goto LABEL80 102894 } 102895 LABEL80: 102896 if yyr2 || yy2arr2 { 102897 if yyn80 { 102898 r.WriteArrayElem() 102899 r.EncodeNil() 102900 } else { 102901 r.WriteArrayElem() 102902 if yyq2[25] { 102903 if x.RescheduleTracker == nil { 102904 r.EncodeNil() 102905 } else { 102906 x.RescheduleTracker.CodecEncodeSelf(e) 102907 } 102908 } else { 102909 r.EncodeNil() 102910 } 102911 } 102912 } else { 102913 if yyq2[25] { 102914 r.WriteMapElemKey() 102915 if z.IsJSONHandle() { 102916 z.WriteStr("\"RescheduleTracker\"") 102917 } else { 102918 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 102919 } 102920 r.WriteMapElemValue() 102921 if yyn80 { 102922 r.EncodeNil() 102923 } else { 102924 if x.RescheduleTracker == nil { 102925 r.EncodeNil() 102926 } else { 102927 x.RescheduleTracker.CodecEncodeSelf(e) 102928 } 102929 } 102930 } 102931 } 102932 if yyr2 || yy2arr2 { 102933 r.WriteArrayElem() 102934 if yyq2[26] { 102935 if false { 102936 } else { 102937 if z.EncBasicHandle().StringToRaw { 102938 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 102939 } else { 102940 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 102941 } 102942 } 102943 } else { 102944 if z.EncBasicHandle().StringToRaw { 102945 r.EncodeStringBytesRaw([]byte{}) 102946 } else { 102947 r.EncodeStringEnc(codecSelferCcUTF8100, "") 102948 } 102949 } 102950 } else { 102951 if yyq2[26] { 102952 r.WriteMapElemKey() 102953 if z.IsJSONHandle() { 102954 z.WriteStr("\"FollowupEvalID\"") 102955 } else { 102956 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 102957 } 102958 r.WriteMapElemValue() 102959 if false { 102960 } else { 102961 if z.EncBasicHandle().StringToRaw { 102962 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 102963 } else { 102964 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 102965 } 102966 } 102967 } 102968 } 102969 if yyr2 || yy2arr2 { 102970 r.WriteArrayElem() 102971 if yyq2[27] { 102972 if x.PreemptedAllocations == nil { 102973 r.EncodeNil() 102974 } else { 102975 if false { 102976 } else { 102977 z.F.EncSliceStringV(x.PreemptedAllocations, e) 102978 } 102979 } 102980 } else { 102981 r.EncodeNil() 102982 } 102983 } else { 102984 if yyq2[27] { 102985 r.WriteMapElemKey() 102986 if z.IsJSONHandle() { 102987 z.WriteStr("\"PreemptedAllocations\"") 102988 } else { 102989 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 102990 } 102991 r.WriteMapElemValue() 102992 if x.PreemptedAllocations == nil { 102993 r.EncodeNil() 102994 } else { 102995 if false { 102996 } else { 102997 z.F.EncSliceStringV(x.PreemptedAllocations, e) 102998 } 102999 } 103000 } 103001 } 103002 if yyr2 || yy2arr2 { 103003 r.WriteArrayElem() 103004 if yyq2[28] { 103005 if false { 103006 } else { 103007 if z.EncBasicHandle().StringToRaw { 103008 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 103009 } else { 103010 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 103011 } 103012 } 103013 } else { 103014 if z.EncBasicHandle().StringToRaw { 103015 r.EncodeStringBytesRaw([]byte{}) 103016 } else { 103017 r.EncodeStringEnc(codecSelferCcUTF8100, "") 103018 } 103019 } 103020 } else { 103021 if yyq2[28] { 103022 r.WriteMapElemKey() 103023 if z.IsJSONHandle() { 103024 z.WriteStr("\"PreemptedByAllocation\"") 103025 } else { 103026 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 103027 } 103028 r.WriteMapElemValue() 103029 if false { 103030 } else { 103031 if z.EncBasicHandle().StringToRaw { 103032 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 103033 } else { 103034 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 103035 } 103036 } 103037 } 103038 } 103039 if yyr2 || yy2arr2 { 103040 r.WriteArrayElem() 103041 if yyq2[29] { 103042 if false { 103043 } else { 103044 r.EncodeUint(uint64(x.CreateIndex)) 103045 } 103046 } else { 103047 r.EncodeUint(0) 103048 } 103049 } else { 103050 if yyq2[29] { 103051 r.WriteMapElemKey() 103052 if z.IsJSONHandle() { 103053 z.WriteStr("\"CreateIndex\"") 103054 } else { 103055 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 103056 } 103057 r.WriteMapElemValue() 103058 if false { 103059 } else { 103060 r.EncodeUint(uint64(x.CreateIndex)) 103061 } 103062 } 103063 } 103064 if yyr2 || yy2arr2 { 103065 r.WriteArrayElem() 103066 if yyq2[30] { 103067 if false { 103068 } else { 103069 r.EncodeUint(uint64(x.ModifyIndex)) 103070 } 103071 } else { 103072 r.EncodeUint(0) 103073 } 103074 } else { 103075 if yyq2[30] { 103076 r.WriteMapElemKey() 103077 if z.IsJSONHandle() { 103078 z.WriteStr("\"ModifyIndex\"") 103079 } else { 103080 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 103081 } 103082 r.WriteMapElemValue() 103083 if false { 103084 } else { 103085 r.EncodeUint(uint64(x.ModifyIndex)) 103086 } 103087 } 103088 } 103089 if yyr2 || yy2arr2 { 103090 r.WriteArrayElem() 103091 if yyq2[31] { 103092 if false { 103093 } else { 103094 r.EncodeUint(uint64(x.AllocModifyIndex)) 103095 } 103096 } else { 103097 r.EncodeUint(0) 103098 } 103099 } else { 103100 if yyq2[31] { 103101 r.WriteMapElemKey() 103102 if z.IsJSONHandle() { 103103 z.WriteStr("\"AllocModifyIndex\"") 103104 } else { 103105 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocModifyIndex`) 103106 } 103107 r.WriteMapElemValue() 103108 if false { 103109 } else { 103110 r.EncodeUint(uint64(x.AllocModifyIndex)) 103111 } 103112 } 103113 } 103114 if yyr2 || yy2arr2 { 103115 r.WriteArrayElem() 103116 if yyq2[32] { 103117 if false { 103118 } else { 103119 r.EncodeInt(int64(x.CreateTime)) 103120 } 103121 } else { 103122 r.EncodeInt(0) 103123 } 103124 } else { 103125 if yyq2[32] { 103126 r.WriteMapElemKey() 103127 if z.IsJSONHandle() { 103128 z.WriteStr("\"CreateTime\"") 103129 } else { 103130 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 103131 } 103132 r.WriteMapElemValue() 103133 if false { 103134 } else { 103135 r.EncodeInt(int64(x.CreateTime)) 103136 } 103137 } 103138 } 103139 if yyr2 || yy2arr2 { 103140 r.WriteArrayElem() 103141 if yyq2[33] { 103142 if false { 103143 } else { 103144 r.EncodeInt(int64(x.ModifyTime)) 103145 } 103146 } else { 103147 r.EncodeInt(0) 103148 } 103149 } else { 103150 if yyq2[33] { 103151 r.WriteMapElemKey() 103152 if z.IsJSONHandle() { 103153 z.WriteStr("\"ModifyTime\"") 103154 } else { 103155 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 103156 } 103157 r.WriteMapElemValue() 103158 if false { 103159 } else { 103160 r.EncodeInt(int64(x.ModifyTime)) 103161 } 103162 } 103163 } 103164 if yyr2 || yy2arr2 { 103165 r.WriteArrayEnd() 103166 } else { 103167 r.WriteMapEnd() 103168 } 103169 } 103170 } 103171 } 103172 103173 func (x *AllocationDiff) CodecDecodeSelf(d *codec1978.Decoder) { 103174 var h codecSelfer100 103175 z, r := codec1978.GenHelperDecoder(d) 103176 _, _, _ = h, z, r 103177 if false { 103178 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 103179 z.DecExtension(x, yyxt1) 103180 } else { 103181 yyct2 := r.ContainerType() 103182 if yyct2 == codecSelferValueTypeMap100 { 103183 yyl2 := r.ReadMapStart() 103184 if yyl2 == 0 { 103185 r.ReadMapEnd() 103186 } else { 103187 x.codecDecodeSelfFromMap(yyl2, d) 103188 } 103189 } else if yyct2 == codecSelferValueTypeArray100 { 103190 yyl2 := r.ReadArrayStart() 103191 if yyl2 == 0 { 103192 r.ReadArrayEnd() 103193 } else { 103194 x.codecDecodeSelfFromArray(yyl2, d) 103195 } 103196 } else { 103197 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 103198 } 103199 } 103200 } 103201 103202 func (x *AllocationDiff) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 103203 var h codecSelfer100 103204 z, r := codec1978.GenHelperDecoder(d) 103205 _, _, _ = h, z, r 103206 var yyhl3 bool = l >= 0 103207 for yyj3 := 0; ; yyj3++ { 103208 if yyhl3 { 103209 if yyj3 >= l { 103210 break 103211 } 103212 } else { 103213 if r.CheckBreak() { 103214 break 103215 } 103216 } 103217 r.ReadMapElemKey() 103218 yys3 := z.StringView(r.DecodeStringAsBytes()) 103219 r.ReadMapElemValue() 103220 switch yys3 { 103221 case "ID": 103222 if r.TryDecodeAsNil() { 103223 x.ID = "" 103224 } else { 103225 x.ID = (string)(r.DecodeString()) 103226 } 103227 case "Namespace": 103228 if r.TryDecodeAsNil() { 103229 x.Namespace = "" 103230 } else { 103231 x.Namespace = (string)(r.DecodeString()) 103232 } 103233 case "EvalID": 103234 if r.TryDecodeAsNil() { 103235 x.EvalID = "" 103236 } else { 103237 x.EvalID = (string)(r.DecodeString()) 103238 } 103239 case "Name": 103240 if r.TryDecodeAsNil() { 103241 x.Name = "" 103242 } else { 103243 x.Name = (string)(r.DecodeString()) 103244 } 103245 case "NodeID": 103246 if r.TryDecodeAsNil() { 103247 x.NodeID = "" 103248 } else { 103249 x.NodeID = (string)(r.DecodeString()) 103250 } 103251 case "NodeName": 103252 if r.TryDecodeAsNil() { 103253 x.NodeName = "" 103254 } else { 103255 x.NodeName = (string)(r.DecodeString()) 103256 } 103257 case "JobID": 103258 if r.TryDecodeAsNil() { 103259 x.JobID = "" 103260 } else { 103261 x.JobID = (string)(r.DecodeString()) 103262 } 103263 case "Job": 103264 if r.TryDecodeAsNil() { 103265 if true && x.Job != nil { 103266 x.Job = nil 103267 } 103268 } else { 103269 if x.Job == nil { 103270 x.Job = new(Job) 103271 } 103272 103273 x.Job.CodecDecodeSelf(d) 103274 } 103275 case "TaskGroup": 103276 if r.TryDecodeAsNil() { 103277 x.TaskGroup = "" 103278 } else { 103279 x.TaskGroup = (string)(r.DecodeString()) 103280 } 103281 case "Resources": 103282 if r.TryDecodeAsNil() { 103283 if true && x.Resources != nil { 103284 x.Resources = nil 103285 } 103286 } else { 103287 if x.Resources == nil { 103288 x.Resources = new(Resources) 103289 } 103290 103291 x.Resources.CodecDecodeSelf(d) 103292 } 103293 case "SharedResources": 103294 if r.TryDecodeAsNil() { 103295 if true && x.SharedResources != nil { 103296 x.SharedResources = nil 103297 } 103298 } else { 103299 if x.SharedResources == nil { 103300 x.SharedResources = new(Resources) 103301 } 103302 103303 x.SharedResources.CodecDecodeSelf(d) 103304 } 103305 case "TaskResources": 103306 if r.TryDecodeAsNil() { 103307 x.TaskResources = nil 103308 } else { 103309 if false { 103310 } else { 103311 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 103312 } 103313 } 103314 case "AllocatedResources": 103315 if r.TryDecodeAsNil() { 103316 if true && x.AllocatedResources != nil { 103317 x.AllocatedResources = nil 103318 } 103319 } else { 103320 if x.AllocatedResources == nil { 103321 x.AllocatedResources = new(AllocatedResources) 103322 } 103323 103324 x.AllocatedResources.CodecDecodeSelf(d) 103325 } 103326 case "Metrics": 103327 if r.TryDecodeAsNil() { 103328 if true && x.Metrics != nil { 103329 x.Metrics = nil 103330 } 103331 } else { 103332 if x.Metrics == nil { 103333 x.Metrics = new(AllocMetric) 103334 } 103335 103336 x.Metrics.CodecDecodeSelf(d) 103337 } 103338 case "DesiredStatus": 103339 if r.TryDecodeAsNil() { 103340 x.DesiredStatus = "" 103341 } else { 103342 x.DesiredStatus = (string)(r.DecodeString()) 103343 } 103344 case "DesiredDescription": 103345 if r.TryDecodeAsNil() { 103346 x.DesiredDescription = "" 103347 } else { 103348 x.DesiredDescription = (string)(r.DecodeString()) 103349 } 103350 case "DesiredTransition": 103351 if r.TryDecodeAsNil() { 103352 x.DesiredTransition = DesiredTransition{} 103353 } else { 103354 x.DesiredTransition.CodecDecodeSelf(d) 103355 } 103356 case "ClientStatus": 103357 if r.TryDecodeAsNil() { 103358 x.ClientStatus = "" 103359 } else { 103360 x.ClientStatus = (string)(r.DecodeString()) 103361 } 103362 case "ClientDescription": 103363 if r.TryDecodeAsNil() { 103364 x.ClientDescription = "" 103365 } else { 103366 x.ClientDescription = (string)(r.DecodeString()) 103367 } 103368 case "TaskStates": 103369 if r.TryDecodeAsNil() { 103370 x.TaskStates = nil 103371 } else { 103372 if false { 103373 } else { 103374 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 103375 } 103376 } 103377 case "AllocStates": 103378 if r.TryDecodeAsNil() { 103379 x.AllocStates = nil 103380 } else { 103381 if false { 103382 } else { 103383 h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) 103384 } 103385 } 103386 case "PreviousAllocation": 103387 if r.TryDecodeAsNil() { 103388 x.PreviousAllocation = "" 103389 } else { 103390 x.PreviousAllocation = (string)(r.DecodeString()) 103391 } 103392 case "NextAllocation": 103393 if r.TryDecodeAsNil() { 103394 x.NextAllocation = "" 103395 } else { 103396 x.NextAllocation = (string)(r.DecodeString()) 103397 } 103398 case "DeploymentID": 103399 if r.TryDecodeAsNil() { 103400 x.DeploymentID = "" 103401 } else { 103402 x.DeploymentID = (string)(r.DecodeString()) 103403 } 103404 case "DeploymentStatus": 103405 if r.TryDecodeAsNil() { 103406 if true && x.DeploymentStatus != nil { 103407 x.DeploymentStatus = nil 103408 } 103409 } else { 103410 if x.DeploymentStatus == nil { 103411 x.DeploymentStatus = new(AllocDeploymentStatus) 103412 } 103413 103414 x.DeploymentStatus.CodecDecodeSelf(d) 103415 } 103416 case "RescheduleTracker": 103417 if r.TryDecodeAsNil() { 103418 if true && x.RescheduleTracker != nil { 103419 x.RescheduleTracker = nil 103420 } 103421 } else { 103422 if x.RescheduleTracker == nil { 103423 x.RescheduleTracker = new(RescheduleTracker) 103424 } 103425 103426 x.RescheduleTracker.CodecDecodeSelf(d) 103427 } 103428 case "FollowupEvalID": 103429 if r.TryDecodeAsNil() { 103430 x.FollowupEvalID = "" 103431 } else { 103432 x.FollowupEvalID = (string)(r.DecodeString()) 103433 } 103434 case "PreemptedAllocations": 103435 if r.TryDecodeAsNil() { 103436 x.PreemptedAllocations = nil 103437 } else { 103438 if false { 103439 } else { 103440 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 103441 } 103442 } 103443 case "PreemptedByAllocation": 103444 if r.TryDecodeAsNil() { 103445 x.PreemptedByAllocation = "" 103446 } else { 103447 x.PreemptedByAllocation = (string)(r.DecodeString()) 103448 } 103449 case "CreateIndex": 103450 if r.TryDecodeAsNil() { 103451 x.CreateIndex = 0 103452 } else { 103453 x.CreateIndex = (uint64)(r.DecodeUint64()) 103454 } 103455 case "ModifyIndex": 103456 if r.TryDecodeAsNil() { 103457 x.ModifyIndex = 0 103458 } else { 103459 x.ModifyIndex = (uint64)(r.DecodeUint64()) 103460 } 103461 case "AllocModifyIndex": 103462 if r.TryDecodeAsNil() { 103463 x.AllocModifyIndex = 0 103464 } else { 103465 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 103466 } 103467 case "CreateTime": 103468 if r.TryDecodeAsNil() { 103469 x.CreateTime = 0 103470 } else { 103471 x.CreateTime = (int64)(r.DecodeInt64()) 103472 } 103473 case "ModifyTime": 103474 if r.TryDecodeAsNil() { 103475 x.ModifyTime = 0 103476 } else { 103477 x.ModifyTime = (int64)(r.DecodeInt64()) 103478 } 103479 default: 103480 z.DecStructFieldNotFound(-1, yys3) 103481 } // end switch yys3 103482 } // end for yyj3 103483 r.ReadMapEnd() 103484 } 103485 103486 func (x *AllocationDiff) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 103487 var h codecSelfer100 103488 z, r := codec1978.GenHelperDecoder(d) 103489 _, _, _ = h, z, r 103490 var yyj42 int 103491 var yyb42 bool 103492 var yyhl42 bool = l >= 0 103493 yyj42++ 103494 if yyhl42 { 103495 yyb42 = yyj42 > l 103496 } else { 103497 yyb42 = r.CheckBreak() 103498 } 103499 if yyb42 { 103500 r.ReadArrayEnd() 103501 return 103502 } 103503 r.ReadArrayElem() 103504 if r.TryDecodeAsNil() { 103505 x.ID = "" 103506 } else { 103507 x.ID = (string)(r.DecodeString()) 103508 } 103509 yyj42++ 103510 if yyhl42 { 103511 yyb42 = yyj42 > l 103512 } else { 103513 yyb42 = r.CheckBreak() 103514 } 103515 if yyb42 { 103516 r.ReadArrayEnd() 103517 return 103518 } 103519 r.ReadArrayElem() 103520 if r.TryDecodeAsNil() { 103521 x.Namespace = "" 103522 } else { 103523 x.Namespace = (string)(r.DecodeString()) 103524 } 103525 yyj42++ 103526 if yyhl42 { 103527 yyb42 = yyj42 > l 103528 } else { 103529 yyb42 = r.CheckBreak() 103530 } 103531 if yyb42 { 103532 r.ReadArrayEnd() 103533 return 103534 } 103535 r.ReadArrayElem() 103536 if r.TryDecodeAsNil() { 103537 x.EvalID = "" 103538 } else { 103539 x.EvalID = (string)(r.DecodeString()) 103540 } 103541 yyj42++ 103542 if yyhl42 { 103543 yyb42 = yyj42 > l 103544 } else { 103545 yyb42 = r.CheckBreak() 103546 } 103547 if yyb42 { 103548 r.ReadArrayEnd() 103549 return 103550 } 103551 r.ReadArrayElem() 103552 if r.TryDecodeAsNil() { 103553 x.Name = "" 103554 } else { 103555 x.Name = (string)(r.DecodeString()) 103556 } 103557 yyj42++ 103558 if yyhl42 { 103559 yyb42 = yyj42 > l 103560 } else { 103561 yyb42 = r.CheckBreak() 103562 } 103563 if yyb42 { 103564 r.ReadArrayEnd() 103565 return 103566 } 103567 r.ReadArrayElem() 103568 if r.TryDecodeAsNil() { 103569 x.NodeID = "" 103570 } else { 103571 x.NodeID = (string)(r.DecodeString()) 103572 } 103573 yyj42++ 103574 if yyhl42 { 103575 yyb42 = yyj42 > l 103576 } else { 103577 yyb42 = r.CheckBreak() 103578 } 103579 if yyb42 { 103580 r.ReadArrayEnd() 103581 return 103582 } 103583 r.ReadArrayElem() 103584 if r.TryDecodeAsNil() { 103585 x.NodeName = "" 103586 } else { 103587 x.NodeName = (string)(r.DecodeString()) 103588 } 103589 yyj42++ 103590 if yyhl42 { 103591 yyb42 = yyj42 > l 103592 } else { 103593 yyb42 = r.CheckBreak() 103594 } 103595 if yyb42 { 103596 r.ReadArrayEnd() 103597 return 103598 } 103599 r.ReadArrayElem() 103600 if r.TryDecodeAsNil() { 103601 x.JobID = "" 103602 } else { 103603 x.JobID = (string)(r.DecodeString()) 103604 } 103605 yyj42++ 103606 if yyhl42 { 103607 yyb42 = yyj42 > l 103608 } else { 103609 yyb42 = r.CheckBreak() 103610 } 103611 if yyb42 { 103612 r.ReadArrayEnd() 103613 return 103614 } 103615 r.ReadArrayElem() 103616 if r.TryDecodeAsNil() { 103617 if true && x.Job != nil { 103618 x.Job = nil 103619 } 103620 } else { 103621 if x.Job == nil { 103622 x.Job = new(Job) 103623 } 103624 103625 x.Job.CodecDecodeSelf(d) 103626 } 103627 yyj42++ 103628 if yyhl42 { 103629 yyb42 = yyj42 > l 103630 } else { 103631 yyb42 = r.CheckBreak() 103632 } 103633 if yyb42 { 103634 r.ReadArrayEnd() 103635 return 103636 } 103637 r.ReadArrayElem() 103638 if r.TryDecodeAsNil() { 103639 x.TaskGroup = "" 103640 } else { 103641 x.TaskGroup = (string)(r.DecodeString()) 103642 } 103643 yyj42++ 103644 if yyhl42 { 103645 yyb42 = yyj42 > l 103646 } else { 103647 yyb42 = r.CheckBreak() 103648 } 103649 if yyb42 { 103650 r.ReadArrayEnd() 103651 return 103652 } 103653 r.ReadArrayElem() 103654 if r.TryDecodeAsNil() { 103655 if true && x.Resources != nil { 103656 x.Resources = nil 103657 } 103658 } else { 103659 if x.Resources == nil { 103660 x.Resources = new(Resources) 103661 } 103662 103663 x.Resources.CodecDecodeSelf(d) 103664 } 103665 yyj42++ 103666 if yyhl42 { 103667 yyb42 = yyj42 > l 103668 } else { 103669 yyb42 = r.CheckBreak() 103670 } 103671 if yyb42 { 103672 r.ReadArrayEnd() 103673 return 103674 } 103675 r.ReadArrayElem() 103676 if r.TryDecodeAsNil() { 103677 if true && x.SharedResources != nil { 103678 x.SharedResources = nil 103679 } 103680 } else { 103681 if x.SharedResources == nil { 103682 x.SharedResources = new(Resources) 103683 } 103684 103685 x.SharedResources.CodecDecodeSelf(d) 103686 } 103687 yyj42++ 103688 if yyhl42 { 103689 yyb42 = yyj42 > l 103690 } else { 103691 yyb42 = r.CheckBreak() 103692 } 103693 if yyb42 { 103694 r.ReadArrayEnd() 103695 return 103696 } 103697 r.ReadArrayElem() 103698 if r.TryDecodeAsNil() { 103699 x.TaskResources = nil 103700 } else { 103701 if false { 103702 } else { 103703 h.decMapstringPtrtoResources((*map[string]*Resources)(&x.TaskResources), d) 103704 } 103705 } 103706 yyj42++ 103707 if yyhl42 { 103708 yyb42 = yyj42 > l 103709 } else { 103710 yyb42 = r.CheckBreak() 103711 } 103712 if yyb42 { 103713 r.ReadArrayEnd() 103714 return 103715 } 103716 r.ReadArrayElem() 103717 if r.TryDecodeAsNil() { 103718 if true && x.AllocatedResources != nil { 103719 x.AllocatedResources = nil 103720 } 103721 } else { 103722 if x.AllocatedResources == nil { 103723 x.AllocatedResources = new(AllocatedResources) 103724 } 103725 103726 x.AllocatedResources.CodecDecodeSelf(d) 103727 } 103728 yyj42++ 103729 if yyhl42 { 103730 yyb42 = yyj42 > l 103731 } else { 103732 yyb42 = r.CheckBreak() 103733 } 103734 if yyb42 { 103735 r.ReadArrayEnd() 103736 return 103737 } 103738 r.ReadArrayElem() 103739 if r.TryDecodeAsNil() { 103740 if true && x.Metrics != nil { 103741 x.Metrics = nil 103742 } 103743 } else { 103744 if x.Metrics == nil { 103745 x.Metrics = new(AllocMetric) 103746 } 103747 103748 x.Metrics.CodecDecodeSelf(d) 103749 } 103750 yyj42++ 103751 if yyhl42 { 103752 yyb42 = yyj42 > l 103753 } else { 103754 yyb42 = r.CheckBreak() 103755 } 103756 if yyb42 { 103757 r.ReadArrayEnd() 103758 return 103759 } 103760 r.ReadArrayElem() 103761 if r.TryDecodeAsNil() { 103762 x.DesiredStatus = "" 103763 } else { 103764 x.DesiredStatus = (string)(r.DecodeString()) 103765 } 103766 yyj42++ 103767 if yyhl42 { 103768 yyb42 = yyj42 > l 103769 } else { 103770 yyb42 = r.CheckBreak() 103771 } 103772 if yyb42 { 103773 r.ReadArrayEnd() 103774 return 103775 } 103776 r.ReadArrayElem() 103777 if r.TryDecodeAsNil() { 103778 x.DesiredDescription = "" 103779 } else { 103780 x.DesiredDescription = (string)(r.DecodeString()) 103781 } 103782 yyj42++ 103783 if yyhl42 { 103784 yyb42 = yyj42 > l 103785 } else { 103786 yyb42 = r.CheckBreak() 103787 } 103788 if yyb42 { 103789 r.ReadArrayEnd() 103790 return 103791 } 103792 r.ReadArrayElem() 103793 if r.TryDecodeAsNil() { 103794 x.DesiredTransition = DesiredTransition{} 103795 } else { 103796 x.DesiredTransition.CodecDecodeSelf(d) 103797 } 103798 yyj42++ 103799 if yyhl42 { 103800 yyb42 = yyj42 > l 103801 } else { 103802 yyb42 = r.CheckBreak() 103803 } 103804 if yyb42 { 103805 r.ReadArrayEnd() 103806 return 103807 } 103808 r.ReadArrayElem() 103809 if r.TryDecodeAsNil() { 103810 x.ClientStatus = "" 103811 } else { 103812 x.ClientStatus = (string)(r.DecodeString()) 103813 } 103814 yyj42++ 103815 if yyhl42 { 103816 yyb42 = yyj42 > l 103817 } else { 103818 yyb42 = r.CheckBreak() 103819 } 103820 if yyb42 { 103821 r.ReadArrayEnd() 103822 return 103823 } 103824 r.ReadArrayElem() 103825 if r.TryDecodeAsNil() { 103826 x.ClientDescription = "" 103827 } else { 103828 x.ClientDescription = (string)(r.DecodeString()) 103829 } 103830 yyj42++ 103831 if yyhl42 { 103832 yyb42 = yyj42 > l 103833 } else { 103834 yyb42 = r.CheckBreak() 103835 } 103836 if yyb42 { 103837 r.ReadArrayEnd() 103838 return 103839 } 103840 r.ReadArrayElem() 103841 if r.TryDecodeAsNil() { 103842 x.TaskStates = nil 103843 } else { 103844 if false { 103845 } else { 103846 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 103847 } 103848 } 103849 yyj42++ 103850 if yyhl42 { 103851 yyb42 = yyj42 > l 103852 } else { 103853 yyb42 = r.CheckBreak() 103854 } 103855 if yyb42 { 103856 r.ReadArrayEnd() 103857 return 103858 } 103859 r.ReadArrayElem() 103860 if r.TryDecodeAsNil() { 103861 x.AllocStates = nil 103862 } else { 103863 if false { 103864 } else { 103865 h.decSlicePtrtoAllocState((*[]*AllocState)(&x.AllocStates), d) 103866 } 103867 } 103868 yyj42++ 103869 if yyhl42 { 103870 yyb42 = yyj42 > l 103871 } else { 103872 yyb42 = r.CheckBreak() 103873 } 103874 if yyb42 { 103875 r.ReadArrayEnd() 103876 return 103877 } 103878 r.ReadArrayElem() 103879 if r.TryDecodeAsNil() { 103880 x.PreviousAllocation = "" 103881 } else { 103882 x.PreviousAllocation = (string)(r.DecodeString()) 103883 } 103884 yyj42++ 103885 if yyhl42 { 103886 yyb42 = yyj42 > l 103887 } else { 103888 yyb42 = r.CheckBreak() 103889 } 103890 if yyb42 { 103891 r.ReadArrayEnd() 103892 return 103893 } 103894 r.ReadArrayElem() 103895 if r.TryDecodeAsNil() { 103896 x.NextAllocation = "" 103897 } else { 103898 x.NextAllocation = (string)(r.DecodeString()) 103899 } 103900 yyj42++ 103901 if yyhl42 { 103902 yyb42 = yyj42 > l 103903 } else { 103904 yyb42 = r.CheckBreak() 103905 } 103906 if yyb42 { 103907 r.ReadArrayEnd() 103908 return 103909 } 103910 r.ReadArrayElem() 103911 if r.TryDecodeAsNil() { 103912 x.DeploymentID = "" 103913 } else { 103914 x.DeploymentID = (string)(r.DecodeString()) 103915 } 103916 yyj42++ 103917 if yyhl42 { 103918 yyb42 = yyj42 > l 103919 } else { 103920 yyb42 = r.CheckBreak() 103921 } 103922 if yyb42 { 103923 r.ReadArrayEnd() 103924 return 103925 } 103926 r.ReadArrayElem() 103927 if r.TryDecodeAsNil() { 103928 if true && x.DeploymentStatus != nil { 103929 x.DeploymentStatus = nil 103930 } 103931 } else { 103932 if x.DeploymentStatus == nil { 103933 x.DeploymentStatus = new(AllocDeploymentStatus) 103934 } 103935 103936 x.DeploymentStatus.CodecDecodeSelf(d) 103937 } 103938 yyj42++ 103939 if yyhl42 { 103940 yyb42 = yyj42 > l 103941 } else { 103942 yyb42 = r.CheckBreak() 103943 } 103944 if yyb42 { 103945 r.ReadArrayEnd() 103946 return 103947 } 103948 r.ReadArrayElem() 103949 if r.TryDecodeAsNil() { 103950 if true && x.RescheduleTracker != nil { 103951 x.RescheduleTracker = nil 103952 } 103953 } else { 103954 if x.RescheduleTracker == nil { 103955 x.RescheduleTracker = new(RescheduleTracker) 103956 } 103957 103958 x.RescheduleTracker.CodecDecodeSelf(d) 103959 } 103960 yyj42++ 103961 if yyhl42 { 103962 yyb42 = yyj42 > l 103963 } else { 103964 yyb42 = r.CheckBreak() 103965 } 103966 if yyb42 { 103967 r.ReadArrayEnd() 103968 return 103969 } 103970 r.ReadArrayElem() 103971 if r.TryDecodeAsNil() { 103972 x.FollowupEvalID = "" 103973 } else { 103974 x.FollowupEvalID = (string)(r.DecodeString()) 103975 } 103976 yyj42++ 103977 if yyhl42 { 103978 yyb42 = yyj42 > l 103979 } else { 103980 yyb42 = r.CheckBreak() 103981 } 103982 if yyb42 { 103983 r.ReadArrayEnd() 103984 return 103985 } 103986 r.ReadArrayElem() 103987 if r.TryDecodeAsNil() { 103988 x.PreemptedAllocations = nil 103989 } else { 103990 if false { 103991 } else { 103992 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 103993 } 103994 } 103995 yyj42++ 103996 if yyhl42 { 103997 yyb42 = yyj42 > l 103998 } else { 103999 yyb42 = r.CheckBreak() 104000 } 104001 if yyb42 { 104002 r.ReadArrayEnd() 104003 return 104004 } 104005 r.ReadArrayElem() 104006 if r.TryDecodeAsNil() { 104007 x.PreemptedByAllocation = "" 104008 } else { 104009 x.PreemptedByAllocation = (string)(r.DecodeString()) 104010 } 104011 yyj42++ 104012 if yyhl42 { 104013 yyb42 = yyj42 > l 104014 } else { 104015 yyb42 = r.CheckBreak() 104016 } 104017 if yyb42 { 104018 r.ReadArrayEnd() 104019 return 104020 } 104021 r.ReadArrayElem() 104022 if r.TryDecodeAsNil() { 104023 x.CreateIndex = 0 104024 } else { 104025 x.CreateIndex = (uint64)(r.DecodeUint64()) 104026 } 104027 yyj42++ 104028 if yyhl42 { 104029 yyb42 = yyj42 > l 104030 } else { 104031 yyb42 = r.CheckBreak() 104032 } 104033 if yyb42 { 104034 r.ReadArrayEnd() 104035 return 104036 } 104037 r.ReadArrayElem() 104038 if r.TryDecodeAsNil() { 104039 x.ModifyIndex = 0 104040 } else { 104041 x.ModifyIndex = (uint64)(r.DecodeUint64()) 104042 } 104043 yyj42++ 104044 if yyhl42 { 104045 yyb42 = yyj42 > l 104046 } else { 104047 yyb42 = r.CheckBreak() 104048 } 104049 if yyb42 { 104050 r.ReadArrayEnd() 104051 return 104052 } 104053 r.ReadArrayElem() 104054 if r.TryDecodeAsNil() { 104055 x.AllocModifyIndex = 0 104056 } else { 104057 x.AllocModifyIndex = (uint64)(r.DecodeUint64()) 104058 } 104059 yyj42++ 104060 if yyhl42 { 104061 yyb42 = yyj42 > l 104062 } else { 104063 yyb42 = r.CheckBreak() 104064 } 104065 if yyb42 { 104066 r.ReadArrayEnd() 104067 return 104068 } 104069 r.ReadArrayElem() 104070 if r.TryDecodeAsNil() { 104071 x.CreateTime = 0 104072 } else { 104073 x.CreateTime = (int64)(r.DecodeInt64()) 104074 } 104075 yyj42++ 104076 if yyhl42 { 104077 yyb42 = yyj42 > l 104078 } else { 104079 yyb42 = r.CheckBreak() 104080 } 104081 if yyb42 { 104082 r.ReadArrayEnd() 104083 return 104084 } 104085 r.ReadArrayElem() 104086 if r.TryDecodeAsNil() { 104087 x.ModifyTime = 0 104088 } else { 104089 x.ModifyTime = (int64)(r.DecodeInt64()) 104090 } 104091 for { 104092 yyj42++ 104093 if yyhl42 { 104094 yyb42 = yyj42 > l 104095 } else { 104096 yyb42 = r.CheckBreak() 104097 } 104098 if yyb42 { 104099 break 104100 } 104101 r.ReadArrayElem() 104102 z.DecStructFieldNotFound(yyj42-1, "") 104103 } 104104 r.ReadArrayEnd() 104105 } 104106 104107 func (x *AllocListStub) CodecEncodeSelf(e *codec1978.Encoder) { 104108 var h codecSelfer100 104109 z, r := codec1978.GenHelperEncoder(e) 104110 _, _, _ = h, z, r 104111 if x == nil { 104112 r.EncodeNil() 104113 } else { 104114 if false { 104115 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104116 z.EncExtension(x, yyxt1) 104117 } else { 104118 yysep2 := !z.EncBinary() 104119 yy2arr2 := z.EncBasicHandle().StructToArray 104120 _, _ = yysep2, yy2arr2 104121 const yyr2 bool = false // struct tag has 'toArray' 104122 if yyr2 || yy2arr2 { 104123 r.WriteArrayStart(25) 104124 } else { 104125 r.WriteMapStart(25) 104126 } 104127 if yyr2 || yy2arr2 { 104128 r.WriteArrayElem() 104129 if false { 104130 } else { 104131 if z.EncBasicHandle().StringToRaw { 104132 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 104133 } else { 104134 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 104135 } 104136 } 104137 } else { 104138 r.WriteMapElemKey() 104139 if z.IsJSONHandle() { 104140 z.WriteStr("\"ID\"") 104141 } else { 104142 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 104143 } 104144 r.WriteMapElemValue() 104145 if false { 104146 } else { 104147 if z.EncBasicHandle().StringToRaw { 104148 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 104149 } else { 104150 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 104151 } 104152 } 104153 } 104154 if yyr2 || yy2arr2 { 104155 r.WriteArrayElem() 104156 if false { 104157 } else { 104158 if z.EncBasicHandle().StringToRaw { 104159 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 104160 } else { 104161 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 104162 } 104163 } 104164 } else { 104165 r.WriteMapElemKey() 104166 if z.IsJSONHandle() { 104167 z.WriteStr("\"EvalID\"") 104168 } else { 104169 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 104170 } 104171 r.WriteMapElemValue() 104172 if false { 104173 } else { 104174 if z.EncBasicHandle().StringToRaw { 104175 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 104176 } else { 104177 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 104178 } 104179 } 104180 } 104181 if yyr2 || yy2arr2 { 104182 r.WriteArrayElem() 104183 if false { 104184 } else { 104185 if z.EncBasicHandle().StringToRaw { 104186 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 104187 } else { 104188 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 104189 } 104190 } 104191 } else { 104192 r.WriteMapElemKey() 104193 if z.IsJSONHandle() { 104194 z.WriteStr("\"Name\"") 104195 } else { 104196 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 104197 } 104198 r.WriteMapElemValue() 104199 if false { 104200 } else { 104201 if z.EncBasicHandle().StringToRaw { 104202 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 104203 } else { 104204 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 104205 } 104206 } 104207 } 104208 if yyr2 || yy2arr2 { 104209 r.WriteArrayElem() 104210 if false { 104211 } else { 104212 if z.EncBasicHandle().StringToRaw { 104213 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 104214 } else { 104215 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 104216 } 104217 } 104218 } else { 104219 r.WriteMapElemKey() 104220 if z.IsJSONHandle() { 104221 z.WriteStr("\"Namespace\"") 104222 } else { 104223 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 104224 } 104225 r.WriteMapElemValue() 104226 if false { 104227 } else { 104228 if z.EncBasicHandle().StringToRaw { 104229 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 104230 } else { 104231 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 104232 } 104233 } 104234 } 104235 if yyr2 || yy2arr2 { 104236 r.WriteArrayElem() 104237 if false { 104238 } else { 104239 if z.EncBasicHandle().StringToRaw { 104240 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 104241 } else { 104242 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 104243 } 104244 } 104245 } else { 104246 r.WriteMapElemKey() 104247 if z.IsJSONHandle() { 104248 z.WriteStr("\"NodeID\"") 104249 } else { 104250 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 104251 } 104252 r.WriteMapElemValue() 104253 if false { 104254 } else { 104255 if z.EncBasicHandle().StringToRaw { 104256 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 104257 } else { 104258 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 104259 } 104260 } 104261 } 104262 if yyr2 || yy2arr2 { 104263 r.WriteArrayElem() 104264 if false { 104265 } else { 104266 if z.EncBasicHandle().StringToRaw { 104267 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 104268 } else { 104269 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 104270 } 104271 } 104272 } else { 104273 r.WriteMapElemKey() 104274 if z.IsJSONHandle() { 104275 z.WriteStr("\"NodeName\"") 104276 } else { 104277 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeName`) 104278 } 104279 r.WriteMapElemValue() 104280 if false { 104281 } else { 104282 if z.EncBasicHandle().StringToRaw { 104283 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeName))) 104284 } else { 104285 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeName)) 104286 } 104287 } 104288 } 104289 if yyr2 || yy2arr2 { 104290 r.WriteArrayElem() 104291 if false { 104292 } else { 104293 if z.EncBasicHandle().StringToRaw { 104294 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 104295 } else { 104296 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 104297 } 104298 } 104299 } else { 104300 r.WriteMapElemKey() 104301 if z.IsJSONHandle() { 104302 z.WriteStr("\"JobID\"") 104303 } else { 104304 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 104305 } 104306 r.WriteMapElemValue() 104307 if false { 104308 } else { 104309 if z.EncBasicHandle().StringToRaw { 104310 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 104311 } else { 104312 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 104313 } 104314 } 104315 } 104316 if yyr2 || yy2arr2 { 104317 r.WriteArrayElem() 104318 if false { 104319 } else { 104320 if z.EncBasicHandle().StringToRaw { 104321 r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) 104322 } else { 104323 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) 104324 } 104325 } 104326 } else { 104327 r.WriteMapElemKey() 104328 if z.IsJSONHandle() { 104329 z.WriteStr("\"JobType\"") 104330 } else { 104331 r.EncodeStringEnc(codecSelferCcUTF8100, `JobType`) 104332 } 104333 r.WriteMapElemValue() 104334 if false { 104335 } else { 104336 if z.EncBasicHandle().StringToRaw { 104337 r.EncodeStringBytesRaw(z.BytesView(string(x.JobType))) 104338 } else { 104339 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobType)) 104340 } 104341 } 104342 } 104343 if yyr2 || yy2arr2 { 104344 r.WriteArrayElem() 104345 if false { 104346 } else { 104347 r.EncodeUint(uint64(x.JobVersion)) 104348 } 104349 } else { 104350 r.WriteMapElemKey() 104351 if z.IsJSONHandle() { 104352 z.WriteStr("\"JobVersion\"") 104353 } else { 104354 r.EncodeStringEnc(codecSelferCcUTF8100, `JobVersion`) 104355 } 104356 r.WriteMapElemValue() 104357 if false { 104358 } else { 104359 r.EncodeUint(uint64(x.JobVersion)) 104360 } 104361 } 104362 if yyr2 || yy2arr2 { 104363 r.WriteArrayElem() 104364 if false { 104365 } else { 104366 if z.EncBasicHandle().StringToRaw { 104367 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 104368 } else { 104369 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 104370 } 104371 } 104372 } else { 104373 r.WriteMapElemKey() 104374 if z.IsJSONHandle() { 104375 z.WriteStr("\"TaskGroup\"") 104376 } else { 104377 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskGroup`) 104378 } 104379 r.WriteMapElemValue() 104380 if false { 104381 } else { 104382 if z.EncBasicHandle().StringToRaw { 104383 r.EncodeStringBytesRaw(z.BytesView(string(x.TaskGroup))) 104384 } else { 104385 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TaskGroup)) 104386 } 104387 } 104388 } 104389 if yyr2 || yy2arr2 { 104390 r.WriteArrayElem() 104391 if false { 104392 } else { 104393 if z.EncBasicHandle().StringToRaw { 104394 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 104395 } else { 104396 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 104397 } 104398 } 104399 } else { 104400 r.WriteMapElemKey() 104401 if z.IsJSONHandle() { 104402 z.WriteStr("\"DesiredStatus\"") 104403 } else { 104404 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredStatus`) 104405 } 104406 r.WriteMapElemValue() 104407 if false { 104408 } else { 104409 if z.EncBasicHandle().StringToRaw { 104410 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredStatus))) 104411 } else { 104412 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredStatus)) 104413 } 104414 } 104415 } 104416 if yyr2 || yy2arr2 { 104417 r.WriteArrayElem() 104418 if false { 104419 } else { 104420 if z.EncBasicHandle().StringToRaw { 104421 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 104422 } else { 104423 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 104424 } 104425 } 104426 } else { 104427 r.WriteMapElemKey() 104428 if z.IsJSONHandle() { 104429 z.WriteStr("\"DesiredDescription\"") 104430 } else { 104431 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredDescription`) 104432 } 104433 r.WriteMapElemValue() 104434 if false { 104435 } else { 104436 if z.EncBasicHandle().StringToRaw { 104437 r.EncodeStringBytesRaw(z.BytesView(string(x.DesiredDescription))) 104438 } else { 104439 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DesiredDescription)) 104440 } 104441 } 104442 } 104443 if yyr2 || yy2arr2 { 104444 r.WriteArrayElem() 104445 if false { 104446 } else { 104447 if z.EncBasicHandle().StringToRaw { 104448 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 104449 } else { 104450 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 104451 } 104452 } 104453 } else { 104454 r.WriteMapElemKey() 104455 if z.IsJSONHandle() { 104456 z.WriteStr("\"ClientStatus\"") 104457 } else { 104458 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientStatus`) 104459 } 104460 r.WriteMapElemValue() 104461 if false { 104462 } else { 104463 if z.EncBasicHandle().StringToRaw { 104464 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientStatus))) 104465 } else { 104466 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientStatus)) 104467 } 104468 } 104469 } 104470 if yyr2 || yy2arr2 { 104471 r.WriteArrayElem() 104472 if false { 104473 } else { 104474 if z.EncBasicHandle().StringToRaw { 104475 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 104476 } else { 104477 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 104478 } 104479 } 104480 } else { 104481 r.WriteMapElemKey() 104482 if z.IsJSONHandle() { 104483 z.WriteStr("\"ClientDescription\"") 104484 } else { 104485 r.EncodeStringEnc(codecSelferCcUTF8100, `ClientDescription`) 104486 } 104487 r.WriteMapElemValue() 104488 if false { 104489 } else { 104490 if z.EncBasicHandle().StringToRaw { 104491 r.EncodeStringBytesRaw(z.BytesView(string(x.ClientDescription))) 104492 } else { 104493 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ClientDescription)) 104494 } 104495 } 104496 } 104497 if yyr2 || yy2arr2 { 104498 r.WriteArrayElem() 104499 yy46 := &x.DesiredTransition 104500 yy46.CodecEncodeSelf(e) 104501 } else { 104502 r.WriteMapElemKey() 104503 if z.IsJSONHandle() { 104504 z.WriteStr("\"DesiredTransition\"") 104505 } else { 104506 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTransition`) 104507 } 104508 r.WriteMapElemValue() 104509 yy48 := &x.DesiredTransition 104510 yy48.CodecEncodeSelf(e) 104511 } 104512 if yyr2 || yy2arr2 { 104513 r.WriteArrayElem() 104514 if x.TaskStates == nil { 104515 r.EncodeNil() 104516 } else { 104517 if false { 104518 } else { 104519 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 104520 } 104521 } 104522 } else { 104523 r.WriteMapElemKey() 104524 if z.IsJSONHandle() { 104525 z.WriteStr("\"TaskStates\"") 104526 } else { 104527 r.EncodeStringEnc(codecSelferCcUTF8100, `TaskStates`) 104528 } 104529 r.WriteMapElemValue() 104530 if x.TaskStates == nil { 104531 r.EncodeNil() 104532 } else { 104533 if false { 104534 } else { 104535 h.encMapstringPtrtoTaskState((map[string]*TaskState)(x.TaskStates), e) 104536 } 104537 } 104538 } 104539 var yyn53 bool 104540 if x.DeploymentStatus == nil { 104541 yyn53 = true 104542 goto LABEL53 104543 } 104544 LABEL53: 104545 if yyr2 || yy2arr2 { 104546 if yyn53 { 104547 r.WriteArrayElem() 104548 r.EncodeNil() 104549 } else { 104550 r.WriteArrayElem() 104551 if x.DeploymentStatus == nil { 104552 r.EncodeNil() 104553 } else { 104554 x.DeploymentStatus.CodecEncodeSelf(e) 104555 } 104556 } 104557 } else { 104558 r.WriteMapElemKey() 104559 if z.IsJSONHandle() { 104560 z.WriteStr("\"DeploymentStatus\"") 104561 } else { 104562 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentStatus`) 104563 } 104564 r.WriteMapElemValue() 104565 if yyn53 { 104566 r.EncodeNil() 104567 } else { 104568 if x.DeploymentStatus == nil { 104569 r.EncodeNil() 104570 } else { 104571 x.DeploymentStatus.CodecEncodeSelf(e) 104572 } 104573 } 104574 } 104575 if yyr2 || yy2arr2 { 104576 r.WriteArrayElem() 104577 if false { 104578 } else { 104579 if z.EncBasicHandle().StringToRaw { 104580 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 104581 } else { 104582 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 104583 } 104584 } 104585 } else { 104586 r.WriteMapElemKey() 104587 if z.IsJSONHandle() { 104588 z.WriteStr("\"FollowupEvalID\"") 104589 } else { 104590 r.EncodeStringEnc(codecSelferCcUTF8100, `FollowupEvalID`) 104591 } 104592 r.WriteMapElemValue() 104593 if false { 104594 } else { 104595 if z.EncBasicHandle().StringToRaw { 104596 r.EncodeStringBytesRaw(z.BytesView(string(x.FollowupEvalID))) 104597 } else { 104598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.FollowupEvalID)) 104599 } 104600 } 104601 } 104602 var yyn59 bool 104603 if x.RescheduleTracker == nil { 104604 yyn59 = true 104605 goto LABEL59 104606 } 104607 LABEL59: 104608 if yyr2 || yy2arr2 { 104609 if yyn59 { 104610 r.WriteArrayElem() 104611 r.EncodeNil() 104612 } else { 104613 r.WriteArrayElem() 104614 if x.RescheduleTracker == nil { 104615 r.EncodeNil() 104616 } else { 104617 x.RescheduleTracker.CodecEncodeSelf(e) 104618 } 104619 } 104620 } else { 104621 r.WriteMapElemKey() 104622 if z.IsJSONHandle() { 104623 z.WriteStr("\"RescheduleTracker\"") 104624 } else { 104625 r.EncodeStringEnc(codecSelferCcUTF8100, `RescheduleTracker`) 104626 } 104627 r.WriteMapElemValue() 104628 if yyn59 { 104629 r.EncodeNil() 104630 } else { 104631 if x.RescheduleTracker == nil { 104632 r.EncodeNil() 104633 } else { 104634 x.RescheduleTracker.CodecEncodeSelf(e) 104635 } 104636 } 104637 } 104638 if yyr2 || yy2arr2 { 104639 r.WriteArrayElem() 104640 if x.PreemptedAllocations == nil { 104641 r.EncodeNil() 104642 } else { 104643 if false { 104644 } else { 104645 z.F.EncSliceStringV(x.PreemptedAllocations, e) 104646 } 104647 } 104648 } else { 104649 r.WriteMapElemKey() 104650 if z.IsJSONHandle() { 104651 z.WriteStr("\"PreemptedAllocations\"") 104652 } else { 104653 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocations`) 104654 } 104655 r.WriteMapElemValue() 104656 if x.PreemptedAllocations == nil { 104657 r.EncodeNil() 104658 } else { 104659 if false { 104660 } else { 104661 z.F.EncSliceStringV(x.PreemptedAllocations, e) 104662 } 104663 } 104664 } 104665 if yyr2 || yy2arr2 { 104666 r.WriteArrayElem() 104667 if false { 104668 } else { 104669 if z.EncBasicHandle().StringToRaw { 104670 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 104671 } else { 104672 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 104673 } 104674 } 104675 } else { 104676 r.WriteMapElemKey() 104677 if z.IsJSONHandle() { 104678 z.WriteStr("\"PreemptedByAllocation\"") 104679 } else { 104680 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedByAllocation`) 104681 } 104682 r.WriteMapElemValue() 104683 if false { 104684 } else { 104685 if z.EncBasicHandle().StringToRaw { 104686 r.EncodeStringBytesRaw(z.BytesView(string(x.PreemptedByAllocation))) 104687 } else { 104688 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreemptedByAllocation)) 104689 } 104690 } 104691 } 104692 if yyr2 || yy2arr2 { 104693 r.WriteArrayElem() 104694 if false { 104695 } else { 104696 r.EncodeUint(uint64(x.CreateIndex)) 104697 } 104698 } else { 104699 r.WriteMapElemKey() 104700 if z.IsJSONHandle() { 104701 z.WriteStr("\"CreateIndex\"") 104702 } else { 104703 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 104704 } 104705 r.WriteMapElemValue() 104706 if false { 104707 } else { 104708 r.EncodeUint(uint64(x.CreateIndex)) 104709 } 104710 } 104711 if yyr2 || yy2arr2 { 104712 r.WriteArrayElem() 104713 if false { 104714 } else { 104715 r.EncodeUint(uint64(x.ModifyIndex)) 104716 } 104717 } else { 104718 r.WriteMapElemKey() 104719 if z.IsJSONHandle() { 104720 z.WriteStr("\"ModifyIndex\"") 104721 } else { 104722 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 104723 } 104724 r.WriteMapElemValue() 104725 if false { 104726 } else { 104727 r.EncodeUint(uint64(x.ModifyIndex)) 104728 } 104729 } 104730 if yyr2 || yy2arr2 { 104731 r.WriteArrayElem() 104732 if false { 104733 } else { 104734 r.EncodeInt(int64(x.CreateTime)) 104735 } 104736 } else { 104737 r.WriteMapElemKey() 104738 if z.IsJSONHandle() { 104739 z.WriteStr("\"CreateTime\"") 104740 } else { 104741 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 104742 } 104743 r.WriteMapElemValue() 104744 if false { 104745 } else { 104746 r.EncodeInt(int64(x.CreateTime)) 104747 } 104748 } 104749 if yyr2 || yy2arr2 { 104750 r.WriteArrayElem() 104751 if false { 104752 } else { 104753 r.EncodeInt(int64(x.ModifyTime)) 104754 } 104755 } else { 104756 r.WriteMapElemKey() 104757 if z.IsJSONHandle() { 104758 z.WriteStr("\"ModifyTime\"") 104759 } else { 104760 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 104761 } 104762 r.WriteMapElemValue() 104763 if false { 104764 } else { 104765 r.EncodeInt(int64(x.ModifyTime)) 104766 } 104767 } 104768 if yyr2 || yy2arr2 { 104769 r.WriteArrayEnd() 104770 } else { 104771 r.WriteMapEnd() 104772 } 104773 } 104774 } 104775 } 104776 104777 func (x *AllocListStub) CodecDecodeSelf(d *codec1978.Decoder) { 104778 var h codecSelfer100 104779 z, r := codec1978.GenHelperDecoder(d) 104780 _, _, _ = h, z, r 104781 if false { 104782 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 104783 z.DecExtension(x, yyxt1) 104784 } else { 104785 yyct2 := r.ContainerType() 104786 if yyct2 == codecSelferValueTypeMap100 { 104787 yyl2 := r.ReadMapStart() 104788 if yyl2 == 0 { 104789 r.ReadMapEnd() 104790 } else { 104791 x.codecDecodeSelfFromMap(yyl2, d) 104792 } 104793 } else if yyct2 == codecSelferValueTypeArray100 { 104794 yyl2 := r.ReadArrayStart() 104795 if yyl2 == 0 { 104796 r.ReadArrayEnd() 104797 } else { 104798 x.codecDecodeSelfFromArray(yyl2, d) 104799 } 104800 } else { 104801 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 104802 } 104803 } 104804 } 104805 104806 func (x *AllocListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 104807 var h codecSelfer100 104808 z, r := codec1978.GenHelperDecoder(d) 104809 _, _, _ = h, z, r 104810 var yyhl3 bool = l >= 0 104811 for yyj3 := 0; ; yyj3++ { 104812 if yyhl3 { 104813 if yyj3 >= l { 104814 break 104815 } 104816 } else { 104817 if r.CheckBreak() { 104818 break 104819 } 104820 } 104821 r.ReadMapElemKey() 104822 yys3 := z.StringView(r.DecodeStringAsBytes()) 104823 r.ReadMapElemValue() 104824 switch yys3 { 104825 case "ID": 104826 if r.TryDecodeAsNil() { 104827 x.ID = "" 104828 } else { 104829 x.ID = (string)(r.DecodeString()) 104830 } 104831 case "EvalID": 104832 if r.TryDecodeAsNil() { 104833 x.EvalID = "" 104834 } else { 104835 x.EvalID = (string)(r.DecodeString()) 104836 } 104837 case "Name": 104838 if r.TryDecodeAsNil() { 104839 x.Name = "" 104840 } else { 104841 x.Name = (string)(r.DecodeString()) 104842 } 104843 case "Namespace": 104844 if r.TryDecodeAsNil() { 104845 x.Namespace = "" 104846 } else { 104847 x.Namespace = (string)(r.DecodeString()) 104848 } 104849 case "NodeID": 104850 if r.TryDecodeAsNil() { 104851 x.NodeID = "" 104852 } else { 104853 x.NodeID = (string)(r.DecodeString()) 104854 } 104855 case "NodeName": 104856 if r.TryDecodeAsNil() { 104857 x.NodeName = "" 104858 } else { 104859 x.NodeName = (string)(r.DecodeString()) 104860 } 104861 case "JobID": 104862 if r.TryDecodeAsNil() { 104863 x.JobID = "" 104864 } else { 104865 x.JobID = (string)(r.DecodeString()) 104866 } 104867 case "JobType": 104868 if r.TryDecodeAsNil() { 104869 x.JobType = "" 104870 } else { 104871 x.JobType = (string)(r.DecodeString()) 104872 } 104873 case "JobVersion": 104874 if r.TryDecodeAsNil() { 104875 x.JobVersion = 0 104876 } else { 104877 x.JobVersion = (uint64)(r.DecodeUint64()) 104878 } 104879 case "TaskGroup": 104880 if r.TryDecodeAsNil() { 104881 x.TaskGroup = "" 104882 } else { 104883 x.TaskGroup = (string)(r.DecodeString()) 104884 } 104885 case "DesiredStatus": 104886 if r.TryDecodeAsNil() { 104887 x.DesiredStatus = "" 104888 } else { 104889 x.DesiredStatus = (string)(r.DecodeString()) 104890 } 104891 case "DesiredDescription": 104892 if r.TryDecodeAsNil() { 104893 x.DesiredDescription = "" 104894 } else { 104895 x.DesiredDescription = (string)(r.DecodeString()) 104896 } 104897 case "ClientStatus": 104898 if r.TryDecodeAsNil() { 104899 x.ClientStatus = "" 104900 } else { 104901 x.ClientStatus = (string)(r.DecodeString()) 104902 } 104903 case "ClientDescription": 104904 if r.TryDecodeAsNil() { 104905 x.ClientDescription = "" 104906 } else { 104907 x.ClientDescription = (string)(r.DecodeString()) 104908 } 104909 case "DesiredTransition": 104910 if r.TryDecodeAsNil() { 104911 x.DesiredTransition = DesiredTransition{} 104912 } else { 104913 x.DesiredTransition.CodecDecodeSelf(d) 104914 } 104915 case "TaskStates": 104916 if r.TryDecodeAsNil() { 104917 x.TaskStates = nil 104918 } else { 104919 if false { 104920 } else { 104921 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 104922 } 104923 } 104924 case "DeploymentStatus": 104925 if r.TryDecodeAsNil() { 104926 if true && x.DeploymentStatus != nil { 104927 x.DeploymentStatus = nil 104928 } 104929 } else { 104930 if x.DeploymentStatus == nil { 104931 x.DeploymentStatus = new(AllocDeploymentStatus) 104932 } 104933 104934 x.DeploymentStatus.CodecDecodeSelf(d) 104935 } 104936 case "FollowupEvalID": 104937 if r.TryDecodeAsNil() { 104938 x.FollowupEvalID = "" 104939 } else { 104940 x.FollowupEvalID = (string)(r.DecodeString()) 104941 } 104942 case "RescheduleTracker": 104943 if r.TryDecodeAsNil() { 104944 if true && x.RescheduleTracker != nil { 104945 x.RescheduleTracker = nil 104946 } 104947 } else { 104948 if x.RescheduleTracker == nil { 104949 x.RescheduleTracker = new(RescheduleTracker) 104950 } 104951 104952 x.RescheduleTracker.CodecDecodeSelf(d) 104953 } 104954 case "PreemptedAllocations": 104955 if r.TryDecodeAsNil() { 104956 x.PreemptedAllocations = nil 104957 } else { 104958 if false { 104959 } else { 104960 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 104961 } 104962 } 104963 case "PreemptedByAllocation": 104964 if r.TryDecodeAsNil() { 104965 x.PreemptedByAllocation = "" 104966 } else { 104967 x.PreemptedByAllocation = (string)(r.DecodeString()) 104968 } 104969 case "CreateIndex": 104970 if r.TryDecodeAsNil() { 104971 x.CreateIndex = 0 104972 } else { 104973 x.CreateIndex = (uint64)(r.DecodeUint64()) 104974 } 104975 case "ModifyIndex": 104976 if r.TryDecodeAsNil() { 104977 x.ModifyIndex = 0 104978 } else { 104979 x.ModifyIndex = (uint64)(r.DecodeUint64()) 104980 } 104981 case "CreateTime": 104982 if r.TryDecodeAsNil() { 104983 x.CreateTime = 0 104984 } else { 104985 x.CreateTime = (int64)(r.DecodeInt64()) 104986 } 104987 case "ModifyTime": 104988 if r.TryDecodeAsNil() { 104989 x.ModifyTime = 0 104990 } else { 104991 x.ModifyTime = (int64)(r.DecodeInt64()) 104992 } 104993 default: 104994 z.DecStructFieldNotFound(-1, yys3) 104995 } // end switch yys3 104996 } // end for yyj3 104997 r.ReadMapEnd() 104998 } 104999 105000 func (x *AllocListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 105001 var h codecSelfer100 105002 z, r := codec1978.GenHelperDecoder(d) 105003 _, _, _ = h, z, r 105004 var yyj31 int 105005 var yyb31 bool 105006 var yyhl31 bool = l >= 0 105007 yyj31++ 105008 if yyhl31 { 105009 yyb31 = yyj31 > l 105010 } else { 105011 yyb31 = r.CheckBreak() 105012 } 105013 if yyb31 { 105014 r.ReadArrayEnd() 105015 return 105016 } 105017 r.ReadArrayElem() 105018 if r.TryDecodeAsNil() { 105019 x.ID = "" 105020 } else { 105021 x.ID = (string)(r.DecodeString()) 105022 } 105023 yyj31++ 105024 if yyhl31 { 105025 yyb31 = yyj31 > l 105026 } else { 105027 yyb31 = r.CheckBreak() 105028 } 105029 if yyb31 { 105030 r.ReadArrayEnd() 105031 return 105032 } 105033 r.ReadArrayElem() 105034 if r.TryDecodeAsNil() { 105035 x.EvalID = "" 105036 } else { 105037 x.EvalID = (string)(r.DecodeString()) 105038 } 105039 yyj31++ 105040 if yyhl31 { 105041 yyb31 = yyj31 > l 105042 } else { 105043 yyb31 = r.CheckBreak() 105044 } 105045 if yyb31 { 105046 r.ReadArrayEnd() 105047 return 105048 } 105049 r.ReadArrayElem() 105050 if r.TryDecodeAsNil() { 105051 x.Name = "" 105052 } else { 105053 x.Name = (string)(r.DecodeString()) 105054 } 105055 yyj31++ 105056 if yyhl31 { 105057 yyb31 = yyj31 > l 105058 } else { 105059 yyb31 = r.CheckBreak() 105060 } 105061 if yyb31 { 105062 r.ReadArrayEnd() 105063 return 105064 } 105065 r.ReadArrayElem() 105066 if r.TryDecodeAsNil() { 105067 x.Namespace = "" 105068 } else { 105069 x.Namespace = (string)(r.DecodeString()) 105070 } 105071 yyj31++ 105072 if yyhl31 { 105073 yyb31 = yyj31 > l 105074 } else { 105075 yyb31 = r.CheckBreak() 105076 } 105077 if yyb31 { 105078 r.ReadArrayEnd() 105079 return 105080 } 105081 r.ReadArrayElem() 105082 if r.TryDecodeAsNil() { 105083 x.NodeID = "" 105084 } else { 105085 x.NodeID = (string)(r.DecodeString()) 105086 } 105087 yyj31++ 105088 if yyhl31 { 105089 yyb31 = yyj31 > l 105090 } else { 105091 yyb31 = r.CheckBreak() 105092 } 105093 if yyb31 { 105094 r.ReadArrayEnd() 105095 return 105096 } 105097 r.ReadArrayElem() 105098 if r.TryDecodeAsNil() { 105099 x.NodeName = "" 105100 } else { 105101 x.NodeName = (string)(r.DecodeString()) 105102 } 105103 yyj31++ 105104 if yyhl31 { 105105 yyb31 = yyj31 > l 105106 } else { 105107 yyb31 = r.CheckBreak() 105108 } 105109 if yyb31 { 105110 r.ReadArrayEnd() 105111 return 105112 } 105113 r.ReadArrayElem() 105114 if r.TryDecodeAsNil() { 105115 x.JobID = "" 105116 } else { 105117 x.JobID = (string)(r.DecodeString()) 105118 } 105119 yyj31++ 105120 if yyhl31 { 105121 yyb31 = yyj31 > l 105122 } else { 105123 yyb31 = r.CheckBreak() 105124 } 105125 if yyb31 { 105126 r.ReadArrayEnd() 105127 return 105128 } 105129 r.ReadArrayElem() 105130 if r.TryDecodeAsNil() { 105131 x.JobType = "" 105132 } else { 105133 x.JobType = (string)(r.DecodeString()) 105134 } 105135 yyj31++ 105136 if yyhl31 { 105137 yyb31 = yyj31 > l 105138 } else { 105139 yyb31 = r.CheckBreak() 105140 } 105141 if yyb31 { 105142 r.ReadArrayEnd() 105143 return 105144 } 105145 r.ReadArrayElem() 105146 if r.TryDecodeAsNil() { 105147 x.JobVersion = 0 105148 } else { 105149 x.JobVersion = (uint64)(r.DecodeUint64()) 105150 } 105151 yyj31++ 105152 if yyhl31 { 105153 yyb31 = yyj31 > l 105154 } else { 105155 yyb31 = r.CheckBreak() 105156 } 105157 if yyb31 { 105158 r.ReadArrayEnd() 105159 return 105160 } 105161 r.ReadArrayElem() 105162 if r.TryDecodeAsNil() { 105163 x.TaskGroup = "" 105164 } else { 105165 x.TaskGroup = (string)(r.DecodeString()) 105166 } 105167 yyj31++ 105168 if yyhl31 { 105169 yyb31 = yyj31 > l 105170 } else { 105171 yyb31 = r.CheckBreak() 105172 } 105173 if yyb31 { 105174 r.ReadArrayEnd() 105175 return 105176 } 105177 r.ReadArrayElem() 105178 if r.TryDecodeAsNil() { 105179 x.DesiredStatus = "" 105180 } else { 105181 x.DesiredStatus = (string)(r.DecodeString()) 105182 } 105183 yyj31++ 105184 if yyhl31 { 105185 yyb31 = yyj31 > l 105186 } else { 105187 yyb31 = r.CheckBreak() 105188 } 105189 if yyb31 { 105190 r.ReadArrayEnd() 105191 return 105192 } 105193 r.ReadArrayElem() 105194 if r.TryDecodeAsNil() { 105195 x.DesiredDescription = "" 105196 } else { 105197 x.DesiredDescription = (string)(r.DecodeString()) 105198 } 105199 yyj31++ 105200 if yyhl31 { 105201 yyb31 = yyj31 > l 105202 } else { 105203 yyb31 = r.CheckBreak() 105204 } 105205 if yyb31 { 105206 r.ReadArrayEnd() 105207 return 105208 } 105209 r.ReadArrayElem() 105210 if r.TryDecodeAsNil() { 105211 x.ClientStatus = "" 105212 } else { 105213 x.ClientStatus = (string)(r.DecodeString()) 105214 } 105215 yyj31++ 105216 if yyhl31 { 105217 yyb31 = yyj31 > l 105218 } else { 105219 yyb31 = r.CheckBreak() 105220 } 105221 if yyb31 { 105222 r.ReadArrayEnd() 105223 return 105224 } 105225 r.ReadArrayElem() 105226 if r.TryDecodeAsNil() { 105227 x.ClientDescription = "" 105228 } else { 105229 x.ClientDescription = (string)(r.DecodeString()) 105230 } 105231 yyj31++ 105232 if yyhl31 { 105233 yyb31 = yyj31 > l 105234 } else { 105235 yyb31 = r.CheckBreak() 105236 } 105237 if yyb31 { 105238 r.ReadArrayEnd() 105239 return 105240 } 105241 r.ReadArrayElem() 105242 if r.TryDecodeAsNil() { 105243 x.DesiredTransition = DesiredTransition{} 105244 } else { 105245 x.DesiredTransition.CodecDecodeSelf(d) 105246 } 105247 yyj31++ 105248 if yyhl31 { 105249 yyb31 = yyj31 > l 105250 } else { 105251 yyb31 = r.CheckBreak() 105252 } 105253 if yyb31 { 105254 r.ReadArrayEnd() 105255 return 105256 } 105257 r.ReadArrayElem() 105258 if r.TryDecodeAsNil() { 105259 x.TaskStates = nil 105260 } else { 105261 if false { 105262 } else { 105263 h.decMapstringPtrtoTaskState((*map[string]*TaskState)(&x.TaskStates), d) 105264 } 105265 } 105266 yyj31++ 105267 if yyhl31 { 105268 yyb31 = yyj31 > l 105269 } else { 105270 yyb31 = r.CheckBreak() 105271 } 105272 if yyb31 { 105273 r.ReadArrayEnd() 105274 return 105275 } 105276 r.ReadArrayElem() 105277 if r.TryDecodeAsNil() { 105278 if true && x.DeploymentStatus != nil { 105279 x.DeploymentStatus = nil 105280 } 105281 } else { 105282 if x.DeploymentStatus == nil { 105283 x.DeploymentStatus = new(AllocDeploymentStatus) 105284 } 105285 105286 x.DeploymentStatus.CodecDecodeSelf(d) 105287 } 105288 yyj31++ 105289 if yyhl31 { 105290 yyb31 = yyj31 > l 105291 } else { 105292 yyb31 = r.CheckBreak() 105293 } 105294 if yyb31 { 105295 r.ReadArrayEnd() 105296 return 105297 } 105298 r.ReadArrayElem() 105299 if r.TryDecodeAsNil() { 105300 x.FollowupEvalID = "" 105301 } else { 105302 x.FollowupEvalID = (string)(r.DecodeString()) 105303 } 105304 yyj31++ 105305 if yyhl31 { 105306 yyb31 = yyj31 > l 105307 } else { 105308 yyb31 = r.CheckBreak() 105309 } 105310 if yyb31 { 105311 r.ReadArrayEnd() 105312 return 105313 } 105314 r.ReadArrayElem() 105315 if r.TryDecodeAsNil() { 105316 if true && x.RescheduleTracker != nil { 105317 x.RescheduleTracker = nil 105318 } 105319 } else { 105320 if x.RescheduleTracker == nil { 105321 x.RescheduleTracker = new(RescheduleTracker) 105322 } 105323 105324 x.RescheduleTracker.CodecDecodeSelf(d) 105325 } 105326 yyj31++ 105327 if yyhl31 { 105328 yyb31 = yyj31 > l 105329 } else { 105330 yyb31 = r.CheckBreak() 105331 } 105332 if yyb31 { 105333 r.ReadArrayEnd() 105334 return 105335 } 105336 r.ReadArrayElem() 105337 if r.TryDecodeAsNil() { 105338 x.PreemptedAllocations = nil 105339 } else { 105340 if false { 105341 } else { 105342 z.F.DecSliceStringX(&x.PreemptedAllocations, d) 105343 } 105344 } 105345 yyj31++ 105346 if yyhl31 { 105347 yyb31 = yyj31 > l 105348 } else { 105349 yyb31 = r.CheckBreak() 105350 } 105351 if yyb31 { 105352 r.ReadArrayEnd() 105353 return 105354 } 105355 r.ReadArrayElem() 105356 if r.TryDecodeAsNil() { 105357 x.PreemptedByAllocation = "" 105358 } else { 105359 x.PreemptedByAllocation = (string)(r.DecodeString()) 105360 } 105361 yyj31++ 105362 if yyhl31 { 105363 yyb31 = yyj31 > l 105364 } else { 105365 yyb31 = r.CheckBreak() 105366 } 105367 if yyb31 { 105368 r.ReadArrayEnd() 105369 return 105370 } 105371 r.ReadArrayElem() 105372 if r.TryDecodeAsNil() { 105373 x.CreateIndex = 0 105374 } else { 105375 x.CreateIndex = (uint64)(r.DecodeUint64()) 105376 } 105377 yyj31++ 105378 if yyhl31 { 105379 yyb31 = yyj31 > l 105380 } else { 105381 yyb31 = r.CheckBreak() 105382 } 105383 if yyb31 { 105384 r.ReadArrayEnd() 105385 return 105386 } 105387 r.ReadArrayElem() 105388 if r.TryDecodeAsNil() { 105389 x.ModifyIndex = 0 105390 } else { 105391 x.ModifyIndex = (uint64)(r.DecodeUint64()) 105392 } 105393 yyj31++ 105394 if yyhl31 { 105395 yyb31 = yyj31 > l 105396 } else { 105397 yyb31 = r.CheckBreak() 105398 } 105399 if yyb31 { 105400 r.ReadArrayEnd() 105401 return 105402 } 105403 r.ReadArrayElem() 105404 if r.TryDecodeAsNil() { 105405 x.CreateTime = 0 105406 } else { 105407 x.CreateTime = (int64)(r.DecodeInt64()) 105408 } 105409 yyj31++ 105410 if yyhl31 { 105411 yyb31 = yyj31 > l 105412 } else { 105413 yyb31 = r.CheckBreak() 105414 } 105415 if yyb31 { 105416 r.ReadArrayEnd() 105417 return 105418 } 105419 r.ReadArrayElem() 105420 if r.TryDecodeAsNil() { 105421 x.ModifyTime = 0 105422 } else { 105423 x.ModifyTime = (int64)(r.DecodeInt64()) 105424 } 105425 for { 105426 yyj31++ 105427 if yyhl31 { 105428 yyb31 = yyj31 > l 105429 } else { 105430 yyb31 = r.CheckBreak() 105431 } 105432 if yyb31 { 105433 break 105434 } 105435 r.ReadArrayElem() 105436 z.DecStructFieldNotFound(yyj31-1, "") 105437 } 105438 r.ReadArrayEnd() 105439 } 105440 105441 func (x *AllocMetric) CodecEncodeSelf(e *codec1978.Encoder) { 105442 var h codecSelfer100 105443 z, r := codec1978.GenHelperEncoder(e) 105444 _, _, _ = h, z, r 105445 if x == nil { 105446 r.EncodeNil() 105447 } else { 105448 if false { 105449 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 105450 z.EncExtension(x, yyxt1) 105451 } else { 105452 yysep2 := !z.EncBinary() 105453 yy2arr2 := z.EncBasicHandle().StructToArray 105454 _, _ = yysep2, yy2arr2 105455 const yyr2 bool = false // struct tag has 'toArray' 105456 if yyr2 || yy2arr2 { 105457 r.WriteArrayStart(13) 105458 } else { 105459 r.WriteMapStart(13) 105460 } 105461 if yyr2 || yy2arr2 { 105462 r.WriteArrayElem() 105463 if false { 105464 } else { 105465 r.EncodeInt(int64(x.NodesEvaluated)) 105466 } 105467 } else { 105468 r.WriteMapElemKey() 105469 if z.IsJSONHandle() { 105470 z.WriteStr("\"NodesEvaluated\"") 105471 } else { 105472 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesEvaluated`) 105473 } 105474 r.WriteMapElemValue() 105475 if false { 105476 } else { 105477 r.EncodeInt(int64(x.NodesEvaluated)) 105478 } 105479 } 105480 if yyr2 || yy2arr2 { 105481 r.WriteArrayElem() 105482 if false { 105483 } else { 105484 r.EncodeInt(int64(x.NodesFiltered)) 105485 } 105486 } else { 105487 r.WriteMapElemKey() 105488 if z.IsJSONHandle() { 105489 z.WriteStr("\"NodesFiltered\"") 105490 } else { 105491 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesFiltered`) 105492 } 105493 r.WriteMapElemValue() 105494 if false { 105495 } else { 105496 r.EncodeInt(int64(x.NodesFiltered)) 105497 } 105498 } 105499 if yyr2 || yy2arr2 { 105500 r.WriteArrayElem() 105501 if x.NodesAvailable == nil { 105502 r.EncodeNil() 105503 } else { 105504 if false { 105505 } else { 105506 z.F.EncMapStringIntV(x.NodesAvailable, e) 105507 } 105508 } 105509 } else { 105510 r.WriteMapElemKey() 105511 if z.IsJSONHandle() { 105512 z.WriteStr("\"NodesAvailable\"") 105513 } else { 105514 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesAvailable`) 105515 } 105516 r.WriteMapElemValue() 105517 if x.NodesAvailable == nil { 105518 r.EncodeNil() 105519 } else { 105520 if false { 105521 } else { 105522 z.F.EncMapStringIntV(x.NodesAvailable, e) 105523 } 105524 } 105525 } 105526 if yyr2 || yy2arr2 { 105527 r.WriteArrayElem() 105528 if x.ClassFiltered == nil { 105529 r.EncodeNil() 105530 } else { 105531 if false { 105532 } else { 105533 z.F.EncMapStringIntV(x.ClassFiltered, e) 105534 } 105535 } 105536 } else { 105537 r.WriteMapElemKey() 105538 if z.IsJSONHandle() { 105539 z.WriteStr("\"ClassFiltered\"") 105540 } else { 105541 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassFiltered`) 105542 } 105543 r.WriteMapElemValue() 105544 if x.ClassFiltered == nil { 105545 r.EncodeNil() 105546 } else { 105547 if false { 105548 } else { 105549 z.F.EncMapStringIntV(x.ClassFiltered, e) 105550 } 105551 } 105552 } 105553 if yyr2 || yy2arr2 { 105554 r.WriteArrayElem() 105555 if x.ConstraintFiltered == nil { 105556 r.EncodeNil() 105557 } else { 105558 if false { 105559 } else { 105560 z.F.EncMapStringIntV(x.ConstraintFiltered, e) 105561 } 105562 } 105563 } else { 105564 r.WriteMapElemKey() 105565 if z.IsJSONHandle() { 105566 z.WriteStr("\"ConstraintFiltered\"") 105567 } else { 105568 r.EncodeStringEnc(codecSelferCcUTF8100, `ConstraintFiltered`) 105569 } 105570 r.WriteMapElemValue() 105571 if x.ConstraintFiltered == nil { 105572 r.EncodeNil() 105573 } else { 105574 if false { 105575 } else { 105576 z.F.EncMapStringIntV(x.ConstraintFiltered, e) 105577 } 105578 } 105579 } 105580 if yyr2 || yy2arr2 { 105581 r.WriteArrayElem() 105582 if false { 105583 } else { 105584 r.EncodeInt(int64(x.NodesExhausted)) 105585 } 105586 } else { 105587 r.WriteMapElemKey() 105588 if z.IsJSONHandle() { 105589 z.WriteStr("\"NodesExhausted\"") 105590 } else { 105591 r.EncodeStringEnc(codecSelferCcUTF8100, `NodesExhausted`) 105592 } 105593 r.WriteMapElemValue() 105594 if false { 105595 } else { 105596 r.EncodeInt(int64(x.NodesExhausted)) 105597 } 105598 } 105599 if yyr2 || yy2arr2 { 105600 r.WriteArrayElem() 105601 if x.ClassExhausted == nil { 105602 r.EncodeNil() 105603 } else { 105604 if false { 105605 } else { 105606 z.F.EncMapStringIntV(x.ClassExhausted, e) 105607 } 105608 } 105609 } else { 105610 r.WriteMapElemKey() 105611 if z.IsJSONHandle() { 105612 z.WriteStr("\"ClassExhausted\"") 105613 } else { 105614 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassExhausted`) 105615 } 105616 r.WriteMapElemValue() 105617 if x.ClassExhausted == nil { 105618 r.EncodeNil() 105619 } else { 105620 if false { 105621 } else { 105622 z.F.EncMapStringIntV(x.ClassExhausted, e) 105623 } 105624 } 105625 } 105626 if yyr2 || yy2arr2 { 105627 r.WriteArrayElem() 105628 if x.DimensionExhausted == nil { 105629 r.EncodeNil() 105630 } else { 105631 if false { 105632 } else { 105633 z.F.EncMapStringIntV(x.DimensionExhausted, e) 105634 } 105635 } 105636 } else { 105637 r.WriteMapElemKey() 105638 if z.IsJSONHandle() { 105639 z.WriteStr("\"DimensionExhausted\"") 105640 } else { 105641 r.EncodeStringEnc(codecSelferCcUTF8100, `DimensionExhausted`) 105642 } 105643 r.WriteMapElemValue() 105644 if x.DimensionExhausted == nil { 105645 r.EncodeNil() 105646 } else { 105647 if false { 105648 } else { 105649 z.F.EncMapStringIntV(x.DimensionExhausted, e) 105650 } 105651 } 105652 } 105653 if yyr2 || yy2arr2 { 105654 r.WriteArrayElem() 105655 if x.QuotaExhausted == nil { 105656 r.EncodeNil() 105657 } else { 105658 if false { 105659 } else { 105660 z.F.EncSliceStringV(x.QuotaExhausted, e) 105661 } 105662 } 105663 } else { 105664 r.WriteMapElemKey() 105665 if z.IsJSONHandle() { 105666 z.WriteStr("\"QuotaExhausted\"") 105667 } else { 105668 r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaExhausted`) 105669 } 105670 r.WriteMapElemValue() 105671 if x.QuotaExhausted == nil { 105672 r.EncodeNil() 105673 } else { 105674 if false { 105675 } else { 105676 z.F.EncSliceStringV(x.QuotaExhausted, e) 105677 } 105678 } 105679 } 105680 if yyr2 || yy2arr2 { 105681 r.WriteArrayElem() 105682 if x.Scores == nil { 105683 r.EncodeNil() 105684 } else { 105685 if false { 105686 } else { 105687 z.F.EncMapStringFloat64V(x.Scores, e) 105688 } 105689 } 105690 } else { 105691 r.WriteMapElemKey() 105692 if z.IsJSONHandle() { 105693 z.WriteStr("\"Scores\"") 105694 } else { 105695 r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) 105696 } 105697 r.WriteMapElemValue() 105698 if x.Scores == nil { 105699 r.EncodeNil() 105700 } else { 105701 if false { 105702 } else { 105703 z.F.EncMapStringFloat64V(x.Scores, e) 105704 } 105705 } 105706 } 105707 if yyr2 || yy2arr2 { 105708 r.WriteArrayElem() 105709 if x.ScoreMetaData == nil { 105710 r.EncodeNil() 105711 } else { 105712 if false { 105713 } else { 105714 h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) 105715 } 105716 } 105717 } else { 105718 r.WriteMapElemKey() 105719 if z.IsJSONHandle() { 105720 z.WriteStr("\"ScoreMetaData\"") 105721 } else { 105722 r.EncodeStringEnc(codecSelferCcUTF8100, `ScoreMetaData`) 105723 } 105724 r.WriteMapElemValue() 105725 if x.ScoreMetaData == nil { 105726 r.EncodeNil() 105727 } else { 105728 if false { 105729 } else { 105730 h.encSlicePtrtoNodeScoreMeta(([]*NodeScoreMeta)(x.ScoreMetaData), e) 105731 } 105732 } 105733 } 105734 if yyr2 || yy2arr2 { 105735 r.WriteArrayElem() 105736 if false { 105737 } else if yyxt37 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt37 != nil { 105738 z.EncExtension(x.AllocationTime, yyxt37) 105739 } else { 105740 r.EncodeInt(int64(x.AllocationTime)) 105741 } 105742 } else { 105743 r.WriteMapElemKey() 105744 if z.IsJSONHandle() { 105745 z.WriteStr("\"AllocationTime\"") 105746 } else { 105747 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocationTime`) 105748 } 105749 r.WriteMapElemValue() 105750 if false { 105751 } else if yyxt38 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt38 != nil { 105752 z.EncExtension(x.AllocationTime, yyxt38) 105753 } else { 105754 r.EncodeInt(int64(x.AllocationTime)) 105755 } 105756 } 105757 if yyr2 || yy2arr2 { 105758 r.WriteArrayElem() 105759 if false { 105760 } else { 105761 r.EncodeInt(int64(x.CoalescedFailures)) 105762 } 105763 } else { 105764 r.WriteMapElemKey() 105765 if z.IsJSONHandle() { 105766 z.WriteStr("\"CoalescedFailures\"") 105767 } else { 105768 r.EncodeStringEnc(codecSelferCcUTF8100, `CoalescedFailures`) 105769 } 105770 r.WriteMapElemValue() 105771 if false { 105772 } else { 105773 r.EncodeInt(int64(x.CoalescedFailures)) 105774 } 105775 } 105776 if yyr2 || yy2arr2 { 105777 r.WriteArrayEnd() 105778 } else { 105779 r.WriteMapEnd() 105780 } 105781 } 105782 } 105783 } 105784 105785 func (x *AllocMetric) CodecDecodeSelf(d *codec1978.Decoder) { 105786 var h codecSelfer100 105787 z, r := codec1978.GenHelperDecoder(d) 105788 _, _, _ = h, z, r 105789 if false { 105790 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 105791 z.DecExtension(x, yyxt1) 105792 } else { 105793 yyct2 := r.ContainerType() 105794 if yyct2 == codecSelferValueTypeMap100 { 105795 yyl2 := r.ReadMapStart() 105796 if yyl2 == 0 { 105797 r.ReadMapEnd() 105798 } else { 105799 x.codecDecodeSelfFromMap(yyl2, d) 105800 } 105801 } else if yyct2 == codecSelferValueTypeArray100 { 105802 yyl2 := r.ReadArrayStart() 105803 if yyl2 == 0 { 105804 r.ReadArrayEnd() 105805 } else { 105806 x.codecDecodeSelfFromArray(yyl2, d) 105807 } 105808 } else { 105809 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 105810 } 105811 } 105812 } 105813 105814 func (x *AllocMetric) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 105815 var h codecSelfer100 105816 z, r := codec1978.GenHelperDecoder(d) 105817 _, _, _ = h, z, r 105818 var yyhl3 bool = l >= 0 105819 for yyj3 := 0; ; yyj3++ { 105820 if yyhl3 { 105821 if yyj3 >= l { 105822 break 105823 } 105824 } else { 105825 if r.CheckBreak() { 105826 break 105827 } 105828 } 105829 r.ReadMapElemKey() 105830 yys3 := z.StringView(r.DecodeStringAsBytes()) 105831 r.ReadMapElemValue() 105832 switch yys3 { 105833 case "NodesEvaluated": 105834 if r.TryDecodeAsNil() { 105835 x.NodesEvaluated = 0 105836 } else { 105837 x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105838 } 105839 case "NodesFiltered": 105840 if r.TryDecodeAsNil() { 105841 x.NodesFiltered = 0 105842 } else { 105843 x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105844 } 105845 case "NodesAvailable": 105846 if r.TryDecodeAsNil() { 105847 x.NodesAvailable = nil 105848 } else { 105849 if false { 105850 } else { 105851 z.F.DecMapStringIntX(&x.NodesAvailable, d) 105852 } 105853 } 105854 case "ClassFiltered": 105855 if r.TryDecodeAsNil() { 105856 x.ClassFiltered = nil 105857 } else { 105858 if false { 105859 } else { 105860 z.F.DecMapStringIntX(&x.ClassFiltered, d) 105861 } 105862 } 105863 case "ConstraintFiltered": 105864 if r.TryDecodeAsNil() { 105865 x.ConstraintFiltered = nil 105866 } else { 105867 if false { 105868 } else { 105869 z.F.DecMapStringIntX(&x.ConstraintFiltered, d) 105870 } 105871 } 105872 case "NodesExhausted": 105873 if r.TryDecodeAsNil() { 105874 x.NodesExhausted = 0 105875 } else { 105876 x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105877 } 105878 case "ClassExhausted": 105879 if r.TryDecodeAsNil() { 105880 x.ClassExhausted = nil 105881 } else { 105882 if false { 105883 } else { 105884 z.F.DecMapStringIntX(&x.ClassExhausted, d) 105885 } 105886 } 105887 case "DimensionExhausted": 105888 if r.TryDecodeAsNil() { 105889 x.DimensionExhausted = nil 105890 } else { 105891 if false { 105892 } else { 105893 z.F.DecMapStringIntX(&x.DimensionExhausted, d) 105894 } 105895 } 105896 case "QuotaExhausted": 105897 if r.TryDecodeAsNil() { 105898 x.QuotaExhausted = nil 105899 } else { 105900 if false { 105901 } else { 105902 z.F.DecSliceStringX(&x.QuotaExhausted, d) 105903 } 105904 } 105905 case "Scores": 105906 if r.TryDecodeAsNil() { 105907 x.Scores = nil 105908 } else { 105909 if false { 105910 } else { 105911 z.F.DecMapStringFloat64X(&x.Scores, d) 105912 } 105913 } 105914 case "ScoreMetaData": 105915 if r.TryDecodeAsNil() { 105916 x.ScoreMetaData = nil 105917 } else { 105918 if false { 105919 } else { 105920 h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) 105921 } 105922 } 105923 case "AllocationTime": 105924 if r.TryDecodeAsNil() { 105925 x.AllocationTime = 0 105926 } else { 105927 if false { 105928 } else if yyxt24 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt24 != nil { 105929 z.DecExtension(x.AllocationTime, yyxt24) 105930 } else { 105931 x.AllocationTime = (time.Duration)(r.DecodeInt64()) 105932 } 105933 } 105934 case "CoalescedFailures": 105935 if r.TryDecodeAsNil() { 105936 x.CoalescedFailures = 0 105937 } else { 105938 x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105939 } 105940 default: 105941 z.DecStructFieldNotFound(-1, yys3) 105942 } // end switch yys3 105943 } // end for yyj3 105944 r.ReadMapEnd() 105945 } 105946 105947 func (x *AllocMetric) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 105948 var h codecSelfer100 105949 z, r := codec1978.GenHelperDecoder(d) 105950 _, _, _ = h, z, r 105951 var yyj26 int 105952 var yyb26 bool 105953 var yyhl26 bool = l >= 0 105954 yyj26++ 105955 if yyhl26 { 105956 yyb26 = yyj26 > l 105957 } else { 105958 yyb26 = r.CheckBreak() 105959 } 105960 if yyb26 { 105961 r.ReadArrayEnd() 105962 return 105963 } 105964 r.ReadArrayElem() 105965 if r.TryDecodeAsNil() { 105966 x.NodesEvaluated = 0 105967 } else { 105968 x.NodesEvaluated = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105969 } 105970 yyj26++ 105971 if yyhl26 { 105972 yyb26 = yyj26 > l 105973 } else { 105974 yyb26 = r.CheckBreak() 105975 } 105976 if yyb26 { 105977 r.ReadArrayEnd() 105978 return 105979 } 105980 r.ReadArrayElem() 105981 if r.TryDecodeAsNil() { 105982 x.NodesFiltered = 0 105983 } else { 105984 x.NodesFiltered = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 105985 } 105986 yyj26++ 105987 if yyhl26 { 105988 yyb26 = yyj26 > l 105989 } else { 105990 yyb26 = r.CheckBreak() 105991 } 105992 if yyb26 { 105993 r.ReadArrayEnd() 105994 return 105995 } 105996 r.ReadArrayElem() 105997 if r.TryDecodeAsNil() { 105998 x.NodesAvailable = nil 105999 } else { 106000 if false { 106001 } else { 106002 z.F.DecMapStringIntX(&x.NodesAvailable, d) 106003 } 106004 } 106005 yyj26++ 106006 if yyhl26 { 106007 yyb26 = yyj26 > l 106008 } else { 106009 yyb26 = r.CheckBreak() 106010 } 106011 if yyb26 { 106012 r.ReadArrayEnd() 106013 return 106014 } 106015 r.ReadArrayElem() 106016 if r.TryDecodeAsNil() { 106017 x.ClassFiltered = nil 106018 } else { 106019 if false { 106020 } else { 106021 z.F.DecMapStringIntX(&x.ClassFiltered, d) 106022 } 106023 } 106024 yyj26++ 106025 if yyhl26 { 106026 yyb26 = yyj26 > l 106027 } else { 106028 yyb26 = r.CheckBreak() 106029 } 106030 if yyb26 { 106031 r.ReadArrayEnd() 106032 return 106033 } 106034 r.ReadArrayElem() 106035 if r.TryDecodeAsNil() { 106036 x.ConstraintFiltered = nil 106037 } else { 106038 if false { 106039 } else { 106040 z.F.DecMapStringIntX(&x.ConstraintFiltered, d) 106041 } 106042 } 106043 yyj26++ 106044 if yyhl26 { 106045 yyb26 = yyj26 > l 106046 } else { 106047 yyb26 = r.CheckBreak() 106048 } 106049 if yyb26 { 106050 r.ReadArrayEnd() 106051 return 106052 } 106053 r.ReadArrayElem() 106054 if r.TryDecodeAsNil() { 106055 x.NodesExhausted = 0 106056 } else { 106057 x.NodesExhausted = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 106058 } 106059 yyj26++ 106060 if yyhl26 { 106061 yyb26 = yyj26 > l 106062 } else { 106063 yyb26 = r.CheckBreak() 106064 } 106065 if yyb26 { 106066 r.ReadArrayEnd() 106067 return 106068 } 106069 r.ReadArrayElem() 106070 if r.TryDecodeAsNil() { 106071 x.ClassExhausted = nil 106072 } else { 106073 if false { 106074 } else { 106075 z.F.DecMapStringIntX(&x.ClassExhausted, d) 106076 } 106077 } 106078 yyj26++ 106079 if yyhl26 { 106080 yyb26 = yyj26 > l 106081 } else { 106082 yyb26 = r.CheckBreak() 106083 } 106084 if yyb26 { 106085 r.ReadArrayEnd() 106086 return 106087 } 106088 r.ReadArrayElem() 106089 if r.TryDecodeAsNil() { 106090 x.DimensionExhausted = nil 106091 } else { 106092 if false { 106093 } else { 106094 z.F.DecMapStringIntX(&x.DimensionExhausted, d) 106095 } 106096 } 106097 yyj26++ 106098 if yyhl26 { 106099 yyb26 = yyj26 > l 106100 } else { 106101 yyb26 = r.CheckBreak() 106102 } 106103 if yyb26 { 106104 r.ReadArrayEnd() 106105 return 106106 } 106107 r.ReadArrayElem() 106108 if r.TryDecodeAsNil() { 106109 x.QuotaExhausted = nil 106110 } else { 106111 if false { 106112 } else { 106113 z.F.DecSliceStringX(&x.QuotaExhausted, d) 106114 } 106115 } 106116 yyj26++ 106117 if yyhl26 { 106118 yyb26 = yyj26 > l 106119 } else { 106120 yyb26 = r.CheckBreak() 106121 } 106122 if yyb26 { 106123 r.ReadArrayEnd() 106124 return 106125 } 106126 r.ReadArrayElem() 106127 if r.TryDecodeAsNil() { 106128 x.Scores = nil 106129 } else { 106130 if false { 106131 } else { 106132 z.F.DecMapStringFloat64X(&x.Scores, d) 106133 } 106134 } 106135 yyj26++ 106136 if yyhl26 { 106137 yyb26 = yyj26 > l 106138 } else { 106139 yyb26 = r.CheckBreak() 106140 } 106141 if yyb26 { 106142 r.ReadArrayEnd() 106143 return 106144 } 106145 r.ReadArrayElem() 106146 if r.TryDecodeAsNil() { 106147 x.ScoreMetaData = nil 106148 } else { 106149 if false { 106150 } else { 106151 h.decSlicePtrtoNodeScoreMeta((*[]*NodeScoreMeta)(&x.ScoreMetaData), d) 106152 } 106153 } 106154 yyj26++ 106155 if yyhl26 { 106156 yyb26 = yyj26 > l 106157 } else { 106158 yyb26 = r.CheckBreak() 106159 } 106160 if yyb26 { 106161 r.ReadArrayEnd() 106162 return 106163 } 106164 r.ReadArrayElem() 106165 if r.TryDecodeAsNil() { 106166 x.AllocationTime = 0 106167 } else { 106168 if false { 106169 } else if yyxt47 := z.Extension(z.I2Rtid(x.AllocationTime)); yyxt47 != nil { 106170 z.DecExtension(x.AllocationTime, yyxt47) 106171 } else { 106172 x.AllocationTime = (time.Duration)(r.DecodeInt64()) 106173 } 106174 } 106175 yyj26++ 106176 if yyhl26 { 106177 yyb26 = yyj26 > l 106178 } else { 106179 yyb26 = r.CheckBreak() 106180 } 106181 if yyb26 { 106182 r.ReadArrayEnd() 106183 return 106184 } 106185 r.ReadArrayElem() 106186 if r.TryDecodeAsNil() { 106187 x.CoalescedFailures = 0 106188 } else { 106189 x.CoalescedFailures = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 106190 } 106191 for { 106192 yyj26++ 106193 if yyhl26 { 106194 yyb26 = yyj26 > l 106195 } else { 106196 yyb26 = r.CheckBreak() 106197 } 106198 if yyb26 { 106199 break 106200 } 106201 r.ReadArrayElem() 106202 z.DecStructFieldNotFound(yyj26-1, "") 106203 } 106204 r.ReadArrayEnd() 106205 } 106206 106207 func (x *NodeScoreMeta) CodecEncodeSelf(e *codec1978.Encoder) { 106208 var h codecSelfer100 106209 z, r := codec1978.GenHelperEncoder(e) 106210 _, _, _ = h, z, r 106211 if x == nil { 106212 r.EncodeNil() 106213 } else { 106214 if false { 106215 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106216 z.EncExtension(x, yyxt1) 106217 } else { 106218 yysep2 := !z.EncBinary() 106219 yy2arr2 := z.EncBasicHandle().StructToArray 106220 _, _ = yysep2, yy2arr2 106221 const yyr2 bool = false // struct tag has 'toArray' 106222 if yyr2 || yy2arr2 { 106223 r.WriteArrayStart(3) 106224 } else { 106225 r.WriteMapStart(3) 106226 } 106227 if yyr2 || yy2arr2 { 106228 r.WriteArrayElem() 106229 if false { 106230 } else { 106231 if z.EncBasicHandle().StringToRaw { 106232 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 106233 } else { 106234 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 106235 } 106236 } 106237 } else { 106238 r.WriteMapElemKey() 106239 if z.IsJSONHandle() { 106240 z.WriteStr("\"NodeID\"") 106241 } else { 106242 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 106243 } 106244 r.WriteMapElemValue() 106245 if false { 106246 } else { 106247 if z.EncBasicHandle().StringToRaw { 106248 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 106249 } else { 106250 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 106251 } 106252 } 106253 } 106254 if yyr2 || yy2arr2 { 106255 r.WriteArrayElem() 106256 if x.Scores == nil { 106257 r.EncodeNil() 106258 } else { 106259 if false { 106260 } else { 106261 z.F.EncMapStringFloat64V(x.Scores, e) 106262 } 106263 } 106264 } else { 106265 r.WriteMapElemKey() 106266 if z.IsJSONHandle() { 106267 z.WriteStr("\"Scores\"") 106268 } else { 106269 r.EncodeStringEnc(codecSelferCcUTF8100, `Scores`) 106270 } 106271 r.WriteMapElemValue() 106272 if x.Scores == nil { 106273 r.EncodeNil() 106274 } else { 106275 if false { 106276 } else { 106277 z.F.EncMapStringFloat64V(x.Scores, e) 106278 } 106279 } 106280 } 106281 if yyr2 || yy2arr2 { 106282 r.WriteArrayElem() 106283 if false { 106284 } else { 106285 r.EncodeFloat64(float64(x.NormScore)) 106286 } 106287 } else { 106288 r.WriteMapElemKey() 106289 if z.IsJSONHandle() { 106290 z.WriteStr("\"NormScore\"") 106291 } else { 106292 r.EncodeStringEnc(codecSelferCcUTF8100, `NormScore`) 106293 } 106294 r.WriteMapElemValue() 106295 if false { 106296 } else { 106297 r.EncodeFloat64(float64(x.NormScore)) 106298 } 106299 } 106300 if yyr2 || yy2arr2 { 106301 r.WriteArrayEnd() 106302 } else { 106303 r.WriteMapEnd() 106304 } 106305 } 106306 } 106307 } 106308 106309 func (x *NodeScoreMeta) CodecDecodeSelf(d *codec1978.Decoder) { 106310 var h codecSelfer100 106311 z, r := codec1978.GenHelperDecoder(d) 106312 _, _, _ = h, z, r 106313 if false { 106314 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106315 z.DecExtension(x, yyxt1) 106316 } else { 106317 yyct2 := r.ContainerType() 106318 if yyct2 == codecSelferValueTypeMap100 { 106319 yyl2 := r.ReadMapStart() 106320 if yyl2 == 0 { 106321 r.ReadMapEnd() 106322 } else { 106323 x.codecDecodeSelfFromMap(yyl2, d) 106324 } 106325 } else if yyct2 == codecSelferValueTypeArray100 { 106326 yyl2 := r.ReadArrayStart() 106327 if yyl2 == 0 { 106328 r.ReadArrayEnd() 106329 } else { 106330 x.codecDecodeSelfFromArray(yyl2, d) 106331 } 106332 } else { 106333 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 106334 } 106335 } 106336 } 106337 106338 func (x *NodeScoreMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 106339 var h codecSelfer100 106340 z, r := codec1978.GenHelperDecoder(d) 106341 _, _, _ = h, z, r 106342 var yyhl3 bool = l >= 0 106343 for yyj3 := 0; ; yyj3++ { 106344 if yyhl3 { 106345 if yyj3 >= l { 106346 break 106347 } 106348 } else { 106349 if r.CheckBreak() { 106350 break 106351 } 106352 } 106353 r.ReadMapElemKey() 106354 yys3 := z.StringView(r.DecodeStringAsBytes()) 106355 r.ReadMapElemValue() 106356 switch yys3 { 106357 case "NodeID": 106358 if r.TryDecodeAsNil() { 106359 x.NodeID = "" 106360 } else { 106361 x.NodeID = (string)(r.DecodeString()) 106362 } 106363 case "Scores": 106364 if r.TryDecodeAsNil() { 106365 x.Scores = nil 106366 } else { 106367 if false { 106368 } else { 106369 z.F.DecMapStringFloat64X(&x.Scores, d) 106370 } 106371 } 106372 case "NormScore": 106373 if r.TryDecodeAsNil() { 106374 x.NormScore = 0 106375 } else { 106376 x.NormScore = (float64)(r.DecodeFloat64()) 106377 } 106378 default: 106379 z.DecStructFieldNotFound(-1, yys3) 106380 } // end switch yys3 106381 } // end for yyj3 106382 r.ReadMapEnd() 106383 } 106384 106385 func (x *NodeScoreMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 106386 var h codecSelfer100 106387 z, r := codec1978.GenHelperDecoder(d) 106388 _, _, _ = h, z, r 106389 var yyj8 int 106390 var yyb8 bool 106391 var yyhl8 bool = l >= 0 106392 yyj8++ 106393 if yyhl8 { 106394 yyb8 = yyj8 > l 106395 } else { 106396 yyb8 = r.CheckBreak() 106397 } 106398 if yyb8 { 106399 r.ReadArrayEnd() 106400 return 106401 } 106402 r.ReadArrayElem() 106403 if r.TryDecodeAsNil() { 106404 x.NodeID = "" 106405 } else { 106406 x.NodeID = (string)(r.DecodeString()) 106407 } 106408 yyj8++ 106409 if yyhl8 { 106410 yyb8 = yyj8 > l 106411 } else { 106412 yyb8 = r.CheckBreak() 106413 } 106414 if yyb8 { 106415 r.ReadArrayEnd() 106416 return 106417 } 106418 r.ReadArrayElem() 106419 if r.TryDecodeAsNil() { 106420 x.Scores = nil 106421 } else { 106422 if false { 106423 } else { 106424 z.F.DecMapStringFloat64X(&x.Scores, d) 106425 } 106426 } 106427 yyj8++ 106428 if yyhl8 { 106429 yyb8 = yyj8 > l 106430 } else { 106431 yyb8 = r.CheckBreak() 106432 } 106433 if yyb8 { 106434 r.ReadArrayEnd() 106435 return 106436 } 106437 r.ReadArrayElem() 106438 if r.TryDecodeAsNil() { 106439 x.NormScore = 0 106440 } else { 106441 x.NormScore = (float64)(r.DecodeFloat64()) 106442 } 106443 for { 106444 yyj8++ 106445 if yyhl8 { 106446 yyb8 = yyj8 > l 106447 } else { 106448 yyb8 = r.CheckBreak() 106449 } 106450 if yyb8 { 106451 break 106452 } 106453 r.ReadArrayElem() 106454 z.DecStructFieldNotFound(yyj8-1, "") 106455 } 106456 r.ReadArrayEnd() 106457 } 106458 106459 func (x *AllocDeploymentStatus) CodecEncodeSelf(e *codec1978.Encoder) { 106460 var h codecSelfer100 106461 z, r := codec1978.GenHelperEncoder(e) 106462 _, _, _ = h, z, r 106463 if x == nil { 106464 r.EncodeNil() 106465 } else { 106466 if false { 106467 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106468 z.EncExtension(x, yyxt1) 106469 } else { 106470 yysep2 := !z.EncBinary() 106471 yy2arr2 := z.EncBasicHandle().StructToArray 106472 _, _ = yysep2, yy2arr2 106473 const yyr2 bool = false // struct tag has 'toArray' 106474 if yyr2 || yy2arr2 { 106475 r.WriteArrayStart(4) 106476 } else { 106477 r.WriteMapStart(4) 106478 } 106479 var yyn3 bool 106480 if x.Healthy == nil { 106481 yyn3 = true 106482 goto LABEL3 106483 } 106484 LABEL3: 106485 if yyr2 || yy2arr2 { 106486 if yyn3 { 106487 r.WriteArrayElem() 106488 r.EncodeNil() 106489 } else { 106490 r.WriteArrayElem() 106491 if x.Healthy == nil { 106492 r.EncodeNil() 106493 } else { 106494 yy4 := *x.Healthy 106495 if false { 106496 } else { 106497 r.EncodeBool(bool(yy4)) 106498 } 106499 } 106500 } 106501 } else { 106502 r.WriteMapElemKey() 106503 if z.IsJSONHandle() { 106504 z.WriteStr("\"Healthy\"") 106505 } else { 106506 r.EncodeStringEnc(codecSelferCcUTF8100, `Healthy`) 106507 } 106508 r.WriteMapElemValue() 106509 if yyn3 { 106510 r.EncodeNil() 106511 } else { 106512 if x.Healthy == nil { 106513 r.EncodeNil() 106514 } else { 106515 yy6 := *x.Healthy 106516 if false { 106517 } else { 106518 r.EncodeBool(bool(yy6)) 106519 } 106520 } 106521 } 106522 } 106523 if yyr2 || yy2arr2 { 106524 r.WriteArrayElem() 106525 if false { 106526 } else if !z.EncBasicHandle().TimeNotBuiltin { 106527 r.EncodeTime(x.Timestamp) 106528 } else if yyxt9 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt9 != nil { 106529 z.EncExtension(x.Timestamp, yyxt9) 106530 } else if z.EncBinary() { 106531 z.EncBinaryMarshal(x.Timestamp) 106532 } else if !z.EncBinary() && z.IsJSONHandle() { 106533 z.EncJSONMarshal(x.Timestamp) 106534 } else { 106535 z.EncFallback(x.Timestamp) 106536 } 106537 } else { 106538 r.WriteMapElemKey() 106539 if z.IsJSONHandle() { 106540 z.WriteStr("\"Timestamp\"") 106541 } else { 106542 r.EncodeStringEnc(codecSelferCcUTF8100, `Timestamp`) 106543 } 106544 r.WriteMapElemValue() 106545 if false { 106546 } else if !z.EncBasicHandle().TimeNotBuiltin { 106547 r.EncodeTime(x.Timestamp) 106548 } else if yyxt10 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt10 != nil { 106549 z.EncExtension(x.Timestamp, yyxt10) 106550 } else if z.EncBinary() { 106551 z.EncBinaryMarshal(x.Timestamp) 106552 } else if !z.EncBinary() && z.IsJSONHandle() { 106553 z.EncJSONMarshal(x.Timestamp) 106554 } else { 106555 z.EncFallback(x.Timestamp) 106556 } 106557 } 106558 if yyr2 || yy2arr2 { 106559 r.WriteArrayElem() 106560 if false { 106561 } else { 106562 r.EncodeBool(bool(x.Canary)) 106563 } 106564 } else { 106565 r.WriteMapElemKey() 106566 if z.IsJSONHandle() { 106567 z.WriteStr("\"Canary\"") 106568 } else { 106569 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 106570 } 106571 r.WriteMapElemValue() 106572 if false { 106573 } else { 106574 r.EncodeBool(bool(x.Canary)) 106575 } 106576 } 106577 if yyr2 || yy2arr2 { 106578 r.WriteArrayElem() 106579 if false { 106580 } else { 106581 r.EncodeUint(uint64(x.ModifyIndex)) 106582 } 106583 } else { 106584 r.WriteMapElemKey() 106585 if z.IsJSONHandle() { 106586 z.WriteStr("\"ModifyIndex\"") 106587 } else { 106588 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 106589 } 106590 r.WriteMapElemValue() 106591 if false { 106592 } else { 106593 r.EncodeUint(uint64(x.ModifyIndex)) 106594 } 106595 } 106596 if yyr2 || yy2arr2 { 106597 r.WriteArrayEnd() 106598 } else { 106599 r.WriteMapEnd() 106600 } 106601 } 106602 } 106603 } 106604 106605 func (x *AllocDeploymentStatus) CodecDecodeSelf(d *codec1978.Decoder) { 106606 var h codecSelfer100 106607 z, r := codec1978.GenHelperDecoder(d) 106608 _, _, _ = h, z, r 106609 if false { 106610 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106611 z.DecExtension(x, yyxt1) 106612 } else { 106613 yyct2 := r.ContainerType() 106614 if yyct2 == codecSelferValueTypeMap100 { 106615 yyl2 := r.ReadMapStart() 106616 if yyl2 == 0 { 106617 r.ReadMapEnd() 106618 } else { 106619 x.codecDecodeSelfFromMap(yyl2, d) 106620 } 106621 } else if yyct2 == codecSelferValueTypeArray100 { 106622 yyl2 := r.ReadArrayStart() 106623 if yyl2 == 0 { 106624 r.ReadArrayEnd() 106625 } else { 106626 x.codecDecodeSelfFromArray(yyl2, d) 106627 } 106628 } else { 106629 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 106630 } 106631 } 106632 } 106633 106634 func (x *AllocDeploymentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 106635 var h codecSelfer100 106636 z, r := codec1978.GenHelperDecoder(d) 106637 _, _, _ = h, z, r 106638 var yyhl3 bool = l >= 0 106639 for yyj3 := 0; ; yyj3++ { 106640 if yyhl3 { 106641 if yyj3 >= l { 106642 break 106643 } 106644 } else { 106645 if r.CheckBreak() { 106646 break 106647 } 106648 } 106649 r.ReadMapElemKey() 106650 yys3 := z.StringView(r.DecodeStringAsBytes()) 106651 r.ReadMapElemValue() 106652 switch yys3 { 106653 case "Healthy": 106654 if r.TryDecodeAsNil() { 106655 if true && x.Healthy != nil { 106656 x.Healthy = nil 106657 } 106658 } else { 106659 if x.Healthy == nil { 106660 x.Healthy = new(bool) 106661 } 106662 106663 if false { 106664 } else { 106665 *x.Healthy = (bool)(r.DecodeBool()) 106666 } 106667 } 106668 case "Timestamp": 106669 if r.TryDecodeAsNil() { 106670 x.Timestamp = time.Time{} 106671 } else { 106672 if false { 106673 } else if !z.DecBasicHandle().TimeNotBuiltin { 106674 x.Timestamp = r.DecodeTime() 106675 } else if yyxt7 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt7 != nil { 106676 z.DecExtension(x.Timestamp, yyxt7) 106677 } else if z.DecBinary() { 106678 z.DecBinaryUnmarshal(&x.Timestamp) 106679 } else if !z.DecBinary() && z.IsJSONHandle() { 106680 z.DecJSONUnmarshal(&x.Timestamp) 106681 } else { 106682 z.DecFallback(&x.Timestamp, false) 106683 } 106684 } 106685 case "Canary": 106686 if r.TryDecodeAsNil() { 106687 x.Canary = false 106688 } else { 106689 x.Canary = (bool)(r.DecodeBool()) 106690 } 106691 case "ModifyIndex": 106692 if r.TryDecodeAsNil() { 106693 x.ModifyIndex = 0 106694 } else { 106695 x.ModifyIndex = (uint64)(r.DecodeUint64()) 106696 } 106697 default: 106698 z.DecStructFieldNotFound(-1, yys3) 106699 } // end switch yys3 106700 } // end for yyj3 106701 r.ReadMapEnd() 106702 } 106703 106704 func (x *AllocDeploymentStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 106705 var h codecSelfer100 106706 z, r := codec1978.GenHelperDecoder(d) 106707 _, _, _ = h, z, r 106708 var yyj10 int 106709 var yyb10 bool 106710 var yyhl10 bool = l >= 0 106711 yyj10++ 106712 if yyhl10 { 106713 yyb10 = yyj10 > l 106714 } else { 106715 yyb10 = r.CheckBreak() 106716 } 106717 if yyb10 { 106718 r.ReadArrayEnd() 106719 return 106720 } 106721 r.ReadArrayElem() 106722 if r.TryDecodeAsNil() { 106723 if true && x.Healthy != nil { 106724 x.Healthy = nil 106725 } 106726 } else { 106727 if x.Healthy == nil { 106728 x.Healthy = new(bool) 106729 } 106730 106731 if false { 106732 } else { 106733 *x.Healthy = (bool)(r.DecodeBool()) 106734 } 106735 } 106736 yyj10++ 106737 if yyhl10 { 106738 yyb10 = yyj10 > l 106739 } else { 106740 yyb10 = r.CheckBreak() 106741 } 106742 if yyb10 { 106743 r.ReadArrayEnd() 106744 return 106745 } 106746 r.ReadArrayElem() 106747 if r.TryDecodeAsNil() { 106748 x.Timestamp = time.Time{} 106749 } else { 106750 if false { 106751 } else if !z.DecBasicHandle().TimeNotBuiltin { 106752 x.Timestamp = r.DecodeTime() 106753 } else if yyxt14 := z.Extension(z.I2Rtid(x.Timestamp)); yyxt14 != nil { 106754 z.DecExtension(x.Timestamp, yyxt14) 106755 } else if z.DecBinary() { 106756 z.DecBinaryUnmarshal(&x.Timestamp) 106757 } else if !z.DecBinary() && z.IsJSONHandle() { 106758 z.DecJSONUnmarshal(&x.Timestamp) 106759 } else { 106760 z.DecFallback(&x.Timestamp, false) 106761 } 106762 } 106763 yyj10++ 106764 if yyhl10 { 106765 yyb10 = yyj10 > l 106766 } else { 106767 yyb10 = r.CheckBreak() 106768 } 106769 if yyb10 { 106770 r.ReadArrayEnd() 106771 return 106772 } 106773 r.ReadArrayElem() 106774 if r.TryDecodeAsNil() { 106775 x.Canary = false 106776 } else { 106777 x.Canary = (bool)(r.DecodeBool()) 106778 } 106779 yyj10++ 106780 if yyhl10 { 106781 yyb10 = yyj10 > l 106782 } else { 106783 yyb10 = r.CheckBreak() 106784 } 106785 if yyb10 { 106786 r.ReadArrayEnd() 106787 return 106788 } 106789 r.ReadArrayElem() 106790 if r.TryDecodeAsNil() { 106791 x.ModifyIndex = 0 106792 } else { 106793 x.ModifyIndex = (uint64)(r.DecodeUint64()) 106794 } 106795 for { 106796 yyj10++ 106797 if yyhl10 { 106798 yyb10 = yyj10 > l 106799 } else { 106800 yyb10 = r.CheckBreak() 106801 } 106802 if yyb10 { 106803 break 106804 } 106805 r.ReadArrayElem() 106806 z.DecStructFieldNotFound(yyj10-1, "") 106807 } 106808 r.ReadArrayEnd() 106809 } 106810 106811 func (x *Evaluation) CodecEncodeSelf(e *codec1978.Encoder) { 106812 var h codecSelfer100 106813 z, r := codec1978.GenHelperEncoder(e) 106814 _, _, _ = h, z, r 106815 if x == nil { 106816 r.EncodeNil() 106817 } else { 106818 if false { 106819 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 106820 z.EncExtension(x, yyxt1) 106821 } else { 106822 yysep2 := !z.EncBinary() 106823 yy2arr2 := z.EncBasicHandle().StructToArray 106824 _, _ = yysep2, yy2arr2 106825 const yyr2 bool = false // struct tag has 'toArray' 106826 var yyq2 = [29]bool{ // should field at this index be written? 106827 x.ID != "", // ID 106828 x.Namespace != "", // Namespace 106829 x.Priority != 0, // Priority 106830 x.Type != "", // Type 106831 x.TriggeredBy != "", // TriggeredBy 106832 x.JobID != "", // JobID 106833 x.JobModifyIndex != 0, // JobModifyIndex 106834 x.NodeID != "", // NodeID 106835 x.NodeModifyIndex != 0, // NodeModifyIndex 106836 x.DeploymentID != "", // DeploymentID 106837 x.Status != "", // Status 106838 x.StatusDescription != "", // StatusDescription 106839 x.Wait != 0, // Wait 106840 !(x.WaitUntil.IsZero()), // WaitUntil 106841 x.NextEval != "", // NextEval 106842 x.PreviousEval != "", // PreviousEval 106843 x.BlockedEval != "", // BlockedEval 106844 len(x.FailedTGAllocs) != 0, // FailedTGAllocs 106845 len(x.ClassEligibility) != 0, // ClassEligibility 106846 x.QuotaLimitReached != "", // QuotaLimitReached 106847 x.EscapedComputedClass, // EscapedComputedClass 106848 x.AnnotatePlan, // AnnotatePlan 106849 len(x.QueuedAllocations) != 0, // QueuedAllocations 106850 x.LeaderACL != "", // LeaderACL 106851 x.SnapshotIndex != 0, // SnapshotIndex 106852 x.CreateIndex != 0, // CreateIndex 106853 x.ModifyIndex != 0, // ModifyIndex 106854 x.CreateTime != 0, // CreateTime 106855 x.ModifyTime != 0, // ModifyTime 106856 } 106857 _ = yyq2 106858 if yyr2 || yy2arr2 { 106859 r.WriteArrayStart(29) 106860 } else { 106861 var yynn2 int 106862 for _, b := range yyq2 { 106863 if b { 106864 yynn2++ 106865 } 106866 } 106867 r.WriteMapStart(yynn2) 106868 yynn2 = 0 106869 } 106870 if yyr2 || yy2arr2 { 106871 r.WriteArrayElem() 106872 if yyq2[0] { 106873 if false { 106874 } else { 106875 if z.EncBasicHandle().StringToRaw { 106876 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 106877 } else { 106878 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 106879 } 106880 } 106881 } else { 106882 if z.EncBasicHandle().StringToRaw { 106883 r.EncodeStringBytesRaw([]byte{}) 106884 } else { 106885 r.EncodeStringEnc(codecSelferCcUTF8100, "") 106886 } 106887 } 106888 } else { 106889 if yyq2[0] { 106890 r.WriteMapElemKey() 106891 if z.IsJSONHandle() { 106892 z.WriteStr("\"ID\"") 106893 } else { 106894 r.EncodeStringEnc(codecSelferCcUTF8100, `ID`) 106895 } 106896 r.WriteMapElemValue() 106897 if false { 106898 } else { 106899 if z.EncBasicHandle().StringToRaw { 106900 r.EncodeStringBytesRaw(z.BytesView(string(x.ID))) 106901 } else { 106902 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.ID)) 106903 } 106904 } 106905 } 106906 } 106907 if yyr2 || yy2arr2 { 106908 r.WriteArrayElem() 106909 if yyq2[1] { 106910 if false { 106911 } else { 106912 if z.EncBasicHandle().StringToRaw { 106913 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 106914 } else { 106915 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 106916 } 106917 } 106918 } else { 106919 if z.EncBasicHandle().StringToRaw { 106920 r.EncodeStringBytesRaw([]byte{}) 106921 } else { 106922 r.EncodeStringEnc(codecSelferCcUTF8100, "") 106923 } 106924 } 106925 } else { 106926 if yyq2[1] { 106927 r.WriteMapElemKey() 106928 if z.IsJSONHandle() { 106929 z.WriteStr("\"Namespace\"") 106930 } else { 106931 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 106932 } 106933 r.WriteMapElemValue() 106934 if false { 106935 } else { 106936 if z.EncBasicHandle().StringToRaw { 106937 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 106938 } else { 106939 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 106940 } 106941 } 106942 } 106943 } 106944 if yyr2 || yy2arr2 { 106945 r.WriteArrayElem() 106946 if yyq2[2] { 106947 if false { 106948 } else { 106949 r.EncodeInt(int64(x.Priority)) 106950 } 106951 } else { 106952 r.EncodeInt(0) 106953 } 106954 } else { 106955 if yyq2[2] { 106956 r.WriteMapElemKey() 106957 if z.IsJSONHandle() { 106958 z.WriteStr("\"Priority\"") 106959 } else { 106960 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 106961 } 106962 r.WriteMapElemValue() 106963 if false { 106964 } else { 106965 r.EncodeInt(int64(x.Priority)) 106966 } 106967 } 106968 } 106969 if yyr2 || yy2arr2 { 106970 r.WriteArrayElem() 106971 if yyq2[3] { 106972 if false { 106973 } else { 106974 if z.EncBasicHandle().StringToRaw { 106975 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 106976 } else { 106977 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 106978 } 106979 } 106980 } else { 106981 if z.EncBasicHandle().StringToRaw { 106982 r.EncodeStringBytesRaw([]byte{}) 106983 } else { 106984 r.EncodeStringEnc(codecSelferCcUTF8100, "") 106985 } 106986 } 106987 } else { 106988 if yyq2[3] { 106989 r.WriteMapElemKey() 106990 if z.IsJSONHandle() { 106991 z.WriteStr("\"Type\"") 106992 } else { 106993 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 106994 } 106995 r.WriteMapElemValue() 106996 if false { 106997 } else { 106998 if z.EncBasicHandle().StringToRaw { 106999 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 107000 } else { 107001 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 107002 } 107003 } 107004 } 107005 } 107006 if yyr2 || yy2arr2 { 107007 r.WriteArrayElem() 107008 if yyq2[4] { 107009 if false { 107010 } else { 107011 if z.EncBasicHandle().StringToRaw { 107012 r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) 107013 } else { 107014 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) 107015 } 107016 } 107017 } else { 107018 if z.EncBasicHandle().StringToRaw { 107019 r.EncodeStringBytesRaw([]byte{}) 107020 } else { 107021 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107022 } 107023 } 107024 } else { 107025 if yyq2[4] { 107026 r.WriteMapElemKey() 107027 if z.IsJSONHandle() { 107028 z.WriteStr("\"TriggeredBy\"") 107029 } else { 107030 r.EncodeStringEnc(codecSelferCcUTF8100, `TriggeredBy`) 107031 } 107032 r.WriteMapElemValue() 107033 if false { 107034 } else { 107035 if z.EncBasicHandle().StringToRaw { 107036 r.EncodeStringBytesRaw(z.BytesView(string(x.TriggeredBy))) 107037 } else { 107038 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.TriggeredBy)) 107039 } 107040 } 107041 } 107042 } 107043 if yyr2 || yy2arr2 { 107044 r.WriteArrayElem() 107045 if yyq2[5] { 107046 if false { 107047 } else { 107048 if z.EncBasicHandle().StringToRaw { 107049 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 107050 } else { 107051 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 107052 } 107053 } 107054 } else { 107055 if z.EncBasicHandle().StringToRaw { 107056 r.EncodeStringBytesRaw([]byte{}) 107057 } else { 107058 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107059 } 107060 } 107061 } else { 107062 if yyq2[5] { 107063 r.WriteMapElemKey() 107064 if z.IsJSONHandle() { 107065 z.WriteStr("\"JobID\"") 107066 } else { 107067 r.EncodeStringEnc(codecSelferCcUTF8100, `JobID`) 107068 } 107069 r.WriteMapElemValue() 107070 if false { 107071 } else { 107072 if z.EncBasicHandle().StringToRaw { 107073 r.EncodeStringBytesRaw(z.BytesView(string(x.JobID))) 107074 } else { 107075 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.JobID)) 107076 } 107077 } 107078 } 107079 } 107080 if yyr2 || yy2arr2 { 107081 r.WriteArrayElem() 107082 if yyq2[6] { 107083 if false { 107084 } else { 107085 r.EncodeUint(uint64(x.JobModifyIndex)) 107086 } 107087 } else { 107088 r.EncodeUint(0) 107089 } 107090 } else { 107091 if yyq2[6] { 107092 r.WriteMapElemKey() 107093 if z.IsJSONHandle() { 107094 z.WriteStr("\"JobModifyIndex\"") 107095 } else { 107096 r.EncodeStringEnc(codecSelferCcUTF8100, `JobModifyIndex`) 107097 } 107098 r.WriteMapElemValue() 107099 if false { 107100 } else { 107101 r.EncodeUint(uint64(x.JobModifyIndex)) 107102 } 107103 } 107104 } 107105 if yyr2 || yy2arr2 { 107106 r.WriteArrayElem() 107107 if yyq2[7] { 107108 if false { 107109 } else { 107110 if z.EncBasicHandle().StringToRaw { 107111 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 107112 } else { 107113 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 107114 } 107115 } 107116 } else { 107117 if z.EncBasicHandle().StringToRaw { 107118 r.EncodeStringBytesRaw([]byte{}) 107119 } else { 107120 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107121 } 107122 } 107123 } else { 107124 if yyq2[7] { 107125 r.WriteMapElemKey() 107126 if z.IsJSONHandle() { 107127 z.WriteStr("\"NodeID\"") 107128 } else { 107129 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeID`) 107130 } 107131 r.WriteMapElemValue() 107132 if false { 107133 } else { 107134 if z.EncBasicHandle().StringToRaw { 107135 r.EncodeStringBytesRaw(z.BytesView(string(x.NodeID))) 107136 } else { 107137 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NodeID)) 107138 } 107139 } 107140 } 107141 } 107142 if yyr2 || yy2arr2 { 107143 r.WriteArrayElem() 107144 if yyq2[8] { 107145 if false { 107146 } else { 107147 r.EncodeUint(uint64(x.NodeModifyIndex)) 107148 } 107149 } else { 107150 r.EncodeUint(0) 107151 } 107152 } else { 107153 if yyq2[8] { 107154 r.WriteMapElemKey() 107155 if z.IsJSONHandle() { 107156 z.WriteStr("\"NodeModifyIndex\"") 107157 } else { 107158 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeModifyIndex`) 107159 } 107160 r.WriteMapElemValue() 107161 if false { 107162 } else { 107163 r.EncodeUint(uint64(x.NodeModifyIndex)) 107164 } 107165 } 107166 } 107167 if yyr2 || yy2arr2 { 107168 r.WriteArrayElem() 107169 if yyq2[9] { 107170 if false { 107171 } else { 107172 if z.EncBasicHandle().StringToRaw { 107173 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 107174 } else { 107175 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 107176 } 107177 } 107178 } else { 107179 if z.EncBasicHandle().StringToRaw { 107180 r.EncodeStringBytesRaw([]byte{}) 107181 } else { 107182 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107183 } 107184 } 107185 } else { 107186 if yyq2[9] { 107187 r.WriteMapElemKey() 107188 if z.IsJSONHandle() { 107189 z.WriteStr("\"DeploymentID\"") 107190 } else { 107191 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentID`) 107192 } 107193 r.WriteMapElemValue() 107194 if false { 107195 } else { 107196 if z.EncBasicHandle().StringToRaw { 107197 r.EncodeStringBytesRaw(z.BytesView(string(x.DeploymentID))) 107198 } else { 107199 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.DeploymentID)) 107200 } 107201 } 107202 } 107203 } 107204 if yyr2 || yy2arr2 { 107205 r.WriteArrayElem() 107206 if yyq2[10] { 107207 if false { 107208 } else { 107209 if z.EncBasicHandle().StringToRaw { 107210 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 107211 } else { 107212 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 107213 } 107214 } 107215 } else { 107216 if z.EncBasicHandle().StringToRaw { 107217 r.EncodeStringBytesRaw([]byte{}) 107218 } else { 107219 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107220 } 107221 } 107222 } else { 107223 if yyq2[10] { 107224 r.WriteMapElemKey() 107225 if z.IsJSONHandle() { 107226 z.WriteStr("\"Status\"") 107227 } else { 107228 r.EncodeStringEnc(codecSelferCcUTF8100, `Status`) 107229 } 107230 r.WriteMapElemValue() 107231 if false { 107232 } else { 107233 if z.EncBasicHandle().StringToRaw { 107234 r.EncodeStringBytesRaw(z.BytesView(string(x.Status))) 107235 } else { 107236 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Status)) 107237 } 107238 } 107239 } 107240 } 107241 if yyr2 || yy2arr2 { 107242 r.WriteArrayElem() 107243 if yyq2[11] { 107244 if false { 107245 } else { 107246 if z.EncBasicHandle().StringToRaw { 107247 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 107248 } else { 107249 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 107250 } 107251 } 107252 } else { 107253 if z.EncBasicHandle().StringToRaw { 107254 r.EncodeStringBytesRaw([]byte{}) 107255 } else { 107256 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107257 } 107258 } 107259 } else { 107260 if yyq2[11] { 107261 r.WriteMapElemKey() 107262 if z.IsJSONHandle() { 107263 z.WriteStr("\"StatusDescription\"") 107264 } else { 107265 r.EncodeStringEnc(codecSelferCcUTF8100, `StatusDescription`) 107266 } 107267 r.WriteMapElemValue() 107268 if false { 107269 } else { 107270 if z.EncBasicHandle().StringToRaw { 107271 r.EncodeStringBytesRaw(z.BytesView(string(x.StatusDescription))) 107272 } else { 107273 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.StatusDescription)) 107274 } 107275 } 107276 } 107277 } 107278 if yyr2 || yy2arr2 { 107279 r.WriteArrayElem() 107280 if yyq2[12] { 107281 if false { 107282 } else if yyxt40 := z.Extension(z.I2Rtid(x.Wait)); yyxt40 != nil { 107283 z.EncExtension(x.Wait, yyxt40) 107284 } else { 107285 r.EncodeInt(int64(x.Wait)) 107286 } 107287 } else { 107288 r.EncodeInt(0) 107289 } 107290 } else { 107291 if yyq2[12] { 107292 r.WriteMapElemKey() 107293 if z.IsJSONHandle() { 107294 z.WriteStr("\"Wait\"") 107295 } else { 107296 r.EncodeStringEnc(codecSelferCcUTF8100, `Wait`) 107297 } 107298 r.WriteMapElemValue() 107299 if false { 107300 } else if yyxt41 := z.Extension(z.I2Rtid(x.Wait)); yyxt41 != nil { 107301 z.EncExtension(x.Wait, yyxt41) 107302 } else { 107303 r.EncodeInt(int64(x.Wait)) 107304 } 107305 } 107306 } 107307 if yyr2 || yy2arr2 { 107308 r.WriteArrayElem() 107309 if yyq2[13] { 107310 if false { 107311 } else if !z.EncBasicHandle().TimeNotBuiltin { 107312 r.EncodeTime(x.WaitUntil) 107313 } else if yyxt43 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt43 != nil { 107314 z.EncExtension(x.WaitUntil, yyxt43) 107315 } else if z.EncBinary() { 107316 z.EncBinaryMarshal(x.WaitUntil) 107317 } else if !z.EncBinary() && z.IsJSONHandle() { 107318 z.EncJSONMarshal(x.WaitUntil) 107319 } else { 107320 z.EncFallback(x.WaitUntil) 107321 } 107322 } else { 107323 r.EncodeNil() 107324 } 107325 } else { 107326 if yyq2[13] { 107327 r.WriteMapElemKey() 107328 if z.IsJSONHandle() { 107329 z.WriteStr("\"WaitUntil\"") 107330 } else { 107331 r.EncodeStringEnc(codecSelferCcUTF8100, `WaitUntil`) 107332 } 107333 r.WriteMapElemValue() 107334 if false { 107335 } else if !z.EncBasicHandle().TimeNotBuiltin { 107336 r.EncodeTime(x.WaitUntil) 107337 } else if yyxt44 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt44 != nil { 107338 z.EncExtension(x.WaitUntil, yyxt44) 107339 } else if z.EncBinary() { 107340 z.EncBinaryMarshal(x.WaitUntil) 107341 } else if !z.EncBinary() && z.IsJSONHandle() { 107342 z.EncJSONMarshal(x.WaitUntil) 107343 } else { 107344 z.EncFallback(x.WaitUntil) 107345 } 107346 } 107347 } 107348 if yyr2 || yy2arr2 { 107349 r.WriteArrayElem() 107350 if yyq2[14] { 107351 if false { 107352 } else { 107353 if z.EncBasicHandle().StringToRaw { 107354 r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) 107355 } else { 107356 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) 107357 } 107358 } 107359 } else { 107360 if z.EncBasicHandle().StringToRaw { 107361 r.EncodeStringBytesRaw([]byte{}) 107362 } else { 107363 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107364 } 107365 } 107366 } else { 107367 if yyq2[14] { 107368 r.WriteMapElemKey() 107369 if z.IsJSONHandle() { 107370 z.WriteStr("\"NextEval\"") 107371 } else { 107372 r.EncodeStringEnc(codecSelferCcUTF8100, `NextEval`) 107373 } 107374 r.WriteMapElemValue() 107375 if false { 107376 } else { 107377 if z.EncBasicHandle().StringToRaw { 107378 r.EncodeStringBytesRaw(z.BytesView(string(x.NextEval))) 107379 } else { 107380 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.NextEval)) 107381 } 107382 } 107383 } 107384 } 107385 if yyr2 || yy2arr2 { 107386 r.WriteArrayElem() 107387 if yyq2[15] { 107388 if false { 107389 } else { 107390 if z.EncBasicHandle().StringToRaw { 107391 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) 107392 } else { 107393 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) 107394 } 107395 } 107396 } else { 107397 if z.EncBasicHandle().StringToRaw { 107398 r.EncodeStringBytesRaw([]byte{}) 107399 } else { 107400 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107401 } 107402 } 107403 } else { 107404 if yyq2[15] { 107405 r.WriteMapElemKey() 107406 if z.IsJSONHandle() { 107407 z.WriteStr("\"PreviousEval\"") 107408 } else { 107409 r.EncodeStringEnc(codecSelferCcUTF8100, `PreviousEval`) 107410 } 107411 r.WriteMapElemValue() 107412 if false { 107413 } else { 107414 if z.EncBasicHandle().StringToRaw { 107415 r.EncodeStringBytesRaw(z.BytesView(string(x.PreviousEval))) 107416 } else { 107417 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PreviousEval)) 107418 } 107419 } 107420 } 107421 } 107422 if yyr2 || yy2arr2 { 107423 r.WriteArrayElem() 107424 if yyq2[16] { 107425 if false { 107426 } else { 107427 if z.EncBasicHandle().StringToRaw { 107428 r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) 107429 } else { 107430 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) 107431 } 107432 } 107433 } else { 107434 if z.EncBasicHandle().StringToRaw { 107435 r.EncodeStringBytesRaw([]byte{}) 107436 } else { 107437 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107438 } 107439 } 107440 } else { 107441 if yyq2[16] { 107442 r.WriteMapElemKey() 107443 if z.IsJSONHandle() { 107444 z.WriteStr("\"BlockedEval\"") 107445 } else { 107446 r.EncodeStringEnc(codecSelferCcUTF8100, `BlockedEval`) 107447 } 107448 r.WriteMapElemValue() 107449 if false { 107450 } else { 107451 if z.EncBasicHandle().StringToRaw { 107452 r.EncodeStringBytesRaw(z.BytesView(string(x.BlockedEval))) 107453 } else { 107454 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.BlockedEval)) 107455 } 107456 } 107457 } 107458 } 107459 if yyr2 || yy2arr2 { 107460 r.WriteArrayElem() 107461 if yyq2[17] { 107462 if x.FailedTGAllocs == nil { 107463 r.EncodeNil() 107464 } else { 107465 if false { 107466 } else { 107467 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 107468 } 107469 } 107470 } else { 107471 r.EncodeNil() 107472 } 107473 } else { 107474 if yyq2[17] { 107475 r.WriteMapElemKey() 107476 if z.IsJSONHandle() { 107477 z.WriteStr("\"FailedTGAllocs\"") 107478 } else { 107479 r.EncodeStringEnc(codecSelferCcUTF8100, `FailedTGAllocs`) 107480 } 107481 r.WriteMapElemValue() 107482 if x.FailedTGAllocs == nil { 107483 r.EncodeNil() 107484 } else { 107485 if false { 107486 } else { 107487 h.encMapstringPtrtoAllocMetric((map[string]*AllocMetric)(x.FailedTGAllocs), e) 107488 } 107489 } 107490 } 107491 } 107492 if yyr2 || yy2arr2 { 107493 r.WriteArrayElem() 107494 if yyq2[18] { 107495 if x.ClassEligibility == nil { 107496 r.EncodeNil() 107497 } else { 107498 if false { 107499 } else { 107500 z.F.EncMapStringBoolV(x.ClassEligibility, e) 107501 } 107502 } 107503 } else { 107504 r.EncodeNil() 107505 } 107506 } else { 107507 if yyq2[18] { 107508 r.WriteMapElemKey() 107509 if z.IsJSONHandle() { 107510 z.WriteStr("\"ClassEligibility\"") 107511 } else { 107512 r.EncodeStringEnc(codecSelferCcUTF8100, `ClassEligibility`) 107513 } 107514 r.WriteMapElemValue() 107515 if x.ClassEligibility == nil { 107516 r.EncodeNil() 107517 } else { 107518 if false { 107519 } else { 107520 z.F.EncMapStringBoolV(x.ClassEligibility, e) 107521 } 107522 } 107523 } 107524 } 107525 if yyr2 || yy2arr2 { 107526 r.WriteArrayElem() 107527 if yyq2[19] { 107528 if false { 107529 } else { 107530 if z.EncBasicHandle().StringToRaw { 107531 r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) 107532 } else { 107533 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) 107534 } 107535 } 107536 } else { 107537 if z.EncBasicHandle().StringToRaw { 107538 r.EncodeStringBytesRaw([]byte{}) 107539 } else { 107540 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107541 } 107542 } 107543 } else { 107544 if yyq2[19] { 107545 r.WriteMapElemKey() 107546 if z.IsJSONHandle() { 107547 z.WriteStr("\"QuotaLimitReached\"") 107548 } else { 107549 r.EncodeStringEnc(codecSelferCcUTF8100, `QuotaLimitReached`) 107550 } 107551 r.WriteMapElemValue() 107552 if false { 107553 } else { 107554 if z.EncBasicHandle().StringToRaw { 107555 r.EncodeStringBytesRaw(z.BytesView(string(x.QuotaLimitReached))) 107556 } else { 107557 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.QuotaLimitReached)) 107558 } 107559 } 107560 } 107561 } 107562 if yyr2 || yy2arr2 { 107563 r.WriteArrayElem() 107564 if yyq2[20] { 107565 if false { 107566 } else { 107567 r.EncodeBool(bool(x.EscapedComputedClass)) 107568 } 107569 } else { 107570 r.EncodeBool(false) 107571 } 107572 } else { 107573 if yyq2[20] { 107574 r.WriteMapElemKey() 107575 if z.IsJSONHandle() { 107576 z.WriteStr("\"EscapedComputedClass\"") 107577 } else { 107578 r.EncodeStringEnc(codecSelferCcUTF8100, `EscapedComputedClass`) 107579 } 107580 r.WriteMapElemValue() 107581 if false { 107582 } else { 107583 r.EncodeBool(bool(x.EscapedComputedClass)) 107584 } 107585 } 107586 } 107587 if yyr2 || yy2arr2 { 107588 r.WriteArrayElem() 107589 if yyq2[21] { 107590 if false { 107591 } else { 107592 r.EncodeBool(bool(x.AnnotatePlan)) 107593 } 107594 } else { 107595 r.EncodeBool(false) 107596 } 107597 } else { 107598 if yyq2[21] { 107599 r.WriteMapElemKey() 107600 if z.IsJSONHandle() { 107601 z.WriteStr("\"AnnotatePlan\"") 107602 } else { 107603 r.EncodeStringEnc(codecSelferCcUTF8100, `AnnotatePlan`) 107604 } 107605 r.WriteMapElemValue() 107606 if false { 107607 } else { 107608 r.EncodeBool(bool(x.AnnotatePlan)) 107609 } 107610 } 107611 } 107612 if yyr2 || yy2arr2 { 107613 r.WriteArrayElem() 107614 if yyq2[22] { 107615 if x.QueuedAllocations == nil { 107616 r.EncodeNil() 107617 } else { 107618 if false { 107619 } else { 107620 z.F.EncMapStringIntV(x.QueuedAllocations, e) 107621 } 107622 } 107623 } else { 107624 r.EncodeNil() 107625 } 107626 } else { 107627 if yyq2[22] { 107628 r.WriteMapElemKey() 107629 if z.IsJSONHandle() { 107630 z.WriteStr("\"QueuedAllocations\"") 107631 } else { 107632 r.EncodeStringEnc(codecSelferCcUTF8100, `QueuedAllocations`) 107633 } 107634 r.WriteMapElemValue() 107635 if x.QueuedAllocations == nil { 107636 r.EncodeNil() 107637 } else { 107638 if false { 107639 } else { 107640 z.F.EncMapStringIntV(x.QueuedAllocations, e) 107641 } 107642 } 107643 } 107644 } 107645 if yyr2 || yy2arr2 { 107646 r.WriteArrayElem() 107647 if yyq2[23] { 107648 if false { 107649 } else { 107650 if z.EncBasicHandle().StringToRaw { 107651 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) 107652 } else { 107653 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) 107654 } 107655 } 107656 } else { 107657 if z.EncBasicHandle().StringToRaw { 107658 r.EncodeStringBytesRaw([]byte{}) 107659 } else { 107660 r.EncodeStringEnc(codecSelferCcUTF8100, "") 107661 } 107662 } 107663 } else { 107664 if yyq2[23] { 107665 r.WriteMapElemKey() 107666 if z.IsJSONHandle() { 107667 z.WriteStr("\"LeaderACL\"") 107668 } else { 107669 r.EncodeStringEnc(codecSelferCcUTF8100, `LeaderACL`) 107670 } 107671 r.WriteMapElemValue() 107672 if false { 107673 } else { 107674 if z.EncBasicHandle().StringToRaw { 107675 r.EncodeStringBytesRaw(z.BytesView(string(x.LeaderACL))) 107676 } else { 107677 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.LeaderACL)) 107678 } 107679 } 107680 } 107681 } 107682 if yyr2 || yy2arr2 { 107683 r.WriteArrayElem() 107684 if yyq2[24] { 107685 if false { 107686 } else { 107687 r.EncodeUint(uint64(x.SnapshotIndex)) 107688 } 107689 } else { 107690 r.EncodeUint(0) 107691 } 107692 } else { 107693 if yyq2[24] { 107694 r.WriteMapElemKey() 107695 if z.IsJSONHandle() { 107696 z.WriteStr("\"SnapshotIndex\"") 107697 } else { 107698 r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) 107699 } 107700 r.WriteMapElemValue() 107701 if false { 107702 } else { 107703 r.EncodeUint(uint64(x.SnapshotIndex)) 107704 } 107705 } 107706 } 107707 if yyr2 || yy2arr2 { 107708 r.WriteArrayElem() 107709 if yyq2[25] { 107710 if false { 107711 } else { 107712 r.EncodeUint(uint64(x.CreateIndex)) 107713 } 107714 } else { 107715 r.EncodeUint(0) 107716 } 107717 } else { 107718 if yyq2[25] { 107719 r.WriteMapElemKey() 107720 if z.IsJSONHandle() { 107721 z.WriteStr("\"CreateIndex\"") 107722 } else { 107723 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 107724 } 107725 r.WriteMapElemValue() 107726 if false { 107727 } else { 107728 r.EncodeUint(uint64(x.CreateIndex)) 107729 } 107730 } 107731 } 107732 if yyr2 || yy2arr2 { 107733 r.WriteArrayElem() 107734 if yyq2[26] { 107735 if false { 107736 } else { 107737 r.EncodeUint(uint64(x.ModifyIndex)) 107738 } 107739 } else { 107740 r.EncodeUint(0) 107741 } 107742 } else { 107743 if yyq2[26] { 107744 r.WriteMapElemKey() 107745 if z.IsJSONHandle() { 107746 z.WriteStr("\"ModifyIndex\"") 107747 } else { 107748 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 107749 } 107750 r.WriteMapElemValue() 107751 if false { 107752 } else { 107753 r.EncodeUint(uint64(x.ModifyIndex)) 107754 } 107755 } 107756 } 107757 if yyr2 || yy2arr2 { 107758 r.WriteArrayElem() 107759 if yyq2[27] { 107760 if false { 107761 } else { 107762 r.EncodeInt(int64(x.CreateTime)) 107763 } 107764 } else { 107765 r.EncodeInt(0) 107766 } 107767 } else { 107768 if yyq2[27] { 107769 r.WriteMapElemKey() 107770 if z.IsJSONHandle() { 107771 z.WriteStr("\"CreateTime\"") 107772 } else { 107773 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 107774 } 107775 r.WriteMapElemValue() 107776 if false { 107777 } else { 107778 r.EncodeInt(int64(x.CreateTime)) 107779 } 107780 } 107781 } 107782 if yyr2 || yy2arr2 { 107783 r.WriteArrayElem() 107784 if yyq2[28] { 107785 if false { 107786 } else { 107787 r.EncodeInt(int64(x.ModifyTime)) 107788 } 107789 } else { 107790 r.EncodeInt(0) 107791 } 107792 } else { 107793 if yyq2[28] { 107794 r.WriteMapElemKey() 107795 if z.IsJSONHandle() { 107796 z.WriteStr("\"ModifyTime\"") 107797 } else { 107798 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyTime`) 107799 } 107800 r.WriteMapElemValue() 107801 if false { 107802 } else { 107803 r.EncodeInt(int64(x.ModifyTime)) 107804 } 107805 } 107806 } 107807 if yyr2 || yy2arr2 { 107808 r.WriteArrayEnd() 107809 } else { 107810 r.WriteMapEnd() 107811 } 107812 } 107813 } 107814 } 107815 107816 func (x *Evaluation) CodecDecodeSelf(d *codec1978.Decoder) { 107817 var h codecSelfer100 107818 z, r := codec1978.GenHelperDecoder(d) 107819 _, _, _ = h, z, r 107820 if false { 107821 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 107822 z.DecExtension(x, yyxt1) 107823 } else { 107824 yyct2 := r.ContainerType() 107825 if yyct2 == codecSelferValueTypeMap100 { 107826 yyl2 := r.ReadMapStart() 107827 if yyl2 == 0 { 107828 r.ReadMapEnd() 107829 } else { 107830 x.codecDecodeSelfFromMap(yyl2, d) 107831 } 107832 } else if yyct2 == codecSelferValueTypeArray100 { 107833 yyl2 := r.ReadArrayStart() 107834 if yyl2 == 0 { 107835 r.ReadArrayEnd() 107836 } else { 107837 x.codecDecodeSelfFromArray(yyl2, d) 107838 } 107839 } else { 107840 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 107841 } 107842 } 107843 } 107844 107845 func (x *Evaluation) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 107846 var h codecSelfer100 107847 z, r := codec1978.GenHelperDecoder(d) 107848 _, _, _ = h, z, r 107849 var yyhl3 bool = l >= 0 107850 for yyj3 := 0; ; yyj3++ { 107851 if yyhl3 { 107852 if yyj3 >= l { 107853 break 107854 } 107855 } else { 107856 if r.CheckBreak() { 107857 break 107858 } 107859 } 107860 r.ReadMapElemKey() 107861 yys3 := z.StringView(r.DecodeStringAsBytes()) 107862 r.ReadMapElemValue() 107863 switch yys3 { 107864 case "ID": 107865 if r.TryDecodeAsNil() { 107866 x.ID = "" 107867 } else { 107868 x.ID = (string)(r.DecodeString()) 107869 } 107870 case "Namespace": 107871 if r.TryDecodeAsNil() { 107872 x.Namespace = "" 107873 } else { 107874 x.Namespace = (string)(r.DecodeString()) 107875 } 107876 case "Priority": 107877 if r.TryDecodeAsNil() { 107878 x.Priority = 0 107879 } else { 107880 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 107881 } 107882 case "Type": 107883 if r.TryDecodeAsNil() { 107884 x.Type = "" 107885 } else { 107886 x.Type = (string)(r.DecodeString()) 107887 } 107888 case "TriggeredBy": 107889 if r.TryDecodeAsNil() { 107890 x.TriggeredBy = "" 107891 } else { 107892 x.TriggeredBy = (string)(r.DecodeString()) 107893 } 107894 case "JobID": 107895 if r.TryDecodeAsNil() { 107896 x.JobID = "" 107897 } else { 107898 x.JobID = (string)(r.DecodeString()) 107899 } 107900 case "JobModifyIndex": 107901 if r.TryDecodeAsNil() { 107902 x.JobModifyIndex = 0 107903 } else { 107904 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 107905 } 107906 case "NodeID": 107907 if r.TryDecodeAsNil() { 107908 x.NodeID = "" 107909 } else { 107910 x.NodeID = (string)(r.DecodeString()) 107911 } 107912 case "NodeModifyIndex": 107913 if r.TryDecodeAsNil() { 107914 x.NodeModifyIndex = 0 107915 } else { 107916 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 107917 } 107918 case "DeploymentID": 107919 if r.TryDecodeAsNil() { 107920 x.DeploymentID = "" 107921 } else { 107922 x.DeploymentID = (string)(r.DecodeString()) 107923 } 107924 case "Status": 107925 if r.TryDecodeAsNil() { 107926 x.Status = "" 107927 } else { 107928 x.Status = (string)(r.DecodeString()) 107929 } 107930 case "StatusDescription": 107931 if r.TryDecodeAsNil() { 107932 x.StatusDescription = "" 107933 } else { 107934 x.StatusDescription = (string)(r.DecodeString()) 107935 } 107936 case "Wait": 107937 if r.TryDecodeAsNil() { 107938 x.Wait = 0 107939 } else { 107940 if false { 107941 } else if yyxt17 := z.Extension(z.I2Rtid(x.Wait)); yyxt17 != nil { 107942 z.DecExtension(x.Wait, yyxt17) 107943 } else { 107944 x.Wait = (time.Duration)(r.DecodeInt64()) 107945 } 107946 } 107947 case "WaitUntil": 107948 if r.TryDecodeAsNil() { 107949 x.WaitUntil = time.Time{} 107950 } else { 107951 if false { 107952 } else if !z.DecBasicHandle().TimeNotBuiltin { 107953 x.WaitUntil = r.DecodeTime() 107954 } else if yyxt19 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt19 != nil { 107955 z.DecExtension(x.WaitUntil, yyxt19) 107956 } else if z.DecBinary() { 107957 z.DecBinaryUnmarshal(&x.WaitUntil) 107958 } else if !z.DecBinary() && z.IsJSONHandle() { 107959 z.DecJSONUnmarshal(&x.WaitUntil) 107960 } else { 107961 z.DecFallback(&x.WaitUntil, false) 107962 } 107963 } 107964 case "NextEval": 107965 if r.TryDecodeAsNil() { 107966 x.NextEval = "" 107967 } else { 107968 x.NextEval = (string)(r.DecodeString()) 107969 } 107970 case "PreviousEval": 107971 if r.TryDecodeAsNil() { 107972 x.PreviousEval = "" 107973 } else { 107974 x.PreviousEval = (string)(r.DecodeString()) 107975 } 107976 case "BlockedEval": 107977 if r.TryDecodeAsNil() { 107978 x.BlockedEval = "" 107979 } else { 107980 x.BlockedEval = (string)(r.DecodeString()) 107981 } 107982 case "FailedTGAllocs": 107983 if r.TryDecodeAsNil() { 107984 x.FailedTGAllocs = nil 107985 } else { 107986 if false { 107987 } else { 107988 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 107989 } 107990 } 107991 case "ClassEligibility": 107992 if r.TryDecodeAsNil() { 107993 x.ClassEligibility = nil 107994 } else { 107995 if false { 107996 } else { 107997 z.F.DecMapStringBoolX(&x.ClassEligibility, d) 107998 } 107999 } 108000 case "QuotaLimitReached": 108001 if r.TryDecodeAsNil() { 108002 x.QuotaLimitReached = "" 108003 } else { 108004 x.QuotaLimitReached = (string)(r.DecodeString()) 108005 } 108006 case "EscapedComputedClass": 108007 if r.TryDecodeAsNil() { 108008 x.EscapedComputedClass = false 108009 } else { 108010 x.EscapedComputedClass = (bool)(r.DecodeBool()) 108011 } 108012 case "AnnotatePlan": 108013 if r.TryDecodeAsNil() { 108014 x.AnnotatePlan = false 108015 } else { 108016 x.AnnotatePlan = (bool)(r.DecodeBool()) 108017 } 108018 case "QueuedAllocations": 108019 if r.TryDecodeAsNil() { 108020 x.QueuedAllocations = nil 108021 } else { 108022 if false { 108023 } else { 108024 z.F.DecMapStringIntX(&x.QueuedAllocations, d) 108025 } 108026 } 108027 case "LeaderACL": 108028 if r.TryDecodeAsNil() { 108029 x.LeaderACL = "" 108030 } else { 108031 x.LeaderACL = (string)(r.DecodeString()) 108032 } 108033 case "SnapshotIndex": 108034 if r.TryDecodeAsNil() { 108035 x.SnapshotIndex = 0 108036 } else { 108037 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 108038 } 108039 case "CreateIndex": 108040 if r.TryDecodeAsNil() { 108041 x.CreateIndex = 0 108042 } else { 108043 x.CreateIndex = (uint64)(r.DecodeUint64()) 108044 } 108045 case "ModifyIndex": 108046 if r.TryDecodeAsNil() { 108047 x.ModifyIndex = 0 108048 } else { 108049 x.ModifyIndex = (uint64)(r.DecodeUint64()) 108050 } 108051 case "CreateTime": 108052 if r.TryDecodeAsNil() { 108053 x.CreateTime = 0 108054 } else { 108055 x.CreateTime = (int64)(r.DecodeInt64()) 108056 } 108057 case "ModifyTime": 108058 if r.TryDecodeAsNil() { 108059 x.ModifyTime = 0 108060 } else { 108061 x.ModifyTime = (int64)(r.DecodeInt64()) 108062 } 108063 default: 108064 z.DecStructFieldNotFound(-1, yys3) 108065 } // end switch yys3 108066 } // end for yyj3 108067 r.ReadMapEnd() 108068 } 108069 108070 func (x *Evaluation) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 108071 var h codecSelfer100 108072 z, r := codec1978.GenHelperDecoder(d) 108073 _, _, _ = h, z, r 108074 var yyj38 int 108075 var yyb38 bool 108076 var yyhl38 bool = l >= 0 108077 yyj38++ 108078 if yyhl38 { 108079 yyb38 = yyj38 > l 108080 } else { 108081 yyb38 = r.CheckBreak() 108082 } 108083 if yyb38 { 108084 r.ReadArrayEnd() 108085 return 108086 } 108087 r.ReadArrayElem() 108088 if r.TryDecodeAsNil() { 108089 x.ID = "" 108090 } else { 108091 x.ID = (string)(r.DecodeString()) 108092 } 108093 yyj38++ 108094 if yyhl38 { 108095 yyb38 = yyj38 > l 108096 } else { 108097 yyb38 = r.CheckBreak() 108098 } 108099 if yyb38 { 108100 r.ReadArrayEnd() 108101 return 108102 } 108103 r.ReadArrayElem() 108104 if r.TryDecodeAsNil() { 108105 x.Namespace = "" 108106 } else { 108107 x.Namespace = (string)(r.DecodeString()) 108108 } 108109 yyj38++ 108110 if yyhl38 { 108111 yyb38 = yyj38 > l 108112 } else { 108113 yyb38 = r.CheckBreak() 108114 } 108115 if yyb38 { 108116 r.ReadArrayEnd() 108117 return 108118 } 108119 r.ReadArrayElem() 108120 if r.TryDecodeAsNil() { 108121 x.Priority = 0 108122 } else { 108123 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 108124 } 108125 yyj38++ 108126 if yyhl38 { 108127 yyb38 = yyj38 > l 108128 } else { 108129 yyb38 = r.CheckBreak() 108130 } 108131 if yyb38 { 108132 r.ReadArrayEnd() 108133 return 108134 } 108135 r.ReadArrayElem() 108136 if r.TryDecodeAsNil() { 108137 x.Type = "" 108138 } else { 108139 x.Type = (string)(r.DecodeString()) 108140 } 108141 yyj38++ 108142 if yyhl38 { 108143 yyb38 = yyj38 > l 108144 } else { 108145 yyb38 = r.CheckBreak() 108146 } 108147 if yyb38 { 108148 r.ReadArrayEnd() 108149 return 108150 } 108151 r.ReadArrayElem() 108152 if r.TryDecodeAsNil() { 108153 x.TriggeredBy = "" 108154 } else { 108155 x.TriggeredBy = (string)(r.DecodeString()) 108156 } 108157 yyj38++ 108158 if yyhl38 { 108159 yyb38 = yyj38 > l 108160 } else { 108161 yyb38 = r.CheckBreak() 108162 } 108163 if yyb38 { 108164 r.ReadArrayEnd() 108165 return 108166 } 108167 r.ReadArrayElem() 108168 if r.TryDecodeAsNil() { 108169 x.JobID = "" 108170 } else { 108171 x.JobID = (string)(r.DecodeString()) 108172 } 108173 yyj38++ 108174 if yyhl38 { 108175 yyb38 = yyj38 > l 108176 } else { 108177 yyb38 = r.CheckBreak() 108178 } 108179 if yyb38 { 108180 r.ReadArrayEnd() 108181 return 108182 } 108183 r.ReadArrayElem() 108184 if r.TryDecodeAsNil() { 108185 x.JobModifyIndex = 0 108186 } else { 108187 x.JobModifyIndex = (uint64)(r.DecodeUint64()) 108188 } 108189 yyj38++ 108190 if yyhl38 { 108191 yyb38 = yyj38 > l 108192 } else { 108193 yyb38 = r.CheckBreak() 108194 } 108195 if yyb38 { 108196 r.ReadArrayEnd() 108197 return 108198 } 108199 r.ReadArrayElem() 108200 if r.TryDecodeAsNil() { 108201 x.NodeID = "" 108202 } else { 108203 x.NodeID = (string)(r.DecodeString()) 108204 } 108205 yyj38++ 108206 if yyhl38 { 108207 yyb38 = yyj38 > l 108208 } else { 108209 yyb38 = r.CheckBreak() 108210 } 108211 if yyb38 { 108212 r.ReadArrayEnd() 108213 return 108214 } 108215 r.ReadArrayElem() 108216 if r.TryDecodeAsNil() { 108217 x.NodeModifyIndex = 0 108218 } else { 108219 x.NodeModifyIndex = (uint64)(r.DecodeUint64()) 108220 } 108221 yyj38++ 108222 if yyhl38 { 108223 yyb38 = yyj38 > l 108224 } else { 108225 yyb38 = r.CheckBreak() 108226 } 108227 if yyb38 { 108228 r.ReadArrayEnd() 108229 return 108230 } 108231 r.ReadArrayElem() 108232 if r.TryDecodeAsNil() { 108233 x.DeploymentID = "" 108234 } else { 108235 x.DeploymentID = (string)(r.DecodeString()) 108236 } 108237 yyj38++ 108238 if yyhl38 { 108239 yyb38 = yyj38 > l 108240 } else { 108241 yyb38 = r.CheckBreak() 108242 } 108243 if yyb38 { 108244 r.ReadArrayEnd() 108245 return 108246 } 108247 r.ReadArrayElem() 108248 if r.TryDecodeAsNil() { 108249 x.Status = "" 108250 } else { 108251 x.Status = (string)(r.DecodeString()) 108252 } 108253 yyj38++ 108254 if yyhl38 { 108255 yyb38 = yyj38 > l 108256 } else { 108257 yyb38 = r.CheckBreak() 108258 } 108259 if yyb38 { 108260 r.ReadArrayEnd() 108261 return 108262 } 108263 r.ReadArrayElem() 108264 if r.TryDecodeAsNil() { 108265 x.StatusDescription = "" 108266 } else { 108267 x.StatusDescription = (string)(r.DecodeString()) 108268 } 108269 yyj38++ 108270 if yyhl38 { 108271 yyb38 = yyj38 > l 108272 } else { 108273 yyb38 = r.CheckBreak() 108274 } 108275 if yyb38 { 108276 r.ReadArrayEnd() 108277 return 108278 } 108279 r.ReadArrayElem() 108280 if r.TryDecodeAsNil() { 108281 x.Wait = 0 108282 } else { 108283 if false { 108284 } else if yyxt52 := z.Extension(z.I2Rtid(x.Wait)); yyxt52 != nil { 108285 z.DecExtension(x.Wait, yyxt52) 108286 } else { 108287 x.Wait = (time.Duration)(r.DecodeInt64()) 108288 } 108289 } 108290 yyj38++ 108291 if yyhl38 { 108292 yyb38 = yyj38 > l 108293 } else { 108294 yyb38 = r.CheckBreak() 108295 } 108296 if yyb38 { 108297 r.ReadArrayEnd() 108298 return 108299 } 108300 r.ReadArrayElem() 108301 if r.TryDecodeAsNil() { 108302 x.WaitUntil = time.Time{} 108303 } else { 108304 if false { 108305 } else if !z.DecBasicHandle().TimeNotBuiltin { 108306 x.WaitUntil = r.DecodeTime() 108307 } else if yyxt54 := z.Extension(z.I2Rtid(x.WaitUntil)); yyxt54 != nil { 108308 z.DecExtension(x.WaitUntil, yyxt54) 108309 } else if z.DecBinary() { 108310 z.DecBinaryUnmarshal(&x.WaitUntil) 108311 } else if !z.DecBinary() && z.IsJSONHandle() { 108312 z.DecJSONUnmarshal(&x.WaitUntil) 108313 } else { 108314 z.DecFallback(&x.WaitUntil, false) 108315 } 108316 } 108317 yyj38++ 108318 if yyhl38 { 108319 yyb38 = yyj38 > l 108320 } else { 108321 yyb38 = r.CheckBreak() 108322 } 108323 if yyb38 { 108324 r.ReadArrayEnd() 108325 return 108326 } 108327 r.ReadArrayElem() 108328 if r.TryDecodeAsNil() { 108329 x.NextEval = "" 108330 } else { 108331 x.NextEval = (string)(r.DecodeString()) 108332 } 108333 yyj38++ 108334 if yyhl38 { 108335 yyb38 = yyj38 > l 108336 } else { 108337 yyb38 = r.CheckBreak() 108338 } 108339 if yyb38 { 108340 r.ReadArrayEnd() 108341 return 108342 } 108343 r.ReadArrayElem() 108344 if r.TryDecodeAsNil() { 108345 x.PreviousEval = "" 108346 } else { 108347 x.PreviousEval = (string)(r.DecodeString()) 108348 } 108349 yyj38++ 108350 if yyhl38 { 108351 yyb38 = yyj38 > l 108352 } else { 108353 yyb38 = r.CheckBreak() 108354 } 108355 if yyb38 { 108356 r.ReadArrayEnd() 108357 return 108358 } 108359 r.ReadArrayElem() 108360 if r.TryDecodeAsNil() { 108361 x.BlockedEval = "" 108362 } else { 108363 x.BlockedEval = (string)(r.DecodeString()) 108364 } 108365 yyj38++ 108366 if yyhl38 { 108367 yyb38 = yyj38 > l 108368 } else { 108369 yyb38 = r.CheckBreak() 108370 } 108371 if yyb38 { 108372 r.ReadArrayEnd() 108373 return 108374 } 108375 r.ReadArrayElem() 108376 if r.TryDecodeAsNil() { 108377 x.FailedTGAllocs = nil 108378 } else { 108379 if false { 108380 } else { 108381 h.decMapstringPtrtoAllocMetric((*map[string]*AllocMetric)(&x.FailedTGAllocs), d) 108382 } 108383 } 108384 yyj38++ 108385 if yyhl38 { 108386 yyb38 = yyj38 > l 108387 } else { 108388 yyb38 = r.CheckBreak() 108389 } 108390 if yyb38 { 108391 r.ReadArrayEnd() 108392 return 108393 } 108394 r.ReadArrayElem() 108395 if r.TryDecodeAsNil() { 108396 x.ClassEligibility = nil 108397 } else { 108398 if false { 108399 } else { 108400 z.F.DecMapStringBoolX(&x.ClassEligibility, d) 108401 } 108402 } 108403 yyj38++ 108404 if yyhl38 { 108405 yyb38 = yyj38 > l 108406 } else { 108407 yyb38 = r.CheckBreak() 108408 } 108409 if yyb38 { 108410 r.ReadArrayEnd() 108411 return 108412 } 108413 r.ReadArrayElem() 108414 if r.TryDecodeAsNil() { 108415 x.QuotaLimitReached = "" 108416 } else { 108417 x.QuotaLimitReached = (string)(r.DecodeString()) 108418 } 108419 yyj38++ 108420 if yyhl38 { 108421 yyb38 = yyj38 > l 108422 } else { 108423 yyb38 = r.CheckBreak() 108424 } 108425 if yyb38 { 108426 r.ReadArrayEnd() 108427 return 108428 } 108429 r.ReadArrayElem() 108430 if r.TryDecodeAsNil() { 108431 x.EscapedComputedClass = false 108432 } else { 108433 x.EscapedComputedClass = (bool)(r.DecodeBool()) 108434 } 108435 yyj38++ 108436 if yyhl38 { 108437 yyb38 = yyj38 > l 108438 } else { 108439 yyb38 = r.CheckBreak() 108440 } 108441 if yyb38 { 108442 r.ReadArrayEnd() 108443 return 108444 } 108445 r.ReadArrayElem() 108446 if r.TryDecodeAsNil() { 108447 x.AnnotatePlan = false 108448 } else { 108449 x.AnnotatePlan = (bool)(r.DecodeBool()) 108450 } 108451 yyj38++ 108452 if yyhl38 { 108453 yyb38 = yyj38 > l 108454 } else { 108455 yyb38 = r.CheckBreak() 108456 } 108457 if yyb38 { 108458 r.ReadArrayEnd() 108459 return 108460 } 108461 r.ReadArrayElem() 108462 if r.TryDecodeAsNil() { 108463 x.QueuedAllocations = nil 108464 } else { 108465 if false { 108466 } else { 108467 z.F.DecMapStringIntX(&x.QueuedAllocations, d) 108468 } 108469 } 108470 yyj38++ 108471 if yyhl38 { 108472 yyb38 = yyj38 > l 108473 } else { 108474 yyb38 = r.CheckBreak() 108475 } 108476 if yyb38 { 108477 r.ReadArrayEnd() 108478 return 108479 } 108480 r.ReadArrayElem() 108481 if r.TryDecodeAsNil() { 108482 x.LeaderACL = "" 108483 } else { 108484 x.LeaderACL = (string)(r.DecodeString()) 108485 } 108486 yyj38++ 108487 if yyhl38 { 108488 yyb38 = yyj38 > l 108489 } else { 108490 yyb38 = r.CheckBreak() 108491 } 108492 if yyb38 { 108493 r.ReadArrayEnd() 108494 return 108495 } 108496 r.ReadArrayElem() 108497 if r.TryDecodeAsNil() { 108498 x.SnapshotIndex = 0 108499 } else { 108500 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 108501 } 108502 yyj38++ 108503 if yyhl38 { 108504 yyb38 = yyj38 > l 108505 } else { 108506 yyb38 = r.CheckBreak() 108507 } 108508 if yyb38 { 108509 r.ReadArrayEnd() 108510 return 108511 } 108512 r.ReadArrayElem() 108513 if r.TryDecodeAsNil() { 108514 x.CreateIndex = 0 108515 } else { 108516 x.CreateIndex = (uint64)(r.DecodeUint64()) 108517 } 108518 yyj38++ 108519 if yyhl38 { 108520 yyb38 = yyj38 > l 108521 } else { 108522 yyb38 = r.CheckBreak() 108523 } 108524 if yyb38 { 108525 r.ReadArrayEnd() 108526 return 108527 } 108528 r.ReadArrayElem() 108529 if r.TryDecodeAsNil() { 108530 x.ModifyIndex = 0 108531 } else { 108532 x.ModifyIndex = (uint64)(r.DecodeUint64()) 108533 } 108534 yyj38++ 108535 if yyhl38 { 108536 yyb38 = yyj38 > l 108537 } else { 108538 yyb38 = r.CheckBreak() 108539 } 108540 if yyb38 { 108541 r.ReadArrayEnd() 108542 return 108543 } 108544 r.ReadArrayElem() 108545 if r.TryDecodeAsNil() { 108546 x.CreateTime = 0 108547 } else { 108548 x.CreateTime = (int64)(r.DecodeInt64()) 108549 } 108550 yyj38++ 108551 if yyhl38 { 108552 yyb38 = yyj38 > l 108553 } else { 108554 yyb38 = r.CheckBreak() 108555 } 108556 if yyb38 { 108557 r.ReadArrayEnd() 108558 return 108559 } 108560 r.ReadArrayElem() 108561 if r.TryDecodeAsNil() { 108562 x.ModifyTime = 0 108563 } else { 108564 x.ModifyTime = (int64)(r.DecodeInt64()) 108565 } 108566 for { 108567 yyj38++ 108568 if yyhl38 { 108569 yyb38 = yyj38 > l 108570 } else { 108571 yyb38 = r.CheckBreak() 108572 } 108573 if yyb38 { 108574 break 108575 } 108576 r.ReadArrayElem() 108577 z.DecStructFieldNotFound(yyj38-1, "") 108578 } 108579 r.ReadArrayEnd() 108580 } 108581 108582 func (x *Plan) CodecEncodeSelf(e *codec1978.Encoder) { 108583 var h codecSelfer100 108584 z, r := codec1978.GenHelperEncoder(e) 108585 _, _, _ = h, z, r 108586 if x == nil { 108587 r.EncodeNil() 108588 } else { 108589 if false { 108590 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 108591 z.EncExtension(x, yyxt1) 108592 } else { 108593 yysep2 := !z.EncBinary() 108594 yy2arr2 := z.EncBasicHandle().StructToArray 108595 _, _ = yysep2, yy2arr2 108596 const yyr2 bool = false // struct tag has 'toArray' 108597 var yyq2 = [12]bool{ // should field at this index be written? 108598 x.EvalID != "", // EvalID 108599 x.EvalToken != "", // EvalToken 108600 x.Priority != 0, // Priority 108601 x.AllAtOnce, // AllAtOnce 108602 x.Job != nil, // Job 108603 len(x.NodeUpdate) != 0, // NodeUpdate 108604 len(x.NodeAllocation) != 0, // NodeAllocation 108605 x.Annotations != nil, // Annotations 108606 x.Deployment != nil, // Deployment 108607 len(x.DeploymentUpdates) != 0, // DeploymentUpdates 108608 len(x.NodePreemptions) != 0, // NodePreemptions 108609 x.SnapshotIndex != 0, // SnapshotIndex 108610 } 108611 _ = yyq2 108612 if yyr2 || yy2arr2 { 108613 r.WriteArrayStart(12) 108614 } else { 108615 var yynn2 int 108616 for _, b := range yyq2 { 108617 if b { 108618 yynn2++ 108619 } 108620 } 108621 r.WriteMapStart(yynn2) 108622 yynn2 = 0 108623 } 108624 if yyr2 || yy2arr2 { 108625 r.WriteArrayElem() 108626 if yyq2[0] { 108627 if false { 108628 } else { 108629 if z.EncBasicHandle().StringToRaw { 108630 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 108631 } else { 108632 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 108633 } 108634 } 108635 } else { 108636 if z.EncBasicHandle().StringToRaw { 108637 r.EncodeStringBytesRaw([]byte{}) 108638 } else { 108639 r.EncodeStringEnc(codecSelferCcUTF8100, "") 108640 } 108641 } 108642 } else { 108643 if yyq2[0] { 108644 r.WriteMapElemKey() 108645 if z.IsJSONHandle() { 108646 z.WriteStr("\"EvalID\"") 108647 } else { 108648 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalID`) 108649 } 108650 r.WriteMapElemValue() 108651 if false { 108652 } else { 108653 if z.EncBasicHandle().StringToRaw { 108654 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalID))) 108655 } else { 108656 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalID)) 108657 } 108658 } 108659 } 108660 } 108661 if yyr2 || yy2arr2 { 108662 r.WriteArrayElem() 108663 if yyq2[1] { 108664 if false { 108665 } else { 108666 if z.EncBasicHandle().StringToRaw { 108667 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 108668 } else { 108669 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 108670 } 108671 } 108672 } else { 108673 if z.EncBasicHandle().StringToRaw { 108674 r.EncodeStringBytesRaw([]byte{}) 108675 } else { 108676 r.EncodeStringEnc(codecSelferCcUTF8100, "") 108677 } 108678 } 108679 } else { 108680 if yyq2[1] { 108681 r.WriteMapElemKey() 108682 if z.IsJSONHandle() { 108683 z.WriteStr("\"EvalToken\"") 108684 } else { 108685 r.EncodeStringEnc(codecSelferCcUTF8100, `EvalToken`) 108686 } 108687 r.WriteMapElemValue() 108688 if false { 108689 } else { 108690 if z.EncBasicHandle().StringToRaw { 108691 r.EncodeStringBytesRaw(z.BytesView(string(x.EvalToken))) 108692 } else { 108693 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.EvalToken)) 108694 } 108695 } 108696 } 108697 } 108698 if yyr2 || yy2arr2 { 108699 r.WriteArrayElem() 108700 if yyq2[2] { 108701 if false { 108702 } else { 108703 r.EncodeInt(int64(x.Priority)) 108704 } 108705 } else { 108706 r.EncodeInt(0) 108707 } 108708 } else { 108709 if yyq2[2] { 108710 r.WriteMapElemKey() 108711 if z.IsJSONHandle() { 108712 z.WriteStr("\"Priority\"") 108713 } else { 108714 r.EncodeStringEnc(codecSelferCcUTF8100, `Priority`) 108715 } 108716 r.WriteMapElemValue() 108717 if false { 108718 } else { 108719 r.EncodeInt(int64(x.Priority)) 108720 } 108721 } 108722 } 108723 if yyr2 || yy2arr2 { 108724 r.WriteArrayElem() 108725 if yyq2[3] { 108726 if false { 108727 } else { 108728 r.EncodeBool(bool(x.AllAtOnce)) 108729 } 108730 } else { 108731 r.EncodeBool(false) 108732 } 108733 } else { 108734 if yyq2[3] { 108735 r.WriteMapElemKey() 108736 if z.IsJSONHandle() { 108737 z.WriteStr("\"AllAtOnce\"") 108738 } else { 108739 r.EncodeStringEnc(codecSelferCcUTF8100, `AllAtOnce`) 108740 } 108741 r.WriteMapElemValue() 108742 if false { 108743 } else { 108744 r.EncodeBool(bool(x.AllAtOnce)) 108745 } 108746 } 108747 } 108748 var yyn15 bool 108749 if x.Job == nil { 108750 yyn15 = true 108751 goto LABEL15 108752 } 108753 LABEL15: 108754 if yyr2 || yy2arr2 { 108755 if yyn15 { 108756 r.WriteArrayElem() 108757 r.EncodeNil() 108758 } else { 108759 r.WriteArrayElem() 108760 if yyq2[4] { 108761 if x.Job == nil { 108762 r.EncodeNil() 108763 } else { 108764 x.Job.CodecEncodeSelf(e) 108765 } 108766 } else { 108767 r.EncodeNil() 108768 } 108769 } 108770 } else { 108771 if yyq2[4] { 108772 r.WriteMapElemKey() 108773 if z.IsJSONHandle() { 108774 z.WriteStr("\"Job\"") 108775 } else { 108776 r.EncodeStringEnc(codecSelferCcUTF8100, `Job`) 108777 } 108778 r.WriteMapElemValue() 108779 if yyn15 { 108780 r.EncodeNil() 108781 } else { 108782 if x.Job == nil { 108783 r.EncodeNil() 108784 } else { 108785 x.Job.CodecEncodeSelf(e) 108786 } 108787 } 108788 } 108789 } 108790 if yyr2 || yy2arr2 { 108791 r.WriteArrayElem() 108792 if yyq2[5] { 108793 if x.NodeUpdate == nil { 108794 r.EncodeNil() 108795 } else { 108796 if false { 108797 } else { 108798 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 108799 } 108800 } 108801 } else { 108802 r.EncodeNil() 108803 } 108804 } else { 108805 if yyq2[5] { 108806 r.WriteMapElemKey() 108807 if z.IsJSONHandle() { 108808 z.WriteStr("\"NodeUpdate\"") 108809 } else { 108810 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) 108811 } 108812 r.WriteMapElemValue() 108813 if x.NodeUpdate == nil { 108814 r.EncodeNil() 108815 } else { 108816 if false { 108817 } else { 108818 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 108819 } 108820 } 108821 } 108822 } 108823 if yyr2 || yy2arr2 { 108824 r.WriteArrayElem() 108825 if yyq2[6] { 108826 if x.NodeAllocation == nil { 108827 r.EncodeNil() 108828 } else { 108829 if false { 108830 } else { 108831 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 108832 } 108833 } 108834 } else { 108835 r.EncodeNil() 108836 } 108837 } else { 108838 if yyq2[6] { 108839 r.WriteMapElemKey() 108840 if z.IsJSONHandle() { 108841 z.WriteStr("\"NodeAllocation\"") 108842 } else { 108843 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) 108844 } 108845 r.WriteMapElemValue() 108846 if x.NodeAllocation == nil { 108847 r.EncodeNil() 108848 } else { 108849 if false { 108850 } else { 108851 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 108852 } 108853 } 108854 } 108855 } 108856 var yyn24 bool 108857 if x.Annotations == nil { 108858 yyn24 = true 108859 goto LABEL24 108860 } 108861 LABEL24: 108862 if yyr2 || yy2arr2 { 108863 if yyn24 { 108864 r.WriteArrayElem() 108865 r.EncodeNil() 108866 } else { 108867 r.WriteArrayElem() 108868 if yyq2[7] { 108869 if x.Annotations == nil { 108870 r.EncodeNil() 108871 } else { 108872 x.Annotations.CodecEncodeSelf(e) 108873 } 108874 } else { 108875 r.EncodeNil() 108876 } 108877 } 108878 } else { 108879 if yyq2[7] { 108880 r.WriteMapElemKey() 108881 if z.IsJSONHandle() { 108882 z.WriteStr("\"Annotations\"") 108883 } else { 108884 r.EncodeStringEnc(codecSelferCcUTF8100, `Annotations`) 108885 } 108886 r.WriteMapElemValue() 108887 if yyn24 { 108888 r.EncodeNil() 108889 } else { 108890 if x.Annotations == nil { 108891 r.EncodeNil() 108892 } else { 108893 x.Annotations.CodecEncodeSelf(e) 108894 } 108895 } 108896 } 108897 } 108898 var yyn27 bool 108899 if x.Deployment == nil { 108900 yyn27 = true 108901 goto LABEL27 108902 } 108903 LABEL27: 108904 if yyr2 || yy2arr2 { 108905 if yyn27 { 108906 r.WriteArrayElem() 108907 r.EncodeNil() 108908 } else { 108909 r.WriteArrayElem() 108910 if yyq2[8] { 108911 if x.Deployment == nil { 108912 r.EncodeNil() 108913 } else { 108914 x.Deployment.CodecEncodeSelf(e) 108915 } 108916 } else { 108917 r.EncodeNil() 108918 } 108919 } 108920 } else { 108921 if yyq2[8] { 108922 r.WriteMapElemKey() 108923 if z.IsJSONHandle() { 108924 z.WriteStr("\"Deployment\"") 108925 } else { 108926 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 108927 } 108928 r.WriteMapElemValue() 108929 if yyn27 { 108930 r.EncodeNil() 108931 } else { 108932 if x.Deployment == nil { 108933 r.EncodeNil() 108934 } else { 108935 x.Deployment.CodecEncodeSelf(e) 108936 } 108937 } 108938 } 108939 } 108940 if yyr2 || yy2arr2 { 108941 r.WriteArrayElem() 108942 if yyq2[9] { 108943 if x.DeploymentUpdates == nil { 108944 r.EncodeNil() 108945 } else { 108946 if false { 108947 } else { 108948 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 108949 } 108950 } 108951 } else { 108952 r.EncodeNil() 108953 } 108954 } else { 108955 if yyq2[9] { 108956 r.WriteMapElemKey() 108957 if z.IsJSONHandle() { 108958 z.WriteStr("\"DeploymentUpdates\"") 108959 } else { 108960 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 108961 } 108962 r.WriteMapElemValue() 108963 if x.DeploymentUpdates == nil { 108964 r.EncodeNil() 108965 } else { 108966 if false { 108967 } else { 108968 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 108969 } 108970 } 108971 } 108972 } 108973 if yyr2 || yy2arr2 { 108974 r.WriteArrayElem() 108975 if yyq2[10] { 108976 if x.NodePreemptions == nil { 108977 r.EncodeNil() 108978 } else { 108979 if false { 108980 } else { 108981 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 108982 } 108983 } 108984 } else { 108985 r.EncodeNil() 108986 } 108987 } else { 108988 if yyq2[10] { 108989 r.WriteMapElemKey() 108990 if z.IsJSONHandle() { 108991 z.WriteStr("\"NodePreemptions\"") 108992 } else { 108993 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 108994 } 108995 r.WriteMapElemValue() 108996 if x.NodePreemptions == nil { 108997 r.EncodeNil() 108998 } else { 108999 if false { 109000 } else { 109001 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 109002 } 109003 } 109004 } 109005 } 109006 if yyr2 || yy2arr2 { 109007 r.WriteArrayElem() 109008 if yyq2[11] { 109009 if false { 109010 } else { 109011 r.EncodeUint(uint64(x.SnapshotIndex)) 109012 } 109013 } else { 109014 r.EncodeUint(0) 109015 } 109016 } else { 109017 if yyq2[11] { 109018 r.WriteMapElemKey() 109019 if z.IsJSONHandle() { 109020 z.WriteStr("\"SnapshotIndex\"") 109021 } else { 109022 r.EncodeStringEnc(codecSelferCcUTF8100, `SnapshotIndex`) 109023 } 109024 r.WriteMapElemValue() 109025 if false { 109026 } else { 109027 r.EncodeUint(uint64(x.SnapshotIndex)) 109028 } 109029 } 109030 } 109031 if yyr2 || yy2arr2 { 109032 r.WriteArrayEnd() 109033 } else { 109034 r.WriteMapEnd() 109035 } 109036 } 109037 } 109038 } 109039 109040 func (x *Plan) CodecDecodeSelf(d *codec1978.Decoder) { 109041 var h codecSelfer100 109042 z, r := codec1978.GenHelperDecoder(d) 109043 _, _, _ = h, z, r 109044 if false { 109045 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109046 z.DecExtension(x, yyxt1) 109047 } else { 109048 yyct2 := r.ContainerType() 109049 if yyct2 == codecSelferValueTypeMap100 { 109050 yyl2 := r.ReadMapStart() 109051 if yyl2 == 0 { 109052 r.ReadMapEnd() 109053 } else { 109054 x.codecDecodeSelfFromMap(yyl2, d) 109055 } 109056 } else if yyct2 == codecSelferValueTypeArray100 { 109057 yyl2 := r.ReadArrayStart() 109058 if yyl2 == 0 { 109059 r.ReadArrayEnd() 109060 } else { 109061 x.codecDecodeSelfFromArray(yyl2, d) 109062 } 109063 } else { 109064 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 109065 } 109066 } 109067 } 109068 109069 func (x *Plan) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 109070 var h codecSelfer100 109071 z, r := codec1978.GenHelperDecoder(d) 109072 _, _, _ = h, z, r 109073 var yyhl3 bool = l >= 0 109074 for yyj3 := 0; ; yyj3++ { 109075 if yyhl3 { 109076 if yyj3 >= l { 109077 break 109078 } 109079 } else { 109080 if r.CheckBreak() { 109081 break 109082 } 109083 } 109084 r.ReadMapElemKey() 109085 yys3 := z.StringView(r.DecodeStringAsBytes()) 109086 r.ReadMapElemValue() 109087 switch yys3 { 109088 case "EvalID": 109089 if r.TryDecodeAsNil() { 109090 x.EvalID = "" 109091 } else { 109092 x.EvalID = (string)(r.DecodeString()) 109093 } 109094 case "EvalToken": 109095 if r.TryDecodeAsNil() { 109096 x.EvalToken = "" 109097 } else { 109098 x.EvalToken = (string)(r.DecodeString()) 109099 } 109100 case "Priority": 109101 if r.TryDecodeAsNil() { 109102 x.Priority = 0 109103 } else { 109104 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 109105 } 109106 case "AllAtOnce": 109107 if r.TryDecodeAsNil() { 109108 x.AllAtOnce = false 109109 } else { 109110 x.AllAtOnce = (bool)(r.DecodeBool()) 109111 } 109112 case "Job": 109113 if r.TryDecodeAsNil() { 109114 if true && x.Job != nil { 109115 x.Job = nil 109116 } 109117 } else { 109118 if x.Job == nil { 109119 x.Job = new(Job) 109120 } 109121 109122 x.Job.CodecDecodeSelf(d) 109123 } 109124 case "NodeUpdate": 109125 if r.TryDecodeAsNil() { 109126 x.NodeUpdate = nil 109127 } else { 109128 if false { 109129 } else { 109130 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 109131 } 109132 } 109133 case "NodeAllocation": 109134 if r.TryDecodeAsNil() { 109135 x.NodeAllocation = nil 109136 } else { 109137 if false { 109138 } else { 109139 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 109140 } 109141 } 109142 case "Annotations": 109143 if r.TryDecodeAsNil() { 109144 if true && x.Annotations != nil { 109145 x.Annotations = nil 109146 } 109147 } else { 109148 if x.Annotations == nil { 109149 x.Annotations = new(PlanAnnotations) 109150 } 109151 109152 x.Annotations.CodecDecodeSelf(d) 109153 } 109154 case "Deployment": 109155 if r.TryDecodeAsNil() { 109156 if true && x.Deployment != nil { 109157 x.Deployment = nil 109158 } 109159 } else { 109160 if x.Deployment == nil { 109161 x.Deployment = new(Deployment) 109162 } 109163 109164 x.Deployment.CodecDecodeSelf(d) 109165 } 109166 case "DeploymentUpdates": 109167 if r.TryDecodeAsNil() { 109168 x.DeploymentUpdates = nil 109169 } else { 109170 if false { 109171 } else { 109172 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 109173 } 109174 } 109175 case "NodePreemptions": 109176 if r.TryDecodeAsNil() { 109177 x.NodePreemptions = nil 109178 } else { 109179 if false { 109180 } else { 109181 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 109182 } 109183 } 109184 case "SnapshotIndex": 109185 if r.TryDecodeAsNil() { 109186 x.SnapshotIndex = 0 109187 } else { 109188 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 109189 } 109190 default: 109191 z.DecStructFieldNotFound(-1, yys3) 109192 } // end switch yys3 109193 } // end for yyj3 109194 r.ReadMapEnd() 109195 } 109196 109197 func (x *Plan) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 109198 var h codecSelfer100 109199 z, r := codec1978.GenHelperDecoder(d) 109200 _, _, _ = h, z, r 109201 var yyj20 int 109202 var yyb20 bool 109203 var yyhl20 bool = l >= 0 109204 yyj20++ 109205 if yyhl20 { 109206 yyb20 = yyj20 > l 109207 } else { 109208 yyb20 = r.CheckBreak() 109209 } 109210 if yyb20 { 109211 r.ReadArrayEnd() 109212 return 109213 } 109214 r.ReadArrayElem() 109215 if r.TryDecodeAsNil() { 109216 x.EvalID = "" 109217 } else { 109218 x.EvalID = (string)(r.DecodeString()) 109219 } 109220 yyj20++ 109221 if yyhl20 { 109222 yyb20 = yyj20 > l 109223 } else { 109224 yyb20 = r.CheckBreak() 109225 } 109226 if yyb20 { 109227 r.ReadArrayEnd() 109228 return 109229 } 109230 r.ReadArrayElem() 109231 if r.TryDecodeAsNil() { 109232 x.EvalToken = "" 109233 } else { 109234 x.EvalToken = (string)(r.DecodeString()) 109235 } 109236 yyj20++ 109237 if yyhl20 { 109238 yyb20 = yyj20 > l 109239 } else { 109240 yyb20 = r.CheckBreak() 109241 } 109242 if yyb20 { 109243 r.ReadArrayEnd() 109244 return 109245 } 109246 r.ReadArrayElem() 109247 if r.TryDecodeAsNil() { 109248 x.Priority = 0 109249 } else { 109250 x.Priority = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 109251 } 109252 yyj20++ 109253 if yyhl20 { 109254 yyb20 = yyj20 > l 109255 } else { 109256 yyb20 = r.CheckBreak() 109257 } 109258 if yyb20 { 109259 r.ReadArrayEnd() 109260 return 109261 } 109262 r.ReadArrayElem() 109263 if r.TryDecodeAsNil() { 109264 x.AllAtOnce = false 109265 } else { 109266 x.AllAtOnce = (bool)(r.DecodeBool()) 109267 } 109268 yyj20++ 109269 if yyhl20 { 109270 yyb20 = yyj20 > l 109271 } else { 109272 yyb20 = r.CheckBreak() 109273 } 109274 if yyb20 { 109275 r.ReadArrayEnd() 109276 return 109277 } 109278 r.ReadArrayElem() 109279 if r.TryDecodeAsNil() { 109280 if true && x.Job != nil { 109281 x.Job = nil 109282 } 109283 } else { 109284 if x.Job == nil { 109285 x.Job = new(Job) 109286 } 109287 109288 x.Job.CodecDecodeSelf(d) 109289 } 109290 yyj20++ 109291 if yyhl20 { 109292 yyb20 = yyj20 > l 109293 } else { 109294 yyb20 = r.CheckBreak() 109295 } 109296 if yyb20 { 109297 r.ReadArrayEnd() 109298 return 109299 } 109300 r.ReadArrayElem() 109301 if r.TryDecodeAsNil() { 109302 x.NodeUpdate = nil 109303 } else { 109304 if false { 109305 } else { 109306 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 109307 } 109308 } 109309 yyj20++ 109310 if yyhl20 { 109311 yyb20 = yyj20 > l 109312 } else { 109313 yyb20 = r.CheckBreak() 109314 } 109315 if yyb20 { 109316 r.ReadArrayEnd() 109317 return 109318 } 109319 r.ReadArrayElem() 109320 if r.TryDecodeAsNil() { 109321 x.NodeAllocation = nil 109322 } else { 109323 if false { 109324 } else { 109325 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 109326 } 109327 } 109328 yyj20++ 109329 if yyhl20 { 109330 yyb20 = yyj20 > l 109331 } else { 109332 yyb20 = r.CheckBreak() 109333 } 109334 if yyb20 { 109335 r.ReadArrayEnd() 109336 return 109337 } 109338 r.ReadArrayElem() 109339 if r.TryDecodeAsNil() { 109340 if true && x.Annotations != nil { 109341 x.Annotations = nil 109342 } 109343 } else { 109344 if x.Annotations == nil { 109345 x.Annotations = new(PlanAnnotations) 109346 } 109347 109348 x.Annotations.CodecDecodeSelf(d) 109349 } 109350 yyj20++ 109351 if yyhl20 { 109352 yyb20 = yyj20 > l 109353 } else { 109354 yyb20 = r.CheckBreak() 109355 } 109356 if yyb20 { 109357 r.ReadArrayEnd() 109358 return 109359 } 109360 r.ReadArrayElem() 109361 if r.TryDecodeAsNil() { 109362 if true && x.Deployment != nil { 109363 x.Deployment = nil 109364 } 109365 } else { 109366 if x.Deployment == nil { 109367 x.Deployment = new(Deployment) 109368 } 109369 109370 x.Deployment.CodecDecodeSelf(d) 109371 } 109372 yyj20++ 109373 if yyhl20 { 109374 yyb20 = yyj20 > l 109375 } else { 109376 yyb20 = r.CheckBreak() 109377 } 109378 if yyb20 { 109379 r.ReadArrayEnd() 109380 return 109381 } 109382 r.ReadArrayElem() 109383 if r.TryDecodeAsNil() { 109384 x.DeploymentUpdates = nil 109385 } else { 109386 if false { 109387 } else { 109388 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 109389 } 109390 } 109391 yyj20++ 109392 if yyhl20 { 109393 yyb20 = yyj20 > l 109394 } else { 109395 yyb20 = r.CheckBreak() 109396 } 109397 if yyb20 { 109398 r.ReadArrayEnd() 109399 return 109400 } 109401 r.ReadArrayElem() 109402 if r.TryDecodeAsNil() { 109403 x.NodePreemptions = nil 109404 } else { 109405 if false { 109406 } else { 109407 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 109408 } 109409 } 109410 yyj20++ 109411 if yyhl20 { 109412 yyb20 = yyj20 > l 109413 } else { 109414 yyb20 = r.CheckBreak() 109415 } 109416 if yyb20 { 109417 r.ReadArrayEnd() 109418 return 109419 } 109420 r.ReadArrayElem() 109421 if r.TryDecodeAsNil() { 109422 x.SnapshotIndex = 0 109423 } else { 109424 x.SnapshotIndex = (uint64)(r.DecodeUint64()) 109425 } 109426 for { 109427 yyj20++ 109428 if yyhl20 { 109429 yyb20 = yyj20 > l 109430 } else { 109431 yyb20 = r.CheckBreak() 109432 } 109433 if yyb20 { 109434 break 109435 } 109436 r.ReadArrayElem() 109437 z.DecStructFieldNotFound(yyj20-1, "") 109438 } 109439 r.ReadArrayEnd() 109440 } 109441 109442 func (x *PlanResult) CodecEncodeSelf(e *codec1978.Encoder) { 109443 var h codecSelfer100 109444 z, r := codec1978.GenHelperEncoder(e) 109445 _, _, _ = h, z, r 109446 if x == nil { 109447 r.EncodeNil() 109448 } else { 109449 if false { 109450 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109451 z.EncExtension(x, yyxt1) 109452 } else { 109453 yysep2 := !z.EncBinary() 109454 yy2arr2 := z.EncBasicHandle().StructToArray 109455 _, _ = yysep2, yy2arr2 109456 const yyr2 bool = false // struct tag has 'toArray' 109457 if yyr2 || yy2arr2 { 109458 r.WriteArrayStart(7) 109459 } else { 109460 r.WriteMapStart(7) 109461 } 109462 if yyr2 || yy2arr2 { 109463 r.WriteArrayElem() 109464 if x.NodeUpdate == nil { 109465 r.EncodeNil() 109466 } else { 109467 if false { 109468 } else { 109469 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 109470 } 109471 } 109472 } else { 109473 r.WriteMapElemKey() 109474 if z.IsJSONHandle() { 109475 z.WriteStr("\"NodeUpdate\"") 109476 } else { 109477 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeUpdate`) 109478 } 109479 r.WriteMapElemValue() 109480 if x.NodeUpdate == nil { 109481 r.EncodeNil() 109482 } else { 109483 if false { 109484 } else { 109485 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeUpdate), e) 109486 } 109487 } 109488 } 109489 if yyr2 || yy2arr2 { 109490 r.WriteArrayElem() 109491 if x.NodeAllocation == nil { 109492 r.EncodeNil() 109493 } else { 109494 if false { 109495 } else { 109496 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 109497 } 109498 } 109499 } else { 109500 r.WriteMapElemKey() 109501 if z.IsJSONHandle() { 109502 z.WriteStr("\"NodeAllocation\"") 109503 } else { 109504 r.EncodeStringEnc(codecSelferCcUTF8100, `NodeAllocation`) 109505 } 109506 r.WriteMapElemValue() 109507 if x.NodeAllocation == nil { 109508 r.EncodeNil() 109509 } else { 109510 if false { 109511 } else { 109512 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodeAllocation), e) 109513 } 109514 } 109515 } 109516 var yyn9 bool 109517 if x.Deployment == nil { 109518 yyn9 = true 109519 goto LABEL9 109520 } 109521 LABEL9: 109522 if yyr2 || yy2arr2 { 109523 if yyn9 { 109524 r.WriteArrayElem() 109525 r.EncodeNil() 109526 } else { 109527 r.WriteArrayElem() 109528 if x.Deployment == nil { 109529 r.EncodeNil() 109530 } else { 109531 x.Deployment.CodecEncodeSelf(e) 109532 } 109533 } 109534 } else { 109535 r.WriteMapElemKey() 109536 if z.IsJSONHandle() { 109537 z.WriteStr("\"Deployment\"") 109538 } else { 109539 r.EncodeStringEnc(codecSelferCcUTF8100, `Deployment`) 109540 } 109541 r.WriteMapElemValue() 109542 if yyn9 { 109543 r.EncodeNil() 109544 } else { 109545 if x.Deployment == nil { 109546 r.EncodeNil() 109547 } else { 109548 x.Deployment.CodecEncodeSelf(e) 109549 } 109550 } 109551 } 109552 if yyr2 || yy2arr2 { 109553 r.WriteArrayElem() 109554 if x.DeploymentUpdates == nil { 109555 r.EncodeNil() 109556 } else { 109557 if false { 109558 } else { 109559 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 109560 } 109561 } 109562 } else { 109563 r.WriteMapElemKey() 109564 if z.IsJSONHandle() { 109565 z.WriteStr("\"DeploymentUpdates\"") 109566 } else { 109567 r.EncodeStringEnc(codecSelferCcUTF8100, `DeploymentUpdates`) 109568 } 109569 r.WriteMapElemValue() 109570 if x.DeploymentUpdates == nil { 109571 r.EncodeNil() 109572 } else { 109573 if false { 109574 } else { 109575 h.encSlicePtrtoDeploymentStatusUpdate(([]*DeploymentStatusUpdate)(x.DeploymentUpdates), e) 109576 } 109577 } 109578 } 109579 if yyr2 || yy2arr2 { 109580 r.WriteArrayElem() 109581 if x.NodePreemptions == nil { 109582 r.EncodeNil() 109583 } else { 109584 if false { 109585 } else { 109586 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 109587 } 109588 } 109589 } else { 109590 r.WriteMapElemKey() 109591 if z.IsJSONHandle() { 109592 z.WriteStr("\"NodePreemptions\"") 109593 } else { 109594 r.EncodeStringEnc(codecSelferCcUTF8100, `NodePreemptions`) 109595 } 109596 r.WriteMapElemValue() 109597 if x.NodePreemptions == nil { 109598 r.EncodeNil() 109599 } else { 109600 if false { 109601 } else { 109602 h.encMapstringSlicePtrtoAllocation((map[string][]*Allocation)(x.NodePreemptions), e) 109603 } 109604 } 109605 } 109606 if yyr2 || yy2arr2 { 109607 r.WriteArrayElem() 109608 if false { 109609 } else { 109610 r.EncodeUint(uint64(x.RefreshIndex)) 109611 } 109612 } else { 109613 r.WriteMapElemKey() 109614 if z.IsJSONHandle() { 109615 z.WriteStr("\"RefreshIndex\"") 109616 } else { 109617 r.EncodeStringEnc(codecSelferCcUTF8100, `RefreshIndex`) 109618 } 109619 r.WriteMapElemValue() 109620 if false { 109621 } else { 109622 r.EncodeUint(uint64(x.RefreshIndex)) 109623 } 109624 } 109625 if yyr2 || yy2arr2 { 109626 r.WriteArrayElem() 109627 if false { 109628 } else { 109629 r.EncodeUint(uint64(x.AllocIndex)) 109630 } 109631 } else { 109632 r.WriteMapElemKey() 109633 if z.IsJSONHandle() { 109634 z.WriteStr("\"AllocIndex\"") 109635 } else { 109636 r.EncodeStringEnc(codecSelferCcUTF8100, `AllocIndex`) 109637 } 109638 r.WriteMapElemValue() 109639 if false { 109640 } else { 109641 r.EncodeUint(uint64(x.AllocIndex)) 109642 } 109643 } 109644 if yyr2 || yy2arr2 { 109645 r.WriteArrayEnd() 109646 } else { 109647 r.WriteMapEnd() 109648 } 109649 } 109650 } 109651 } 109652 109653 func (x *PlanResult) CodecDecodeSelf(d *codec1978.Decoder) { 109654 var h codecSelfer100 109655 z, r := codec1978.GenHelperDecoder(d) 109656 _, _, _ = h, z, r 109657 if false { 109658 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109659 z.DecExtension(x, yyxt1) 109660 } else { 109661 yyct2 := r.ContainerType() 109662 if yyct2 == codecSelferValueTypeMap100 { 109663 yyl2 := r.ReadMapStart() 109664 if yyl2 == 0 { 109665 r.ReadMapEnd() 109666 } else { 109667 x.codecDecodeSelfFromMap(yyl2, d) 109668 } 109669 } else if yyct2 == codecSelferValueTypeArray100 { 109670 yyl2 := r.ReadArrayStart() 109671 if yyl2 == 0 { 109672 r.ReadArrayEnd() 109673 } else { 109674 x.codecDecodeSelfFromArray(yyl2, d) 109675 } 109676 } else { 109677 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 109678 } 109679 } 109680 } 109681 109682 func (x *PlanResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 109683 var h codecSelfer100 109684 z, r := codec1978.GenHelperDecoder(d) 109685 _, _, _ = h, z, r 109686 var yyhl3 bool = l >= 0 109687 for yyj3 := 0; ; yyj3++ { 109688 if yyhl3 { 109689 if yyj3 >= l { 109690 break 109691 } 109692 } else { 109693 if r.CheckBreak() { 109694 break 109695 } 109696 } 109697 r.ReadMapElemKey() 109698 yys3 := z.StringView(r.DecodeStringAsBytes()) 109699 r.ReadMapElemValue() 109700 switch yys3 { 109701 case "NodeUpdate": 109702 if r.TryDecodeAsNil() { 109703 x.NodeUpdate = nil 109704 } else { 109705 if false { 109706 } else { 109707 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 109708 } 109709 } 109710 case "NodeAllocation": 109711 if r.TryDecodeAsNil() { 109712 x.NodeAllocation = nil 109713 } else { 109714 if false { 109715 } else { 109716 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 109717 } 109718 } 109719 case "Deployment": 109720 if r.TryDecodeAsNil() { 109721 if true && x.Deployment != nil { 109722 x.Deployment = nil 109723 } 109724 } else { 109725 if x.Deployment == nil { 109726 x.Deployment = new(Deployment) 109727 } 109728 109729 x.Deployment.CodecDecodeSelf(d) 109730 } 109731 case "DeploymentUpdates": 109732 if r.TryDecodeAsNil() { 109733 x.DeploymentUpdates = nil 109734 } else { 109735 if false { 109736 } else { 109737 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 109738 } 109739 } 109740 case "NodePreemptions": 109741 if r.TryDecodeAsNil() { 109742 x.NodePreemptions = nil 109743 } else { 109744 if false { 109745 } else { 109746 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 109747 } 109748 } 109749 case "RefreshIndex": 109750 if r.TryDecodeAsNil() { 109751 x.RefreshIndex = 0 109752 } else { 109753 x.RefreshIndex = (uint64)(r.DecodeUint64()) 109754 } 109755 case "AllocIndex": 109756 if r.TryDecodeAsNil() { 109757 x.AllocIndex = 0 109758 } else { 109759 x.AllocIndex = (uint64)(r.DecodeUint64()) 109760 } 109761 default: 109762 z.DecStructFieldNotFound(-1, yys3) 109763 } // end switch yys3 109764 } // end for yyj3 109765 r.ReadMapEnd() 109766 } 109767 109768 func (x *PlanResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 109769 var h codecSelfer100 109770 z, r := codec1978.GenHelperDecoder(d) 109771 _, _, _ = h, z, r 109772 var yyj15 int 109773 var yyb15 bool 109774 var yyhl15 bool = l >= 0 109775 yyj15++ 109776 if yyhl15 { 109777 yyb15 = yyj15 > l 109778 } else { 109779 yyb15 = r.CheckBreak() 109780 } 109781 if yyb15 { 109782 r.ReadArrayEnd() 109783 return 109784 } 109785 r.ReadArrayElem() 109786 if r.TryDecodeAsNil() { 109787 x.NodeUpdate = nil 109788 } else { 109789 if false { 109790 } else { 109791 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeUpdate), d) 109792 } 109793 } 109794 yyj15++ 109795 if yyhl15 { 109796 yyb15 = yyj15 > l 109797 } else { 109798 yyb15 = r.CheckBreak() 109799 } 109800 if yyb15 { 109801 r.ReadArrayEnd() 109802 return 109803 } 109804 r.ReadArrayElem() 109805 if r.TryDecodeAsNil() { 109806 x.NodeAllocation = nil 109807 } else { 109808 if false { 109809 } else { 109810 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodeAllocation), d) 109811 } 109812 } 109813 yyj15++ 109814 if yyhl15 { 109815 yyb15 = yyj15 > l 109816 } else { 109817 yyb15 = r.CheckBreak() 109818 } 109819 if yyb15 { 109820 r.ReadArrayEnd() 109821 return 109822 } 109823 r.ReadArrayElem() 109824 if r.TryDecodeAsNil() { 109825 if true && x.Deployment != nil { 109826 x.Deployment = nil 109827 } 109828 } else { 109829 if x.Deployment == nil { 109830 x.Deployment = new(Deployment) 109831 } 109832 109833 x.Deployment.CodecDecodeSelf(d) 109834 } 109835 yyj15++ 109836 if yyhl15 { 109837 yyb15 = yyj15 > l 109838 } else { 109839 yyb15 = r.CheckBreak() 109840 } 109841 if yyb15 { 109842 r.ReadArrayEnd() 109843 return 109844 } 109845 r.ReadArrayElem() 109846 if r.TryDecodeAsNil() { 109847 x.DeploymentUpdates = nil 109848 } else { 109849 if false { 109850 } else { 109851 h.decSlicePtrtoDeploymentStatusUpdate((*[]*DeploymentStatusUpdate)(&x.DeploymentUpdates), d) 109852 } 109853 } 109854 yyj15++ 109855 if yyhl15 { 109856 yyb15 = yyj15 > l 109857 } else { 109858 yyb15 = r.CheckBreak() 109859 } 109860 if yyb15 { 109861 r.ReadArrayEnd() 109862 return 109863 } 109864 r.ReadArrayElem() 109865 if r.TryDecodeAsNil() { 109866 x.NodePreemptions = nil 109867 } else { 109868 if false { 109869 } else { 109870 h.decMapstringSlicePtrtoAllocation((*map[string][]*Allocation)(&x.NodePreemptions), d) 109871 } 109872 } 109873 yyj15++ 109874 if yyhl15 { 109875 yyb15 = yyj15 > l 109876 } else { 109877 yyb15 = r.CheckBreak() 109878 } 109879 if yyb15 { 109880 r.ReadArrayEnd() 109881 return 109882 } 109883 r.ReadArrayElem() 109884 if r.TryDecodeAsNil() { 109885 x.RefreshIndex = 0 109886 } else { 109887 x.RefreshIndex = (uint64)(r.DecodeUint64()) 109888 } 109889 yyj15++ 109890 if yyhl15 { 109891 yyb15 = yyj15 > l 109892 } else { 109893 yyb15 = r.CheckBreak() 109894 } 109895 if yyb15 { 109896 r.ReadArrayEnd() 109897 return 109898 } 109899 r.ReadArrayElem() 109900 if r.TryDecodeAsNil() { 109901 x.AllocIndex = 0 109902 } else { 109903 x.AllocIndex = (uint64)(r.DecodeUint64()) 109904 } 109905 for { 109906 yyj15++ 109907 if yyhl15 { 109908 yyb15 = yyj15 > l 109909 } else { 109910 yyb15 = r.CheckBreak() 109911 } 109912 if yyb15 { 109913 break 109914 } 109915 r.ReadArrayElem() 109916 z.DecStructFieldNotFound(yyj15-1, "") 109917 } 109918 r.ReadArrayEnd() 109919 } 109920 109921 func (x *PlanAnnotations) CodecEncodeSelf(e *codec1978.Encoder) { 109922 var h codecSelfer100 109923 z, r := codec1978.GenHelperEncoder(e) 109924 _, _, _ = h, z, r 109925 if x == nil { 109926 r.EncodeNil() 109927 } else { 109928 if false { 109929 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 109930 z.EncExtension(x, yyxt1) 109931 } else { 109932 yysep2 := !z.EncBinary() 109933 yy2arr2 := z.EncBasicHandle().StructToArray 109934 _, _ = yysep2, yy2arr2 109935 const yyr2 bool = false // struct tag has 'toArray' 109936 if yyr2 || yy2arr2 { 109937 r.WriteArrayStart(2) 109938 } else { 109939 r.WriteMapStart(2) 109940 } 109941 if yyr2 || yy2arr2 { 109942 r.WriteArrayElem() 109943 if x.DesiredTGUpdates == nil { 109944 r.EncodeNil() 109945 } else { 109946 if false { 109947 } else { 109948 h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) 109949 } 109950 } 109951 } else { 109952 r.WriteMapElemKey() 109953 if z.IsJSONHandle() { 109954 z.WriteStr("\"DesiredTGUpdates\"") 109955 } else { 109956 r.EncodeStringEnc(codecSelferCcUTF8100, `DesiredTGUpdates`) 109957 } 109958 r.WriteMapElemValue() 109959 if x.DesiredTGUpdates == nil { 109960 r.EncodeNil() 109961 } else { 109962 if false { 109963 } else { 109964 h.encMapstringPtrtoDesiredUpdates((map[string]*DesiredUpdates)(x.DesiredTGUpdates), e) 109965 } 109966 } 109967 } 109968 if yyr2 || yy2arr2 { 109969 r.WriteArrayElem() 109970 if x.PreemptedAllocs == nil { 109971 r.EncodeNil() 109972 } else { 109973 if false { 109974 } else { 109975 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) 109976 } 109977 } 109978 } else { 109979 r.WriteMapElemKey() 109980 if z.IsJSONHandle() { 109981 z.WriteStr("\"PreemptedAllocs\"") 109982 } else { 109983 r.EncodeStringEnc(codecSelferCcUTF8100, `PreemptedAllocs`) 109984 } 109985 r.WriteMapElemValue() 109986 if x.PreemptedAllocs == nil { 109987 r.EncodeNil() 109988 } else { 109989 if false { 109990 } else { 109991 h.encSlicePtrtoAllocListStub(([]*AllocListStub)(x.PreemptedAllocs), e) 109992 } 109993 } 109994 } 109995 if yyr2 || yy2arr2 { 109996 r.WriteArrayEnd() 109997 } else { 109998 r.WriteMapEnd() 109999 } 110000 } 110001 } 110002 } 110003 110004 func (x *PlanAnnotations) CodecDecodeSelf(d *codec1978.Decoder) { 110005 var h codecSelfer100 110006 z, r := codec1978.GenHelperDecoder(d) 110007 _, _, _ = h, z, r 110008 if false { 110009 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110010 z.DecExtension(x, yyxt1) 110011 } else { 110012 yyct2 := r.ContainerType() 110013 if yyct2 == codecSelferValueTypeMap100 { 110014 yyl2 := r.ReadMapStart() 110015 if yyl2 == 0 { 110016 r.ReadMapEnd() 110017 } else { 110018 x.codecDecodeSelfFromMap(yyl2, d) 110019 } 110020 } else if yyct2 == codecSelferValueTypeArray100 { 110021 yyl2 := r.ReadArrayStart() 110022 if yyl2 == 0 { 110023 r.ReadArrayEnd() 110024 } else { 110025 x.codecDecodeSelfFromArray(yyl2, d) 110026 } 110027 } else { 110028 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110029 } 110030 } 110031 } 110032 110033 func (x *PlanAnnotations) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110034 var h codecSelfer100 110035 z, r := codec1978.GenHelperDecoder(d) 110036 _, _, _ = h, z, r 110037 var yyhl3 bool = l >= 0 110038 for yyj3 := 0; ; yyj3++ { 110039 if yyhl3 { 110040 if yyj3 >= l { 110041 break 110042 } 110043 } else { 110044 if r.CheckBreak() { 110045 break 110046 } 110047 } 110048 r.ReadMapElemKey() 110049 yys3 := z.StringView(r.DecodeStringAsBytes()) 110050 r.ReadMapElemValue() 110051 switch yys3 { 110052 case "DesiredTGUpdates": 110053 if r.TryDecodeAsNil() { 110054 x.DesiredTGUpdates = nil 110055 } else { 110056 if false { 110057 } else { 110058 h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) 110059 } 110060 } 110061 case "PreemptedAllocs": 110062 if r.TryDecodeAsNil() { 110063 x.PreemptedAllocs = nil 110064 } else { 110065 if false { 110066 } else { 110067 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) 110068 } 110069 } 110070 default: 110071 z.DecStructFieldNotFound(-1, yys3) 110072 } // end switch yys3 110073 } // end for yyj3 110074 r.ReadMapEnd() 110075 } 110076 110077 func (x *PlanAnnotations) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110078 var h codecSelfer100 110079 z, r := codec1978.GenHelperDecoder(d) 110080 _, _, _ = h, z, r 110081 var yyj8 int 110082 var yyb8 bool 110083 var yyhl8 bool = l >= 0 110084 yyj8++ 110085 if yyhl8 { 110086 yyb8 = yyj8 > l 110087 } else { 110088 yyb8 = r.CheckBreak() 110089 } 110090 if yyb8 { 110091 r.ReadArrayEnd() 110092 return 110093 } 110094 r.ReadArrayElem() 110095 if r.TryDecodeAsNil() { 110096 x.DesiredTGUpdates = nil 110097 } else { 110098 if false { 110099 } else { 110100 h.decMapstringPtrtoDesiredUpdates((*map[string]*DesiredUpdates)(&x.DesiredTGUpdates), d) 110101 } 110102 } 110103 yyj8++ 110104 if yyhl8 { 110105 yyb8 = yyj8 > l 110106 } else { 110107 yyb8 = r.CheckBreak() 110108 } 110109 if yyb8 { 110110 r.ReadArrayEnd() 110111 return 110112 } 110113 r.ReadArrayElem() 110114 if r.TryDecodeAsNil() { 110115 x.PreemptedAllocs = nil 110116 } else { 110117 if false { 110118 } else { 110119 h.decSlicePtrtoAllocListStub((*[]*AllocListStub)(&x.PreemptedAllocs), d) 110120 } 110121 } 110122 for { 110123 yyj8++ 110124 if yyhl8 { 110125 yyb8 = yyj8 > l 110126 } else { 110127 yyb8 = r.CheckBreak() 110128 } 110129 if yyb8 { 110130 break 110131 } 110132 r.ReadArrayElem() 110133 z.DecStructFieldNotFound(yyj8-1, "") 110134 } 110135 r.ReadArrayEnd() 110136 } 110137 110138 func (x *DesiredUpdates) CodecEncodeSelf(e *codec1978.Encoder) { 110139 var h codecSelfer100 110140 z, r := codec1978.GenHelperEncoder(e) 110141 _, _, _ = h, z, r 110142 if x == nil { 110143 r.EncodeNil() 110144 } else { 110145 if false { 110146 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110147 z.EncExtension(x, yyxt1) 110148 } else { 110149 yysep2 := !z.EncBinary() 110150 yy2arr2 := z.EncBasicHandle().StructToArray 110151 _, _ = yysep2, yy2arr2 110152 const yyr2 bool = false // struct tag has 'toArray' 110153 if yyr2 || yy2arr2 { 110154 r.WriteArrayStart(8) 110155 } else { 110156 r.WriteMapStart(8) 110157 } 110158 if yyr2 || yy2arr2 { 110159 r.WriteArrayElem() 110160 if false { 110161 } else { 110162 r.EncodeUint(uint64(x.Ignore)) 110163 } 110164 } else { 110165 r.WriteMapElemKey() 110166 if z.IsJSONHandle() { 110167 z.WriteStr("\"Ignore\"") 110168 } else { 110169 r.EncodeStringEnc(codecSelferCcUTF8100, `Ignore`) 110170 } 110171 r.WriteMapElemValue() 110172 if false { 110173 } else { 110174 r.EncodeUint(uint64(x.Ignore)) 110175 } 110176 } 110177 if yyr2 || yy2arr2 { 110178 r.WriteArrayElem() 110179 if false { 110180 } else { 110181 r.EncodeUint(uint64(x.Place)) 110182 } 110183 } else { 110184 r.WriteMapElemKey() 110185 if z.IsJSONHandle() { 110186 z.WriteStr("\"Place\"") 110187 } else { 110188 r.EncodeStringEnc(codecSelferCcUTF8100, `Place`) 110189 } 110190 r.WriteMapElemValue() 110191 if false { 110192 } else { 110193 r.EncodeUint(uint64(x.Place)) 110194 } 110195 } 110196 if yyr2 || yy2arr2 { 110197 r.WriteArrayElem() 110198 if false { 110199 } else { 110200 r.EncodeUint(uint64(x.Migrate)) 110201 } 110202 } else { 110203 r.WriteMapElemKey() 110204 if z.IsJSONHandle() { 110205 z.WriteStr("\"Migrate\"") 110206 } else { 110207 r.EncodeStringEnc(codecSelferCcUTF8100, `Migrate`) 110208 } 110209 r.WriteMapElemValue() 110210 if false { 110211 } else { 110212 r.EncodeUint(uint64(x.Migrate)) 110213 } 110214 } 110215 if yyr2 || yy2arr2 { 110216 r.WriteArrayElem() 110217 if false { 110218 } else { 110219 r.EncodeUint(uint64(x.Stop)) 110220 } 110221 } else { 110222 r.WriteMapElemKey() 110223 if z.IsJSONHandle() { 110224 z.WriteStr("\"Stop\"") 110225 } else { 110226 r.EncodeStringEnc(codecSelferCcUTF8100, `Stop`) 110227 } 110228 r.WriteMapElemValue() 110229 if false { 110230 } else { 110231 r.EncodeUint(uint64(x.Stop)) 110232 } 110233 } 110234 if yyr2 || yy2arr2 { 110235 r.WriteArrayElem() 110236 if false { 110237 } else { 110238 r.EncodeUint(uint64(x.InPlaceUpdate)) 110239 } 110240 } else { 110241 r.WriteMapElemKey() 110242 if z.IsJSONHandle() { 110243 z.WriteStr("\"InPlaceUpdate\"") 110244 } else { 110245 r.EncodeStringEnc(codecSelferCcUTF8100, `InPlaceUpdate`) 110246 } 110247 r.WriteMapElemValue() 110248 if false { 110249 } else { 110250 r.EncodeUint(uint64(x.InPlaceUpdate)) 110251 } 110252 } 110253 if yyr2 || yy2arr2 { 110254 r.WriteArrayElem() 110255 if false { 110256 } else { 110257 r.EncodeUint(uint64(x.DestructiveUpdate)) 110258 } 110259 } else { 110260 r.WriteMapElemKey() 110261 if z.IsJSONHandle() { 110262 z.WriteStr("\"DestructiveUpdate\"") 110263 } else { 110264 r.EncodeStringEnc(codecSelferCcUTF8100, `DestructiveUpdate`) 110265 } 110266 r.WriteMapElemValue() 110267 if false { 110268 } else { 110269 r.EncodeUint(uint64(x.DestructiveUpdate)) 110270 } 110271 } 110272 if yyr2 || yy2arr2 { 110273 r.WriteArrayElem() 110274 if false { 110275 } else { 110276 r.EncodeUint(uint64(x.Canary)) 110277 } 110278 } else { 110279 r.WriteMapElemKey() 110280 if z.IsJSONHandle() { 110281 z.WriteStr("\"Canary\"") 110282 } else { 110283 r.EncodeStringEnc(codecSelferCcUTF8100, `Canary`) 110284 } 110285 r.WriteMapElemValue() 110286 if false { 110287 } else { 110288 r.EncodeUint(uint64(x.Canary)) 110289 } 110290 } 110291 if yyr2 || yy2arr2 { 110292 r.WriteArrayElem() 110293 if false { 110294 } else { 110295 r.EncodeUint(uint64(x.Preemptions)) 110296 } 110297 } else { 110298 r.WriteMapElemKey() 110299 if z.IsJSONHandle() { 110300 z.WriteStr("\"Preemptions\"") 110301 } else { 110302 r.EncodeStringEnc(codecSelferCcUTF8100, `Preemptions`) 110303 } 110304 r.WriteMapElemValue() 110305 if false { 110306 } else { 110307 r.EncodeUint(uint64(x.Preemptions)) 110308 } 110309 } 110310 if yyr2 || yy2arr2 { 110311 r.WriteArrayEnd() 110312 } else { 110313 r.WriteMapEnd() 110314 } 110315 } 110316 } 110317 } 110318 110319 func (x *DesiredUpdates) CodecDecodeSelf(d *codec1978.Decoder) { 110320 var h codecSelfer100 110321 z, r := codec1978.GenHelperDecoder(d) 110322 _, _, _ = h, z, r 110323 if false { 110324 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110325 z.DecExtension(x, yyxt1) 110326 } else { 110327 yyct2 := r.ContainerType() 110328 if yyct2 == codecSelferValueTypeMap100 { 110329 yyl2 := r.ReadMapStart() 110330 if yyl2 == 0 { 110331 r.ReadMapEnd() 110332 } else { 110333 x.codecDecodeSelfFromMap(yyl2, d) 110334 } 110335 } else if yyct2 == codecSelferValueTypeArray100 { 110336 yyl2 := r.ReadArrayStart() 110337 if yyl2 == 0 { 110338 r.ReadArrayEnd() 110339 } else { 110340 x.codecDecodeSelfFromArray(yyl2, d) 110341 } 110342 } else { 110343 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110344 } 110345 } 110346 } 110347 110348 func (x *DesiredUpdates) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110349 var h codecSelfer100 110350 z, r := codec1978.GenHelperDecoder(d) 110351 _, _, _ = h, z, r 110352 var yyhl3 bool = l >= 0 110353 for yyj3 := 0; ; yyj3++ { 110354 if yyhl3 { 110355 if yyj3 >= l { 110356 break 110357 } 110358 } else { 110359 if r.CheckBreak() { 110360 break 110361 } 110362 } 110363 r.ReadMapElemKey() 110364 yys3 := z.StringView(r.DecodeStringAsBytes()) 110365 r.ReadMapElemValue() 110366 switch yys3 { 110367 case "Ignore": 110368 if r.TryDecodeAsNil() { 110369 x.Ignore = 0 110370 } else { 110371 x.Ignore = (uint64)(r.DecodeUint64()) 110372 } 110373 case "Place": 110374 if r.TryDecodeAsNil() { 110375 x.Place = 0 110376 } else { 110377 x.Place = (uint64)(r.DecodeUint64()) 110378 } 110379 case "Migrate": 110380 if r.TryDecodeAsNil() { 110381 x.Migrate = 0 110382 } else { 110383 x.Migrate = (uint64)(r.DecodeUint64()) 110384 } 110385 case "Stop": 110386 if r.TryDecodeAsNil() { 110387 x.Stop = 0 110388 } else { 110389 x.Stop = (uint64)(r.DecodeUint64()) 110390 } 110391 case "InPlaceUpdate": 110392 if r.TryDecodeAsNil() { 110393 x.InPlaceUpdate = 0 110394 } else { 110395 x.InPlaceUpdate = (uint64)(r.DecodeUint64()) 110396 } 110397 case "DestructiveUpdate": 110398 if r.TryDecodeAsNil() { 110399 x.DestructiveUpdate = 0 110400 } else { 110401 x.DestructiveUpdate = (uint64)(r.DecodeUint64()) 110402 } 110403 case "Canary": 110404 if r.TryDecodeAsNil() { 110405 x.Canary = 0 110406 } else { 110407 x.Canary = (uint64)(r.DecodeUint64()) 110408 } 110409 case "Preemptions": 110410 if r.TryDecodeAsNil() { 110411 x.Preemptions = 0 110412 } else { 110413 x.Preemptions = (uint64)(r.DecodeUint64()) 110414 } 110415 default: 110416 z.DecStructFieldNotFound(-1, yys3) 110417 } // end switch yys3 110418 } // end for yyj3 110419 r.ReadMapEnd() 110420 } 110421 110422 func (x *DesiredUpdates) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110423 var h codecSelfer100 110424 z, r := codec1978.GenHelperDecoder(d) 110425 _, _, _ = h, z, r 110426 var yyj12 int 110427 var yyb12 bool 110428 var yyhl12 bool = l >= 0 110429 yyj12++ 110430 if yyhl12 { 110431 yyb12 = yyj12 > l 110432 } else { 110433 yyb12 = r.CheckBreak() 110434 } 110435 if yyb12 { 110436 r.ReadArrayEnd() 110437 return 110438 } 110439 r.ReadArrayElem() 110440 if r.TryDecodeAsNil() { 110441 x.Ignore = 0 110442 } else { 110443 x.Ignore = (uint64)(r.DecodeUint64()) 110444 } 110445 yyj12++ 110446 if yyhl12 { 110447 yyb12 = yyj12 > l 110448 } else { 110449 yyb12 = r.CheckBreak() 110450 } 110451 if yyb12 { 110452 r.ReadArrayEnd() 110453 return 110454 } 110455 r.ReadArrayElem() 110456 if r.TryDecodeAsNil() { 110457 x.Place = 0 110458 } else { 110459 x.Place = (uint64)(r.DecodeUint64()) 110460 } 110461 yyj12++ 110462 if yyhl12 { 110463 yyb12 = yyj12 > l 110464 } else { 110465 yyb12 = r.CheckBreak() 110466 } 110467 if yyb12 { 110468 r.ReadArrayEnd() 110469 return 110470 } 110471 r.ReadArrayElem() 110472 if r.TryDecodeAsNil() { 110473 x.Migrate = 0 110474 } else { 110475 x.Migrate = (uint64)(r.DecodeUint64()) 110476 } 110477 yyj12++ 110478 if yyhl12 { 110479 yyb12 = yyj12 > l 110480 } else { 110481 yyb12 = r.CheckBreak() 110482 } 110483 if yyb12 { 110484 r.ReadArrayEnd() 110485 return 110486 } 110487 r.ReadArrayElem() 110488 if r.TryDecodeAsNil() { 110489 x.Stop = 0 110490 } else { 110491 x.Stop = (uint64)(r.DecodeUint64()) 110492 } 110493 yyj12++ 110494 if yyhl12 { 110495 yyb12 = yyj12 > l 110496 } else { 110497 yyb12 = r.CheckBreak() 110498 } 110499 if yyb12 { 110500 r.ReadArrayEnd() 110501 return 110502 } 110503 r.ReadArrayElem() 110504 if r.TryDecodeAsNil() { 110505 x.InPlaceUpdate = 0 110506 } else { 110507 x.InPlaceUpdate = (uint64)(r.DecodeUint64()) 110508 } 110509 yyj12++ 110510 if yyhl12 { 110511 yyb12 = yyj12 > l 110512 } else { 110513 yyb12 = r.CheckBreak() 110514 } 110515 if yyb12 { 110516 r.ReadArrayEnd() 110517 return 110518 } 110519 r.ReadArrayElem() 110520 if r.TryDecodeAsNil() { 110521 x.DestructiveUpdate = 0 110522 } else { 110523 x.DestructiveUpdate = (uint64)(r.DecodeUint64()) 110524 } 110525 yyj12++ 110526 if yyhl12 { 110527 yyb12 = yyj12 > l 110528 } else { 110529 yyb12 = r.CheckBreak() 110530 } 110531 if yyb12 { 110532 r.ReadArrayEnd() 110533 return 110534 } 110535 r.ReadArrayElem() 110536 if r.TryDecodeAsNil() { 110537 x.Canary = 0 110538 } else { 110539 x.Canary = (uint64)(r.DecodeUint64()) 110540 } 110541 yyj12++ 110542 if yyhl12 { 110543 yyb12 = yyj12 > l 110544 } else { 110545 yyb12 = r.CheckBreak() 110546 } 110547 if yyb12 { 110548 r.ReadArrayEnd() 110549 return 110550 } 110551 r.ReadArrayElem() 110552 if r.TryDecodeAsNil() { 110553 x.Preemptions = 0 110554 } else { 110555 x.Preemptions = (uint64)(r.DecodeUint64()) 110556 } 110557 for { 110558 yyj12++ 110559 if yyhl12 { 110560 yyb12 = yyj12 > l 110561 } else { 110562 yyb12 = r.CheckBreak() 110563 } 110564 if yyb12 { 110565 break 110566 } 110567 r.ReadArrayElem() 110568 z.DecStructFieldNotFound(yyj12-1, "") 110569 } 110570 r.ReadArrayEnd() 110571 } 110572 110573 func (x *KeyringResponse) CodecEncodeSelf(e *codec1978.Encoder) { 110574 var h codecSelfer100 110575 z, r := codec1978.GenHelperEncoder(e) 110576 _, _, _ = h, z, r 110577 if x == nil { 110578 r.EncodeNil() 110579 } else { 110580 if false { 110581 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110582 z.EncExtension(x, yyxt1) 110583 } else { 110584 yysep2 := !z.EncBinary() 110585 yy2arr2 := z.EncBasicHandle().StructToArray 110586 _, _ = yysep2, yy2arr2 110587 const yyr2 bool = false // struct tag has 'toArray' 110588 if yyr2 || yy2arr2 { 110589 r.WriteArrayStart(3) 110590 } else { 110591 r.WriteMapStart(3) 110592 } 110593 if yyr2 || yy2arr2 { 110594 r.WriteArrayElem() 110595 if x.Messages == nil { 110596 r.EncodeNil() 110597 } else { 110598 if false { 110599 } else { 110600 z.F.EncMapStringStringV(x.Messages, e) 110601 } 110602 } 110603 } else { 110604 r.WriteMapElemKey() 110605 if z.IsJSONHandle() { 110606 z.WriteStr("\"Messages\"") 110607 } else { 110608 r.EncodeStringEnc(codecSelferCcUTF8100, `Messages`) 110609 } 110610 r.WriteMapElemValue() 110611 if x.Messages == nil { 110612 r.EncodeNil() 110613 } else { 110614 if false { 110615 } else { 110616 z.F.EncMapStringStringV(x.Messages, e) 110617 } 110618 } 110619 } 110620 if yyr2 || yy2arr2 { 110621 r.WriteArrayElem() 110622 if x.Keys == nil { 110623 r.EncodeNil() 110624 } else { 110625 if false { 110626 } else { 110627 z.F.EncMapStringIntV(x.Keys, e) 110628 } 110629 } 110630 } else { 110631 r.WriteMapElemKey() 110632 if z.IsJSONHandle() { 110633 z.WriteStr("\"Keys\"") 110634 } else { 110635 r.EncodeStringEnc(codecSelferCcUTF8100, `Keys`) 110636 } 110637 r.WriteMapElemValue() 110638 if x.Keys == nil { 110639 r.EncodeNil() 110640 } else { 110641 if false { 110642 } else { 110643 z.F.EncMapStringIntV(x.Keys, e) 110644 } 110645 } 110646 } 110647 if yyr2 || yy2arr2 { 110648 r.WriteArrayElem() 110649 if false { 110650 } else { 110651 r.EncodeInt(int64(x.NumNodes)) 110652 } 110653 } else { 110654 r.WriteMapElemKey() 110655 if z.IsJSONHandle() { 110656 z.WriteStr("\"NumNodes\"") 110657 } else { 110658 r.EncodeStringEnc(codecSelferCcUTF8100, `NumNodes`) 110659 } 110660 r.WriteMapElemValue() 110661 if false { 110662 } else { 110663 r.EncodeInt(int64(x.NumNodes)) 110664 } 110665 } 110666 if yyr2 || yy2arr2 { 110667 r.WriteArrayEnd() 110668 } else { 110669 r.WriteMapEnd() 110670 } 110671 } 110672 } 110673 } 110674 110675 func (x *KeyringResponse) CodecDecodeSelf(d *codec1978.Decoder) { 110676 var h codecSelfer100 110677 z, r := codec1978.GenHelperDecoder(d) 110678 _, _, _ = h, z, r 110679 if false { 110680 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110681 z.DecExtension(x, yyxt1) 110682 } else { 110683 yyct2 := r.ContainerType() 110684 if yyct2 == codecSelferValueTypeMap100 { 110685 yyl2 := r.ReadMapStart() 110686 if yyl2 == 0 { 110687 r.ReadMapEnd() 110688 } else { 110689 x.codecDecodeSelfFromMap(yyl2, d) 110690 } 110691 } else if yyct2 == codecSelferValueTypeArray100 { 110692 yyl2 := r.ReadArrayStart() 110693 if yyl2 == 0 { 110694 r.ReadArrayEnd() 110695 } else { 110696 x.codecDecodeSelfFromArray(yyl2, d) 110697 } 110698 } else { 110699 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110700 } 110701 } 110702 } 110703 110704 func (x *KeyringResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110705 var h codecSelfer100 110706 z, r := codec1978.GenHelperDecoder(d) 110707 _, _, _ = h, z, r 110708 var yyhl3 bool = l >= 0 110709 for yyj3 := 0; ; yyj3++ { 110710 if yyhl3 { 110711 if yyj3 >= l { 110712 break 110713 } 110714 } else { 110715 if r.CheckBreak() { 110716 break 110717 } 110718 } 110719 r.ReadMapElemKey() 110720 yys3 := z.StringView(r.DecodeStringAsBytes()) 110721 r.ReadMapElemValue() 110722 switch yys3 { 110723 case "Messages": 110724 if r.TryDecodeAsNil() { 110725 x.Messages = nil 110726 } else { 110727 if false { 110728 } else { 110729 z.F.DecMapStringStringX(&x.Messages, d) 110730 } 110731 } 110732 case "Keys": 110733 if r.TryDecodeAsNil() { 110734 x.Keys = nil 110735 } else { 110736 if false { 110737 } else { 110738 z.F.DecMapStringIntX(&x.Keys, d) 110739 } 110740 } 110741 case "NumNodes": 110742 if r.TryDecodeAsNil() { 110743 x.NumNodes = 0 110744 } else { 110745 x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 110746 } 110747 default: 110748 z.DecStructFieldNotFound(-1, yys3) 110749 } // end switch yys3 110750 } // end for yyj3 110751 r.ReadMapEnd() 110752 } 110753 110754 func (x *KeyringResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110755 var h codecSelfer100 110756 z, r := codec1978.GenHelperDecoder(d) 110757 _, _, _ = h, z, r 110758 var yyj9 int 110759 var yyb9 bool 110760 var yyhl9 bool = l >= 0 110761 yyj9++ 110762 if yyhl9 { 110763 yyb9 = yyj9 > l 110764 } else { 110765 yyb9 = r.CheckBreak() 110766 } 110767 if yyb9 { 110768 r.ReadArrayEnd() 110769 return 110770 } 110771 r.ReadArrayElem() 110772 if r.TryDecodeAsNil() { 110773 x.Messages = nil 110774 } else { 110775 if false { 110776 } else { 110777 z.F.DecMapStringStringX(&x.Messages, d) 110778 } 110779 } 110780 yyj9++ 110781 if yyhl9 { 110782 yyb9 = yyj9 > l 110783 } else { 110784 yyb9 = r.CheckBreak() 110785 } 110786 if yyb9 { 110787 r.ReadArrayEnd() 110788 return 110789 } 110790 r.ReadArrayElem() 110791 if r.TryDecodeAsNil() { 110792 x.Keys = nil 110793 } else { 110794 if false { 110795 } else { 110796 z.F.DecMapStringIntX(&x.Keys, d) 110797 } 110798 } 110799 yyj9++ 110800 if yyhl9 { 110801 yyb9 = yyj9 > l 110802 } else { 110803 yyb9 = r.CheckBreak() 110804 } 110805 if yyb9 { 110806 r.ReadArrayEnd() 110807 return 110808 } 110809 r.ReadArrayElem() 110810 if r.TryDecodeAsNil() { 110811 x.NumNodes = 0 110812 } else { 110813 x.NumNodes = (int)(z.C.IntV(r.DecodeInt64(), codecSelferBitsize100)) 110814 } 110815 for { 110816 yyj9++ 110817 if yyhl9 { 110818 yyb9 = yyj9 > l 110819 } else { 110820 yyb9 = r.CheckBreak() 110821 } 110822 if yyb9 { 110823 break 110824 } 110825 r.ReadArrayElem() 110826 z.DecStructFieldNotFound(yyj9-1, "") 110827 } 110828 r.ReadArrayEnd() 110829 } 110830 110831 func (x *KeyringRequest) CodecEncodeSelf(e *codec1978.Encoder) { 110832 var h codecSelfer100 110833 z, r := codec1978.GenHelperEncoder(e) 110834 _, _, _ = h, z, r 110835 if x == nil { 110836 r.EncodeNil() 110837 } else { 110838 if false { 110839 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110840 z.EncExtension(x, yyxt1) 110841 } else { 110842 yysep2 := !z.EncBinary() 110843 yy2arr2 := z.EncBasicHandle().StructToArray 110844 _, _ = yysep2, yy2arr2 110845 const yyr2 bool = false // struct tag has 'toArray' 110846 if yyr2 || yy2arr2 { 110847 r.WriteArrayStart(1) 110848 } else { 110849 r.WriteMapStart(1) 110850 } 110851 if yyr2 || yy2arr2 { 110852 r.WriteArrayElem() 110853 if false { 110854 } else { 110855 if z.EncBasicHandle().StringToRaw { 110856 r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) 110857 } else { 110858 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) 110859 } 110860 } 110861 } else { 110862 r.WriteMapElemKey() 110863 if z.IsJSONHandle() { 110864 z.WriteStr("\"Key\"") 110865 } else { 110866 r.EncodeStringEnc(codecSelferCcUTF8100, `Key`) 110867 } 110868 r.WriteMapElemValue() 110869 if false { 110870 } else { 110871 if z.EncBasicHandle().StringToRaw { 110872 r.EncodeStringBytesRaw(z.BytesView(string(x.Key))) 110873 } else { 110874 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Key)) 110875 } 110876 } 110877 } 110878 if yyr2 || yy2arr2 { 110879 r.WriteArrayEnd() 110880 } else { 110881 r.WriteMapEnd() 110882 } 110883 } 110884 } 110885 } 110886 110887 func (x *KeyringRequest) CodecDecodeSelf(d *codec1978.Decoder) { 110888 var h codecSelfer100 110889 z, r := codec1978.GenHelperDecoder(d) 110890 _, _, _ = h, z, r 110891 if false { 110892 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110893 z.DecExtension(x, yyxt1) 110894 } else { 110895 yyct2 := r.ContainerType() 110896 if yyct2 == codecSelferValueTypeMap100 { 110897 yyl2 := r.ReadMapStart() 110898 if yyl2 == 0 { 110899 r.ReadMapEnd() 110900 } else { 110901 x.codecDecodeSelfFromMap(yyl2, d) 110902 } 110903 } else if yyct2 == codecSelferValueTypeArray100 { 110904 yyl2 := r.ReadArrayStart() 110905 if yyl2 == 0 { 110906 r.ReadArrayEnd() 110907 } else { 110908 x.codecDecodeSelfFromArray(yyl2, d) 110909 } 110910 } else { 110911 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 110912 } 110913 } 110914 } 110915 110916 func (x *KeyringRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 110917 var h codecSelfer100 110918 z, r := codec1978.GenHelperDecoder(d) 110919 _, _, _ = h, z, r 110920 var yyhl3 bool = l >= 0 110921 for yyj3 := 0; ; yyj3++ { 110922 if yyhl3 { 110923 if yyj3 >= l { 110924 break 110925 } 110926 } else { 110927 if r.CheckBreak() { 110928 break 110929 } 110930 } 110931 r.ReadMapElemKey() 110932 yys3 := z.StringView(r.DecodeStringAsBytes()) 110933 r.ReadMapElemValue() 110934 switch yys3 { 110935 case "Key": 110936 if r.TryDecodeAsNil() { 110937 x.Key = "" 110938 } else { 110939 x.Key = (string)(r.DecodeString()) 110940 } 110941 default: 110942 z.DecStructFieldNotFound(-1, yys3) 110943 } // end switch yys3 110944 } // end for yyj3 110945 r.ReadMapEnd() 110946 } 110947 110948 func (x *KeyringRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 110949 var h codecSelfer100 110950 z, r := codec1978.GenHelperDecoder(d) 110951 _, _, _ = h, z, r 110952 var yyj5 int 110953 var yyb5 bool 110954 var yyhl5 bool = l >= 0 110955 yyj5++ 110956 if yyhl5 { 110957 yyb5 = yyj5 > l 110958 } else { 110959 yyb5 = r.CheckBreak() 110960 } 110961 if yyb5 { 110962 r.ReadArrayEnd() 110963 return 110964 } 110965 r.ReadArrayElem() 110966 if r.TryDecodeAsNil() { 110967 x.Key = "" 110968 } else { 110969 x.Key = (string)(r.DecodeString()) 110970 } 110971 for { 110972 yyj5++ 110973 if yyhl5 { 110974 yyb5 = yyj5 > l 110975 } else { 110976 yyb5 = r.CheckBreak() 110977 } 110978 if yyb5 { 110979 break 110980 } 110981 r.ReadArrayElem() 110982 z.DecStructFieldNotFound(yyj5-1, "") 110983 } 110984 r.ReadArrayEnd() 110985 } 110986 110987 func (x *RecoverableError) CodecEncodeSelf(e *codec1978.Encoder) { 110988 var h codecSelfer100 110989 z, r := codec1978.GenHelperEncoder(e) 110990 _, _, _ = h, z, r 110991 if x == nil { 110992 r.EncodeNil() 110993 } else { 110994 if false { 110995 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 110996 z.EncExtension(x, yyxt1) 110997 } else { 110998 yysep2 := !z.EncBinary() 110999 yy2arr2 := z.EncBasicHandle().StructToArray 111000 _, _ = yysep2, yy2arr2 111001 const yyr2 bool = false // struct tag has 'toArray' 111002 if yyr2 || yy2arr2 { 111003 r.WriteArrayStart(2) 111004 } else { 111005 r.WriteMapStart(2) 111006 } 111007 if yyr2 || yy2arr2 { 111008 r.WriteArrayElem() 111009 if false { 111010 } else { 111011 if z.EncBasicHandle().StringToRaw { 111012 r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) 111013 } else { 111014 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) 111015 } 111016 } 111017 } else { 111018 r.WriteMapElemKey() 111019 if z.IsJSONHandle() { 111020 z.WriteStr("\"Err\"") 111021 } else { 111022 r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) 111023 } 111024 r.WriteMapElemValue() 111025 if false { 111026 } else { 111027 if z.EncBasicHandle().StringToRaw { 111028 r.EncodeStringBytesRaw(z.BytesView(string(x.Err))) 111029 } else { 111030 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Err)) 111031 } 111032 } 111033 } 111034 if yyr2 || yy2arr2 { 111035 r.WriteArrayElem() 111036 if false { 111037 } else { 111038 r.EncodeBool(bool(x.Recoverable)) 111039 } 111040 } else { 111041 r.WriteMapElemKey() 111042 if z.IsJSONHandle() { 111043 z.WriteStr("\"Recoverable\"") 111044 } else { 111045 r.EncodeStringEnc(codecSelferCcUTF8100, `Recoverable`) 111046 } 111047 r.WriteMapElemValue() 111048 if false { 111049 } else { 111050 r.EncodeBool(bool(x.Recoverable)) 111051 } 111052 } 111053 if yyr2 || yy2arr2 { 111054 r.WriteArrayEnd() 111055 } else { 111056 r.WriteMapEnd() 111057 } 111058 } 111059 } 111060 } 111061 111062 func (x *RecoverableError) CodecDecodeSelf(d *codec1978.Decoder) { 111063 var h codecSelfer100 111064 z, r := codec1978.GenHelperDecoder(d) 111065 _, _, _ = h, z, r 111066 if false { 111067 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111068 z.DecExtension(x, yyxt1) 111069 } else { 111070 yyct2 := r.ContainerType() 111071 if yyct2 == codecSelferValueTypeMap100 { 111072 yyl2 := r.ReadMapStart() 111073 if yyl2 == 0 { 111074 r.ReadMapEnd() 111075 } else { 111076 x.codecDecodeSelfFromMap(yyl2, d) 111077 } 111078 } else if yyct2 == codecSelferValueTypeArray100 { 111079 yyl2 := r.ReadArrayStart() 111080 if yyl2 == 0 { 111081 r.ReadArrayEnd() 111082 } else { 111083 x.codecDecodeSelfFromArray(yyl2, d) 111084 } 111085 } else { 111086 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111087 } 111088 } 111089 } 111090 111091 func (x *RecoverableError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 111092 var h codecSelfer100 111093 z, r := codec1978.GenHelperDecoder(d) 111094 _, _, _ = h, z, r 111095 var yyhl3 bool = l >= 0 111096 for yyj3 := 0; ; yyj3++ { 111097 if yyhl3 { 111098 if yyj3 >= l { 111099 break 111100 } 111101 } else { 111102 if r.CheckBreak() { 111103 break 111104 } 111105 } 111106 r.ReadMapElemKey() 111107 yys3 := z.StringView(r.DecodeStringAsBytes()) 111108 r.ReadMapElemValue() 111109 switch yys3 { 111110 case "Err": 111111 if r.TryDecodeAsNil() { 111112 x.Err = "" 111113 } else { 111114 x.Err = (string)(r.DecodeString()) 111115 } 111116 case "Recoverable": 111117 if r.TryDecodeAsNil() { 111118 x.Recoverable = false 111119 } else { 111120 x.Recoverable = (bool)(r.DecodeBool()) 111121 } 111122 default: 111123 z.DecStructFieldNotFound(-1, yys3) 111124 } // end switch yys3 111125 } // end for yyj3 111126 r.ReadMapEnd() 111127 } 111128 111129 func (x *RecoverableError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 111130 var h codecSelfer100 111131 z, r := codec1978.GenHelperDecoder(d) 111132 _, _, _ = h, z, r 111133 var yyj6 int 111134 var yyb6 bool 111135 var yyhl6 bool = l >= 0 111136 yyj6++ 111137 if yyhl6 { 111138 yyb6 = yyj6 > l 111139 } else { 111140 yyb6 = r.CheckBreak() 111141 } 111142 if yyb6 { 111143 r.ReadArrayEnd() 111144 return 111145 } 111146 r.ReadArrayElem() 111147 if r.TryDecodeAsNil() { 111148 x.Err = "" 111149 } else { 111150 x.Err = (string)(r.DecodeString()) 111151 } 111152 yyj6++ 111153 if yyhl6 { 111154 yyb6 = yyj6 > l 111155 } else { 111156 yyb6 = r.CheckBreak() 111157 } 111158 if yyb6 { 111159 r.ReadArrayEnd() 111160 return 111161 } 111162 r.ReadArrayElem() 111163 if r.TryDecodeAsNil() { 111164 x.Recoverable = false 111165 } else { 111166 x.Recoverable = (bool)(r.DecodeBool()) 111167 } 111168 for { 111169 yyj6++ 111170 if yyhl6 { 111171 yyb6 = yyj6 > l 111172 } else { 111173 yyb6 = r.CheckBreak() 111174 } 111175 if yyb6 { 111176 break 111177 } 111178 r.ReadArrayElem() 111179 z.DecStructFieldNotFound(yyj6-1, "") 111180 } 111181 r.ReadArrayEnd() 111182 } 111183 111184 func (x *WrappedServerError) CodecEncodeSelf(e *codec1978.Encoder) { 111185 var h codecSelfer100 111186 z, r := codec1978.GenHelperEncoder(e) 111187 _, _, _ = h, z, r 111188 if x == nil { 111189 r.EncodeNil() 111190 } else { 111191 if false { 111192 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111193 z.EncExtension(x, yyxt1) 111194 } else { 111195 yysep2 := !z.EncBinary() 111196 yy2arr2 := z.EncBasicHandle().StructToArray 111197 _, _ = yysep2, yy2arr2 111198 const yyr2 bool = false // struct tag has 'toArray' 111199 if yyr2 || yy2arr2 { 111200 r.WriteArrayStart(1) 111201 } else { 111202 r.WriteMapStart(1) 111203 } 111204 if yyr2 || yy2arr2 { 111205 r.WriteArrayElem() 111206 if x.Err == nil { 111207 r.EncodeNil() 111208 } else { 111209 if false { 111210 } else { 111211 z.EncFallback(x.Err) 111212 } 111213 } 111214 } else { 111215 r.WriteMapElemKey() 111216 if z.IsJSONHandle() { 111217 z.WriteStr("\"Err\"") 111218 } else { 111219 r.EncodeStringEnc(codecSelferCcUTF8100, `Err`) 111220 } 111221 r.WriteMapElemValue() 111222 if x.Err == nil { 111223 r.EncodeNil() 111224 } else { 111225 if false { 111226 } else { 111227 z.EncFallback(x.Err) 111228 } 111229 } 111230 } 111231 if yyr2 || yy2arr2 { 111232 r.WriteArrayEnd() 111233 } else { 111234 r.WriteMapEnd() 111235 } 111236 } 111237 } 111238 } 111239 111240 func (x *WrappedServerError) CodecDecodeSelf(d *codec1978.Decoder) { 111241 var h codecSelfer100 111242 z, r := codec1978.GenHelperDecoder(d) 111243 _, _, _ = h, z, r 111244 if false { 111245 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111246 z.DecExtension(x, yyxt1) 111247 } else { 111248 yyct2 := r.ContainerType() 111249 if yyct2 == codecSelferValueTypeMap100 { 111250 yyl2 := r.ReadMapStart() 111251 if yyl2 == 0 { 111252 r.ReadMapEnd() 111253 } else { 111254 x.codecDecodeSelfFromMap(yyl2, d) 111255 } 111256 } else if yyct2 == codecSelferValueTypeArray100 { 111257 yyl2 := r.ReadArrayStart() 111258 if yyl2 == 0 { 111259 r.ReadArrayEnd() 111260 } else { 111261 x.codecDecodeSelfFromArray(yyl2, d) 111262 } 111263 } else { 111264 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111265 } 111266 } 111267 } 111268 111269 func (x *WrappedServerError) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 111270 var h codecSelfer100 111271 z, r := codec1978.GenHelperDecoder(d) 111272 _, _, _ = h, z, r 111273 var yyhl3 bool = l >= 0 111274 for yyj3 := 0; ; yyj3++ { 111275 if yyhl3 { 111276 if yyj3 >= l { 111277 break 111278 } 111279 } else { 111280 if r.CheckBreak() { 111281 break 111282 } 111283 } 111284 r.ReadMapElemKey() 111285 yys3 := z.StringView(r.DecodeStringAsBytes()) 111286 r.ReadMapElemValue() 111287 switch yys3 { 111288 case "Err": 111289 if r.TryDecodeAsNil() { 111290 x.Err = nil 111291 } else { 111292 if false { 111293 } else { 111294 z.DecFallback(&x.Err, true) 111295 } 111296 } 111297 default: 111298 z.DecStructFieldNotFound(-1, yys3) 111299 } // end switch yys3 111300 } // end for yyj3 111301 r.ReadMapEnd() 111302 } 111303 111304 func (x *WrappedServerError) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 111305 var h codecSelfer100 111306 z, r := codec1978.GenHelperDecoder(d) 111307 _, _, _ = h, z, r 111308 var yyj6 int 111309 var yyb6 bool 111310 var yyhl6 bool = l >= 0 111311 yyj6++ 111312 if yyhl6 { 111313 yyb6 = yyj6 > l 111314 } else { 111315 yyb6 = r.CheckBreak() 111316 } 111317 if yyb6 { 111318 r.ReadArrayEnd() 111319 return 111320 } 111321 r.ReadArrayElem() 111322 if r.TryDecodeAsNil() { 111323 x.Err = nil 111324 } else { 111325 if false { 111326 } else { 111327 z.DecFallback(&x.Err, true) 111328 } 111329 } 111330 for { 111331 yyj6++ 111332 if yyhl6 { 111333 yyb6 = yyj6 > l 111334 } else { 111335 yyb6 = r.CheckBreak() 111336 } 111337 if yyb6 { 111338 break 111339 } 111340 r.ReadArrayElem() 111341 z.DecStructFieldNotFound(yyj6-1, "") 111342 } 111343 r.ReadArrayEnd() 111344 } 111345 111346 func (x *ACLPolicy) CodecEncodeSelf(e *codec1978.Encoder) { 111347 var h codecSelfer100 111348 z, r := codec1978.GenHelperEncoder(e) 111349 _, _, _ = h, z, r 111350 if x == nil { 111351 r.EncodeNil() 111352 } else { 111353 if false { 111354 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111355 z.EncExtension(x, yyxt1) 111356 } else { 111357 yysep2 := !z.EncBinary() 111358 yy2arr2 := z.EncBasicHandle().StructToArray 111359 _, _ = yysep2, yy2arr2 111360 const yyr2 bool = false // struct tag has 'toArray' 111361 if yyr2 || yy2arr2 { 111362 r.WriteArrayStart(7) 111363 } else { 111364 r.WriteMapStart(7) 111365 } 111366 if yyr2 || yy2arr2 { 111367 r.WriteArrayElem() 111368 if false { 111369 } else { 111370 if z.EncBasicHandle().StringToRaw { 111371 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 111372 } else { 111373 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 111374 } 111375 } 111376 } else { 111377 r.WriteMapElemKey() 111378 if z.IsJSONHandle() { 111379 z.WriteStr("\"Name\"") 111380 } else { 111381 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 111382 } 111383 r.WriteMapElemValue() 111384 if false { 111385 } else { 111386 if z.EncBasicHandle().StringToRaw { 111387 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 111388 } else { 111389 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 111390 } 111391 } 111392 } 111393 if yyr2 || yy2arr2 { 111394 r.WriteArrayElem() 111395 if false { 111396 } else { 111397 if z.EncBasicHandle().StringToRaw { 111398 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 111399 } else { 111400 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 111401 } 111402 } 111403 } else { 111404 r.WriteMapElemKey() 111405 if z.IsJSONHandle() { 111406 z.WriteStr("\"Description\"") 111407 } else { 111408 r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) 111409 } 111410 r.WriteMapElemValue() 111411 if false { 111412 } else { 111413 if z.EncBasicHandle().StringToRaw { 111414 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 111415 } else { 111416 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 111417 } 111418 } 111419 } 111420 if yyr2 || yy2arr2 { 111421 r.WriteArrayElem() 111422 if false { 111423 } else { 111424 if z.EncBasicHandle().StringToRaw { 111425 r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) 111426 } else { 111427 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) 111428 } 111429 } 111430 } else { 111431 r.WriteMapElemKey() 111432 if z.IsJSONHandle() { 111433 z.WriteStr("\"Rules\"") 111434 } else { 111435 r.EncodeStringEnc(codecSelferCcUTF8100, `Rules`) 111436 } 111437 r.WriteMapElemValue() 111438 if false { 111439 } else { 111440 if z.EncBasicHandle().StringToRaw { 111441 r.EncodeStringBytesRaw(z.BytesView(string(x.Rules))) 111442 } else { 111443 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Rules)) 111444 } 111445 } 111446 } 111447 var yyn12 bool 111448 if x.RulesJSON == nil { 111449 yyn12 = true 111450 goto LABEL12 111451 } 111452 LABEL12: 111453 if yyr2 || yy2arr2 { 111454 if yyn12 { 111455 r.WriteArrayElem() 111456 r.EncodeNil() 111457 } else { 111458 r.WriteArrayElem() 111459 if x.RulesJSON == nil { 111460 r.EncodeNil() 111461 } else { 111462 if false { 111463 } else if yyxt13 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt13 != nil { 111464 z.EncExtension(x.RulesJSON, yyxt13) 111465 } else { 111466 z.EncFallback(x.RulesJSON) 111467 } 111468 } 111469 } 111470 } else { 111471 r.WriteMapElemKey() 111472 if z.IsJSONHandle() { 111473 z.WriteStr("\"RulesJSON\"") 111474 } else { 111475 r.EncodeStringEnc(codecSelferCcUTF8100, `RulesJSON`) 111476 } 111477 r.WriteMapElemValue() 111478 if yyn12 { 111479 r.EncodeNil() 111480 } else { 111481 if x.RulesJSON == nil { 111482 r.EncodeNil() 111483 } else { 111484 if false { 111485 } else if yyxt14 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt14 != nil { 111486 z.EncExtension(x.RulesJSON, yyxt14) 111487 } else { 111488 z.EncFallback(x.RulesJSON) 111489 } 111490 } 111491 } 111492 } 111493 if yyr2 || yy2arr2 { 111494 r.WriteArrayElem() 111495 if x.Hash == nil { 111496 r.EncodeNil() 111497 } else { 111498 if false { 111499 } else { 111500 r.EncodeStringBytesRaw([]byte(x.Hash)) 111501 } 111502 } 111503 } else { 111504 r.WriteMapElemKey() 111505 if z.IsJSONHandle() { 111506 z.WriteStr("\"Hash\"") 111507 } else { 111508 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 111509 } 111510 r.WriteMapElemValue() 111511 if x.Hash == nil { 111512 r.EncodeNil() 111513 } else { 111514 if false { 111515 } else { 111516 r.EncodeStringBytesRaw([]byte(x.Hash)) 111517 } 111518 } 111519 } 111520 if yyr2 || yy2arr2 { 111521 r.WriteArrayElem() 111522 if false { 111523 } else { 111524 r.EncodeUint(uint64(x.CreateIndex)) 111525 } 111526 } else { 111527 r.WriteMapElemKey() 111528 if z.IsJSONHandle() { 111529 z.WriteStr("\"CreateIndex\"") 111530 } else { 111531 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 111532 } 111533 r.WriteMapElemValue() 111534 if false { 111535 } else { 111536 r.EncodeUint(uint64(x.CreateIndex)) 111537 } 111538 } 111539 if yyr2 || yy2arr2 { 111540 r.WriteArrayElem() 111541 if false { 111542 } else { 111543 r.EncodeUint(uint64(x.ModifyIndex)) 111544 } 111545 } else { 111546 r.WriteMapElemKey() 111547 if z.IsJSONHandle() { 111548 z.WriteStr("\"ModifyIndex\"") 111549 } else { 111550 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 111551 } 111552 r.WriteMapElemValue() 111553 if false { 111554 } else { 111555 r.EncodeUint(uint64(x.ModifyIndex)) 111556 } 111557 } 111558 if yyr2 || yy2arr2 { 111559 r.WriteArrayEnd() 111560 } else { 111561 r.WriteMapEnd() 111562 } 111563 } 111564 } 111565 } 111566 111567 func (x *ACLPolicy) CodecDecodeSelf(d *codec1978.Decoder) { 111568 var h codecSelfer100 111569 z, r := codec1978.GenHelperDecoder(d) 111570 _, _, _ = h, z, r 111571 if false { 111572 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111573 z.DecExtension(x, yyxt1) 111574 } else { 111575 yyct2 := r.ContainerType() 111576 if yyct2 == codecSelferValueTypeMap100 { 111577 yyl2 := r.ReadMapStart() 111578 if yyl2 == 0 { 111579 r.ReadMapEnd() 111580 } else { 111581 x.codecDecodeSelfFromMap(yyl2, d) 111582 } 111583 } else if yyct2 == codecSelferValueTypeArray100 { 111584 yyl2 := r.ReadArrayStart() 111585 if yyl2 == 0 { 111586 r.ReadArrayEnd() 111587 } else { 111588 x.codecDecodeSelfFromArray(yyl2, d) 111589 } 111590 } else { 111591 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 111592 } 111593 } 111594 } 111595 111596 func (x *ACLPolicy) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 111597 var h codecSelfer100 111598 z, r := codec1978.GenHelperDecoder(d) 111599 _, _, _ = h, z, r 111600 var yyhl3 bool = l >= 0 111601 for yyj3 := 0; ; yyj3++ { 111602 if yyhl3 { 111603 if yyj3 >= l { 111604 break 111605 } 111606 } else { 111607 if r.CheckBreak() { 111608 break 111609 } 111610 } 111611 r.ReadMapElemKey() 111612 yys3 := z.StringView(r.DecodeStringAsBytes()) 111613 r.ReadMapElemValue() 111614 switch yys3 { 111615 case "Name": 111616 if r.TryDecodeAsNil() { 111617 x.Name = "" 111618 } else { 111619 x.Name = (string)(r.DecodeString()) 111620 } 111621 case "Description": 111622 if r.TryDecodeAsNil() { 111623 x.Description = "" 111624 } else { 111625 x.Description = (string)(r.DecodeString()) 111626 } 111627 case "Rules": 111628 if r.TryDecodeAsNil() { 111629 x.Rules = "" 111630 } else { 111631 x.Rules = (string)(r.DecodeString()) 111632 } 111633 case "RulesJSON": 111634 if r.TryDecodeAsNil() { 111635 if true && x.RulesJSON != nil { 111636 x.RulesJSON = nil 111637 } 111638 } else { 111639 if x.RulesJSON == nil { 111640 x.RulesJSON = new(pkg4_acl.Policy) 111641 } 111642 111643 if false { 111644 } else if yyxt8 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt8 != nil { 111645 z.DecExtension(x.RulesJSON, yyxt8) 111646 } else { 111647 z.DecFallback(x.RulesJSON, false) 111648 } 111649 } 111650 case "Hash": 111651 if r.TryDecodeAsNil() { 111652 x.Hash = nil 111653 } else { 111654 if false { 111655 } else { 111656 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 111657 } 111658 } 111659 case "CreateIndex": 111660 if r.TryDecodeAsNil() { 111661 x.CreateIndex = 0 111662 } else { 111663 x.CreateIndex = (uint64)(r.DecodeUint64()) 111664 } 111665 case "ModifyIndex": 111666 if r.TryDecodeAsNil() { 111667 x.ModifyIndex = 0 111668 } else { 111669 x.ModifyIndex = (uint64)(r.DecodeUint64()) 111670 } 111671 default: 111672 z.DecStructFieldNotFound(-1, yys3) 111673 } // end switch yys3 111674 } // end for yyj3 111675 r.ReadMapEnd() 111676 } 111677 111678 func (x *ACLPolicy) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 111679 var h codecSelfer100 111680 z, r := codec1978.GenHelperDecoder(d) 111681 _, _, _ = h, z, r 111682 var yyj13 int 111683 var yyb13 bool 111684 var yyhl13 bool = l >= 0 111685 yyj13++ 111686 if yyhl13 { 111687 yyb13 = yyj13 > l 111688 } else { 111689 yyb13 = r.CheckBreak() 111690 } 111691 if yyb13 { 111692 r.ReadArrayEnd() 111693 return 111694 } 111695 r.ReadArrayElem() 111696 if r.TryDecodeAsNil() { 111697 x.Name = "" 111698 } else { 111699 x.Name = (string)(r.DecodeString()) 111700 } 111701 yyj13++ 111702 if yyhl13 { 111703 yyb13 = yyj13 > l 111704 } else { 111705 yyb13 = r.CheckBreak() 111706 } 111707 if yyb13 { 111708 r.ReadArrayEnd() 111709 return 111710 } 111711 r.ReadArrayElem() 111712 if r.TryDecodeAsNil() { 111713 x.Description = "" 111714 } else { 111715 x.Description = (string)(r.DecodeString()) 111716 } 111717 yyj13++ 111718 if yyhl13 { 111719 yyb13 = yyj13 > l 111720 } else { 111721 yyb13 = r.CheckBreak() 111722 } 111723 if yyb13 { 111724 r.ReadArrayEnd() 111725 return 111726 } 111727 r.ReadArrayElem() 111728 if r.TryDecodeAsNil() { 111729 x.Rules = "" 111730 } else { 111731 x.Rules = (string)(r.DecodeString()) 111732 } 111733 yyj13++ 111734 if yyhl13 { 111735 yyb13 = yyj13 > l 111736 } else { 111737 yyb13 = r.CheckBreak() 111738 } 111739 if yyb13 { 111740 r.ReadArrayEnd() 111741 return 111742 } 111743 r.ReadArrayElem() 111744 if r.TryDecodeAsNil() { 111745 if true && x.RulesJSON != nil { 111746 x.RulesJSON = nil 111747 } 111748 } else { 111749 if x.RulesJSON == nil { 111750 x.RulesJSON = new(pkg4_acl.Policy) 111751 } 111752 111753 if false { 111754 } else if yyxt18 := z.Extension(z.I2Rtid(x.RulesJSON)); yyxt18 != nil { 111755 z.DecExtension(x.RulesJSON, yyxt18) 111756 } else { 111757 z.DecFallback(x.RulesJSON, false) 111758 } 111759 } 111760 yyj13++ 111761 if yyhl13 { 111762 yyb13 = yyj13 > l 111763 } else { 111764 yyb13 = r.CheckBreak() 111765 } 111766 if yyb13 { 111767 r.ReadArrayEnd() 111768 return 111769 } 111770 r.ReadArrayElem() 111771 if r.TryDecodeAsNil() { 111772 x.Hash = nil 111773 } else { 111774 if false { 111775 } else { 111776 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 111777 } 111778 } 111779 yyj13++ 111780 if yyhl13 { 111781 yyb13 = yyj13 > l 111782 } else { 111783 yyb13 = r.CheckBreak() 111784 } 111785 if yyb13 { 111786 r.ReadArrayEnd() 111787 return 111788 } 111789 r.ReadArrayElem() 111790 if r.TryDecodeAsNil() { 111791 x.CreateIndex = 0 111792 } else { 111793 x.CreateIndex = (uint64)(r.DecodeUint64()) 111794 } 111795 yyj13++ 111796 if yyhl13 { 111797 yyb13 = yyj13 > l 111798 } else { 111799 yyb13 = r.CheckBreak() 111800 } 111801 if yyb13 { 111802 r.ReadArrayEnd() 111803 return 111804 } 111805 r.ReadArrayElem() 111806 if r.TryDecodeAsNil() { 111807 x.ModifyIndex = 0 111808 } else { 111809 x.ModifyIndex = (uint64)(r.DecodeUint64()) 111810 } 111811 for { 111812 yyj13++ 111813 if yyhl13 { 111814 yyb13 = yyj13 > l 111815 } else { 111816 yyb13 = r.CheckBreak() 111817 } 111818 if yyb13 { 111819 break 111820 } 111821 r.ReadArrayElem() 111822 z.DecStructFieldNotFound(yyj13-1, "") 111823 } 111824 r.ReadArrayEnd() 111825 } 111826 111827 func (x *ACLPolicyListStub) CodecEncodeSelf(e *codec1978.Encoder) { 111828 var h codecSelfer100 111829 z, r := codec1978.GenHelperEncoder(e) 111830 _, _, _ = h, z, r 111831 if x == nil { 111832 r.EncodeNil() 111833 } else { 111834 if false { 111835 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111836 z.EncExtension(x, yyxt1) 111837 } else { 111838 yysep2 := !z.EncBinary() 111839 yy2arr2 := z.EncBasicHandle().StructToArray 111840 _, _ = yysep2, yy2arr2 111841 const yyr2 bool = false // struct tag has 'toArray' 111842 if yyr2 || yy2arr2 { 111843 r.WriteArrayStart(5) 111844 } else { 111845 r.WriteMapStart(5) 111846 } 111847 if yyr2 || yy2arr2 { 111848 r.WriteArrayElem() 111849 if false { 111850 } else { 111851 if z.EncBasicHandle().StringToRaw { 111852 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 111853 } else { 111854 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 111855 } 111856 } 111857 } else { 111858 r.WriteMapElemKey() 111859 if z.IsJSONHandle() { 111860 z.WriteStr("\"Name\"") 111861 } else { 111862 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 111863 } 111864 r.WriteMapElemValue() 111865 if false { 111866 } else { 111867 if z.EncBasicHandle().StringToRaw { 111868 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 111869 } else { 111870 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 111871 } 111872 } 111873 } 111874 if yyr2 || yy2arr2 { 111875 r.WriteArrayElem() 111876 if false { 111877 } else { 111878 if z.EncBasicHandle().StringToRaw { 111879 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 111880 } else { 111881 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 111882 } 111883 } 111884 } else { 111885 r.WriteMapElemKey() 111886 if z.IsJSONHandle() { 111887 z.WriteStr("\"Description\"") 111888 } else { 111889 r.EncodeStringEnc(codecSelferCcUTF8100, `Description`) 111890 } 111891 r.WriteMapElemValue() 111892 if false { 111893 } else { 111894 if z.EncBasicHandle().StringToRaw { 111895 r.EncodeStringBytesRaw(z.BytesView(string(x.Description))) 111896 } else { 111897 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Description)) 111898 } 111899 } 111900 } 111901 if yyr2 || yy2arr2 { 111902 r.WriteArrayElem() 111903 if x.Hash == nil { 111904 r.EncodeNil() 111905 } else { 111906 if false { 111907 } else { 111908 r.EncodeStringBytesRaw([]byte(x.Hash)) 111909 } 111910 } 111911 } else { 111912 r.WriteMapElemKey() 111913 if z.IsJSONHandle() { 111914 z.WriteStr("\"Hash\"") 111915 } else { 111916 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 111917 } 111918 r.WriteMapElemValue() 111919 if x.Hash == nil { 111920 r.EncodeNil() 111921 } else { 111922 if false { 111923 } else { 111924 r.EncodeStringBytesRaw([]byte(x.Hash)) 111925 } 111926 } 111927 } 111928 if yyr2 || yy2arr2 { 111929 r.WriteArrayElem() 111930 if false { 111931 } else { 111932 r.EncodeUint(uint64(x.CreateIndex)) 111933 } 111934 } else { 111935 r.WriteMapElemKey() 111936 if z.IsJSONHandle() { 111937 z.WriteStr("\"CreateIndex\"") 111938 } else { 111939 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 111940 } 111941 r.WriteMapElemValue() 111942 if false { 111943 } else { 111944 r.EncodeUint(uint64(x.CreateIndex)) 111945 } 111946 } 111947 if yyr2 || yy2arr2 { 111948 r.WriteArrayElem() 111949 if false { 111950 } else { 111951 r.EncodeUint(uint64(x.ModifyIndex)) 111952 } 111953 } else { 111954 r.WriteMapElemKey() 111955 if z.IsJSONHandle() { 111956 z.WriteStr("\"ModifyIndex\"") 111957 } else { 111958 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 111959 } 111960 r.WriteMapElemValue() 111961 if false { 111962 } else { 111963 r.EncodeUint(uint64(x.ModifyIndex)) 111964 } 111965 } 111966 if yyr2 || yy2arr2 { 111967 r.WriteArrayEnd() 111968 } else { 111969 r.WriteMapEnd() 111970 } 111971 } 111972 } 111973 } 111974 111975 func (x *ACLPolicyListStub) CodecDecodeSelf(d *codec1978.Decoder) { 111976 var h codecSelfer100 111977 z, r := codec1978.GenHelperDecoder(d) 111978 _, _, _ = h, z, r 111979 if false { 111980 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 111981 z.DecExtension(x, yyxt1) 111982 } else { 111983 yyct2 := r.ContainerType() 111984 if yyct2 == codecSelferValueTypeMap100 { 111985 yyl2 := r.ReadMapStart() 111986 if yyl2 == 0 { 111987 r.ReadMapEnd() 111988 } else { 111989 x.codecDecodeSelfFromMap(yyl2, d) 111990 } 111991 } else if yyct2 == codecSelferValueTypeArray100 { 111992 yyl2 := r.ReadArrayStart() 111993 if yyl2 == 0 { 111994 r.ReadArrayEnd() 111995 } else { 111996 x.codecDecodeSelfFromArray(yyl2, d) 111997 } 111998 } else { 111999 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112000 } 112001 } 112002 } 112003 112004 func (x *ACLPolicyListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112005 var h codecSelfer100 112006 z, r := codec1978.GenHelperDecoder(d) 112007 _, _, _ = h, z, r 112008 var yyhl3 bool = l >= 0 112009 for yyj3 := 0; ; yyj3++ { 112010 if yyhl3 { 112011 if yyj3 >= l { 112012 break 112013 } 112014 } else { 112015 if r.CheckBreak() { 112016 break 112017 } 112018 } 112019 r.ReadMapElemKey() 112020 yys3 := z.StringView(r.DecodeStringAsBytes()) 112021 r.ReadMapElemValue() 112022 switch yys3 { 112023 case "Name": 112024 if r.TryDecodeAsNil() { 112025 x.Name = "" 112026 } else { 112027 x.Name = (string)(r.DecodeString()) 112028 } 112029 case "Description": 112030 if r.TryDecodeAsNil() { 112031 x.Description = "" 112032 } else { 112033 x.Description = (string)(r.DecodeString()) 112034 } 112035 case "Hash": 112036 if r.TryDecodeAsNil() { 112037 x.Hash = nil 112038 } else { 112039 if false { 112040 } else { 112041 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 112042 } 112043 } 112044 case "CreateIndex": 112045 if r.TryDecodeAsNil() { 112046 x.CreateIndex = 0 112047 } else { 112048 x.CreateIndex = (uint64)(r.DecodeUint64()) 112049 } 112050 case "ModifyIndex": 112051 if r.TryDecodeAsNil() { 112052 x.ModifyIndex = 0 112053 } else { 112054 x.ModifyIndex = (uint64)(r.DecodeUint64()) 112055 } 112056 default: 112057 z.DecStructFieldNotFound(-1, yys3) 112058 } // end switch yys3 112059 } // end for yyj3 112060 r.ReadMapEnd() 112061 } 112062 112063 func (x *ACLPolicyListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 112064 var h codecSelfer100 112065 z, r := codec1978.GenHelperDecoder(d) 112066 _, _, _ = h, z, r 112067 var yyj10 int 112068 var yyb10 bool 112069 var yyhl10 bool = l >= 0 112070 yyj10++ 112071 if yyhl10 { 112072 yyb10 = yyj10 > l 112073 } else { 112074 yyb10 = r.CheckBreak() 112075 } 112076 if yyb10 { 112077 r.ReadArrayEnd() 112078 return 112079 } 112080 r.ReadArrayElem() 112081 if r.TryDecodeAsNil() { 112082 x.Name = "" 112083 } else { 112084 x.Name = (string)(r.DecodeString()) 112085 } 112086 yyj10++ 112087 if yyhl10 { 112088 yyb10 = yyj10 > l 112089 } else { 112090 yyb10 = r.CheckBreak() 112091 } 112092 if yyb10 { 112093 r.ReadArrayEnd() 112094 return 112095 } 112096 r.ReadArrayElem() 112097 if r.TryDecodeAsNil() { 112098 x.Description = "" 112099 } else { 112100 x.Description = (string)(r.DecodeString()) 112101 } 112102 yyj10++ 112103 if yyhl10 { 112104 yyb10 = yyj10 > l 112105 } else { 112106 yyb10 = r.CheckBreak() 112107 } 112108 if yyb10 { 112109 r.ReadArrayEnd() 112110 return 112111 } 112112 r.ReadArrayElem() 112113 if r.TryDecodeAsNil() { 112114 x.Hash = nil 112115 } else { 112116 if false { 112117 } else { 112118 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 112119 } 112120 } 112121 yyj10++ 112122 if yyhl10 { 112123 yyb10 = yyj10 > l 112124 } else { 112125 yyb10 = r.CheckBreak() 112126 } 112127 if yyb10 { 112128 r.ReadArrayEnd() 112129 return 112130 } 112131 r.ReadArrayElem() 112132 if r.TryDecodeAsNil() { 112133 x.CreateIndex = 0 112134 } else { 112135 x.CreateIndex = (uint64)(r.DecodeUint64()) 112136 } 112137 yyj10++ 112138 if yyhl10 { 112139 yyb10 = yyj10 > l 112140 } else { 112141 yyb10 = r.CheckBreak() 112142 } 112143 if yyb10 { 112144 r.ReadArrayEnd() 112145 return 112146 } 112147 r.ReadArrayElem() 112148 if r.TryDecodeAsNil() { 112149 x.ModifyIndex = 0 112150 } else { 112151 x.ModifyIndex = (uint64)(r.DecodeUint64()) 112152 } 112153 for { 112154 yyj10++ 112155 if yyhl10 { 112156 yyb10 = yyj10 > l 112157 } else { 112158 yyb10 = r.CheckBreak() 112159 } 112160 if yyb10 { 112161 break 112162 } 112163 r.ReadArrayElem() 112164 z.DecStructFieldNotFound(yyj10-1, "") 112165 } 112166 r.ReadArrayEnd() 112167 } 112168 112169 func (x *ACLPolicyListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 112170 var h codecSelfer100 112171 z, r := codec1978.GenHelperEncoder(e) 112172 _, _, _ = h, z, r 112173 if x == nil { 112174 r.EncodeNil() 112175 } else { 112176 if false { 112177 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112178 z.EncExtension(x, yyxt1) 112179 } else { 112180 yysep2 := !z.EncBinary() 112181 yy2arr2 := z.EncBasicHandle().StructToArray 112182 _, _ = yysep2, yy2arr2 112183 const yyr2 bool = false // struct tag has 'toArray' 112184 if yyr2 || yy2arr2 { 112185 r.WriteArrayStart(8) 112186 } else { 112187 r.WriteMapStart(8) 112188 } 112189 if yyr2 || yy2arr2 { 112190 r.WriteArrayElem() 112191 if false { 112192 } else { 112193 if z.EncBasicHandle().StringToRaw { 112194 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112195 } else { 112196 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112197 } 112198 } 112199 } else { 112200 r.WriteMapElemKey() 112201 if z.IsJSONHandle() { 112202 z.WriteStr("\"Region\"") 112203 } else { 112204 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 112205 } 112206 r.WriteMapElemValue() 112207 if false { 112208 } else { 112209 if z.EncBasicHandle().StringToRaw { 112210 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112211 } else { 112212 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112213 } 112214 } 112215 } 112216 if yyr2 || yy2arr2 { 112217 r.WriteArrayElem() 112218 if false { 112219 } else { 112220 if z.EncBasicHandle().StringToRaw { 112221 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112222 } else { 112223 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112224 } 112225 } 112226 } else { 112227 r.WriteMapElemKey() 112228 if z.IsJSONHandle() { 112229 z.WriteStr("\"Namespace\"") 112230 } else { 112231 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 112232 } 112233 r.WriteMapElemValue() 112234 if false { 112235 } else { 112236 if z.EncBasicHandle().StringToRaw { 112237 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112238 } else { 112239 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112240 } 112241 } 112242 } 112243 if yyr2 || yy2arr2 { 112244 r.WriteArrayElem() 112245 if false { 112246 } else { 112247 r.EncodeUint(uint64(x.MinQueryIndex)) 112248 } 112249 } else { 112250 r.WriteMapElemKey() 112251 if z.IsJSONHandle() { 112252 z.WriteStr("\"MinQueryIndex\"") 112253 } else { 112254 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 112255 } 112256 r.WriteMapElemValue() 112257 if false { 112258 } else { 112259 r.EncodeUint(uint64(x.MinQueryIndex)) 112260 } 112261 } 112262 if yyr2 || yy2arr2 { 112263 r.WriteArrayElem() 112264 if false { 112265 } else if yyxt13 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt13 != nil { 112266 z.EncExtension(x.MaxQueryTime, yyxt13) 112267 } else { 112268 r.EncodeInt(int64(x.MaxQueryTime)) 112269 } 112270 } else { 112271 r.WriteMapElemKey() 112272 if z.IsJSONHandle() { 112273 z.WriteStr("\"MaxQueryTime\"") 112274 } else { 112275 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 112276 } 112277 r.WriteMapElemValue() 112278 if false { 112279 } else if yyxt14 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt14 != nil { 112280 z.EncExtension(x.MaxQueryTime, yyxt14) 112281 } else { 112282 r.EncodeInt(int64(x.MaxQueryTime)) 112283 } 112284 } 112285 if yyr2 || yy2arr2 { 112286 r.WriteArrayElem() 112287 if false { 112288 } else { 112289 r.EncodeBool(bool(x.AllowStale)) 112290 } 112291 } else { 112292 r.WriteMapElemKey() 112293 if z.IsJSONHandle() { 112294 z.WriteStr("\"AllowStale\"") 112295 } else { 112296 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 112297 } 112298 r.WriteMapElemValue() 112299 if false { 112300 } else { 112301 r.EncodeBool(bool(x.AllowStale)) 112302 } 112303 } 112304 if yyr2 || yy2arr2 { 112305 r.WriteArrayElem() 112306 if false { 112307 } else { 112308 if z.EncBasicHandle().StringToRaw { 112309 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 112310 } else { 112311 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 112312 } 112313 } 112314 } else { 112315 r.WriteMapElemKey() 112316 if z.IsJSONHandle() { 112317 z.WriteStr("\"Prefix\"") 112318 } else { 112319 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 112320 } 112321 r.WriteMapElemValue() 112322 if false { 112323 } else { 112324 if z.EncBasicHandle().StringToRaw { 112325 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 112326 } else { 112327 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 112328 } 112329 } 112330 } 112331 if yyr2 || yy2arr2 { 112332 r.WriteArrayElem() 112333 if false { 112334 } else { 112335 if z.EncBasicHandle().StringToRaw { 112336 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112337 } else { 112338 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112339 } 112340 } 112341 } else { 112342 r.WriteMapElemKey() 112343 if z.IsJSONHandle() { 112344 z.WriteStr("\"AuthToken\"") 112345 } else { 112346 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 112347 } 112348 r.WriteMapElemValue() 112349 if false { 112350 } else { 112351 if z.EncBasicHandle().StringToRaw { 112352 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112353 } else { 112354 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112355 } 112356 } 112357 } 112358 if yyr2 || yy2arr2 { 112359 r.WriteArrayElem() 112360 if false { 112361 } else { 112362 r.EncodeBool(bool(x.Forwarded)) 112363 } 112364 } else { 112365 r.WriteMapElemKey() 112366 if z.IsJSONHandle() { 112367 z.WriteStr("\"Forwarded\"") 112368 } else { 112369 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 112370 } 112371 r.WriteMapElemValue() 112372 if false { 112373 } else { 112374 r.EncodeBool(bool(x.Forwarded)) 112375 } 112376 } 112377 if yyr2 || yy2arr2 { 112378 r.WriteArrayEnd() 112379 } else { 112380 r.WriteMapEnd() 112381 } 112382 } 112383 } 112384 } 112385 112386 func (x *ACLPolicyListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 112387 var h codecSelfer100 112388 z, r := codec1978.GenHelperDecoder(d) 112389 _, _, _ = h, z, r 112390 if false { 112391 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112392 z.DecExtension(x, yyxt1) 112393 } else { 112394 yyct2 := r.ContainerType() 112395 if yyct2 == codecSelferValueTypeMap100 { 112396 yyl2 := r.ReadMapStart() 112397 if yyl2 == 0 { 112398 r.ReadMapEnd() 112399 } else { 112400 x.codecDecodeSelfFromMap(yyl2, d) 112401 } 112402 } else if yyct2 == codecSelferValueTypeArray100 { 112403 yyl2 := r.ReadArrayStart() 112404 if yyl2 == 0 { 112405 r.ReadArrayEnd() 112406 } else { 112407 x.codecDecodeSelfFromArray(yyl2, d) 112408 } 112409 } else { 112410 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112411 } 112412 } 112413 } 112414 112415 func (x *ACLPolicyListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112416 var h codecSelfer100 112417 z, r := codec1978.GenHelperDecoder(d) 112418 _, _, _ = h, z, r 112419 var yyhl3 bool = l >= 0 112420 for yyj3 := 0; ; yyj3++ { 112421 if yyhl3 { 112422 if yyj3 >= l { 112423 break 112424 } 112425 } else { 112426 if r.CheckBreak() { 112427 break 112428 } 112429 } 112430 r.ReadMapElemKey() 112431 yys3 := z.StringView(r.DecodeStringAsBytes()) 112432 r.ReadMapElemValue() 112433 switch yys3 { 112434 case "Region": 112435 if r.TryDecodeAsNil() { 112436 x.QueryOptions.Region = "" 112437 } else { 112438 x.Region = (string)(r.DecodeString()) 112439 } 112440 case "Namespace": 112441 if r.TryDecodeAsNil() { 112442 x.QueryOptions.Namespace = "" 112443 } else { 112444 x.Namespace = (string)(r.DecodeString()) 112445 } 112446 case "MinQueryIndex": 112447 if r.TryDecodeAsNil() { 112448 x.QueryOptions.MinQueryIndex = 0 112449 } else { 112450 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 112451 } 112452 case "MaxQueryTime": 112453 if r.TryDecodeAsNil() { 112454 x.QueryOptions.MaxQueryTime = 0 112455 } else { 112456 if false { 112457 } else if yyxt8 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt8 != nil { 112458 z.DecExtension(x.MaxQueryTime, yyxt8) 112459 } else { 112460 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 112461 } 112462 } 112463 case "AllowStale": 112464 if r.TryDecodeAsNil() { 112465 x.QueryOptions.AllowStale = false 112466 } else { 112467 x.AllowStale = (bool)(r.DecodeBool()) 112468 } 112469 case "Prefix": 112470 if r.TryDecodeAsNil() { 112471 x.QueryOptions.Prefix = "" 112472 } else { 112473 x.Prefix = (string)(r.DecodeString()) 112474 } 112475 case "AuthToken": 112476 if r.TryDecodeAsNil() { 112477 x.QueryOptions.AuthToken = "" 112478 } else { 112479 x.AuthToken = (string)(r.DecodeString()) 112480 } 112481 case "Forwarded": 112482 if r.TryDecodeAsNil() { 112483 x.QueryOptions.InternalRpcInfo.Forwarded = false 112484 } else { 112485 x.Forwarded = (bool)(r.DecodeBool()) 112486 } 112487 default: 112488 z.DecStructFieldNotFound(-1, yys3) 112489 } // end switch yys3 112490 } // end for yyj3 112491 r.ReadMapEnd() 112492 } 112493 112494 func (x *ACLPolicyListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 112495 var h codecSelfer100 112496 z, r := codec1978.GenHelperDecoder(d) 112497 _, _, _ = h, z, r 112498 var yyj13 int 112499 var yyb13 bool 112500 var yyhl13 bool = l >= 0 112501 yyj13++ 112502 if yyhl13 { 112503 yyb13 = yyj13 > l 112504 } else { 112505 yyb13 = r.CheckBreak() 112506 } 112507 if yyb13 { 112508 r.ReadArrayEnd() 112509 return 112510 } 112511 r.ReadArrayElem() 112512 if r.TryDecodeAsNil() { 112513 x.QueryOptions.Region = "" 112514 } else { 112515 x.Region = (string)(r.DecodeString()) 112516 } 112517 yyj13++ 112518 if yyhl13 { 112519 yyb13 = yyj13 > l 112520 } else { 112521 yyb13 = r.CheckBreak() 112522 } 112523 if yyb13 { 112524 r.ReadArrayEnd() 112525 return 112526 } 112527 r.ReadArrayElem() 112528 if r.TryDecodeAsNil() { 112529 x.QueryOptions.Namespace = "" 112530 } else { 112531 x.Namespace = (string)(r.DecodeString()) 112532 } 112533 yyj13++ 112534 if yyhl13 { 112535 yyb13 = yyj13 > l 112536 } else { 112537 yyb13 = r.CheckBreak() 112538 } 112539 if yyb13 { 112540 r.ReadArrayEnd() 112541 return 112542 } 112543 r.ReadArrayElem() 112544 if r.TryDecodeAsNil() { 112545 x.QueryOptions.MinQueryIndex = 0 112546 } else { 112547 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 112548 } 112549 yyj13++ 112550 if yyhl13 { 112551 yyb13 = yyj13 > l 112552 } else { 112553 yyb13 = r.CheckBreak() 112554 } 112555 if yyb13 { 112556 r.ReadArrayEnd() 112557 return 112558 } 112559 r.ReadArrayElem() 112560 if r.TryDecodeAsNil() { 112561 x.QueryOptions.MaxQueryTime = 0 112562 } else { 112563 if false { 112564 } else if yyxt18 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt18 != nil { 112565 z.DecExtension(x.MaxQueryTime, yyxt18) 112566 } else { 112567 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 112568 } 112569 } 112570 yyj13++ 112571 if yyhl13 { 112572 yyb13 = yyj13 > l 112573 } else { 112574 yyb13 = r.CheckBreak() 112575 } 112576 if yyb13 { 112577 r.ReadArrayEnd() 112578 return 112579 } 112580 r.ReadArrayElem() 112581 if r.TryDecodeAsNil() { 112582 x.QueryOptions.AllowStale = false 112583 } else { 112584 x.AllowStale = (bool)(r.DecodeBool()) 112585 } 112586 yyj13++ 112587 if yyhl13 { 112588 yyb13 = yyj13 > l 112589 } else { 112590 yyb13 = r.CheckBreak() 112591 } 112592 if yyb13 { 112593 r.ReadArrayEnd() 112594 return 112595 } 112596 r.ReadArrayElem() 112597 if r.TryDecodeAsNil() { 112598 x.QueryOptions.Prefix = "" 112599 } else { 112600 x.Prefix = (string)(r.DecodeString()) 112601 } 112602 yyj13++ 112603 if yyhl13 { 112604 yyb13 = yyj13 > l 112605 } else { 112606 yyb13 = r.CheckBreak() 112607 } 112608 if yyb13 { 112609 r.ReadArrayEnd() 112610 return 112611 } 112612 r.ReadArrayElem() 112613 if r.TryDecodeAsNil() { 112614 x.QueryOptions.AuthToken = "" 112615 } else { 112616 x.AuthToken = (string)(r.DecodeString()) 112617 } 112618 yyj13++ 112619 if yyhl13 { 112620 yyb13 = yyj13 > l 112621 } else { 112622 yyb13 = r.CheckBreak() 112623 } 112624 if yyb13 { 112625 r.ReadArrayEnd() 112626 return 112627 } 112628 r.ReadArrayElem() 112629 if r.TryDecodeAsNil() { 112630 x.QueryOptions.InternalRpcInfo.Forwarded = false 112631 } else { 112632 x.Forwarded = (bool)(r.DecodeBool()) 112633 } 112634 for { 112635 yyj13++ 112636 if yyhl13 { 112637 yyb13 = yyj13 > l 112638 } else { 112639 yyb13 = r.CheckBreak() 112640 } 112641 if yyb13 { 112642 break 112643 } 112644 r.ReadArrayElem() 112645 z.DecStructFieldNotFound(yyj13-1, "") 112646 } 112647 r.ReadArrayEnd() 112648 } 112649 112650 func (x *ACLPolicySpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 112651 var h codecSelfer100 112652 z, r := codec1978.GenHelperEncoder(e) 112653 _, _, _ = h, z, r 112654 if x == nil { 112655 r.EncodeNil() 112656 } else { 112657 if false { 112658 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112659 z.EncExtension(x, yyxt1) 112660 } else { 112661 yysep2 := !z.EncBinary() 112662 yy2arr2 := z.EncBasicHandle().StructToArray 112663 _, _ = yysep2, yy2arr2 112664 const yyr2 bool = false // struct tag has 'toArray' 112665 if yyr2 || yy2arr2 { 112666 r.WriteArrayStart(9) 112667 } else { 112668 r.WriteMapStart(9) 112669 } 112670 if yyr2 || yy2arr2 { 112671 r.WriteArrayElem() 112672 if false { 112673 } else { 112674 if z.EncBasicHandle().StringToRaw { 112675 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 112676 } else { 112677 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 112678 } 112679 } 112680 } else { 112681 r.WriteMapElemKey() 112682 if z.IsJSONHandle() { 112683 z.WriteStr("\"Name\"") 112684 } else { 112685 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 112686 } 112687 r.WriteMapElemValue() 112688 if false { 112689 } else { 112690 if z.EncBasicHandle().StringToRaw { 112691 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 112692 } else { 112693 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 112694 } 112695 } 112696 } 112697 if yyr2 || yy2arr2 { 112698 r.WriteArrayElem() 112699 if false { 112700 } else { 112701 if z.EncBasicHandle().StringToRaw { 112702 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112703 } else { 112704 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112705 } 112706 } 112707 } else { 112708 r.WriteMapElemKey() 112709 if z.IsJSONHandle() { 112710 z.WriteStr("\"Region\"") 112711 } else { 112712 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 112713 } 112714 r.WriteMapElemValue() 112715 if false { 112716 } else { 112717 if z.EncBasicHandle().StringToRaw { 112718 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 112719 } else { 112720 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 112721 } 112722 } 112723 } 112724 if yyr2 || yy2arr2 { 112725 r.WriteArrayElem() 112726 if false { 112727 } else { 112728 if z.EncBasicHandle().StringToRaw { 112729 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112730 } else { 112731 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112732 } 112733 } 112734 } else { 112735 r.WriteMapElemKey() 112736 if z.IsJSONHandle() { 112737 z.WriteStr("\"Namespace\"") 112738 } else { 112739 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 112740 } 112741 r.WriteMapElemValue() 112742 if false { 112743 } else { 112744 if z.EncBasicHandle().StringToRaw { 112745 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 112746 } else { 112747 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 112748 } 112749 } 112750 } 112751 if yyr2 || yy2arr2 { 112752 r.WriteArrayElem() 112753 if false { 112754 } else { 112755 r.EncodeUint(uint64(x.MinQueryIndex)) 112756 } 112757 } else { 112758 r.WriteMapElemKey() 112759 if z.IsJSONHandle() { 112760 z.WriteStr("\"MinQueryIndex\"") 112761 } else { 112762 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 112763 } 112764 r.WriteMapElemValue() 112765 if false { 112766 } else { 112767 r.EncodeUint(uint64(x.MinQueryIndex)) 112768 } 112769 } 112770 if yyr2 || yy2arr2 { 112771 r.WriteArrayElem() 112772 if false { 112773 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 112774 z.EncExtension(x.MaxQueryTime, yyxt16) 112775 } else { 112776 r.EncodeInt(int64(x.MaxQueryTime)) 112777 } 112778 } else { 112779 r.WriteMapElemKey() 112780 if z.IsJSONHandle() { 112781 z.WriteStr("\"MaxQueryTime\"") 112782 } else { 112783 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 112784 } 112785 r.WriteMapElemValue() 112786 if false { 112787 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 112788 z.EncExtension(x.MaxQueryTime, yyxt17) 112789 } else { 112790 r.EncodeInt(int64(x.MaxQueryTime)) 112791 } 112792 } 112793 if yyr2 || yy2arr2 { 112794 r.WriteArrayElem() 112795 if false { 112796 } else { 112797 r.EncodeBool(bool(x.AllowStale)) 112798 } 112799 } else { 112800 r.WriteMapElemKey() 112801 if z.IsJSONHandle() { 112802 z.WriteStr("\"AllowStale\"") 112803 } else { 112804 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 112805 } 112806 r.WriteMapElemValue() 112807 if false { 112808 } else { 112809 r.EncodeBool(bool(x.AllowStale)) 112810 } 112811 } 112812 if yyr2 || yy2arr2 { 112813 r.WriteArrayElem() 112814 if false { 112815 } else { 112816 if z.EncBasicHandle().StringToRaw { 112817 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 112818 } else { 112819 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 112820 } 112821 } 112822 } else { 112823 r.WriteMapElemKey() 112824 if z.IsJSONHandle() { 112825 z.WriteStr("\"Prefix\"") 112826 } else { 112827 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 112828 } 112829 r.WriteMapElemValue() 112830 if false { 112831 } else { 112832 if z.EncBasicHandle().StringToRaw { 112833 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 112834 } else { 112835 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 112836 } 112837 } 112838 } 112839 if yyr2 || yy2arr2 { 112840 r.WriteArrayElem() 112841 if false { 112842 } else { 112843 if z.EncBasicHandle().StringToRaw { 112844 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112845 } else { 112846 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112847 } 112848 } 112849 } else { 112850 r.WriteMapElemKey() 112851 if z.IsJSONHandle() { 112852 z.WriteStr("\"AuthToken\"") 112853 } else { 112854 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 112855 } 112856 r.WriteMapElemValue() 112857 if false { 112858 } else { 112859 if z.EncBasicHandle().StringToRaw { 112860 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 112861 } else { 112862 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 112863 } 112864 } 112865 } 112866 if yyr2 || yy2arr2 { 112867 r.WriteArrayElem() 112868 if false { 112869 } else { 112870 r.EncodeBool(bool(x.Forwarded)) 112871 } 112872 } else { 112873 r.WriteMapElemKey() 112874 if z.IsJSONHandle() { 112875 z.WriteStr("\"Forwarded\"") 112876 } else { 112877 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 112878 } 112879 r.WriteMapElemValue() 112880 if false { 112881 } else { 112882 r.EncodeBool(bool(x.Forwarded)) 112883 } 112884 } 112885 if yyr2 || yy2arr2 { 112886 r.WriteArrayEnd() 112887 } else { 112888 r.WriteMapEnd() 112889 } 112890 } 112891 } 112892 } 112893 112894 func (x *ACLPolicySpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 112895 var h codecSelfer100 112896 z, r := codec1978.GenHelperDecoder(d) 112897 _, _, _ = h, z, r 112898 if false { 112899 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 112900 z.DecExtension(x, yyxt1) 112901 } else { 112902 yyct2 := r.ContainerType() 112903 if yyct2 == codecSelferValueTypeMap100 { 112904 yyl2 := r.ReadMapStart() 112905 if yyl2 == 0 { 112906 r.ReadMapEnd() 112907 } else { 112908 x.codecDecodeSelfFromMap(yyl2, d) 112909 } 112910 } else if yyct2 == codecSelferValueTypeArray100 { 112911 yyl2 := r.ReadArrayStart() 112912 if yyl2 == 0 { 112913 r.ReadArrayEnd() 112914 } else { 112915 x.codecDecodeSelfFromArray(yyl2, d) 112916 } 112917 } else { 112918 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 112919 } 112920 } 112921 } 112922 112923 func (x *ACLPolicySpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 112924 var h codecSelfer100 112925 z, r := codec1978.GenHelperDecoder(d) 112926 _, _, _ = h, z, r 112927 var yyhl3 bool = l >= 0 112928 for yyj3 := 0; ; yyj3++ { 112929 if yyhl3 { 112930 if yyj3 >= l { 112931 break 112932 } 112933 } else { 112934 if r.CheckBreak() { 112935 break 112936 } 112937 } 112938 r.ReadMapElemKey() 112939 yys3 := z.StringView(r.DecodeStringAsBytes()) 112940 r.ReadMapElemValue() 112941 switch yys3 { 112942 case "Name": 112943 if r.TryDecodeAsNil() { 112944 x.Name = "" 112945 } else { 112946 x.Name = (string)(r.DecodeString()) 112947 } 112948 case "Region": 112949 if r.TryDecodeAsNil() { 112950 x.QueryOptions.Region = "" 112951 } else { 112952 x.Region = (string)(r.DecodeString()) 112953 } 112954 case "Namespace": 112955 if r.TryDecodeAsNil() { 112956 x.QueryOptions.Namespace = "" 112957 } else { 112958 x.Namespace = (string)(r.DecodeString()) 112959 } 112960 case "MinQueryIndex": 112961 if r.TryDecodeAsNil() { 112962 x.QueryOptions.MinQueryIndex = 0 112963 } else { 112964 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 112965 } 112966 case "MaxQueryTime": 112967 if r.TryDecodeAsNil() { 112968 x.QueryOptions.MaxQueryTime = 0 112969 } else { 112970 if false { 112971 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 112972 z.DecExtension(x.MaxQueryTime, yyxt9) 112973 } else { 112974 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 112975 } 112976 } 112977 case "AllowStale": 112978 if r.TryDecodeAsNil() { 112979 x.QueryOptions.AllowStale = false 112980 } else { 112981 x.AllowStale = (bool)(r.DecodeBool()) 112982 } 112983 case "Prefix": 112984 if r.TryDecodeAsNil() { 112985 x.QueryOptions.Prefix = "" 112986 } else { 112987 x.Prefix = (string)(r.DecodeString()) 112988 } 112989 case "AuthToken": 112990 if r.TryDecodeAsNil() { 112991 x.QueryOptions.AuthToken = "" 112992 } else { 112993 x.AuthToken = (string)(r.DecodeString()) 112994 } 112995 case "Forwarded": 112996 if r.TryDecodeAsNil() { 112997 x.QueryOptions.InternalRpcInfo.Forwarded = false 112998 } else { 112999 x.Forwarded = (bool)(r.DecodeBool()) 113000 } 113001 default: 113002 z.DecStructFieldNotFound(-1, yys3) 113003 } // end switch yys3 113004 } // end for yyj3 113005 r.ReadMapEnd() 113006 } 113007 113008 func (x *ACLPolicySpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 113009 var h codecSelfer100 113010 z, r := codec1978.GenHelperDecoder(d) 113011 _, _, _ = h, z, r 113012 var yyj14 int 113013 var yyb14 bool 113014 var yyhl14 bool = l >= 0 113015 yyj14++ 113016 if yyhl14 { 113017 yyb14 = yyj14 > l 113018 } else { 113019 yyb14 = r.CheckBreak() 113020 } 113021 if yyb14 { 113022 r.ReadArrayEnd() 113023 return 113024 } 113025 r.ReadArrayElem() 113026 if r.TryDecodeAsNil() { 113027 x.Name = "" 113028 } else { 113029 x.Name = (string)(r.DecodeString()) 113030 } 113031 yyj14++ 113032 if yyhl14 { 113033 yyb14 = yyj14 > l 113034 } else { 113035 yyb14 = r.CheckBreak() 113036 } 113037 if yyb14 { 113038 r.ReadArrayEnd() 113039 return 113040 } 113041 r.ReadArrayElem() 113042 if r.TryDecodeAsNil() { 113043 x.QueryOptions.Region = "" 113044 } else { 113045 x.Region = (string)(r.DecodeString()) 113046 } 113047 yyj14++ 113048 if yyhl14 { 113049 yyb14 = yyj14 > l 113050 } else { 113051 yyb14 = r.CheckBreak() 113052 } 113053 if yyb14 { 113054 r.ReadArrayEnd() 113055 return 113056 } 113057 r.ReadArrayElem() 113058 if r.TryDecodeAsNil() { 113059 x.QueryOptions.Namespace = "" 113060 } else { 113061 x.Namespace = (string)(r.DecodeString()) 113062 } 113063 yyj14++ 113064 if yyhl14 { 113065 yyb14 = yyj14 > l 113066 } else { 113067 yyb14 = r.CheckBreak() 113068 } 113069 if yyb14 { 113070 r.ReadArrayEnd() 113071 return 113072 } 113073 r.ReadArrayElem() 113074 if r.TryDecodeAsNil() { 113075 x.QueryOptions.MinQueryIndex = 0 113076 } else { 113077 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 113078 } 113079 yyj14++ 113080 if yyhl14 { 113081 yyb14 = yyj14 > l 113082 } else { 113083 yyb14 = r.CheckBreak() 113084 } 113085 if yyb14 { 113086 r.ReadArrayEnd() 113087 return 113088 } 113089 r.ReadArrayElem() 113090 if r.TryDecodeAsNil() { 113091 x.QueryOptions.MaxQueryTime = 0 113092 } else { 113093 if false { 113094 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 113095 z.DecExtension(x.MaxQueryTime, yyxt20) 113096 } else { 113097 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 113098 } 113099 } 113100 yyj14++ 113101 if yyhl14 { 113102 yyb14 = yyj14 > l 113103 } else { 113104 yyb14 = r.CheckBreak() 113105 } 113106 if yyb14 { 113107 r.ReadArrayEnd() 113108 return 113109 } 113110 r.ReadArrayElem() 113111 if r.TryDecodeAsNil() { 113112 x.QueryOptions.AllowStale = false 113113 } else { 113114 x.AllowStale = (bool)(r.DecodeBool()) 113115 } 113116 yyj14++ 113117 if yyhl14 { 113118 yyb14 = yyj14 > l 113119 } else { 113120 yyb14 = r.CheckBreak() 113121 } 113122 if yyb14 { 113123 r.ReadArrayEnd() 113124 return 113125 } 113126 r.ReadArrayElem() 113127 if r.TryDecodeAsNil() { 113128 x.QueryOptions.Prefix = "" 113129 } else { 113130 x.Prefix = (string)(r.DecodeString()) 113131 } 113132 yyj14++ 113133 if yyhl14 { 113134 yyb14 = yyj14 > l 113135 } else { 113136 yyb14 = r.CheckBreak() 113137 } 113138 if yyb14 { 113139 r.ReadArrayEnd() 113140 return 113141 } 113142 r.ReadArrayElem() 113143 if r.TryDecodeAsNil() { 113144 x.QueryOptions.AuthToken = "" 113145 } else { 113146 x.AuthToken = (string)(r.DecodeString()) 113147 } 113148 yyj14++ 113149 if yyhl14 { 113150 yyb14 = yyj14 > l 113151 } else { 113152 yyb14 = r.CheckBreak() 113153 } 113154 if yyb14 { 113155 r.ReadArrayEnd() 113156 return 113157 } 113158 r.ReadArrayElem() 113159 if r.TryDecodeAsNil() { 113160 x.QueryOptions.InternalRpcInfo.Forwarded = false 113161 } else { 113162 x.Forwarded = (bool)(r.DecodeBool()) 113163 } 113164 for { 113165 yyj14++ 113166 if yyhl14 { 113167 yyb14 = yyj14 > l 113168 } else { 113169 yyb14 = r.CheckBreak() 113170 } 113171 if yyb14 { 113172 break 113173 } 113174 r.ReadArrayElem() 113175 z.DecStructFieldNotFound(yyj14-1, "") 113176 } 113177 r.ReadArrayEnd() 113178 } 113179 113180 func (x *ACLPolicySetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 113181 var h codecSelfer100 113182 z, r := codec1978.GenHelperEncoder(e) 113183 _, _, _ = h, z, r 113184 if x == nil { 113185 r.EncodeNil() 113186 } else { 113187 if false { 113188 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113189 z.EncExtension(x, yyxt1) 113190 } else { 113191 yysep2 := !z.EncBinary() 113192 yy2arr2 := z.EncBasicHandle().StructToArray 113193 _, _ = yysep2, yy2arr2 113194 const yyr2 bool = false // struct tag has 'toArray' 113195 if yyr2 || yy2arr2 { 113196 r.WriteArrayStart(9) 113197 } else { 113198 r.WriteMapStart(9) 113199 } 113200 if yyr2 || yy2arr2 { 113201 r.WriteArrayElem() 113202 if x.Names == nil { 113203 r.EncodeNil() 113204 } else { 113205 if false { 113206 } else { 113207 z.F.EncSliceStringV(x.Names, e) 113208 } 113209 } 113210 } else { 113211 r.WriteMapElemKey() 113212 if z.IsJSONHandle() { 113213 z.WriteStr("\"Names\"") 113214 } else { 113215 r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) 113216 } 113217 r.WriteMapElemValue() 113218 if x.Names == nil { 113219 r.EncodeNil() 113220 } else { 113221 if false { 113222 } else { 113223 z.F.EncSliceStringV(x.Names, e) 113224 } 113225 } 113226 } 113227 if yyr2 || yy2arr2 { 113228 r.WriteArrayElem() 113229 if false { 113230 } else { 113231 if z.EncBasicHandle().StringToRaw { 113232 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 113233 } else { 113234 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 113235 } 113236 } 113237 } else { 113238 r.WriteMapElemKey() 113239 if z.IsJSONHandle() { 113240 z.WriteStr("\"Region\"") 113241 } else { 113242 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 113243 } 113244 r.WriteMapElemValue() 113245 if false { 113246 } else { 113247 if z.EncBasicHandle().StringToRaw { 113248 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 113249 } else { 113250 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 113251 } 113252 } 113253 } 113254 if yyr2 || yy2arr2 { 113255 r.WriteArrayElem() 113256 if false { 113257 } else { 113258 if z.EncBasicHandle().StringToRaw { 113259 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 113260 } else { 113261 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 113262 } 113263 } 113264 } else { 113265 r.WriteMapElemKey() 113266 if z.IsJSONHandle() { 113267 z.WriteStr("\"Namespace\"") 113268 } else { 113269 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 113270 } 113271 r.WriteMapElemValue() 113272 if false { 113273 } else { 113274 if z.EncBasicHandle().StringToRaw { 113275 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 113276 } else { 113277 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 113278 } 113279 } 113280 } 113281 if yyr2 || yy2arr2 { 113282 r.WriteArrayElem() 113283 if false { 113284 } else { 113285 r.EncodeUint(uint64(x.MinQueryIndex)) 113286 } 113287 } else { 113288 r.WriteMapElemKey() 113289 if z.IsJSONHandle() { 113290 z.WriteStr("\"MinQueryIndex\"") 113291 } else { 113292 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 113293 } 113294 r.WriteMapElemValue() 113295 if false { 113296 } else { 113297 r.EncodeUint(uint64(x.MinQueryIndex)) 113298 } 113299 } 113300 if yyr2 || yy2arr2 { 113301 r.WriteArrayElem() 113302 if false { 113303 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 113304 z.EncExtension(x.MaxQueryTime, yyxt16) 113305 } else { 113306 r.EncodeInt(int64(x.MaxQueryTime)) 113307 } 113308 } else { 113309 r.WriteMapElemKey() 113310 if z.IsJSONHandle() { 113311 z.WriteStr("\"MaxQueryTime\"") 113312 } else { 113313 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 113314 } 113315 r.WriteMapElemValue() 113316 if false { 113317 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 113318 z.EncExtension(x.MaxQueryTime, yyxt17) 113319 } else { 113320 r.EncodeInt(int64(x.MaxQueryTime)) 113321 } 113322 } 113323 if yyr2 || yy2arr2 { 113324 r.WriteArrayElem() 113325 if false { 113326 } else { 113327 r.EncodeBool(bool(x.AllowStale)) 113328 } 113329 } else { 113330 r.WriteMapElemKey() 113331 if z.IsJSONHandle() { 113332 z.WriteStr("\"AllowStale\"") 113333 } else { 113334 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 113335 } 113336 r.WriteMapElemValue() 113337 if false { 113338 } else { 113339 r.EncodeBool(bool(x.AllowStale)) 113340 } 113341 } 113342 if yyr2 || yy2arr2 { 113343 r.WriteArrayElem() 113344 if false { 113345 } else { 113346 if z.EncBasicHandle().StringToRaw { 113347 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 113348 } else { 113349 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 113350 } 113351 } 113352 } else { 113353 r.WriteMapElemKey() 113354 if z.IsJSONHandle() { 113355 z.WriteStr("\"Prefix\"") 113356 } else { 113357 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 113358 } 113359 r.WriteMapElemValue() 113360 if false { 113361 } else { 113362 if z.EncBasicHandle().StringToRaw { 113363 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 113364 } else { 113365 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 113366 } 113367 } 113368 } 113369 if yyr2 || yy2arr2 { 113370 r.WriteArrayElem() 113371 if false { 113372 } else { 113373 if z.EncBasicHandle().StringToRaw { 113374 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 113375 } else { 113376 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 113377 } 113378 } 113379 } else { 113380 r.WriteMapElemKey() 113381 if z.IsJSONHandle() { 113382 z.WriteStr("\"AuthToken\"") 113383 } else { 113384 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 113385 } 113386 r.WriteMapElemValue() 113387 if false { 113388 } else { 113389 if z.EncBasicHandle().StringToRaw { 113390 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 113391 } else { 113392 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 113393 } 113394 } 113395 } 113396 if yyr2 || yy2arr2 { 113397 r.WriteArrayElem() 113398 if false { 113399 } else { 113400 r.EncodeBool(bool(x.Forwarded)) 113401 } 113402 } else { 113403 r.WriteMapElemKey() 113404 if z.IsJSONHandle() { 113405 z.WriteStr("\"Forwarded\"") 113406 } else { 113407 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 113408 } 113409 r.WriteMapElemValue() 113410 if false { 113411 } else { 113412 r.EncodeBool(bool(x.Forwarded)) 113413 } 113414 } 113415 if yyr2 || yy2arr2 { 113416 r.WriteArrayEnd() 113417 } else { 113418 r.WriteMapEnd() 113419 } 113420 } 113421 } 113422 } 113423 113424 func (x *ACLPolicySetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 113425 var h codecSelfer100 113426 z, r := codec1978.GenHelperDecoder(d) 113427 _, _, _ = h, z, r 113428 if false { 113429 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113430 z.DecExtension(x, yyxt1) 113431 } else { 113432 yyct2 := r.ContainerType() 113433 if yyct2 == codecSelferValueTypeMap100 { 113434 yyl2 := r.ReadMapStart() 113435 if yyl2 == 0 { 113436 r.ReadMapEnd() 113437 } else { 113438 x.codecDecodeSelfFromMap(yyl2, d) 113439 } 113440 } else if yyct2 == codecSelferValueTypeArray100 { 113441 yyl2 := r.ReadArrayStart() 113442 if yyl2 == 0 { 113443 r.ReadArrayEnd() 113444 } else { 113445 x.codecDecodeSelfFromArray(yyl2, d) 113446 } 113447 } else { 113448 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 113449 } 113450 } 113451 } 113452 113453 func (x *ACLPolicySetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 113454 var h codecSelfer100 113455 z, r := codec1978.GenHelperDecoder(d) 113456 _, _, _ = h, z, r 113457 var yyhl3 bool = l >= 0 113458 for yyj3 := 0; ; yyj3++ { 113459 if yyhl3 { 113460 if yyj3 >= l { 113461 break 113462 } 113463 } else { 113464 if r.CheckBreak() { 113465 break 113466 } 113467 } 113468 r.ReadMapElemKey() 113469 yys3 := z.StringView(r.DecodeStringAsBytes()) 113470 r.ReadMapElemValue() 113471 switch yys3 { 113472 case "Names": 113473 if r.TryDecodeAsNil() { 113474 x.Names = nil 113475 } else { 113476 if false { 113477 } else { 113478 z.F.DecSliceStringX(&x.Names, d) 113479 } 113480 } 113481 case "Region": 113482 if r.TryDecodeAsNil() { 113483 x.QueryOptions.Region = "" 113484 } else { 113485 x.Region = (string)(r.DecodeString()) 113486 } 113487 case "Namespace": 113488 if r.TryDecodeAsNil() { 113489 x.QueryOptions.Namespace = "" 113490 } else { 113491 x.Namespace = (string)(r.DecodeString()) 113492 } 113493 case "MinQueryIndex": 113494 if r.TryDecodeAsNil() { 113495 x.QueryOptions.MinQueryIndex = 0 113496 } else { 113497 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 113498 } 113499 case "MaxQueryTime": 113500 if r.TryDecodeAsNil() { 113501 x.QueryOptions.MaxQueryTime = 0 113502 } else { 113503 if false { 113504 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 113505 z.DecExtension(x.MaxQueryTime, yyxt10) 113506 } else { 113507 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 113508 } 113509 } 113510 case "AllowStale": 113511 if r.TryDecodeAsNil() { 113512 x.QueryOptions.AllowStale = false 113513 } else { 113514 x.AllowStale = (bool)(r.DecodeBool()) 113515 } 113516 case "Prefix": 113517 if r.TryDecodeAsNil() { 113518 x.QueryOptions.Prefix = "" 113519 } else { 113520 x.Prefix = (string)(r.DecodeString()) 113521 } 113522 case "AuthToken": 113523 if r.TryDecodeAsNil() { 113524 x.QueryOptions.AuthToken = "" 113525 } else { 113526 x.AuthToken = (string)(r.DecodeString()) 113527 } 113528 case "Forwarded": 113529 if r.TryDecodeAsNil() { 113530 x.QueryOptions.InternalRpcInfo.Forwarded = false 113531 } else { 113532 x.Forwarded = (bool)(r.DecodeBool()) 113533 } 113534 default: 113535 z.DecStructFieldNotFound(-1, yys3) 113536 } // end switch yys3 113537 } // end for yyj3 113538 r.ReadMapEnd() 113539 } 113540 113541 func (x *ACLPolicySetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 113542 var h codecSelfer100 113543 z, r := codec1978.GenHelperDecoder(d) 113544 _, _, _ = h, z, r 113545 var yyj15 int 113546 var yyb15 bool 113547 var yyhl15 bool = l >= 0 113548 yyj15++ 113549 if yyhl15 { 113550 yyb15 = yyj15 > l 113551 } else { 113552 yyb15 = r.CheckBreak() 113553 } 113554 if yyb15 { 113555 r.ReadArrayEnd() 113556 return 113557 } 113558 r.ReadArrayElem() 113559 if r.TryDecodeAsNil() { 113560 x.Names = nil 113561 } else { 113562 if false { 113563 } else { 113564 z.F.DecSliceStringX(&x.Names, d) 113565 } 113566 } 113567 yyj15++ 113568 if yyhl15 { 113569 yyb15 = yyj15 > l 113570 } else { 113571 yyb15 = r.CheckBreak() 113572 } 113573 if yyb15 { 113574 r.ReadArrayEnd() 113575 return 113576 } 113577 r.ReadArrayElem() 113578 if r.TryDecodeAsNil() { 113579 x.QueryOptions.Region = "" 113580 } else { 113581 x.Region = (string)(r.DecodeString()) 113582 } 113583 yyj15++ 113584 if yyhl15 { 113585 yyb15 = yyj15 > l 113586 } else { 113587 yyb15 = r.CheckBreak() 113588 } 113589 if yyb15 { 113590 r.ReadArrayEnd() 113591 return 113592 } 113593 r.ReadArrayElem() 113594 if r.TryDecodeAsNil() { 113595 x.QueryOptions.Namespace = "" 113596 } else { 113597 x.Namespace = (string)(r.DecodeString()) 113598 } 113599 yyj15++ 113600 if yyhl15 { 113601 yyb15 = yyj15 > l 113602 } else { 113603 yyb15 = r.CheckBreak() 113604 } 113605 if yyb15 { 113606 r.ReadArrayEnd() 113607 return 113608 } 113609 r.ReadArrayElem() 113610 if r.TryDecodeAsNil() { 113611 x.QueryOptions.MinQueryIndex = 0 113612 } else { 113613 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 113614 } 113615 yyj15++ 113616 if yyhl15 { 113617 yyb15 = yyj15 > l 113618 } else { 113619 yyb15 = r.CheckBreak() 113620 } 113621 if yyb15 { 113622 r.ReadArrayEnd() 113623 return 113624 } 113625 r.ReadArrayElem() 113626 if r.TryDecodeAsNil() { 113627 x.QueryOptions.MaxQueryTime = 0 113628 } else { 113629 if false { 113630 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 113631 z.DecExtension(x.MaxQueryTime, yyxt22) 113632 } else { 113633 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 113634 } 113635 } 113636 yyj15++ 113637 if yyhl15 { 113638 yyb15 = yyj15 > l 113639 } else { 113640 yyb15 = r.CheckBreak() 113641 } 113642 if yyb15 { 113643 r.ReadArrayEnd() 113644 return 113645 } 113646 r.ReadArrayElem() 113647 if r.TryDecodeAsNil() { 113648 x.QueryOptions.AllowStale = false 113649 } else { 113650 x.AllowStale = (bool)(r.DecodeBool()) 113651 } 113652 yyj15++ 113653 if yyhl15 { 113654 yyb15 = yyj15 > l 113655 } else { 113656 yyb15 = r.CheckBreak() 113657 } 113658 if yyb15 { 113659 r.ReadArrayEnd() 113660 return 113661 } 113662 r.ReadArrayElem() 113663 if r.TryDecodeAsNil() { 113664 x.QueryOptions.Prefix = "" 113665 } else { 113666 x.Prefix = (string)(r.DecodeString()) 113667 } 113668 yyj15++ 113669 if yyhl15 { 113670 yyb15 = yyj15 > l 113671 } else { 113672 yyb15 = r.CheckBreak() 113673 } 113674 if yyb15 { 113675 r.ReadArrayEnd() 113676 return 113677 } 113678 r.ReadArrayElem() 113679 if r.TryDecodeAsNil() { 113680 x.QueryOptions.AuthToken = "" 113681 } else { 113682 x.AuthToken = (string)(r.DecodeString()) 113683 } 113684 yyj15++ 113685 if yyhl15 { 113686 yyb15 = yyj15 > l 113687 } else { 113688 yyb15 = r.CheckBreak() 113689 } 113690 if yyb15 { 113691 r.ReadArrayEnd() 113692 return 113693 } 113694 r.ReadArrayElem() 113695 if r.TryDecodeAsNil() { 113696 x.QueryOptions.InternalRpcInfo.Forwarded = false 113697 } else { 113698 x.Forwarded = (bool)(r.DecodeBool()) 113699 } 113700 for { 113701 yyj15++ 113702 if yyhl15 { 113703 yyb15 = yyj15 > l 113704 } else { 113705 yyb15 = r.CheckBreak() 113706 } 113707 if yyb15 { 113708 break 113709 } 113710 r.ReadArrayElem() 113711 z.DecStructFieldNotFound(yyj15-1, "") 113712 } 113713 r.ReadArrayEnd() 113714 } 113715 113716 func (x *ACLPolicyListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 113717 var h codecSelfer100 113718 z, r := codec1978.GenHelperEncoder(e) 113719 _, _, _ = h, z, r 113720 if x == nil { 113721 r.EncodeNil() 113722 } else { 113723 if false { 113724 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113725 z.EncExtension(x, yyxt1) 113726 } else { 113727 yysep2 := !z.EncBinary() 113728 yy2arr2 := z.EncBasicHandle().StructToArray 113729 _, _ = yysep2, yy2arr2 113730 const yyr2 bool = false // struct tag has 'toArray' 113731 if yyr2 || yy2arr2 { 113732 r.WriteArrayStart(4) 113733 } else { 113734 r.WriteMapStart(4) 113735 } 113736 if yyr2 || yy2arr2 { 113737 r.WriteArrayElem() 113738 if x.Policies == nil { 113739 r.EncodeNil() 113740 } else { 113741 if false { 113742 } else { 113743 h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) 113744 } 113745 } 113746 } else { 113747 r.WriteMapElemKey() 113748 if z.IsJSONHandle() { 113749 z.WriteStr("\"Policies\"") 113750 } else { 113751 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 113752 } 113753 r.WriteMapElemValue() 113754 if x.Policies == nil { 113755 r.EncodeNil() 113756 } else { 113757 if false { 113758 } else { 113759 h.encSlicePtrtoACLPolicyListStub(([]*ACLPolicyListStub)(x.Policies), e) 113760 } 113761 } 113762 } 113763 if yyr2 || yy2arr2 { 113764 r.WriteArrayElem() 113765 if false { 113766 } else { 113767 r.EncodeUint(uint64(x.Index)) 113768 } 113769 } else { 113770 r.WriteMapElemKey() 113771 if z.IsJSONHandle() { 113772 z.WriteStr("\"Index\"") 113773 } else { 113774 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 113775 } 113776 r.WriteMapElemValue() 113777 if false { 113778 } else { 113779 r.EncodeUint(uint64(x.Index)) 113780 } 113781 } 113782 if yyr2 || yy2arr2 { 113783 r.WriteArrayElem() 113784 if false { 113785 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 113786 z.EncExtension(x.LastContact, yyxt10) 113787 } else { 113788 r.EncodeInt(int64(x.LastContact)) 113789 } 113790 } else { 113791 r.WriteMapElemKey() 113792 if z.IsJSONHandle() { 113793 z.WriteStr("\"LastContact\"") 113794 } else { 113795 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 113796 } 113797 r.WriteMapElemValue() 113798 if false { 113799 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 113800 z.EncExtension(x.LastContact, yyxt11) 113801 } else { 113802 r.EncodeInt(int64(x.LastContact)) 113803 } 113804 } 113805 if yyr2 || yy2arr2 { 113806 r.WriteArrayElem() 113807 if false { 113808 } else { 113809 r.EncodeBool(bool(x.KnownLeader)) 113810 } 113811 } else { 113812 r.WriteMapElemKey() 113813 if z.IsJSONHandle() { 113814 z.WriteStr("\"KnownLeader\"") 113815 } else { 113816 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 113817 } 113818 r.WriteMapElemValue() 113819 if false { 113820 } else { 113821 r.EncodeBool(bool(x.KnownLeader)) 113822 } 113823 } 113824 if yyr2 || yy2arr2 { 113825 r.WriteArrayEnd() 113826 } else { 113827 r.WriteMapEnd() 113828 } 113829 } 113830 } 113831 } 113832 113833 func (x *ACLPolicyListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 113834 var h codecSelfer100 113835 z, r := codec1978.GenHelperDecoder(d) 113836 _, _, _ = h, z, r 113837 if false { 113838 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 113839 z.DecExtension(x, yyxt1) 113840 } else { 113841 yyct2 := r.ContainerType() 113842 if yyct2 == codecSelferValueTypeMap100 { 113843 yyl2 := r.ReadMapStart() 113844 if yyl2 == 0 { 113845 r.ReadMapEnd() 113846 } else { 113847 x.codecDecodeSelfFromMap(yyl2, d) 113848 } 113849 } else if yyct2 == codecSelferValueTypeArray100 { 113850 yyl2 := r.ReadArrayStart() 113851 if yyl2 == 0 { 113852 r.ReadArrayEnd() 113853 } else { 113854 x.codecDecodeSelfFromArray(yyl2, d) 113855 } 113856 } else { 113857 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 113858 } 113859 } 113860 } 113861 113862 func (x *ACLPolicyListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 113863 var h codecSelfer100 113864 z, r := codec1978.GenHelperDecoder(d) 113865 _, _, _ = h, z, r 113866 var yyhl3 bool = l >= 0 113867 for yyj3 := 0; ; yyj3++ { 113868 if yyhl3 { 113869 if yyj3 >= l { 113870 break 113871 } 113872 } else { 113873 if r.CheckBreak() { 113874 break 113875 } 113876 } 113877 r.ReadMapElemKey() 113878 yys3 := z.StringView(r.DecodeStringAsBytes()) 113879 r.ReadMapElemValue() 113880 switch yys3 { 113881 case "Policies": 113882 if r.TryDecodeAsNil() { 113883 x.Policies = nil 113884 } else { 113885 if false { 113886 } else { 113887 h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) 113888 } 113889 } 113890 case "Index": 113891 if r.TryDecodeAsNil() { 113892 x.QueryMeta.Index = 0 113893 } else { 113894 x.Index = (uint64)(r.DecodeUint64()) 113895 } 113896 case "LastContact": 113897 if r.TryDecodeAsNil() { 113898 x.QueryMeta.LastContact = 0 113899 } else { 113900 if false { 113901 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 113902 z.DecExtension(x.LastContact, yyxt8) 113903 } else { 113904 x.LastContact = (time.Duration)(r.DecodeInt64()) 113905 } 113906 } 113907 case "KnownLeader": 113908 if r.TryDecodeAsNil() { 113909 x.QueryMeta.KnownLeader = false 113910 } else { 113911 x.KnownLeader = (bool)(r.DecodeBool()) 113912 } 113913 default: 113914 z.DecStructFieldNotFound(-1, yys3) 113915 } // end switch yys3 113916 } // end for yyj3 113917 r.ReadMapEnd() 113918 } 113919 113920 func (x *ACLPolicyListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 113921 var h codecSelfer100 113922 z, r := codec1978.GenHelperDecoder(d) 113923 _, _, _ = h, z, r 113924 var yyj10 int 113925 var yyb10 bool 113926 var yyhl10 bool = l >= 0 113927 yyj10++ 113928 if yyhl10 { 113929 yyb10 = yyj10 > l 113930 } else { 113931 yyb10 = r.CheckBreak() 113932 } 113933 if yyb10 { 113934 r.ReadArrayEnd() 113935 return 113936 } 113937 r.ReadArrayElem() 113938 if r.TryDecodeAsNil() { 113939 x.Policies = nil 113940 } else { 113941 if false { 113942 } else { 113943 h.decSlicePtrtoACLPolicyListStub((*[]*ACLPolicyListStub)(&x.Policies), d) 113944 } 113945 } 113946 yyj10++ 113947 if yyhl10 { 113948 yyb10 = yyj10 > l 113949 } else { 113950 yyb10 = r.CheckBreak() 113951 } 113952 if yyb10 { 113953 r.ReadArrayEnd() 113954 return 113955 } 113956 r.ReadArrayElem() 113957 if r.TryDecodeAsNil() { 113958 x.QueryMeta.Index = 0 113959 } else { 113960 x.Index = (uint64)(r.DecodeUint64()) 113961 } 113962 yyj10++ 113963 if yyhl10 { 113964 yyb10 = yyj10 > l 113965 } else { 113966 yyb10 = r.CheckBreak() 113967 } 113968 if yyb10 { 113969 r.ReadArrayEnd() 113970 return 113971 } 113972 r.ReadArrayElem() 113973 if r.TryDecodeAsNil() { 113974 x.QueryMeta.LastContact = 0 113975 } else { 113976 if false { 113977 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 113978 z.DecExtension(x.LastContact, yyxt15) 113979 } else { 113980 x.LastContact = (time.Duration)(r.DecodeInt64()) 113981 } 113982 } 113983 yyj10++ 113984 if yyhl10 { 113985 yyb10 = yyj10 > l 113986 } else { 113987 yyb10 = r.CheckBreak() 113988 } 113989 if yyb10 { 113990 r.ReadArrayEnd() 113991 return 113992 } 113993 r.ReadArrayElem() 113994 if r.TryDecodeAsNil() { 113995 x.QueryMeta.KnownLeader = false 113996 } else { 113997 x.KnownLeader = (bool)(r.DecodeBool()) 113998 } 113999 for { 114000 yyj10++ 114001 if yyhl10 { 114002 yyb10 = yyj10 > l 114003 } else { 114004 yyb10 = r.CheckBreak() 114005 } 114006 if yyb10 { 114007 break 114008 } 114009 r.ReadArrayElem() 114010 z.DecStructFieldNotFound(yyj10-1, "") 114011 } 114012 r.ReadArrayEnd() 114013 } 114014 114015 func (x *SingleACLPolicyResponse) CodecEncodeSelf(e *codec1978.Encoder) { 114016 var h codecSelfer100 114017 z, r := codec1978.GenHelperEncoder(e) 114018 _, _, _ = h, z, r 114019 if x == nil { 114020 r.EncodeNil() 114021 } else { 114022 if false { 114023 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114024 z.EncExtension(x, yyxt1) 114025 } else { 114026 yysep2 := !z.EncBinary() 114027 yy2arr2 := z.EncBasicHandle().StructToArray 114028 _, _ = yysep2, yy2arr2 114029 const yyr2 bool = false // struct tag has 'toArray' 114030 if yyr2 || yy2arr2 { 114031 r.WriteArrayStart(4) 114032 } else { 114033 r.WriteMapStart(4) 114034 } 114035 var yyn3 bool 114036 if x.Policy == nil { 114037 yyn3 = true 114038 goto LABEL3 114039 } 114040 LABEL3: 114041 if yyr2 || yy2arr2 { 114042 if yyn3 { 114043 r.WriteArrayElem() 114044 r.EncodeNil() 114045 } else { 114046 r.WriteArrayElem() 114047 if x.Policy == nil { 114048 r.EncodeNil() 114049 } else { 114050 x.Policy.CodecEncodeSelf(e) 114051 } 114052 } 114053 } else { 114054 r.WriteMapElemKey() 114055 if z.IsJSONHandle() { 114056 z.WriteStr("\"Policy\"") 114057 } else { 114058 r.EncodeStringEnc(codecSelferCcUTF8100, `Policy`) 114059 } 114060 r.WriteMapElemValue() 114061 if yyn3 { 114062 r.EncodeNil() 114063 } else { 114064 if x.Policy == nil { 114065 r.EncodeNil() 114066 } else { 114067 x.Policy.CodecEncodeSelf(e) 114068 } 114069 } 114070 } 114071 if yyr2 || yy2arr2 { 114072 r.WriteArrayElem() 114073 if false { 114074 } else { 114075 r.EncodeUint(uint64(x.Index)) 114076 } 114077 } else { 114078 r.WriteMapElemKey() 114079 if z.IsJSONHandle() { 114080 z.WriteStr("\"Index\"") 114081 } else { 114082 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 114083 } 114084 r.WriteMapElemValue() 114085 if false { 114086 } else { 114087 r.EncodeUint(uint64(x.Index)) 114088 } 114089 } 114090 if yyr2 || yy2arr2 { 114091 r.WriteArrayElem() 114092 if false { 114093 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 114094 z.EncExtension(x.LastContact, yyxt10) 114095 } else { 114096 r.EncodeInt(int64(x.LastContact)) 114097 } 114098 } else { 114099 r.WriteMapElemKey() 114100 if z.IsJSONHandle() { 114101 z.WriteStr("\"LastContact\"") 114102 } else { 114103 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 114104 } 114105 r.WriteMapElemValue() 114106 if false { 114107 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 114108 z.EncExtension(x.LastContact, yyxt11) 114109 } else { 114110 r.EncodeInt(int64(x.LastContact)) 114111 } 114112 } 114113 if yyr2 || yy2arr2 { 114114 r.WriteArrayElem() 114115 if false { 114116 } else { 114117 r.EncodeBool(bool(x.KnownLeader)) 114118 } 114119 } else { 114120 r.WriteMapElemKey() 114121 if z.IsJSONHandle() { 114122 z.WriteStr("\"KnownLeader\"") 114123 } else { 114124 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 114125 } 114126 r.WriteMapElemValue() 114127 if false { 114128 } else { 114129 r.EncodeBool(bool(x.KnownLeader)) 114130 } 114131 } 114132 if yyr2 || yy2arr2 { 114133 r.WriteArrayEnd() 114134 } else { 114135 r.WriteMapEnd() 114136 } 114137 } 114138 } 114139 } 114140 114141 func (x *SingleACLPolicyResponse) CodecDecodeSelf(d *codec1978.Decoder) { 114142 var h codecSelfer100 114143 z, r := codec1978.GenHelperDecoder(d) 114144 _, _, _ = h, z, r 114145 if false { 114146 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114147 z.DecExtension(x, yyxt1) 114148 } else { 114149 yyct2 := r.ContainerType() 114150 if yyct2 == codecSelferValueTypeMap100 { 114151 yyl2 := r.ReadMapStart() 114152 if yyl2 == 0 { 114153 r.ReadMapEnd() 114154 } else { 114155 x.codecDecodeSelfFromMap(yyl2, d) 114156 } 114157 } else if yyct2 == codecSelferValueTypeArray100 { 114158 yyl2 := r.ReadArrayStart() 114159 if yyl2 == 0 { 114160 r.ReadArrayEnd() 114161 } else { 114162 x.codecDecodeSelfFromArray(yyl2, d) 114163 } 114164 } else { 114165 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 114166 } 114167 } 114168 } 114169 114170 func (x *SingleACLPolicyResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 114171 var h codecSelfer100 114172 z, r := codec1978.GenHelperDecoder(d) 114173 _, _, _ = h, z, r 114174 var yyhl3 bool = l >= 0 114175 for yyj3 := 0; ; yyj3++ { 114176 if yyhl3 { 114177 if yyj3 >= l { 114178 break 114179 } 114180 } else { 114181 if r.CheckBreak() { 114182 break 114183 } 114184 } 114185 r.ReadMapElemKey() 114186 yys3 := z.StringView(r.DecodeStringAsBytes()) 114187 r.ReadMapElemValue() 114188 switch yys3 { 114189 case "Policy": 114190 if r.TryDecodeAsNil() { 114191 if true && x.Policy != nil { 114192 x.Policy = nil 114193 } 114194 } else { 114195 if x.Policy == nil { 114196 x.Policy = new(ACLPolicy) 114197 } 114198 114199 x.Policy.CodecDecodeSelf(d) 114200 } 114201 case "Index": 114202 if r.TryDecodeAsNil() { 114203 x.QueryMeta.Index = 0 114204 } else { 114205 x.Index = (uint64)(r.DecodeUint64()) 114206 } 114207 case "LastContact": 114208 if r.TryDecodeAsNil() { 114209 x.QueryMeta.LastContact = 0 114210 } else { 114211 if false { 114212 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 114213 z.DecExtension(x.LastContact, yyxt7) 114214 } else { 114215 x.LastContact = (time.Duration)(r.DecodeInt64()) 114216 } 114217 } 114218 case "KnownLeader": 114219 if r.TryDecodeAsNil() { 114220 x.QueryMeta.KnownLeader = false 114221 } else { 114222 x.KnownLeader = (bool)(r.DecodeBool()) 114223 } 114224 default: 114225 z.DecStructFieldNotFound(-1, yys3) 114226 } // end switch yys3 114227 } // end for yyj3 114228 r.ReadMapEnd() 114229 } 114230 114231 func (x *SingleACLPolicyResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 114232 var h codecSelfer100 114233 z, r := codec1978.GenHelperDecoder(d) 114234 _, _, _ = h, z, r 114235 var yyj9 int 114236 var yyb9 bool 114237 var yyhl9 bool = l >= 0 114238 yyj9++ 114239 if yyhl9 { 114240 yyb9 = yyj9 > l 114241 } else { 114242 yyb9 = r.CheckBreak() 114243 } 114244 if yyb9 { 114245 r.ReadArrayEnd() 114246 return 114247 } 114248 r.ReadArrayElem() 114249 if r.TryDecodeAsNil() { 114250 if true && x.Policy != nil { 114251 x.Policy = nil 114252 } 114253 } else { 114254 if x.Policy == nil { 114255 x.Policy = new(ACLPolicy) 114256 } 114257 114258 x.Policy.CodecDecodeSelf(d) 114259 } 114260 yyj9++ 114261 if yyhl9 { 114262 yyb9 = yyj9 > l 114263 } else { 114264 yyb9 = r.CheckBreak() 114265 } 114266 if yyb9 { 114267 r.ReadArrayEnd() 114268 return 114269 } 114270 r.ReadArrayElem() 114271 if r.TryDecodeAsNil() { 114272 x.QueryMeta.Index = 0 114273 } else { 114274 x.Index = (uint64)(r.DecodeUint64()) 114275 } 114276 yyj9++ 114277 if yyhl9 { 114278 yyb9 = yyj9 > l 114279 } else { 114280 yyb9 = r.CheckBreak() 114281 } 114282 if yyb9 { 114283 r.ReadArrayEnd() 114284 return 114285 } 114286 r.ReadArrayElem() 114287 if r.TryDecodeAsNil() { 114288 x.QueryMeta.LastContact = 0 114289 } else { 114290 if false { 114291 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 114292 z.DecExtension(x.LastContact, yyxt13) 114293 } else { 114294 x.LastContact = (time.Duration)(r.DecodeInt64()) 114295 } 114296 } 114297 yyj9++ 114298 if yyhl9 { 114299 yyb9 = yyj9 > l 114300 } else { 114301 yyb9 = r.CheckBreak() 114302 } 114303 if yyb9 { 114304 r.ReadArrayEnd() 114305 return 114306 } 114307 r.ReadArrayElem() 114308 if r.TryDecodeAsNil() { 114309 x.QueryMeta.KnownLeader = false 114310 } else { 114311 x.KnownLeader = (bool)(r.DecodeBool()) 114312 } 114313 for { 114314 yyj9++ 114315 if yyhl9 { 114316 yyb9 = yyj9 > l 114317 } else { 114318 yyb9 = r.CheckBreak() 114319 } 114320 if yyb9 { 114321 break 114322 } 114323 r.ReadArrayElem() 114324 z.DecStructFieldNotFound(yyj9-1, "") 114325 } 114326 r.ReadArrayEnd() 114327 } 114328 114329 func (x *ACLPolicySetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 114330 var h codecSelfer100 114331 z, r := codec1978.GenHelperEncoder(e) 114332 _, _, _ = h, z, r 114333 if x == nil { 114334 r.EncodeNil() 114335 } else { 114336 if false { 114337 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114338 z.EncExtension(x, yyxt1) 114339 } else { 114340 yysep2 := !z.EncBinary() 114341 yy2arr2 := z.EncBasicHandle().StructToArray 114342 _, _ = yysep2, yy2arr2 114343 const yyr2 bool = false // struct tag has 'toArray' 114344 if yyr2 || yy2arr2 { 114345 r.WriteArrayStart(4) 114346 } else { 114347 r.WriteMapStart(4) 114348 } 114349 if yyr2 || yy2arr2 { 114350 r.WriteArrayElem() 114351 if x.Policies == nil { 114352 r.EncodeNil() 114353 } else { 114354 if false { 114355 } else { 114356 h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) 114357 } 114358 } 114359 } else { 114360 r.WriteMapElemKey() 114361 if z.IsJSONHandle() { 114362 z.WriteStr("\"Policies\"") 114363 } else { 114364 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 114365 } 114366 r.WriteMapElemValue() 114367 if x.Policies == nil { 114368 r.EncodeNil() 114369 } else { 114370 if false { 114371 } else { 114372 h.encMapstringPtrtoACLPolicy((map[string]*ACLPolicy)(x.Policies), e) 114373 } 114374 } 114375 } 114376 if yyr2 || yy2arr2 { 114377 r.WriteArrayElem() 114378 if false { 114379 } else { 114380 r.EncodeUint(uint64(x.Index)) 114381 } 114382 } else { 114383 r.WriteMapElemKey() 114384 if z.IsJSONHandle() { 114385 z.WriteStr("\"Index\"") 114386 } else { 114387 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 114388 } 114389 r.WriteMapElemValue() 114390 if false { 114391 } else { 114392 r.EncodeUint(uint64(x.Index)) 114393 } 114394 } 114395 if yyr2 || yy2arr2 { 114396 r.WriteArrayElem() 114397 if false { 114398 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 114399 z.EncExtension(x.LastContact, yyxt10) 114400 } else { 114401 r.EncodeInt(int64(x.LastContact)) 114402 } 114403 } else { 114404 r.WriteMapElemKey() 114405 if z.IsJSONHandle() { 114406 z.WriteStr("\"LastContact\"") 114407 } else { 114408 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 114409 } 114410 r.WriteMapElemValue() 114411 if false { 114412 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 114413 z.EncExtension(x.LastContact, yyxt11) 114414 } else { 114415 r.EncodeInt(int64(x.LastContact)) 114416 } 114417 } 114418 if yyr2 || yy2arr2 { 114419 r.WriteArrayElem() 114420 if false { 114421 } else { 114422 r.EncodeBool(bool(x.KnownLeader)) 114423 } 114424 } else { 114425 r.WriteMapElemKey() 114426 if z.IsJSONHandle() { 114427 z.WriteStr("\"KnownLeader\"") 114428 } else { 114429 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 114430 } 114431 r.WriteMapElemValue() 114432 if false { 114433 } else { 114434 r.EncodeBool(bool(x.KnownLeader)) 114435 } 114436 } 114437 if yyr2 || yy2arr2 { 114438 r.WriteArrayEnd() 114439 } else { 114440 r.WriteMapEnd() 114441 } 114442 } 114443 } 114444 } 114445 114446 func (x *ACLPolicySetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 114447 var h codecSelfer100 114448 z, r := codec1978.GenHelperDecoder(d) 114449 _, _, _ = h, z, r 114450 if false { 114451 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114452 z.DecExtension(x, yyxt1) 114453 } else { 114454 yyct2 := r.ContainerType() 114455 if yyct2 == codecSelferValueTypeMap100 { 114456 yyl2 := r.ReadMapStart() 114457 if yyl2 == 0 { 114458 r.ReadMapEnd() 114459 } else { 114460 x.codecDecodeSelfFromMap(yyl2, d) 114461 } 114462 } else if yyct2 == codecSelferValueTypeArray100 { 114463 yyl2 := r.ReadArrayStart() 114464 if yyl2 == 0 { 114465 r.ReadArrayEnd() 114466 } else { 114467 x.codecDecodeSelfFromArray(yyl2, d) 114468 } 114469 } else { 114470 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 114471 } 114472 } 114473 } 114474 114475 func (x *ACLPolicySetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 114476 var h codecSelfer100 114477 z, r := codec1978.GenHelperDecoder(d) 114478 _, _, _ = h, z, r 114479 var yyhl3 bool = l >= 0 114480 for yyj3 := 0; ; yyj3++ { 114481 if yyhl3 { 114482 if yyj3 >= l { 114483 break 114484 } 114485 } else { 114486 if r.CheckBreak() { 114487 break 114488 } 114489 } 114490 r.ReadMapElemKey() 114491 yys3 := z.StringView(r.DecodeStringAsBytes()) 114492 r.ReadMapElemValue() 114493 switch yys3 { 114494 case "Policies": 114495 if r.TryDecodeAsNil() { 114496 x.Policies = nil 114497 } else { 114498 if false { 114499 } else { 114500 h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) 114501 } 114502 } 114503 case "Index": 114504 if r.TryDecodeAsNil() { 114505 x.QueryMeta.Index = 0 114506 } else { 114507 x.Index = (uint64)(r.DecodeUint64()) 114508 } 114509 case "LastContact": 114510 if r.TryDecodeAsNil() { 114511 x.QueryMeta.LastContact = 0 114512 } else { 114513 if false { 114514 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 114515 z.DecExtension(x.LastContact, yyxt8) 114516 } else { 114517 x.LastContact = (time.Duration)(r.DecodeInt64()) 114518 } 114519 } 114520 case "KnownLeader": 114521 if r.TryDecodeAsNil() { 114522 x.QueryMeta.KnownLeader = false 114523 } else { 114524 x.KnownLeader = (bool)(r.DecodeBool()) 114525 } 114526 default: 114527 z.DecStructFieldNotFound(-1, yys3) 114528 } // end switch yys3 114529 } // end for yyj3 114530 r.ReadMapEnd() 114531 } 114532 114533 func (x *ACLPolicySetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 114534 var h codecSelfer100 114535 z, r := codec1978.GenHelperDecoder(d) 114536 _, _, _ = h, z, r 114537 var yyj10 int 114538 var yyb10 bool 114539 var yyhl10 bool = l >= 0 114540 yyj10++ 114541 if yyhl10 { 114542 yyb10 = yyj10 > l 114543 } else { 114544 yyb10 = r.CheckBreak() 114545 } 114546 if yyb10 { 114547 r.ReadArrayEnd() 114548 return 114549 } 114550 r.ReadArrayElem() 114551 if r.TryDecodeAsNil() { 114552 x.Policies = nil 114553 } else { 114554 if false { 114555 } else { 114556 h.decMapstringPtrtoACLPolicy((*map[string]*ACLPolicy)(&x.Policies), d) 114557 } 114558 } 114559 yyj10++ 114560 if yyhl10 { 114561 yyb10 = yyj10 > l 114562 } else { 114563 yyb10 = r.CheckBreak() 114564 } 114565 if yyb10 { 114566 r.ReadArrayEnd() 114567 return 114568 } 114569 r.ReadArrayElem() 114570 if r.TryDecodeAsNil() { 114571 x.QueryMeta.Index = 0 114572 } else { 114573 x.Index = (uint64)(r.DecodeUint64()) 114574 } 114575 yyj10++ 114576 if yyhl10 { 114577 yyb10 = yyj10 > l 114578 } else { 114579 yyb10 = r.CheckBreak() 114580 } 114581 if yyb10 { 114582 r.ReadArrayEnd() 114583 return 114584 } 114585 r.ReadArrayElem() 114586 if r.TryDecodeAsNil() { 114587 x.QueryMeta.LastContact = 0 114588 } else { 114589 if false { 114590 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 114591 z.DecExtension(x.LastContact, yyxt15) 114592 } else { 114593 x.LastContact = (time.Duration)(r.DecodeInt64()) 114594 } 114595 } 114596 yyj10++ 114597 if yyhl10 { 114598 yyb10 = yyj10 > l 114599 } else { 114600 yyb10 = r.CheckBreak() 114601 } 114602 if yyb10 { 114603 r.ReadArrayEnd() 114604 return 114605 } 114606 r.ReadArrayElem() 114607 if r.TryDecodeAsNil() { 114608 x.QueryMeta.KnownLeader = false 114609 } else { 114610 x.KnownLeader = (bool)(r.DecodeBool()) 114611 } 114612 for { 114613 yyj10++ 114614 if yyhl10 { 114615 yyb10 = yyj10 > l 114616 } else { 114617 yyb10 = r.CheckBreak() 114618 } 114619 if yyb10 { 114620 break 114621 } 114622 r.ReadArrayElem() 114623 z.DecStructFieldNotFound(yyj10-1, "") 114624 } 114625 r.ReadArrayEnd() 114626 } 114627 114628 func (x *ACLPolicyDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 114629 var h codecSelfer100 114630 z, r := codec1978.GenHelperEncoder(e) 114631 _, _, _ = h, z, r 114632 if x == nil { 114633 r.EncodeNil() 114634 } else { 114635 if false { 114636 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114637 z.EncExtension(x, yyxt1) 114638 } else { 114639 yysep2 := !z.EncBinary() 114640 yy2arr2 := z.EncBasicHandle().StructToArray 114641 _, _ = yysep2, yy2arr2 114642 const yyr2 bool = false // struct tag has 'toArray' 114643 if yyr2 || yy2arr2 { 114644 r.WriteArrayStart(5) 114645 } else { 114646 r.WriteMapStart(5) 114647 } 114648 if yyr2 || yy2arr2 { 114649 r.WriteArrayElem() 114650 if x.Names == nil { 114651 r.EncodeNil() 114652 } else { 114653 if false { 114654 } else { 114655 z.F.EncSliceStringV(x.Names, e) 114656 } 114657 } 114658 } else { 114659 r.WriteMapElemKey() 114660 if z.IsJSONHandle() { 114661 z.WriteStr("\"Names\"") 114662 } else { 114663 r.EncodeStringEnc(codecSelferCcUTF8100, `Names`) 114664 } 114665 r.WriteMapElemValue() 114666 if x.Names == nil { 114667 r.EncodeNil() 114668 } else { 114669 if false { 114670 } else { 114671 z.F.EncSliceStringV(x.Names, e) 114672 } 114673 } 114674 } 114675 if yyr2 || yy2arr2 { 114676 r.WriteArrayElem() 114677 if false { 114678 } else { 114679 if z.EncBasicHandle().StringToRaw { 114680 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114681 } else { 114682 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114683 } 114684 } 114685 } else { 114686 r.WriteMapElemKey() 114687 if z.IsJSONHandle() { 114688 z.WriteStr("\"Region\"") 114689 } else { 114690 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 114691 } 114692 r.WriteMapElemValue() 114693 if false { 114694 } else { 114695 if z.EncBasicHandle().StringToRaw { 114696 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 114697 } else { 114698 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 114699 } 114700 } 114701 } 114702 if yyr2 || yy2arr2 { 114703 r.WriteArrayElem() 114704 if false { 114705 } else { 114706 if z.EncBasicHandle().StringToRaw { 114707 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114708 } else { 114709 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114710 } 114711 } 114712 } else { 114713 r.WriteMapElemKey() 114714 if z.IsJSONHandle() { 114715 z.WriteStr("\"Namespace\"") 114716 } else { 114717 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 114718 } 114719 r.WriteMapElemValue() 114720 if false { 114721 } else { 114722 if z.EncBasicHandle().StringToRaw { 114723 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 114724 } else { 114725 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 114726 } 114727 } 114728 } 114729 if yyr2 || yy2arr2 { 114730 r.WriteArrayElem() 114731 if false { 114732 } else { 114733 if z.EncBasicHandle().StringToRaw { 114734 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 114735 } else { 114736 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 114737 } 114738 } 114739 } else { 114740 r.WriteMapElemKey() 114741 if z.IsJSONHandle() { 114742 z.WriteStr("\"AuthToken\"") 114743 } else { 114744 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 114745 } 114746 r.WriteMapElemValue() 114747 if false { 114748 } else { 114749 if z.EncBasicHandle().StringToRaw { 114750 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 114751 } else { 114752 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 114753 } 114754 } 114755 } 114756 if yyr2 || yy2arr2 { 114757 r.WriteArrayElem() 114758 if false { 114759 } else { 114760 r.EncodeBool(bool(x.Forwarded)) 114761 } 114762 } else { 114763 r.WriteMapElemKey() 114764 if z.IsJSONHandle() { 114765 z.WriteStr("\"Forwarded\"") 114766 } else { 114767 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 114768 } 114769 r.WriteMapElemValue() 114770 if false { 114771 } else { 114772 r.EncodeBool(bool(x.Forwarded)) 114773 } 114774 } 114775 if yyr2 || yy2arr2 { 114776 r.WriteArrayEnd() 114777 } else { 114778 r.WriteMapEnd() 114779 } 114780 } 114781 } 114782 } 114783 114784 func (x *ACLPolicyDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 114785 var h codecSelfer100 114786 z, r := codec1978.GenHelperDecoder(d) 114787 _, _, _ = h, z, r 114788 if false { 114789 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114790 z.DecExtension(x, yyxt1) 114791 } else { 114792 yyct2 := r.ContainerType() 114793 if yyct2 == codecSelferValueTypeMap100 { 114794 yyl2 := r.ReadMapStart() 114795 if yyl2 == 0 { 114796 r.ReadMapEnd() 114797 } else { 114798 x.codecDecodeSelfFromMap(yyl2, d) 114799 } 114800 } else if yyct2 == codecSelferValueTypeArray100 { 114801 yyl2 := r.ReadArrayStart() 114802 if yyl2 == 0 { 114803 r.ReadArrayEnd() 114804 } else { 114805 x.codecDecodeSelfFromArray(yyl2, d) 114806 } 114807 } else { 114808 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 114809 } 114810 } 114811 } 114812 114813 func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 114814 var h codecSelfer100 114815 z, r := codec1978.GenHelperDecoder(d) 114816 _, _, _ = h, z, r 114817 var yyhl3 bool = l >= 0 114818 for yyj3 := 0; ; yyj3++ { 114819 if yyhl3 { 114820 if yyj3 >= l { 114821 break 114822 } 114823 } else { 114824 if r.CheckBreak() { 114825 break 114826 } 114827 } 114828 r.ReadMapElemKey() 114829 yys3 := z.StringView(r.DecodeStringAsBytes()) 114830 r.ReadMapElemValue() 114831 switch yys3 { 114832 case "Names": 114833 if r.TryDecodeAsNil() { 114834 x.Names = nil 114835 } else { 114836 if false { 114837 } else { 114838 z.F.DecSliceStringX(&x.Names, d) 114839 } 114840 } 114841 case "Region": 114842 if r.TryDecodeAsNil() { 114843 x.WriteRequest.Region = "" 114844 } else { 114845 x.Region = (string)(r.DecodeString()) 114846 } 114847 case "Namespace": 114848 if r.TryDecodeAsNil() { 114849 x.WriteRequest.Namespace = "" 114850 } else { 114851 x.Namespace = (string)(r.DecodeString()) 114852 } 114853 case "AuthToken": 114854 if r.TryDecodeAsNil() { 114855 x.WriteRequest.AuthToken = "" 114856 } else { 114857 x.AuthToken = (string)(r.DecodeString()) 114858 } 114859 case "Forwarded": 114860 if r.TryDecodeAsNil() { 114861 x.WriteRequest.InternalRpcInfo.Forwarded = false 114862 } else { 114863 x.Forwarded = (bool)(r.DecodeBool()) 114864 } 114865 default: 114866 z.DecStructFieldNotFound(-1, yys3) 114867 } // end switch yys3 114868 } // end for yyj3 114869 r.ReadMapEnd() 114870 } 114871 114872 func (x *ACLPolicyDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 114873 var h codecSelfer100 114874 z, r := codec1978.GenHelperDecoder(d) 114875 _, _, _ = h, z, r 114876 var yyj10 int 114877 var yyb10 bool 114878 var yyhl10 bool = l >= 0 114879 yyj10++ 114880 if yyhl10 { 114881 yyb10 = yyj10 > l 114882 } else { 114883 yyb10 = r.CheckBreak() 114884 } 114885 if yyb10 { 114886 r.ReadArrayEnd() 114887 return 114888 } 114889 r.ReadArrayElem() 114890 if r.TryDecodeAsNil() { 114891 x.Names = nil 114892 } else { 114893 if false { 114894 } else { 114895 z.F.DecSliceStringX(&x.Names, d) 114896 } 114897 } 114898 yyj10++ 114899 if yyhl10 { 114900 yyb10 = yyj10 > l 114901 } else { 114902 yyb10 = r.CheckBreak() 114903 } 114904 if yyb10 { 114905 r.ReadArrayEnd() 114906 return 114907 } 114908 r.ReadArrayElem() 114909 if r.TryDecodeAsNil() { 114910 x.WriteRequest.Region = "" 114911 } else { 114912 x.Region = (string)(r.DecodeString()) 114913 } 114914 yyj10++ 114915 if yyhl10 { 114916 yyb10 = yyj10 > l 114917 } else { 114918 yyb10 = r.CheckBreak() 114919 } 114920 if yyb10 { 114921 r.ReadArrayEnd() 114922 return 114923 } 114924 r.ReadArrayElem() 114925 if r.TryDecodeAsNil() { 114926 x.WriteRequest.Namespace = "" 114927 } else { 114928 x.Namespace = (string)(r.DecodeString()) 114929 } 114930 yyj10++ 114931 if yyhl10 { 114932 yyb10 = yyj10 > l 114933 } else { 114934 yyb10 = r.CheckBreak() 114935 } 114936 if yyb10 { 114937 r.ReadArrayEnd() 114938 return 114939 } 114940 r.ReadArrayElem() 114941 if r.TryDecodeAsNil() { 114942 x.WriteRequest.AuthToken = "" 114943 } else { 114944 x.AuthToken = (string)(r.DecodeString()) 114945 } 114946 yyj10++ 114947 if yyhl10 { 114948 yyb10 = yyj10 > l 114949 } else { 114950 yyb10 = r.CheckBreak() 114951 } 114952 if yyb10 { 114953 r.ReadArrayEnd() 114954 return 114955 } 114956 r.ReadArrayElem() 114957 if r.TryDecodeAsNil() { 114958 x.WriteRequest.InternalRpcInfo.Forwarded = false 114959 } else { 114960 x.Forwarded = (bool)(r.DecodeBool()) 114961 } 114962 for { 114963 yyj10++ 114964 if yyhl10 { 114965 yyb10 = yyj10 > l 114966 } else { 114967 yyb10 = r.CheckBreak() 114968 } 114969 if yyb10 { 114970 break 114971 } 114972 r.ReadArrayElem() 114973 z.DecStructFieldNotFound(yyj10-1, "") 114974 } 114975 r.ReadArrayEnd() 114976 } 114977 114978 func (x *ACLPolicyUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 114979 var h codecSelfer100 114980 z, r := codec1978.GenHelperEncoder(e) 114981 _, _, _ = h, z, r 114982 if x == nil { 114983 r.EncodeNil() 114984 } else { 114985 if false { 114986 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 114987 z.EncExtension(x, yyxt1) 114988 } else { 114989 yysep2 := !z.EncBinary() 114990 yy2arr2 := z.EncBasicHandle().StructToArray 114991 _, _ = yysep2, yy2arr2 114992 const yyr2 bool = false // struct tag has 'toArray' 114993 if yyr2 || yy2arr2 { 114994 r.WriteArrayStart(5) 114995 } else { 114996 r.WriteMapStart(5) 114997 } 114998 if yyr2 || yy2arr2 { 114999 r.WriteArrayElem() 115000 if x.Policies == nil { 115001 r.EncodeNil() 115002 } else { 115003 if false { 115004 } else { 115005 h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) 115006 } 115007 } 115008 } else { 115009 r.WriteMapElemKey() 115010 if z.IsJSONHandle() { 115011 z.WriteStr("\"Policies\"") 115012 } else { 115013 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 115014 } 115015 r.WriteMapElemValue() 115016 if x.Policies == nil { 115017 r.EncodeNil() 115018 } else { 115019 if false { 115020 } else { 115021 h.encSlicePtrtoACLPolicy(([]*ACLPolicy)(x.Policies), e) 115022 } 115023 } 115024 } 115025 if yyr2 || yy2arr2 { 115026 r.WriteArrayElem() 115027 if false { 115028 } else { 115029 if z.EncBasicHandle().StringToRaw { 115030 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 115031 } else { 115032 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 115033 } 115034 } 115035 } else { 115036 r.WriteMapElemKey() 115037 if z.IsJSONHandle() { 115038 z.WriteStr("\"Region\"") 115039 } else { 115040 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 115041 } 115042 r.WriteMapElemValue() 115043 if false { 115044 } else { 115045 if z.EncBasicHandle().StringToRaw { 115046 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 115047 } else { 115048 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 115049 } 115050 } 115051 } 115052 if yyr2 || yy2arr2 { 115053 r.WriteArrayElem() 115054 if false { 115055 } else { 115056 if z.EncBasicHandle().StringToRaw { 115057 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 115058 } else { 115059 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 115060 } 115061 } 115062 } else { 115063 r.WriteMapElemKey() 115064 if z.IsJSONHandle() { 115065 z.WriteStr("\"Namespace\"") 115066 } else { 115067 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 115068 } 115069 r.WriteMapElemValue() 115070 if false { 115071 } else { 115072 if z.EncBasicHandle().StringToRaw { 115073 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 115074 } else { 115075 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 115076 } 115077 } 115078 } 115079 if yyr2 || yy2arr2 { 115080 r.WriteArrayElem() 115081 if false { 115082 } else { 115083 if z.EncBasicHandle().StringToRaw { 115084 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115085 } else { 115086 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115087 } 115088 } 115089 } else { 115090 r.WriteMapElemKey() 115091 if z.IsJSONHandle() { 115092 z.WriteStr("\"AuthToken\"") 115093 } else { 115094 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 115095 } 115096 r.WriteMapElemValue() 115097 if false { 115098 } else { 115099 if z.EncBasicHandle().StringToRaw { 115100 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 115101 } else { 115102 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 115103 } 115104 } 115105 } 115106 if yyr2 || yy2arr2 { 115107 r.WriteArrayElem() 115108 if false { 115109 } else { 115110 r.EncodeBool(bool(x.Forwarded)) 115111 } 115112 } else { 115113 r.WriteMapElemKey() 115114 if z.IsJSONHandle() { 115115 z.WriteStr("\"Forwarded\"") 115116 } else { 115117 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 115118 } 115119 r.WriteMapElemValue() 115120 if false { 115121 } else { 115122 r.EncodeBool(bool(x.Forwarded)) 115123 } 115124 } 115125 if yyr2 || yy2arr2 { 115126 r.WriteArrayEnd() 115127 } else { 115128 r.WriteMapEnd() 115129 } 115130 } 115131 } 115132 } 115133 115134 func (x *ACLPolicyUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 115135 var h codecSelfer100 115136 z, r := codec1978.GenHelperDecoder(d) 115137 _, _, _ = h, z, r 115138 if false { 115139 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115140 z.DecExtension(x, yyxt1) 115141 } else { 115142 yyct2 := r.ContainerType() 115143 if yyct2 == codecSelferValueTypeMap100 { 115144 yyl2 := r.ReadMapStart() 115145 if yyl2 == 0 { 115146 r.ReadMapEnd() 115147 } else { 115148 x.codecDecodeSelfFromMap(yyl2, d) 115149 } 115150 } else if yyct2 == codecSelferValueTypeArray100 { 115151 yyl2 := r.ReadArrayStart() 115152 if yyl2 == 0 { 115153 r.ReadArrayEnd() 115154 } else { 115155 x.codecDecodeSelfFromArray(yyl2, d) 115156 } 115157 } else { 115158 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 115159 } 115160 } 115161 } 115162 115163 func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 115164 var h codecSelfer100 115165 z, r := codec1978.GenHelperDecoder(d) 115166 _, _, _ = h, z, r 115167 var yyhl3 bool = l >= 0 115168 for yyj3 := 0; ; yyj3++ { 115169 if yyhl3 { 115170 if yyj3 >= l { 115171 break 115172 } 115173 } else { 115174 if r.CheckBreak() { 115175 break 115176 } 115177 } 115178 r.ReadMapElemKey() 115179 yys3 := z.StringView(r.DecodeStringAsBytes()) 115180 r.ReadMapElemValue() 115181 switch yys3 { 115182 case "Policies": 115183 if r.TryDecodeAsNil() { 115184 x.Policies = nil 115185 } else { 115186 if false { 115187 } else { 115188 h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) 115189 } 115190 } 115191 case "Region": 115192 if r.TryDecodeAsNil() { 115193 x.WriteRequest.Region = "" 115194 } else { 115195 x.Region = (string)(r.DecodeString()) 115196 } 115197 case "Namespace": 115198 if r.TryDecodeAsNil() { 115199 x.WriteRequest.Namespace = "" 115200 } else { 115201 x.Namespace = (string)(r.DecodeString()) 115202 } 115203 case "AuthToken": 115204 if r.TryDecodeAsNil() { 115205 x.WriteRequest.AuthToken = "" 115206 } else { 115207 x.AuthToken = (string)(r.DecodeString()) 115208 } 115209 case "Forwarded": 115210 if r.TryDecodeAsNil() { 115211 x.WriteRequest.InternalRpcInfo.Forwarded = false 115212 } else { 115213 x.Forwarded = (bool)(r.DecodeBool()) 115214 } 115215 default: 115216 z.DecStructFieldNotFound(-1, yys3) 115217 } // end switch yys3 115218 } // end for yyj3 115219 r.ReadMapEnd() 115220 } 115221 115222 func (x *ACLPolicyUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 115223 var h codecSelfer100 115224 z, r := codec1978.GenHelperDecoder(d) 115225 _, _, _ = h, z, r 115226 var yyj10 int 115227 var yyb10 bool 115228 var yyhl10 bool = l >= 0 115229 yyj10++ 115230 if yyhl10 { 115231 yyb10 = yyj10 > l 115232 } else { 115233 yyb10 = r.CheckBreak() 115234 } 115235 if yyb10 { 115236 r.ReadArrayEnd() 115237 return 115238 } 115239 r.ReadArrayElem() 115240 if r.TryDecodeAsNil() { 115241 x.Policies = nil 115242 } else { 115243 if false { 115244 } else { 115245 h.decSlicePtrtoACLPolicy((*[]*ACLPolicy)(&x.Policies), d) 115246 } 115247 } 115248 yyj10++ 115249 if yyhl10 { 115250 yyb10 = yyj10 > l 115251 } else { 115252 yyb10 = r.CheckBreak() 115253 } 115254 if yyb10 { 115255 r.ReadArrayEnd() 115256 return 115257 } 115258 r.ReadArrayElem() 115259 if r.TryDecodeAsNil() { 115260 x.WriteRequest.Region = "" 115261 } else { 115262 x.Region = (string)(r.DecodeString()) 115263 } 115264 yyj10++ 115265 if yyhl10 { 115266 yyb10 = yyj10 > l 115267 } else { 115268 yyb10 = r.CheckBreak() 115269 } 115270 if yyb10 { 115271 r.ReadArrayEnd() 115272 return 115273 } 115274 r.ReadArrayElem() 115275 if r.TryDecodeAsNil() { 115276 x.WriteRequest.Namespace = "" 115277 } else { 115278 x.Namespace = (string)(r.DecodeString()) 115279 } 115280 yyj10++ 115281 if yyhl10 { 115282 yyb10 = yyj10 > l 115283 } else { 115284 yyb10 = r.CheckBreak() 115285 } 115286 if yyb10 { 115287 r.ReadArrayEnd() 115288 return 115289 } 115290 r.ReadArrayElem() 115291 if r.TryDecodeAsNil() { 115292 x.WriteRequest.AuthToken = "" 115293 } else { 115294 x.AuthToken = (string)(r.DecodeString()) 115295 } 115296 yyj10++ 115297 if yyhl10 { 115298 yyb10 = yyj10 > l 115299 } else { 115300 yyb10 = r.CheckBreak() 115301 } 115302 if yyb10 { 115303 r.ReadArrayEnd() 115304 return 115305 } 115306 r.ReadArrayElem() 115307 if r.TryDecodeAsNil() { 115308 x.WriteRequest.InternalRpcInfo.Forwarded = false 115309 } else { 115310 x.Forwarded = (bool)(r.DecodeBool()) 115311 } 115312 for { 115313 yyj10++ 115314 if yyhl10 { 115315 yyb10 = yyj10 > l 115316 } else { 115317 yyb10 = r.CheckBreak() 115318 } 115319 if yyb10 { 115320 break 115321 } 115322 r.ReadArrayElem() 115323 z.DecStructFieldNotFound(yyj10-1, "") 115324 } 115325 r.ReadArrayEnd() 115326 } 115327 115328 func (x *ACLToken) CodecEncodeSelf(e *codec1978.Encoder) { 115329 var h codecSelfer100 115330 z, r := codec1978.GenHelperEncoder(e) 115331 _, _, _ = h, z, r 115332 if x == nil { 115333 r.EncodeNil() 115334 } else { 115335 if false { 115336 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115337 z.EncExtension(x, yyxt1) 115338 } else { 115339 yysep2 := !z.EncBinary() 115340 yy2arr2 := z.EncBasicHandle().StructToArray 115341 _, _ = yysep2, yy2arr2 115342 const yyr2 bool = false // struct tag has 'toArray' 115343 if yyr2 || yy2arr2 { 115344 r.WriteArrayStart(10) 115345 } else { 115346 r.WriteMapStart(10) 115347 } 115348 if yyr2 || yy2arr2 { 115349 r.WriteArrayElem() 115350 if false { 115351 } else { 115352 if z.EncBasicHandle().StringToRaw { 115353 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 115354 } else { 115355 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 115356 } 115357 } 115358 } else { 115359 r.WriteMapElemKey() 115360 if z.IsJSONHandle() { 115361 z.WriteStr("\"AccessorID\"") 115362 } else { 115363 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 115364 } 115365 r.WriteMapElemValue() 115366 if false { 115367 } else { 115368 if z.EncBasicHandle().StringToRaw { 115369 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 115370 } else { 115371 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 115372 } 115373 } 115374 } 115375 if yyr2 || yy2arr2 { 115376 r.WriteArrayElem() 115377 if false { 115378 } else { 115379 if z.EncBasicHandle().StringToRaw { 115380 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 115381 } else { 115382 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 115383 } 115384 } 115385 } else { 115386 r.WriteMapElemKey() 115387 if z.IsJSONHandle() { 115388 z.WriteStr("\"SecretID\"") 115389 } else { 115390 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 115391 } 115392 r.WriteMapElemValue() 115393 if false { 115394 } else { 115395 if z.EncBasicHandle().StringToRaw { 115396 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 115397 } else { 115398 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 115399 } 115400 } 115401 } 115402 if yyr2 || yy2arr2 { 115403 r.WriteArrayElem() 115404 if false { 115405 } else { 115406 if z.EncBasicHandle().StringToRaw { 115407 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 115408 } else { 115409 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 115410 } 115411 } 115412 } else { 115413 r.WriteMapElemKey() 115414 if z.IsJSONHandle() { 115415 z.WriteStr("\"Name\"") 115416 } else { 115417 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 115418 } 115419 r.WriteMapElemValue() 115420 if false { 115421 } else { 115422 if z.EncBasicHandle().StringToRaw { 115423 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 115424 } else { 115425 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 115426 } 115427 } 115428 } 115429 if yyr2 || yy2arr2 { 115430 r.WriteArrayElem() 115431 if false { 115432 } else { 115433 if z.EncBasicHandle().StringToRaw { 115434 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 115435 } else { 115436 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 115437 } 115438 } 115439 } else { 115440 r.WriteMapElemKey() 115441 if z.IsJSONHandle() { 115442 z.WriteStr("\"Type\"") 115443 } else { 115444 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 115445 } 115446 r.WriteMapElemValue() 115447 if false { 115448 } else { 115449 if z.EncBasicHandle().StringToRaw { 115450 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 115451 } else { 115452 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 115453 } 115454 } 115455 } 115456 if yyr2 || yy2arr2 { 115457 r.WriteArrayElem() 115458 if x.Policies == nil { 115459 r.EncodeNil() 115460 } else { 115461 if false { 115462 } else { 115463 z.F.EncSliceStringV(x.Policies, e) 115464 } 115465 } 115466 } else { 115467 r.WriteMapElemKey() 115468 if z.IsJSONHandle() { 115469 z.WriteStr("\"Policies\"") 115470 } else { 115471 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 115472 } 115473 r.WriteMapElemValue() 115474 if x.Policies == nil { 115475 r.EncodeNil() 115476 } else { 115477 if false { 115478 } else { 115479 z.F.EncSliceStringV(x.Policies, e) 115480 } 115481 } 115482 } 115483 if yyr2 || yy2arr2 { 115484 r.WriteArrayElem() 115485 if false { 115486 } else { 115487 r.EncodeBool(bool(x.Global)) 115488 } 115489 } else { 115490 r.WriteMapElemKey() 115491 if z.IsJSONHandle() { 115492 z.WriteStr("\"Global\"") 115493 } else { 115494 r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) 115495 } 115496 r.WriteMapElemValue() 115497 if false { 115498 } else { 115499 r.EncodeBool(bool(x.Global)) 115500 } 115501 } 115502 if yyr2 || yy2arr2 { 115503 r.WriteArrayElem() 115504 if x.Hash == nil { 115505 r.EncodeNil() 115506 } else { 115507 if false { 115508 } else { 115509 r.EncodeStringBytesRaw([]byte(x.Hash)) 115510 } 115511 } 115512 } else { 115513 r.WriteMapElemKey() 115514 if z.IsJSONHandle() { 115515 z.WriteStr("\"Hash\"") 115516 } else { 115517 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 115518 } 115519 r.WriteMapElemValue() 115520 if x.Hash == nil { 115521 r.EncodeNil() 115522 } else { 115523 if false { 115524 } else { 115525 r.EncodeStringBytesRaw([]byte(x.Hash)) 115526 } 115527 } 115528 } 115529 if yyr2 || yy2arr2 { 115530 r.WriteArrayElem() 115531 if false { 115532 } else if !z.EncBasicHandle().TimeNotBuiltin { 115533 r.EncodeTime(x.CreateTime) 115534 } else if yyxt25 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt25 != nil { 115535 z.EncExtension(x.CreateTime, yyxt25) 115536 } else if z.EncBinary() { 115537 z.EncBinaryMarshal(x.CreateTime) 115538 } else if !z.EncBinary() && z.IsJSONHandle() { 115539 z.EncJSONMarshal(x.CreateTime) 115540 } else { 115541 z.EncFallback(x.CreateTime) 115542 } 115543 } else { 115544 r.WriteMapElemKey() 115545 if z.IsJSONHandle() { 115546 z.WriteStr("\"CreateTime\"") 115547 } else { 115548 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 115549 } 115550 r.WriteMapElemValue() 115551 if false { 115552 } else if !z.EncBasicHandle().TimeNotBuiltin { 115553 r.EncodeTime(x.CreateTime) 115554 } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { 115555 z.EncExtension(x.CreateTime, yyxt26) 115556 } else if z.EncBinary() { 115557 z.EncBinaryMarshal(x.CreateTime) 115558 } else if !z.EncBinary() && z.IsJSONHandle() { 115559 z.EncJSONMarshal(x.CreateTime) 115560 } else { 115561 z.EncFallback(x.CreateTime) 115562 } 115563 } 115564 if yyr2 || yy2arr2 { 115565 r.WriteArrayElem() 115566 if false { 115567 } else { 115568 r.EncodeUint(uint64(x.CreateIndex)) 115569 } 115570 } else { 115571 r.WriteMapElemKey() 115572 if z.IsJSONHandle() { 115573 z.WriteStr("\"CreateIndex\"") 115574 } else { 115575 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 115576 } 115577 r.WriteMapElemValue() 115578 if false { 115579 } else { 115580 r.EncodeUint(uint64(x.CreateIndex)) 115581 } 115582 } 115583 if yyr2 || yy2arr2 { 115584 r.WriteArrayElem() 115585 if false { 115586 } else { 115587 r.EncodeUint(uint64(x.ModifyIndex)) 115588 } 115589 } else { 115590 r.WriteMapElemKey() 115591 if z.IsJSONHandle() { 115592 z.WriteStr("\"ModifyIndex\"") 115593 } else { 115594 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 115595 } 115596 r.WriteMapElemValue() 115597 if false { 115598 } else { 115599 r.EncodeUint(uint64(x.ModifyIndex)) 115600 } 115601 } 115602 if yyr2 || yy2arr2 { 115603 r.WriteArrayEnd() 115604 } else { 115605 r.WriteMapEnd() 115606 } 115607 } 115608 } 115609 } 115610 115611 func (x *ACLToken) CodecDecodeSelf(d *codec1978.Decoder) { 115612 var h codecSelfer100 115613 z, r := codec1978.GenHelperDecoder(d) 115614 _, _, _ = h, z, r 115615 if false { 115616 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115617 z.DecExtension(x, yyxt1) 115618 } else { 115619 yyct2 := r.ContainerType() 115620 if yyct2 == codecSelferValueTypeMap100 { 115621 yyl2 := r.ReadMapStart() 115622 if yyl2 == 0 { 115623 r.ReadMapEnd() 115624 } else { 115625 x.codecDecodeSelfFromMap(yyl2, d) 115626 } 115627 } else if yyct2 == codecSelferValueTypeArray100 { 115628 yyl2 := r.ReadArrayStart() 115629 if yyl2 == 0 { 115630 r.ReadArrayEnd() 115631 } else { 115632 x.codecDecodeSelfFromArray(yyl2, d) 115633 } 115634 } else { 115635 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 115636 } 115637 } 115638 } 115639 115640 func (x *ACLToken) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 115641 var h codecSelfer100 115642 z, r := codec1978.GenHelperDecoder(d) 115643 _, _, _ = h, z, r 115644 var yyhl3 bool = l >= 0 115645 for yyj3 := 0; ; yyj3++ { 115646 if yyhl3 { 115647 if yyj3 >= l { 115648 break 115649 } 115650 } else { 115651 if r.CheckBreak() { 115652 break 115653 } 115654 } 115655 r.ReadMapElemKey() 115656 yys3 := z.StringView(r.DecodeStringAsBytes()) 115657 r.ReadMapElemValue() 115658 switch yys3 { 115659 case "AccessorID": 115660 if r.TryDecodeAsNil() { 115661 x.AccessorID = "" 115662 } else { 115663 x.AccessorID = (string)(r.DecodeString()) 115664 } 115665 case "SecretID": 115666 if r.TryDecodeAsNil() { 115667 x.SecretID = "" 115668 } else { 115669 x.SecretID = (string)(r.DecodeString()) 115670 } 115671 case "Name": 115672 if r.TryDecodeAsNil() { 115673 x.Name = "" 115674 } else { 115675 x.Name = (string)(r.DecodeString()) 115676 } 115677 case "Type": 115678 if r.TryDecodeAsNil() { 115679 x.Type = "" 115680 } else { 115681 x.Type = (string)(r.DecodeString()) 115682 } 115683 case "Policies": 115684 if r.TryDecodeAsNil() { 115685 x.Policies = nil 115686 } else { 115687 if false { 115688 } else { 115689 z.F.DecSliceStringX(&x.Policies, d) 115690 } 115691 } 115692 case "Global": 115693 if r.TryDecodeAsNil() { 115694 x.Global = false 115695 } else { 115696 x.Global = (bool)(r.DecodeBool()) 115697 } 115698 case "Hash": 115699 if r.TryDecodeAsNil() { 115700 x.Hash = nil 115701 } else { 115702 if false { 115703 } else { 115704 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 115705 } 115706 } 115707 case "CreateTime": 115708 if r.TryDecodeAsNil() { 115709 x.CreateTime = time.Time{} 115710 } else { 115711 if false { 115712 } else if !z.DecBasicHandle().TimeNotBuiltin { 115713 x.CreateTime = r.DecodeTime() 115714 } else if yyxt14 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt14 != nil { 115715 z.DecExtension(x.CreateTime, yyxt14) 115716 } else if z.DecBinary() { 115717 z.DecBinaryUnmarshal(&x.CreateTime) 115718 } else if !z.DecBinary() && z.IsJSONHandle() { 115719 z.DecJSONUnmarshal(&x.CreateTime) 115720 } else { 115721 z.DecFallback(&x.CreateTime, false) 115722 } 115723 } 115724 case "CreateIndex": 115725 if r.TryDecodeAsNil() { 115726 x.CreateIndex = 0 115727 } else { 115728 x.CreateIndex = (uint64)(r.DecodeUint64()) 115729 } 115730 case "ModifyIndex": 115731 if r.TryDecodeAsNil() { 115732 x.ModifyIndex = 0 115733 } else { 115734 x.ModifyIndex = (uint64)(r.DecodeUint64()) 115735 } 115736 default: 115737 z.DecStructFieldNotFound(-1, yys3) 115738 } // end switch yys3 115739 } // end for yyj3 115740 r.ReadMapEnd() 115741 } 115742 115743 func (x *ACLToken) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 115744 var h codecSelfer100 115745 z, r := codec1978.GenHelperDecoder(d) 115746 _, _, _ = h, z, r 115747 var yyj17 int 115748 var yyb17 bool 115749 var yyhl17 bool = l >= 0 115750 yyj17++ 115751 if yyhl17 { 115752 yyb17 = yyj17 > l 115753 } else { 115754 yyb17 = r.CheckBreak() 115755 } 115756 if yyb17 { 115757 r.ReadArrayEnd() 115758 return 115759 } 115760 r.ReadArrayElem() 115761 if r.TryDecodeAsNil() { 115762 x.AccessorID = "" 115763 } else { 115764 x.AccessorID = (string)(r.DecodeString()) 115765 } 115766 yyj17++ 115767 if yyhl17 { 115768 yyb17 = yyj17 > l 115769 } else { 115770 yyb17 = r.CheckBreak() 115771 } 115772 if yyb17 { 115773 r.ReadArrayEnd() 115774 return 115775 } 115776 r.ReadArrayElem() 115777 if r.TryDecodeAsNil() { 115778 x.SecretID = "" 115779 } else { 115780 x.SecretID = (string)(r.DecodeString()) 115781 } 115782 yyj17++ 115783 if yyhl17 { 115784 yyb17 = yyj17 > l 115785 } else { 115786 yyb17 = r.CheckBreak() 115787 } 115788 if yyb17 { 115789 r.ReadArrayEnd() 115790 return 115791 } 115792 r.ReadArrayElem() 115793 if r.TryDecodeAsNil() { 115794 x.Name = "" 115795 } else { 115796 x.Name = (string)(r.DecodeString()) 115797 } 115798 yyj17++ 115799 if yyhl17 { 115800 yyb17 = yyj17 > l 115801 } else { 115802 yyb17 = r.CheckBreak() 115803 } 115804 if yyb17 { 115805 r.ReadArrayEnd() 115806 return 115807 } 115808 r.ReadArrayElem() 115809 if r.TryDecodeAsNil() { 115810 x.Type = "" 115811 } else { 115812 x.Type = (string)(r.DecodeString()) 115813 } 115814 yyj17++ 115815 if yyhl17 { 115816 yyb17 = yyj17 > l 115817 } else { 115818 yyb17 = r.CheckBreak() 115819 } 115820 if yyb17 { 115821 r.ReadArrayEnd() 115822 return 115823 } 115824 r.ReadArrayElem() 115825 if r.TryDecodeAsNil() { 115826 x.Policies = nil 115827 } else { 115828 if false { 115829 } else { 115830 z.F.DecSliceStringX(&x.Policies, d) 115831 } 115832 } 115833 yyj17++ 115834 if yyhl17 { 115835 yyb17 = yyj17 > l 115836 } else { 115837 yyb17 = r.CheckBreak() 115838 } 115839 if yyb17 { 115840 r.ReadArrayEnd() 115841 return 115842 } 115843 r.ReadArrayElem() 115844 if r.TryDecodeAsNil() { 115845 x.Global = false 115846 } else { 115847 x.Global = (bool)(r.DecodeBool()) 115848 } 115849 yyj17++ 115850 if yyhl17 { 115851 yyb17 = yyj17 > l 115852 } else { 115853 yyb17 = r.CheckBreak() 115854 } 115855 if yyb17 { 115856 r.ReadArrayEnd() 115857 return 115858 } 115859 r.ReadArrayElem() 115860 if r.TryDecodeAsNil() { 115861 x.Hash = nil 115862 } else { 115863 if false { 115864 } else { 115865 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 115866 } 115867 } 115868 yyj17++ 115869 if yyhl17 { 115870 yyb17 = yyj17 > l 115871 } else { 115872 yyb17 = r.CheckBreak() 115873 } 115874 if yyb17 { 115875 r.ReadArrayEnd() 115876 return 115877 } 115878 r.ReadArrayElem() 115879 if r.TryDecodeAsNil() { 115880 x.CreateTime = time.Time{} 115881 } else { 115882 if false { 115883 } else if !z.DecBasicHandle().TimeNotBuiltin { 115884 x.CreateTime = r.DecodeTime() 115885 } else if yyxt28 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt28 != nil { 115886 z.DecExtension(x.CreateTime, yyxt28) 115887 } else if z.DecBinary() { 115888 z.DecBinaryUnmarshal(&x.CreateTime) 115889 } else if !z.DecBinary() && z.IsJSONHandle() { 115890 z.DecJSONUnmarshal(&x.CreateTime) 115891 } else { 115892 z.DecFallback(&x.CreateTime, false) 115893 } 115894 } 115895 yyj17++ 115896 if yyhl17 { 115897 yyb17 = yyj17 > l 115898 } else { 115899 yyb17 = r.CheckBreak() 115900 } 115901 if yyb17 { 115902 r.ReadArrayEnd() 115903 return 115904 } 115905 r.ReadArrayElem() 115906 if r.TryDecodeAsNil() { 115907 x.CreateIndex = 0 115908 } else { 115909 x.CreateIndex = (uint64)(r.DecodeUint64()) 115910 } 115911 yyj17++ 115912 if yyhl17 { 115913 yyb17 = yyj17 > l 115914 } else { 115915 yyb17 = r.CheckBreak() 115916 } 115917 if yyb17 { 115918 r.ReadArrayEnd() 115919 return 115920 } 115921 r.ReadArrayElem() 115922 if r.TryDecodeAsNil() { 115923 x.ModifyIndex = 0 115924 } else { 115925 x.ModifyIndex = (uint64)(r.DecodeUint64()) 115926 } 115927 for { 115928 yyj17++ 115929 if yyhl17 { 115930 yyb17 = yyj17 > l 115931 } else { 115932 yyb17 = r.CheckBreak() 115933 } 115934 if yyb17 { 115935 break 115936 } 115937 r.ReadArrayElem() 115938 z.DecStructFieldNotFound(yyj17-1, "") 115939 } 115940 r.ReadArrayEnd() 115941 } 115942 115943 func (x *ACLTokenListStub) CodecEncodeSelf(e *codec1978.Encoder) { 115944 var h codecSelfer100 115945 z, r := codec1978.GenHelperEncoder(e) 115946 _, _, _ = h, z, r 115947 if x == nil { 115948 r.EncodeNil() 115949 } else { 115950 if false { 115951 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 115952 z.EncExtension(x, yyxt1) 115953 } else { 115954 yysep2 := !z.EncBinary() 115955 yy2arr2 := z.EncBasicHandle().StructToArray 115956 _, _ = yysep2, yy2arr2 115957 const yyr2 bool = false // struct tag has 'toArray' 115958 if yyr2 || yy2arr2 { 115959 r.WriteArrayStart(9) 115960 } else { 115961 r.WriteMapStart(9) 115962 } 115963 if yyr2 || yy2arr2 { 115964 r.WriteArrayElem() 115965 if false { 115966 } else { 115967 if z.EncBasicHandle().StringToRaw { 115968 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 115969 } else { 115970 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 115971 } 115972 } 115973 } else { 115974 r.WriteMapElemKey() 115975 if z.IsJSONHandle() { 115976 z.WriteStr("\"AccessorID\"") 115977 } else { 115978 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 115979 } 115980 r.WriteMapElemValue() 115981 if false { 115982 } else { 115983 if z.EncBasicHandle().StringToRaw { 115984 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 115985 } else { 115986 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 115987 } 115988 } 115989 } 115990 if yyr2 || yy2arr2 { 115991 r.WriteArrayElem() 115992 if false { 115993 } else { 115994 if z.EncBasicHandle().StringToRaw { 115995 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 115996 } else { 115997 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 115998 } 115999 } 116000 } else { 116001 r.WriteMapElemKey() 116002 if z.IsJSONHandle() { 116003 z.WriteStr("\"Name\"") 116004 } else { 116005 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 116006 } 116007 r.WriteMapElemValue() 116008 if false { 116009 } else { 116010 if z.EncBasicHandle().StringToRaw { 116011 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 116012 } else { 116013 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 116014 } 116015 } 116016 } 116017 if yyr2 || yy2arr2 { 116018 r.WriteArrayElem() 116019 if false { 116020 } else { 116021 if z.EncBasicHandle().StringToRaw { 116022 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 116023 } else { 116024 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 116025 } 116026 } 116027 } else { 116028 r.WriteMapElemKey() 116029 if z.IsJSONHandle() { 116030 z.WriteStr("\"Type\"") 116031 } else { 116032 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 116033 } 116034 r.WriteMapElemValue() 116035 if false { 116036 } else { 116037 if z.EncBasicHandle().StringToRaw { 116038 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 116039 } else { 116040 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 116041 } 116042 } 116043 } 116044 if yyr2 || yy2arr2 { 116045 r.WriteArrayElem() 116046 if x.Policies == nil { 116047 r.EncodeNil() 116048 } else { 116049 if false { 116050 } else { 116051 z.F.EncSliceStringV(x.Policies, e) 116052 } 116053 } 116054 } else { 116055 r.WriteMapElemKey() 116056 if z.IsJSONHandle() { 116057 z.WriteStr("\"Policies\"") 116058 } else { 116059 r.EncodeStringEnc(codecSelferCcUTF8100, `Policies`) 116060 } 116061 r.WriteMapElemValue() 116062 if x.Policies == nil { 116063 r.EncodeNil() 116064 } else { 116065 if false { 116066 } else { 116067 z.F.EncSliceStringV(x.Policies, e) 116068 } 116069 } 116070 } 116071 if yyr2 || yy2arr2 { 116072 r.WriteArrayElem() 116073 if false { 116074 } else { 116075 r.EncodeBool(bool(x.Global)) 116076 } 116077 } else { 116078 r.WriteMapElemKey() 116079 if z.IsJSONHandle() { 116080 z.WriteStr("\"Global\"") 116081 } else { 116082 r.EncodeStringEnc(codecSelferCcUTF8100, `Global`) 116083 } 116084 r.WriteMapElemValue() 116085 if false { 116086 } else { 116087 r.EncodeBool(bool(x.Global)) 116088 } 116089 } 116090 if yyr2 || yy2arr2 { 116091 r.WriteArrayElem() 116092 if x.Hash == nil { 116093 r.EncodeNil() 116094 } else { 116095 if false { 116096 } else { 116097 r.EncodeStringBytesRaw([]byte(x.Hash)) 116098 } 116099 } 116100 } else { 116101 r.WriteMapElemKey() 116102 if z.IsJSONHandle() { 116103 z.WriteStr("\"Hash\"") 116104 } else { 116105 r.EncodeStringEnc(codecSelferCcUTF8100, `Hash`) 116106 } 116107 r.WriteMapElemValue() 116108 if x.Hash == nil { 116109 r.EncodeNil() 116110 } else { 116111 if false { 116112 } else { 116113 r.EncodeStringBytesRaw([]byte(x.Hash)) 116114 } 116115 } 116116 } 116117 if yyr2 || yy2arr2 { 116118 r.WriteArrayElem() 116119 if false { 116120 } else if !z.EncBasicHandle().TimeNotBuiltin { 116121 r.EncodeTime(x.CreateTime) 116122 } else if yyxt22 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt22 != nil { 116123 z.EncExtension(x.CreateTime, yyxt22) 116124 } else if z.EncBinary() { 116125 z.EncBinaryMarshal(x.CreateTime) 116126 } else if !z.EncBinary() && z.IsJSONHandle() { 116127 z.EncJSONMarshal(x.CreateTime) 116128 } else { 116129 z.EncFallback(x.CreateTime) 116130 } 116131 } else { 116132 r.WriteMapElemKey() 116133 if z.IsJSONHandle() { 116134 z.WriteStr("\"CreateTime\"") 116135 } else { 116136 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateTime`) 116137 } 116138 r.WriteMapElemValue() 116139 if false { 116140 } else if !z.EncBasicHandle().TimeNotBuiltin { 116141 r.EncodeTime(x.CreateTime) 116142 } else if yyxt23 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt23 != nil { 116143 z.EncExtension(x.CreateTime, yyxt23) 116144 } else if z.EncBinary() { 116145 z.EncBinaryMarshal(x.CreateTime) 116146 } else if !z.EncBinary() && z.IsJSONHandle() { 116147 z.EncJSONMarshal(x.CreateTime) 116148 } else { 116149 z.EncFallback(x.CreateTime) 116150 } 116151 } 116152 if yyr2 || yy2arr2 { 116153 r.WriteArrayElem() 116154 if false { 116155 } else { 116156 r.EncodeUint(uint64(x.CreateIndex)) 116157 } 116158 } else { 116159 r.WriteMapElemKey() 116160 if z.IsJSONHandle() { 116161 z.WriteStr("\"CreateIndex\"") 116162 } else { 116163 r.EncodeStringEnc(codecSelferCcUTF8100, `CreateIndex`) 116164 } 116165 r.WriteMapElemValue() 116166 if false { 116167 } else { 116168 r.EncodeUint(uint64(x.CreateIndex)) 116169 } 116170 } 116171 if yyr2 || yy2arr2 { 116172 r.WriteArrayElem() 116173 if false { 116174 } else { 116175 r.EncodeUint(uint64(x.ModifyIndex)) 116176 } 116177 } else { 116178 r.WriteMapElemKey() 116179 if z.IsJSONHandle() { 116180 z.WriteStr("\"ModifyIndex\"") 116181 } else { 116182 r.EncodeStringEnc(codecSelferCcUTF8100, `ModifyIndex`) 116183 } 116184 r.WriteMapElemValue() 116185 if false { 116186 } else { 116187 r.EncodeUint(uint64(x.ModifyIndex)) 116188 } 116189 } 116190 if yyr2 || yy2arr2 { 116191 r.WriteArrayEnd() 116192 } else { 116193 r.WriteMapEnd() 116194 } 116195 } 116196 } 116197 } 116198 116199 func (x *ACLTokenListStub) CodecDecodeSelf(d *codec1978.Decoder) { 116200 var h codecSelfer100 116201 z, r := codec1978.GenHelperDecoder(d) 116202 _, _, _ = h, z, r 116203 if false { 116204 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116205 z.DecExtension(x, yyxt1) 116206 } else { 116207 yyct2 := r.ContainerType() 116208 if yyct2 == codecSelferValueTypeMap100 { 116209 yyl2 := r.ReadMapStart() 116210 if yyl2 == 0 { 116211 r.ReadMapEnd() 116212 } else { 116213 x.codecDecodeSelfFromMap(yyl2, d) 116214 } 116215 } else if yyct2 == codecSelferValueTypeArray100 { 116216 yyl2 := r.ReadArrayStart() 116217 if yyl2 == 0 { 116218 r.ReadArrayEnd() 116219 } else { 116220 x.codecDecodeSelfFromArray(yyl2, d) 116221 } 116222 } else { 116223 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 116224 } 116225 } 116226 } 116227 116228 func (x *ACLTokenListStub) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116229 var h codecSelfer100 116230 z, r := codec1978.GenHelperDecoder(d) 116231 _, _, _ = h, z, r 116232 var yyhl3 bool = l >= 0 116233 for yyj3 := 0; ; yyj3++ { 116234 if yyhl3 { 116235 if yyj3 >= l { 116236 break 116237 } 116238 } else { 116239 if r.CheckBreak() { 116240 break 116241 } 116242 } 116243 r.ReadMapElemKey() 116244 yys3 := z.StringView(r.DecodeStringAsBytes()) 116245 r.ReadMapElemValue() 116246 switch yys3 { 116247 case "AccessorID": 116248 if r.TryDecodeAsNil() { 116249 x.AccessorID = "" 116250 } else { 116251 x.AccessorID = (string)(r.DecodeString()) 116252 } 116253 case "Name": 116254 if r.TryDecodeAsNil() { 116255 x.Name = "" 116256 } else { 116257 x.Name = (string)(r.DecodeString()) 116258 } 116259 case "Type": 116260 if r.TryDecodeAsNil() { 116261 x.Type = "" 116262 } else { 116263 x.Type = (string)(r.DecodeString()) 116264 } 116265 case "Policies": 116266 if r.TryDecodeAsNil() { 116267 x.Policies = nil 116268 } else { 116269 if false { 116270 } else { 116271 z.F.DecSliceStringX(&x.Policies, d) 116272 } 116273 } 116274 case "Global": 116275 if r.TryDecodeAsNil() { 116276 x.Global = false 116277 } else { 116278 x.Global = (bool)(r.DecodeBool()) 116279 } 116280 case "Hash": 116281 if r.TryDecodeAsNil() { 116282 x.Hash = nil 116283 } else { 116284 if false { 116285 } else { 116286 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 116287 } 116288 } 116289 case "CreateTime": 116290 if r.TryDecodeAsNil() { 116291 x.CreateTime = time.Time{} 116292 } else { 116293 if false { 116294 } else if !z.DecBasicHandle().TimeNotBuiltin { 116295 x.CreateTime = r.DecodeTime() 116296 } else if yyxt13 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt13 != nil { 116297 z.DecExtension(x.CreateTime, yyxt13) 116298 } else if z.DecBinary() { 116299 z.DecBinaryUnmarshal(&x.CreateTime) 116300 } else if !z.DecBinary() && z.IsJSONHandle() { 116301 z.DecJSONUnmarshal(&x.CreateTime) 116302 } else { 116303 z.DecFallback(&x.CreateTime, false) 116304 } 116305 } 116306 case "CreateIndex": 116307 if r.TryDecodeAsNil() { 116308 x.CreateIndex = 0 116309 } else { 116310 x.CreateIndex = (uint64)(r.DecodeUint64()) 116311 } 116312 case "ModifyIndex": 116313 if r.TryDecodeAsNil() { 116314 x.ModifyIndex = 0 116315 } else { 116316 x.ModifyIndex = (uint64)(r.DecodeUint64()) 116317 } 116318 default: 116319 z.DecStructFieldNotFound(-1, yys3) 116320 } // end switch yys3 116321 } // end for yyj3 116322 r.ReadMapEnd() 116323 } 116324 116325 func (x *ACLTokenListStub) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 116326 var h codecSelfer100 116327 z, r := codec1978.GenHelperDecoder(d) 116328 _, _, _ = h, z, r 116329 var yyj16 int 116330 var yyb16 bool 116331 var yyhl16 bool = l >= 0 116332 yyj16++ 116333 if yyhl16 { 116334 yyb16 = yyj16 > l 116335 } else { 116336 yyb16 = r.CheckBreak() 116337 } 116338 if yyb16 { 116339 r.ReadArrayEnd() 116340 return 116341 } 116342 r.ReadArrayElem() 116343 if r.TryDecodeAsNil() { 116344 x.AccessorID = "" 116345 } else { 116346 x.AccessorID = (string)(r.DecodeString()) 116347 } 116348 yyj16++ 116349 if yyhl16 { 116350 yyb16 = yyj16 > l 116351 } else { 116352 yyb16 = r.CheckBreak() 116353 } 116354 if yyb16 { 116355 r.ReadArrayEnd() 116356 return 116357 } 116358 r.ReadArrayElem() 116359 if r.TryDecodeAsNil() { 116360 x.Name = "" 116361 } else { 116362 x.Name = (string)(r.DecodeString()) 116363 } 116364 yyj16++ 116365 if yyhl16 { 116366 yyb16 = yyj16 > l 116367 } else { 116368 yyb16 = r.CheckBreak() 116369 } 116370 if yyb16 { 116371 r.ReadArrayEnd() 116372 return 116373 } 116374 r.ReadArrayElem() 116375 if r.TryDecodeAsNil() { 116376 x.Type = "" 116377 } else { 116378 x.Type = (string)(r.DecodeString()) 116379 } 116380 yyj16++ 116381 if yyhl16 { 116382 yyb16 = yyj16 > l 116383 } else { 116384 yyb16 = r.CheckBreak() 116385 } 116386 if yyb16 { 116387 r.ReadArrayEnd() 116388 return 116389 } 116390 r.ReadArrayElem() 116391 if r.TryDecodeAsNil() { 116392 x.Policies = nil 116393 } else { 116394 if false { 116395 } else { 116396 z.F.DecSliceStringX(&x.Policies, d) 116397 } 116398 } 116399 yyj16++ 116400 if yyhl16 { 116401 yyb16 = yyj16 > l 116402 } else { 116403 yyb16 = r.CheckBreak() 116404 } 116405 if yyb16 { 116406 r.ReadArrayEnd() 116407 return 116408 } 116409 r.ReadArrayElem() 116410 if r.TryDecodeAsNil() { 116411 x.Global = false 116412 } else { 116413 x.Global = (bool)(r.DecodeBool()) 116414 } 116415 yyj16++ 116416 if yyhl16 { 116417 yyb16 = yyj16 > l 116418 } else { 116419 yyb16 = r.CheckBreak() 116420 } 116421 if yyb16 { 116422 r.ReadArrayEnd() 116423 return 116424 } 116425 r.ReadArrayElem() 116426 if r.TryDecodeAsNil() { 116427 x.Hash = nil 116428 } else { 116429 if false { 116430 } else { 116431 x.Hash = r.DecodeBytes(([]byte)(x.Hash), false) 116432 } 116433 } 116434 yyj16++ 116435 if yyhl16 { 116436 yyb16 = yyj16 > l 116437 } else { 116438 yyb16 = r.CheckBreak() 116439 } 116440 if yyb16 { 116441 r.ReadArrayEnd() 116442 return 116443 } 116444 r.ReadArrayElem() 116445 if r.TryDecodeAsNil() { 116446 x.CreateTime = time.Time{} 116447 } else { 116448 if false { 116449 } else if !z.DecBasicHandle().TimeNotBuiltin { 116450 x.CreateTime = r.DecodeTime() 116451 } else if yyxt26 := z.Extension(z.I2Rtid(x.CreateTime)); yyxt26 != nil { 116452 z.DecExtension(x.CreateTime, yyxt26) 116453 } else if z.DecBinary() { 116454 z.DecBinaryUnmarshal(&x.CreateTime) 116455 } else if !z.DecBinary() && z.IsJSONHandle() { 116456 z.DecJSONUnmarshal(&x.CreateTime) 116457 } else { 116458 z.DecFallback(&x.CreateTime, false) 116459 } 116460 } 116461 yyj16++ 116462 if yyhl16 { 116463 yyb16 = yyj16 > l 116464 } else { 116465 yyb16 = r.CheckBreak() 116466 } 116467 if yyb16 { 116468 r.ReadArrayEnd() 116469 return 116470 } 116471 r.ReadArrayElem() 116472 if r.TryDecodeAsNil() { 116473 x.CreateIndex = 0 116474 } else { 116475 x.CreateIndex = (uint64)(r.DecodeUint64()) 116476 } 116477 yyj16++ 116478 if yyhl16 { 116479 yyb16 = yyj16 > l 116480 } else { 116481 yyb16 = r.CheckBreak() 116482 } 116483 if yyb16 { 116484 r.ReadArrayEnd() 116485 return 116486 } 116487 r.ReadArrayElem() 116488 if r.TryDecodeAsNil() { 116489 x.ModifyIndex = 0 116490 } else { 116491 x.ModifyIndex = (uint64)(r.DecodeUint64()) 116492 } 116493 for { 116494 yyj16++ 116495 if yyhl16 { 116496 yyb16 = yyj16 > l 116497 } else { 116498 yyb16 = r.CheckBreak() 116499 } 116500 if yyb16 { 116501 break 116502 } 116503 r.ReadArrayElem() 116504 z.DecStructFieldNotFound(yyj16-1, "") 116505 } 116506 r.ReadArrayEnd() 116507 } 116508 116509 func (x *ACLTokenListRequest) CodecEncodeSelf(e *codec1978.Encoder) { 116510 var h codecSelfer100 116511 z, r := codec1978.GenHelperEncoder(e) 116512 _, _, _ = h, z, r 116513 if x == nil { 116514 r.EncodeNil() 116515 } else { 116516 if false { 116517 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116518 z.EncExtension(x, yyxt1) 116519 } else { 116520 yysep2 := !z.EncBinary() 116521 yy2arr2 := z.EncBasicHandle().StructToArray 116522 _, _ = yysep2, yy2arr2 116523 const yyr2 bool = false // struct tag has 'toArray' 116524 if yyr2 || yy2arr2 { 116525 r.WriteArrayStart(9) 116526 } else { 116527 r.WriteMapStart(9) 116528 } 116529 if yyr2 || yy2arr2 { 116530 r.WriteArrayElem() 116531 if false { 116532 } else { 116533 r.EncodeBool(bool(x.GlobalOnly)) 116534 } 116535 } else { 116536 r.WriteMapElemKey() 116537 if z.IsJSONHandle() { 116538 z.WriteStr("\"GlobalOnly\"") 116539 } else { 116540 r.EncodeStringEnc(codecSelferCcUTF8100, `GlobalOnly`) 116541 } 116542 r.WriteMapElemValue() 116543 if false { 116544 } else { 116545 r.EncodeBool(bool(x.GlobalOnly)) 116546 } 116547 } 116548 if yyr2 || yy2arr2 { 116549 r.WriteArrayElem() 116550 if false { 116551 } else { 116552 if z.EncBasicHandle().StringToRaw { 116553 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 116554 } else { 116555 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 116556 } 116557 } 116558 } else { 116559 r.WriteMapElemKey() 116560 if z.IsJSONHandle() { 116561 z.WriteStr("\"Region\"") 116562 } else { 116563 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 116564 } 116565 r.WriteMapElemValue() 116566 if false { 116567 } else { 116568 if z.EncBasicHandle().StringToRaw { 116569 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 116570 } else { 116571 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 116572 } 116573 } 116574 } 116575 if yyr2 || yy2arr2 { 116576 r.WriteArrayElem() 116577 if false { 116578 } else { 116579 if z.EncBasicHandle().StringToRaw { 116580 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 116581 } else { 116582 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 116583 } 116584 } 116585 } else { 116586 r.WriteMapElemKey() 116587 if z.IsJSONHandle() { 116588 z.WriteStr("\"Namespace\"") 116589 } else { 116590 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 116591 } 116592 r.WriteMapElemValue() 116593 if false { 116594 } else { 116595 if z.EncBasicHandle().StringToRaw { 116596 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 116597 } else { 116598 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 116599 } 116600 } 116601 } 116602 if yyr2 || yy2arr2 { 116603 r.WriteArrayElem() 116604 if false { 116605 } else { 116606 r.EncodeUint(uint64(x.MinQueryIndex)) 116607 } 116608 } else { 116609 r.WriteMapElemKey() 116610 if z.IsJSONHandle() { 116611 z.WriteStr("\"MinQueryIndex\"") 116612 } else { 116613 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 116614 } 116615 r.WriteMapElemValue() 116616 if false { 116617 } else { 116618 r.EncodeUint(uint64(x.MinQueryIndex)) 116619 } 116620 } 116621 if yyr2 || yy2arr2 { 116622 r.WriteArrayElem() 116623 if false { 116624 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 116625 z.EncExtension(x.MaxQueryTime, yyxt16) 116626 } else { 116627 r.EncodeInt(int64(x.MaxQueryTime)) 116628 } 116629 } else { 116630 r.WriteMapElemKey() 116631 if z.IsJSONHandle() { 116632 z.WriteStr("\"MaxQueryTime\"") 116633 } else { 116634 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 116635 } 116636 r.WriteMapElemValue() 116637 if false { 116638 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 116639 z.EncExtension(x.MaxQueryTime, yyxt17) 116640 } else { 116641 r.EncodeInt(int64(x.MaxQueryTime)) 116642 } 116643 } 116644 if yyr2 || yy2arr2 { 116645 r.WriteArrayElem() 116646 if false { 116647 } else { 116648 r.EncodeBool(bool(x.AllowStale)) 116649 } 116650 } else { 116651 r.WriteMapElemKey() 116652 if z.IsJSONHandle() { 116653 z.WriteStr("\"AllowStale\"") 116654 } else { 116655 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 116656 } 116657 r.WriteMapElemValue() 116658 if false { 116659 } else { 116660 r.EncodeBool(bool(x.AllowStale)) 116661 } 116662 } 116663 if yyr2 || yy2arr2 { 116664 r.WriteArrayElem() 116665 if false { 116666 } else { 116667 if z.EncBasicHandle().StringToRaw { 116668 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 116669 } else { 116670 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 116671 } 116672 } 116673 } else { 116674 r.WriteMapElemKey() 116675 if z.IsJSONHandle() { 116676 z.WriteStr("\"Prefix\"") 116677 } else { 116678 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 116679 } 116680 r.WriteMapElemValue() 116681 if false { 116682 } else { 116683 if z.EncBasicHandle().StringToRaw { 116684 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 116685 } else { 116686 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 116687 } 116688 } 116689 } 116690 if yyr2 || yy2arr2 { 116691 r.WriteArrayElem() 116692 if false { 116693 } else { 116694 if z.EncBasicHandle().StringToRaw { 116695 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 116696 } else { 116697 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 116698 } 116699 } 116700 } else { 116701 r.WriteMapElemKey() 116702 if z.IsJSONHandle() { 116703 z.WriteStr("\"AuthToken\"") 116704 } else { 116705 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 116706 } 116707 r.WriteMapElemValue() 116708 if false { 116709 } else { 116710 if z.EncBasicHandle().StringToRaw { 116711 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 116712 } else { 116713 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 116714 } 116715 } 116716 } 116717 if yyr2 || yy2arr2 { 116718 r.WriteArrayElem() 116719 if false { 116720 } else { 116721 r.EncodeBool(bool(x.Forwarded)) 116722 } 116723 } else { 116724 r.WriteMapElemKey() 116725 if z.IsJSONHandle() { 116726 z.WriteStr("\"Forwarded\"") 116727 } else { 116728 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 116729 } 116730 r.WriteMapElemValue() 116731 if false { 116732 } else { 116733 r.EncodeBool(bool(x.Forwarded)) 116734 } 116735 } 116736 if yyr2 || yy2arr2 { 116737 r.WriteArrayEnd() 116738 } else { 116739 r.WriteMapEnd() 116740 } 116741 } 116742 } 116743 } 116744 116745 func (x *ACLTokenListRequest) CodecDecodeSelf(d *codec1978.Decoder) { 116746 var h codecSelfer100 116747 z, r := codec1978.GenHelperDecoder(d) 116748 _, _, _ = h, z, r 116749 if false { 116750 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 116751 z.DecExtension(x, yyxt1) 116752 } else { 116753 yyct2 := r.ContainerType() 116754 if yyct2 == codecSelferValueTypeMap100 { 116755 yyl2 := r.ReadMapStart() 116756 if yyl2 == 0 { 116757 r.ReadMapEnd() 116758 } else { 116759 x.codecDecodeSelfFromMap(yyl2, d) 116760 } 116761 } else if yyct2 == codecSelferValueTypeArray100 { 116762 yyl2 := r.ReadArrayStart() 116763 if yyl2 == 0 { 116764 r.ReadArrayEnd() 116765 } else { 116766 x.codecDecodeSelfFromArray(yyl2, d) 116767 } 116768 } else { 116769 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 116770 } 116771 } 116772 } 116773 116774 func (x *ACLTokenListRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 116775 var h codecSelfer100 116776 z, r := codec1978.GenHelperDecoder(d) 116777 _, _, _ = h, z, r 116778 var yyhl3 bool = l >= 0 116779 for yyj3 := 0; ; yyj3++ { 116780 if yyhl3 { 116781 if yyj3 >= l { 116782 break 116783 } 116784 } else { 116785 if r.CheckBreak() { 116786 break 116787 } 116788 } 116789 r.ReadMapElemKey() 116790 yys3 := z.StringView(r.DecodeStringAsBytes()) 116791 r.ReadMapElemValue() 116792 switch yys3 { 116793 case "GlobalOnly": 116794 if r.TryDecodeAsNil() { 116795 x.GlobalOnly = false 116796 } else { 116797 x.GlobalOnly = (bool)(r.DecodeBool()) 116798 } 116799 case "Region": 116800 if r.TryDecodeAsNil() { 116801 x.QueryOptions.Region = "" 116802 } else { 116803 x.Region = (string)(r.DecodeString()) 116804 } 116805 case "Namespace": 116806 if r.TryDecodeAsNil() { 116807 x.QueryOptions.Namespace = "" 116808 } else { 116809 x.Namespace = (string)(r.DecodeString()) 116810 } 116811 case "MinQueryIndex": 116812 if r.TryDecodeAsNil() { 116813 x.QueryOptions.MinQueryIndex = 0 116814 } else { 116815 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 116816 } 116817 case "MaxQueryTime": 116818 if r.TryDecodeAsNil() { 116819 x.QueryOptions.MaxQueryTime = 0 116820 } else { 116821 if false { 116822 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 116823 z.DecExtension(x.MaxQueryTime, yyxt9) 116824 } else { 116825 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 116826 } 116827 } 116828 case "AllowStale": 116829 if r.TryDecodeAsNil() { 116830 x.QueryOptions.AllowStale = false 116831 } else { 116832 x.AllowStale = (bool)(r.DecodeBool()) 116833 } 116834 case "Prefix": 116835 if r.TryDecodeAsNil() { 116836 x.QueryOptions.Prefix = "" 116837 } else { 116838 x.Prefix = (string)(r.DecodeString()) 116839 } 116840 case "AuthToken": 116841 if r.TryDecodeAsNil() { 116842 x.QueryOptions.AuthToken = "" 116843 } else { 116844 x.AuthToken = (string)(r.DecodeString()) 116845 } 116846 case "Forwarded": 116847 if r.TryDecodeAsNil() { 116848 x.QueryOptions.InternalRpcInfo.Forwarded = false 116849 } else { 116850 x.Forwarded = (bool)(r.DecodeBool()) 116851 } 116852 default: 116853 z.DecStructFieldNotFound(-1, yys3) 116854 } // end switch yys3 116855 } // end for yyj3 116856 r.ReadMapEnd() 116857 } 116858 116859 func (x *ACLTokenListRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 116860 var h codecSelfer100 116861 z, r := codec1978.GenHelperDecoder(d) 116862 _, _, _ = h, z, r 116863 var yyj14 int 116864 var yyb14 bool 116865 var yyhl14 bool = l >= 0 116866 yyj14++ 116867 if yyhl14 { 116868 yyb14 = yyj14 > l 116869 } else { 116870 yyb14 = r.CheckBreak() 116871 } 116872 if yyb14 { 116873 r.ReadArrayEnd() 116874 return 116875 } 116876 r.ReadArrayElem() 116877 if r.TryDecodeAsNil() { 116878 x.GlobalOnly = false 116879 } else { 116880 x.GlobalOnly = (bool)(r.DecodeBool()) 116881 } 116882 yyj14++ 116883 if yyhl14 { 116884 yyb14 = yyj14 > l 116885 } else { 116886 yyb14 = r.CheckBreak() 116887 } 116888 if yyb14 { 116889 r.ReadArrayEnd() 116890 return 116891 } 116892 r.ReadArrayElem() 116893 if r.TryDecodeAsNil() { 116894 x.QueryOptions.Region = "" 116895 } else { 116896 x.Region = (string)(r.DecodeString()) 116897 } 116898 yyj14++ 116899 if yyhl14 { 116900 yyb14 = yyj14 > l 116901 } else { 116902 yyb14 = r.CheckBreak() 116903 } 116904 if yyb14 { 116905 r.ReadArrayEnd() 116906 return 116907 } 116908 r.ReadArrayElem() 116909 if r.TryDecodeAsNil() { 116910 x.QueryOptions.Namespace = "" 116911 } else { 116912 x.Namespace = (string)(r.DecodeString()) 116913 } 116914 yyj14++ 116915 if yyhl14 { 116916 yyb14 = yyj14 > l 116917 } else { 116918 yyb14 = r.CheckBreak() 116919 } 116920 if yyb14 { 116921 r.ReadArrayEnd() 116922 return 116923 } 116924 r.ReadArrayElem() 116925 if r.TryDecodeAsNil() { 116926 x.QueryOptions.MinQueryIndex = 0 116927 } else { 116928 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 116929 } 116930 yyj14++ 116931 if yyhl14 { 116932 yyb14 = yyj14 > l 116933 } else { 116934 yyb14 = r.CheckBreak() 116935 } 116936 if yyb14 { 116937 r.ReadArrayEnd() 116938 return 116939 } 116940 r.ReadArrayElem() 116941 if r.TryDecodeAsNil() { 116942 x.QueryOptions.MaxQueryTime = 0 116943 } else { 116944 if false { 116945 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 116946 z.DecExtension(x.MaxQueryTime, yyxt20) 116947 } else { 116948 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 116949 } 116950 } 116951 yyj14++ 116952 if yyhl14 { 116953 yyb14 = yyj14 > l 116954 } else { 116955 yyb14 = r.CheckBreak() 116956 } 116957 if yyb14 { 116958 r.ReadArrayEnd() 116959 return 116960 } 116961 r.ReadArrayElem() 116962 if r.TryDecodeAsNil() { 116963 x.QueryOptions.AllowStale = false 116964 } else { 116965 x.AllowStale = (bool)(r.DecodeBool()) 116966 } 116967 yyj14++ 116968 if yyhl14 { 116969 yyb14 = yyj14 > l 116970 } else { 116971 yyb14 = r.CheckBreak() 116972 } 116973 if yyb14 { 116974 r.ReadArrayEnd() 116975 return 116976 } 116977 r.ReadArrayElem() 116978 if r.TryDecodeAsNil() { 116979 x.QueryOptions.Prefix = "" 116980 } else { 116981 x.Prefix = (string)(r.DecodeString()) 116982 } 116983 yyj14++ 116984 if yyhl14 { 116985 yyb14 = yyj14 > l 116986 } else { 116987 yyb14 = r.CheckBreak() 116988 } 116989 if yyb14 { 116990 r.ReadArrayEnd() 116991 return 116992 } 116993 r.ReadArrayElem() 116994 if r.TryDecodeAsNil() { 116995 x.QueryOptions.AuthToken = "" 116996 } else { 116997 x.AuthToken = (string)(r.DecodeString()) 116998 } 116999 yyj14++ 117000 if yyhl14 { 117001 yyb14 = yyj14 > l 117002 } else { 117003 yyb14 = r.CheckBreak() 117004 } 117005 if yyb14 { 117006 r.ReadArrayEnd() 117007 return 117008 } 117009 r.ReadArrayElem() 117010 if r.TryDecodeAsNil() { 117011 x.QueryOptions.InternalRpcInfo.Forwarded = false 117012 } else { 117013 x.Forwarded = (bool)(r.DecodeBool()) 117014 } 117015 for { 117016 yyj14++ 117017 if yyhl14 { 117018 yyb14 = yyj14 > l 117019 } else { 117020 yyb14 = r.CheckBreak() 117021 } 117022 if yyb14 { 117023 break 117024 } 117025 r.ReadArrayElem() 117026 z.DecStructFieldNotFound(yyj14-1, "") 117027 } 117028 r.ReadArrayEnd() 117029 } 117030 117031 func (x *ACLTokenSpecificRequest) CodecEncodeSelf(e *codec1978.Encoder) { 117032 var h codecSelfer100 117033 z, r := codec1978.GenHelperEncoder(e) 117034 _, _, _ = h, z, r 117035 if x == nil { 117036 r.EncodeNil() 117037 } else { 117038 if false { 117039 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117040 z.EncExtension(x, yyxt1) 117041 } else { 117042 yysep2 := !z.EncBinary() 117043 yy2arr2 := z.EncBasicHandle().StructToArray 117044 _, _ = yysep2, yy2arr2 117045 const yyr2 bool = false // struct tag has 'toArray' 117046 if yyr2 || yy2arr2 { 117047 r.WriteArrayStart(9) 117048 } else { 117049 r.WriteMapStart(9) 117050 } 117051 if yyr2 || yy2arr2 { 117052 r.WriteArrayElem() 117053 if false { 117054 } else { 117055 if z.EncBasicHandle().StringToRaw { 117056 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 117057 } else { 117058 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 117059 } 117060 } 117061 } else { 117062 r.WriteMapElemKey() 117063 if z.IsJSONHandle() { 117064 z.WriteStr("\"AccessorID\"") 117065 } else { 117066 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorID`) 117067 } 117068 r.WriteMapElemValue() 117069 if false { 117070 } else { 117071 if z.EncBasicHandle().StringToRaw { 117072 r.EncodeStringBytesRaw(z.BytesView(string(x.AccessorID))) 117073 } else { 117074 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AccessorID)) 117075 } 117076 } 117077 } 117078 if yyr2 || yy2arr2 { 117079 r.WriteArrayElem() 117080 if false { 117081 } else { 117082 if z.EncBasicHandle().StringToRaw { 117083 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117084 } else { 117085 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117086 } 117087 } 117088 } else { 117089 r.WriteMapElemKey() 117090 if z.IsJSONHandle() { 117091 z.WriteStr("\"Region\"") 117092 } else { 117093 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 117094 } 117095 r.WriteMapElemValue() 117096 if false { 117097 } else { 117098 if z.EncBasicHandle().StringToRaw { 117099 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117100 } else { 117101 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117102 } 117103 } 117104 } 117105 if yyr2 || yy2arr2 { 117106 r.WriteArrayElem() 117107 if false { 117108 } else { 117109 if z.EncBasicHandle().StringToRaw { 117110 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117111 } else { 117112 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117113 } 117114 } 117115 } else { 117116 r.WriteMapElemKey() 117117 if z.IsJSONHandle() { 117118 z.WriteStr("\"Namespace\"") 117119 } else { 117120 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 117121 } 117122 r.WriteMapElemValue() 117123 if false { 117124 } else { 117125 if z.EncBasicHandle().StringToRaw { 117126 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117127 } else { 117128 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117129 } 117130 } 117131 } 117132 if yyr2 || yy2arr2 { 117133 r.WriteArrayElem() 117134 if false { 117135 } else { 117136 r.EncodeUint(uint64(x.MinQueryIndex)) 117137 } 117138 } else { 117139 r.WriteMapElemKey() 117140 if z.IsJSONHandle() { 117141 z.WriteStr("\"MinQueryIndex\"") 117142 } else { 117143 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 117144 } 117145 r.WriteMapElemValue() 117146 if false { 117147 } else { 117148 r.EncodeUint(uint64(x.MinQueryIndex)) 117149 } 117150 } 117151 if yyr2 || yy2arr2 { 117152 r.WriteArrayElem() 117153 if false { 117154 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 117155 z.EncExtension(x.MaxQueryTime, yyxt16) 117156 } else { 117157 r.EncodeInt(int64(x.MaxQueryTime)) 117158 } 117159 } else { 117160 r.WriteMapElemKey() 117161 if z.IsJSONHandle() { 117162 z.WriteStr("\"MaxQueryTime\"") 117163 } else { 117164 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 117165 } 117166 r.WriteMapElemValue() 117167 if false { 117168 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 117169 z.EncExtension(x.MaxQueryTime, yyxt17) 117170 } else { 117171 r.EncodeInt(int64(x.MaxQueryTime)) 117172 } 117173 } 117174 if yyr2 || yy2arr2 { 117175 r.WriteArrayElem() 117176 if false { 117177 } else { 117178 r.EncodeBool(bool(x.AllowStale)) 117179 } 117180 } else { 117181 r.WriteMapElemKey() 117182 if z.IsJSONHandle() { 117183 z.WriteStr("\"AllowStale\"") 117184 } else { 117185 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 117186 } 117187 r.WriteMapElemValue() 117188 if false { 117189 } else { 117190 r.EncodeBool(bool(x.AllowStale)) 117191 } 117192 } 117193 if yyr2 || yy2arr2 { 117194 r.WriteArrayElem() 117195 if false { 117196 } else { 117197 if z.EncBasicHandle().StringToRaw { 117198 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117199 } else { 117200 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117201 } 117202 } 117203 } else { 117204 r.WriteMapElemKey() 117205 if z.IsJSONHandle() { 117206 z.WriteStr("\"Prefix\"") 117207 } else { 117208 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 117209 } 117210 r.WriteMapElemValue() 117211 if false { 117212 } else { 117213 if z.EncBasicHandle().StringToRaw { 117214 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117215 } else { 117216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117217 } 117218 } 117219 } 117220 if yyr2 || yy2arr2 { 117221 r.WriteArrayElem() 117222 if false { 117223 } else { 117224 if z.EncBasicHandle().StringToRaw { 117225 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117226 } else { 117227 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117228 } 117229 } 117230 } else { 117231 r.WriteMapElemKey() 117232 if z.IsJSONHandle() { 117233 z.WriteStr("\"AuthToken\"") 117234 } else { 117235 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 117236 } 117237 r.WriteMapElemValue() 117238 if false { 117239 } else { 117240 if z.EncBasicHandle().StringToRaw { 117241 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117242 } else { 117243 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117244 } 117245 } 117246 } 117247 if yyr2 || yy2arr2 { 117248 r.WriteArrayElem() 117249 if false { 117250 } else { 117251 r.EncodeBool(bool(x.Forwarded)) 117252 } 117253 } else { 117254 r.WriteMapElemKey() 117255 if z.IsJSONHandle() { 117256 z.WriteStr("\"Forwarded\"") 117257 } else { 117258 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 117259 } 117260 r.WriteMapElemValue() 117261 if false { 117262 } else { 117263 r.EncodeBool(bool(x.Forwarded)) 117264 } 117265 } 117266 if yyr2 || yy2arr2 { 117267 r.WriteArrayEnd() 117268 } else { 117269 r.WriteMapEnd() 117270 } 117271 } 117272 } 117273 } 117274 117275 func (x *ACLTokenSpecificRequest) CodecDecodeSelf(d *codec1978.Decoder) { 117276 var h codecSelfer100 117277 z, r := codec1978.GenHelperDecoder(d) 117278 _, _, _ = h, z, r 117279 if false { 117280 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117281 z.DecExtension(x, yyxt1) 117282 } else { 117283 yyct2 := r.ContainerType() 117284 if yyct2 == codecSelferValueTypeMap100 { 117285 yyl2 := r.ReadMapStart() 117286 if yyl2 == 0 { 117287 r.ReadMapEnd() 117288 } else { 117289 x.codecDecodeSelfFromMap(yyl2, d) 117290 } 117291 } else if yyct2 == codecSelferValueTypeArray100 { 117292 yyl2 := r.ReadArrayStart() 117293 if yyl2 == 0 { 117294 r.ReadArrayEnd() 117295 } else { 117296 x.codecDecodeSelfFromArray(yyl2, d) 117297 } 117298 } else { 117299 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 117300 } 117301 } 117302 } 117303 117304 func (x *ACLTokenSpecificRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 117305 var h codecSelfer100 117306 z, r := codec1978.GenHelperDecoder(d) 117307 _, _, _ = h, z, r 117308 var yyhl3 bool = l >= 0 117309 for yyj3 := 0; ; yyj3++ { 117310 if yyhl3 { 117311 if yyj3 >= l { 117312 break 117313 } 117314 } else { 117315 if r.CheckBreak() { 117316 break 117317 } 117318 } 117319 r.ReadMapElemKey() 117320 yys3 := z.StringView(r.DecodeStringAsBytes()) 117321 r.ReadMapElemValue() 117322 switch yys3 { 117323 case "AccessorID": 117324 if r.TryDecodeAsNil() { 117325 x.AccessorID = "" 117326 } else { 117327 x.AccessorID = (string)(r.DecodeString()) 117328 } 117329 case "Region": 117330 if r.TryDecodeAsNil() { 117331 x.QueryOptions.Region = "" 117332 } else { 117333 x.Region = (string)(r.DecodeString()) 117334 } 117335 case "Namespace": 117336 if r.TryDecodeAsNil() { 117337 x.QueryOptions.Namespace = "" 117338 } else { 117339 x.Namespace = (string)(r.DecodeString()) 117340 } 117341 case "MinQueryIndex": 117342 if r.TryDecodeAsNil() { 117343 x.QueryOptions.MinQueryIndex = 0 117344 } else { 117345 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117346 } 117347 case "MaxQueryTime": 117348 if r.TryDecodeAsNil() { 117349 x.QueryOptions.MaxQueryTime = 0 117350 } else { 117351 if false { 117352 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 117353 z.DecExtension(x.MaxQueryTime, yyxt9) 117354 } else { 117355 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 117356 } 117357 } 117358 case "AllowStale": 117359 if r.TryDecodeAsNil() { 117360 x.QueryOptions.AllowStale = false 117361 } else { 117362 x.AllowStale = (bool)(r.DecodeBool()) 117363 } 117364 case "Prefix": 117365 if r.TryDecodeAsNil() { 117366 x.QueryOptions.Prefix = "" 117367 } else { 117368 x.Prefix = (string)(r.DecodeString()) 117369 } 117370 case "AuthToken": 117371 if r.TryDecodeAsNil() { 117372 x.QueryOptions.AuthToken = "" 117373 } else { 117374 x.AuthToken = (string)(r.DecodeString()) 117375 } 117376 case "Forwarded": 117377 if r.TryDecodeAsNil() { 117378 x.QueryOptions.InternalRpcInfo.Forwarded = false 117379 } else { 117380 x.Forwarded = (bool)(r.DecodeBool()) 117381 } 117382 default: 117383 z.DecStructFieldNotFound(-1, yys3) 117384 } // end switch yys3 117385 } // end for yyj3 117386 r.ReadMapEnd() 117387 } 117388 117389 func (x *ACLTokenSpecificRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 117390 var h codecSelfer100 117391 z, r := codec1978.GenHelperDecoder(d) 117392 _, _, _ = h, z, r 117393 var yyj14 int 117394 var yyb14 bool 117395 var yyhl14 bool = l >= 0 117396 yyj14++ 117397 if yyhl14 { 117398 yyb14 = yyj14 > l 117399 } else { 117400 yyb14 = r.CheckBreak() 117401 } 117402 if yyb14 { 117403 r.ReadArrayEnd() 117404 return 117405 } 117406 r.ReadArrayElem() 117407 if r.TryDecodeAsNil() { 117408 x.AccessorID = "" 117409 } else { 117410 x.AccessorID = (string)(r.DecodeString()) 117411 } 117412 yyj14++ 117413 if yyhl14 { 117414 yyb14 = yyj14 > l 117415 } else { 117416 yyb14 = r.CheckBreak() 117417 } 117418 if yyb14 { 117419 r.ReadArrayEnd() 117420 return 117421 } 117422 r.ReadArrayElem() 117423 if r.TryDecodeAsNil() { 117424 x.QueryOptions.Region = "" 117425 } else { 117426 x.Region = (string)(r.DecodeString()) 117427 } 117428 yyj14++ 117429 if yyhl14 { 117430 yyb14 = yyj14 > l 117431 } else { 117432 yyb14 = r.CheckBreak() 117433 } 117434 if yyb14 { 117435 r.ReadArrayEnd() 117436 return 117437 } 117438 r.ReadArrayElem() 117439 if r.TryDecodeAsNil() { 117440 x.QueryOptions.Namespace = "" 117441 } else { 117442 x.Namespace = (string)(r.DecodeString()) 117443 } 117444 yyj14++ 117445 if yyhl14 { 117446 yyb14 = yyj14 > l 117447 } else { 117448 yyb14 = r.CheckBreak() 117449 } 117450 if yyb14 { 117451 r.ReadArrayEnd() 117452 return 117453 } 117454 r.ReadArrayElem() 117455 if r.TryDecodeAsNil() { 117456 x.QueryOptions.MinQueryIndex = 0 117457 } else { 117458 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117459 } 117460 yyj14++ 117461 if yyhl14 { 117462 yyb14 = yyj14 > l 117463 } else { 117464 yyb14 = r.CheckBreak() 117465 } 117466 if yyb14 { 117467 r.ReadArrayEnd() 117468 return 117469 } 117470 r.ReadArrayElem() 117471 if r.TryDecodeAsNil() { 117472 x.QueryOptions.MaxQueryTime = 0 117473 } else { 117474 if false { 117475 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 117476 z.DecExtension(x.MaxQueryTime, yyxt20) 117477 } else { 117478 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 117479 } 117480 } 117481 yyj14++ 117482 if yyhl14 { 117483 yyb14 = yyj14 > l 117484 } else { 117485 yyb14 = r.CheckBreak() 117486 } 117487 if yyb14 { 117488 r.ReadArrayEnd() 117489 return 117490 } 117491 r.ReadArrayElem() 117492 if r.TryDecodeAsNil() { 117493 x.QueryOptions.AllowStale = false 117494 } else { 117495 x.AllowStale = (bool)(r.DecodeBool()) 117496 } 117497 yyj14++ 117498 if yyhl14 { 117499 yyb14 = yyj14 > l 117500 } else { 117501 yyb14 = r.CheckBreak() 117502 } 117503 if yyb14 { 117504 r.ReadArrayEnd() 117505 return 117506 } 117507 r.ReadArrayElem() 117508 if r.TryDecodeAsNil() { 117509 x.QueryOptions.Prefix = "" 117510 } else { 117511 x.Prefix = (string)(r.DecodeString()) 117512 } 117513 yyj14++ 117514 if yyhl14 { 117515 yyb14 = yyj14 > l 117516 } else { 117517 yyb14 = r.CheckBreak() 117518 } 117519 if yyb14 { 117520 r.ReadArrayEnd() 117521 return 117522 } 117523 r.ReadArrayElem() 117524 if r.TryDecodeAsNil() { 117525 x.QueryOptions.AuthToken = "" 117526 } else { 117527 x.AuthToken = (string)(r.DecodeString()) 117528 } 117529 yyj14++ 117530 if yyhl14 { 117531 yyb14 = yyj14 > l 117532 } else { 117533 yyb14 = r.CheckBreak() 117534 } 117535 if yyb14 { 117536 r.ReadArrayEnd() 117537 return 117538 } 117539 r.ReadArrayElem() 117540 if r.TryDecodeAsNil() { 117541 x.QueryOptions.InternalRpcInfo.Forwarded = false 117542 } else { 117543 x.Forwarded = (bool)(r.DecodeBool()) 117544 } 117545 for { 117546 yyj14++ 117547 if yyhl14 { 117548 yyb14 = yyj14 > l 117549 } else { 117550 yyb14 = r.CheckBreak() 117551 } 117552 if yyb14 { 117553 break 117554 } 117555 r.ReadArrayElem() 117556 z.DecStructFieldNotFound(yyj14-1, "") 117557 } 117558 r.ReadArrayEnd() 117559 } 117560 117561 func (x *ACLTokenSetRequest) CodecEncodeSelf(e *codec1978.Encoder) { 117562 var h codecSelfer100 117563 z, r := codec1978.GenHelperEncoder(e) 117564 _, _, _ = h, z, r 117565 if x == nil { 117566 r.EncodeNil() 117567 } else { 117568 if false { 117569 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117570 z.EncExtension(x, yyxt1) 117571 } else { 117572 yysep2 := !z.EncBinary() 117573 yy2arr2 := z.EncBasicHandle().StructToArray 117574 _, _ = yysep2, yy2arr2 117575 const yyr2 bool = false // struct tag has 'toArray' 117576 if yyr2 || yy2arr2 { 117577 r.WriteArrayStart(9) 117578 } else { 117579 r.WriteMapStart(9) 117580 } 117581 if yyr2 || yy2arr2 { 117582 r.WriteArrayElem() 117583 if x.AccessorIDS == nil { 117584 r.EncodeNil() 117585 } else { 117586 if false { 117587 } else { 117588 z.F.EncSliceStringV(x.AccessorIDS, e) 117589 } 117590 } 117591 } else { 117592 r.WriteMapElemKey() 117593 if z.IsJSONHandle() { 117594 z.WriteStr("\"AccessorIDS\"") 117595 } else { 117596 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDS`) 117597 } 117598 r.WriteMapElemValue() 117599 if x.AccessorIDS == nil { 117600 r.EncodeNil() 117601 } else { 117602 if false { 117603 } else { 117604 z.F.EncSliceStringV(x.AccessorIDS, e) 117605 } 117606 } 117607 } 117608 if yyr2 || yy2arr2 { 117609 r.WriteArrayElem() 117610 if false { 117611 } else { 117612 if z.EncBasicHandle().StringToRaw { 117613 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117614 } else { 117615 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117616 } 117617 } 117618 } else { 117619 r.WriteMapElemKey() 117620 if z.IsJSONHandle() { 117621 z.WriteStr("\"Region\"") 117622 } else { 117623 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 117624 } 117625 r.WriteMapElemValue() 117626 if false { 117627 } else { 117628 if z.EncBasicHandle().StringToRaw { 117629 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 117630 } else { 117631 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 117632 } 117633 } 117634 } 117635 if yyr2 || yy2arr2 { 117636 r.WriteArrayElem() 117637 if false { 117638 } else { 117639 if z.EncBasicHandle().StringToRaw { 117640 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117641 } else { 117642 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117643 } 117644 } 117645 } else { 117646 r.WriteMapElemKey() 117647 if z.IsJSONHandle() { 117648 z.WriteStr("\"Namespace\"") 117649 } else { 117650 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 117651 } 117652 r.WriteMapElemValue() 117653 if false { 117654 } else { 117655 if z.EncBasicHandle().StringToRaw { 117656 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 117657 } else { 117658 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 117659 } 117660 } 117661 } 117662 if yyr2 || yy2arr2 { 117663 r.WriteArrayElem() 117664 if false { 117665 } else { 117666 r.EncodeUint(uint64(x.MinQueryIndex)) 117667 } 117668 } else { 117669 r.WriteMapElemKey() 117670 if z.IsJSONHandle() { 117671 z.WriteStr("\"MinQueryIndex\"") 117672 } else { 117673 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 117674 } 117675 r.WriteMapElemValue() 117676 if false { 117677 } else { 117678 r.EncodeUint(uint64(x.MinQueryIndex)) 117679 } 117680 } 117681 if yyr2 || yy2arr2 { 117682 r.WriteArrayElem() 117683 if false { 117684 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 117685 z.EncExtension(x.MaxQueryTime, yyxt16) 117686 } else { 117687 r.EncodeInt(int64(x.MaxQueryTime)) 117688 } 117689 } else { 117690 r.WriteMapElemKey() 117691 if z.IsJSONHandle() { 117692 z.WriteStr("\"MaxQueryTime\"") 117693 } else { 117694 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 117695 } 117696 r.WriteMapElemValue() 117697 if false { 117698 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 117699 z.EncExtension(x.MaxQueryTime, yyxt17) 117700 } else { 117701 r.EncodeInt(int64(x.MaxQueryTime)) 117702 } 117703 } 117704 if yyr2 || yy2arr2 { 117705 r.WriteArrayElem() 117706 if false { 117707 } else { 117708 r.EncodeBool(bool(x.AllowStale)) 117709 } 117710 } else { 117711 r.WriteMapElemKey() 117712 if z.IsJSONHandle() { 117713 z.WriteStr("\"AllowStale\"") 117714 } else { 117715 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 117716 } 117717 r.WriteMapElemValue() 117718 if false { 117719 } else { 117720 r.EncodeBool(bool(x.AllowStale)) 117721 } 117722 } 117723 if yyr2 || yy2arr2 { 117724 r.WriteArrayElem() 117725 if false { 117726 } else { 117727 if z.EncBasicHandle().StringToRaw { 117728 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117729 } else { 117730 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117731 } 117732 } 117733 } else { 117734 r.WriteMapElemKey() 117735 if z.IsJSONHandle() { 117736 z.WriteStr("\"Prefix\"") 117737 } else { 117738 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 117739 } 117740 r.WriteMapElemValue() 117741 if false { 117742 } else { 117743 if z.EncBasicHandle().StringToRaw { 117744 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 117745 } else { 117746 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 117747 } 117748 } 117749 } 117750 if yyr2 || yy2arr2 { 117751 r.WriteArrayElem() 117752 if false { 117753 } else { 117754 if z.EncBasicHandle().StringToRaw { 117755 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117756 } else { 117757 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117758 } 117759 } 117760 } else { 117761 r.WriteMapElemKey() 117762 if z.IsJSONHandle() { 117763 z.WriteStr("\"AuthToken\"") 117764 } else { 117765 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 117766 } 117767 r.WriteMapElemValue() 117768 if false { 117769 } else { 117770 if z.EncBasicHandle().StringToRaw { 117771 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 117772 } else { 117773 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 117774 } 117775 } 117776 } 117777 if yyr2 || yy2arr2 { 117778 r.WriteArrayElem() 117779 if false { 117780 } else { 117781 r.EncodeBool(bool(x.Forwarded)) 117782 } 117783 } else { 117784 r.WriteMapElemKey() 117785 if z.IsJSONHandle() { 117786 z.WriteStr("\"Forwarded\"") 117787 } else { 117788 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 117789 } 117790 r.WriteMapElemValue() 117791 if false { 117792 } else { 117793 r.EncodeBool(bool(x.Forwarded)) 117794 } 117795 } 117796 if yyr2 || yy2arr2 { 117797 r.WriteArrayEnd() 117798 } else { 117799 r.WriteMapEnd() 117800 } 117801 } 117802 } 117803 } 117804 117805 func (x *ACLTokenSetRequest) CodecDecodeSelf(d *codec1978.Decoder) { 117806 var h codecSelfer100 117807 z, r := codec1978.GenHelperDecoder(d) 117808 _, _, _ = h, z, r 117809 if false { 117810 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 117811 z.DecExtension(x, yyxt1) 117812 } else { 117813 yyct2 := r.ContainerType() 117814 if yyct2 == codecSelferValueTypeMap100 { 117815 yyl2 := r.ReadMapStart() 117816 if yyl2 == 0 { 117817 r.ReadMapEnd() 117818 } else { 117819 x.codecDecodeSelfFromMap(yyl2, d) 117820 } 117821 } else if yyct2 == codecSelferValueTypeArray100 { 117822 yyl2 := r.ReadArrayStart() 117823 if yyl2 == 0 { 117824 r.ReadArrayEnd() 117825 } else { 117826 x.codecDecodeSelfFromArray(yyl2, d) 117827 } 117828 } else { 117829 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 117830 } 117831 } 117832 } 117833 117834 func (x *ACLTokenSetRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 117835 var h codecSelfer100 117836 z, r := codec1978.GenHelperDecoder(d) 117837 _, _, _ = h, z, r 117838 var yyhl3 bool = l >= 0 117839 for yyj3 := 0; ; yyj3++ { 117840 if yyhl3 { 117841 if yyj3 >= l { 117842 break 117843 } 117844 } else { 117845 if r.CheckBreak() { 117846 break 117847 } 117848 } 117849 r.ReadMapElemKey() 117850 yys3 := z.StringView(r.DecodeStringAsBytes()) 117851 r.ReadMapElemValue() 117852 switch yys3 { 117853 case "AccessorIDS": 117854 if r.TryDecodeAsNil() { 117855 x.AccessorIDS = nil 117856 } else { 117857 if false { 117858 } else { 117859 z.F.DecSliceStringX(&x.AccessorIDS, d) 117860 } 117861 } 117862 case "Region": 117863 if r.TryDecodeAsNil() { 117864 x.QueryOptions.Region = "" 117865 } else { 117866 x.Region = (string)(r.DecodeString()) 117867 } 117868 case "Namespace": 117869 if r.TryDecodeAsNil() { 117870 x.QueryOptions.Namespace = "" 117871 } else { 117872 x.Namespace = (string)(r.DecodeString()) 117873 } 117874 case "MinQueryIndex": 117875 if r.TryDecodeAsNil() { 117876 x.QueryOptions.MinQueryIndex = 0 117877 } else { 117878 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117879 } 117880 case "MaxQueryTime": 117881 if r.TryDecodeAsNil() { 117882 x.QueryOptions.MaxQueryTime = 0 117883 } else { 117884 if false { 117885 } else if yyxt10 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt10 != nil { 117886 z.DecExtension(x.MaxQueryTime, yyxt10) 117887 } else { 117888 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 117889 } 117890 } 117891 case "AllowStale": 117892 if r.TryDecodeAsNil() { 117893 x.QueryOptions.AllowStale = false 117894 } else { 117895 x.AllowStale = (bool)(r.DecodeBool()) 117896 } 117897 case "Prefix": 117898 if r.TryDecodeAsNil() { 117899 x.QueryOptions.Prefix = "" 117900 } else { 117901 x.Prefix = (string)(r.DecodeString()) 117902 } 117903 case "AuthToken": 117904 if r.TryDecodeAsNil() { 117905 x.QueryOptions.AuthToken = "" 117906 } else { 117907 x.AuthToken = (string)(r.DecodeString()) 117908 } 117909 case "Forwarded": 117910 if r.TryDecodeAsNil() { 117911 x.QueryOptions.InternalRpcInfo.Forwarded = false 117912 } else { 117913 x.Forwarded = (bool)(r.DecodeBool()) 117914 } 117915 default: 117916 z.DecStructFieldNotFound(-1, yys3) 117917 } // end switch yys3 117918 } // end for yyj3 117919 r.ReadMapEnd() 117920 } 117921 117922 func (x *ACLTokenSetRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 117923 var h codecSelfer100 117924 z, r := codec1978.GenHelperDecoder(d) 117925 _, _, _ = h, z, r 117926 var yyj15 int 117927 var yyb15 bool 117928 var yyhl15 bool = l >= 0 117929 yyj15++ 117930 if yyhl15 { 117931 yyb15 = yyj15 > l 117932 } else { 117933 yyb15 = r.CheckBreak() 117934 } 117935 if yyb15 { 117936 r.ReadArrayEnd() 117937 return 117938 } 117939 r.ReadArrayElem() 117940 if r.TryDecodeAsNil() { 117941 x.AccessorIDS = nil 117942 } else { 117943 if false { 117944 } else { 117945 z.F.DecSliceStringX(&x.AccessorIDS, d) 117946 } 117947 } 117948 yyj15++ 117949 if yyhl15 { 117950 yyb15 = yyj15 > l 117951 } else { 117952 yyb15 = r.CheckBreak() 117953 } 117954 if yyb15 { 117955 r.ReadArrayEnd() 117956 return 117957 } 117958 r.ReadArrayElem() 117959 if r.TryDecodeAsNil() { 117960 x.QueryOptions.Region = "" 117961 } else { 117962 x.Region = (string)(r.DecodeString()) 117963 } 117964 yyj15++ 117965 if yyhl15 { 117966 yyb15 = yyj15 > l 117967 } else { 117968 yyb15 = r.CheckBreak() 117969 } 117970 if yyb15 { 117971 r.ReadArrayEnd() 117972 return 117973 } 117974 r.ReadArrayElem() 117975 if r.TryDecodeAsNil() { 117976 x.QueryOptions.Namespace = "" 117977 } else { 117978 x.Namespace = (string)(r.DecodeString()) 117979 } 117980 yyj15++ 117981 if yyhl15 { 117982 yyb15 = yyj15 > l 117983 } else { 117984 yyb15 = r.CheckBreak() 117985 } 117986 if yyb15 { 117987 r.ReadArrayEnd() 117988 return 117989 } 117990 r.ReadArrayElem() 117991 if r.TryDecodeAsNil() { 117992 x.QueryOptions.MinQueryIndex = 0 117993 } else { 117994 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 117995 } 117996 yyj15++ 117997 if yyhl15 { 117998 yyb15 = yyj15 > l 117999 } else { 118000 yyb15 = r.CheckBreak() 118001 } 118002 if yyb15 { 118003 r.ReadArrayEnd() 118004 return 118005 } 118006 r.ReadArrayElem() 118007 if r.TryDecodeAsNil() { 118008 x.QueryOptions.MaxQueryTime = 0 118009 } else { 118010 if false { 118011 } else if yyxt22 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt22 != nil { 118012 z.DecExtension(x.MaxQueryTime, yyxt22) 118013 } else { 118014 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 118015 } 118016 } 118017 yyj15++ 118018 if yyhl15 { 118019 yyb15 = yyj15 > l 118020 } else { 118021 yyb15 = r.CheckBreak() 118022 } 118023 if yyb15 { 118024 r.ReadArrayEnd() 118025 return 118026 } 118027 r.ReadArrayElem() 118028 if r.TryDecodeAsNil() { 118029 x.QueryOptions.AllowStale = false 118030 } else { 118031 x.AllowStale = (bool)(r.DecodeBool()) 118032 } 118033 yyj15++ 118034 if yyhl15 { 118035 yyb15 = yyj15 > l 118036 } else { 118037 yyb15 = r.CheckBreak() 118038 } 118039 if yyb15 { 118040 r.ReadArrayEnd() 118041 return 118042 } 118043 r.ReadArrayElem() 118044 if r.TryDecodeAsNil() { 118045 x.QueryOptions.Prefix = "" 118046 } else { 118047 x.Prefix = (string)(r.DecodeString()) 118048 } 118049 yyj15++ 118050 if yyhl15 { 118051 yyb15 = yyj15 > l 118052 } else { 118053 yyb15 = r.CheckBreak() 118054 } 118055 if yyb15 { 118056 r.ReadArrayEnd() 118057 return 118058 } 118059 r.ReadArrayElem() 118060 if r.TryDecodeAsNil() { 118061 x.QueryOptions.AuthToken = "" 118062 } else { 118063 x.AuthToken = (string)(r.DecodeString()) 118064 } 118065 yyj15++ 118066 if yyhl15 { 118067 yyb15 = yyj15 > l 118068 } else { 118069 yyb15 = r.CheckBreak() 118070 } 118071 if yyb15 { 118072 r.ReadArrayEnd() 118073 return 118074 } 118075 r.ReadArrayElem() 118076 if r.TryDecodeAsNil() { 118077 x.QueryOptions.InternalRpcInfo.Forwarded = false 118078 } else { 118079 x.Forwarded = (bool)(r.DecodeBool()) 118080 } 118081 for { 118082 yyj15++ 118083 if yyhl15 { 118084 yyb15 = yyj15 > l 118085 } else { 118086 yyb15 = r.CheckBreak() 118087 } 118088 if yyb15 { 118089 break 118090 } 118091 r.ReadArrayElem() 118092 z.DecStructFieldNotFound(yyj15-1, "") 118093 } 118094 r.ReadArrayEnd() 118095 } 118096 118097 func (x *ACLTokenListResponse) CodecEncodeSelf(e *codec1978.Encoder) { 118098 var h codecSelfer100 118099 z, r := codec1978.GenHelperEncoder(e) 118100 _, _, _ = h, z, r 118101 if x == nil { 118102 r.EncodeNil() 118103 } else { 118104 if false { 118105 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118106 z.EncExtension(x, yyxt1) 118107 } else { 118108 yysep2 := !z.EncBinary() 118109 yy2arr2 := z.EncBasicHandle().StructToArray 118110 _, _ = yysep2, yy2arr2 118111 const yyr2 bool = false // struct tag has 'toArray' 118112 if yyr2 || yy2arr2 { 118113 r.WriteArrayStart(4) 118114 } else { 118115 r.WriteMapStart(4) 118116 } 118117 if yyr2 || yy2arr2 { 118118 r.WriteArrayElem() 118119 if x.Tokens == nil { 118120 r.EncodeNil() 118121 } else { 118122 if false { 118123 } else { 118124 h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) 118125 } 118126 } 118127 } else { 118128 r.WriteMapElemKey() 118129 if z.IsJSONHandle() { 118130 z.WriteStr("\"Tokens\"") 118131 } else { 118132 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 118133 } 118134 r.WriteMapElemValue() 118135 if x.Tokens == nil { 118136 r.EncodeNil() 118137 } else { 118138 if false { 118139 } else { 118140 h.encSlicePtrtoACLTokenListStub(([]*ACLTokenListStub)(x.Tokens), e) 118141 } 118142 } 118143 } 118144 if yyr2 || yy2arr2 { 118145 r.WriteArrayElem() 118146 if false { 118147 } else { 118148 r.EncodeUint(uint64(x.Index)) 118149 } 118150 } else { 118151 r.WriteMapElemKey() 118152 if z.IsJSONHandle() { 118153 z.WriteStr("\"Index\"") 118154 } else { 118155 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 118156 } 118157 r.WriteMapElemValue() 118158 if false { 118159 } else { 118160 r.EncodeUint(uint64(x.Index)) 118161 } 118162 } 118163 if yyr2 || yy2arr2 { 118164 r.WriteArrayElem() 118165 if false { 118166 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 118167 z.EncExtension(x.LastContact, yyxt10) 118168 } else { 118169 r.EncodeInt(int64(x.LastContact)) 118170 } 118171 } else { 118172 r.WriteMapElemKey() 118173 if z.IsJSONHandle() { 118174 z.WriteStr("\"LastContact\"") 118175 } else { 118176 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 118177 } 118178 r.WriteMapElemValue() 118179 if false { 118180 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 118181 z.EncExtension(x.LastContact, yyxt11) 118182 } else { 118183 r.EncodeInt(int64(x.LastContact)) 118184 } 118185 } 118186 if yyr2 || yy2arr2 { 118187 r.WriteArrayElem() 118188 if false { 118189 } else { 118190 r.EncodeBool(bool(x.KnownLeader)) 118191 } 118192 } else { 118193 r.WriteMapElemKey() 118194 if z.IsJSONHandle() { 118195 z.WriteStr("\"KnownLeader\"") 118196 } else { 118197 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 118198 } 118199 r.WriteMapElemValue() 118200 if false { 118201 } else { 118202 r.EncodeBool(bool(x.KnownLeader)) 118203 } 118204 } 118205 if yyr2 || yy2arr2 { 118206 r.WriteArrayEnd() 118207 } else { 118208 r.WriteMapEnd() 118209 } 118210 } 118211 } 118212 } 118213 118214 func (x *ACLTokenListResponse) CodecDecodeSelf(d *codec1978.Decoder) { 118215 var h codecSelfer100 118216 z, r := codec1978.GenHelperDecoder(d) 118217 _, _, _ = h, z, r 118218 if false { 118219 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118220 z.DecExtension(x, yyxt1) 118221 } else { 118222 yyct2 := r.ContainerType() 118223 if yyct2 == codecSelferValueTypeMap100 { 118224 yyl2 := r.ReadMapStart() 118225 if yyl2 == 0 { 118226 r.ReadMapEnd() 118227 } else { 118228 x.codecDecodeSelfFromMap(yyl2, d) 118229 } 118230 } else if yyct2 == codecSelferValueTypeArray100 { 118231 yyl2 := r.ReadArrayStart() 118232 if yyl2 == 0 { 118233 r.ReadArrayEnd() 118234 } else { 118235 x.codecDecodeSelfFromArray(yyl2, d) 118236 } 118237 } else { 118238 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118239 } 118240 } 118241 } 118242 118243 func (x *ACLTokenListResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118244 var h codecSelfer100 118245 z, r := codec1978.GenHelperDecoder(d) 118246 _, _, _ = h, z, r 118247 var yyhl3 bool = l >= 0 118248 for yyj3 := 0; ; yyj3++ { 118249 if yyhl3 { 118250 if yyj3 >= l { 118251 break 118252 } 118253 } else { 118254 if r.CheckBreak() { 118255 break 118256 } 118257 } 118258 r.ReadMapElemKey() 118259 yys3 := z.StringView(r.DecodeStringAsBytes()) 118260 r.ReadMapElemValue() 118261 switch yys3 { 118262 case "Tokens": 118263 if r.TryDecodeAsNil() { 118264 x.Tokens = nil 118265 } else { 118266 if false { 118267 } else { 118268 h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) 118269 } 118270 } 118271 case "Index": 118272 if r.TryDecodeAsNil() { 118273 x.QueryMeta.Index = 0 118274 } else { 118275 x.Index = (uint64)(r.DecodeUint64()) 118276 } 118277 case "LastContact": 118278 if r.TryDecodeAsNil() { 118279 x.QueryMeta.LastContact = 0 118280 } else { 118281 if false { 118282 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 118283 z.DecExtension(x.LastContact, yyxt8) 118284 } else { 118285 x.LastContact = (time.Duration)(r.DecodeInt64()) 118286 } 118287 } 118288 case "KnownLeader": 118289 if r.TryDecodeAsNil() { 118290 x.QueryMeta.KnownLeader = false 118291 } else { 118292 x.KnownLeader = (bool)(r.DecodeBool()) 118293 } 118294 default: 118295 z.DecStructFieldNotFound(-1, yys3) 118296 } // end switch yys3 118297 } // end for yyj3 118298 r.ReadMapEnd() 118299 } 118300 118301 func (x *ACLTokenListResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118302 var h codecSelfer100 118303 z, r := codec1978.GenHelperDecoder(d) 118304 _, _, _ = h, z, r 118305 var yyj10 int 118306 var yyb10 bool 118307 var yyhl10 bool = l >= 0 118308 yyj10++ 118309 if yyhl10 { 118310 yyb10 = yyj10 > l 118311 } else { 118312 yyb10 = r.CheckBreak() 118313 } 118314 if yyb10 { 118315 r.ReadArrayEnd() 118316 return 118317 } 118318 r.ReadArrayElem() 118319 if r.TryDecodeAsNil() { 118320 x.Tokens = nil 118321 } else { 118322 if false { 118323 } else { 118324 h.decSlicePtrtoACLTokenListStub((*[]*ACLTokenListStub)(&x.Tokens), d) 118325 } 118326 } 118327 yyj10++ 118328 if yyhl10 { 118329 yyb10 = yyj10 > l 118330 } else { 118331 yyb10 = r.CheckBreak() 118332 } 118333 if yyb10 { 118334 r.ReadArrayEnd() 118335 return 118336 } 118337 r.ReadArrayElem() 118338 if r.TryDecodeAsNil() { 118339 x.QueryMeta.Index = 0 118340 } else { 118341 x.Index = (uint64)(r.DecodeUint64()) 118342 } 118343 yyj10++ 118344 if yyhl10 { 118345 yyb10 = yyj10 > l 118346 } else { 118347 yyb10 = r.CheckBreak() 118348 } 118349 if yyb10 { 118350 r.ReadArrayEnd() 118351 return 118352 } 118353 r.ReadArrayElem() 118354 if r.TryDecodeAsNil() { 118355 x.QueryMeta.LastContact = 0 118356 } else { 118357 if false { 118358 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 118359 z.DecExtension(x.LastContact, yyxt15) 118360 } else { 118361 x.LastContact = (time.Duration)(r.DecodeInt64()) 118362 } 118363 } 118364 yyj10++ 118365 if yyhl10 { 118366 yyb10 = yyj10 > l 118367 } else { 118368 yyb10 = r.CheckBreak() 118369 } 118370 if yyb10 { 118371 r.ReadArrayEnd() 118372 return 118373 } 118374 r.ReadArrayElem() 118375 if r.TryDecodeAsNil() { 118376 x.QueryMeta.KnownLeader = false 118377 } else { 118378 x.KnownLeader = (bool)(r.DecodeBool()) 118379 } 118380 for { 118381 yyj10++ 118382 if yyhl10 { 118383 yyb10 = yyj10 > l 118384 } else { 118385 yyb10 = r.CheckBreak() 118386 } 118387 if yyb10 { 118388 break 118389 } 118390 r.ReadArrayElem() 118391 z.DecStructFieldNotFound(yyj10-1, "") 118392 } 118393 r.ReadArrayEnd() 118394 } 118395 118396 func (x *SingleACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 118397 var h codecSelfer100 118398 z, r := codec1978.GenHelperEncoder(e) 118399 _, _, _ = h, z, r 118400 if x == nil { 118401 r.EncodeNil() 118402 } else { 118403 if false { 118404 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118405 z.EncExtension(x, yyxt1) 118406 } else { 118407 yysep2 := !z.EncBinary() 118408 yy2arr2 := z.EncBasicHandle().StructToArray 118409 _, _ = yysep2, yy2arr2 118410 const yyr2 bool = false // struct tag has 'toArray' 118411 if yyr2 || yy2arr2 { 118412 r.WriteArrayStart(4) 118413 } else { 118414 r.WriteMapStart(4) 118415 } 118416 var yyn3 bool 118417 if x.Token == nil { 118418 yyn3 = true 118419 goto LABEL3 118420 } 118421 LABEL3: 118422 if yyr2 || yy2arr2 { 118423 if yyn3 { 118424 r.WriteArrayElem() 118425 r.EncodeNil() 118426 } else { 118427 r.WriteArrayElem() 118428 if x.Token == nil { 118429 r.EncodeNil() 118430 } else { 118431 x.Token.CodecEncodeSelf(e) 118432 } 118433 } 118434 } else { 118435 r.WriteMapElemKey() 118436 if z.IsJSONHandle() { 118437 z.WriteStr("\"Token\"") 118438 } else { 118439 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 118440 } 118441 r.WriteMapElemValue() 118442 if yyn3 { 118443 r.EncodeNil() 118444 } else { 118445 if x.Token == nil { 118446 r.EncodeNil() 118447 } else { 118448 x.Token.CodecEncodeSelf(e) 118449 } 118450 } 118451 } 118452 if yyr2 || yy2arr2 { 118453 r.WriteArrayElem() 118454 if false { 118455 } else { 118456 r.EncodeUint(uint64(x.Index)) 118457 } 118458 } else { 118459 r.WriteMapElemKey() 118460 if z.IsJSONHandle() { 118461 z.WriteStr("\"Index\"") 118462 } else { 118463 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 118464 } 118465 r.WriteMapElemValue() 118466 if false { 118467 } else { 118468 r.EncodeUint(uint64(x.Index)) 118469 } 118470 } 118471 if yyr2 || yy2arr2 { 118472 r.WriteArrayElem() 118473 if false { 118474 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 118475 z.EncExtension(x.LastContact, yyxt10) 118476 } else { 118477 r.EncodeInt(int64(x.LastContact)) 118478 } 118479 } else { 118480 r.WriteMapElemKey() 118481 if z.IsJSONHandle() { 118482 z.WriteStr("\"LastContact\"") 118483 } else { 118484 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 118485 } 118486 r.WriteMapElemValue() 118487 if false { 118488 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 118489 z.EncExtension(x.LastContact, yyxt11) 118490 } else { 118491 r.EncodeInt(int64(x.LastContact)) 118492 } 118493 } 118494 if yyr2 || yy2arr2 { 118495 r.WriteArrayElem() 118496 if false { 118497 } else { 118498 r.EncodeBool(bool(x.KnownLeader)) 118499 } 118500 } else { 118501 r.WriteMapElemKey() 118502 if z.IsJSONHandle() { 118503 z.WriteStr("\"KnownLeader\"") 118504 } else { 118505 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 118506 } 118507 r.WriteMapElemValue() 118508 if false { 118509 } else { 118510 r.EncodeBool(bool(x.KnownLeader)) 118511 } 118512 } 118513 if yyr2 || yy2arr2 { 118514 r.WriteArrayEnd() 118515 } else { 118516 r.WriteMapEnd() 118517 } 118518 } 118519 } 118520 } 118521 118522 func (x *SingleACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 118523 var h codecSelfer100 118524 z, r := codec1978.GenHelperDecoder(d) 118525 _, _, _ = h, z, r 118526 if false { 118527 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118528 z.DecExtension(x, yyxt1) 118529 } else { 118530 yyct2 := r.ContainerType() 118531 if yyct2 == codecSelferValueTypeMap100 { 118532 yyl2 := r.ReadMapStart() 118533 if yyl2 == 0 { 118534 r.ReadMapEnd() 118535 } else { 118536 x.codecDecodeSelfFromMap(yyl2, d) 118537 } 118538 } else if yyct2 == codecSelferValueTypeArray100 { 118539 yyl2 := r.ReadArrayStart() 118540 if yyl2 == 0 { 118541 r.ReadArrayEnd() 118542 } else { 118543 x.codecDecodeSelfFromArray(yyl2, d) 118544 } 118545 } else { 118546 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118547 } 118548 } 118549 } 118550 118551 func (x *SingleACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118552 var h codecSelfer100 118553 z, r := codec1978.GenHelperDecoder(d) 118554 _, _, _ = h, z, r 118555 var yyhl3 bool = l >= 0 118556 for yyj3 := 0; ; yyj3++ { 118557 if yyhl3 { 118558 if yyj3 >= l { 118559 break 118560 } 118561 } else { 118562 if r.CheckBreak() { 118563 break 118564 } 118565 } 118566 r.ReadMapElemKey() 118567 yys3 := z.StringView(r.DecodeStringAsBytes()) 118568 r.ReadMapElemValue() 118569 switch yys3 { 118570 case "Token": 118571 if r.TryDecodeAsNil() { 118572 if true && x.Token != nil { 118573 x.Token = nil 118574 } 118575 } else { 118576 if x.Token == nil { 118577 x.Token = new(ACLToken) 118578 } 118579 118580 x.Token.CodecDecodeSelf(d) 118581 } 118582 case "Index": 118583 if r.TryDecodeAsNil() { 118584 x.QueryMeta.Index = 0 118585 } else { 118586 x.Index = (uint64)(r.DecodeUint64()) 118587 } 118588 case "LastContact": 118589 if r.TryDecodeAsNil() { 118590 x.QueryMeta.LastContact = 0 118591 } else { 118592 if false { 118593 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 118594 z.DecExtension(x.LastContact, yyxt7) 118595 } else { 118596 x.LastContact = (time.Duration)(r.DecodeInt64()) 118597 } 118598 } 118599 case "KnownLeader": 118600 if r.TryDecodeAsNil() { 118601 x.QueryMeta.KnownLeader = false 118602 } else { 118603 x.KnownLeader = (bool)(r.DecodeBool()) 118604 } 118605 default: 118606 z.DecStructFieldNotFound(-1, yys3) 118607 } // end switch yys3 118608 } // end for yyj3 118609 r.ReadMapEnd() 118610 } 118611 118612 func (x *SingleACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118613 var h codecSelfer100 118614 z, r := codec1978.GenHelperDecoder(d) 118615 _, _, _ = h, z, r 118616 var yyj9 int 118617 var yyb9 bool 118618 var yyhl9 bool = l >= 0 118619 yyj9++ 118620 if yyhl9 { 118621 yyb9 = yyj9 > l 118622 } else { 118623 yyb9 = r.CheckBreak() 118624 } 118625 if yyb9 { 118626 r.ReadArrayEnd() 118627 return 118628 } 118629 r.ReadArrayElem() 118630 if r.TryDecodeAsNil() { 118631 if true && x.Token != nil { 118632 x.Token = nil 118633 } 118634 } else { 118635 if x.Token == nil { 118636 x.Token = new(ACLToken) 118637 } 118638 118639 x.Token.CodecDecodeSelf(d) 118640 } 118641 yyj9++ 118642 if yyhl9 { 118643 yyb9 = yyj9 > l 118644 } else { 118645 yyb9 = r.CheckBreak() 118646 } 118647 if yyb9 { 118648 r.ReadArrayEnd() 118649 return 118650 } 118651 r.ReadArrayElem() 118652 if r.TryDecodeAsNil() { 118653 x.QueryMeta.Index = 0 118654 } else { 118655 x.Index = (uint64)(r.DecodeUint64()) 118656 } 118657 yyj9++ 118658 if yyhl9 { 118659 yyb9 = yyj9 > l 118660 } else { 118661 yyb9 = r.CheckBreak() 118662 } 118663 if yyb9 { 118664 r.ReadArrayEnd() 118665 return 118666 } 118667 r.ReadArrayElem() 118668 if r.TryDecodeAsNil() { 118669 x.QueryMeta.LastContact = 0 118670 } else { 118671 if false { 118672 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 118673 z.DecExtension(x.LastContact, yyxt13) 118674 } else { 118675 x.LastContact = (time.Duration)(r.DecodeInt64()) 118676 } 118677 } 118678 yyj9++ 118679 if yyhl9 { 118680 yyb9 = yyj9 > l 118681 } else { 118682 yyb9 = r.CheckBreak() 118683 } 118684 if yyb9 { 118685 r.ReadArrayEnd() 118686 return 118687 } 118688 r.ReadArrayElem() 118689 if r.TryDecodeAsNil() { 118690 x.QueryMeta.KnownLeader = false 118691 } else { 118692 x.KnownLeader = (bool)(r.DecodeBool()) 118693 } 118694 for { 118695 yyj9++ 118696 if yyhl9 { 118697 yyb9 = yyj9 > l 118698 } else { 118699 yyb9 = r.CheckBreak() 118700 } 118701 if yyb9 { 118702 break 118703 } 118704 r.ReadArrayElem() 118705 z.DecStructFieldNotFound(yyj9-1, "") 118706 } 118707 r.ReadArrayEnd() 118708 } 118709 118710 func (x *ACLTokenSetResponse) CodecEncodeSelf(e *codec1978.Encoder) { 118711 var h codecSelfer100 118712 z, r := codec1978.GenHelperEncoder(e) 118713 _, _, _ = h, z, r 118714 if x == nil { 118715 r.EncodeNil() 118716 } else { 118717 if false { 118718 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118719 z.EncExtension(x, yyxt1) 118720 } else { 118721 yysep2 := !z.EncBinary() 118722 yy2arr2 := z.EncBasicHandle().StructToArray 118723 _, _ = yysep2, yy2arr2 118724 const yyr2 bool = false // struct tag has 'toArray' 118725 if yyr2 || yy2arr2 { 118726 r.WriteArrayStart(4) 118727 } else { 118728 r.WriteMapStart(4) 118729 } 118730 if yyr2 || yy2arr2 { 118731 r.WriteArrayElem() 118732 if x.Tokens == nil { 118733 r.EncodeNil() 118734 } else { 118735 if false { 118736 } else { 118737 h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) 118738 } 118739 } 118740 } else { 118741 r.WriteMapElemKey() 118742 if z.IsJSONHandle() { 118743 z.WriteStr("\"Tokens\"") 118744 } else { 118745 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 118746 } 118747 r.WriteMapElemValue() 118748 if x.Tokens == nil { 118749 r.EncodeNil() 118750 } else { 118751 if false { 118752 } else { 118753 h.encMapstringPtrtoACLToken((map[string]*ACLToken)(x.Tokens), e) 118754 } 118755 } 118756 } 118757 if yyr2 || yy2arr2 { 118758 r.WriteArrayElem() 118759 if false { 118760 } else { 118761 r.EncodeUint(uint64(x.Index)) 118762 } 118763 } else { 118764 r.WriteMapElemKey() 118765 if z.IsJSONHandle() { 118766 z.WriteStr("\"Index\"") 118767 } else { 118768 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 118769 } 118770 r.WriteMapElemValue() 118771 if false { 118772 } else { 118773 r.EncodeUint(uint64(x.Index)) 118774 } 118775 } 118776 if yyr2 || yy2arr2 { 118777 r.WriteArrayElem() 118778 if false { 118779 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 118780 z.EncExtension(x.LastContact, yyxt10) 118781 } else { 118782 r.EncodeInt(int64(x.LastContact)) 118783 } 118784 } else { 118785 r.WriteMapElemKey() 118786 if z.IsJSONHandle() { 118787 z.WriteStr("\"LastContact\"") 118788 } else { 118789 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 118790 } 118791 r.WriteMapElemValue() 118792 if false { 118793 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 118794 z.EncExtension(x.LastContact, yyxt11) 118795 } else { 118796 r.EncodeInt(int64(x.LastContact)) 118797 } 118798 } 118799 if yyr2 || yy2arr2 { 118800 r.WriteArrayElem() 118801 if false { 118802 } else { 118803 r.EncodeBool(bool(x.KnownLeader)) 118804 } 118805 } else { 118806 r.WriteMapElemKey() 118807 if z.IsJSONHandle() { 118808 z.WriteStr("\"KnownLeader\"") 118809 } else { 118810 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 118811 } 118812 r.WriteMapElemValue() 118813 if false { 118814 } else { 118815 r.EncodeBool(bool(x.KnownLeader)) 118816 } 118817 } 118818 if yyr2 || yy2arr2 { 118819 r.WriteArrayEnd() 118820 } else { 118821 r.WriteMapEnd() 118822 } 118823 } 118824 } 118825 } 118826 118827 func (x *ACLTokenSetResponse) CodecDecodeSelf(d *codec1978.Decoder) { 118828 var h codecSelfer100 118829 z, r := codec1978.GenHelperDecoder(d) 118830 _, _, _ = h, z, r 118831 if false { 118832 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 118833 z.DecExtension(x, yyxt1) 118834 } else { 118835 yyct2 := r.ContainerType() 118836 if yyct2 == codecSelferValueTypeMap100 { 118837 yyl2 := r.ReadMapStart() 118838 if yyl2 == 0 { 118839 r.ReadMapEnd() 118840 } else { 118841 x.codecDecodeSelfFromMap(yyl2, d) 118842 } 118843 } else if yyct2 == codecSelferValueTypeArray100 { 118844 yyl2 := r.ReadArrayStart() 118845 if yyl2 == 0 { 118846 r.ReadArrayEnd() 118847 } else { 118848 x.codecDecodeSelfFromArray(yyl2, d) 118849 } 118850 } else { 118851 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 118852 } 118853 } 118854 } 118855 118856 func (x *ACLTokenSetResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 118857 var h codecSelfer100 118858 z, r := codec1978.GenHelperDecoder(d) 118859 _, _, _ = h, z, r 118860 var yyhl3 bool = l >= 0 118861 for yyj3 := 0; ; yyj3++ { 118862 if yyhl3 { 118863 if yyj3 >= l { 118864 break 118865 } 118866 } else { 118867 if r.CheckBreak() { 118868 break 118869 } 118870 } 118871 r.ReadMapElemKey() 118872 yys3 := z.StringView(r.DecodeStringAsBytes()) 118873 r.ReadMapElemValue() 118874 switch yys3 { 118875 case "Tokens": 118876 if r.TryDecodeAsNil() { 118877 x.Tokens = nil 118878 } else { 118879 if false { 118880 } else { 118881 h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) 118882 } 118883 } 118884 case "Index": 118885 if r.TryDecodeAsNil() { 118886 x.QueryMeta.Index = 0 118887 } else { 118888 x.Index = (uint64)(r.DecodeUint64()) 118889 } 118890 case "LastContact": 118891 if r.TryDecodeAsNil() { 118892 x.QueryMeta.LastContact = 0 118893 } else { 118894 if false { 118895 } else if yyxt8 := z.Extension(z.I2Rtid(x.LastContact)); yyxt8 != nil { 118896 z.DecExtension(x.LastContact, yyxt8) 118897 } else { 118898 x.LastContact = (time.Duration)(r.DecodeInt64()) 118899 } 118900 } 118901 case "KnownLeader": 118902 if r.TryDecodeAsNil() { 118903 x.QueryMeta.KnownLeader = false 118904 } else { 118905 x.KnownLeader = (bool)(r.DecodeBool()) 118906 } 118907 default: 118908 z.DecStructFieldNotFound(-1, yys3) 118909 } // end switch yys3 118910 } // end for yyj3 118911 r.ReadMapEnd() 118912 } 118913 118914 func (x *ACLTokenSetResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 118915 var h codecSelfer100 118916 z, r := codec1978.GenHelperDecoder(d) 118917 _, _, _ = h, z, r 118918 var yyj10 int 118919 var yyb10 bool 118920 var yyhl10 bool = l >= 0 118921 yyj10++ 118922 if yyhl10 { 118923 yyb10 = yyj10 > l 118924 } else { 118925 yyb10 = r.CheckBreak() 118926 } 118927 if yyb10 { 118928 r.ReadArrayEnd() 118929 return 118930 } 118931 r.ReadArrayElem() 118932 if r.TryDecodeAsNil() { 118933 x.Tokens = nil 118934 } else { 118935 if false { 118936 } else { 118937 h.decMapstringPtrtoACLToken((*map[string]*ACLToken)(&x.Tokens), d) 118938 } 118939 } 118940 yyj10++ 118941 if yyhl10 { 118942 yyb10 = yyj10 > l 118943 } else { 118944 yyb10 = r.CheckBreak() 118945 } 118946 if yyb10 { 118947 r.ReadArrayEnd() 118948 return 118949 } 118950 r.ReadArrayElem() 118951 if r.TryDecodeAsNil() { 118952 x.QueryMeta.Index = 0 118953 } else { 118954 x.Index = (uint64)(r.DecodeUint64()) 118955 } 118956 yyj10++ 118957 if yyhl10 { 118958 yyb10 = yyj10 > l 118959 } else { 118960 yyb10 = r.CheckBreak() 118961 } 118962 if yyb10 { 118963 r.ReadArrayEnd() 118964 return 118965 } 118966 r.ReadArrayElem() 118967 if r.TryDecodeAsNil() { 118968 x.QueryMeta.LastContact = 0 118969 } else { 118970 if false { 118971 } else if yyxt15 := z.Extension(z.I2Rtid(x.LastContact)); yyxt15 != nil { 118972 z.DecExtension(x.LastContact, yyxt15) 118973 } else { 118974 x.LastContact = (time.Duration)(r.DecodeInt64()) 118975 } 118976 } 118977 yyj10++ 118978 if yyhl10 { 118979 yyb10 = yyj10 > l 118980 } else { 118981 yyb10 = r.CheckBreak() 118982 } 118983 if yyb10 { 118984 r.ReadArrayEnd() 118985 return 118986 } 118987 r.ReadArrayElem() 118988 if r.TryDecodeAsNil() { 118989 x.QueryMeta.KnownLeader = false 118990 } else { 118991 x.KnownLeader = (bool)(r.DecodeBool()) 118992 } 118993 for { 118994 yyj10++ 118995 if yyhl10 { 118996 yyb10 = yyj10 > l 118997 } else { 118998 yyb10 = r.CheckBreak() 118999 } 119000 if yyb10 { 119001 break 119002 } 119003 r.ReadArrayElem() 119004 z.DecStructFieldNotFound(yyj10-1, "") 119005 } 119006 r.ReadArrayEnd() 119007 } 119008 119009 func (x *ResolveACLTokenRequest) CodecEncodeSelf(e *codec1978.Encoder) { 119010 var h codecSelfer100 119011 z, r := codec1978.GenHelperEncoder(e) 119012 _, _, _ = h, z, r 119013 if x == nil { 119014 r.EncodeNil() 119015 } else { 119016 if false { 119017 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119018 z.EncExtension(x, yyxt1) 119019 } else { 119020 yysep2 := !z.EncBinary() 119021 yy2arr2 := z.EncBasicHandle().StructToArray 119022 _, _ = yysep2, yy2arr2 119023 const yyr2 bool = false // struct tag has 'toArray' 119024 if yyr2 || yy2arr2 { 119025 r.WriteArrayStart(9) 119026 } else { 119027 r.WriteMapStart(9) 119028 } 119029 if yyr2 || yy2arr2 { 119030 r.WriteArrayElem() 119031 if false { 119032 } else { 119033 if z.EncBasicHandle().StringToRaw { 119034 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 119035 } else { 119036 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 119037 } 119038 } 119039 } else { 119040 r.WriteMapElemKey() 119041 if z.IsJSONHandle() { 119042 z.WriteStr("\"SecretID\"") 119043 } else { 119044 r.EncodeStringEnc(codecSelferCcUTF8100, `SecretID`) 119045 } 119046 r.WriteMapElemValue() 119047 if false { 119048 } else { 119049 if z.EncBasicHandle().StringToRaw { 119050 r.EncodeStringBytesRaw(z.BytesView(string(x.SecretID))) 119051 } else { 119052 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.SecretID)) 119053 } 119054 } 119055 } 119056 if yyr2 || yy2arr2 { 119057 r.WriteArrayElem() 119058 if false { 119059 } else { 119060 if z.EncBasicHandle().StringToRaw { 119061 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 119062 } else { 119063 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 119064 } 119065 } 119066 } else { 119067 r.WriteMapElemKey() 119068 if z.IsJSONHandle() { 119069 z.WriteStr("\"Region\"") 119070 } else { 119071 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 119072 } 119073 r.WriteMapElemValue() 119074 if false { 119075 } else { 119076 if z.EncBasicHandle().StringToRaw { 119077 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 119078 } else { 119079 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 119080 } 119081 } 119082 } 119083 if yyr2 || yy2arr2 { 119084 r.WriteArrayElem() 119085 if false { 119086 } else { 119087 if z.EncBasicHandle().StringToRaw { 119088 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 119089 } else { 119090 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 119091 } 119092 } 119093 } else { 119094 r.WriteMapElemKey() 119095 if z.IsJSONHandle() { 119096 z.WriteStr("\"Namespace\"") 119097 } else { 119098 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 119099 } 119100 r.WriteMapElemValue() 119101 if false { 119102 } else { 119103 if z.EncBasicHandle().StringToRaw { 119104 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 119105 } else { 119106 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 119107 } 119108 } 119109 } 119110 if yyr2 || yy2arr2 { 119111 r.WriteArrayElem() 119112 if false { 119113 } else { 119114 r.EncodeUint(uint64(x.MinQueryIndex)) 119115 } 119116 } else { 119117 r.WriteMapElemKey() 119118 if z.IsJSONHandle() { 119119 z.WriteStr("\"MinQueryIndex\"") 119120 } else { 119121 r.EncodeStringEnc(codecSelferCcUTF8100, `MinQueryIndex`) 119122 } 119123 r.WriteMapElemValue() 119124 if false { 119125 } else { 119126 r.EncodeUint(uint64(x.MinQueryIndex)) 119127 } 119128 } 119129 if yyr2 || yy2arr2 { 119130 r.WriteArrayElem() 119131 if false { 119132 } else if yyxt16 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt16 != nil { 119133 z.EncExtension(x.MaxQueryTime, yyxt16) 119134 } else { 119135 r.EncodeInt(int64(x.MaxQueryTime)) 119136 } 119137 } else { 119138 r.WriteMapElemKey() 119139 if z.IsJSONHandle() { 119140 z.WriteStr("\"MaxQueryTime\"") 119141 } else { 119142 r.EncodeStringEnc(codecSelferCcUTF8100, `MaxQueryTime`) 119143 } 119144 r.WriteMapElemValue() 119145 if false { 119146 } else if yyxt17 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt17 != nil { 119147 z.EncExtension(x.MaxQueryTime, yyxt17) 119148 } else { 119149 r.EncodeInt(int64(x.MaxQueryTime)) 119150 } 119151 } 119152 if yyr2 || yy2arr2 { 119153 r.WriteArrayElem() 119154 if false { 119155 } else { 119156 r.EncodeBool(bool(x.AllowStale)) 119157 } 119158 } else { 119159 r.WriteMapElemKey() 119160 if z.IsJSONHandle() { 119161 z.WriteStr("\"AllowStale\"") 119162 } else { 119163 r.EncodeStringEnc(codecSelferCcUTF8100, `AllowStale`) 119164 } 119165 r.WriteMapElemValue() 119166 if false { 119167 } else { 119168 r.EncodeBool(bool(x.AllowStale)) 119169 } 119170 } 119171 if yyr2 || yy2arr2 { 119172 r.WriteArrayElem() 119173 if false { 119174 } else { 119175 if z.EncBasicHandle().StringToRaw { 119176 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 119177 } else { 119178 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 119179 } 119180 } 119181 } else { 119182 r.WriteMapElemKey() 119183 if z.IsJSONHandle() { 119184 z.WriteStr("\"Prefix\"") 119185 } else { 119186 r.EncodeStringEnc(codecSelferCcUTF8100, `Prefix`) 119187 } 119188 r.WriteMapElemValue() 119189 if false { 119190 } else { 119191 if z.EncBasicHandle().StringToRaw { 119192 r.EncodeStringBytesRaw(z.BytesView(string(x.Prefix))) 119193 } else { 119194 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Prefix)) 119195 } 119196 } 119197 } 119198 if yyr2 || yy2arr2 { 119199 r.WriteArrayElem() 119200 if false { 119201 } else { 119202 if z.EncBasicHandle().StringToRaw { 119203 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 119204 } else { 119205 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 119206 } 119207 } 119208 } else { 119209 r.WriteMapElemKey() 119210 if z.IsJSONHandle() { 119211 z.WriteStr("\"AuthToken\"") 119212 } else { 119213 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 119214 } 119215 r.WriteMapElemValue() 119216 if false { 119217 } else { 119218 if z.EncBasicHandle().StringToRaw { 119219 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 119220 } else { 119221 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 119222 } 119223 } 119224 } 119225 if yyr2 || yy2arr2 { 119226 r.WriteArrayElem() 119227 if false { 119228 } else { 119229 r.EncodeBool(bool(x.Forwarded)) 119230 } 119231 } else { 119232 r.WriteMapElemKey() 119233 if z.IsJSONHandle() { 119234 z.WriteStr("\"Forwarded\"") 119235 } else { 119236 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 119237 } 119238 r.WriteMapElemValue() 119239 if false { 119240 } else { 119241 r.EncodeBool(bool(x.Forwarded)) 119242 } 119243 } 119244 if yyr2 || yy2arr2 { 119245 r.WriteArrayEnd() 119246 } else { 119247 r.WriteMapEnd() 119248 } 119249 } 119250 } 119251 } 119252 119253 func (x *ResolveACLTokenRequest) CodecDecodeSelf(d *codec1978.Decoder) { 119254 var h codecSelfer100 119255 z, r := codec1978.GenHelperDecoder(d) 119256 _, _, _ = h, z, r 119257 if false { 119258 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119259 z.DecExtension(x, yyxt1) 119260 } else { 119261 yyct2 := r.ContainerType() 119262 if yyct2 == codecSelferValueTypeMap100 { 119263 yyl2 := r.ReadMapStart() 119264 if yyl2 == 0 { 119265 r.ReadMapEnd() 119266 } else { 119267 x.codecDecodeSelfFromMap(yyl2, d) 119268 } 119269 } else if yyct2 == codecSelferValueTypeArray100 { 119270 yyl2 := r.ReadArrayStart() 119271 if yyl2 == 0 { 119272 r.ReadArrayEnd() 119273 } else { 119274 x.codecDecodeSelfFromArray(yyl2, d) 119275 } 119276 } else { 119277 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 119278 } 119279 } 119280 } 119281 119282 func (x *ResolveACLTokenRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 119283 var h codecSelfer100 119284 z, r := codec1978.GenHelperDecoder(d) 119285 _, _, _ = h, z, r 119286 var yyhl3 bool = l >= 0 119287 for yyj3 := 0; ; yyj3++ { 119288 if yyhl3 { 119289 if yyj3 >= l { 119290 break 119291 } 119292 } else { 119293 if r.CheckBreak() { 119294 break 119295 } 119296 } 119297 r.ReadMapElemKey() 119298 yys3 := z.StringView(r.DecodeStringAsBytes()) 119299 r.ReadMapElemValue() 119300 switch yys3 { 119301 case "SecretID": 119302 if r.TryDecodeAsNil() { 119303 x.SecretID = "" 119304 } else { 119305 x.SecretID = (string)(r.DecodeString()) 119306 } 119307 case "Region": 119308 if r.TryDecodeAsNil() { 119309 x.QueryOptions.Region = "" 119310 } else { 119311 x.Region = (string)(r.DecodeString()) 119312 } 119313 case "Namespace": 119314 if r.TryDecodeAsNil() { 119315 x.QueryOptions.Namespace = "" 119316 } else { 119317 x.Namespace = (string)(r.DecodeString()) 119318 } 119319 case "MinQueryIndex": 119320 if r.TryDecodeAsNil() { 119321 x.QueryOptions.MinQueryIndex = 0 119322 } else { 119323 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 119324 } 119325 case "MaxQueryTime": 119326 if r.TryDecodeAsNil() { 119327 x.QueryOptions.MaxQueryTime = 0 119328 } else { 119329 if false { 119330 } else if yyxt9 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt9 != nil { 119331 z.DecExtension(x.MaxQueryTime, yyxt9) 119332 } else { 119333 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 119334 } 119335 } 119336 case "AllowStale": 119337 if r.TryDecodeAsNil() { 119338 x.QueryOptions.AllowStale = false 119339 } else { 119340 x.AllowStale = (bool)(r.DecodeBool()) 119341 } 119342 case "Prefix": 119343 if r.TryDecodeAsNil() { 119344 x.QueryOptions.Prefix = "" 119345 } else { 119346 x.Prefix = (string)(r.DecodeString()) 119347 } 119348 case "AuthToken": 119349 if r.TryDecodeAsNil() { 119350 x.QueryOptions.AuthToken = "" 119351 } else { 119352 x.AuthToken = (string)(r.DecodeString()) 119353 } 119354 case "Forwarded": 119355 if r.TryDecodeAsNil() { 119356 x.QueryOptions.InternalRpcInfo.Forwarded = false 119357 } else { 119358 x.Forwarded = (bool)(r.DecodeBool()) 119359 } 119360 default: 119361 z.DecStructFieldNotFound(-1, yys3) 119362 } // end switch yys3 119363 } // end for yyj3 119364 r.ReadMapEnd() 119365 } 119366 119367 func (x *ResolveACLTokenRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 119368 var h codecSelfer100 119369 z, r := codec1978.GenHelperDecoder(d) 119370 _, _, _ = h, z, r 119371 var yyj14 int 119372 var yyb14 bool 119373 var yyhl14 bool = l >= 0 119374 yyj14++ 119375 if yyhl14 { 119376 yyb14 = yyj14 > l 119377 } else { 119378 yyb14 = r.CheckBreak() 119379 } 119380 if yyb14 { 119381 r.ReadArrayEnd() 119382 return 119383 } 119384 r.ReadArrayElem() 119385 if r.TryDecodeAsNil() { 119386 x.SecretID = "" 119387 } else { 119388 x.SecretID = (string)(r.DecodeString()) 119389 } 119390 yyj14++ 119391 if yyhl14 { 119392 yyb14 = yyj14 > l 119393 } else { 119394 yyb14 = r.CheckBreak() 119395 } 119396 if yyb14 { 119397 r.ReadArrayEnd() 119398 return 119399 } 119400 r.ReadArrayElem() 119401 if r.TryDecodeAsNil() { 119402 x.QueryOptions.Region = "" 119403 } else { 119404 x.Region = (string)(r.DecodeString()) 119405 } 119406 yyj14++ 119407 if yyhl14 { 119408 yyb14 = yyj14 > l 119409 } else { 119410 yyb14 = r.CheckBreak() 119411 } 119412 if yyb14 { 119413 r.ReadArrayEnd() 119414 return 119415 } 119416 r.ReadArrayElem() 119417 if r.TryDecodeAsNil() { 119418 x.QueryOptions.Namespace = "" 119419 } else { 119420 x.Namespace = (string)(r.DecodeString()) 119421 } 119422 yyj14++ 119423 if yyhl14 { 119424 yyb14 = yyj14 > l 119425 } else { 119426 yyb14 = r.CheckBreak() 119427 } 119428 if yyb14 { 119429 r.ReadArrayEnd() 119430 return 119431 } 119432 r.ReadArrayElem() 119433 if r.TryDecodeAsNil() { 119434 x.QueryOptions.MinQueryIndex = 0 119435 } else { 119436 x.MinQueryIndex = (uint64)(r.DecodeUint64()) 119437 } 119438 yyj14++ 119439 if yyhl14 { 119440 yyb14 = yyj14 > l 119441 } else { 119442 yyb14 = r.CheckBreak() 119443 } 119444 if yyb14 { 119445 r.ReadArrayEnd() 119446 return 119447 } 119448 r.ReadArrayElem() 119449 if r.TryDecodeAsNil() { 119450 x.QueryOptions.MaxQueryTime = 0 119451 } else { 119452 if false { 119453 } else if yyxt20 := z.Extension(z.I2Rtid(x.MaxQueryTime)); yyxt20 != nil { 119454 z.DecExtension(x.MaxQueryTime, yyxt20) 119455 } else { 119456 x.MaxQueryTime = (time.Duration)(r.DecodeInt64()) 119457 } 119458 } 119459 yyj14++ 119460 if yyhl14 { 119461 yyb14 = yyj14 > l 119462 } else { 119463 yyb14 = r.CheckBreak() 119464 } 119465 if yyb14 { 119466 r.ReadArrayEnd() 119467 return 119468 } 119469 r.ReadArrayElem() 119470 if r.TryDecodeAsNil() { 119471 x.QueryOptions.AllowStale = false 119472 } else { 119473 x.AllowStale = (bool)(r.DecodeBool()) 119474 } 119475 yyj14++ 119476 if yyhl14 { 119477 yyb14 = yyj14 > l 119478 } else { 119479 yyb14 = r.CheckBreak() 119480 } 119481 if yyb14 { 119482 r.ReadArrayEnd() 119483 return 119484 } 119485 r.ReadArrayElem() 119486 if r.TryDecodeAsNil() { 119487 x.QueryOptions.Prefix = "" 119488 } else { 119489 x.Prefix = (string)(r.DecodeString()) 119490 } 119491 yyj14++ 119492 if yyhl14 { 119493 yyb14 = yyj14 > l 119494 } else { 119495 yyb14 = r.CheckBreak() 119496 } 119497 if yyb14 { 119498 r.ReadArrayEnd() 119499 return 119500 } 119501 r.ReadArrayElem() 119502 if r.TryDecodeAsNil() { 119503 x.QueryOptions.AuthToken = "" 119504 } else { 119505 x.AuthToken = (string)(r.DecodeString()) 119506 } 119507 yyj14++ 119508 if yyhl14 { 119509 yyb14 = yyj14 > l 119510 } else { 119511 yyb14 = r.CheckBreak() 119512 } 119513 if yyb14 { 119514 r.ReadArrayEnd() 119515 return 119516 } 119517 r.ReadArrayElem() 119518 if r.TryDecodeAsNil() { 119519 x.QueryOptions.InternalRpcInfo.Forwarded = false 119520 } else { 119521 x.Forwarded = (bool)(r.DecodeBool()) 119522 } 119523 for { 119524 yyj14++ 119525 if yyhl14 { 119526 yyb14 = yyj14 > l 119527 } else { 119528 yyb14 = r.CheckBreak() 119529 } 119530 if yyb14 { 119531 break 119532 } 119533 r.ReadArrayElem() 119534 z.DecStructFieldNotFound(yyj14-1, "") 119535 } 119536 r.ReadArrayEnd() 119537 } 119538 119539 func (x *ResolveACLTokenResponse) CodecEncodeSelf(e *codec1978.Encoder) { 119540 var h codecSelfer100 119541 z, r := codec1978.GenHelperEncoder(e) 119542 _, _, _ = h, z, r 119543 if x == nil { 119544 r.EncodeNil() 119545 } else { 119546 if false { 119547 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119548 z.EncExtension(x, yyxt1) 119549 } else { 119550 yysep2 := !z.EncBinary() 119551 yy2arr2 := z.EncBasicHandle().StructToArray 119552 _, _ = yysep2, yy2arr2 119553 const yyr2 bool = false // struct tag has 'toArray' 119554 if yyr2 || yy2arr2 { 119555 r.WriteArrayStart(4) 119556 } else { 119557 r.WriteMapStart(4) 119558 } 119559 var yyn3 bool 119560 if x.Token == nil { 119561 yyn3 = true 119562 goto LABEL3 119563 } 119564 LABEL3: 119565 if yyr2 || yy2arr2 { 119566 if yyn3 { 119567 r.WriteArrayElem() 119568 r.EncodeNil() 119569 } else { 119570 r.WriteArrayElem() 119571 if x.Token == nil { 119572 r.EncodeNil() 119573 } else { 119574 x.Token.CodecEncodeSelf(e) 119575 } 119576 } 119577 } else { 119578 r.WriteMapElemKey() 119579 if z.IsJSONHandle() { 119580 z.WriteStr("\"Token\"") 119581 } else { 119582 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 119583 } 119584 r.WriteMapElemValue() 119585 if yyn3 { 119586 r.EncodeNil() 119587 } else { 119588 if x.Token == nil { 119589 r.EncodeNil() 119590 } else { 119591 x.Token.CodecEncodeSelf(e) 119592 } 119593 } 119594 } 119595 if yyr2 || yy2arr2 { 119596 r.WriteArrayElem() 119597 if false { 119598 } else { 119599 r.EncodeUint(uint64(x.Index)) 119600 } 119601 } else { 119602 r.WriteMapElemKey() 119603 if z.IsJSONHandle() { 119604 z.WriteStr("\"Index\"") 119605 } else { 119606 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 119607 } 119608 r.WriteMapElemValue() 119609 if false { 119610 } else { 119611 r.EncodeUint(uint64(x.Index)) 119612 } 119613 } 119614 if yyr2 || yy2arr2 { 119615 r.WriteArrayElem() 119616 if false { 119617 } else if yyxt10 := z.Extension(z.I2Rtid(x.LastContact)); yyxt10 != nil { 119618 z.EncExtension(x.LastContact, yyxt10) 119619 } else { 119620 r.EncodeInt(int64(x.LastContact)) 119621 } 119622 } else { 119623 r.WriteMapElemKey() 119624 if z.IsJSONHandle() { 119625 z.WriteStr("\"LastContact\"") 119626 } else { 119627 r.EncodeStringEnc(codecSelferCcUTF8100, `LastContact`) 119628 } 119629 r.WriteMapElemValue() 119630 if false { 119631 } else if yyxt11 := z.Extension(z.I2Rtid(x.LastContact)); yyxt11 != nil { 119632 z.EncExtension(x.LastContact, yyxt11) 119633 } else { 119634 r.EncodeInt(int64(x.LastContact)) 119635 } 119636 } 119637 if yyr2 || yy2arr2 { 119638 r.WriteArrayElem() 119639 if false { 119640 } else { 119641 r.EncodeBool(bool(x.KnownLeader)) 119642 } 119643 } else { 119644 r.WriteMapElemKey() 119645 if z.IsJSONHandle() { 119646 z.WriteStr("\"KnownLeader\"") 119647 } else { 119648 r.EncodeStringEnc(codecSelferCcUTF8100, `KnownLeader`) 119649 } 119650 r.WriteMapElemValue() 119651 if false { 119652 } else { 119653 r.EncodeBool(bool(x.KnownLeader)) 119654 } 119655 } 119656 if yyr2 || yy2arr2 { 119657 r.WriteArrayEnd() 119658 } else { 119659 r.WriteMapEnd() 119660 } 119661 } 119662 } 119663 } 119664 119665 func (x *ResolveACLTokenResponse) CodecDecodeSelf(d *codec1978.Decoder) { 119666 var h codecSelfer100 119667 z, r := codec1978.GenHelperDecoder(d) 119668 _, _, _ = h, z, r 119669 if false { 119670 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119671 z.DecExtension(x, yyxt1) 119672 } else { 119673 yyct2 := r.ContainerType() 119674 if yyct2 == codecSelferValueTypeMap100 { 119675 yyl2 := r.ReadMapStart() 119676 if yyl2 == 0 { 119677 r.ReadMapEnd() 119678 } else { 119679 x.codecDecodeSelfFromMap(yyl2, d) 119680 } 119681 } else if yyct2 == codecSelferValueTypeArray100 { 119682 yyl2 := r.ReadArrayStart() 119683 if yyl2 == 0 { 119684 r.ReadArrayEnd() 119685 } else { 119686 x.codecDecodeSelfFromArray(yyl2, d) 119687 } 119688 } else { 119689 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 119690 } 119691 } 119692 } 119693 119694 func (x *ResolveACLTokenResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 119695 var h codecSelfer100 119696 z, r := codec1978.GenHelperDecoder(d) 119697 _, _, _ = h, z, r 119698 var yyhl3 bool = l >= 0 119699 for yyj3 := 0; ; yyj3++ { 119700 if yyhl3 { 119701 if yyj3 >= l { 119702 break 119703 } 119704 } else { 119705 if r.CheckBreak() { 119706 break 119707 } 119708 } 119709 r.ReadMapElemKey() 119710 yys3 := z.StringView(r.DecodeStringAsBytes()) 119711 r.ReadMapElemValue() 119712 switch yys3 { 119713 case "Token": 119714 if r.TryDecodeAsNil() { 119715 if true && x.Token != nil { 119716 x.Token = nil 119717 } 119718 } else { 119719 if x.Token == nil { 119720 x.Token = new(ACLToken) 119721 } 119722 119723 x.Token.CodecDecodeSelf(d) 119724 } 119725 case "Index": 119726 if r.TryDecodeAsNil() { 119727 x.QueryMeta.Index = 0 119728 } else { 119729 x.Index = (uint64)(r.DecodeUint64()) 119730 } 119731 case "LastContact": 119732 if r.TryDecodeAsNil() { 119733 x.QueryMeta.LastContact = 0 119734 } else { 119735 if false { 119736 } else if yyxt7 := z.Extension(z.I2Rtid(x.LastContact)); yyxt7 != nil { 119737 z.DecExtension(x.LastContact, yyxt7) 119738 } else { 119739 x.LastContact = (time.Duration)(r.DecodeInt64()) 119740 } 119741 } 119742 case "KnownLeader": 119743 if r.TryDecodeAsNil() { 119744 x.QueryMeta.KnownLeader = false 119745 } else { 119746 x.KnownLeader = (bool)(r.DecodeBool()) 119747 } 119748 default: 119749 z.DecStructFieldNotFound(-1, yys3) 119750 } // end switch yys3 119751 } // end for yyj3 119752 r.ReadMapEnd() 119753 } 119754 119755 func (x *ResolveACLTokenResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 119756 var h codecSelfer100 119757 z, r := codec1978.GenHelperDecoder(d) 119758 _, _, _ = h, z, r 119759 var yyj9 int 119760 var yyb9 bool 119761 var yyhl9 bool = l >= 0 119762 yyj9++ 119763 if yyhl9 { 119764 yyb9 = yyj9 > l 119765 } else { 119766 yyb9 = r.CheckBreak() 119767 } 119768 if yyb9 { 119769 r.ReadArrayEnd() 119770 return 119771 } 119772 r.ReadArrayElem() 119773 if r.TryDecodeAsNil() { 119774 if true && x.Token != nil { 119775 x.Token = nil 119776 } 119777 } else { 119778 if x.Token == nil { 119779 x.Token = new(ACLToken) 119780 } 119781 119782 x.Token.CodecDecodeSelf(d) 119783 } 119784 yyj9++ 119785 if yyhl9 { 119786 yyb9 = yyj9 > l 119787 } else { 119788 yyb9 = r.CheckBreak() 119789 } 119790 if yyb9 { 119791 r.ReadArrayEnd() 119792 return 119793 } 119794 r.ReadArrayElem() 119795 if r.TryDecodeAsNil() { 119796 x.QueryMeta.Index = 0 119797 } else { 119798 x.Index = (uint64)(r.DecodeUint64()) 119799 } 119800 yyj9++ 119801 if yyhl9 { 119802 yyb9 = yyj9 > l 119803 } else { 119804 yyb9 = r.CheckBreak() 119805 } 119806 if yyb9 { 119807 r.ReadArrayEnd() 119808 return 119809 } 119810 r.ReadArrayElem() 119811 if r.TryDecodeAsNil() { 119812 x.QueryMeta.LastContact = 0 119813 } else { 119814 if false { 119815 } else if yyxt13 := z.Extension(z.I2Rtid(x.LastContact)); yyxt13 != nil { 119816 z.DecExtension(x.LastContact, yyxt13) 119817 } else { 119818 x.LastContact = (time.Duration)(r.DecodeInt64()) 119819 } 119820 } 119821 yyj9++ 119822 if yyhl9 { 119823 yyb9 = yyj9 > l 119824 } else { 119825 yyb9 = r.CheckBreak() 119826 } 119827 if yyb9 { 119828 r.ReadArrayEnd() 119829 return 119830 } 119831 r.ReadArrayElem() 119832 if r.TryDecodeAsNil() { 119833 x.QueryMeta.KnownLeader = false 119834 } else { 119835 x.KnownLeader = (bool)(r.DecodeBool()) 119836 } 119837 for { 119838 yyj9++ 119839 if yyhl9 { 119840 yyb9 = yyj9 > l 119841 } else { 119842 yyb9 = r.CheckBreak() 119843 } 119844 if yyb9 { 119845 break 119846 } 119847 r.ReadArrayElem() 119848 z.DecStructFieldNotFound(yyj9-1, "") 119849 } 119850 r.ReadArrayEnd() 119851 } 119852 119853 func (x *ACLTokenDeleteRequest) CodecEncodeSelf(e *codec1978.Encoder) { 119854 var h codecSelfer100 119855 z, r := codec1978.GenHelperEncoder(e) 119856 _, _, _ = h, z, r 119857 if x == nil { 119858 r.EncodeNil() 119859 } else { 119860 if false { 119861 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 119862 z.EncExtension(x, yyxt1) 119863 } else { 119864 yysep2 := !z.EncBinary() 119865 yy2arr2 := z.EncBasicHandle().StructToArray 119866 _, _ = yysep2, yy2arr2 119867 const yyr2 bool = false // struct tag has 'toArray' 119868 if yyr2 || yy2arr2 { 119869 r.WriteArrayStart(5) 119870 } else { 119871 r.WriteMapStart(5) 119872 } 119873 if yyr2 || yy2arr2 { 119874 r.WriteArrayElem() 119875 if x.AccessorIDs == nil { 119876 r.EncodeNil() 119877 } else { 119878 if false { 119879 } else { 119880 z.F.EncSliceStringV(x.AccessorIDs, e) 119881 } 119882 } 119883 } else { 119884 r.WriteMapElemKey() 119885 if z.IsJSONHandle() { 119886 z.WriteStr("\"AccessorIDs\"") 119887 } else { 119888 r.EncodeStringEnc(codecSelferCcUTF8100, `AccessorIDs`) 119889 } 119890 r.WriteMapElemValue() 119891 if x.AccessorIDs == nil { 119892 r.EncodeNil() 119893 } else { 119894 if false { 119895 } else { 119896 z.F.EncSliceStringV(x.AccessorIDs, e) 119897 } 119898 } 119899 } 119900 if yyr2 || yy2arr2 { 119901 r.WriteArrayElem() 119902 if false { 119903 } else { 119904 if z.EncBasicHandle().StringToRaw { 119905 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 119906 } else { 119907 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 119908 } 119909 } 119910 } else { 119911 r.WriteMapElemKey() 119912 if z.IsJSONHandle() { 119913 z.WriteStr("\"Region\"") 119914 } else { 119915 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 119916 } 119917 r.WriteMapElemValue() 119918 if false { 119919 } else { 119920 if z.EncBasicHandle().StringToRaw { 119921 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 119922 } else { 119923 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 119924 } 119925 } 119926 } 119927 if yyr2 || yy2arr2 { 119928 r.WriteArrayElem() 119929 if false { 119930 } else { 119931 if z.EncBasicHandle().StringToRaw { 119932 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 119933 } else { 119934 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 119935 } 119936 } 119937 } else { 119938 r.WriteMapElemKey() 119939 if z.IsJSONHandle() { 119940 z.WriteStr("\"Namespace\"") 119941 } else { 119942 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 119943 } 119944 r.WriteMapElemValue() 119945 if false { 119946 } else { 119947 if z.EncBasicHandle().StringToRaw { 119948 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 119949 } else { 119950 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 119951 } 119952 } 119953 } 119954 if yyr2 || yy2arr2 { 119955 r.WriteArrayElem() 119956 if false { 119957 } else { 119958 if z.EncBasicHandle().StringToRaw { 119959 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 119960 } else { 119961 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 119962 } 119963 } 119964 } else { 119965 r.WriteMapElemKey() 119966 if z.IsJSONHandle() { 119967 z.WriteStr("\"AuthToken\"") 119968 } else { 119969 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 119970 } 119971 r.WriteMapElemValue() 119972 if false { 119973 } else { 119974 if z.EncBasicHandle().StringToRaw { 119975 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 119976 } else { 119977 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 119978 } 119979 } 119980 } 119981 if yyr2 || yy2arr2 { 119982 r.WriteArrayElem() 119983 if false { 119984 } else { 119985 r.EncodeBool(bool(x.Forwarded)) 119986 } 119987 } else { 119988 r.WriteMapElemKey() 119989 if z.IsJSONHandle() { 119990 z.WriteStr("\"Forwarded\"") 119991 } else { 119992 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 119993 } 119994 r.WriteMapElemValue() 119995 if false { 119996 } else { 119997 r.EncodeBool(bool(x.Forwarded)) 119998 } 119999 } 120000 if yyr2 || yy2arr2 { 120001 r.WriteArrayEnd() 120002 } else { 120003 r.WriteMapEnd() 120004 } 120005 } 120006 } 120007 } 120008 120009 func (x *ACLTokenDeleteRequest) CodecDecodeSelf(d *codec1978.Decoder) { 120010 var h codecSelfer100 120011 z, r := codec1978.GenHelperDecoder(d) 120012 _, _, _ = h, z, r 120013 if false { 120014 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120015 z.DecExtension(x, yyxt1) 120016 } else { 120017 yyct2 := r.ContainerType() 120018 if yyct2 == codecSelferValueTypeMap100 { 120019 yyl2 := r.ReadMapStart() 120020 if yyl2 == 0 { 120021 r.ReadMapEnd() 120022 } else { 120023 x.codecDecodeSelfFromMap(yyl2, d) 120024 } 120025 } else if yyct2 == codecSelferValueTypeArray100 { 120026 yyl2 := r.ReadArrayStart() 120027 if yyl2 == 0 { 120028 r.ReadArrayEnd() 120029 } else { 120030 x.codecDecodeSelfFromArray(yyl2, d) 120031 } 120032 } else { 120033 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 120034 } 120035 } 120036 } 120037 120038 func (x *ACLTokenDeleteRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 120039 var h codecSelfer100 120040 z, r := codec1978.GenHelperDecoder(d) 120041 _, _, _ = h, z, r 120042 var yyhl3 bool = l >= 0 120043 for yyj3 := 0; ; yyj3++ { 120044 if yyhl3 { 120045 if yyj3 >= l { 120046 break 120047 } 120048 } else { 120049 if r.CheckBreak() { 120050 break 120051 } 120052 } 120053 r.ReadMapElemKey() 120054 yys3 := z.StringView(r.DecodeStringAsBytes()) 120055 r.ReadMapElemValue() 120056 switch yys3 { 120057 case "AccessorIDs": 120058 if r.TryDecodeAsNil() { 120059 x.AccessorIDs = nil 120060 } else { 120061 if false { 120062 } else { 120063 z.F.DecSliceStringX(&x.AccessorIDs, d) 120064 } 120065 } 120066 case "Region": 120067 if r.TryDecodeAsNil() { 120068 x.WriteRequest.Region = "" 120069 } else { 120070 x.Region = (string)(r.DecodeString()) 120071 } 120072 case "Namespace": 120073 if r.TryDecodeAsNil() { 120074 x.WriteRequest.Namespace = "" 120075 } else { 120076 x.Namespace = (string)(r.DecodeString()) 120077 } 120078 case "AuthToken": 120079 if r.TryDecodeAsNil() { 120080 x.WriteRequest.AuthToken = "" 120081 } else { 120082 x.AuthToken = (string)(r.DecodeString()) 120083 } 120084 case "Forwarded": 120085 if r.TryDecodeAsNil() { 120086 x.WriteRequest.InternalRpcInfo.Forwarded = false 120087 } else { 120088 x.Forwarded = (bool)(r.DecodeBool()) 120089 } 120090 default: 120091 z.DecStructFieldNotFound(-1, yys3) 120092 } // end switch yys3 120093 } // end for yyj3 120094 r.ReadMapEnd() 120095 } 120096 120097 func (x *ACLTokenDeleteRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 120098 var h codecSelfer100 120099 z, r := codec1978.GenHelperDecoder(d) 120100 _, _, _ = h, z, r 120101 var yyj10 int 120102 var yyb10 bool 120103 var yyhl10 bool = l >= 0 120104 yyj10++ 120105 if yyhl10 { 120106 yyb10 = yyj10 > l 120107 } else { 120108 yyb10 = r.CheckBreak() 120109 } 120110 if yyb10 { 120111 r.ReadArrayEnd() 120112 return 120113 } 120114 r.ReadArrayElem() 120115 if r.TryDecodeAsNil() { 120116 x.AccessorIDs = nil 120117 } else { 120118 if false { 120119 } else { 120120 z.F.DecSliceStringX(&x.AccessorIDs, d) 120121 } 120122 } 120123 yyj10++ 120124 if yyhl10 { 120125 yyb10 = yyj10 > l 120126 } else { 120127 yyb10 = r.CheckBreak() 120128 } 120129 if yyb10 { 120130 r.ReadArrayEnd() 120131 return 120132 } 120133 r.ReadArrayElem() 120134 if r.TryDecodeAsNil() { 120135 x.WriteRequest.Region = "" 120136 } else { 120137 x.Region = (string)(r.DecodeString()) 120138 } 120139 yyj10++ 120140 if yyhl10 { 120141 yyb10 = yyj10 > l 120142 } else { 120143 yyb10 = r.CheckBreak() 120144 } 120145 if yyb10 { 120146 r.ReadArrayEnd() 120147 return 120148 } 120149 r.ReadArrayElem() 120150 if r.TryDecodeAsNil() { 120151 x.WriteRequest.Namespace = "" 120152 } else { 120153 x.Namespace = (string)(r.DecodeString()) 120154 } 120155 yyj10++ 120156 if yyhl10 { 120157 yyb10 = yyj10 > l 120158 } else { 120159 yyb10 = r.CheckBreak() 120160 } 120161 if yyb10 { 120162 r.ReadArrayEnd() 120163 return 120164 } 120165 r.ReadArrayElem() 120166 if r.TryDecodeAsNil() { 120167 x.WriteRequest.AuthToken = "" 120168 } else { 120169 x.AuthToken = (string)(r.DecodeString()) 120170 } 120171 yyj10++ 120172 if yyhl10 { 120173 yyb10 = yyj10 > l 120174 } else { 120175 yyb10 = r.CheckBreak() 120176 } 120177 if yyb10 { 120178 r.ReadArrayEnd() 120179 return 120180 } 120181 r.ReadArrayElem() 120182 if r.TryDecodeAsNil() { 120183 x.WriteRequest.InternalRpcInfo.Forwarded = false 120184 } else { 120185 x.Forwarded = (bool)(r.DecodeBool()) 120186 } 120187 for { 120188 yyj10++ 120189 if yyhl10 { 120190 yyb10 = yyj10 > l 120191 } else { 120192 yyb10 = r.CheckBreak() 120193 } 120194 if yyb10 { 120195 break 120196 } 120197 r.ReadArrayElem() 120198 z.DecStructFieldNotFound(yyj10-1, "") 120199 } 120200 r.ReadArrayEnd() 120201 } 120202 120203 func (x *ACLTokenBootstrapRequest) CodecEncodeSelf(e *codec1978.Encoder) { 120204 var h codecSelfer100 120205 z, r := codec1978.GenHelperEncoder(e) 120206 _, _, _ = h, z, r 120207 if x == nil { 120208 r.EncodeNil() 120209 } else { 120210 if false { 120211 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120212 z.EncExtension(x, yyxt1) 120213 } else { 120214 yysep2 := !z.EncBinary() 120215 yy2arr2 := z.EncBasicHandle().StructToArray 120216 _, _ = yysep2, yy2arr2 120217 const yyr2 bool = false // struct tag has 'toArray' 120218 if yyr2 || yy2arr2 { 120219 r.WriteArrayStart(6) 120220 } else { 120221 r.WriteMapStart(6) 120222 } 120223 var yyn3 bool 120224 if x.Token == nil { 120225 yyn3 = true 120226 goto LABEL3 120227 } 120228 LABEL3: 120229 if yyr2 || yy2arr2 { 120230 if yyn3 { 120231 r.WriteArrayElem() 120232 r.EncodeNil() 120233 } else { 120234 r.WriteArrayElem() 120235 if x.Token == nil { 120236 r.EncodeNil() 120237 } else { 120238 x.Token.CodecEncodeSelf(e) 120239 } 120240 } 120241 } else { 120242 r.WriteMapElemKey() 120243 if z.IsJSONHandle() { 120244 z.WriteStr("\"Token\"") 120245 } else { 120246 r.EncodeStringEnc(codecSelferCcUTF8100, `Token`) 120247 } 120248 r.WriteMapElemValue() 120249 if yyn3 { 120250 r.EncodeNil() 120251 } else { 120252 if x.Token == nil { 120253 r.EncodeNil() 120254 } else { 120255 x.Token.CodecEncodeSelf(e) 120256 } 120257 } 120258 } 120259 if yyr2 || yy2arr2 { 120260 r.WriteArrayElem() 120261 if false { 120262 } else { 120263 r.EncodeUint(uint64(x.ResetIndex)) 120264 } 120265 } else { 120266 r.WriteMapElemKey() 120267 if z.IsJSONHandle() { 120268 z.WriteStr("\"ResetIndex\"") 120269 } else { 120270 r.EncodeStringEnc(codecSelferCcUTF8100, `ResetIndex`) 120271 } 120272 r.WriteMapElemValue() 120273 if false { 120274 } else { 120275 r.EncodeUint(uint64(x.ResetIndex)) 120276 } 120277 } 120278 if yyr2 || yy2arr2 { 120279 r.WriteArrayElem() 120280 if false { 120281 } else { 120282 if z.EncBasicHandle().StringToRaw { 120283 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 120284 } else { 120285 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 120286 } 120287 } 120288 } else { 120289 r.WriteMapElemKey() 120290 if z.IsJSONHandle() { 120291 z.WriteStr("\"Region\"") 120292 } else { 120293 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 120294 } 120295 r.WriteMapElemValue() 120296 if false { 120297 } else { 120298 if z.EncBasicHandle().StringToRaw { 120299 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 120300 } else { 120301 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 120302 } 120303 } 120304 } 120305 if yyr2 || yy2arr2 { 120306 r.WriteArrayElem() 120307 if false { 120308 } else { 120309 if z.EncBasicHandle().StringToRaw { 120310 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 120311 } else { 120312 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 120313 } 120314 } 120315 } else { 120316 r.WriteMapElemKey() 120317 if z.IsJSONHandle() { 120318 z.WriteStr("\"Namespace\"") 120319 } else { 120320 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 120321 } 120322 r.WriteMapElemValue() 120323 if false { 120324 } else { 120325 if z.EncBasicHandle().StringToRaw { 120326 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 120327 } else { 120328 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 120329 } 120330 } 120331 } 120332 if yyr2 || yy2arr2 { 120333 r.WriteArrayElem() 120334 if false { 120335 } else { 120336 if z.EncBasicHandle().StringToRaw { 120337 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 120338 } else { 120339 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 120340 } 120341 } 120342 } else { 120343 r.WriteMapElemKey() 120344 if z.IsJSONHandle() { 120345 z.WriteStr("\"AuthToken\"") 120346 } else { 120347 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 120348 } 120349 r.WriteMapElemValue() 120350 if false { 120351 } else { 120352 if z.EncBasicHandle().StringToRaw { 120353 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 120354 } else { 120355 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 120356 } 120357 } 120358 } 120359 if yyr2 || yy2arr2 { 120360 r.WriteArrayElem() 120361 if false { 120362 } else { 120363 r.EncodeBool(bool(x.Forwarded)) 120364 } 120365 } else { 120366 r.WriteMapElemKey() 120367 if z.IsJSONHandle() { 120368 z.WriteStr("\"Forwarded\"") 120369 } else { 120370 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 120371 } 120372 r.WriteMapElemValue() 120373 if false { 120374 } else { 120375 r.EncodeBool(bool(x.Forwarded)) 120376 } 120377 } 120378 if yyr2 || yy2arr2 { 120379 r.WriteArrayEnd() 120380 } else { 120381 r.WriteMapEnd() 120382 } 120383 } 120384 } 120385 } 120386 120387 func (x *ACLTokenBootstrapRequest) CodecDecodeSelf(d *codec1978.Decoder) { 120388 var h codecSelfer100 120389 z, r := codec1978.GenHelperDecoder(d) 120390 _, _, _ = h, z, r 120391 if false { 120392 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120393 z.DecExtension(x, yyxt1) 120394 } else { 120395 yyct2 := r.ContainerType() 120396 if yyct2 == codecSelferValueTypeMap100 { 120397 yyl2 := r.ReadMapStart() 120398 if yyl2 == 0 { 120399 r.ReadMapEnd() 120400 } else { 120401 x.codecDecodeSelfFromMap(yyl2, d) 120402 } 120403 } else if yyct2 == codecSelferValueTypeArray100 { 120404 yyl2 := r.ReadArrayStart() 120405 if yyl2 == 0 { 120406 r.ReadArrayEnd() 120407 } else { 120408 x.codecDecodeSelfFromArray(yyl2, d) 120409 } 120410 } else { 120411 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 120412 } 120413 } 120414 } 120415 120416 func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 120417 var h codecSelfer100 120418 z, r := codec1978.GenHelperDecoder(d) 120419 _, _, _ = h, z, r 120420 var yyhl3 bool = l >= 0 120421 for yyj3 := 0; ; yyj3++ { 120422 if yyhl3 { 120423 if yyj3 >= l { 120424 break 120425 } 120426 } else { 120427 if r.CheckBreak() { 120428 break 120429 } 120430 } 120431 r.ReadMapElemKey() 120432 yys3 := z.StringView(r.DecodeStringAsBytes()) 120433 r.ReadMapElemValue() 120434 switch yys3 { 120435 case "Token": 120436 if r.TryDecodeAsNil() { 120437 if true && x.Token != nil { 120438 x.Token = nil 120439 } 120440 } else { 120441 if x.Token == nil { 120442 x.Token = new(ACLToken) 120443 } 120444 120445 x.Token.CodecDecodeSelf(d) 120446 } 120447 case "ResetIndex": 120448 if r.TryDecodeAsNil() { 120449 x.ResetIndex = 0 120450 } else { 120451 x.ResetIndex = (uint64)(r.DecodeUint64()) 120452 } 120453 case "Region": 120454 if r.TryDecodeAsNil() { 120455 x.WriteRequest.Region = "" 120456 } else { 120457 x.Region = (string)(r.DecodeString()) 120458 } 120459 case "Namespace": 120460 if r.TryDecodeAsNil() { 120461 x.WriteRequest.Namespace = "" 120462 } else { 120463 x.Namespace = (string)(r.DecodeString()) 120464 } 120465 case "AuthToken": 120466 if r.TryDecodeAsNil() { 120467 x.WriteRequest.AuthToken = "" 120468 } else { 120469 x.AuthToken = (string)(r.DecodeString()) 120470 } 120471 case "Forwarded": 120472 if r.TryDecodeAsNil() { 120473 x.WriteRequest.InternalRpcInfo.Forwarded = false 120474 } else { 120475 x.Forwarded = (bool)(r.DecodeBool()) 120476 } 120477 default: 120478 z.DecStructFieldNotFound(-1, yys3) 120479 } // end switch yys3 120480 } // end for yyj3 120481 r.ReadMapEnd() 120482 } 120483 120484 func (x *ACLTokenBootstrapRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 120485 var h codecSelfer100 120486 z, r := codec1978.GenHelperDecoder(d) 120487 _, _, _ = h, z, r 120488 var yyj10 int 120489 var yyb10 bool 120490 var yyhl10 bool = l >= 0 120491 yyj10++ 120492 if yyhl10 { 120493 yyb10 = yyj10 > l 120494 } else { 120495 yyb10 = r.CheckBreak() 120496 } 120497 if yyb10 { 120498 r.ReadArrayEnd() 120499 return 120500 } 120501 r.ReadArrayElem() 120502 if r.TryDecodeAsNil() { 120503 if true && x.Token != nil { 120504 x.Token = nil 120505 } 120506 } else { 120507 if x.Token == nil { 120508 x.Token = new(ACLToken) 120509 } 120510 120511 x.Token.CodecDecodeSelf(d) 120512 } 120513 yyj10++ 120514 if yyhl10 { 120515 yyb10 = yyj10 > l 120516 } else { 120517 yyb10 = r.CheckBreak() 120518 } 120519 if yyb10 { 120520 r.ReadArrayEnd() 120521 return 120522 } 120523 r.ReadArrayElem() 120524 if r.TryDecodeAsNil() { 120525 x.ResetIndex = 0 120526 } else { 120527 x.ResetIndex = (uint64)(r.DecodeUint64()) 120528 } 120529 yyj10++ 120530 if yyhl10 { 120531 yyb10 = yyj10 > l 120532 } else { 120533 yyb10 = r.CheckBreak() 120534 } 120535 if yyb10 { 120536 r.ReadArrayEnd() 120537 return 120538 } 120539 r.ReadArrayElem() 120540 if r.TryDecodeAsNil() { 120541 x.WriteRequest.Region = "" 120542 } else { 120543 x.Region = (string)(r.DecodeString()) 120544 } 120545 yyj10++ 120546 if yyhl10 { 120547 yyb10 = yyj10 > l 120548 } else { 120549 yyb10 = r.CheckBreak() 120550 } 120551 if yyb10 { 120552 r.ReadArrayEnd() 120553 return 120554 } 120555 r.ReadArrayElem() 120556 if r.TryDecodeAsNil() { 120557 x.WriteRequest.Namespace = "" 120558 } else { 120559 x.Namespace = (string)(r.DecodeString()) 120560 } 120561 yyj10++ 120562 if yyhl10 { 120563 yyb10 = yyj10 > l 120564 } else { 120565 yyb10 = r.CheckBreak() 120566 } 120567 if yyb10 { 120568 r.ReadArrayEnd() 120569 return 120570 } 120571 r.ReadArrayElem() 120572 if r.TryDecodeAsNil() { 120573 x.WriteRequest.AuthToken = "" 120574 } else { 120575 x.AuthToken = (string)(r.DecodeString()) 120576 } 120577 yyj10++ 120578 if yyhl10 { 120579 yyb10 = yyj10 > l 120580 } else { 120581 yyb10 = r.CheckBreak() 120582 } 120583 if yyb10 { 120584 r.ReadArrayEnd() 120585 return 120586 } 120587 r.ReadArrayElem() 120588 if r.TryDecodeAsNil() { 120589 x.WriteRequest.InternalRpcInfo.Forwarded = false 120590 } else { 120591 x.Forwarded = (bool)(r.DecodeBool()) 120592 } 120593 for { 120594 yyj10++ 120595 if yyhl10 { 120596 yyb10 = yyj10 > l 120597 } else { 120598 yyb10 = r.CheckBreak() 120599 } 120600 if yyb10 { 120601 break 120602 } 120603 r.ReadArrayElem() 120604 z.DecStructFieldNotFound(yyj10-1, "") 120605 } 120606 r.ReadArrayEnd() 120607 } 120608 120609 func (x *ACLTokenUpsertRequest) CodecEncodeSelf(e *codec1978.Encoder) { 120610 var h codecSelfer100 120611 z, r := codec1978.GenHelperEncoder(e) 120612 _, _, _ = h, z, r 120613 if x == nil { 120614 r.EncodeNil() 120615 } else { 120616 if false { 120617 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120618 z.EncExtension(x, yyxt1) 120619 } else { 120620 yysep2 := !z.EncBinary() 120621 yy2arr2 := z.EncBasicHandle().StructToArray 120622 _, _ = yysep2, yy2arr2 120623 const yyr2 bool = false // struct tag has 'toArray' 120624 if yyr2 || yy2arr2 { 120625 r.WriteArrayStart(5) 120626 } else { 120627 r.WriteMapStart(5) 120628 } 120629 if yyr2 || yy2arr2 { 120630 r.WriteArrayElem() 120631 if x.Tokens == nil { 120632 r.EncodeNil() 120633 } else { 120634 if false { 120635 } else { 120636 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 120637 } 120638 } 120639 } else { 120640 r.WriteMapElemKey() 120641 if z.IsJSONHandle() { 120642 z.WriteStr("\"Tokens\"") 120643 } else { 120644 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 120645 } 120646 r.WriteMapElemValue() 120647 if x.Tokens == nil { 120648 r.EncodeNil() 120649 } else { 120650 if false { 120651 } else { 120652 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 120653 } 120654 } 120655 } 120656 if yyr2 || yy2arr2 { 120657 r.WriteArrayElem() 120658 if false { 120659 } else { 120660 if z.EncBasicHandle().StringToRaw { 120661 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 120662 } else { 120663 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 120664 } 120665 } 120666 } else { 120667 r.WriteMapElemKey() 120668 if z.IsJSONHandle() { 120669 z.WriteStr("\"Region\"") 120670 } else { 120671 r.EncodeStringEnc(codecSelferCcUTF8100, `Region`) 120672 } 120673 r.WriteMapElemValue() 120674 if false { 120675 } else { 120676 if z.EncBasicHandle().StringToRaw { 120677 r.EncodeStringBytesRaw(z.BytesView(string(x.Region))) 120678 } else { 120679 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Region)) 120680 } 120681 } 120682 } 120683 if yyr2 || yy2arr2 { 120684 r.WriteArrayElem() 120685 if false { 120686 } else { 120687 if z.EncBasicHandle().StringToRaw { 120688 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 120689 } else { 120690 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 120691 } 120692 } 120693 } else { 120694 r.WriteMapElemKey() 120695 if z.IsJSONHandle() { 120696 z.WriteStr("\"Namespace\"") 120697 } else { 120698 r.EncodeStringEnc(codecSelferCcUTF8100, `Namespace`) 120699 } 120700 r.WriteMapElemValue() 120701 if false { 120702 } else { 120703 if z.EncBasicHandle().StringToRaw { 120704 r.EncodeStringBytesRaw(z.BytesView(string(x.Namespace))) 120705 } else { 120706 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Namespace)) 120707 } 120708 } 120709 } 120710 if yyr2 || yy2arr2 { 120711 r.WriteArrayElem() 120712 if false { 120713 } else { 120714 if z.EncBasicHandle().StringToRaw { 120715 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 120716 } else { 120717 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 120718 } 120719 } 120720 } else { 120721 r.WriteMapElemKey() 120722 if z.IsJSONHandle() { 120723 z.WriteStr("\"AuthToken\"") 120724 } else { 120725 r.EncodeStringEnc(codecSelferCcUTF8100, `AuthToken`) 120726 } 120727 r.WriteMapElemValue() 120728 if false { 120729 } else { 120730 if z.EncBasicHandle().StringToRaw { 120731 r.EncodeStringBytesRaw(z.BytesView(string(x.AuthToken))) 120732 } else { 120733 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.AuthToken)) 120734 } 120735 } 120736 } 120737 if yyr2 || yy2arr2 { 120738 r.WriteArrayElem() 120739 if false { 120740 } else { 120741 r.EncodeBool(bool(x.Forwarded)) 120742 } 120743 } else { 120744 r.WriteMapElemKey() 120745 if z.IsJSONHandle() { 120746 z.WriteStr("\"Forwarded\"") 120747 } else { 120748 r.EncodeStringEnc(codecSelferCcUTF8100, `Forwarded`) 120749 } 120750 r.WriteMapElemValue() 120751 if false { 120752 } else { 120753 r.EncodeBool(bool(x.Forwarded)) 120754 } 120755 } 120756 if yyr2 || yy2arr2 { 120757 r.WriteArrayEnd() 120758 } else { 120759 r.WriteMapEnd() 120760 } 120761 } 120762 } 120763 } 120764 120765 func (x *ACLTokenUpsertRequest) CodecDecodeSelf(d *codec1978.Decoder) { 120766 var h codecSelfer100 120767 z, r := codec1978.GenHelperDecoder(d) 120768 _, _, _ = h, z, r 120769 if false { 120770 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120771 z.DecExtension(x, yyxt1) 120772 } else { 120773 yyct2 := r.ContainerType() 120774 if yyct2 == codecSelferValueTypeMap100 { 120775 yyl2 := r.ReadMapStart() 120776 if yyl2 == 0 { 120777 r.ReadMapEnd() 120778 } else { 120779 x.codecDecodeSelfFromMap(yyl2, d) 120780 } 120781 } else if yyct2 == codecSelferValueTypeArray100 { 120782 yyl2 := r.ReadArrayStart() 120783 if yyl2 == 0 { 120784 r.ReadArrayEnd() 120785 } else { 120786 x.codecDecodeSelfFromArray(yyl2, d) 120787 } 120788 } else { 120789 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 120790 } 120791 } 120792 } 120793 120794 func (x *ACLTokenUpsertRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 120795 var h codecSelfer100 120796 z, r := codec1978.GenHelperDecoder(d) 120797 _, _, _ = h, z, r 120798 var yyhl3 bool = l >= 0 120799 for yyj3 := 0; ; yyj3++ { 120800 if yyhl3 { 120801 if yyj3 >= l { 120802 break 120803 } 120804 } else { 120805 if r.CheckBreak() { 120806 break 120807 } 120808 } 120809 r.ReadMapElemKey() 120810 yys3 := z.StringView(r.DecodeStringAsBytes()) 120811 r.ReadMapElemValue() 120812 switch yys3 { 120813 case "Tokens": 120814 if r.TryDecodeAsNil() { 120815 x.Tokens = nil 120816 } else { 120817 if false { 120818 } else { 120819 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 120820 } 120821 } 120822 case "Region": 120823 if r.TryDecodeAsNil() { 120824 x.WriteRequest.Region = "" 120825 } else { 120826 x.Region = (string)(r.DecodeString()) 120827 } 120828 case "Namespace": 120829 if r.TryDecodeAsNil() { 120830 x.WriteRequest.Namespace = "" 120831 } else { 120832 x.Namespace = (string)(r.DecodeString()) 120833 } 120834 case "AuthToken": 120835 if r.TryDecodeAsNil() { 120836 x.WriteRequest.AuthToken = "" 120837 } else { 120838 x.AuthToken = (string)(r.DecodeString()) 120839 } 120840 case "Forwarded": 120841 if r.TryDecodeAsNil() { 120842 x.WriteRequest.InternalRpcInfo.Forwarded = false 120843 } else { 120844 x.Forwarded = (bool)(r.DecodeBool()) 120845 } 120846 default: 120847 z.DecStructFieldNotFound(-1, yys3) 120848 } // end switch yys3 120849 } // end for yyj3 120850 r.ReadMapEnd() 120851 } 120852 120853 func (x *ACLTokenUpsertRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 120854 var h codecSelfer100 120855 z, r := codec1978.GenHelperDecoder(d) 120856 _, _, _ = h, z, r 120857 var yyj10 int 120858 var yyb10 bool 120859 var yyhl10 bool = l >= 0 120860 yyj10++ 120861 if yyhl10 { 120862 yyb10 = yyj10 > l 120863 } else { 120864 yyb10 = r.CheckBreak() 120865 } 120866 if yyb10 { 120867 r.ReadArrayEnd() 120868 return 120869 } 120870 r.ReadArrayElem() 120871 if r.TryDecodeAsNil() { 120872 x.Tokens = nil 120873 } else { 120874 if false { 120875 } else { 120876 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 120877 } 120878 } 120879 yyj10++ 120880 if yyhl10 { 120881 yyb10 = yyj10 > l 120882 } else { 120883 yyb10 = r.CheckBreak() 120884 } 120885 if yyb10 { 120886 r.ReadArrayEnd() 120887 return 120888 } 120889 r.ReadArrayElem() 120890 if r.TryDecodeAsNil() { 120891 x.WriteRequest.Region = "" 120892 } else { 120893 x.Region = (string)(r.DecodeString()) 120894 } 120895 yyj10++ 120896 if yyhl10 { 120897 yyb10 = yyj10 > l 120898 } else { 120899 yyb10 = r.CheckBreak() 120900 } 120901 if yyb10 { 120902 r.ReadArrayEnd() 120903 return 120904 } 120905 r.ReadArrayElem() 120906 if r.TryDecodeAsNil() { 120907 x.WriteRequest.Namespace = "" 120908 } else { 120909 x.Namespace = (string)(r.DecodeString()) 120910 } 120911 yyj10++ 120912 if yyhl10 { 120913 yyb10 = yyj10 > l 120914 } else { 120915 yyb10 = r.CheckBreak() 120916 } 120917 if yyb10 { 120918 r.ReadArrayEnd() 120919 return 120920 } 120921 r.ReadArrayElem() 120922 if r.TryDecodeAsNil() { 120923 x.WriteRequest.AuthToken = "" 120924 } else { 120925 x.AuthToken = (string)(r.DecodeString()) 120926 } 120927 yyj10++ 120928 if yyhl10 { 120929 yyb10 = yyj10 > l 120930 } else { 120931 yyb10 = r.CheckBreak() 120932 } 120933 if yyb10 { 120934 r.ReadArrayEnd() 120935 return 120936 } 120937 r.ReadArrayElem() 120938 if r.TryDecodeAsNil() { 120939 x.WriteRequest.InternalRpcInfo.Forwarded = false 120940 } else { 120941 x.Forwarded = (bool)(r.DecodeBool()) 120942 } 120943 for { 120944 yyj10++ 120945 if yyhl10 { 120946 yyb10 = yyj10 > l 120947 } else { 120948 yyb10 = r.CheckBreak() 120949 } 120950 if yyb10 { 120951 break 120952 } 120953 r.ReadArrayElem() 120954 z.DecStructFieldNotFound(yyj10-1, "") 120955 } 120956 r.ReadArrayEnd() 120957 } 120958 120959 func (x *ACLTokenUpsertResponse) CodecEncodeSelf(e *codec1978.Encoder) { 120960 var h codecSelfer100 120961 z, r := codec1978.GenHelperEncoder(e) 120962 _, _, _ = h, z, r 120963 if x == nil { 120964 r.EncodeNil() 120965 } else { 120966 if false { 120967 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 120968 z.EncExtension(x, yyxt1) 120969 } else { 120970 yysep2 := !z.EncBinary() 120971 yy2arr2 := z.EncBasicHandle().StructToArray 120972 _, _ = yysep2, yy2arr2 120973 const yyr2 bool = false // struct tag has 'toArray' 120974 if yyr2 || yy2arr2 { 120975 r.WriteArrayStart(2) 120976 } else { 120977 r.WriteMapStart(2) 120978 } 120979 if yyr2 || yy2arr2 { 120980 r.WriteArrayElem() 120981 if x.Tokens == nil { 120982 r.EncodeNil() 120983 } else { 120984 if false { 120985 } else { 120986 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 120987 } 120988 } 120989 } else { 120990 r.WriteMapElemKey() 120991 if z.IsJSONHandle() { 120992 z.WriteStr("\"Tokens\"") 120993 } else { 120994 r.EncodeStringEnc(codecSelferCcUTF8100, `Tokens`) 120995 } 120996 r.WriteMapElemValue() 120997 if x.Tokens == nil { 120998 r.EncodeNil() 120999 } else { 121000 if false { 121001 } else { 121002 h.encSlicePtrtoACLToken(([]*ACLToken)(x.Tokens), e) 121003 } 121004 } 121005 } 121006 if yyr2 || yy2arr2 { 121007 r.WriteArrayElem() 121008 if false { 121009 } else { 121010 r.EncodeUint(uint64(x.Index)) 121011 } 121012 } else { 121013 r.WriteMapElemKey() 121014 if z.IsJSONHandle() { 121015 z.WriteStr("\"Index\"") 121016 } else { 121017 r.EncodeStringEnc(codecSelferCcUTF8100, `Index`) 121018 } 121019 r.WriteMapElemValue() 121020 if false { 121021 } else { 121022 r.EncodeUint(uint64(x.Index)) 121023 } 121024 } 121025 if yyr2 || yy2arr2 { 121026 r.WriteArrayEnd() 121027 } else { 121028 r.WriteMapEnd() 121029 } 121030 } 121031 } 121032 } 121033 121034 func (x *ACLTokenUpsertResponse) CodecDecodeSelf(d *codec1978.Decoder) { 121035 var h codecSelfer100 121036 z, r := codec1978.GenHelperDecoder(d) 121037 _, _, _ = h, z, r 121038 if false { 121039 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121040 z.DecExtension(x, yyxt1) 121041 } else { 121042 yyct2 := r.ContainerType() 121043 if yyct2 == codecSelferValueTypeMap100 { 121044 yyl2 := r.ReadMapStart() 121045 if yyl2 == 0 { 121046 r.ReadMapEnd() 121047 } else { 121048 x.codecDecodeSelfFromMap(yyl2, d) 121049 } 121050 } else if yyct2 == codecSelferValueTypeArray100 { 121051 yyl2 := r.ReadArrayStart() 121052 if yyl2 == 0 { 121053 r.ReadArrayEnd() 121054 } else { 121055 x.codecDecodeSelfFromArray(yyl2, d) 121056 } 121057 } else { 121058 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 121059 } 121060 } 121061 } 121062 121063 func (x *ACLTokenUpsertResponse) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 121064 var h codecSelfer100 121065 z, r := codec1978.GenHelperDecoder(d) 121066 _, _, _ = h, z, r 121067 var yyhl3 bool = l >= 0 121068 for yyj3 := 0; ; yyj3++ { 121069 if yyhl3 { 121070 if yyj3 >= l { 121071 break 121072 } 121073 } else { 121074 if r.CheckBreak() { 121075 break 121076 } 121077 } 121078 r.ReadMapElemKey() 121079 yys3 := z.StringView(r.DecodeStringAsBytes()) 121080 r.ReadMapElemValue() 121081 switch yys3 { 121082 case "Tokens": 121083 if r.TryDecodeAsNil() { 121084 x.Tokens = nil 121085 } else { 121086 if false { 121087 } else { 121088 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 121089 } 121090 } 121091 case "Index": 121092 if r.TryDecodeAsNil() { 121093 x.WriteMeta.Index = 0 121094 } else { 121095 x.Index = (uint64)(r.DecodeUint64()) 121096 } 121097 default: 121098 z.DecStructFieldNotFound(-1, yys3) 121099 } // end switch yys3 121100 } // end for yyj3 121101 r.ReadMapEnd() 121102 } 121103 121104 func (x *ACLTokenUpsertResponse) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 121105 var h codecSelfer100 121106 z, r := codec1978.GenHelperDecoder(d) 121107 _, _, _ = h, z, r 121108 var yyj7 int 121109 var yyb7 bool 121110 var yyhl7 bool = l >= 0 121111 yyj7++ 121112 if yyhl7 { 121113 yyb7 = yyj7 > l 121114 } else { 121115 yyb7 = r.CheckBreak() 121116 } 121117 if yyb7 { 121118 r.ReadArrayEnd() 121119 return 121120 } 121121 r.ReadArrayElem() 121122 if r.TryDecodeAsNil() { 121123 x.Tokens = nil 121124 } else { 121125 if false { 121126 } else { 121127 h.decSlicePtrtoACLToken((*[]*ACLToken)(&x.Tokens), d) 121128 } 121129 } 121130 yyj7++ 121131 if yyhl7 { 121132 yyb7 = yyj7 > l 121133 } else { 121134 yyb7 = r.CheckBreak() 121135 } 121136 if yyb7 { 121137 r.ReadArrayEnd() 121138 return 121139 } 121140 r.ReadArrayElem() 121141 if r.TryDecodeAsNil() { 121142 x.WriteMeta.Index = 0 121143 } else { 121144 x.Index = (uint64)(r.DecodeUint64()) 121145 } 121146 for { 121147 yyj7++ 121148 if yyhl7 { 121149 yyb7 = yyj7 > l 121150 } else { 121151 yyb7 = r.CheckBreak() 121152 } 121153 if yyb7 { 121154 break 121155 } 121156 r.ReadArrayElem() 121157 z.DecStructFieldNotFound(yyj7-1, "") 121158 } 121159 r.ReadArrayEnd() 121160 } 121161 121162 func (x *ClientHostVolumeConfig) CodecEncodeSelf(e *codec1978.Encoder) { 121163 var h codecSelfer100 121164 z, r := codec1978.GenHelperEncoder(e) 121165 _, _, _ = h, z, r 121166 if x == nil { 121167 r.EncodeNil() 121168 } else { 121169 if false { 121170 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121171 z.EncExtension(x, yyxt1) 121172 } else { 121173 yysep2 := !z.EncBinary() 121174 yy2arr2 := z.EncBasicHandle().StructToArray 121175 _, _ = yysep2, yy2arr2 121176 const yyr2 bool = false // struct tag has 'toArray' 121177 if yyr2 || yy2arr2 { 121178 r.WriteArrayStart(3) 121179 } else { 121180 r.WriteMapStart(3) 121181 } 121182 if yyr2 || yy2arr2 { 121183 r.WriteArrayElem() 121184 if false { 121185 } else { 121186 if z.EncBasicHandle().StringToRaw { 121187 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 121188 } else { 121189 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 121190 } 121191 } 121192 } else { 121193 r.WriteMapElemKey() 121194 if z.IsJSONHandle() { 121195 z.WriteStr("\"Name\"") 121196 } else { 121197 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 121198 } 121199 r.WriteMapElemValue() 121200 if false { 121201 } else { 121202 if z.EncBasicHandle().StringToRaw { 121203 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 121204 } else { 121205 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 121206 } 121207 } 121208 } 121209 if yyr2 || yy2arr2 { 121210 r.WriteArrayElem() 121211 if false { 121212 } else { 121213 if z.EncBasicHandle().StringToRaw { 121214 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 121215 } else { 121216 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 121217 } 121218 } 121219 } else { 121220 r.WriteMapElemKey() 121221 if z.IsJSONHandle() { 121222 z.WriteStr("\"Path\"") 121223 } else { 121224 r.EncodeStringEnc(codecSelferCcUTF8100, `Path`) 121225 } 121226 r.WriteMapElemValue() 121227 if false { 121228 } else { 121229 if z.EncBasicHandle().StringToRaw { 121230 r.EncodeStringBytesRaw(z.BytesView(string(x.Path))) 121231 } else { 121232 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Path)) 121233 } 121234 } 121235 } 121236 if yyr2 || yy2arr2 { 121237 r.WriteArrayElem() 121238 if false { 121239 } else { 121240 r.EncodeBool(bool(x.ReadOnly)) 121241 } 121242 } else { 121243 r.WriteMapElemKey() 121244 if z.IsJSONHandle() { 121245 z.WriteStr("\"ReadOnly\"") 121246 } else { 121247 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 121248 } 121249 r.WriteMapElemValue() 121250 if false { 121251 } else { 121252 r.EncodeBool(bool(x.ReadOnly)) 121253 } 121254 } 121255 if yyr2 || yy2arr2 { 121256 r.WriteArrayEnd() 121257 } else { 121258 r.WriteMapEnd() 121259 } 121260 } 121261 } 121262 } 121263 121264 func (x *ClientHostVolumeConfig) CodecDecodeSelf(d *codec1978.Decoder) { 121265 var h codecSelfer100 121266 z, r := codec1978.GenHelperDecoder(d) 121267 _, _, _ = h, z, r 121268 if false { 121269 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121270 z.DecExtension(x, yyxt1) 121271 } else { 121272 yyct2 := r.ContainerType() 121273 if yyct2 == codecSelferValueTypeMap100 { 121274 yyl2 := r.ReadMapStart() 121275 if yyl2 == 0 { 121276 r.ReadMapEnd() 121277 } else { 121278 x.codecDecodeSelfFromMap(yyl2, d) 121279 } 121280 } else if yyct2 == codecSelferValueTypeArray100 { 121281 yyl2 := r.ReadArrayStart() 121282 if yyl2 == 0 { 121283 r.ReadArrayEnd() 121284 } else { 121285 x.codecDecodeSelfFromArray(yyl2, d) 121286 } 121287 } else { 121288 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 121289 } 121290 } 121291 } 121292 121293 func (x *ClientHostVolumeConfig) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 121294 var h codecSelfer100 121295 z, r := codec1978.GenHelperDecoder(d) 121296 _, _, _ = h, z, r 121297 var yyhl3 bool = l >= 0 121298 for yyj3 := 0; ; yyj3++ { 121299 if yyhl3 { 121300 if yyj3 >= l { 121301 break 121302 } 121303 } else { 121304 if r.CheckBreak() { 121305 break 121306 } 121307 } 121308 r.ReadMapElemKey() 121309 yys3 := z.StringView(r.DecodeStringAsBytes()) 121310 r.ReadMapElemValue() 121311 switch yys3 { 121312 case "Name": 121313 if r.TryDecodeAsNil() { 121314 x.Name = "" 121315 } else { 121316 x.Name = (string)(r.DecodeString()) 121317 } 121318 case "Path": 121319 if r.TryDecodeAsNil() { 121320 x.Path = "" 121321 } else { 121322 x.Path = (string)(r.DecodeString()) 121323 } 121324 case "ReadOnly": 121325 if r.TryDecodeAsNil() { 121326 x.ReadOnly = false 121327 } else { 121328 x.ReadOnly = (bool)(r.DecodeBool()) 121329 } 121330 default: 121331 z.DecStructFieldNotFound(-1, yys3) 121332 } // end switch yys3 121333 } // end for yyj3 121334 r.ReadMapEnd() 121335 } 121336 121337 func (x *ClientHostVolumeConfig) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 121338 var h codecSelfer100 121339 z, r := codec1978.GenHelperDecoder(d) 121340 _, _, _ = h, z, r 121341 var yyj7 int 121342 var yyb7 bool 121343 var yyhl7 bool = l >= 0 121344 yyj7++ 121345 if yyhl7 { 121346 yyb7 = yyj7 > l 121347 } else { 121348 yyb7 = r.CheckBreak() 121349 } 121350 if yyb7 { 121351 r.ReadArrayEnd() 121352 return 121353 } 121354 r.ReadArrayElem() 121355 if r.TryDecodeAsNil() { 121356 x.Name = "" 121357 } else { 121358 x.Name = (string)(r.DecodeString()) 121359 } 121360 yyj7++ 121361 if yyhl7 { 121362 yyb7 = yyj7 > l 121363 } else { 121364 yyb7 = r.CheckBreak() 121365 } 121366 if yyb7 { 121367 r.ReadArrayEnd() 121368 return 121369 } 121370 r.ReadArrayElem() 121371 if r.TryDecodeAsNil() { 121372 x.Path = "" 121373 } else { 121374 x.Path = (string)(r.DecodeString()) 121375 } 121376 yyj7++ 121377 if yyhl7 { 121378 yyb7 = yyj7 > l 121379 } else { 121380 yyb7 = r.CheckBreak() 121381 } 121382 if yyb7 { 121383 r.ReadArrayEnd() 121384 return 121385 } 121386 r.ReadArrayElem() 121387 if r.TryDecodeAsNil() { 121388 x.ReadOnly = false 121389 } else { 121390 x.ReadOnly = (bool)(r.DecodeBool()) 121391 } 121392 for { 121393 yyj7++ 121394 if yyhl7 { 121395 yyb7 = yyj7 > l 121396 } else { 121397 yyb7 = r.CheckBreak() 121398 } 121399 if yyb7 { 121400 break 121401 } 121402 r.ReadArrayElem() 121403 z.DecStructFieldNotFound(yyj7-1, "") 121404 } 121405 r.ReadArrayEnd() 121406 } 121407 121408 func (x *VolumeRequest) CodecEncodeSelf(e *codec1978.Encoder) { 121409 var h codecSelfer100 121410 z, r := codec1978.GenHelperEncoder(e) 121411 _, _, _ = h, z, r 121412 if x == nil { 121413 r.EncodeNil() 121414 } else { 121415 if false { 121416 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121417 z.EncExtension(x, yyxt1) 121418 } else { 121419 yysep2 := !z.EncBinary() 121420 yy2arr2 := z.EncBasicHandle().StructToArray 121421 _, _ = yysep2, yy2arr2 121422 const yyr2 bool = false // struct tag has 'toArray' 121423 if yyr2 || yy2arr2 { 121424 r.WriteArrayStart(5) 121425 } else { 121426 r.WriteMapStart(5) 121427 } 121428 if yyr2 || yy2arr2 { 121429 r.WriteArrayElem() 121430 if false { 121431 } else { 121432 if z.EncBasicHandle().StringToRaw { 121433 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 121434 } else { 121435 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 121436 } 121437 } 121438 } else { 121439 r.WriteMapElemKey() 121440 if z.IsJSONHandle() { 121441 z.WriteStr("\"Name\"") 121442 } else { 121443 r.EncodeStringEnc(codecSelferCcUTF8100, `Name`) 121444 } 121445 r.WriteMapElemValue() 121446 if false { 121447 } else { 121448 if z.EncBasicHandle().StringToRaw { 121449 r.EncodeStringBytesRaw(z.BytesView(string(x.Name))) 121450 } else { 121451 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Name)) 121452 } 121453 } 121454 } 121455 if yyr2 || yy2arr2 { 121456 r.WriteArrayElem() 121457 if false { 121458 } else { 121459 if z.EncBasicHandle().StringToRaw { 121460 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 121461 } else { 121462 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 121463 } 121464 } 121465 } else { 121466 r.WriteMapElemKey() 121467 if z.IsJSONHandle() { 121468 z.WriteStr("\"Type\"") 121469 } else { 121470 r.EncodeStringEnc(codecSelferCcUTF8100, `Type`) 121471 } 121472 r.WriteMapElemValue() 121473 if false { 121474 } else { 121475 if z.EncBasicHandle().StringToRaw { 121476 r.EncodeStringBytesRaw(z.BytesView(string(x.Type))) 121477 } else { 121478 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Type)) 121479 } 121480 } 121481 } 121482 if yyr2 || yy2arr2 { 121483 r.WriteArrayElem() 121484 if false { 121485 } else { 121486 if z.EncBasicHandle().StringToRaw { 121487 r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) 121488 } else { 121489 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) 121490 } 121491 } 121492 } else { 121493 r.WriteMapElemKey() 121494 if z.IsJSONHandle() { 121495 z.WriteStr("\"Source\"") 121496 } else { 121497 r.EncodeStringEnc(codecSelferCcUTF8100, `Source`) 121498 } 121499 r.WriteMapElemValue() 121500 if false { 121501 } else { 121502 if z.EncBasicHandle().StringToRaw { 121503 r.EncodeStringBytesRaw(z.BytesView(string(x.Source))) 121504 } else { 121505 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Source)) 121506 } 121507 } 121508 } 121509 if yyr2 || yy2arr2 { 121510 r.WriteArrayElem() 121511 if false { 121512 } else { 121513 r.EncodeBool(bool(x.ReadOnly)) 121514 } 121515 } else { 121516 r.WriteMapElemKey() 121517 if z.IsJSONHandle() { 121518 z.WriteStr("\"ReadOnly\"") 121519 } else { 121520 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 121521 } 121522 r.WriteMapElemValue() 121523 if false { 121524 } else { 121525 r.EncodeBool(bool(x.ReadOnly)) 121526 } 121527 } 121528 var yyn15 bool 121529 if x.MountOptions == nil { 121530 yyn15 = true 121531 goto LABEL15 121532 } 121533 LABEL15: 121534 if yyr2 || yy2arr2 { 121535 if yyn15 { 121536 r.WriteArrayElem() 121537 r.EncodeNil() 121538 } else { 121539 r.WriteArrayElem() 121540 if x.MountOptions == nil { 121541 r.EncodeNil() 121542 } else { 121543 x.MountOptions.CodecEncodeSelf(e) 121544 } 121545 } 121546 } else { 121547 r.WriteMapElemKey() 121548 if z.IsJSONHandle() { 121549 z.WriteStr("\"MountOptions\"") 121550 } else { 121551 r.EncodeStringEnc(codecSelferCcUTF8100, `MountOptions`) 121552 } 121553 r.WriteMapElemValue() 121554 if yyn15 { 121555 r.EncodeNil() 121556 } else { 121557 if x.MountOptions == nil { 121558 r.EncodeNil() 121559 } else { 121560 x.MountOptions.CodecEncodeSelf(e) 121561 } 121562 } 121563 } 121564 if yyr2 || yy2arr2 { 121565 r.WriteArrayEnd() 121566 } else { 121567 r.WriteMapEnd() 121568 } 121569 } 121570 } 121571 } 121572 121573 func (x *VolumeRequest) CodecDecodeSelf(d *codec1978.Decoder) { 121574 var h codecSelfer100 121575 z, r := codec1978.GenHelperDecoder(d) 121576 _, _, _ = h, z, r 121577 if false { 121578 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121579 z.DecExtension(x, yyxt1) 121580 } else { 121581 yyct2 := r.ContainerType() 121582 if yyct2 == codecSelferValueTypeMap100 { 121583 yyl2 := r.ReadMapStart() 121584 if yyl2 == 0 { 121585 r.ReadMapEnd() 121586 } else { 121587 x.codecDecodeSelfFromMap(yyl2, d) 121588 } 121589 } else if yyct2 == codecSelferValueTypeArray100 { 121590 yyl2 := r.ReadArrayStart() 121591 if yyl2 == 0 { 121592 r.ReadArrayEnd() 121593 } else { 121594 x.codecDecodeSelfFromArray(yyl2, d) 121595 } 121596 } else { 121597 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 121598 } 121599 } 121600 } 121601 121602 func (x *VolumeRequest) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 121603 var h codecSelfer100 121604 z, r := codec1978.GenHelperDecoder(d) 121605 _, _, _ = h, z, r 121606 var yyhl3 bool = l >= 0 121607 for yyj3 := 0; ; yyj3++ { 121608 if yyhl3 { 121609 if yyj3 >= l { 121610 break 121611 } 121612 } else { 121613 if r.CheckBreak() { 121614 break 121615 } 121616 } 121617 r.ReadMapElemKey() 121618 yys3 := z.StringView(r.DecodeStringAsBytes()) 121619 r.ReadMapElemValue() 121620 switch yys3 { 121621 case "Name": 121622 if r.TryDecodeAsNil() { 121623 x.Name = "" 121624 } else { 121625 x.Name = (string)(r.DecodeString()) 121626 } 121627 case "Type": 121628 if r.TryDecodeAsNil() { 121629 x.Type = "" 121630 } else { 121631 x.Type = (string)(r.DecodeString()) 121632 } 121633 case "Source": 121634 if r.TryDecodeAsNil() { 121635 x.Source = "" 121636 } else { 121637 x.Source = (string)(r.DecodeString()) 121638 } 121639 case "ReadOnly": 121640 if r.TryDecodeAsNil() { 121641 x.ReadOnly = false 121642 } else { 121643 x.ReadOnly = (bool)(r.DecodeBool()) 121644 } 121645 case "MountOptions": 121646 if r.TryDecodeAsNil() { 121647 if true && x.MountOptions != nil { 121648 x.MountOptions = nil 121649 } 121650 } else { 121651 if x.MountOptions == nil { 121652 x.MountOptions = new(CSIMountOptions) 121653 } 121654 121655 x.MountOptions.CodecDecodeSelf(d) 121656 } 121657 default: 121658 z.DecStructFieldNotFound(-1, yys3) 121659 } // end switch yys3 121660 } // end for yyj3 121661 r.ReadMapEnd() 121662 } 121663 121664 func (x *VolumeRequest) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 121665 var h codecSelfer100 121666 z, r := codec1978.GenHelperDecoder(d) 121667 _, _, _ = h, z, r 121668 var yyj9 int 121669 var yyb9 bool 121670 var yyhl9 bool = l >= 0 121671 yyj9++ 121672 if yyhl9 { 121673 yyb9 = yyj9 > l 121674 } else { 121675 yyb9 = r.CheckBreak() 121676 } 121677 if yyb9 { 121678 r.ReadArrayEnd() 121679 return 121680 } 121681 r.ReadArrayElem() 121682 if r.TryDecodeAsNil() { 121683 x.Name = "" 121684 } else { 121685 x.Name = (string)(r.DecodeString()) 121686 } 121687 yyj9++ 121688 if yyhl9 { 121689 yyb9 = yyj9 > l 121690 } else { 121691 yyb9 = r.CheckBreak() 121692 } 121693 if yyb9 { 121694 r.ReadArrayEnd() 121695 return 121696 } 121697 r.ReadArrayElem() 121698 if r.TryDecodeAsNil() { 121699 x.Type = "" 121700 } else { 121701 x.Type = (string)(r.DecodeString()) 121702 } 121703 yyj9++ 121704 if yyhl9 { 121705 yyb9 = yyj9 > l 121706 } else { 121707 yyb9 = r.CheckBreak() 121708 } 121709 if yyb9 { 121710 r.ReadArrayEnd() 121711 return 121712 } 121713 r.ReadArrayElem() 121714 if r.TryDecodeAsNil() { 121715 x.Source = "" 121716 } else { 121717 x.Source = (string)(r.DecodeString()) 121718 } 121719 yyj9++ 121720 if yyhl9 { 121721 yyb9 = yyj9 > l 121722 } else { 121723 yyb9 = r.CheckBreak() 121724 } 121725 if yyb9 { 121726 r.ReadArrayEnd() 121727 return 121728 } 121729 r.ReadArrayElem() 121730 if r.TryDecodeAsNil() { 121731 x.ReadOnly = false 121732 } else { 121733 x.ReadOnly = (bool)(r.DecodeBool()) 121734 } 121735 yyj9++ 121736 if yyhl9 { 121737 yyb9 = yyj9 > l 121738 } else { 121739 yyb9 = r.CheckBreak() 121740 } 121741 if yyb9 { 121742 r.ReadArrayEnd() 121743 return 121744 } 121745 r.ReadArrayElem() 121746 if r.TryDecodeAsNil() { 121747 if true && x.MountOptions != nil { 121748 x.MountOptions = nil 121749 } 121750 } else { 121751 if x.MountOptions == nil { 121752 x.MountOptions = new(CSIMountOptions) 121753 } 121754 121755 x.MountOptions.CodecDecodeSelf(d) 121756 } 121757 for { 121758 yyj9++ 121759 if yyhl9 { 121760 yyb9 = yyj9 > l 121761 } else { 121762 yyb9 = r.CheckBreak() 121763 } 121764 if yyb9 { 121765 break 121766 } 121767 r.ReadArrayElem() 121768 z.DecStructFieldNotFound(yyj9-1, "") 121769 } 121770 r.ReadArrayEnd() 121771 } 121772 121773 func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { 121774 var h codecSelfer100 121775 z, r := codec1978.GenHelperEncoder(e) 121776 _, _, _ = h, z, r 121777 if x == nil { 121778 r.EncodeNil() 121779 } else { 121780 if false { 121781 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121782 z.EncExtension(x, yyxt1) 121783 } else { 121784 yysep2 := !z.EncBinary() 121785 yy2arr2 := z.EncBasicHandle().StructToArray 121786 _, _ = yysep2, yy2arr2 121787 const yyr2 bool = false // struct tag has 'toArray' 121788 if yyr2 || yy2arr2 { 121789 r.WriteArrayStart(4) 121790 } else { 121791 r.WriteMapStart(4) 121792 } 121793 if yyr2 || yy2arr2 { 121794 r.WriteArrayElem() 121795 if false { 121796 } else { 121797 if z.EncBasicHandle().StringToRaw { 121798 r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) 121799 } else { 121800 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) 121801 } 121802 } 121803 } else { 121804 r.WriteMapElemKey() 121805 if z.IsJSONHandle() { 121806 z.WriteStr("\"Volume\"") 121807 } else { 121808 r.EncodeStringEnc(codecSelferCcUTF8100, `Volume`) 121809 } 121810 r.WriteMapElemValue() 121811 if false { 121812 } else { 121813 if z.EncBasicHandle().StringToRaw { 121814 r.EncodeStringBytesRaw(z.BytesView(string(x.Volume))) 121815 } else { 121816 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Volume)) 121817 } 121818 } 121819 } 121820 if yyr2 || yy2arr2 { 121821 r.WriteArrayElem() 121822 if false { 121823 } else { 121824 if z.EncBasicHandle().StringToRaw { 121825 r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) 121826 } else { 121827 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) 121828 } 121829 } 121830 } else { 121831 r.WriteMapElemKey() 121832 if z.IsJSONHandle() { 121833 z.WriteStr("\"Destination\"") 121834 } else { 121835 r.EncodeStringEnc(codecSelferCcUTF8100, `Destination`) 121836 } 121837 r.WriteMapElemValue() 121838 if false { 121839 } else { 121840 if z.EncBasicHandle().StringToRaw { 121841 r.EncodeStringBytesRaw(z.BytesView(string(x.Destination))) 121842 } else { 121843 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.Destination)) 121844 } 121845 } 121846 } 121847 if yyr2 || yy2arr2 { 121848 r.WriteArrayElem() 121849 if false { 121850 } else { 121851 r.EncodeBool(bool(x.ReadOnly)) 121852 } 121853 } else { 121854 r.WriteMapElemKey() 121855 if z.IsJSONHandle() { 121856 z.WriteStr("\"ReadOnly\"") 121857 } else { 121858 r.EncodeStringEnc(codecSelferCcUTF8100, `ReadOnly`) 121859 } 121860 r.WriteMapElemValue() 121861 if false { 121862 } else { 121863 r.EncodeBool(bool(x.ReadOnly)) 121864 } 121865 } 121866 if yyr2 || yy2arr2 { 121867 r.WriteArrayElem() 121868 if false { 121869 } else { 121870 if z.EncBasicHandle().StringToRaw { 121871 r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) 121872 } else { 121873 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) 121874 } 121875 } 121876 } else { 121877 r.WriteMapElemKey() 121878 if z.IsJSONHandle() { 121879 z.WriteStr("\"PropagationMode\"") 121880 } else { 121881 r.EncodeStringEnc(codecSelferCcUTF8100, `PropagationMode`) 121882 } 121883 r.WriteMapElemValue() 121884 if false { 121885 } else { 121886 if z.EncBasicHandle().StringToRaw { 121887 r.EncodeStringBytesRaw(z.BytesView(string(x.PropagationMode))) 121888 } else { 121889 r.EncodeStringEnc(codecSelferCcUTF8100, string(x.PropagationMode)) 121890 } 121891 } 121892 } 121893 if yyr2 || yy2arr2 { 121894 r.WriteArrayEnd() 121895 } else { 121896 r.WriteMapEnd() 121897 } 121898 } 121899 } 121900 } 121901 121902 func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { 121903 var h codecSelfer100 121904 z, r := codec1978.GenHelperDecoder(d) 121905 _, _, _ = h, z, r 121906 if false { 121907 } else if yyxt1 := z.Extension(z.I2Rtid(x)); yyxt1 != nil { 121908 z.DecExtension(x, yyxt1) 121909 } else { 121910 yyct2 := r.ContainerType() 121911 if yyct2 == codecSelferValueTypeMap100 { 121912 yyl2 := r.ReadMapStart() 121913 if yyl2 == 0 { 121914 r.ReadMapEnd() 121915 } else { 121916 x.codecDecodeSelfFromMap(yyl2, d) 121917 } 121918 } else if yyct2 == codecSelferValueTypeArray100 { 121919 yyl2 := r.ReadArrayStart() 121920 if yyl2 == 0 { 121921 r.ReadArrayEnd() 121922 } else { 121923 x.codecDecodeSelfFromArray(yyl2, d) 121924 } 121925 } else { 121926 panic(errCodecSelferOnlyMapOrArrayEncodeToStruct100) 121927 } 121928 } 121929 } 121930 121931 func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { 121932 var h codecSelfer100 121933 z, r := codec1978.GenHelperDecoder(d) 121934 _, _, _ = h, z, r 121935 var yyhl3 bool = l >= 0 121936 for yyj3 := 0; ; yyj3++ { 121937 if yyhl3 { 121938 if yyj3 >= l { 121939 break 121940 } 121941 } else { 121942 if r.CheckBreak() { 121943 break 121944 } 121945 } 121946 r.ReadMapElemKey() 121947 yys3 := z.StringView(r.DecodeStringAsBytes()) 121948 r.ReadMapElemValue() 121949 switch yys3 { 121950 case "Volume": 121951 if r.TryDecodeAsNil() { 121952 x.Volume = "" 121953 } else { 121954 x.Volume = (string)(r.DecodeString()) 121955 } 121956 case "Destination": 121957 if r.TryDecodeAsNil() { 121958 x.Destination = "" 121959 } else { 121960 x.Destination = (string)(r.DecodeString()) 121961 } 121962 case "ReadOnly": 121963 if r.TryDecodeAsNil() { 121964 x.ReadOnly = false 121965 } else { 121966 x.ReadOnly = (bool)(r.DecodeBool()) 121967 } 121968 case "PropagationMode": 121969 if r.TryDecodeAsNil() { 121970 x.PropagationMode = "" 121971 } else { 121972 x.PropagationMode = (string)(r.DecodeString()) 121973 } 121974 default: 121975 z.DecStructFieldNotFound(-1, yys3) 121976 } // end switch yys3 121977 } // end for yyj3 121978 r.ReadMapEnd() 121979 } 121980 121981 func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { 121982 var h codecSelfer100 121983 z, r := codec1978.GenHelperDecoder(d) 121984 _, _, _ = h, z, r 121985 var yyj8 int 121986 var yyb8 bool 121987 var yyhl8 bool = l >= 0 121988 yyj8++ 121989 if yyhl8 { 121990 yyb8 = yyj8 > l 121991 } else { 121992 yyb8 = r.CheckBreak() 121993 } 121994 if yyb8 { 121995 r.ReadArrayEnd() 121996 return 121997 } 121998 r.ReadArrayElem() 121999 if r.TryDecodeAsNil() { 122000 x.Volume = "" 122001 } else { 122002 x.Volume = (string)(r.DecodeString()) 122003 } 122004 yyj8++ 122005 if yyhl8 { 122006 yyb8 = yyj8 > l 122007 } else { 122008 yyb8 = r.CheckBreak() 122009 } 122010 if yyb8 { 122011 r.ReadArrayEnd() 122012 return 122013 } 122014 r.ReadArrayElem() 122015 if r.TryDecodeAsNil() { 122016 x.Destination = "" 122017 } else { 122018 x.Destination = (string)(r.DecodeString()) 122019 } 122020 yyj8++ 122021 if yyhl8 { 122022 yyb8 = yyj8 > l 122023 } else { 122024 yyb8 = r.CheckBreak() 122025 } 122026 if yyb8 { 122027 r.ReadArrayEnd() 122028 return 122029 } 122030 r.ReadArrayElem() 122031 if r.TryDecodeAsNil() { 122032 x.ReadOnly = false 122033 } else { 122034 x.ReadOnly = (bool)(r.DecodeBool()) 122035 } 122036 yyj8++ 122037 if yyhl8 { 122038 yyb8 = yyj8 > l 122039 } else { 122040 yyb8 = r.CheckBreak() 122041 } 122042 if yyb8 { 122043 r.ReadArrayEnd() 122044 return 122045 } 122046 r.ReadArrayElem() 122047 if r.TryDecodeAsNil() { 122048 x.PropagationMode = "" 122049 } else { 122050 x.PropagationMode = (string)(r.DecodeString()) 122051 } 122052 for { 122053 yyj8++ 122054 if yyhl8 { 122055 yyb8 = yyj8 > l 122056 } else { 122057 yyb8 = r.CheckBreak() 122058 } 122059 if yyb8 { 122060 break 122061 } 122062 r.ReadArrayElem() 122063 z.DecStructFieldNotFound(yyj8-1, "") 122064 } 122065 r.ReadArrayEnd() 122066 } 122067 122068 func (x codecSelfer100) encBitmap(v Bitmap, e *codec1978.Encoder) { 122069 var h codecSelfer100 122070 z, r := codec1978.GenHelperEncoder(e) 122071 _, _, _ = h, z, r 122072 r.EncodeStringBytesRaw([]byte(v)) 122073 } 122074 122075 func (x codecSelfer100) decBitmap(v *Bitmap, d *codec1978.Decoder) { 122076 var h codecSelfer100 122077 z, r := codec1978.GenHelperDecoder(d) 122078 _, _, _ = h, z, r 122079 *v = r.DecodeBytes(*((*[]byte)(v)), false) 122080 } 122081 122082 func (x codecSelfer100) encCSISecrets(v CSISecrets, e *codec1978.Encoder) { 122083 var h codecSelfer100 122084 z, r := codec1978.GenHelperEncoder(e) 122085 _, _, _ = h, z, r 122086 r.WriteMapStart(len(v)) 122087 for yyk1, yyv1 := range v { 122088 r.WriteMapElemKey() 122089 if false { 122090 } else { 122091 if z.EncBasicHandle().StringToRaw { 122092 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122093 } else { 122094 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122095 } 122096 } 122097 r.WriteMapElemValue() 122098 if false { 122099 } else { 122100 if z.EncBasicHandle().StringToRaw { 122101 r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) 122102 } else { 122103 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) 122104 } 122105 } 122106 } 122107 r.WriteMapEnd() 122108 } 122109 122110 func (x codecSelfer100) decCSISecrets(v *CSISecrets, d *codec1978.Decoder) { 122111 var h codecSelfer100 122112 z, r := codec1978.GenHelperDecoder(d) 122113 _, _, _ = h, z, r 122114 122115 yyv1 := *v 122116 yyl1 := r.ReadMapStart() 122117 yybh1 := z.DecBasicHandle() 122118 if yyv1 == nil { 122119 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 32) 122120 yyv1 = make(map[string]string, yyrl1) 122121 *v = yyv1 122122 } 122123 var yymk1 string 122124 var yymv1 string 122125 var yymg1, yymdn1 bool 122126 if yybh1.MapValueReset { 122127 } 122128 if yyl1 != 0 { 122129 yyhl1 := yyl1 > 0 122130 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122131 r.ReadMapElemKey() 122132 if r.TryDecodeAsNil() { 122133 yymk1 = "" 122134 } else { 122135 yymk1 = (string)(r.DecodeString()) 122136 } 122137 122138 if yymg1 { 122139 yymv1 = yyv1[yymk1] 122140 } 122141 r.ReadMapElemValue() 122142 yymdn1 = false 122143 if r.TryDecodeAsNil() { 122144 yymdn1 = true 122145 } else { 122146 yymv1 = (string)(r.DecodeString()) 122147 } 122148 122149 if yymdn1 { 122150 if yybh1.DeleteOnNilMapValue { 122151 delete(yyv1, yymk1) 122152 } else { 122153 yyv1[yymk1] = "" 122154 } 122155 } else if yyv1 != nil { 122156 yyv1[yymk1] = yymv1 122157 } 122158 } 122159 } // else len==0: TODO: Should we clear map entries? 122160 r.ReadMapEnd() 122161 } 122162 122163 func (x codecSelfer100) encSlicePtrtoCSITopology(v []*CSITopology, e *codec1978.Encoder) { 122164 var h codecSelfer100 122165 z, r := codec1978.GenHelperEncoder(e) 122166 _, _, _ = h, z, r 122167 r.WriteArrayStart(len(v)) 122168 for _, yyv1 := range v { 122169 r.WriteArrayElem() 122170 if yyv1 == nil { 122171 r.EncodeNil() 122172 } else { 122173 yyv1.CodecEncodeSelf(e) 122174 } 122175 } 122176 r.WriteArrayEnd() 122177 } 122178 122179 func (x codecSelfer100) decSlicePtrtoCSITopology(v *[]*CSITopology, d *codec1978.Decoder) { 122180 var h codecSelfer100 122181 z, r := codec1978.GenHelperDecoder(d) 122182 _, _, _ = h, z, r 122183 122184 yyv1 := *v 122185 yyh1, yyl1 := z.DecSliceHelperStart() 122186 var yyc1 bool 122187 _ = yyc1 122188 if yyl1 == 0 { 122189 if yyv1 == nil { 122190 yyv1 = []*CSITopology{} 122191 yyc1 = true 122192 } else if len(yyv1) != 0 { 122193 yyv1 = yyv1[:0] 122194 yyc1 = true 122195 } 122196 } else { 122197 yyhl1 := yyl1 > 0 122198 var yyrl1 int 122199 _ = yyrl1 122200 if yyhl1 { 122201 if yyl1 > cap(yyv1) { 122202 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122203 if yyrl1 <= cap(yyv1) { 122204 yyv1 = yyv1[:yyrl1] 122205 } else { 122206 yyv1 = make([]*CSITopology, yyrl1) 122207 } 122208 yyc1 = true 122209 } else if yyl1 != len(yyv1) { 122210 yyv1 = yyv1[:yyl1] 122211 yyc1 = true 122212 } 122213 } 122214 var yyj1 int 122215 // var yydn1 bool 122216 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122217 if yyj1 == 0 && yyv1 == nil { 122218 if yyhl1 { 122219 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122220 } else { 122221 yyrl1 = 8 122222 } 122223 yyv1 = make([]*CSITopology, yyrl1) 122224 yyc1 = true 122225 } 122226 yyh1.ElemContainerState(yyj1) 122227 122228 var yydb1 bool 122229 if yyj1 >= len(yyv1) { 122230 yyv1 = append(yyv1, nil) 122231 yyc1 = true 122232 122233 } 122234 if yydb1 { 122235 z.DecSwallow() 122236 } else { 122237 if r.TryDecodeAsNil() { 122238 yyv1[yyj1] = nil 122239 } else { 122240 if yyv1[yyj1] == nil { 122241 yyv1[yyj1] = new(CSITopology) 122242 } 122243 yyv1[yyj1].CodecDecodeSelf(d) 122244 } 122245 122246 } 122247 122248 } 122249 if yyj1 < len(yyv1) { 122250 yyv1 = yyv1[:yyj1] 122251 yyc1 = true 122252 } else if yyj1 == 0 && yyv1 == nil { 122253 yyv1 = make([]*CSITopology, 0) 122254 yyc1 = true 122255 } 122256 } 122257 yyh1.End() 122258 if yyc1 { 122259 *v = yyv1 122260 } 122261 } 122262 122263 func (x codecSelfer100) encMapstringPtrtoAllocation(v map[string]*Allocation, e *codec1978.Encoder) { 122264 var h codecSelfer100 122265 z, r := codec1978.GenHelperEncoder(e) 122266 _, _, _ = h, z, r 122267 r.WriteMapStart(len(v)) 122268 for yyk1, yyv1 := range v { 122269 r.WriteMapElemKey() 122270 if false { 122271 } else { 122272 if z.EncBasicHandle().StringToRaw { 122273 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122274 } else { 122275 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122276 } 122277 } 122278 r.WriteMapElemValue() 122279 if yyv1 == nil { 122280 r.EncodeNil() 122281 } else { 122282 yyv1.CodecEncodeSelf(e) 122283 } 122284 } 122285 r.WriteMapEnd() 122286 } 122287 122288 func (x codecSelfer100) decMapstringPtrtoAllocation(v *map[string]*Allocation, d *codec1978.Decoder) { 122289 var h codecSelfer100 122290 z, r := codec1978.GenHelperDecoder(d) 122291 _, _, _ = h, z, r 122292 122293 yyv1 := *v 122294 yyl1 := r.ReadMapStart() 122295 yybh1 := z.DecBasicHandle() 122296 if yyv1 == nil { 122297 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 122298 yyv1 = make(map[string]*Allocation, yyrl1) 122299 *v = yyv1 122300 } 122301 var yymk1 string 122302 var yymv1 *Allocation 122303 var yymg1, yymdn1, yyms1, yymok1 bool 122304 if yybh1.MapValueReset { 122305 yymg1 = true 122306 } 122307 if yyl1 != 0 { 122308 yyhl1 := yyl1 > 0 122309 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122310 r.ReadMapElemKey() 122311 if r.TryDecodeAsNil() { 122312 yymk1 = "" 122313 } else { 122314 yymk1 = (string)(r.DecodeString()) 122315 } 122316 122317 yyms1 = true 122318 if yymg1 { 122319 yymv1, yymok1 = yyv1[yymk1] 122320 if yymok1 { 122321 yyms1 = false 122322 } 122323 } else { 122324 yymv1 = nil 122325 } 122326 r.ReadMapElemValue() 122327 yymdn1 = false 122328 if r.TryDecodeAsNil() { 122329 yymdn1 = true 122330 } else { 122331 if yymv1 == nil { 122332 yymv1 = new(Allocation) 122333 } 122334 yymv1.CodecDecodeSelf(d) 122335 } 122336 122337 if yymdn1 { 122338 if yybh1.DeleteOnNilMapValue { 122339 delete(yyv1, yymk1) 122340 } else { 122341 yyv1[yymk1] = nil 122342 } 122343 } else if yyms1 && yyv1 != nil { 122344 yyv1[yymk1] = yymv1 122345 } 122346 } 122347 } // else len==0: TODO: Should we clear map entries? 122348 r.ReadMapEnd() 122349 } 122350 122351 func (x codecSelfer100) encMapstringPtrtoCSIVolumeClaim(v map[string]*CSIVolumeClaim, e *codec1978.Encoder) { 122352 var h codecSelfer100 122353 z, r := codec1978.GenHelperEncoder(e) 122354 _, _, _ = h, z, r 122355 r.WriteMapStart(len(v)) 122356 for yyk1, yyv1 := range v { 122357 r.WriteMapElemKey() 122358 if false { 122359 } else { 122360 if z.EncBasicHandle().StringToRaw { 122361 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122362 } else { 122363 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122364 } 122365 } 122366 r.WriteMapElemValue() 122367 if yyv1 == nil { 122368 r.EncodeNil() 122369 } else { 122370 yyv1.CodecEncodeSelf(e) 122371 } 122372 } 122373 r.WriteMapEnd() 122374 } 122375 122376 func (x codecSelfer100) decMapstringPtrtoCSIVolumeClaim(v *map[string]*CSIVolumeClaim, d *codec1978.Decoder) { 122377 var h codecSelfer100 122378 z, r := codec1978.GenHelperDecoder(d) 122379 _, _, _ = h, z, r 122380 122381 yyv1 := *v 122382 yyl1 := r.ReadMapStart() 122383 yybh1 := z.DecBasicHandle() 122384 if yyv1 == nil { 122385 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 122386 yyv1 = make(map[string]*CSIVolumeClaim, yyrl1) 122387 *v = yyv1 122388 } 122389 var yymk1 string 122390 var yymv1 *CSIVolumeClaim 122391 var yymg1, yymdn1, yyms1, yymok1 bool 122392 if yybh1.MapValueReset { 122393 yymg1 = true 122394 } 122395 if yyl1 != 0 { 122396 yyhl1 := yyl1 > 0 122397 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122398 r.ReadMapElemKey() 122399 if r.TryDecodeAsNil() { 122400 yymk1 = "" 122401 } else { 122402 yymk1 = (string)(r.DecodeString()) 122403 } 122404 122405 yyms1 = true 122406 if yymg1 { 122407 yymv1, yymok1 = yyv1[yymk1] 122408 if yymok1 { 122409 yyms1 = false 122410 } 122411 } else { 122412 yymv1 = nil 122413 } 122414 r.ReadMapElemValue() 122415 yymdn1 = false 122416 if r.TryDecodeAsNil() { 122417 yymdn1 = true 122418 } else { 122419 if yymv1 == nil { 122420 yymv1 = new(CSIVolumeClaim) 122421 } 122422 yymv1.CodecDecodeSelf(d) 122423 } 122424 122425 if yymdn1 { 122426 if yybh1.DeleteOnNilMapValue { 122427 delete(yyv1, yymk1) 122428 } else { 122429 yyv1[yymk1] = nil 122430 } 122431 } else if yyms1 && yyv1 != nil { 122432 yyv1[yymk1] = yymv1 122433 } 122434 } 122435 } // else len==0: TODO: Should we clear map entries? 122436 r.ReadMapEnd() 122437 } 122438 122439 func (x codecSelfer100) encSlicePtrtoCSIVolume(v []*CSIVolume, e *codec1978.Encoder) { 122440 var h codecSelfer100 122441 z, r := codec1978.GenHelperEncoder(e) 122442 _, _, _ = h, z, r 122443 r.WriteArrayStart(len(v)) 122444 for _, yyv1 := range v { 122445 r.WriteArrayElem() 122446 if yyv1 == nil { 122447 r.EncodeNil() 122448 } else { 122449 yyv1.CodecEncodeSelf(e) 122450 } 122451 } 122452 r.WriteArrayEnd() 122453 } 122454 122455 func (x codecSelfer100) decSlicePtrtoCSIVolume(v *[]*CSIVolume, d *codec1978.Decoder) { 122456 var h codecSelfer100 122457 z, r := codec1978.GenHelperDecoder(d) 122458 _, _, _ = h, z, r 122459 122460 yyv1 := *v 122461 yyh1, yyl1 := z.DecSliceHelperStart() 122462 var yyc1 bool 122463 _ = yyc1 122464 if yyl1 == 0 { 122465 if yyv1 == nil { 122466 yyv1 = []*CSIVolume{} 122467 yyc1 = true 122468 } else if len(yyv1) != 0 { 122469 yyv1 = yyv1[:0] 122470 yyc1 = true 122471 } 122472 } else { 122473 yyhl1 := yyl1 > 0 122474 var yyrl1 int 122475 _ = yyrl1 122476 if yyhl1 { 122477 if yyl1 > cap(yyv1) { 122478 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122479 if yyrl1 <= cap(yyv1) { 122480 yyv1 = yyv1[:yyrl1] 122481 } else { 122482 yyv1 = make([]*CSIVolume, yyrl1) 122483 } 122484 yyc1 = true 122485 } else if yyl1 != len(yyv1) { 122486 yyv1 = yyv1[:yyl1] 122487 yyc1 = true 122488 } 122489 } 122490 var yyj1 int 122491 // var yydn1 bool 122492 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122493 if yyj1 == 0 && yyv1 == nil { 122494 if yyhl1 { 122495 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122496 } else { 122497 yyrl1 = 8 122498 } 122499 yyv1 = make([]*CSIVolume, yyrl1) 122500 yyc1 = true 122501 } 122502 yyh1.ElemContainerState(yyj1) 122503 122504 var yydb1 bool 122505 if yyj1 >= len(yyv1) { 122506 yyv1 = append(yyv1, nil) 122507 yyc1 = true 122508 122509 } 122510 if yydb1 { 122511 z.DecSwallow() 122512 } else { 122513 if r.TryDecodeAsNil() { 122514 yyv1[yyj1] = nil 122515 } else { 122516 if yyv1[yyj1] == nil { 122517 yyv1[yyj1] = new(CSIVolume) 122518 } 122519 yyv1[yyj1].CodecDecodeSelf(d) 122520 } 122521 122522 } 122523 122524 } 122525 if yyj1 < len(yyv1) { 122526 yyv1 = yyv1[:yyj1] 122527 yyc1 = true 122528 } else if yyj1 == 0 && yyv1 == nil { 122529 yyv1 = make([]*CSIVolume, 0) 122530 yyc1 = true 122531 } 122532 } 122533 yyh1.End() 122534 if yyc1 { 122535 *v = yyv1 122536 } 122537 } 122538 122539 func (x codecSelfer100) encSliceCSIVolumeClaimRequest(v []CSIVolumeClaimRequest, e *codec1978.Encoder) { 122540 var h codecSelfer100 122541 z, r := codec1978.GenHelperEncoder(e) 122542 _, _, _ = h, z, r 122543 r.WriteArrayStart(len(v)) 122544 for _, yyv1 := range v { 122545 r.WriteArrayElem() 122546 yy2 := &yyv1 122547 yy2.CodecEncodeSelf(e) 122548 } 122549 r.WriteArrayEnd() 122550 } 122551 122552 func (x codecSelfer100) decSliceCSIVolumeClaimRequest(v *[]CSIVolumeClaimRequest, d *codec1978.Decoder) { 122553 var h codecSelfer100 122554 z, r := codec1978.GenHelperDecoder(d) 122555 _, _, _ = h, z, r 122556 122557 yyv1 := *v 122558 yyh1, yyl1 := z.DecSliceHelperStart() 122559 var yyc1 bool 122560 _ = yyc1 122561 if yyl1 == 0 { 122562 if yyv1 == nil { 122563 yyv1 = []CSIVolumeClaimRequest{} 122564 yyc1 = true 122565 } else if len(yyv1) != 0 { 122566 yyv1 = yyv1[:0] 122567 yyc1 = true 122568 } 122569 } else { 122570 yyhl1 := yyl1 > 0 122571 var yyrl1 int 122572 _ = yyrl1 122573 if yyhl1 { 122574 if yyl1 > cap(yyv1) { 122575 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 120) 122576 if yyrl1 <= cap(yyv1) { 122577 yyv1 = yyv1[:yyrl1] 122578 } else { 122579 yyv1 = make([]CSIVolumeClaimRequest, yyrl1) 122580 } 122581 yyc1 = true 122582 } else if yyl1 != len(yyv1) { 122583 yyv1 = yyv1[:yyl1] 122584 yyc1 = true 122585 } 122586 } 122587 var yyj1 int 122588 // var yydn1 bool 122589 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122590 if yyj1 == 0 && yyv1 == nil { 122591 if yyhl1 { 122592 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 120) 122593 } else { 122594 yyrl1 = 8 122595 } 122596 yyv1 = make([]CSIVolumeClaimRequest, yyrl1) 122597 yyc1 = true 122598 } 122599 yyh1.ElemContainerState(yyj1) 122600 122601 var yydb1 bool 122602 if yyj1 >= len(yyv1) { 122603 yyv1 = append(yyv1, CSIVolumeClaimRequest{}) 122604 yyc1 = true 122605 122606 } 122607 if yydb1 { 122608 z.DecSwallow() 122609 } else { 122610 if r.TryDecodeAsNil() { 122611 yyv1[yyj1] = CSIVolumeClaimRequest{} 122612 } else { 122613 yyv1[yyj1].CodecDecodeSelf(d) 122614 } 122615 122616 } 122617 122618 } 122619 if yyj1 < len(yyv1) { 122620 yyv1 = yyv1[:yyj1] 122621 yyc1 = true 122622 } else if yyj1 == 0 && yyv1 == nil { 122623 yyv1 = make([]CSIVolumeClaimRequest, 0) 122624 yyc1 = true 122625 } 122626 } 122627 yyh1.End() 122628 if yyc1 { 122629 *v = yyv1 122630 } 122631 } 122632 122633 func (x codecSelfer100) encSlicePtrtoCSIVolListStub(v []*CSIVolListStub, e *codec1978.Encoder) { 122634 var h codecSelfer100 122635 z, r := codec1978.GenHelperEncoder(e) 122636 _, _, _ = h, z, r 122637 r.WriteArrayStart(len(v)) 122638 for _, yyv1 := range v { 122639 r.WriteArrayElem() 122640 if yyv1 == nil { 122641 r.EncodeNil() 122642 } else { 122643 yyv1.CodecEncodeSelf(e) 122644 } 122645 } 122646 r.WriteArrayEnd() 122647 } 122648 122649 func (x codecSelfer100) decSlicePtrtoCSIVolListStub(v *[]*CSIVolListStub, d *codec1978.Decoder) { 122650 var h codecSelfer100 122651 z, r := codec1978.GenHelperDecoder(d) 122652 _, _, _ = h, z, r 122653 122654 yyv1 := *v 122655 yyh1, yyl1 := z.DecSliceHelperStart() 122656 var yyc1 bool 122657 _ = yyc1 122658 if yyl1 == 0 { 122659 if yyv1 == nil { 122660 yyv1 = []*CSIVolListStub{} 122661 yyc1 = true 122662 } else if len(yyv1) != 0 { 122663 yyv1 = yyv1[:0] 122664 yyc1 = true 122665 } 122666 } else { 122667 yyhl1 := yyl1 > 0 122668 var yyrl1 int 122669 _ = yyrl1 122670 if yyhl1 { 122671 if yyl1 > cap(yyv1) { 122672 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122673 if yyrl1 <= cap(yyv1) { 122674 yyv1 = yyv1[:yyrl1] 122675 } else { 122676 yyv1 = make([]*CSIVolListStub, yyrl1) 122677 } 122678 yyc1 = true 122679 } else if yyl1 != len(yyv1) { 122680 yyv1 = yyv1[:yyl1] 122681 yyc1 = true 122682 } 122683 } 122684 var yyj1 int 122685 // var yydn1 bool 122686 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122687 if yyj1 == 0 && yyv1 == nil { 122688 if yyhl1 { 122689 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122690 } else { 122691 yyrl1 = 8 122692 } 122693 yyv1 = make([]*CSIVolListStub, yyrl1) 122694 yyc1 = true 122695 } 122696 yyh1.ElemContainerState(yyj1) 122697 122698 var yydb1 bool 122699 if yyj1 >= len(yyv1) { 122700 yyv1 = append(yyv1, nil) 122701 yyc1 = true 122702 122703 } 122704 if yydb1 { 122705 z.DecSwallow() 122706 } else { 122707 if r.TryDecodeAsNil() { 122708 yyv1[yyj1] = nil 122709 } else { 122710 if yyv1[yyj1] == nil { 122711 yyv1[yyj1] = new(CSIVolListStub) 122712 } 122713 yyv1[yyj1].CodecDecodeSelf(d) 122714 } 122715 122716 } 122717 122718 } 122719 if yyj1 < len(yyv1) { 122720 yyv1 = yyv1[:yyj1] 122721 yyc1 = true 122722 } else if yyj1 == 0 && yyv1 == nil { 122723 yyv1 = make([]*CSIVolListStub, 0) 122724 yyc1 = true 122725 } 122726 } 122727 yyh1.End() 122728 if yyc1 { 122729 *v = yyv1 122730 } 122731 } 122732 122733 func (x codecSelfer100) encMapstringPtrtoCSIInfo(v map[string]*CSIInfo, e *codec1978.Encoder) { 122734 var h codecSelfer100 122735 z, r := codec1978.GenHelperEncoder(e) 122736 _, _, _ = h, z, r 122737 r.WriteMapStart(len(v)) 122738 for yyk1, yyv1 := range v { 122739 r.WriteMapElemKey() 122740 if false { 122741 } else { 122742 if z.EncBasicHandle().StringToRaw { 122743 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 122744 } else { 122745 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 122746 } 122747 } 122748 r.WriteMapElemValue() 122749 if yyv1 == nil { 122750 r.EncodeNil() 122751 } else { 122752 yyv1.CodecEncodeSelf(e) 122753 } 122754 } 122755 r.WriteMapEnd() 122756 } 122757 122758 func (x codecSelfer100) decMapstringPtrtoCSIInfo(v *map[string]*CSIInfo, d *codec1978.Decoder) { 122759 var h codecSelfer100 122760 z, r := codec1978.GenHelperDecoder(d) 122761 _, _, _ = h, z, r 122762 122763 yyv1 := *v 122764 yyl1 := r.ReadMapStart() 122765 yybh1 := z.DecBasicHandle() 122766 if yyv1 == nil { 122767 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 122768 yyv1 = make(map[string]*CSIInfo, yyrl1) 122769 *v = yyv1 122770 } 122771 var yymk1 string 122772 var yymv1 *CSIInfo 122773 var yymg1, yymdn1, yyms1, yymok1 bool 122774 if yybh1.MapValueReset { 122775 yymg1 = true 122776 } 122777 if yyl1 != 0 { 122778 yyhl1 := yyl1 > 0 122779 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 122780 r.ReadMapElemKey() 122781 if r.TryDecodeAsNil() { 122782 yymk1 = "" 122783 } else { 122784 yymk1 = (string)(r.DecodeString()) 122785 } 122786 122787 yyms1 = true 122788 if yymg1 { 122789 yymv1, yymok1 = yyv1[yymk1] 122790 if yymok1 { 122791 yyms1 = false 122792 } 122793 } else { 122794 yymv1 = nil 122795 } 122796 r.ReadMapElemValue() 122797 yymdn1 = false 122798 if r.TryDecodeAsNil() { 122799 yymdn1 = true 122800 } else { 122801 if yymv1 == nil { 122802 yymv1 = new(CSIInfo) 122803 } 122804 yymv1.CodecDecodeSelf(d) 122805 } 122806 122807 if yymdn1 { 122808 if yybh1.DeleteOnNilMapValue { 122809 delete(yyv1, yymk1) 122810 } else { 122811 yyv1[yymk1] = nil 122812 } 122813 } else if yyms1 && yyv1 != nil { 122814 yyv1[yymk1] = yymv1 122815 } 122816 } 122817 } // else len==0: TODO: Should we clear map entries? 122818 r.ReadMapEnd() 122819 } 122820 122821 func (x codecSelfer100) encSlicePtrtoAllocListStub(v []*AllocListStub, e *codec1978.Encoder) { 122822 var h codecSelfer100 122823 z, r := codec1978.GenHelperEncoder(e) 122824 _, _, _ = h, z, r 122825 r.WriteArrayStart(len(v)) 122826 for _, yyv1 := range v { 122827 r.WriteArrayElem() 122828 if yyv1 == nil { 122829 r.EncodeNil() 122830 } else { 122831 yyv1.CodecEncodeSelf(e) 122832 } 122833 } 122834 r.WriteArrayEnd() 122835 } 122836 122837 func (x codecSelfer100) decSlicePtrtoAllocListStub(v *[]*AllocListStub, d *codec1978.Decoder) { 122838 var h codecSelfer100 122839 z, r := codec1978.GenHelperDecoder(d) 122840 _, _, _ = h, z, r 122841 122842 yyv1 := *v 122843 yyh1, yyl1 := z.DecSliceHelperStart() 122844 var yyc1 bool 122845 _ = yyc1 122846 if yyl1 == 0 { 122847 if yyv1 == nil { 122848 yyv1 = []*AllocListStub{} 122849 yyc1 = true 122850 } else if len(yyv1) != 0 { 122851 yyv1 = yyv1[:0] 122852 yyc1 = true 122853 } 122854 } else { 122855 yyhl1 := yyl1 > 0 122856 var yyrl1 int 122857 _ = yyrl1 122858 if yyhl1 { 122859 if yyl1 > cap(yyv1) { 122860 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122861 if yyrl1 <= cap(yyv1) { 122862 yyv1 = yyv1[:yyrl1] 122863 } else { 122864 yyv1 = make([]*AllocListStub, yyrl1) 122865 } 122866 yyc1 = true 122867 } else if yyl1 != len(yyv1) { 122868 yyv1 = yyv1[:yyl1] 122869 yyc1 = true 122870 } 122871 } 122872 var yyj1 int 122873 // var yydn1 bool 122874 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122875 if yyj1 == 0 && yyv1 == nil { 122876 if yyhl1 { 122877 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122878 } else { 122879 yyrl1 = 8 122880 } 122881 yyv1 = make([]*AllocListStub, yyrl1) 122882 yyc1 = true 122883 } 122884 yyh1.ElemContainerState(yyj1) 122885 122886 var yydb1 bool 122887 if yyj1 >= len(yyv1) { 122888 yyv1 = append(yyv1, nil) 122889 yyc1 = true 122890 122891 } 122892 if yydb1 { 122893 z.DecSwallow() 122894 } else { 122895 if r.TryDecodeAsNil() { 122896 yyv1[yyj1] = nil 122897 } else { 122898 if yyv1[yyj1] == nil { 122899 yyv1[yyj1] = new(AllocListStub) 122900 } 122901 yyv1[yyj1].CodecDecodeSelf(d) 122902 } 122903 122904 } 122905 122906 } 122907 if yyj1 < len(yyv1) { 122908 yyv1 = yyv1[:yyj1] 122909 yyc1 = true 122910 } else if yyj1 == 0 && yyv1 == nil { 122911 yyv1 = make([]*AllocListStub, 0) 122912 yyc1 = true 122913 } 122914 } 122915 yyh1.End() 122916 if yyc1 { 122917 *v = yyv1 122918 } 122919 } 122920 122921 func (x codecSelfer100) encSlicePtrtoCSIPluginListStub(v []*CSIPluginListStub, e *codec1978.Encoder) { 122922 var h codecSelfer100 122923 z, r := codec1978.GenHelperEncoder(e) 122924 _, _, _ = h, z, r 122925 r.WriteArrayStart(len(v)) 122926 for _, yyv1 := range v { 122927 r.WriteArrayElem() 122928 if yyv1 == nil { 122929 r.EncodeNil() 122930 } else { 122931 yyv1.CodecEncodeSelf(e) 122932 } 122933 } 122934 r.WriteArrayEnd() 122935 } 122936 122937 func (x codecSelfer100) decSlicePtrtoCSIPluginListStub(v *[]*CSIPluginListStub, d *codec1978.Decoder) { 122938 var h codecSelfer100 122939 z, r := codec1978.GenHelperDecoder(d) 122940 _, _, _ = h, z, r 122941 122942 yyv1 := *v 122943 yyh1, yyl1 := z.DecSliceHelperStart() 122944 var yyc1 bool 122945 _ = yyc1 122946 if yyl1 == 0 { 122947 if yyv1 == nil { 122948 yyv1 = []*CSIPluginListStub{} 122949 yyc1 = true 122950 } else if len(yyv1) != 0 { 122951 yyv1 = yyv1[:0] 122952 yyc1 = true 122953 } 122954 } else { 122955 yyhl1 := yyl1 > 0 122956 var yyrl1 int 122957 _ = yyrl1 122958 if yyhl1 { 122959 if yyl1 > cap(yyv1) { 122960 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122961 if yyrl1 <= cap(yyv1) { 122962 yyv1 = yyv1[:yyrl1] 122963 } else { 122964 yyv1 = make([]*CSIPluginListStub, yyrl1) 122965 } 122966 yyc1 = true 122967 } else if yyl1 != len(yyv1) { 122968 yyv1 = yyv1[:yyl1] 122969 yyc1 = true 122970 } 122971 } 122972 var yyj1 int 122973 // var yydn1 bool 122974 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 122975 if yyj1 == 0 && yyv1 == nil { 122976 if yyhl1 { 122977 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 122978 } else { 122979 yyrl1 = 8 122980 } 122981 yyv1 = make([]*CSIPluginListStub, yyrl1) 122982 yyc1 = true 122983 } 122984 yyh1.ElemContainerState(yyj1) 122985 122986 var yydb1 bool 122987 if yyj1 >= len(yyv1) { 122988 yyv1 = append(yyv1, nil) 122989 yyc1 = true 122990 122991 } 122992 if yydb1 { 122993 z.DecSwallow() 122994 } else { 122995 if r.TryDecodeAsNil() { 122996 yyv1[yyj1] = nil 122997 } else { 122998 if yyv1[yyj1] == nil { 122999 yyv1[yyj1] = new(CSIPluginListStub) 123000 } 123001 yyv1[yyj1].CodecDecodeSelf(d) 123002 } 123003 123004 } 123005 123006 } 123007 if yyj1 < len(yyv1) { 123008 yyv1 = yyv1[:yyj1] 123009 yyc1 = true 123010 } else if yyj1 == 0 && yyv1 == nil { 123011 yyv1 = make([]*CSIPluginListStub, 0) 123012 yyc1 = true 123013 } 123014 } 123015 yyh1.End() 123016 if yyc1 { 123017 *v = yyv1 123018 } 123019 } 123020 123021 func (x codecSelfer100) encMapDeviceIdTuplePtrtoDeviceAccounterInstance(v map[DeviceIdTuple]*DeviceAccounterInstance, e *codec1978.Encoder) { 123022 var h codecSelfer100 123023 z, r := codec1978.GenHelperEncoder(e) 123024 _, _, _ = h, z, r 123025 r.WriteMapStart(len(v)) 123026 for yyk1, yyv1 := range v { 123027 r.WriteMapElemKey() 123028 yy2 := &yyk1 123029 yy2.CodecEncodeSelf(e) 123030 r.WriteMapElemValue() 123031 if yyv1 == nil { 123032 r.EncodeNil() 123033 } else { 123034 yyv1.CodecEncodeSelf(e) 123035 } 123036 } 123037 r.WriteMapEnd() 123038 } 123039 123040 func (x codecSelfer100) decMapDeviceIdTuplePtrtoDeviceAccounterInstance(v *map[DeviceIdTuple]*DeviceAccounterInstance, d *codec1978.Decoder) { 123041 var h codecSelfer100 123042 z, r := codec1978.GenHelperDecoder(d) 123043 _, _, _ = h, z, r 123044 123045 yyv1 := *v 123046 yyl1 := r.ReadMapStart() 123047 yybh1 := z.DecBasicHandle() 123048 if yyv1 == nil { 123049 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 56) 123050 yyv1 = make(map[DeviceIdTuple]*DeviceAccounterInstance, yyrl1) 123051 *v = yyv1 123052 } 123053 var yymk1 DeviceIdTuple 123054 var yymv1 *DeviceAccounterInstance 123055 var yymg1, yymdn1, yyms1, yymok1 bool 123056 if yybh1.MapValueReset { 123057 yymg1 = true 123058 } 123059 if yyl1 != 0 { 123060 yyhl1 := yyl1 > 0 123061 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 123062 r.ReadMapElemKey() 123063 if r.TryDecodeAsNil() { 123064 yymk1 = DeviceIdTuple{} 123065 } else { 123066 yymk1.CodecDecodeSelf(d) 123067 } 123068 123069 yyms1 = true 123070 if yymg1 { 123071 yymv1, yymok1 = yyv1[yymk1] 123072 if yymok1 { 123073 yyms1 = false 123074 } 123075 } else { 123076 yymv1 = nil 123077 } 123078 r.ReadMapElemValue() 123079 yymdn1 = false 123080 if r.TryDecodeAsNil() { 123081 yymdn1 = true 123082 } else { 123083 if yymv1 == nil { 123084 yymv1 = new(DeviceAccounterInstance) 123085 } 123086 yymv1.CodecDecodeSelf(d) 123087 } 123088 123089 if yymdn1 { 123090 if yybh1.DeleteOnNilMapValue { 123091 delete(yyv1, yymk1) 123092 } else { 123093 yyv1[yymk1] = nil 123094 } 123095 } else if yyms1 && yyv1 != nil { 123096 yyv1[yymk1] = yymv1 123097 } 123098 } 123099 } // else len==0: TODO: Should we clear map entries? 123100 r.ReadMapEnd() 123101 } 123102 123103 func (x codecSelfer100) encSlicePtrtoFieldDiff(v []*FieldDiff, e *codec1978.Encoder) { 123104 var h codecSelfer100 123105 z, r := codec1978.GenHelperEncoder(e) 123106 _, _, _ = h, z, r 123107 r.WriteArrayStart(len(v)) 123108 for _, yyv1 := range v { 123109 r.WriteArrayElem() 123110 if yyv1 == nil { 123111 r.EncodeNil() 123112 } else { 123113 yyv1.CodecEncodeSelf(e) 123114 } 123115 } 123116 r.WriteArrayEnd() 123117 } 123118 123119 func (x codecSelfer100) decSlicePtrtoFieldDiff(v *[]*FieldDiff, d *codec1978.Decoder) { 123120 var h codecSelfer100 123121 z, r := codec1978.GenHelperDecoder(d) 123122 _, _, _ = h, z, r 123123 123124 yyv1 := *v 123125 yyh1, yyl1 := z.DecSliceHelperStart() 123126 var yyc1 bool 123127 _ = yyc1 123128 if yyl1 == 0 { 123129 if yyv1 == nil { 123130 yyv1 = []*FieldDiff{} 123131 yyc1 = true 123132 } else if len(yyv1) != 0 { 123133 yyv1 = yyv1[:0] 123134 yyc1 = true 123135 } 123136 } else { 123137 yyhl1 := yyl1 > 0 123138 var yyrl1 int 123139 _ = yyrl1 123140 if yyhl1 { 123141 if yyl1 > cap(yyv1) { 123142 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123143 if yyrl1 <= cap(yyv1) { 123144 yyv1 = yyv1[:yyrl1] 123145 } else { 123146 yyv1 = make([]*FieldDiff, yyrl1) 123147 } 123148 yyc1 = true 123149 } else if yyl1 != len(yyv1) { 123150 yyv1 = yyv1[:yyl1] 123151 yyc1 = true 123152 } 123153 } 123154 var yyj1 int 123155 // var yydn1 bool 123156 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123157 if yyj1 == 0 && yyv1 == nil { 123158 if yyhl1 { 123159 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123160 } else { 123161 yyrl1 = 8 123162 } 123163 yyv1 = make([]*FieldDiff, yyrl1) 123164 yyc1 = true 123165 } 123166 yyh1.ElemContainerState(yyj1) 123167 123168 var yydb1 bool 123169 if yyj1 >= len(yyv1) { 123170 yyv1 = append(yyv1, nil) 123171 yyc1 = true 123172 123173 } 123174 if yydb1 { 123175 z.DecSwallow() 123176 } else { 123177 if r.TryDecodeAsNil() { 123178 yyv1[yyj1] = nil 123179 } else { 123180 if yyv1[yyj1] == nil { 123181 yyv1[yyj1] = new(FieldDiff) 123182 } 123183 yyv1[yyj1].CodecDecodeSelf(d) 123184 } 123185 123186 } 123187 123188 } 123189 if yyj1 < len(yyv1) { 123190 yyv1 = yyv1[:yyj1] 123191 yyc1 = true 123192 } else if yyj1 == 0 && yyv1 == nil { 123193 yyv1 = make([]*FieldDiff, 0) 123194 yyc1 = true 123195 } 123196 } 123197 yyh1.End() 123198 if yyc1 { 123199 *v = yyv1 123200 } 123201 } 123202 123203 func (x codecSelfer100) encSlicePtrtoObjectDiff(v []*ObjectDiff, e *codec1978.Encoder) { 123204 var h codecSelfer100 123205 z, r := codec1978.GenHelperEncoder(e) 123206 _, _, _ = h, z, r 123207 r.WriteArrayStart(len(v)) 123208 for _, yyv1 := range v { 123209 r.WriteArrayElem() 123210 if yyv1 == nil { 123211 r.EncodeNil() 123212 } else { 123213 yyv1.CodecEncodeSelf(e) 123214 } 123215 } 123216 r.WriteArrayEnd() 123217 } 123218 123219 func (x codecSelfer100) decSlicePtrtoObjectDiff(v *[]*ObjectDiff, d *codec1978.Decoder) { 123220 var h codecSelfer100 123221 z, r := codec1978.GenHelperDecoder(d) 123222 _, _, _ = h, z, r 123223 123224 yyv1 := *v 123225 yyh1, yyl1 := z.DecSliceHelperStart() 123226 var yyc1 bool 123227 _ = yyc1 123228 if yyl1 == 0 { 123229 if yyv1 == nil { 123230 yyv1 = []*ObjectDiff{} 123231 yyc1 = true 123232 } else if len(yyv1) != 0 { 123233 yyv1 = yyv1[:0] 123234 yyc1 = true 123235 } 123236 } else { 123237 yyhl1 := yyl1 > 0 123238 var yyrl1 int 123239 _ = yyrl1 123240 if yyhl1 { 123241 if yyl1 > cap(yyv1) { 123242 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123243 if yyrl1 <= cap(yyv1) { 123244 yyv1 = yyv1[:yyrl1] 123245 } else { 123246 yyv1 = make([]*ObjectDiff, yyrl1) 123247 } 123248 yyc1 = true 123249 } else if yyl1 != len(yyv1) { 123250 yyv1 = yyv1[:yyl1] 123251 yyc1 = true 123252 } 123253 } 123254 var yyj1 int 123255 // var yydn1 bool 123256 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123257 if yyj1 == 0 && yyv1 == nil { 123258 if yyhl1 { 123259 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123260 } else { 123261 yyrl1 = 8 123262 } 123263 yyv1 = make([]*ObjectDiff, yyrl1) 123264 yyc1 = true 123265 } 123266 yyh1.ElemContainerState(yyj1) 123267 123268 var yydb1 bool 123269 if yyj1 >= len(yyv1) { 123270 yyv1 = append(yyv1, nil) 123271 yyc1 = true 123272 123273 } 123274 if yydb1 { 123275 z.DecSwallow() 123276 } else { 123277 if r.TryDecodeAsNil() { 123278 yyv1[yyj1] = nil 123279 } else { 123280 if yyv1[yyj1] == nil { 123281 yyv1[yyj1] = new(ObjectDiff) 123282 } 123283 yyv1[yyj1].CodecDecodeSelf(d) 123284 } 123285 123286 } 123287 123288 } 123289 if yyj1 < len(yyv1) { 123290 yyv1 = yyv1[:yyj1] 123291 yyc1 = true 123292 } else if yyj1 == 0 && yyv1 == nil { 123293 yyv1 = make([]*ObjectDiff, 0) 123294 yyc1 = true 123295 } 123296 } 123297 yyh1.End() 123298 if yyc1 { 123299 *v = yyv1 123300 } 123301 } 123302 123303 func (x codecSelfer100) encSlicePtrtoTaskGroupDiff(v []*TaskGroupDiff, e *codec1978.Encoder) { 123304 var h codecSelfer100 123305 z, r := codec1978.GenHelperEncoder(e) 123306 _, _, _ = h, z, r 123307 r.WriteArrayStart(len(v)) 123308 for _, yyv1 := range v { 123309 r.WriteArrayElem() 123310 if yyv1 == nil { 123311 r.EncodeNil() 123312 } else { 123313 yyv1.CodecEncodeSelf(e) 123314 } 123315 } 123316 r.WriteArrayEnd() 123317 } 123318 123319 func (x codecSelfer100) decSlicePtrtoTaskGroupDiff(v *[]*TaskGroupDiff, d *codec1978.Decoder) { 123320 var h codecSelfer100 123321 z, r := codec1978.GenHelperDecoder(d) 123322 _, _, _ = h, z, r 123323 123324 yyv1 := *v 123325 yyh1, yyl1 := z.DecSliceHelperStart() 123326 var yyc1 bool 123327 _ = yyc1 123328 if yyl1 == 0 { 123329 if yyv1 == nil { 123330 yyv1 = []*TaskGroupDiff{} 123331 yyc1 = true 123332 } else if len(yyv1) != 0 { 123333 yyv1 = yyv1[:0] 123334 yyc1 = true 123335 } 123336 } else { 123337 yyhl1 := yyl1 > 0 123338 var yyrl1 int 123339 _ = yyrl1 123340 if yyhl1 { 123341 if yyl1 > cap(yyv1) { 123342 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123343 if yyrl1 <= cap(yyv1) { 123344 yyv1 = yyv1[:yyrl1] 123345 } else { 123346 yyv1 = make([]*TaskGroupDiff, yyrl1) 123347 } 123348 yyc1 = true 123349 } else if yyl1 != len(yyv1) { 123350 yyv1 = yyv1[:yyl1] 123351 yyc1 = true 123352 } 123353 } 123354 var yyj1 int 123355 // var yydn1 bool 123356 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123357 if yyj1 == 0 && yyv1 == nil { 123358 if yyhl1 { 123359 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123360 } else { 123361 yyrl1 = 8 123362 } 123363 yyv1 = make([]*TaskGroupDiff, yyrl1) 123364 yyc1 = true 123365 } 123366 yyh1.ElemContainerState(yyj1) 123367 123368 var yydb1 bool 123369 if yyj1 >= len(yyv1) { 123370 yyv1 = append(yyv1, nil) 123371 yyc1 = true 123372 123373 } 123374 if yydb1 { 123375 z.DecSwallow() 123376 } else { 123377 if r.TryDecodeAsNil() { 123378 yyv1[yyj1] = nil 123379 } else { 123380 if yyv1[yyj1] == nil { 123381 yyv1[yyj1] = new(TaskGroupDiff) 123382 } 123383 yyv1[yyj1].CodecDecodeSelf(d) 123384 } 123385 123386 } 123387 123388 } 123389 if yyj1 < len(yyv1) { 123390 yyv1 = yyv1[:yyj1] 123391 yyc1 = true 123392 } else if yyj1 == 0 && yyv1 == nil { 123393 yyv1 = make([]*TaskGroupDiff, 0) 123394 yyc1 = true 123395 } 123396 } 123397 yyh1.End() 123398 if yyc1 { 123399 *v = yyv1 123400 } 123401 } 123402 123403 func (x codecSelfer100) encSlicePtrtoTaskDiff(v []*TaskDiff, e *codec1978.Encoder) { 123404 var h codecSelfer100 123405 z, r := codec1978.GenHelperEncoder(e) 123406 _, _, _ = h, z, r 123407 r.WriteArrayStart(len(v)) 123408 for _, yyv1 := range v { 123409 r.WriteArrayElem() 123410 if yyv1 == nil { 123411 r.EncodeNil() 123412 } else { 123413 yyv1.CodecEncodeSelf(e) 123414 } 123415 } 123416 r.WriteArrayEnd() 123417 } 123418 123419 func (x codecSelfer100) decSlicePtrtoTaskDiff(v *[]*TaskDiff, d *codec1978.Decoder) { 123420 var h codecSelfer100 123421 z, r := codec1978.GenHelperDecoder(d) 123422 _, _, _ = h, z, r 123423 123424 yyv1 := *v 123425 yyh1, yyl1 := z.DecSliceHelperStart() 123426 var yyc1 bool 123427 _ = yyc1 123428 if yyl1 == 0 { 123429 if yyv1 == nil { 123430 yyv1 = []*TaskDiff{} 123431 yyc1 = true 123432 } else if len(yyv1) != 0 { 123433 yyv1 = yyv1[:0] 123434 yyc1 = true 123435 } 123436 } else { 123437 yyhl1 := yyl1 > 0 123438 var yyrl1 int 123439 _ = yyrl1 123440 if yyhl1 { 123441 if yyl1 > cap(yyv1) { 123442 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123443 if yyrl1 <= cap(yyv1) { 123444 yyv1 = yyv1[:yyrl1] 123445 } else { 123446 yyv1 = make([]*TaskDiff, yyrl1) 123447 } 123448 yyc1 = true 123449 } else if yyl1 != len(yyv1) { 123450 yyv1 = yyv1[:yyl1] 123451 yyc1 = true 123452 } 123453 } 123454 var yyj1 int 123455 // var yydn1 bool 123456 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123457 if yyj1 == 0 && yyv1 == nil { 123458 if yyhl1 { 123459 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123460 } else { 123461 yyrl1 = 8 123462 } 123463 yyv1 = make([]*TaskDiff, yyrl1) 123464 yyc1 = true 123465 } 123466 yyh1.ElemContainerState(yyj1) 123467 123468 var yydb1 bool 123469 if yyj1 >= len(yyv1) { 123470 yyv1 = append(yyv1, nil) 123471 yyc1 = true 123472 123473 } 123474 if yydb1 { 123475 z.DecSwallow() 123476 } else { 123477 if r.TryDecodeAsNil() { 123478 yyv1[yyj1] = nil 123479 } else { 123480 if yyv1[yyj1] == nil { 123481 yyv1[yyj1] = new(TaskDiff) 123482 } 123483 yyv1[yyj1].CodecDecodeSelf(d) 123484 } 123485 123486 } 123487 123488 } 123489 if yyj1 < len(yyv1) { 123490 yyv1 = yyv1[:yyj1] 123491 yyc1 = true 123492 } else if yyj1 == 0 && yyv1 == nil { 123493 yyv1 = make([]*TaskDiff, 0) 123494 yyc1 = true 123495 } 123496 } 123497 yyh1.End() 123498 if yyc1 { 123499 *v = yyv1 123500 } 123501 } 123502 123503 func (x codecSelfer100) encTaskGroupDiffs(v TaskGroupDiffs, e *codec1978.Encoder) { 123504 var h codecSelfer100 123505 z, r := codec1978.GenHelperEncoder(e) 123506 _, _, _ = h, z, r 123507 r.WriteArrayStart(len(v)) 123508 for _, yyv1 := range v { 123509 r.WriteArrayElem() 123510 if yyv1 == nil { 123511 r.EncodeNil() 123512 } else { 123513 yyv1.CodecEncodeSelf(e) 123514 } 123515 } 123516 r.WriteArrayEnd() 123517 } 123518 123519 func (x codecSelfer100) decTaskGroupDiffs(v *TaskGroupDiffs, d *codec1978.Decoder) { 123520 var h codecSelfer100 123521 z, r := codec1978.GenHelperDecoder(d) 123522 _, _, _ = h, z, r 123523 123524 yyv1 := *v 123525 yyh1, yyl1 := z.DecSliceHelperStart() 123526 var yyc1 bool 123527 _ = yyc1 123528 if yyl1 == 0 { 123529 if yyv1 == nil { 123530 yyv1 = []*TaskGroupDiff{} 123531 yyc1 = true 123532 } else if len(yyv1) != 0 { 123533 yyv1 = yyv1[:0] 123534 yyc1 = true 123535 } 123536 } else { 123537 yyhl1 := yyl1 > 0 123538 var yyrl1 int 123539 _ = yyrl1 123540 if yyhl1 { 123541 if yyl1 > cap(yyv1) { 123542 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123543 if yyrl1 <= cap(yyv1) { 123544 yyv1 = yyv1[:yyrl1] 123545 } else { 123546 yyv1 = make([]*TaskGroupDiff, yyrl1) 123547 } 123548 yyc1 = true 123549 } else if yyl1 != len(yyv1) { 123550 yyv1 = yyv1[:yyl1] 123551 yyc1 = true 123552 } 123553 } 123554 var yyj1 int 123555 // var yydn1 bool 123556 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123557 if yyj1 == 0 && yyv1 == nil { 123558 if yyhl1 { 123559 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123560 } else { 123561 yyrl1 = 8 123562 } 123563 yyv1 = make([]*TaskGroupDiff, yyrl1) 123564 yyc1 = true 123565 } 123566 yyh1.ElemContainerState(yyj1) 123567 123568 var yydb1 bool 123569 if yyj1 >= len(yyv1) { 123570 yyv1 = append(yyv1, nil) 123571 yyc1 = true 123572 123573 } 123574 if yydb1 { 123575 z.DecSwallow() 123576 } else { 123577 if r.TryDecodeAsNil() { 123578 yyv1[yyj1] = nil 123579 } else { 123580 if yyv1[yyj1] == nil { 123581 yyv1[yyj1] = new(TaskGroupDiff) 123582 } 123583 yyv1[yyj1].CodecDecodeSelf(d) 123584 } 123585 123586 } 123587 123588 } 123589 if yyj1 < len(yyv1) { 123590 yyv1 = yyv1[:yyj1] 123591 yyc1 = true 123592 } else if yyj1 == 0 && yyv1 == nil { 123593 yyv1 = make([]*TaskGroupDiff, 0) 123594 yyc1 = true 123595 } 123596 } 123597 yyh1.End() 123598 if yyc1 { 123599 *v = yyv1 123600 } 123601 } 123602 123603 func (x codecSelfer100) encTaskDiffs(v TaskDiffs, e *codec1978.Encoder) { 123604 var h codecSelfer100 123605 z, r := codec1978.GenHelperEncoder(e) 123606 _, _, _ = h, z, r 123607 r.WriteArrayStart(len(v)) 123608 for _, yyv1 := range v { 123609 r.WriteArrayElem() 123610 if yyv1 == nil { 123611 r.EncodeNil() 123612 } else { 123613 yyv1.CodecEncodeSelf(e) 123614 } 123615 } 123616 r.WriteArrayEnd() 123617 } 123618 123619 func (x codecSelfer100) decTaskDiffs(v *TaskDiffs, d *codec1978.Decoder) { 123620 var h codecSelfer100 123621 z, r := codec1978.GenHelperDecoder(d) 123622 _, _, _ = h, z, r 123623 123624 yyv1 := *v 123625 yyh1, yyl1 := z.DecSliceHelperStart() 123626 var yyc1 bool 123627 _ = yyc1 123628 if yyl1 == 0 { 123629 if yyv1 == nil { 123630 yyv1 = []*TaskDiff{} 123631 yyc1 = true 123632 } else if len(yyv1) != 0 { 123633 yyv1 = yyv1[:0] 123634 yyc1 = true 123635 } 123636 } else { 123637 yyhl1 := yyl1 > 0 123638 var yyrl1 int 123639 _ = yyrl1 123640 if yyhl1 { 123641 if yyl1 > cap(yyv1) { 123642 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123643 if yyrl1 <= cap(yyv1) { 123644 yyv1 = yyv1[:yyrl1] 123645 } else { 123646 yyv1 = make([]*TaskDiff, yyrl1) 123647 } 123648 yyc1 = true 123649 } else if yyl1 != len(yyv1) { 123650 yyv1 = yyv1[:yyl1] 123651 yyc1 = true 123652 } 123653 } 123654 var yyj1 int 123655 // var yydn1 bool 123656 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123657 if yyj1 == 0 && yyv1 == nil { 123658 if yyhl1 { 123659 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123660 } else { 123661 yyrl1 = 8 123662 } 123663 yyv1 = make([]*TaskDiff, yyrl1) 123664 yyc1 = true 123665 } 123666 yyh1.ElemContainerState(yyj1) 123667 123668 var yydb1 bool 123669 if yyj1 >= len(yyv1) { 123670 yyv1 = append(yyv1, nil) 123671 yyc1 = true 123672 123673 } 123674 if yydb1 { 123675 z.DecSwallow() 123676 } else { 123677 if r.TryDecodeAsNil() { 123678 yyv1[yyj1] = nil 123679 } else { 123680 if yyv1[yyj1] == nil { 123681 yyv1[yyj1] = new(TaskDiff) 123682 } 123683 yyv1[yyj1].CodecDecodeSelf(d) 123684 } 123685 123686 } 123687 123688 } 123689 if yyj1 < len(yyv1) { 123690 yyv1 = yyv1[:yyj1] 123691 yyc1 = true 123692 } else if yyj1 == 0 && yyv1 == nil { 123693 yyv1 = make([]*TaskDiff, 0) 123694 yyc1 = true 123695 } 123696 } 123697 yyh1.End() 123698 if yyc1 { 123699 *v = yyv1 123700 } 123701 } 123702 123703 func (x codecSelfer100) encObjectDiffs(v ObjectDiffs, e *codec1978.Encoder) { 123704 var h codecSelfer100 123705 z, r := codec1978.GenHelperEncoder(e) 123706 _, _, _ = h, z, r 123707 r.WriteArrayStart(len(v)) 123708 for _, yyv1 := range v { 123709 r.WriteArrayElem() 123710 if yyv1 == nil { 123711 r.EncodeNil() 123712 } else { 123713 yyv1.CodecEncodeSelf(e) 123714 } 123715 } 123716 r.WriteArrayEnd() 123717 } 123718 123719 func (x codecSelfer100) decObjectDiffs(v *ObjectDiffs, d *codec1978.Decoder) { 123720 var h codecSelfer100 123721 z, r := codec1978.GenHelperDecoder(d) 123722 _, _, _ = h, z, r 123723 123724 yyv1 := *v 123725 yyh1, yyl1 := z.DecSliceHelperStart() 123726 var yyc1 bool 123727 _ = yyc1 123728 if yyl1 == 0 { 123729 if yyv1 == nil { 123730 yyv1 = []*ObjectDiff{} 123731 yyc1 = true 123732 } else if len(yyv1) != 0 { 123733 yyv1 = yyv1[:0] 123734 yyc1 = true 123735 } 123736 } else { 123737 yyhl1 := yyl1 > 0 123738 var yyrl1 int 123739 _ = yyrl1 123740 if yyhl1 { 123741 if yyl1 > cap(yyv1) { 123742 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123743 if yyrl1 <= cap(yyv1) { 123744 yyv1 = yyv1[:yyrl1] 123745 } else { 123746 yyv1 = make([]*ObjectDiff, yyrl1) 123747 } 123748 yyc1 = true 123749 } else if yyl1 != len(yyv1) { 123750 yyv1 = yyv1[:yyl1] 123751 yyc1 = true 123752 } 123753 } 123754 var yyj1 int 123755 // var yydn1 bool 123756 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123757 if yyj1 == 0 && yyv1 == nil { 123758 if yyhl1 { 123759 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123760 } else { 123761 yyrl1 = 8 123762 } 123763 yyv1 = make([]*ObjectDiff, yyrl1) 123764 yyc1 = true 123765 } 123766 yyh1.ElemContainerState(yyj1) 123767 123768 var yydb1 bool 123769 if yyj1 >= len(yyv1) { 123770 yyv1 = append(yyv1, nil) 123771 yyc1 = true 123772 123773 } 123774 if yydb1 { 123775 z.DecSwallow() 123776 } else { 123777 if r.TryDecodeAsNil() { 123778 yyv1[yyj1] = nil 123779 } else { 123780 if yyv1[yyj1] == nil { 123781 yyv1[yyj1] = new(ObjectDiff) 123782 } 123783 yyv1[yyj1].CodecDecodeSelf(d) 123784 } 123785 123786 } 123787 123788 } 123789 if yyj1 < len(yyv1) { 123790 yyv1 = yyv1[:yyj1] 123791 yyc1 = true 123792 } else if yyj1 == 0 && yyv1 == nil { 123793 yyv1 = make([]*ObjectDiff, 0) 123794 yyc1 = true 123795 } 123796 } 123797 yyh1.End() 123798 if yyc1 { 123799 *v = yyv1 123800 } 123801 } 123802 123803 func (x codecSelfer100) encFieldDiffs(v FieldDiffs, e *codec1978.Encoder) { 123804 var h codecSelfer100 123805 z, r := codec1978.GenHelperEncoder(e) 123806 _, _, _ = h, z, r 123807 r.WriteArrayStart(len(v)) 123808 for _, yyv1 := range v { 123809 r.WriteArrayElem() 123810 if yyv1 == nil { 123811 r.EncodeNil() 123812 } else { 123813 yyv1.CodecEncodeSelf(e) 123814 } 123815 } 123816 r.WriteArrayEnd() 123817 } 123818 123819 func (x codecSelfer100) decFieldDiffs(v *FieldDiffs, d *codec1978.Decoder) { 123820 var h codecSelfer100 123821 z, r := codec1978.GenHelperDecoder(d) 123822 _, _, _ = h, z, r 123823 123824 yyv1 := *v 123825 yyh1, yyl1 := z.DecSliceHelperStart() 123826 var yyc1 bool 123827 _ = yyc1 123828 if yyl1 == 0 { 123829 if yyv1 == nil { 123830 yyv1 = []*FieldDiff{} 123831 yyc1 = true 123832 } else if len(yyv1) != 0 { 123833 yyv1 = yyv1[:0] 123834 yyc1 = true 123835 } 123836 } else { 123837 yyhl1 := yyl1 > 0 123838 var yyrl1 int 123839 _ = yyrl1 123840 if yyhl1 { 123841 if yyl1 > cap(yyv1) { 123842 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123843 if yyrl1 <= cap(yyv1) { 123844 yyv1 = yyv1[:yyrl1] 123845 } else { 123846 yyv1 = make([]*FieldDiff, yyrl1) 123847 } 123848 yyc1 = true 123849 } else if yyl1 != len(yyv1) { 123850 yyv1 = yyv1[:yyl1] 123851 yyc1 = true 123852 } 123853 } 123854 var yyj1 int 123855 // var yydn1 bool 123856 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123857 if yyj1 == 0 && yyv1 == nil { 123858 if yyhl1 { 123859 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123860 } else { 123861 yyrl1 = 8 123862 } 123863 yyv1 = make([]*FieldDiff, yyrl1) 123864 yyc1 = true 123865 } 123866 yyh1.ElemContainerState(yyj1) 123867 123868 var yydb1 bool 123869 if yyj1 >= len(yyv1) { 123870 yyv1 = append(yyv1, nil) 123871 yyc1 = true 123872 123873 } 123874 if yydb1 { 123875 z.DecSwallow() 123876 } else { 123877 if r.TryDecodeAsNil() { 123878 yyv1[yyj1] = nil 123879 } else { 123880 if yyv1[yyj1] == nil { 123881 yyv1[yyj1] = new(FieldDiff) 123882 } 123883 yyv1[yyj1].CodecDecodeSelf(d) 123884 } 123885 123886 } 123887 123888 } 123889 if yyj1 < len(yyv1) { 123890 yyv1 = yyv1[:yyj1] 123891 yyc1 = true 123892 } else if yyj1 == 0 && yyv1 == nil { 123893 yyv1 = make([]*FieldDiff, 0) 123894 yyc1 = true 123895 } 123896 } 123897 yyh1.End() 123898 if yyc1 { 123899 *v = yyv1 123900 } 123901 } 123902 123903 func (x codecSelfer100) encSlicePtrtoNetworkResource(v []*NetworkResource, e *codec1978.Encoder) { 123904 var h codecSelfer100 123905 z, r := codec1978.GenHelperEncoder(e) 123906 _, _, _ = h, z, r 123907 r.WriteArrayStart(len(v)) 123908 for _, yyv1 := range v { 123909 r.WriteArrayElem() 123910 if yyv1 == nil { 123911 r.EncodeNil() 123912 } else { 123913 yyv1.CodecEncodeSelf(e) 123914 } 123915 } 123916 r.WriteArrayEnd() 123917 } 123918 123919 func (x codecSelfer100) decSlicePtrtoNetworkResource(v *[]*NetworkResource, d *codec1978.Decoder) { 123920 var h codecSelfer100 123921 z, r := codec1978.GenHelperDecoder(d) 123922 _, _, _ = h, z, r 123923 123924 yyv1 := *v 123925 yyh1, yyl1 := z.DecSliceHelperStart() 123926 var yyc1 bool 123927 _ = yyc1 123928 if yyl1 == 0 { 123929 if yyv1 == nil { 123930 yyv1 = []*NetworkResource{} 123931 yyc1 = true 123932 } else if len(yyv1) != 0 { 123933 yyv1 = yyv1[:0] 123934 yyc1 = true 123935 } 123936 } else { 123937 yyhl1 := yyl1 > 0 123938 var yyrl1 int 123939 _ = yyrl1 123940 if yyhl1 { 123941 if yyl1 > cap(yyv1) { 123942 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123943 if yyrl1 <= cap(yyv1) { 123944 yyv1 = yyv1[:yyrl1] 123945 } else { 123946 yyv1 = make([]*NetworkResource, yyrl1) 123947 } 123948 yyc1 = true 123949 } else if yyl1 != len(yyv1) { 123950 yyv1 = yyv1[:yyl1] 123951 yyc1 = true 123952 } 123953 } 123954 var yyj1 int 123955 // var yydn1 bool 123956 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 123957 if yyj1 == 0 && yyv1 == nil { 123958 if yyhl1 { 123959 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 123960 } else { 123961 yyrl1 = 8 123962 } 123963 yyv1 = make([]*NetworkResource, yyrl1) 123964 yyc1 = true 123965 } 123966 yyh1.ElemContainerState(yyj1) 123967 123968 var yydb1 bool 123969 if yyj1 >= len(yyv1) { 123970 yyv1 = append(yyv1, nil) 123971 yyc1 = true 123972 123973 } 123974 if yydb1 { 123975 z.DecSwallow() 123976 } else { 123977 if r.TryDecodeAsNil() { 123978 yyv1[yyj1] = nil 123979 } else { 123980 if yyv1[yyj1] == nil { 123981 yyv1[yyj1] = new(NetworkResource) 123982 } 123983 yyv1[yyj1].CodecDecodeSelf(d) 123984 } 123985 123986 } 123987 123988 } 123989 if yyj1 < len(yyv1) { 123990 yyv1 = yyv1[:yyj1] 123991 yyc1 = true 123992 } else if yyj1 == 0 && yyv1 == nil { 123993 yyv1 = make([]*NetworkResource, 0) 123994 yyc1 = true 123995 } 123996 } 123997 yyh1.End() 123998 if yyc1 { 123999 *v = yyv1 124000 } 124001 } 124002 124003 func (x codecSelfer100) encMapstringBitmap(v map[string]Bitmap, e *codec1978.Encoder) { 124004 var h codecSelfer100 124005 z, r := codec1978.GenHelperEncoder(e) 124006 _, _, _ = h, z, r 124007 r.WriteMapStart(len(v)) 124008 for yyk1, yyv1 := range v { 124009 r.WriteMapElemKey() 124010 if false { 124011 } else { 124012 if z.EncBasicHandle().StringToRaw { 124013 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124014 } else { 124015 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124016 } 124017 } 124018 r.WriteMapElemValue() 124019 if yyv1 == nil { 124020 r.EncodeNil() 124021 } else { 124022 yyv1.CodecEncodeSelf(e) 124023 } 124024 } 124025 r.WriteMapEnd() 124026 } 124027 124028 func (x codecSelfer100) decMapstringBitmap(v *map[string]Bitmap, d *codec1978.Decoder) { 124029 var h codecSelfer100 124030 z, r := codec1978.GenHelperDecoder(d) 124031 _, _, _ = h, z, r 124032 124033 yyv1 := *v 124034 yyl1 := r.ReadMapStart() 124035 yybh1 := z.DecBasicHandle() 124036 if yyv1 == nil { 124037 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 124038 yyv1 = make(map[string]Bitmap, yyrl1) 124039 *v = yyv1 124040 } 124041 var yymk1 string 124042 var yymv1 Bitmap 124043 var yymg1, yymdn1 bool 124044 if yybh1.MapValueReset { 124045 yymg1 = true 124046 } 124047 if yyl1 != 0 { 124048 yyhl1 := yyl1 > 0 124049 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124050 r.ReadMapElemKey() 124051 if r.TryDecodeAsNil() { 124052 yymk1 = "" 124053 } else { 124054 yymk1 = (string)(r.DecodeString()) 124055 } 124056 124057 if yymg1 { 124058 yymv1 = yyv1[yymk1] 124059 } else { 124060 yymv1 = nil 124061 } 124062 r.ReadMapElemValue() 124063 yymdn1 = false 124064 if r.TryDecodeAsNil() { 124065 yymdn1 = true 124066 } else { 124067 yymv1.CodecDecodeSelf(d) 124068 } 124069 124070 if yymdn1 { 124071 if yybh1.DeleteOnNilMapValue { 124072 delete(yyv1, yymk1) 124073 } else { 124074 yyv1[yymk1] = nil 124075 } 124076 } else if yyv1 != nil { 124077 yyv1[yymk1] = yymv1 124078 } 124079 } 124080 } // else len==0: TODO: Should we clear map entries? 124081 r.ReadMapEnd() 124082 } 124083 124084 func (x codecSelfer100) encSlicePtrtoRaftServer(v []*RaftServer, e *codec1978.Encoder) { 124085 var h codecSelfer100 124086 z, r := codec1978.GenHelperEncoder(e) 124087 _, _, _ = h, z, r 124088 r.WriteArrayStart(len(v)) 124089 for _, yyv1 := range v { 124090 r.WriteArrayElem() 124091 if yyv1 == nil { 124092 r.EncodeNil() 124093 } else { 124094 yyv1.CodecEncodeSelf(e) 124095 } 124096 } 124097 r.WriteArrayEnd() 124098 } 124099 124100 func (x codecSelfer100) decSlicePtrtoRaftServer(v *[]*RaftServer, d *codec1978.Decoder) { 124101 var h codecSelfer100 124102 z, r := codec1978.GenHelperDecoder(d) 124103 _, _, _ = h, z, r 124104 124105 yyv1 := *v 124106 yyh1, yyl1 := z.DecSliceHelperStart() 124107 var yyc1 bool 124108 _ = yyc1 124109 if yyl1 == 0 { 124110 if yyv1 == nil { 124111 yyv1 = []*RaftServer{} 124112 yyc1 = true 124113 } else if len(yyv1) != 0 { 124114 yyv1 = yyv1[:0] 124115 yyc1 = true 124116 } 124117 } else { 124118 yyhl1 := yyl1 > 0 124119 var yyrl1 int 124120 _ = yyrl1 124121 if yyhl1 { 124122 if yyl1 > cap(yyv1) { 124123 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124124 if yyrl1 <= cap(yyv1) { 124125 yyv1 = yyv1[:yyrl1] 124126 } else { 124127 yyv1 = make([]*RaftServer, yyrl1) 124128 } 124129 yyc1 = true 124130 } else if yyl1 != len(yyv1) { 124131 yyv1 = yyv1[:yyl1] 124132 yyc1 = true 124133 } 124134 } 124135 var yyj1 int 124136 // var yydn1 bool 124137 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124138 if yyj1 == 0 && yyv1 == nil { 124139 if yyhl1 { 124140 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124141 } else { 124142 yyrl1 = 8 124143 } 124144 yyv1 = make([]*RaftServer, yyrl1) 124145 yyc1 = true 124146 } 124147 yyh1.ElemContainerState(yyj1) 124148 124149 var yydb1 bool 124150 if yyj1 >= len(yyv1) { 124151 yyv1 = append(yyv1, nil) 124152 yyc1 = true 124153 124154 } 124155 if yydb1 { 124156 z.DecSwallow() 124157 } else { 124158 if r.TryDecodeAsNil() { 124159 yyv1[yyj1] = nil 124160 } else { 124161 if yyv1[yyj1] == nil { 124162 yyv1[yyj1] = new(RaftServer) 124163 } 124164 yyv1[yyj1].CodecDecodeSelf(d) 124165 } 124166 124167 } 124168 124169 } 124170 if yyj1 < len(yyv1) { 124171 yyv1 = yyv1[:yyj1] 124172 yyc1 = true 124173 } else if yyj1 == 0 && yyv1 == nil { 124174 yyv1 = make([]*RaftServer, 0) 124175 yyc1 = true 124176 } 124177 } 124178 yyh1.End() 124179 if yyc1 { 124180 *v = yyv1 124181 } 124182 } 124183 124184 func (x codecSelfer100) encSlicePtrtoSITokenAccessor(v []*SITokenAccessor, e *codec1978.Encoder) { 124185 var h codecSelfer100 124186 z, r := codec1978.GenHelperEncoder(e) 124187 _, _, _ = h, z, r 124188 r.WriteArrayStart(len(v)) 124189 for _, yyv1 := range v { 124190 r.WriteArrayElem() 124191 if yyv1 == nil { 124192 r.EncodeNil() 124193 } else { 124194 yyv1.CodecEncodeSelf(e) 124195 } 124196 } 124197 r.WriteArrayEnd() 124198 } 124199 124200 func (x codecSelfer100) decSlicePtrtoSITokenAccessor(v *[]*SITokenAccessor, d *codec1978.Decoder) { 124201 var h codecSelfer100 124202 z, r := codec1978.GenHelperDecoder(d) 124203 _, _, _ = h, z, r 124204 124205 yyv1 := *v 124206 yyh1, yyl1 := z.DecSliceHelperStart() 124207 var yyc1 bool 124208 _ = yyc1 124209 if yyl1 == 0 { 124210 if yyv1 == nil { 124211 yyv1 = []*SITokenAccessor{} 124212 yyc1 = true 124213 } else if len(yyv1) != 0 { 124214 yyv1 = yyv1[:0] 124215 yyc1 = true 124216 } 124217 } else { 124218 yyhl1 := yyl1 > 0 124219 var yyrl1 int 124220 _ = yyrl1 124221 if yyhl1 { 124222 if yyl1 > cap(yyv1) { 124223 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124224 if yyrl1 <= cap(yyv1) { 124225 yyv1 = yyv1[:yyrl1] 124226 } else { 124227 yyv1 = make([]*SITokenAccessor, yyrl1) 124228 } 124229 yyc1 = true 124230 } else if yyl1 != len(yyv1) { 124231 yyv1 = yyv1[:yyl1] 124232 yyc1 = true 124233 } 124234 } 124235 var yyj1 int 124236 // var yydn1 bool 124237 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124238 if yyj1 == 0 && yyv1 == nil { 124239 if yyhl1 { 124240 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124241 } else { 124242 yyrl1 = 8 124243 } 124244 yyv1 = make([]*SITokenAccessor, yyrl1) 124245 yyc1 = true 124246 } 124247 yyh1.ElemContainerState(yyj1) 124248 124249 var yydb1 bool 124250 if yyj1 >= len(yyv1) { 124251 yyv1 = append(yyv1, nil) 124252 yyc1 = true 124253 124254 } 124255 if yydb1 { 124256 z.DecSwallow() 124257 } else { 124258 if r.TryDecodeAsNil() { 124259 yyv1[yyj1] = nil 124260 } else { 124261 if yyv1[yyj1] == nil { 124262 yyv1[yyj1] = new(SITokenAccessor) 124263 } 124264 yyv1[yyj1].CodecDecodeSelf(d) 124265 } 124266 124267 } 124268 124269 } 124270 if yyj1 < len(yyv1) { 124271 yyv1 = yyv1[:yyj1] 124272 yyc1 = true 124273 } else if yyj1 == 0 && yyv1 == nil { 124274 yyv1 = make([]*SITokenAccessor, 0) 124275 yyc1 = true 124276 } 124277 } 124278 yyh1.End() 124279 if yyc1 { 124280 *v = yyv1 124281 } 124282 } 124283 124284 func (x codecSelfer100) encMapstringSlicestring(v map[string][]string, e *codec1978.Encoder) { 124285 var h codecSelfer100 124286 z, r := codec1978.GenHelperEncoder(e) 124287 _, _, _ = h, z, r 124288 r.WriteMapStart(len(v)) 124289 for yyk1, yyv1 := range v { 124290 r.WriteMapElemKey() 124291 if false { 124292 } else { 124293 if z.EncBasicHandle().StringToRaw { 124294 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124295 } else { 124296 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124297 } 124298 } 124299 r.WriteMapElemValue() 124300 if yyv1 == nil { 124301 r.EncodeNil() 124302 } else { 124303 if false { 124304 } else { 124305 z.F.EncSliceStringV(yyv1, e) 124306 } 124307 } 124308 } 124309 r.WriteMapEnd() 124310 } 124311 124312 func (x codecSelfer100) decMapstringSlicestring(v *map[string][]string, d *codec1978.Decoder) { 124313 var h codecSelfer100 124314 z, r := codec1978.GenHelperDecoder(d) 124315 _, _, _ = h, z, r 124316 124317 yyv1 := *v 124318 yyl1 := r.ReadMapStart() 124319 yybh1 := z.DecBasicHandle() 124320 if yyv1 == nil { 124321 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 124322 yyv1 = make(map[string][]string, yyrl1) 124323 *v = yyv1 124324 } 124325 var yymk1 string 124326 var yymv1 []string 124327 var yymg1, yymdn1 bool 124328 if yybh1.MapValueReset { 124329 yymg1 = true 124330 } 124331 if yyl1 != 0 { 124332 yyhl1 := yyl1 > 0 124333 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124334 r.ReadMapElemKey() 124335 if r.TryDecodeAsNil() { 124336 yymk1 = "" 124337 } else { 124338 yymk1 = (string)(r.DecodeString()) 124339 } 124340 124341 if yymg1 { 124342 yymv1 = yyv1[yymk1] 124343 } else { 124344 yymv1 = nil 124345 } 124346 r.ReadMapElemValue() 124347 yymdn1 = false 124348 if r.TryDecodeAsNil() { 124349 yymdn1 = true 124350 } else { 124351 if false { 124352 } else { 124353 z.F.DecSliceStringX(&yymv1, d) 124354 } 124355 } 124356 124357 if yymdn1 { 124358 if yybh1.DeleteOnNilMapValue { 124359 delete(yyv1, yymk1) 124360 } else { 124361 yyv1[yymk1] = nil 124362 } 124363 } else if yyv1 != nil { 124364 yyv1[yymk1] = yymv1 124365 } 124366 } 124367 } // else len==0: TODO: Should we clear map entries? 124368 r.ReadMapEnd() 124369 } 124370 124371 func (x codecSelfer100) encSlicestring(v []string, e *codec1978.Encoder) { 124372 var h codecSelfer100 124373 z, r := codec1978.GenHelperEncoder(e) 124374 _, _, _ = h, z, r 124375 r.WriteArrayStart(len(v)) 124376 for _, yyv1 := range v { 124377 r.WriteArrayElem() 124378 if false { 124379 } else { 124380 if z.EncBasicHandle().StringToRaw { 124381 r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) 124382 } else { 124383 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) 124384 } 124385 } 124386 } 124387 r.WriteArrayEnd() 124388 } 124389 124390 func (x codecSelfer100) decSlicestring(v *[]string, d *codec1978.Decoder) { 124391 var h codecSelfer100 124392 z, r := codec1978.GenHelperDecoder(d) 124393 _, _, _ = h, z, r 124394 124395 yyv1 := *v 124396 yyh1, yyl1 := z.DecSliceHelperStart() 124397 var yyc1 bool 124398 _ = yyc1 124399 if yyl1 == 0 { 124400 if yyv1 == nil { 124401 yyv1 = []string{} 124402 yyc1 = true 124403 } else if len(yyv1) != 0 { 124404 yyv1 = yyv1[:0] 124405 yyc1 = true 124406 } 124407 } else { 124408 yyhl1 := yyl1 > 0 124409 var yyrl1 int 124410 _ = yyrl1 124411 if yyhl1 { 124412 if yyl1 > cap(yyv1) { 124413 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) 124414 if yyrl1 <= cap(yyv1) { 124415 yyv1 = yyv1[:yyrl1] 124416 } else { 124417 yyv1 = make([]string, yyrl1) 124418 } 124419 yyc1 = true 124420 } else if yyl1 != len(yyv1) { 124421 yyv1 = yyv1[:yyl1] 124422 yyc1 = true 124423 } 124424 } 124425 var yyj1 int 124426 // var yydn1 bool 124427 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124428 if yyj1 == 0 && yyv1 == nil { 124429 if yyhl1 { 124430 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 16) 124431 } else { 124432 yyrl1 = 8 124433 } 124434 yyv1 = make([]string, yyrl1) 124435 yyc1 = true 124436 } 124437 yyh1.ElemContainerState(yyj1) 124438 124439 var yydb1 bool 124440 if yyj1 >= len(yyv1) { 124441 yyv1 = append(yyv1, "") 124442 yyc1 = true 124443 124444 } 124445 if yydb1 { 124446 z.DecSwallow() 124447 } else { 124448 if r.TryDecodeAsNil() { 124449 yyv1[yyj1] = "" 124450 } else { 124451 yyv1[yyj1] = (string)(r.DecodeString()) 124452 } 124453 124454 } 124455 124456 } 124457 if yyj1 < len(yyv1) { 124458 yyv1 = yyv1[:yyj1] 124459 yyc1 = true 124460 } else if yyj1 == 0 && yyv1 == nil { 124461 yyv1 = make([]string, 0) 124462 yyc1 = true 124463 } 124464 } 124465 yyh1.End() 124466 if yyc1 { 124467 *v = yyv1 124468 } 124469 } 124470 124471 func (x codecSelfer100) encSlicePtrtoServiceCheck(v []*ServiceCheck, e *codec1978.Encoder) { 124472 var h codecSelfer100 124473 z, r := codec1978.GenHelperEncoder(e) 124474 _, _, _ = h, z, r 124475 r.WriteArrayStart(len(v)) 124476 for _, yyv1 := range v { 124477 r.WriteArrayElem() 124478 if yyv1 == nil { 124479 r.EncodeNil() 124480 } else { 124481 yyv1.CodecEncodeSelf(e) 124482 } 124483 } 124484 r.WriteArrayEnd() 124485 } 124486 124487 func (x codecSelfer100) decSlicePtrtoServiceCheck(v *[]*ServiceCheck, d *codec1978.Decoder) { 124488 var h codecSelfer100 124489 z, r := codec1978.GenHelperDecoder(d) 124490 _, _, _ = h, z, r 124491 124492 yyv1 := *v 124493 yyh1, yyl1 := z.DecSliceHelperStart() 124494 var yyc1 bool 124495 _ = yyc1 124496 if yyl1 == 0 { 124497 if yyv1 == nil { 124498 yyv1 = []*ServiceCheck{} 124499 yyc1 = true 124500 } else if len(yyv1) != 0 { 124501 yyv1 = yyv1[:0] 124502 yyc1 = true 124503 } 124504 } else { 124505 yyhl1 := yyl1 > 0 124506 var yyrl1 int 124507 _ = yyrl1 124508 if yyhl1 { 124509 if yyl1 > cap(yyv1) { 124510 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124511 if yyrl1 <= cap(yyv1) { 124512 yyv1 = yyv1[:yyrl1] 124513 } else { 124514 yyv1 = make([]*ServiceCheck, yyrl1) 124515 } 124516 yyc1 = true 124517 } else if yyl1 != len(yyv1) { 124518 yyv1 = yyv1[:yyl1] 124519 yyc1 = true 124520 } 124521 } 124522 var yyj1 int 124523 // var yydn1 bool 124524 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124525 if yyj1 == 0 && yyv1 == nil { 124526 if yyhl1 { 124527 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 124528 } else { 124529 yyrl1 = 8 124530 } 124531 yyv1 = make([]*ServiceCheck, yyrl1) 124532 yyc1 = true 124533 } 124534 yyh1.ElemContainerState(yyj1) 124535 124536 var yydb1 bool 124537 if yyj1 >= len(yyv1) { 124538 yyv1 = append(yyv1, nil) 124539 yyc1 = true 124540 124541 } 124542 if yydb1 { 124543 z.DecSwallow() 124544 } else { 124545 if r.TryDecodeAsNil() { 124546 yyv1[yyj1] = nil 124547 } else { 124548 if yyv1[yyj1] == nil { 124549 yyv1[yyj1] = new(ServiceCheck) 124550 } 124551 yyv1[yyj1].CodecDecodeSelf(d) 124552 } 124553 124554 } 124555 124556 } 124557 if yyj1 < len(yyv1) { 124558 yyv1 = yyv1[:yyj1] 124559 yyc1 = true 124560 } else if yyj1 == 0 && yyv1 == nil { 124561 yyv1 = make([]*ServiceCheck, 0) 124562 yyc1 = true 124563 } 124564 } 124565 yyh1.End() 124566 if yyc1 { 124567 *v = yyv1 124568 } 124569 } 124570 124571 func (x codecSelfer100) encSliceConsulUpstream(v []ConsulUpstream, e *codec1978.Encoder) { 124572 var h codecSelfer100 124573 z, r := codec1978.GenHelperEncoder(e) 124574 _, _, _ = h, z, r 124575 r.WriteArrayStart(len(v)) 124576 for _, yyv1 := range v { 124577 r.WriteArrayElem() 124578 yy2 := &yyv1 124579 yy2.CodecEncodeSelf(e) 124580 } 124581 r.WriteArrayEnd() 124582 } 124583 124584 func (x codecSelfer100) decSliceConsulUpstream(v *[]ConsulUpstream, d *codec1978.Decoder) { 124585 var h codecSelfer100 124586 z, r := codec1978.GenHelperDecoder(d) 124587 _, _, _ = h, z, r 124588 124589 yyv1 := *v 124590 yyh1, yyl1 := z.DecSliceHelperStart() 124591 var yyc1 bool 124592 _ = yyc1 124593 if yyl1 == 0 { 124594 if yyv1 == nil { 124595 yyv1 = []ConsulUpstream{} 124596 yyc1 = true 124597 } else if len(yyv1) != 0 { 124598 yyv1 = yyv1[:0] 124599 yyc1 = true 124600 } 124601 } else { 124602 yyhl1 := yyl1 > 0 124603 var yyrl1 int 124604 _ = yyrl1 124605 if yyhl1 { 124606 if yyl1 > cap(yyv1) { 124607 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) 124608 if yyrl1 <= cap(yyv1) { 124609 yyv1 = yyv1[:yyrl1] 124610 } else { 124611 yyv1 = make([]ConsulUpstream, yyrl1) 124612 } 124613 yyc1 = true 124614 } else if yyl1 != len(yyv1) { 124615 yyv1 = yyv1[:yyl1] 124616 yyc1 = true 124617 } 124618 } 124619 var yyj1 int 124620 // var yydn1 bool 124621 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124622 if yyj1 == 0 && yyv1 == nil { 124623 if yyhl1 { 124624 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 24) 124625 } else { 124626 yyrl1 = 8 124627 } 124628 yyv1 = make([]ConsulUpstream, yyrl1) 124629 yyc1 = true 124630 } 124631 yyh1.ElemContainerState(yyj1) 124632 124633 var yydb1 bool 124634 if yyj1 >= len(yyv1) { 124635 yyv1 = append(yyv1, ConsulUpstream{}) 124636 yyc1 = true 124637 124638 } 124639 if yydb1 { 124640 z.DecSwallow() 124641 } else { 124642 if r.TryDecodeAsNil() { 124643 yyv1[yyj1] = ConsulUpstream{} 124644 } else { 124645 yyv1[yyj1].CodecDecodeSelf(d) 124646 } 124647 124648 } 124649 124650 } 124651 if yyj1 < len(yyv1) { 124652 yyv1 = yyv1[:yyj1] 124653 yyc1 = true 124654 } else if yyj1 == 0 && yyv1 == nil { 124655 yyv1 = make([]ConsulUpstream, 0) 124656 yyc1 = true 124657 } 124658 } 124659 yyh1.End() 124660 if yyc1 { 124661 *v = yyv1 124662 } 124663 } 124664 124665 func (x codecSelfer100) encSliceConsulExposePath(v []ConsulExposePath, e *codec1978.Encoder) { 124666 var h codecSelfer100 124667 z, r := codec1978.GenHelperEncoder(e) 124668 _, _, _ = h, z, r 124669 r.WriteArrayStart(len(v)) 124670 for _, yyv1 := range v { 124671 r.WriteArrayElem() 124672 yy2 := &yyv1 124673 yy2.CodecEncodeSelf(e) 124674 } 124675 r.WriteArrayEnd() 124676 } 124677 124678 func (x codecSelfer100) decSliceConsulExposePath(v *[]ConsulExposePath, d *codec1978.Decoder) { 124679 var h codecSelfer100 124680 z, r := codec1978.GenHelperDecoder(d) 124681 _, _, _ = h, z, r 124682 124683 yyv1 := *v 124684 yyh1, yyl1 := z.DecSliceHelperStart() 124685 var yyc1 bool 124686 _ = yyc1 124687 if yyl1 == 0 { 124688 if yyv1 == nil { 124689 yyv1 = []ConsulExposePath{} 124690 yyc1 = true 124691 } else if len(yyv1) != 0 { 124692 yyv1 = yyv1[:0] 124693 yyc1 = true 124694 } 124695 } else { 124696 yyhl1 := yyl1 > 0 124697 var yyrl1 int 124698 _ = yyrl1 124699 if yyhl1 { 124700 if yyl1 > cap(yyv1) { 124701 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) 124702 if yyrl1 <= cap(yyv1) { 124703 yyv1 = yyv1[:yyrl1] 124704 } else { 124705 yyv1 = make([]ConsulExposePath, yyrl1) 124706 } 124707 yyc1 = true 124708 } else if yyl1 != len(yyv1) { 124709 yyv1 = yyv1[:yyl1] 124710 yyc1 = true 124711 } 124712 } 124713 var yyj1 int 124714 // var yydn1 bool 124715 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 124716 if yyj1 == 0 && yyv1 == nil { 124717 if yyhl1 { 124718 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 56) 124719 } else { 124720 yyrl1 = 8 124721 } 124722 yyv1 = make([]ConsulExposePath, yyrl1) 124723 yyc1 = true 124724 } 124725 yyh1.ElemContainerState(yyj1) 124726 124727 var yydb1 bool 124728 if yyj1 >= len(yyv1) { 124729 yyv1 = append(yyv1, ConsulExposePath{}) 124730 yyc1 = true 124731 124732 } 124733 if yydb1 { 124734 z.DecSwallow() 124735 } else { 124736 if r.TryDecodeAsNil() { 124737 yyv1[yyj1] = ConsulExposePath{} 124738 } else { 124739 yyv1[yyj1].CodecDecodeSelf(d) 124740 } 124741 124742 } 124743 124744 } 124745 if yyj1 < len(yyv1) { 124746 yyv1 = yyv1[:yyj1] 124747 yyc1 = true 124748 } else if yyj1 == 0 && yyv1 == nil { 124749 yyv1 = make([]ConsulExposePath, 0) 124750 yyc1 = true 124751 } 124752 } 124753 yyh1.End() 124754 if yyc1 { 124755 *v = yyv1 124756 } 124757 } 124758 124759 func (x codecSelfer100) encMapstringPtrtoDrainUpdate(v map[string]*DrainUpdate, e *codec1978.Encoder) { 124760 var h codecSelfer100 124761 z, r := codec1978.GenHelperEncoder(e) 124762 _, _, _ = h, z, r 124763 r.WriteMapStart(len(v)) 124764 for yyk1, yyv1 := range v { 124765 r.WriteMapElemKey() 124766 if false { 124767 } else { 124768 if z.EncBasicHandle().StringToRaw { 124769 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124770 } else { 124771 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124772 } 124773 } 124774 r.WriteMapElemValue() 124775 if yyv1 == nil { 124776 r.EncodeNil() 124777 } else { 124778 yyv1.CodecEncodeSelf(e) 124779 } 124780 } 124781 r.WriteMapEnd() 124782 } 124783 124784 func (x codecSelfer100) decMapstringPtrtoDrainUpdate(v *map[string]*DrainUpdate, d *codec1978.Decoder) { 124785 var h codecSelfer100 124786 z, r := codec1978.GenHelperDecoder(d) 124787 _, _, _ = h, z, r 124788 124789 yyv1 := *v 124790 yyl1 := r.ReadMapStart() 124791 yybh1 := z.DecBasicHandle() 124792 if yyv1 == nil { 124793 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 124794 yyv1 = make(map[string]*DrainUpdate, yyrl1) 124795 *v = yyv1 124796 } 124797 var yymk1 string 124798 var yymv1 *DrainUpdate 124799 var yymg1, yymdn1, yyms1, yymok1 bool 124800 if yybh1.MapValueReset { 124801 yymg1 = true 124802 } 124803 if yyl1 != 0 { 124804 yyhl1 := yyl1 > 0 124805 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124806 r.ReadMapElemKey() 124807 if r.TryDecodeAsNil() { 124808 yymk1 = "" 124809 } else { 124810 yymk1 = (string)(r.DecodeString()) 124811 } 124812 124813 yyms1 = true 124814 if yymg1 { 124815 yymv1, yymok1 = yyv1[yymk1] 124816 if yymok1 { 124817 yyms1 = false 124818 } 124819 } else { 124820 yymv1 = nil 124821 } 124822 r.ReadMapElemValue() 124823 yymdn1 = false 124824 if r.TryDecodeAsNil() { 124825 yymdn1 = true 124826 } else { 124827 if yymv1 == nil { 124828 yymv1 = new(DrainUpdate) 124829 } 124830 yymv1.CodecDecodeSelf(d) 124831 } 124832 124833 if yymdn1 { 124834 if yybh1.DeleteOnNilMapValue { 124835 delete(yyv1, yymk1) 124836 } else { 124837 yyv1[yymk1] = nil 124838 } 124839 } else if yyms1 && yyv1 != nil { 124840 yyv1[yymk1] = yymv1 124841 } 124842 } 124843 } // else len==0: TODO: Should we clear map entries? 124844 r.ReadMapEnd() 124845 } 124846 124847 func (x codecSelfer100) encMapstringPtrtoNodeEvent(v map[string]*NodeEvent, e *codec1978.Encoder) { 124848 var h codecSelfer100 124849 z, r := codec1978.GenHelperEncoder(e) 124850 _, _, _ = h, z, r 124851 r.WriteMapStart(len(v)) 124852 for yyk1, yyv1 := range v { 124853 r.WriteMapElemKey() 124854 if false { 124855 } else { 124856 if z.EncBasicHandle().StringToRaw { 124857 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 124858 } else { 124859 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 124860 } 124861 } 124862 r.WriteMapElemValue() 124863 if yyv1 == nil { 124864 r.EncodeNil() 124865 } else { 124866 yyv1.CodecEncodeSelf(e) 124867 } 124868 } 124869 r.WriteMapEnd() 124870 } 124871 124872 func (x codecSelfer100) decMapstringPtrtoNodeEvent(v *map[string]*NodeEvent, d *codec1978.Decoder) { 124873 var h codecSelfer100 124874 z, r := codec1978.GenHelperDecoder(d) 124875 _, _, _ = h, z, r 124876 124877 yyv1 := *v 124878 yyl1 := r.ReadMapStart() 124879 yybh1 := z.DecBasicHandle() 124880 if yyv1 == nil { 124881 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 124882 yyv1 = make(map[string]*NodeEvent, yyrl1) 124883 *v = yyv1 124884 } 124885 var yymk1 string 124886 var yymv1 *NodeEvent 124887 var yymg1, yymdn1, yyms1, yymok1 bool 124888 if yybh1.MapValueReset { 124889 yymg1 = true 124890 } 124891 if yyl1 != 0 { 124892 yyhl1 := yyl1 > 0 124893 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124894 r.ReadMapElemKey() 124895 if r.TryDecodeAsNil() { 124896 yymk1 = "" 124897 } else { 124898 yymk1 = (string)(r.DecodeString()) 124899 } 124900 124901 yyms1 = true 124902 if yymg1 { 124903 yymv1, yymok1 = yyv1[yymk1] 124904 if yymok1 { 124905 yyms1 = false 124906 } 124907 } else { 124908 yymv1 = nil 124909 } 124910 r.ReadMapElemValue() 124911 yymdn1 = false 124912 if r.TryDecodeAsNil() { 124913 yymdn1 = true 124914 } else { 124915 if yymv1 == nil { 124916 yymv1 = new(NodeEvent) 124917 } 124918 yymv1.CodecDecodeSelf(d) 124919 } 124920 124921 if yymdn1 { 124922 if yybh1.DeleteOnNilMapValue { 124923 delete(yyv1, yymk1) 124924 } else { 124925 yyv1[yymk1] = nil 124926 } 124927 } else if yyms1 && yyv1 != nil { 124928 yyv1[yymk1] = yymv1 124929 } 124930 } 124931 } // else len==0: TODO: Should we clear map entries? 124932 r.ReadMapEnd() 124933 } 124934 124935 func (x codecSelfer100) encMapContextSlicestring(v map[Context][]string, e *codec1978.Encoder) { 124936 var h codecSelfer100 124937 z, r := codec1978.GenHelperEncoder(e) 124938 _, _, _ = h, z, r 124939 r.WriteMapStart(len(v)) 124940 for yyk1, yyv1 := range v { 124941 r.WriteMapElemKey() 124942 yyk1.CodecEncodeSelf(e) 124943 r.WriteMapElemValue() 124944 if yyv1 == nil { 124945 r.EncodeNil() 124946 } else { 124947 if false { 124948 } else { 124949 z.F.EncSliceStringV(yyv1, e) 124950 } 124951 } 124952 } 124953 r.WriteMapEnd() 124954 } 124955 124956 func (x codecSelfer100) decMapContextSlicestring(v *map[Context][]string, d *codec1978.Decoder) { 124957 var h codecSelfer100 124958 z, r := codec1978.GenHelperDecoder(d) 124959 _, _, _ = h, z, r 124960 124961 yyv1 := *v 124962 yyl1 := r.ReadMapStart() 124963 yybh1 := z.DecBasicHandle() 124964 if yyv1 == nil { 124965 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 124966 yyv1 = make(map[Context][]string, yyrl1) 124967 *v = yyv1 124968 } 124969 var yymk1 Context 124970 var yymv1 []string 124971 var yymg1, yymdn1 bool 124972 if yybh1.MapValueReset { 124973 yymg1 = true 124974 } 124975 if yyl1 != 0 { 124976 yyhl1 := yyl1 > 0 124977 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 124978 r.ReadMapElemKey() 124979 if r.TryDecodeAsNil() { 124980 yymk1 = "" 124981 } else { 124982 yymk1.CodecDecodeSelf(d) 124983 } 124984 124985 if yymg1 { 124986 yymv1 = yyv1[yymk1] 124987 } else { 124988 yymv1 = nil 124989 } 124990 r.ReadMapElemValue() 124991 yymdn1 = false 124992 if r.TryDecodeAsNil() { 124993 yymdn1 = true 124994 } else { 124995 if false { 124996 } else { 124997 z.F.DecSliceStringX(&yymv1, d) 124998 } 124999 } 125000 125001 if yymdn1 { 125002 if yybh1.DeleteOnNilMapValue { 125003 delete(yyv1, yymk1) 125004 } else { 125005 yyv1[yymk1] = nil 125006 } 125007 } else if yyv1 != nil { 125008 yyv1[yymk1] = yymv1 125009 } 125010 } 125011 } // else len==0: TODO: Should we clear map entries? 125012 r.ReadMapEnd() 125013 } 125014 125015 func (x codecSelfer100) encMapContextbool(v map[Context]bool, e *codec1978.Encoder) { 125016 var h codecSelfer100 125017 z, r := codec1978.GenHelperEncoder(e) 125018 _, _, _ = h, z, r 125019 r.WriteMapStart(len(v)) 125020 for yyk1, yyv1 := range v { 125021 r.WriteMapElemKey() 125022 yyk1.CodecEncodeSelf(e) 125023 r.WriteMapElemValue() 125024 if false { 125025 } else { 125026 r.EncodeBool(bool(yyv1)) 125027 } 125028 } 125029 r.WriteMapEnd() 125030 } 125031 125032 func (x codecSelfer100) decMapContextbool(v *map[Context]bool, d *codec1978.Decoder) { 125033 var h codecSelfer100 125034 z, r := codec1978.GenHelperDecoder(d) 125035 _, _, _ = h, z, r 125036 125037 yyv1 := *v 125038 yyl1 := r.ReadMapStart() 125039 yybh1 := z.DecBasicHandle() 125040 if yyv1 == nil { 125041 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 17) 125042 yyv1 = make(map[Context]bool, yyrl1) 125043 *v = yyv1 125044 } 125045 var yymk1 Context 125046 var yymv1 bool 125047 var yymg1, yymdn1 bool 125048 if yybh1.MapValueReset { 125049 } 125050 if yyl1 != 0 { 125051 yyhl1 := yyl1 > 0 125052 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125053 r.ReadMapElemKey() 125054 if r.TryDecodeAsNil() { 125055 yymk1 = "" 125056 } else { 125057 yymk1.CodecDecodeSelf(d) 125058 } 125059 125060 if yymg1 { 125061 yymv1 = yyv1[yymk1] 125062 } 125063 r.ReadMapElemValue() 125064 yymdn1 = false 125065 if r.TryDecodeAsNil() { 125066 yymdn1 = true 125067 } else { 125068 yymv1 = (bool)(r.DecodeBool()) 125069 } 125070 125071 if yymdn1 { 125072 if yybh1.DeleteOnNilMapValue { 125073 delete(yyv1, yymk1) 125074 } else { 125075 yyv1[yymk1] = false 125076 } 125077 } else if yyv1 != nil { 125078 yyv1[yymk1] = yymv1 125079 } 125080 } 125081 } // else len==0: TODO: Should we clear map entries? 125082 r.ReadMapEnd() 125083 } 125084 125085 func (x codecSelfer100) encMapNamespacedIDPtrtoJobDeregisterOptions(v map[NamespacedID]*JobDeregisterOptions, e *codec1978.Encoder) { 125086 var h codecSelfer100 125087 z, r := codec1978.GenHelperEncoder(e) 125088 _, _, _ = h, z, r 125089 r.WriteMapStart(len(v)) 125090 for yyk1, yyv1 := range v { 125091 r.WriteMapElemKey() 125092 yy2 := &yyk1 125093 yy2.CodecEncodeSelf(e) 125094 r.WriteMapElemValue() 125095 if yyv1 == nil { 125096 r.EncodeNil() 125097 } else { 125098 yyv1.CodecEncodeSelf(e) 125099 } 125100 } 125101 r.WriteMapEnd() 125102 } 125103 125104 func (x codecSelfer100) decMapNamespacedIDPtrtoJobDeregisterOptions(v *map[NamespacedID]*JobDeregisterOptions, d *codec1978.Decoder) { 125105 var h codecSelfer100 125106 z, r := codec1978.GenHelperDecoder(d) 125107 _, _, _ = h, z, r 125108 125109 yyv1 := *v 125110 yyl1 := r.ReadMapStart() 125111 yybh1 := z.DecBasicHandle() 125112 if yyv1 == nil { 125113 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 125114 yyv1 = make(map[NamespacedID]*JobDeregisterOptions, yyrl1) 125115 *v = yyv1 125116 } 125117 var yymk1 NamespacedID 125118 var yymv1 *JobDeregisterOptions 125119 var yymg1, yymdn1, yyms1, yymok1 bool 125120 if yybh1.MapValueReset { 125121 yymg1 = true 125122 } 125123 if yyl1 != 0 { 125124 yyhl1 := yyl1 > 0 125125 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125126 r.ReadMapElemKey() 125127 if r.TryDecodeAsNil() { 125128 yymk1 = NamespacedID{} 125129 } else { 125130 yymk1.CodecDecodeSelf(d) 125131 } 125132 125133 yyms1 = true 125134 if yymg1 { 125135 yymv1, yymok1 = yyv1[yymk1] 125136 if yymok1 { 125137 yyms1 = false 125138 } 125139 } else { 125140 yymv1 = nil 125141 } 125142 r.ReadMapElemValue() 125143 yymdn1 = false 125144 if r.TryDecodeAsNil() { 125145 yymdn1 = true 125146 } else { 125147 if yymv1 == nil { 125148 yymv1 = new(JobDeregisterOptions) 125149 } 125150 yymv1.CodecDecodeSelf(d) 125151 } 125152 125153 if yymdn1 { 125154 if yybh1.DeleteOnNilMapValue { 125155 delete(yyv1, yymk1) 125156 } else { 125157 yyv1[yymk1] = nil 125158 } 125159 } else if yyms1 && yyv1 != nil { 125160 yyv1[yymk1] = yymv1 125161 } 125162 } 125163 } // else len==0: TODO: Should we clear map entries? 125164 r.ReadMapEnd() 125165 } 125166 125167 func (x codecSelfer100) encSlicePtrtoEvaluation(v []*Evaluation, e *codec1978.Encoder) { 125168 var h codecSelfer100 125169 z, r := codec1978.GenHelperEncoder(e) 125170 _, _, _ = h, z, r 125171 r.WriteArrayStart(len(v)) 125172 for _, yyv1 := range v { 125173 r.WriteArrayElem() 125174 if yyv1 == nil { 125175 r.EncodeNil() 125176 } else { 125177 yyv1.CodecEncodeSelf(e) 125178 } 125179 } 125180 r.WriteArrayEnd() 125181 } 125182 125183 func (x codecSelfer100) decSlicePtrtoEvaluation(v *[]*Evaluation, d *codec1978.Decoder) { 125184 var h codecSelfer100 125185 z, r := codec1978.GenHelperDecoder(d) 125186 _, _, _ = h, z, r 125187 125188 yyv1 := *v 125189 yyh1, yyl1 := z.DecSliceHelperStart() 125190 var yyc1 bool 125191 _ = yyc1 125192 if yyl1 == 0 { 125193 if yyv1 == nil { 125194 yyv1 = []*Evaluation{} 125195 yyc1 = true 125196 } else if len(yyv1) != 0 { 125197 yyv1 = yyv1[:0] 125198 yyc1 = true 125199 } 125200 } else { 125201 yyhl1 := yyl1 > 0 125202 var yyrl1 int 125203 _ = yyrl1 125204 if yyhl1 { 125205 if yyl1 > cap(yyv1) { 125206 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125207 if yyrl1 <= cap(yyv1) { 125208 yyv1 = yyv1[:yyrl1] 125209 } else { 125210 yyv1 = make([]*Evaluation, yyrl1) 125211 } 125212 yyc1 = true 125213 } else if yyl1 != len(yyv1) { 125214 yyv1 = yyv1[:yyl1] 125215 yyc1 = true 125216 } 125217 } 125218 var yyj1 int 125219 // var yydn1 bool 125220 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125221 if yyj1 == 0 && yyv1 == nil { 125222 if yyhl1 { 125223 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125224 } else { 125225 yyrl1 = 8 125226 } 125227 yyv1 = make([]*Evaluation, yyrl1) 125228 yyc1 = true 125229 } 125230 yyh1.ElemContainerState(yyj1) 125231 125232 var yydb1 bool 125233 if yyj1 >= len(yyv1) { 125234 yyv1 = append(yyv1, nil) 125235 yyc1 = true 125236 125237 } 125238 if yydb1 { 125239 z.DecSwallow() 125240 } else { 125241 if r.TryDecodeAsNil() { 125242 yyv1[yyj1] = nil 125243 } else { 125244 if yyv1[yyj1] == nil { 125245 yyv1[yyj1] = new(Evaluation) 125246 } 125247 yyv1[yyj1].CodecDecodeSelf(d) 125248 } 125249 125250 } 125251 125252 } 125253 if yyj1 < len(yyv1) { 125254 yyv1 = yyv1[:yyj1] 125255 yyc1 = true 125256 } else if yyj1 == 0 && yyv1 == nil { 125257 yyv1 = make([]*Evaluation, 0) 125258 yyc1 = true 125259 } 125260 } 125261 yyh1.End() 125262 if yyc1 { 125263 *v = yyv1 125264 } 125265 } 125266 125267 func (x codecSelfer100) encSlicePtrtoAllocation(v []*Allocation, e *codec1978.Encoder) { 125268 var h codecSelfer100 125269 z, r := codec1978.GenHelperEncoder(e) 125270 _, _, _ = h, z, r 125271 r.WriteArrayStart(len(v)) 125272 for _, yyv1 := range v { 125273 r.WriteArrayElem() 125274 if yyv1 == nil { 125275 r.EncodeNil() 125276 } else { 125277 yyv1.CodecEncodeSelf(e) 125278 } 125279 } 125280 r.WriteArrayEnd() 125281 } 125282 125283 func (x codecSelfer100) decSlicePtrtoAllocation(v *[]*Allocation, d *codec1978.Decoder) { 125284 var h codecSelfer100 125285 z, r := codec1978.GenHelperDecoder(d) 125286 _, _, _ = h, z, r 125287 125288 yyv1 := *v 125289 yyh1, yyl1 := z.DecSliceHelperStart() 125290 var yyc1 bool 125291 _ = yyc1 125292 if yyl1 == 0 { 125293 if yyv1 == nil { 125294 yyv1 = []*Allocation{} 125295 yyc1 = true 125296 } else if len(yyv1) != 0 { 125297 yyv1 = yyv1[:0] 125298 yyc1 = true 125299 } 125300 } else { 125301 yyhl1 := yyl1 > 0 125302 var yyrl1 int 125303 _ = yyrl1 125304 if yyhl1 { 125305 if yyl1 > cap(yyv1) { 125306 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125307 if yyrl1 <= cap(yyv1) { 125308 yyv1 = yyv1[:yyrl1] 125309 } else { 125310 yyv1 = make([]*Allocation, yyrl1) 125311 } 125312 yyc1 = true 125313 } else if yyl1 != len(yyv1) { 125314 yyv1 = yyv1[:yyl1] 125315 yyc1 = true 125316 } 125317 } 125318 var yyj1 int 125319 // var yydn1 bool 125320 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125321 if yyj1 == 0 && yyv1 == nil { 125322 if yyhl1 { 125323 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125324 } else { 125325 yyrl1 = 8 125326 } 125327 yyv1 = make([]*Allocation, yyrl1) 125328 yyc1 = true 125329 } 125330 yyh1.ElemContainerState(yyj1) 125331 125332 var yydb1 bool 125333 if yyj1 >= len(yyv1) { 125334 yyv1 = append(yyv1, nil) 125335 yyc1 = true 125336 125337 } 125338 if yydb1 { 125339 z.DecSwallow() 125340 } else { 125341 if r.TryDecodeAsNil() { 125342 yyv1[yyj1] = nil 125343 } else { 125344 if yyv1[yyj1] == nil { 125345 yyv1[yyj1] = new(Allocation) 125346 } 125347 yyv1[yyj1].CodecDecodeSelf(d) 125348 } 125349 125350 } 125351 125352 } 125353 if yyj1 < len(yyv1) { 125354 yyv1 = yyv1[:yyj1] 125355 yyc1 = true 125356 } else if yyj1 == 0 && yyv1 == nil { 125357 yyv1 = make([]*Allocation, 0) 125358 yyc1 = true 125359 } 125360 } 125361 yyh1.End() 125362 if yyc1 { 125363 *v = yyv1 125364 } 125365 } 125366 125367 func (x codecSelfer100) encSlicePtrtoAllocationDiff(v []*AllocationDiff, e *codec1978.Encoder) { 125368 var h codecSelfer100 125369 z, r := codec1978.GenHelperEncoder(e) 125370 _, _, _ = h, z, r 125371 r.WriteArrayStart(len(v)) 125372 for _, yyv1 := range v { 125373 r.WriteArrayElem() 125374 if yyv1 == nil { 125375 r.EncodeNil() 125376 } else { 125377 yyv1.CodecEncodeSelf(e) 125378 } 125379 } 125380 r.WriteArrayEnd() 125381 } 125382 125383 func (x codecSelfer100) decSlicePtrtoAllocationDiff(v *[]*AllocationDiff, d *codec1978.Decoder) { 125384 var h codecSelfer100 125385 z, r := codec1978.GenHelperDecoder(d) 125386 _, _, _ = h, z, r 125387 125388 yyv1 := *v 125389 yyh1, yyl1 := z.DecSliceHelperStart() 125390 var yyc1 bool 125391 _ = yyc1 125392 if yyl1 == 0 { 125393 if yyv1 == nil { 125394 yyv1 = []*AllocationDiff{} 125395 yyc1 = true 125396 } else if len(yyv1) != 0 { 125397 yyv1 = yyv1[:0] 125398 yyc1 = true 125399 } 125400 } else { 125401 yyhl1 := yyl1 > 0 125402 var yyrl1 int 125403 _ = yyrl1 125404 if yyhl1 { 125405 if yyl1 > cap(yyv1) { 125406 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125407 if yyrl1 <= cap(yyv1) { 125408 yyv1 = yyv1[:yyrl1] 125409 } else { 125410 yyv1 = make([]*AllocationDiff, yyrl1) 125411 } 125412 yyc1 = true 125413 } else if yyl1 != len(yyv1) { 125414 yyv1 = yyv1[:yyl1] 125415 yyc1 = true 125416 } 125417 } 125418 var yyj1 int 125419 // var yydn1 bool 125420 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125421 if yyj1 == 0 && yyv1 == nil { 125422 if yyhl1 { 125423 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125424 } else { 125425 yyrl1 = 8 125426 } 125427 yyv1 = make([]*AllocationDiff, yyrl1) 125428 yyc1 = true 125429 } 125430 yyh1.ElemContainerState(yyj1) 125431 125432 var yydb1 bool 125433 if yyj1 >= len(yyv1) { 125434 yyv1 = append(yyv1, nil) 125435 yyc1 = true 125436 125437 } 125438 if yydb1 { 125439 z.DecSwallow() 125440 } else { 125441 if r.TryDecodeAsNil() { 125442 yyv1[yyj1] = nil 125443 } else { 125444 if yyv1[yyj1] == nil { 125445 yyv1[yyj1] = new(AllocationDiff) 125446 } 125447 yyv1[yyj1].CodecDecodeSelf(d) 125448 } 125449 125450 } 125451 125452 } 125453 if yyj1 < len(yyv1) { 125454 yyv1 = yyv1[:yyj1] 125455 yyc1 = true 125456 } else if yyj1 == 0 && yyv1 == nil { 125457 yyv1 = make([]*AllocationDiff, 0) 125458 yyc1 = true 125459 } 125460 } 125461 yyh1.End() 125462 if yyc1 { 125463 *v = yyv1 125464 } 125465 } 125466 125467 func (x codecSelfer100) encSlicePtrtoDeploymentStatusUpdate(v []*DeploymentStatusUpdate, e *codec1978.Encoder) { 125468 var h codecSelfer100 125469 z, r := codec1978.GenHelperEncoder(e) 125470 _, _, _ = h, z, r 125471 r.WriteArrayStart(len(v)) 125472 for _, yyv1 := range v { 125473 r.WriteArrayElem() 125474 if yyv1 == nil { 125475 r.EncodeNil() 125476 } else { 125477 yyv1.CodecEncodeSelf(e) 125478 } 125479 } 125480 r.WriteArrayEnd() 125481 } 125482 125483 func (x codecSelfer100) decSlicePtrtoDeploymentStatusUpdate(v *[]*DeploymentStatusUpdate, d *codec1978.Decoder) { 125484 var h codecSelfer100 125485 z, r := codec1978.GenHelperDecoder(d) 125486 _, _, _ = h, z, r 125487 125488 yyv1 := *v 125489 yyh1, yyl1 := z.DecSliceHelperStart() 125490 var yyc1 bool 125491 _ = yyc1 125492 if yyl1 == 0 { 125493 if yyv1 == nil { 125494 yyv1 = []*DeploymentStatusUpdate{} 125495 yyc1 = true 125496 } else if len(yyv1) != 0 { 125497 yyv1 = yyv1[:0] 125498 yyc1 = true 125499 } 125500 } else { 125501 yyhl1 := yyl1 > 0 125502 var yyrl1 int 125503 _ = yyrl1 125504 if yyhl1 { 125505 if yyl1 > cap(yyv1) { 125506 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125507 if yyrl1 <= cap(yyv1) { 125508 yyv1 = yyv1[:yyrl1] 125509 } else { 125510 yyv1 = make([]*DeploymentStatusUpdate, yyrl1) 125511 } 125512 yyc1 = true 125513 } else if yyl1 != len(yyv1) { 125514 yyv1 = yyv1[:yyl1] 125515 yyc1 = true 125516 } 125517 } 125518 var yyj1 int 125519 // var yydn1 bool 125520 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125521 if yyj1 == 0 && yyv1 == nil { 125522 if yyhl1 { 125523 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125524 } else { 125525 yyrl1 = 8 125526 } 125527 yyv1 = make([]*DeploymentStatusUpdate, yyrl1) 125528 yyc1 = true 125529 } 125530 yyh1.ElemContainerState(yyj1) 125531 125532 var yydb1 bool 125533 if yyj1 >= len(yyv1) { 125534 yyv1 = append(yyv1, nil) 125535 yyc1 = true 125536 125537 } 125538 if yydb1 { 125539 z.DecSwallow() 125540 } else { 125541 if r.TryDecodeAsNil() { 125542 yyv1[yyj1] = nil 125543 } else { 125544 if yyv1[yyj1] == nil { 125545 yyv1[yyj1] = new(DeploymentStatusUpdate) 125546 } 125547 yyv1[yyj1].CodecDecodeSelf(d) 125548 } 125549 125550 } 125551 125552 } 125553 if yyj1 < len(yyv1) { 125554 yyv1 = yyv1[:yyj1] 125555 yyc1 = true 125556 } else if yyj1 == 0 && yyv1 == nil { 125557 yyv1 = make([]*DeploymentStatusUpdate, 0) 125558 yyc1 = true 125559 } 125560 } 125561 yyh1.End() 125562 if yyc1 { 125563 *v = yyv1 125564 } 125565 } 125566 125567 func (x codecSelfer100) encMapstringPtrtoDesiredTransition(v map[string]*DesiredTransition, e *codec1978.Encoder) { 125568 var h codecSelfer100 125569 z, r := codec1978.GenHelperEncoder(e) 125570 _, _, _ = h, z, r 125571 r.WriteMapStart(len(v)) 125572 for yyk1, yyv1 := range v { 125573 r.WriteMapElemKey() 125574 if false { 125575 } else { 125576 if z.EncBasicHandle().StringToRaw { 125577 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 125578 } else { 125579 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 125580 } 125581 } 125582 r.WriteMapElemValue() 125583 if yyv1 == nil { 125584 r.EncodeNil() 125585 } else { 125586 yyv1.CodecEncodeSelf(e) 125587 } 125588 } 125589 r.WriteMapEnd() 125590 } 125591 125592 func (x codecSelfer100) decMapstringPtrtoDesiredTransition(v *map[string]*DesiredTransition, d *codec1978.Decoder) { 125593 var h codecSelfer100 125594 z, r := codec1978.GenHelperDecoder(d) 125595 _, _, _ = h, z, r 125596 125597 yyv1 := *v 125598 yyl1 := r.ReadMapStart() 125599 yybh1 := z.DecBasicHandle() 125600 if yyv1 == nil { 125601 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 125602 yyv1 = make(map[string]*DesiredTransition, yyrl1) 125603 *v = yyv1 125604 } 125605 var yymk1 string 125606 var yymv1 *DesiredTransition 125607 var yymg1, yymdn1, yyms1, yymok1 bool 125608 if yybh1.MapValueReset { 125609 yymg1 = true 125610 } 125611 if yyl1 != 0 { 125612 yyhl1 := yyl1 > 0 125613 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 125614 r.ReadMapElemKey() 125615 if r.TryDecodeAsNil() { 125616 yymk1 = "" 125617 } else { 125618 yymk1 = (string)(r.DecodeString()) 125619 } 125620 125621 yyms1 = true 125622 if yymg1 { 125623 yymv1, yymok1 = yyv1[yymk1] 125624 if yymok1 { 125625 yyms1 = false 125626 } 125627 } else { 125628 yymv1 = nil 125629 } 125630 r.ReadMapElemValue() 125631 yymdn1 = false 125632 if r.TryDecodeAsNil() { 125633 yymdn1 = true 125634 } else { 125635 if yymv1 == nil { 125636 yymv1 = new(DesiredTransition) 125637 } 125638 yymv1.CodecDecodeSelf(d) 125639 } 125640 125641 if yymdn1 { 125642 if yybh1.DeleteOnNilMapValue { 125643 delete(yyv1, yymk1) 125644 } else { 125645 yyv1[yymk1] = nil 125646 } 125647 } else if yyms1 && yyv1 != nil { 125648 yyv1[yymk1] = yymv1 125649 } 125650 } 125651 } // else len==0: TODO: Should we clear map entries? 125652 r.ReadMapEnd() 125653 } 125654 125655 func (x codecSelfer100) encSlicePtrtoServerMember(v []*ServerMember, e *codec1978.Encoder) { 125656 var h codecSelfer100 125657 z, r := codec1978.GenHelperEncoder(e) 125658 _, _, _ = h, z, r 125659 r.WriteArrayStart(len(v)) 125660 for _, yyv1 := range v { 125661 r.WriteArrayElem() 125662 if yyv1 == nil { 125663 r.EncodeNil() 125664 } else { 125665 yyv1.CodecEncodeSelf(e) 125666 } 125667 } 125668 r.WriteArrayEnd() 125669 } 125670 125671 func (x codecSelfer100) decSlicePtrtoServerMember(v *[]*ServerMember, d *codec1978.Decoder) { 125672 var h codecSelfer100 125673 z, r := codec1978.GenHelperDecoder(d) 125674 _, _, _ = h, z, r 125675 125676 yyv1 := *v 125677 yyh1, yyl1 := z.DecSliceHelperStart() 125678 var yyc1 bool 125679 _ = yyc1 125680 if yyl1 == 0 { 125681 if yyv1 == nil { 125682 yyv1 = []*ServerMember{} 125683 yyc1 = true 125684 } else if len(yyv1) != 0 { 125685 yyv1 = yyv1[:0] 125686 yyc1 = true 125687 } 125688 } else { 125689 yyhl1 := yyl1 > 0 125690 var yyrl1 int 125691 _ = yyrl1 125692 if yyhl1 { 125693 if yyl1 > cap(yyv1) { 125694 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125695 if yyrl1 <= cap(yyv1) { 125696 yyv1 = yyv1[:yyrl1] 125697 } else { 125698 yyv1 = make([]*ServerMember, yyrl1) 125699 } 125700 yyc1 = true 125701 } else if yyl1 != len(yyv1) { 125702 yyv1 = yyv1[:yyl1] 125703 yyc1 = true 125704 } 125705 } 125706 var yyj1 int 125707 // var yydn1 bool 125708 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125709 if yyj1 == 0 && yyv1 == nil { 125710 if yyhl1 { 125711 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125712 } else { 125713 yyrl1 = 8 125714 } 125715 yyv1 = make([]*ServerMember, yyrl1) 125716 yyc1 = true 125717 } 125718 yyh1.ElemContainerState(yyj1) 125719 125720 var yydb1 bool 125721 if yyj1 >= len(yyv1) { 125722 yyv1 = append(yyv1, nil) 125723 yyc1 = true 125724 125725 } 125726 if yydb1 { 125727 z.DecSwallow() 125728 } else { 125729 if r.TryDecodeAsNil() { 125730 yyv1[yyj1] = nil 125731 } else { 125732 if yyv1[yyj1] == nil { 125733 yyv1[yyj1] = new(ServerMember) 125734 } 125735 yyv1[yyj1].CodecDecodeSelf(d) 125736 } 125737 125738 } 125739 125740 } 125741 if yyj1 < len(yyv1) { 125742 yyv1 = yyv1[:yyj1] 125743 yyc1 = true 125744 } else if yyj1 == 0 && yyv1 == nil { 125745 yyv1 = make([]*ServerMember, 0) 125746 yyc1 = true 125747 } 125748 } 125749 yyh1.End() 125750 if yyc1 { 125751 *v = yyv1 125752 } 125753 } 125754 125755 func (x codecSelfer100) encnet_IP(v net.IP, e *codec1978.Encoder) { 125756 var h codecSelfer100 125757 z, r := codec1978.GenHelperEncoder(e) 125758 _, _, _ = h, z, r 125759 r.EncodeStringBytesRaw([]byte(v)) 125760 } 125761 125762 func (x codecSelfer100) decnet_IP(v *net.IP, d *codec1978.Decoder) { 125763 var h codecSelfer100 125764 z, r := codec1978.GenHelperDecoder(d) 125765 _, _, _ = h, z, r 125766 *v = r.DecodeBytes(*((*[]byte)(v)), false) 125767 } 125768 125769 func (x codecSelfer100) encSlicePtrtoVaultAccessor(v []*VaultAccessor, e *codec1978.Encoder) { 125770 var h codecSelfer100 125771 z, r := codec1978.GenHelperEncoder(e) 125772 _, _, _ = h, z, r 125773 r.WriteArrayStart(len(v)) 125774 for _, yyv1 := range v { 125775 r.WriteArrayElem() 125776 if yyv1 == nil { 125777 r.EncodeNil() 125778 } else { 125779 yyv1.CodecEncodeSelf(e) 125780 } 125781 } 125782 r.WriteArrayEnd() 125783 } 125784 125785 func (x codecSelfer100) decSlicePtrtoVaultAccessor(v *[]*VaultAccessor, d *codec1978.Decoder) { 125786 var h codecSelfer100 125787 z, r := codec1978.GenHelperDecoder(d) 125788 _, _, _ = h, z, r 125789 125790 yyv1 := *v 125791 yyh1, yyl1 := z.DecSliceHelperStart() 125792 var yyc1 bool 125793 _ = yyc1 125794 if yyl1 == 0 { 125795 if yyv1 == nil { 125796 yyv1 = []*VaultAccessor{} 125797 yyc1 = true 125798 } else if len(yyv1) != 0 { 125799 yyv1 = yyv1[:0] 125800 yyc1 = true 125801 } 125802 } else { 125803 yyhl1 := yyl1 > 0 125804 var yyrl1 int 125805 _ = yyrl1 125806 if yyhl1 { 125807 if yyl1 > cap(yyv1) { 125808 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125809 if yyrl1 <= cap(yyv1) { 125810 yyv1 = yyv1[:yyrl1] 125811 } else { 125812 yyv1 = make([]*VaultAccessor, yyrl1) 125813 } 125814 yyc1 = true 125815 } else if yyl1 != len(yyv1) { 125816 yyv1 = yyv1[:yyl1] 125817 yyc1 = true 125818 } 125819 } 125820 var yyj1 int 125821 // var yydn1 bool 125822 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125823 if yyj1 == 0 && yyv1 == nil { 125824 if yyhl1 { 125825 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125826 } else { 125827 yyrl1 = 8 125828 } 125829 yyv1 = make([]*VaultAccessor, yyrl1) 125830 yyc1 = true 125831 } 125832 yyh1.ElemContainerState(yyj1) 125833 125834 var yydb1 bool 125835 if yyj1 >= len(yyv1) { 125836 yyv1 = append(yyv1, nil) 125837 yyc1 = true 125838 125839 } 125840 if yydb1 { 125841 z.DecSwallow() 125842 } else { 125843 if r.TryDecodeAsNil() { 125844 yyv1[yyj1] = nil 125845 } else { 125846 if yyv1[yyj1] == nil { 125847 yyv1[yyj1] = new(VaultAccessor) 125848 } 125849 yyv1[yyj1].CodecDecodeSelf(d) 125850 } 125851 125852 } 125853 125854 } 125855 if yyj1 < len(yyv1) { 125856 yyv1 = yyv1[:yyj1] 125857 yyc1 = true 125858 } else if yyj1 == 0 && yyv1 == nil { 125859 yyv1 = make([]*VaultAccessor, 0) 125860 yyc1 = true 125861 } 125862 } 125863 yyh1.End() 125864 if yyc1 { 125865 *v = yyv1 125866 } 125867 } 125868 125869 func (x codecSelfer100) encSlicePtrtoScalingPolicyListStub(v []*ScalingPolicyListStub, e *codec1978.Encoder) { 125870 var h codecSelfer100 125871 z, r := codec1978.GenHelperEncoder(e) 125872 _, _, _ = h, z, r 125873 r.WriteArrayStart(len(v)) 125874 for _, yyv1 := range v { 125875 r.WriteArrayElem() 125876 if yyv1 == nil { 125877 r.EncodeNil() 125878 } else { 125879 yyv1.CodecEncodeSelf(e) 125880 } 125881 } 125882 r.WriteArrayEnd() 125883 } 125884 125885 func (x codecSelfer100) decSlicePtrtoScalingPolicyListStub(v *[]*ScalingPolicyListStub, d *codec1978.Decoder) { 125886 var h codecSelfer100 125887 z, r := codec1978.GenHelperDecoder(d) 125888 _, _, _ = h, z, r 125889 125890 yyv1 := *v 125891 yyh1, yyl1 := z.DecSliceHelperStart() 125892 var yyc1 bool 125893 _ = yyc1 125894 if yyl1 == 0 { 125895 if yyv1 == nil { 125896 yyv1 = []*ScalingPolicyListStub{} 125897 yyc1 = true 125898 } else if len(yyv1) != 0 { 125899 yyv1 = yyv1[:0] 125900 yyc1 = true 125901 } 125902 } else { 125903 yyhl1 := yyl1 > 0 125904 var yyrl1 int 125905 _ = yyrl1 125906 if yyhl1 { 125907 if yyl1 > cap(yyv1) { 125908 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125909 if yyrl1 <= cap(yyv1) { 125910 yyv1 = yyv1[:yyrl1] 125911 } else { 125912 yyv1 = make([]*ScalingPolicyListStub, yyrl1) 125913 } 125914 yyc1 = true 125915 } else if yyl1 != len(yyv1) { 125916 yyv1 = yyv1[:yyl1] 125917 yyc1 = true 125918 } 125919 } 125920 var yyj1 int 125921 // var yydn1 bool 125922 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 125923 if yyj1 == 0 && yyv1 == nil { 125924 if yyhl1 { 125925 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 125926 } else { 125927 yyrl1 = 8 125928 } 125929 yyv1 = make([]*ScalingPolicyListStub, yyrl1) 125930 yyc1 = true 125931 } 125932 yyh1.ElemContainerState(yyj1) 125933 125934 var yydb1 bool 125935 if yyj1 >= len(yyv1) { 125936 yyv1 = append(yyv1, nil) 125937 yyc1 = true 125938 125939 } 125940 if yydb1 { 125941 z.DecSwallow() 125942 } else { 125943 if r.TryDecodeAsNil() { 125944 yyv1[yyj1] = nil 125945 } else { 125946 if yyv1[yyj1] == nil { 125947 yyv1[yyj1] = new(ScalingPolicyListStub) 125948 } 125949 yyv1[yyj1].CodecDecodeSelf(d) 125950 } 125951 125952 } 125953 125954 } 125955 if yyj1 < len(yyv1) { 125956 yyv1 = yyv1[:yyj1] 125957 yyc1 = true 125958 } else if yyj1 == 0 && yyv1 == nil { 125959 yyv1 = make([]*ScalingPolicyListStub, 0) 125960 yyc1 = true 125961 } 125962 } 125963 yyh1.End() 125964 if yyc1 { 125965 *v = yyv1 125966 } 125967 } 125968 125969 func (x codecSelfer100) encMapNamespacedIDstring(v map[NamespacedID]string, e *codec1978.Encoder) { 125970 var h codecSelfer100 125971 z, r := codec1978.GenHelperEncoder(e) 125972 _, _, _ = h, z, r 125973 r.WriteMapStart(len(v)) 125974 for yyk1, yyv1 := range v { 125975 r.WriteMapElemKey() 125976 yy2 := &yyk1 125977 yy2.CodecEncodeSelf(e) 125978 r.WriteMapElemValue() 125979 if false { 125980 } else { 125981 if z.EncBasicHandle().StringToRaw { 125982 r.EncodeStringBytesRaw(z.BytesView(string(yyv1))) 125983 } else { 125984 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyv1)) 125985 } 125986 } 125987 } 125988 r.WriteMapEnd() 125989 } 125990 125991 func (x codecSelfer100) decMapNamespacedIDstring(v *map[NamespacedID]string, d *codec1978.Decoder) { 125992 var h codecSelfer100 125993 z, r := codec1978.GenHelperDecoder(d) 125994 _, _, _ = h, z, r 125995 125996 yyv1 := *v 125997 yyl1 := r.ReadMapStart() 125998 yybh1 := z.DecBasicHandle() 125999 if yyv1 == nil { 126000 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 48) 126001 yyv1 = make(map[NamespacedID]string, yyrl1) 126002 *v = yyv1 126003 } 126004 var yymk1 NamespacedID 126005 var yymv1 string 126006 var yymg1, yymdn1 bool 126007 if yybh1.MapValueReset { 126008 } 126009 if yyl1 != 0 { 126010 yyhl1 := yyl1 > 0 126011 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126012 r.ReadMapElemKey() 126013 if r.TryDecodeAsNil() { 126014 yymk1 = NamespacedID{} 126015 } else { 126016 yymk1.CodecDecodeSelf(d) 126017 } 126018 126019 if yymg1 { 126020 yymv1 = yyv1[yymk1] 126021 } 126022 r.ReadMapElemValue() 126023 yymdn1 = false 126024 if r.TryDecodeAsNil() { 126025 yymdn1 = true 126026 } else { 126027 yymv1 = (string)(r.DecodeString()) 126028 } 126029 126030 if yymdn1 { 126031 if yybh1.DeleteOnNilMapValue { 126032 delete(yyv1, yymk1) 126033 } else { 126034 yyv1[yymk1] = "" 126035 } 126036 } else if yyv1 != nil { 126037 yyv1[yymk1] = yymv1 126038 } 126039 } 126040 } // else len==0: TODO: Should we clear map entries? 126041 r.ReadMapEnd() 126042 } 126043 126044 func (x codecSelfer100) encSlicePtrtoNodeServerInfo(v []*NodeServerInfo, e *codec1978.Encoder) { 126045 var h codecSelfer100 126046 z, r := codec1978.GenHelperEncoder(e) 126047 _, _, _ = h, z, r 126048 r.WriteArrayStart(len(v)) 126049 for _, yyv1 := range v { 126050 r.WriteArrayElem() 126051 if yyv1 == nil { 126052 r.EncodeNil() 126053 } else { 126054 yyv1.CodecEncodeSelf(e) 126055 } 126056 } 126057 r.WriteArrayEnd() 126058 } 126059 126060 func (x codecSelfer100) decSlicePtrtoNodeServerInfo(v *[]*NodeServerInfo, d *codec1978.Decoder) { 126061 var h codecSelfer100 126062 z, r := codec1978.GenHelperDecoder(d) 126063 _, _, _ = h, z, r 126064 126065 yyv1 := *v 126066 yyh1, yyl1 := z.DecSliceHelperStart() 126067 var yyc1 bool 126068 _ = yyc1 126069 if yyl1 == 0 { 126070 if yyv1 == nil { 126071 yyv1 = []*NodeServerInfo{} 126072 yyc1 = true 126073 } else if len(yyv1) != 0 { 126074 yyv1 = yyv1[:0] 126075 yyc1 = true 126076 } 126077 } else { 126078 yyhl1 := yyl1 > 0 126079 var yyrl1 int 126080 _ = yyrl1 126081 if yyhl1 { 126082 if yyl1 > cap(yyv1) { 126083 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126084 if yyrl1 <= cap(yyv1) { 126085 yyv1 = yyv1[:yyrl1] 126086 } else { 126087 yyv1 = make([]*NodeServerInfo, yyrl1) 126088 } 126089 yyc1 = true 126090 } else if yyl1 != len(yyv1) { 126091 yyv1 = yyv1[:yyl1] 126092 yyc1 = true 126093 } 126094 } 126095 var yyj1 int 126096 // var yydn1 bool 126097 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126098 if yyj1 == 0 && yyv1 == nil { 126099 if yyhl1 { 126100 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126101 } else { 126102 yyrl1 = 8 126103 } 126104 yyv1 = make([]*NodeServerInfo, yyrl1) 126105 yyc1 = true 126106 } 126107 yyh1.ElemContainerState(yyj1) 126108 126109 var yydb1 bool 126110 if yyj1 >= len(yyv1) { 126111 yyv1 = append(yyv1, nil) 126112 yyc1 = true 126113 126114 } 126115 if yydb1 { 126116 z.DecSwallow() 126117 } else { 126118 if r.TryDecodeAsNil() { 126119 yyv1[yyj1] = nil 126120 } else { 126121 if yyv1[yyj1] == nil { 126122 yyv1[yyj1] = new(NodeServerInfo) 126123 } 126124 yyv1[yyj1].CodecDecodeSelf(d) 126125 } 126126 126127 } 126128 126129 } 126130 if yyj1 < len(yyv1) { 126131 yyv1 = yyv1[:yyj1] 126132 yyc1 = true 126133 } else if yyj1 == 0 && yyv1 == nil { 126134 yyv1 = make([]*NodeServerInfo, 0) 126135 yyc1 = true 126136 } 126137 } 126138 yyh1.End() 126139 if yyc1 { 126140 *v = yyv1 126141 } 126142 } 126143 126144 func (x codecSelfer100) encSlicePtrtoNodeListStub(v []*NodeListStub, e *codec1978.Encoder) { 126145 var h codecSelfer100 126146 z, r := codec1978.GenHelperEncoder(e) 126147 _, _, _ = h, z, r 126148 r.WriteArrayStart(len(v)) 126149 for _, yyv1 := range v { 126150 r.WriteArrayElem() 126151 if yyv1 == nil { 126152 r.EncodeNil() 126153 } else { 126154 yyv1.CodecEncodeSelf(e) 126155 } 126156 } 126157 r.WriteArrayEnd() 126158 } 126159 126160 func (x codecSelfer100) decSlicePtrtoNodeListStub(v *[]*NodeListStub, d *codec1978.Decoder) { 126161 var h codecSelfer100 126162 z, r := codec1978.GenHelperDecoder(d) 126163 _, _, _ = h, z, r 126164 126165 yyv1 := *v 126166 yyh1, yyl1 := z.DecSliceHelperStart() 126167 var yyc1 bool 126168 _ = yyc1 126169 if yyl1 == 0 { 126170 if yyv1 == nil { 126171 yyv1 = []*NodeListStub{} 126172 yyc1 = true 126173 } else if len(yyv1) != 0 { 126174 yyv1 = yyv1[:0] 126175 yyc1 = true 126176 } 126177 } else { 126178 yyhl1 := yyl1 > 0 126179 var yyrl1 int 126180 _ = yyrl1 126181 if yyhl1 { 126182 if yyl1 > cap(yyv1) { 126183 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126184 if yyrl1 <= cap(yyv1) { 126185 yyv1 = yyv1[:yyrl1] 126186 } else { 126187 yyv1 = make([]*NodeListStub, yyrl1) 126188 } 126189 yyc1 = true 126190 } else if yyl1 != len(yyv1) { 126191 yyv1 = yyv1[:yyl1] 126192 yyc1 = true 126193 } 126194 } 126195 var yyj1 int 126196 // var yydn1 bool 126197 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126198 if yyj1 == 0 && yyv1 == nil { 126199 if yyhl1 { 126200 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126201 } else { 126202 yyrl1 = 8 126203 } 126204 yyv1 = make([]*NodeListStub, yyrl1) 126205 yyc1 = true 126206 } 126207 yyh1.ElemContainerState(yyj1) 126208 126209 var yydb1 bool 126210 if yyj1 >= len(yyv1) { 126211 yyv1 = append(yyv1, nil) 126212 yyc1 = true 126213 126214 } 126215 if yydb1 { 126216 z.DecSwallow() 126217 } else { 126218 if r.TryDecodeAsNil() { 126219 yyv1[yyj1] = nil 126220 } else { 126221 if yyv1[yyj1] == nil { 126222 yyv1[yyj1] = new(NodeListStub) 126223 } 126224 yyv1[yyj1].CodecDecodeSelf(d) 126225 } 126226 126227 } 126228 126229 } 126230 if yyj1 < len(yyv1) { 126231 yyv1 = yyv1[:yyj1] 126232 yyc1 = true 126233 } else if yyj1 == 0 && yyv1 == nil { 126234 yyv1 = make([]*NodeListStub, 0) 126235 yyc1 = true 126236 } 126237 } 126238 yyh1.End() 126239 if yyc1 { 126240 *v = yyv1 126241 } 126242 } 126243 126244 func (x codecSelfer100) encMapstringPtrtoTaskGroupScaleStatus(v map[string]*TaskGroupScaleStatus, e *codec1978.Encoder) { 126245 var h codecSelfer100 126246 z, r := codec1978.GenHelperEncoder(e) 126247 _, _, _ = h, z, r 126248 r.WriteMapStart(len(v)) 126249 for yyk1, yyv1 := range v { 126250 r.WriteMapElemKey() 126251 if false { 126252 } else { 126253 if z.EncBasicHandle().StringToRaw { 126254 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126255 } else { 126256 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126257 } 126258 } 126259 r.WriteMapElemValue() 126260 if yyv1 == nil { 126261 r.EncodeNil() 126262 } else { 126263 yyv1.CodecEncodeSelf(e) 126264 } 126265 } 126266 r.WriteMapEnd() 126267 } 126268 126269 func (x codecSelfer100) decMapstringPtrtoTaskGroupScaleStatus(v *map[string]*TaskGroupScaleStatus, d *codec1978.Decoder) { 126270 var h codecSelfer100 126271 z, r := codec1978.GenHelperDecoder(d) 126272 _, _, _ = h, z, r 126273 126274 yyv1 := *v 126275 yyl1 := r.ReadMapStart() 126276 yybh1 := z.DecBasicHandle() 126277 if yyv1 == nil { 126278 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 126279 yyv1 = make(map[string]*TaskGroupScaleStatus, yyrl1) 126280 *v = yyv1 126281 } 126282 var yymk1 string 126283 var yymv1 *TaskGroupScaleStatus 126284 var yymg1, yymdn1, yyms1, yymok1 bool 126285 if yybh1.MapValueReset { 126286 yymg1 = true 126287 } 126288 if yyl1 != 0 { 126289 yyhl1 := yyl1 > 0 126290 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126291 r.ReadMapElemKey() 126292 if r.TryDecodeAsNil() { 126293 yymk1 = "" 126294 } else { 126295 yymk1 = (string)(r.DecodeString()) 126296 } 126297 126298 yyms1 = true 126299 if yymg1 { 126300 yymv1, yymok1 = yyv1[yymk1] 126301 if yymok1 { 126302 yyms1 = false 126303 } 126304 } else { 126305 yymv1 = nil 126306 } 126307 r.ReadMapElemValue() 126308 yymdn1 = false 126309 if r.TryDecodeAsNil() { 126310 yymdn1 = true 126311 } else { 126312 if yymv1 == nil { 126313 yymv1 = new(TaskGroupScaleStatus) 126314 } 126315 yymv1.CodecDecodeSelf(d) 126316 } 126317 126318 if yymdn1 { 126319 if yybh1.DeleteOnNilMapValue { 126320 delete(yyv1, yymk1) 126321 } else { 126322 yyv1[yymk1] = nil 126323 } 126324 } else if yyms1 && yyv1 != nil { 126325 yyv1[yymk1] = yymv1 126326 } 126327 } 126328 } // else len==0: TODO: Should we clear map entries? 126329 r.ReadMapEnd() 126330 } 126331 126332 func (x codecSelfer100) encSlicePtrtoScalingEvent(v []*ScalingEvent, e *codec1978.Encoder) { 126333 var h codecSelfer100 126334 z, r := codec1978.GenHelperEncoder(e) 126335 _, _, _ = h, z, r 126336 r.WriteArrayStart(len(v)) 126337 for _, yyv1 := range v { 126338 r.WriteArrayElem() 126339 if yyv1 == nil { 126340 r.EncodeNil() 126341 } else { 126342 yyv1.CodecEncodeSelf(e) 126343 } 126344 } 126345 r.WriteArrayEnd() 126346 } 126347 126348 func (x codecSelfer100) decSlicePtrtoScalingEvent(v *[]*ScalingEvent, d *codec1978.Decoder) { 126349 var h codecSelfer100 126350 z, r := codec1978.GenHelperDecoder(d) 126351 _, _, _ = h, z, r 126352 126353 yyv1 := *v 126354 yyh1, yyl1 := z.DecSliceHelperStart() 126355 var yyc1 bool 126356 _ = yyc1 126357 if yyl1 == 0 { 126358 if yyv1 == nil { 126359 yyv1 = []*ScalingEvent{} 126360 yyc1 = true 126361 } else if len(yyv1) != 0 { 126362 yyv1 = yyv1[:0] 126363 yyc1 = true 126364 } 126365 } else { 126366 yyhl1 := yyl1 > 0 126367 var yyrl1 int 126368 _ = yyrl1 126369 if yyhl1 { 126370 if yyl1 > cap(yyv1) { 126371 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126372 if yyrl1 <= cap(yyv1) { 126373 yyv1 = yyv1[:yyrl1] 126374 } else { 126375 yyv1 = make([]*ScalingEvent, yyrl1) 126376 } 126377 yyc1 = true 126378 } else if yyl1 != len(yyv1) { 126379 yyv1 = yyv1[:yyl1] 126380 yyc1 = true 126381 } 126382 } 126383 var yyj1 int 126384 // var yydn1 bool 126385 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126386 if yyj1 == 0 && yyv1 == nil { 126387 if yyhl1 { 126388 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126389 } else { 126390 yyrl1 = 8 126391 } 126392 yyv1 = make([]*ScalingEvent, yyrl1) 126393 yyc1 = true 126394 } 126395 yyh1.ElemContainerState(yyj1) 126396 126397 var yydb1 bool 126398 if yyj1 >= len(yyv1) { 126399 yyv1 = append(yyv1, nil) 126400 yyc1 = true 126401 126402 } 126403 if yydb1 { 126404 z.DecSwallow() 126405 } else { 126406 if r.TryDecodeAsNil() { 126407 yyv1[yyj1] = nil 126408 } else { 126409 if yyv1[yyj1] == nil { 126410 yyv1[yyj1] = new(ScalingEvent) 126411 } 126412 yyv1[yyj1].CodecDecodeSelf(d) 126413 } 126414 126415 } 126416 126417 } 126418 if yyj1 < len(yyv1) { 126419 yyv1 = yyv1[:yyj1] 126420 yyc1 = true 126421 } else if yyj1 == 0 && yyv1 == nil { 126422 yyv1 = make([]*ScalingEvent, 0) 126423 yyc1 = true 126424 } 126425 } 126426 yyh1.End() 126427 if yyc1 { 126428 *v = yyv1 126429 } 126430 } 126431 126432 func (x codecSelfer100) encSlicePtrtoJobListStub(v []*JobListStub, e *codec1978.Encoder) { 126433 var h codecSelfer100 126434 z, r := codec1978.GenHelperEncoder(e) 126435 _, _, _ = h, z, r 126436 r.WriteArrayStart(len(v)) 126437 for _, yyv1 := range v { 126438 r.WriteArrayElem() 126439 if yyv1 == nil { 126440 r.EncodeNil() 126441 } else { 126442 yyv1.CodecEncodeSelf(e) 126443 } 126444 } 126445 r.WriteArrayEnd() 126446 } 126447 126448 func (x codecSelfer100) decSlicePtrtoJobListStub(v *[]*JobListStub, d *codec1978.Decoder) { 126449 var h codecSelfer100 126450 z, r := codec1978.GenHelperDecoder(d) 126451 _, _, _ = h, z, r 126452 126453 yyv1 := *v 126454 yyh1, yyl1 := z.DecSliceHelperStart() 126455 var yyc1 bool 126456 _ = yyc1 126457 if yyl1 == 0 { 126458 if yyv1 == nil { 126459 yyv1 = []*JobListStub{} 126460 yyc1 = true 126461 } else if len(yyv1) != 0 { 126462 yyv1 = yyv1[:0] 126463 yyc1 = true 126464 } 126465 } else { 126466 yyhl1 := yyl1 > 0 126467 var yyrl1 int 126468 _ = yyrl1 126469 if yyhl1 { 126470 if yyl1 > cap(yyv1) { 126471 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126472 if yyrl1 <= cap(yyv1) { 126473 yyv1 = yyv1[:yyrl1] 126474 } else { 126475 yyv1 = make([]*JobListStub, yyrl1) 126476 } 126477 yyc1 = true 126478 } else if yyl1 != len(yyv1) { 126479 yyv1 = yyv1[:yyl1] 126480 yyc1 = true 126481 } 126482 } 126483 var yyj1 int 126484 // var yydn1 bool 126485 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126486 if yyj1 == 0 && yyv1 == nil { 126487 if yyhl1 { 126488 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126489 } else { 126490 yyrl1 = 8 126491 } 126492 yyv1 = make([]*JobListStub, yyrl1) 126493 yyc1 = true 126494 } 126495 yyh1.ElemContainerState(yyj1) 126496 126497 var yydb1 bool 126498 if yyj1 >= len(yyv1) { 126499 yyv1 = append(yyv1, nil) 126500 yyc1 = true 126501 126502 } 126503 if yydb1 { 126504 z.DecSwallow() 126505 } else { 126506 if r.TryDecodeAsNil() { 126507 yyv1[yyj1] = nil 126508 } else { 126509 if yyv1[yyj1] == nil { 126510 yyv1[yyj1] = new(JobListStub) 126511 } 126512 yyv1[yyj1].CodecDecodeSelf(d) 126513 } 126514 126515 } 126516 126517 } 126518 if yyj1 < len(yyv1) { 126519 yyv1 = yyv1[:yyj1] 126520 yyc1 = true 126521 } else if yyj1 == 0 && yyv1 == nil { 126522 yyv1 = make([]*JobListStub, 0) 126523 yyc1 = true 126524 } 126525 } 126526 yyh1.End() 126527 if yyc1 { 126528 *v = yyv1 126529 } 126530 } 126531 126532 func (x codecSelfer100) encSlicePtrtoJob(v []*Job, e *codec1978.Encoder) { 126533 var h codecSelfer100 126534 z, r := codec1978.GenHelperEncoder(e) 126535 _, _, _ = h, z, r 126536 r.WriteArrayStart(len(v)) 126537 for _, yyv1 := range v { 126538 r.WriteArrayElem() 126539 if yyv1 == nil { 126540 r.EncodeNil() 126541 } else { 126542 yyv1.CodecEncodeSelf(e) 126543 } 126544 } 126545 r.WriteArrayEnd() 126546 } 126547 126548 func (x codecSelfer100) decSlicePtrtoJob(v *[]*Job, d *codec1978.Decoder) { 126549 var h codecSelfer100 126550 z, r := codec1978.GenHelperDecoder(d) 126551 _, _, _ = h, z, r 126552 126553 yyv1 := *v 126554 yyh1, yyl1 := z.DecSliceHelperStart() 126555 var yyc1 bool 126556 _ = yyc1 126557 if yyl1 == 0 { 126558 if yyv1 == nil { 126559 yyv1 = []*Job{} 126560 yyc1 = true 126561 } else if len(yyv1) != 0 { 126562 yyv1 = yyv1[:0] 126563 yyc1 = true 126564 } 126565 } else { 126566 yyhl1 := yyl1 > 0 126567 var yyrl1 int 126568 _ = yyrl1 126569 if yyhl1 { 126570 if yyl1 > cap(yyv1) { 126571 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126572 if yyrl1 <= cap(yyv1) { 126573 yyv1 = yyv1[:yyrl1] 126574 } else { 126575 yyv1 = make([]*Job, yyrl1) 126576 } 126577 yyc1 = true 126578 } else if yyl1 != len(yyv1) { 126579 yyv1 = yyv1[:yyl1] 126580 yyc1 = true 126581 } 126582 } 126583 var yyj1 int 126584 // var yydn1 bool 126585 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126586 if yyj1 == 0 && yyv1 == nil { 126587 if yyhl1 { 126588 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126589 } else { 126590 yyrl1 = 8 126591 } 126592 yyv1 = make([]*Job, yyrl1) 126593 yyc1 = true 126594 } 126595 yyh1.ElemContainerState(yyj1) 126596 126597 var yydb1 bool 126598 if yyj1 >= len(yyv1) { 126599 yyv1 = append(yyv1, nil) 126600 yyc1 = true 126601 126602 } 126603 if yydb1 { 126604 z.DecSwallow() 126605 } else { 126606 if r.TryDecodeAsNil() { 126607 yyv1[yyj1] = nil 126608 } else { 126609 if yyv1[yyj1] == nil { 126610 yyv1[yyj1] = new(Job) 126611 } 126612 yyv1[yyj1].CodecDecodeSelf(d) 126613 } 126614 126615 } 126616 126617 } 126618 if yyj1 < len(yyv1) { 126619 yyv1 = yyv1[:yyj1] 126620 yyc1 = true 126621 } else if yyj1 == 0 && yyv1 == nil { 126622 yyv1 = make([]*Job, 0) 126623 yyc1 = true 126624 } 126625 } 126626 yyh1.End() 126627 if yyc1 { 126628 *v = yyv1 126629 } 126630 } 126631 126632 func (x codecSelfer100) encSlicePtrtoJobDiff(v []*JobDiff, e *codec1978.Encoder) { 126633 var h codecSelfer100 126634 z, r := codec1978.GenHelperEncoder(e) 126635 _, _, _ = h, z, r 126636 r.WriteArrayStart(len(v)) 126637 for _, yyv1 := range v { 126638 r.WriteArrayElem() 126639 if yyv1 == nil { 126640 r.EncodeNil() 126641 } else { 126642 yyv1.CodecEncodeSelf(e) 126643 } 126644 } 126645 r.WriteArrayEnd() 126646 } 126647 126648 func (x codecSelfer100) decSlicePtrtoJobDiff(v *[]*JobDiff, d *codec1978.Decoder) { 126649 var h codecSelfer100 126650 z, r := codec1978.GenHelperDecoder(d) 126651 _, _, _ = h, z, r 126652 126653 yyv1 := *v 126654 yyh1, yyl1 := z.DecSliceHelperStart() 126655 var yyc1 bool 126656 _ = yyc1 126657 if yyl1 == 0 { 126658 if yyv1 == nil { 126659 yyv1 = []*JobDiff{} 126660 yyc1 = true 126661 } else if len(yyv1) != 0 { 126662 yyv1 = yyv1[:0] 126663 yyc1 = true 126664 } 126665 } else { 126666 yyhl1 := yyl1 > 0 126667 var yyrl1 int 126668 _ = yyrl1 126669 if yyhl1 { 126670 if yyl1 > cap(yyv1) { 126671 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126672 if yyrl1 <= cap(yyv1) { 126673 yyv1 = yyv1[:yyrl1] 126674 } else { 126675 yyv1 = make([]*JobDiff, yyrl1) 126676 } 126677 yyc1 = true 126678 } else if yyl1 != len(yyv1) { 126679 yyv1 = yyv1[:yyl1] 126680 yyc1 = true 126681 } 126682 } 126683 var yyj1 int 126684 // var yydn1 bool 126685 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126686 if yyj1 == 0 && yyv1 == nil { 126687 if yyhl1 { 126688 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126689 } else { 126690 yyrl1 = 8 126691 } 126692 yyv1 = make([]*JobDiff, yyrl1) 126693 yyc1 = true 126694 } 126695 yyh1.ElemContainerState(yyj1) 126696 126697 var yydb1 bool 126698 if yyj1 >= len(yyv1) { 126699 yyv1 = append(yyv1, nil) 126700 yyc1 = true 126701 126702 } 126703 if yydb1 { 126704 z.DecSwallow() 126705 } else { 126706 if r.TryDecodeAsNil() { 126707 yyv1[yyj1] = nil 126708 } else { 126709 if yyv1[yyj1] == nil { 126710 yyv1[yyj1] = new(JobDiff) 126711 } 126712 yyv1[yyj1].CodecDecodeSelf(d) 126713 } 126714 126715 } 126716 126717 } 126718 if yyj1 < len(yyv1) { 126719 yyv1 = yyv1[:yyj1] 126720 yyc1 = true 126721 } else if yyj1 == 0 && yyv1 == nil { 126722 yyv1 = make([]*JobDiff, 0) 126723 yyc1 = true 126724 } 126725 } 126726 yyh1.End() 126727 if yyc1 { 126728 *v = yyv1 126729 } 126730 } 126731 126732 func (x codecSelfer100) encMapstringPtrtoAllocMetric(v map[string]*AllocMetric, e *codec1978.Encoder) { 126733 var h codecSelfer100 126734 z, r := codec1978.GenHelperEncoder(e) 126735 _, _, _ = h, z, r 126736 r.WriteMapStart(len(v)) 126737 for yyk1, yyv1 := range v { 126738 r.WriteMapElemKey() 126739 if false { 126740 } else { 126741 if z.EncBasicHandle().StringToRaw { 126742 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126743 } else { 126744 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126745 } 126746 } 126747 r.WriteMapElemValue() 126748 if yyv1 == nil { 126749 r.EncodeNil() 126750 } else { 126751 yyv1.CodecEncodeSelf(e) 126752 } 126753 } 126754 r.WriteMapEnd() 126755 } 126756 126757 func (x codecSelfer100) decMapstringPtrtoAllocMetric(v *map[string]*AllocMetric, d *codec1978.Decoder) { 126758 var h codecSelfer100 126759 z, r := codec1978.GenHelperDecoder(d) 126760 _, _, _ = h, z, r 126761 126762 yyv1 := *v 126763 yyl1 := r.ReadMapStart() 126764 yybh1 := z.DecBasicHandle() 126765 if yyv1 == nil { 126766 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 126767 yyv1 = make(map[string]*AllocMetric, yyrl1) 126768 *v = yyv1 126769 } 126770 var yymk1 string 126771 var yymv1 *AllocMetric 126772 var yymg1, yymdn1, yyms1, yymok1 bool 126773 if yybh1.MapValueReset { 126774 yymg1 = true 126775 } 126776 if yyl1 != 0 { 126777 yyhl1 := yyl1 > 0 126778 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126779 r.ReadMapElemKey() 126780 if r.TryDecodeAsNil() { 126781 yymk1 = "" 126782 } else { 126783 yymk1 = (string)(r.DecodeString()) 126784 } 126785 126786 yyms1 = true 126787 if yymg1 { 126788 yymv1, yymok1 = yyv1[yymk1] 126789 if yymok1 { 126790 yyms1 = false 126791 } 126792 } else { 126793 yymv1 = nil 126794 } 126795 r.ReadMapElemValue() 126796 yymdn1 = false 126797 if r.TryDecodeAsNil() { 126798 yymdn1 = true 126799 } else { 126800 if yymv1 == nil { 126801 yymv1 = new(AllocMetric) 126802 } 126803 yymv1.CodecDecodeSelf(d) 126804 } 126805 126806 if yymdn1 { 126807 if yybh1.DeleteOnNilMapValue { 126808 delete(yyv1, yymk1) 126809 } else { 126810 yyv1[yymk1] = nil 126811 } 126812 } else if yyms1 && yyv1 != nil { 126813 yyv1[yymk1] = yymv1 126814 } 126815 } 126816 } // else len==0: TODO: Should we clear map entries? 126817 r.ReadMapEnd() 126818 } 126819 126820 func (x codecSelfer100) encSlicePtrtoDeployment(v []*Deployment, e *codec1978.Encoder) { 126821 var h codecSelfer100 126822 z, r := codec1978.GenHelperEncoder(e) 126823 _, _, _ = h, z, r 126824 r.WriteArrayStart(len(v)) 126825 for _, yyv1 := range v { 126826 r.WriteArrayElem() 126827 if yyv1 == nil { 126828 r.EncodeNil() 126829 } else { 126830 yyv1.CodecEncodeSelf(e) 126831 } 126832 } 126833 r.WriteArrayEnd() 126834 } 126835 126836 func (x codecSelfer100) decSlicePtrtoDeployment(v *[]*Deployment, d *codec1978.Decoder) { 126837 var h codecSelfer100 126838 z, r := codec1978.GenHelperDecoder(d) 126839 _, _, _ = h, z, r 126840 126841 yyv1 := *v 126842 yyh1, yyl1 := z.DecSliceHelperStart() 126843 var yyc1 bool 126844 _ = yyc1 126845 if yyl1 == 0 { 126846 if yyv1 == nil { 126847 yyv1 = []*Deployment{} 126848 yyc1 = true 126849 } else if len(yyv1) != 0 { 126850 yyv1 = yyv1[:0] 126851 yyc1 = true 126852 } 126853 } else { 126854 yyhl1 := yyl1 > 0 126855 var yyrl1 int 126856 _ = yyrl1 126857 if yyhl1 { 126858 if yyl1 > cap(yyv1) { 126859 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126860 if yyrl1 <= cap(yyv1) { 126861 yyv1 = yyv1[:yyrl1] 126862 } else { 126863 yyv1 = make([]*Deployment, yyrl1) 126864 } 126865 yyc1 = true 126866 } else if yyl1 != len(yyv1) { 126867 yyv1 = yyv1[:yyl1] 126868 yyc1 = true 126869 } 126870 } 126871 var yyj1 int 126872 // var yydn1 bool 126873 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 126874 if yyj1 == 0 && yyv1 == nil { 126875 if yyhl1 { 126876 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 126877 } else { 126878 yyrl1 = 8 126879 } 126880 yyv1 = make([]*Deployment, yyrl1) 126881 yyc1 = true 126882 } 126883 yyh1.ElemContainerState(yyj1) 126884 126885 var yydb1 bool 126886 if yyj1 >= len(yyv1) { 126887 yyv1 = append(yyv1, nil) 126888 yyc1 = true 126889 126890 } 126891 if yydb1 { 126892 z.DecSwallow() 126893 } else { 126894 if r.TryDecodeAsNil() { 126895 yyv1[yyj1] = nil 126896 } else { 126897 if yyv1[yyj1] == nil { 126898 yyv1[yyj1] = new(Deployment) 126899 } 126900 yyv1[yyj1].CodecDecodeSelf(d) 126901 } 126902 126903 } 126904 126905 } 126906 if yyj1 < len(yyv1) { 126907 yyv1 = yyv1[:yyj1] 126908 yyc1 = true 126909 } else if yyj1 == 0 && yyv1 == nil { 126910 yyv1 = make([]*Deployment, 0) 126911 yyc1 = true 126912 } 126913 } 126914 yyh1.End() 126915 if yyc1 { 126916 *v = yyv1 126917 } 126918 } 126919 126920 func (x codecSelfer100) encMapstringSlicePtrtoNodeEvent(v map[string][]*NodeEvent, e *codec1978.Encoder) { 126921 var h codecSelfer100 126922 z, r := codec1978.GenHelperEncoder(e) 126923 _, _, _ = h, z, r 126924 r.WriteMapStart(len(v)) 126925 for yyk1, yyv1 := range v { 126926 r.WriteMapElemKey() 126927 if false { 126928 } else { 126929 if z.EncBasicHandle().StringToRaw { 126930 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 126931 } else { 126932 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 126933 } 126934 } 126935 r.WriteMapElemValue() 126936 if yyv1 == nil { 126937 r.EncodeNil() 126938 } else { 126939 if false { 126940 } else { 126941 h.encSlicePtrtoNodeEvent(([]*NodeEvent)(yyv1), e) 126942 } 126943 } 126944 } 126945 r.WriteMapEnd() 126946 } 126947 126948 func (x codecSelfer100) decMapstringSlicePtrtoNodeEvent(v *map[string][]*NodeEvent, d *codec1978.Decoder) { 126949 var h codecSelfer100 126950 z, r := codec1978.GenHelperDecoder(d) 126951 _, _, _ = h, z, r 126952 126953 yyv1 := *v 126954 yyl1 := r.ReadMapStart() 126955 yybh1 := z.DecBasicHandle() 126956 if yyv1 == nil { 126957 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 126958 yyv1 = make(map[string][]*NodeEvent, yyrl1) 126959 *v = yyv1 126960 } 126961 var yymk1 string 126962 var yymv1 []*NodeEvent 126963 var yymg1, yymdn1 bool 126964 if yybh1.MapValueReset { 126965 yymg1 = true 126966 } 126967 if yyl1 != 0 { 126968 yyhl1 := yyl1 > 0 126969 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 126970 r.ReadMapElemKey() 126971 if r.TryDecodeAsNil() { 126972 yymk1 = "" 126973 } else { 126974 yymk1 = (string)(r.DecodeString()) 126975 } 126976 126977 if yymg1 { 126978 yymv1 = yyv1[yymk1] 126979 } else { 126980 yymv1 = nil 126981 } 126982 r.ReadMapElemValue() 126983 yymdn1 = false 126984 if r.TryDecodeAsNil() { 126985 yymdn1 = true 126986 } else { 126987 if false { 126988 } else { 126989 h.decSlicePtrtoNodeEvent((*[]*NodeEvent)(&yymv1), d) 126990 } 126991 } 126992 126993 if yymdn1 { 126994 if yybh1.DeleteOnNilMapValue { 126995 delete(yyv1, yymk1) 126996 } else { 126997 yyv1[yymk1] = nil 126998 } 126999 } else if yyv1 != nil { 127000 yyv1[yymk1] = yymv1 127001 } 127002 } 127003 } // else len==0: TODO: Should we clear map entries? 127004 r.ReadMapEnd() 127005 } 127006 127007 func (x codecSelfer100) encSlicePtrtoNodeEvent(v []*NodeEvent, e *codec1978.Encoder) { 127008 var h codecSelfer100 127009 z, r := codec1978.GenHelperEncoder(e) 127010 _, _, _ = h, z, r 127011 r.WriteArrayStart(len(v)) 127012 for _, yyv1 := range v { 127013 r.WriteArrayElem() 127014 if yyv1 == nil { 127015 r.EncodeNil() 127016 } else { 127017 yyv1.CodecEncodeSelf(e) 127018 } 127019 } 127020 r.WriteArrayEnd() 127021 } 127022 127023 func (x codecSelfer100) decSlicePtrtoNodeEvent(v *[]*NodeEvent, d *codec1978.Decoder) { 127024 var h codecSelfer100 127025 z, r := codec1978.GenHelperDecoder(d) 127026 _, _, _ = h, z, r 127027 127028 yyv1 := *v 127029 yyh1, yyl1 := z.DecSliceHelperStart() 127030 var yyc1 bool 127031 _ = yyc1 127032 if yyl1 == 0 { 127033 if yyv1 == nil { 127034 yyv1 = []*NodeEvent{} 127035 yyc1 = true 127036 } else if len(yyv1) != 0 { 127037 yyv1 = yyv1[:0] 127038 yyc1 = true 127039 } 127040 } else { 127041 yyhl1 := yyl1 > 0 127042 var yyrl1 int 127043 _ = yyrl1 127044 if yyhl1 { 127045 if yyl1 > cap(yyv1) { 127046 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127047 if yyrl1 <= cap(yyv1) { 127048 yyv1 = yyv1[:yyrl1] 127049 } else { 127050 yyv1 = make([]*NodeEvent, yyrl1) 127051 } 127052 yyc1 = true 127053 } else if yyl1 != len(yyv1) { 127054 yyv1 = yyv1[:yyl1] 127055 yyc1 = true 127056 } 127057 } 127058 var yyj1 int 127059 // var yydn1 bool 127060 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127061 if yyj1 == 0 && yyv1 == nil { 127062 if yyhl1 { 127063 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127064 } else { 127065 yyrl1 = 8 127066 } 127067 yyv1 = make([]*NodeEvent, yyrl1) 127068 yyc1 = true 127069 } 127070 yyh1.ElemContainerState(yyj1) 127071 127072 var yydb1 bool 127073 if yyj1 >= len(yyv1) { 127074 yyv1 = append(yyv1, nil) 127075 yyc1 = true 127076 127077 } 127078 if yydb1 { 127079 z.DecSwallow() 127080 } else { 127081 if r.TryDecodeAsNil() { 127082 yyv1[yyj1] = nil 127083 } else { 127084 if yyv1[yyj1] == nil { 127085 yyv1[yyj1] = new(NodeEvent) 127086 } 127087 yyv1[yyj1].CodecDecodeSelf(d) 127088 } 127089 127090 } 127091 127092 } 127093 if yyj1 < len(yyv1) { 127094 yyv1 = yyv1[:yyj1] 127095 yyc1 = true 127096 } else if yyj1 == 0 && yyv1 == nil { 127097 yyv1 = make([]*NodeEvent, 0) 127098 yyc1 = true 127099 } 127100 } 127101 yyh1.End() 127102 if yyc1 { 127103 *v = yyv1 127104 } 127105 } 127106 127107 func (x codecSelfer100) encMapstringPtrtoDriverInfo(v map[string]*DriverInfo, e *codec1978.Encoder) { 127108 var h codecSelfer100 127109 z, r := codec1978.GenHelperEncoder(e) 127110 _, _, _ = h, z, r 127111 r.WriteMapStart(len(v)) 127112 for yyk1, yyv1 := range v { 127113 r.WriteMapElemKey() 127114 if false { 127115 } else { 127116 if z.EncBasicHandle().StringToRaw { 127117 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127118 } else { 127119 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127120 } 127121 } 127122 r.WriteMapElemValue() 127123 if yyv1 == nil { 127124 r.EncodeNil() 127125 } else { 127126 yyv1.CodecEncodeSelf(e) 127127 } 127128 } 127129 r.WriteMapEnd() 127130 } 127131 127132 func (x codecSelfer100) decMapstringPtrtoDriverInfo(v *map[string]*DriverInfo, d *codec1978.Decoder) { 127133 var h codecSelfer100 127134 z, r := codec1978.GenHelperDecoder(d) 127135 _, _, _ = h, z, r 127136 127137 yyv1 := *v 127138 yyl1 := r.ReadMapStart() 127139 yybh1 := z.DecBasicHandle() 127140 if yyv1 == nil { 127141 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127142 yyv1 = make(map[string]*DriverInfo, yyrl1) 127143 *v = yyv1 127144 } 127145 var yymk1 string 127146 var yymv1 *DriverInfo 127147 var yymg1, yymdn1, yyms1, yymok1 bool 127148 if yybh1.MapValueReset { 127149 yymg1 = true 127150 } 127151 if yyl1 != 0 { 127152 yyhl1 := yyl1 > 0 127153 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127154 r.ReadMapElemKey() 127155 if r.TryDecodeAsNil() { 127156 yymk1 = "" 127157 } else { 127158 yymk1 = (string)(r.DecodeString()) 127159 } 127160 127161 yyms1 = true 127162 if yymg1 { 127163 yymv1, yymok1 = yyv1[yymk1] 127164 if yymok1 { 127165 yyms1 = false 127166 } 127167 } else { 127168 yymv1 = nil 127169 } 127170 r.ReadMapElemValue() 127171 yymdn1 = false 127172 if r.TryDecodeAsNil() { 127173 yymdn1 = true 127174 } else { 127175 if yymv1 == nil { 127176 yymv1 = new(DriverInfo) 127177 } 127178 yymv1.CodecDecodeSelf(d) 127179 } 127180 127181 if yymdn1 { 127182 if yybh1.DeleteOnNilMapValue { 127183 delete(yyv1, yymk1) 127184 } else { 127185 yyv1[yymk1] = nil 127186 } 127187 } else if yyms1 && yyv1 != nil { 127188 yyv1[yymk1] = yymv1 127189 } 127190 } 127191 } // else len==0: TODO: Should we clear map entries? 127192 r.ReadMapEnd() 127193 } 127194 127195 func (x codecSelfer100) encMapstringPtrtoClientHostVolumeConfig(v map[string]*ClientHostVolumeConfig, e *codec1978.Encoder) { 127196 var h codecSelfer100 127197 z, r := codec1978.GenHelperEncoder(e) 127198 _, _, _ = h, z, r 127199 r.WriteMapStart(len(v)) 127200 for yyk1, yyv1 := range v { 127201 r.WriteMapElemKey() 127202 if false { 127203 } else { 127204 if z.EncBasicHandle().StringToRaw { 127205 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127206 } else { 127207 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127208 } 127209 } 127210 r.WriteMapElemValue() 127211 if yyv1 == nil { 127212 r.EncodeNil() 127213 } else { 127214 yyv1.CodecEncodeSelf(e) 127215 } 127216 } 127217 r.WriteMapEnd() 127218 } 127219 127220 func (x codecSelfer100) decMapstringPtrtoClientHostVolumeConfig(v *map[string]*ClientHostVolumeConfig, d *codec1978.Decoder) { 127221 var h codecSelfer100 127222 z, r := codec1978.GenHelperDecoder(d) 127223 _, _, _ = h, z, r 127224 127225 yyv1 := *v 127226 yyl1 := r.ReadMapStart() 127227 yybh1 := z.DecBasicHandle() 127228 if yyv1 == nil { 127229 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127230 yyv1 = make(map[string]*ClientHostVolumeConfig, yyrl1) 127231 *v = yyv1 127232 } 127233 var yymk1 string 127234 var yymv1 *ClientHostVolumeConfig 127235 var yymg1, yymdn1, yyms1, yymok1 bool 127236 if yybh1.MapValueReset { 127237 yymg1 = true 127238 } 127239 if yyl1 != 0 { 127240 yyhl1 := yyl1 > 0 127241 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127242 r.ReadMapElemKey() 127243 if r.TryDecodeAsNil() { 127244 yymk1 = "" 127245 } else { 127246 yymk1 = (string)(r.DecodeString()) 127247 } 127248 127249 yyms1 = true 127250 if yymg1 { 127251 yymv1, yymok1 = yyv1[yymk1] 127252 if yymok1 { 127253 yyms1 = false 127254 } 127255 } else { 127256 yymv1 = nil 127257 } 127258 r.ReadMapElemValue() 127259 yymdn1 = false 127260 if r.TryDecodeAsNil() { 127261 yymdn1 = true 127262 } else { 127263 if yymv1 == nil { 127264 yymv1 = new(ClientHostVolumeConfig) 127265 } 127266 yymv1.CodecDecodeSelf(d) 127267 } 127268 127269 if yymdn1 { 127270 if yybh1.DeleteOnNilMapValue { 127271 delete(yyv1, yymk1) 127272 } else { 127273 yyv1[yymk1] = nil 127274 } 127275 } else if yyms1 && yyv1 != nil { 127276 yyv1[yymk1] = yymv1 127277 } 127278 } 127279 } // else len==0: TODO: Should we clear map entries? 127280 r.ReadMapEnd() 127281 } 127282 127283 func (x codecSelfer100) encResourceDevices(v ResourceDevices, e *codec1978.Encoder) { 127284 var h codecSelfer100 127285 z, r := codec1978.GenHelperEncoder(e) 127286 _, _, _ = h, z, r 127287 r.WriteArrayStart(len(v)) 127288 for _, yyv1 := range v { 127289 r.WriteArrayElem() 127290 if yyv1 == nil { 127291 r.EncodeNil() 127292 } else { 127293 yyv1.CodecEncodeSelf(e) 127294 } 127295 } 127296 r.WriteArrayEnd() 127297 } 127298 127299 func (x codecSelfer100) decResourceDevices(v *ResourceDevices, d *codec1978.Decoder) { 127300 var h codecSelfer100 127301 z, r := codec1978.GenHelperDecoder(d) 127302 _, _, _ = h, z, r 127303 127304 yyv1 := *v 127305 yyh1, yyl1 := z.DecSliceHelperStart() 127306 var yyc1 bool 127307 _ = yyc1 127308 if yyl1 == 0 { 127309 if yyv1 == nil { 127310 yyv1 = []*RequestedDevice{} 127311 yyc1 = true 127312 } else if len(yyv1) != 0 { 127313 yyv1 = yyv1[:0] 127314 yyc1 = true 127315 } 127316 } else { 127317 yyhl1 := yyl1 > 0 127318 var yyrl1 int 127319 _ = yyrl1 127320 if yyhl1 { 127321 if yyl1 > cap(yyv1) { 127322 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127323 if yyrl1 <= cap(yyv1) { 127324 yyv1 = yyv1[:yyrl1] 127325 } else { 127326 yyv1 = make([]*RequestedDevice, yyrl1) 127327 } 127328 yyc1 = true 127329 } else if yyl1 != len(yyv1) { 127330 yyv1 = yyv1[:yyl1] 127331 yyc1 = true 127332 } 127333 } 127334 var yyj1 int 127335 // var yydn1 bool 127336 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127337 if yyj1 == 0 && yyv1 == nil { 127338 if yyhl1 { 127339 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127340 } else { 127341 yyrl1 = 8 127342 } 127343 yyv1 = make([]*RequestedDevice, yyrl1) 127344 yyc1 = true 127345 } 127346 yyh1.ElemContainerState(yyj1) 127347 127348 var yydb1 bool 127349 if yyj1 >= len(yyv1) { 127350 yyv1 = append(yyv1, nil) 127351 yyc1 = true 127352 127353 } 127354 if yydb1 { 127355 z.DecSwallow() 127356 } else { 127357 if r.TryDecodeAsNil() { 127358 yyv1[yyj1] = nil 127359 } else { 127360 if yyv1[yyj1] == nil { 127361 yyv1[yyj1] = new(RequestedDevice) 127362 } 127363 yyv1[yyj1].CodecDecodeSelf(d) 127364 } 127365 127366 } 127367 127368 } 127369 if yyj1 < len(yyv1) { 127370 yyv1 = yyv1[:yyj1] 127371 yyc1 = true 127372 } else if yyj1 == 0 && yyv1 == nil { 127373 yyv1 = make([]*RequestedDevice, 0) 127374 yyc1 = true 127375 } 127376 } 127377 yyh1.End() 127378 if yyc1 { 127379 *v = yyv1 127380 } 127381 } 127382 127383 func (x codecSelfer100) encSlicePort(v []Port, e *codec1978.Encoder) { 127384 var h codecSelfer100 127385 z, r := codec1978.GenHelperEncoder(e) 127386 _, _, _ = h, z, r 127387 r.WriteArrayStart(len(v)) 127388 for _, yyv1 := range v { 127389 r.WriteArrayElem() 127390 yy2 := &yyv1 127391 yy2.CodecEncodeSelf(e) 127392 } 127393 r.WriteArrayEnd() 127394 } 127395 127396 func (x codecSelfer100) decSlicePort(v *[]Port, d *codec1978.Decoder) { 127397 var h codecSelfer100 127398 z, r := codec1978.GenHelperDecoder(d) 127399 _, _, _ = h, z, r 127400 127401 yyv1 := *v 127402 yyh1, yyl1 := z.DecSliceHelperStart() 127403 var yyc1 bool 127404 _ = yyc1 127405 if yyl1 == 0 { 127406 if yyv1 == nil { 127407 yyv1 = []Port{} 127408 yyc1 = true 127409 } else if len(yyv1) != 0 { 127410 yyv1 = yyv1[:0] 127411 yyc1 = true 127412 } 127413 } else { 127414 yyhl1 := yyl1 > 0 127415 var yyrl1 int 127416 _ = yyrl1 127417 if yyhl1 { 127418 if yyl1 > cap(yyv1) { 127419 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) 127420 if yyrl1 <= cap(yyv1) { 127421 yyv1 = yyv1[:yyrl1] 127422 } else { 127423 yyv1 = make([]Port, yyrl1) 127424 } 127425 yyc1 = true 127426 } else if yyl1 != len(yyv1) { 127427 yyv1 = yyv1[:yyl1] 127428 yyc1 = true 127429 } 127430 } 127431 var yyj1 int 127432 // var yydn1 bool 127433 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127434 if yyj1 == 0 && yyv1 == nil { 127435 if yyhl1 { 127436 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 32) 127437 } else { 127438 yyrl1 = 8 127439 } 127440 yyv1 = make([]Port, yyrl1) 127441 yyc1 = true 127442 } 127443 yyh1.ElemContainerState(yyj1) 127444 127445 var yydb1 bool 127446 if yyj1 >= len(yyv1) { 127447 yyv1 = append(yyv1, Port{}) 127448 yyc1 = true 127449 127450 } 127451 if yydb1 { 127452 z.DecSwallow() 127453 } else { 127454 if r.TryDecodeAsNil() { 127455 yyv1[yyj1] = Port{} 127456 } else { 127457 yyv1[yyj1].CodecDecodeSelf(d) 127458 } 127459 127460 } 127461 127462 } 127463 if yyj1 < len(yyv1) { 127464 yyv1 = yyv1[:yyj1] 127465 yyc1 = true 127466 } else if yyj1 == 0 && yyv1 == nil { 127467 yyv1 = make([]Port, 0) 127468 yyc1 = true 127469 } 127470 } 127471 yyh1.End() 127472 if yyc1 { 127473 *v = yyv1 127474 } 127475 } 127476 127477 func (x codecSelfer100) encNetworks(v Networks, e *codec1978.Encoder) { 127478 var h codecSelfer100 127479 z, r := codec1978.GenHelperEncoder(e) 127480 _, _, _ = h, z, r 127481 r.WriteArrayStart(len(v)) 127482 for _, yyv1 := range v { 127483 r.WriteArrayElem() 127484 if yyv1 == nil { 127485 r.EncodeNil() 127486 } else { 127487 yyv1.CodecEncodeSelf(e) 127488 } 127489 } 127490 r.WriteArrayEnd() 127491 } 127492 127493 func (x codecSelfer100) decNetworks(v *Networks, d *codec1978.Decoder) { 127494 var h codecSelfer100 127495 z, r := codec1978.GenHelperDecoder(d) 127496 _, _, _ = h, z, r 127497 127498 yyv1 := *v 127499 yyh1, yyl1 := z.DecSliceHelperStart() 127500 var yyc1 bool 127501 _ = yyc1 127502 if yyl1 == 0 { 127503 if yyv1 == nil { 127504 yyv1 = []*NetworkResource{} 127505 yyc1 = true 127506 } else if len(yyv1) != 0 { 127507 yyv1 = yyv1[:0] 127508 yyc1 = true 127509 } 127510 } else { 127511 yyhl1 := yyl1 > 0 127512 var yyrl1 int 127513 _ = yyrl1 127514 if yyhl1 { 127515 if yyl1 > cap(yyv1) { 127516 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127517 if yyrl1 <= cap(yyv1) { 127518 yyv1 = yyv1[:yyrl1] 127519 } else { 127520 yyv1 = make([]*NetworkResource, yyrl1) 127521 } 127522 yyc1 = true 127523 } else if yyl1 != len(yyv1) { 127524 yyv1 = yyv1[:yyl1] 127525 yyc1 = true 127526 } 127527 } 127528 var yyj1 int 127529 // var yydn1 bool 127530 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127531 if yyj1 == 0 && yyv1 == nil { 127532 if yyhl1 { 127533 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127534 } else { 127535 yyrl1 = 8 127536 } 127537 yyv1 = make([]*NetworkResource, yyrl1) 127538 yyc1 = true 127539 } 127540 yyh1.ElemContainerState(yyj1) 127541 127542 var yydb1 bool 127543 if yyj1 >= len(yyv1) { 127544 yyv1 = append(yyv1, nil) 127545 yyc1 = true 127546 127547 } 127548 if yydb1 { 127549 z.DecSwallow() 127550 } else { 127551 if r.TryDecodeAsNil() { 127552 yyv1[yyj1] = nil 127553 } else { 127554 if yyv1[yyj1] == nil { 127555 yyv1[yyj1] = new(NetworkResource) 127556 } 127557 yyv1[yyj1].CodecDecodeSelf(d) 127558 } 127559 127560 } 127561 127562 } 127563 if yyj1 < len(yyv1) { 127564 yyv1 = yyv1[:yyj1] 127565 yyc1 = true 127566 } else if yyj1 == 0 && yyv1 == nil { 127567 yyv1 = make([]*NetworkResource, 0) 127568 yyc1 = true 127569 } 127570 } 127571 yyh1.End() 127572 if yyc1 { 127573 *v = yyv1 127574 } 127575 } 127576 127577 func (x codecSelfer100) encSlicePtrtoNodeDeviceResource(v []*NodeDeviceResource, e *codec1978.Encoder) { 127578 var h codecSelfer100 127579 z, r := codec1978.GenHelperEncoder(e) 127580 _, _, _ = h, z, r 127581 r.WriteArrayStart(len(v)) 127582 for _, yyv1 := range v { 127583 r.WriteArrayElem() 127584 if yyv1 == nil { 127585 r.EncodeNil() 127586 } else { 127587 yyv1.CodecEncodeSelf(e) 127588 } 127589 } 127590 r.WriteArrayEnd() 127591 } 127592 127593 func (x codecSelfer100) decSlicePtrtoNodeDeviceResource(v *[]*NodeDeviceResource, d *codec1978.Decoder) { 127594 var h codecSelfer100 127595 z, r := codec1978.GenHelperDecoder(d) 127596 _, _, _ = h, z, r 127597 127598 yyv1 := *v 127599 yyh1, yyl1 := z.DecSliceHelperStart() 127600 var yyc1 bool 127601 _ = yyc1 127602 if yyl1 == 0 { 127603 if yyv1 == nil { 127604 yyv1 = []*NodeDeviceResource{} 127605 yyc1 = true 127606 } else if len(yyv1) != 0 { 127607 yyv1 = yyv1[:0] 127608 yyc1 = true 127609 } 127610 } else { 127611 yyhl1 := yyl1 > 0 127612 var yyrl1 int 127613 _ = yyrl1 127614 if yyhl1 { 127615 if yyl1 > cap(yyv1) { 127616 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127617 if yyrl1 <= cap(yyv1) { 127618 yyv1 = yyv1[:yyrl1] 127619 } else { 127620 yyv1 = make([]*NodeDeviceResource, yyrl1) 127621 } 127622 yyc1 = true 127623 } else if yyl1 != len(yyv1) { 127624 yyv1 = yyv1[:yyl1] 127625 yyc1 = true 127626 } 127627 } 127628 var yyj1 int 127629 // var yydn1 bool 127630 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127631 if yyj1 == 0 && yyv1 == nil { 127632 if yyhl1 { 127633 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127634 } else { 127635 yyrl1 = 8 127636 } 127637 yyv1 = make([]*NodeDeviceResource, yyrl1) 127638 yyc1 = true 127639 } 127640 yyh1.ElemContainerState(yyj1) 127641 127642 var yydb1 bool 127643 if yyj1 >= len(yyv1) { 127644 yyv1 = append(yyv1, nil) 127645 yyc1 = true 127646 127647 } 127648 if yydb1 { 127649 z.DecSwallow() 127650 } else { 127651 if r.TryDecodeAsNil() { 127652 yyv1[yyj1] = nil 127653 } else { 127654 if yyv1[yyj1] == nil { 127655 yyv1[yyj1] = new(NodeDeviceResource) 127656 } 127657 yyv1[yyj1].CodecDecodeSelf(d) 127658 } 127659 127660 } 127661 127662 } 127663 if yyj1 < len(yyv1) { 127664 yyv1 = yyv1[:yyj1] 127665 yyc1 = true 127666 } else if yyj1 == 0 && yyv1 == nil { 127667 yyv1 = make([]*NodeDeviceResource, 0) 127668 yyc1 = true 127669 } 127670 } 127671 yyh1.End() 127672 if yyc1 { 127673 *v = yyv1 127674 } 127675 } 127676 127677 func (x codecSelfer100) encSlicePtrtoNodeDevice(v []*NodeDevice, e *codec1978.Encoder) { 127678 var h codecSelfer100 127679 z, r := codec1978.GenHelperEncoder(e) 127680 _, _, _ = h, z, r 127681 r.WriteArrayStart(len(v)) 127682 for _, yyv1 := range v { 127683 r.WriteArrayElem() 127684 if yyv1 == nil { 127685 r.EncodeNil() 127686 } else { 127687 yyv1.CodecEncodeSelf(e) 127688 } 127689 } 127690 r.WriteArrayEnd() 127691 } 127692 127693 func (x codecSelfer100) decSlicePtrtoNodeDevice(v *[]*NodeDevice, d *codec1978.Decoder) { 127694 var h codecSelfer100 127695 z, r := codec1978.GenHelperDecoder(d) 127696 _, _, _ = h, z, r 127697 127698 yyv1 := *v 127699 yyh1, yyl1 := z.DecSliceHelperStart() 127700 var yyc1 bool 127701 _ = yyc1 127702 if yyl1 == 0 { 127703 if yyv1 == nil { 127704 yyv1 = []*NodeDevice{} 127705 yyc1 = true 127706 } else if len(yyv1) != 0 { 127707 yyv1 = yyv1[:0] 127708 yyc1 = true 127709 } 127710 } else { 127711 yyhl1 := yyl1 > 0 127712 var yyrl1 int 127713 _ = yyrl1 127714 if yyhl1 { 127715 if yyl1 > cap(yyv1) { 127716 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127717 if yyrl1 <= cap(yyv1) { 127718 yyv1 = yyv1[:yyrl1] 127719 } else { 127720 yyv1 = make([]*NodeDevice, yyrl1) 127721 } 127722 yyc1 = true 127723 } else if yyl1 != len(yyv1) { 127724 yyv1 = yyv1[:yyl1] 127725 yyc1 = true 127726 } 127727 } 127728 var yyj1 int 127729 // var yydn1 bool 127730 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 127731 if yyj1 == 0 && yyv1 == nil { 127732 if yyhl1 { 127733 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 127734 } else { 127735 yyrl1 = 8 127736 } 127737 yyv1 = make([]*NodeDevice, yyrl1) 127738 yyc1 = true 127739 } 127740 yyh1.ElemContainerState(yyj1) 127741 127742 var yydb1 bool 127743 if yyj1 >= len(yyv1) { 127744 yyv1 = append(yyv1, nil) 127745 yyc1 = true 127746 127747 } 127748 if yydb1 { 127749 z.DecSwallow() 127750 } else { 127751 if r.TryDecodeAsNil() { 127752 yyv1[yyj1] = nil 127753 } else { 127754 if yyv1[yyj1] == nil { 127755 yyv1[yyj1] = new(NodeDevice) 127756 } 127757 yyv1[yyj1].CodecDecodeSelf(d) 127758 } 127759 127760 } 127761 127762 } 127763 if yyj1 < len(yyv1) { 127764 yyv1 = yyv1[:yyj1] 127765 yyc1 = true 127766 } else if yyj1 == 0 && yyv1 == nil { 127767 yyv1 = make([]*NodeDevice, 0) 127768 yyc1 = true 127769 } 127770 } 127771 yyh1.End() 127772 if yyc1 { 127773 *v = yyv1 127774 } 127775 } 127776 127777 func (x codecSelfer100) encMapstringPtrtostructs_Attribute(v map[string]*pkg1_structs.Attribute, e *codec1978.Encoder) { 127778 var h codecSelfer100 127779 z, r := codec1978.GenHelperEncoder(e) 127780 _, _, _ = h, z, r 127781 r.WriteMapStart(len(v)) 127782 for yyk1, yyv1 := range v { 127783 r.WriteMapElemKey() 127784 if false { 127785 } else { 127786 if z.EncBasicHandle().StringToRaw { 127787 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127788 } else { 127789 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127790 } 127791 } 127792 r.WriteMapElemValue() 127793 if yyv1 == nil { 127794 r.EncodeNil() 127795 } else { 127796 if false { 127797 } else if yyxt3 := z.Extension(z.I2Rtid(yyv1)); yyxt3 != nil { 127798 z.EncExtension(yyv1, yyxt3) 127799 } else { 127800 z.EncFallback(yyv1) 127801 } 127802 } 127803 } 127804 r.WriteMapEnd() 127805 } 127806 127807 func (x codecSelfer100) decMapstringPtrtostructs_Attribute(v *map[string]*pkg1_structs.Attribute, d *codec1978.Decoder) { 127808 var h codecSelfer100 127809 z, r := codec1978.GenHelperDecoder(d) 127810 _, _, _ = h, z, r 127811 127812 yyv1 := *v 127813 yyl1 := r.ReadMapStart() 127814 yybh1 := z.DecBasicHandle() 127815 if yyv1 == nil { 127816 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127817 yyv1 = make(map[string]*pkg1_structs.Attribute, yyrl1) 127818 *v = yyv1 127819 } 127820 var yymk1 string 127821 var yymv1 *pkg1_structs.Attribute 127822 var yymg1, yymdn1, yyms1, yymok1 bool 127823 if yybh1.MapValueReset { 127824 yymg1 = true 127825 } 127826 if yyl1 != 0 { 127827 yyhl1 := yyl1 > 0 127828 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127829 r.ReadMapElemKey() 127830 if r.TryDecodeAsNil() { 127831 yymk1 = "" 127832 } else { 127833 yymk1 = (string)(r.DecodeString()) 127834 } 127835 127836 yyms1 = true 127837 if yymg1 { 127838 yymv1, yymok1 = yyv1[yymk1] 127839 if yymok1 { 127840 yyms1 = false 127841 } 127842 } else { 127843 yymv1 = nil 127844 } 127845 r.ReadMapElemValue() 127846 yymdn1 = false 127847 if r.TryDecodeAsNil() { 127848 yymdn1 = true 127849 } else { 127850 if yymv1 == nil { 127851 yymv1 = new(pkg1_structs.Attribute) 127852 } 127853 if false { 127854 } else if yyxt4 := z.Extension(z.I2Rtid(yymv1)); yyxt4 != nil { 127855 z.DecExtension(yymv1, yyxt4) 127856 } else { 127857 z.DecFallback(yymv1, false) 127858 } 127859 } 127860 127861 if yymdn1 { 127862 if yybh1.DeleteOnNilMapValue { 127863 delete(yyv1, yymk1) 127864 } else { 127865 yyv1[yymk1] = nil 127866 } 127867 } else if yyms1 && yyv1 != nil { 127868 yyv1[yymk1] = yymv1 127869 } 127870 } 127871 } // else len==0: TODO: Should we clear map entries? 127872 r.ReadMapEnd() 127873 } 127874 127875 func (x codecSelfer100) encMapstringPtrtoAllocatedTaskResources(v map[string]*AllocatedTaskResources, e *codec1978.Encoder) { 127876 var h codecSelfer100 127877 z, r := codec1978.GenHelperEncoder(e) 127878 _, _, _ = h, z, r 127879 r.WriteMapStart(len(v)) 127880 for yyk1, yyv1 := range v { 127881 r.WriteMapElemKey() 127882 if false { 127883 } else { 127884 if z.EncBasicHandle().StringToRaw { 127885 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127886 } else { 127887 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127888 } 127889 } 127890 r.WriteMapElemValue() 127891 if yyv1 == nil { 127892 r.EncodeNil() 127893 } else { 127894 yyv1.CodecEncodeSelf(e) 127895 } 127896 } 127897 r.WriteMapEnd() 127898 } 127899 127900 func (x codecSelfer100) decMapstringPtrtoAllocatedTaskResources(v *map[string]*AllocatedTaskResources, d *codec1978.Decoder) { 127901 var h codecSelfer100 127902 z, r := codec1978.GenHelperDecoder(d) 127903 _, _, _ = h, z, r 127904 127905 yyv1 := *v 127906 yyl1 := r.ReadMapStart() 127907 yybh1 := z.DecBasicHandle() 127908 if yyv1 == nil { 127909 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127910 yyv1 = make(map[string]*AllocatedTaskResources, yyrl1) 127911 *v = yyv1 127912 } 127913 var yymk1 string 127914 var yymv1 *AllocatedTaskResources 127915 var yymg1, yymdn1, yyms1, yymok1 bool 127916 if yybh1.MapValueReset { 127917 yymg1 = true 127918 } 127919 if yyl1 != 0 { 127920 yyhl1 := yyl1 > 0 127921 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 127922 r.ReadMapElemKey() 127923 if r.TryDecodeAsNil() { 127924 yymk1 = "" 127925 } else { 127926 yymk1 = (string)(r.DecodeString()) 127927 } 127928 127929 yyms1 = true 127930 if yymg1 { 127931 yymv1, yymok1 = yyv1[yymk1] 127932 if yymok1 { 127933 yyms1 = false 127934 } 127935 } else { 127936 yymv1 = nil 127937 } 127938 r.ReadMapElemValue() 127939 yymdn1 = false 127940 if r.TryDecodeAsNil() { 127941 yymdn1 = true 127942 } else { 127943 if yymv1 == nil { 127944 yymv1 = new(AllocatedTaskResources) 127945 } 127946 yymv1.CodecDecodeSelf(d) 127947 } 127948 127949 if yymdn1 { 127950 if yybh1.DeleteOnNilMapValue { 127951 delete(yyv1, yymk1) 127952 } else { 127953 yyv1[yymk1] = nil 127954 } 127955 } else if yyms1 && yyv1 != nil { 127956 yyv1[yymk1] = yymv1 127957 } 127958 } 127959 } // else len==0: TODO: Should we clear map entries? 127960 r.ReadMapEnd() 127961 } 127962 127963 func (x codecSelfer100) encMapstringPtrtoTaskLifecycleConfig(v map[string]*TaskLifecycleConfig, e *codec1978.Encoder) { 127964 var h codecSelfer100 127965 z, r := codec1978.GenHelperEncoder(e) 127966 _, _, _ = h, z, r 127967 r.WriteMapStart(len(v)) 127968 for yyk1, yyv1 := range v { 127969 r.WriteMapElemKey() 127970 if false { 127971 } else { 127972 if z.EncBasicHandle().StringToRaw { 127973 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 127974 } else { 127975 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 127976 } 127977 } 127978 r.WriteMapElemValue() 127979 if yyv1 == nil { 127980 r.EncodeNil() 127981 } else { 127982 yyv1.CodecEncodeSelf(e) 127983 } 127984 } 127985 r.WriteMapEnd() 127986 } 127987 127988 func (x codecSelfer100) decMapstringPtrtoTaskLifecycleConfig(v *map[string]*TaskLifecycleConfig, d *codec1978.Decoder) { 127989 var h codecSelfer100 127990 z, r := codec1978.GenHelperDecoder(d) 127991 _, _, _ = h, z, r 127992 127993 yyv1 := *v 127994 yyl1 := r.ReadMapStart() 127995 yybh1 := z.DecBasicHandle() 127996 if yyv1 == nil { 127997 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 127998 yyv1 = make(map[string]*TaskLifecycleConfig, yyrl1) 127999 *v = yyv1 128000 } 128001 var yymk1 string 128002 var yymv1 *TaskLifecycleConfig 128003 var yymg1, yymdn1, yyms1, yymok1 bool 128004 if yybh1.MapValueReset { 128005 yymg1 = true 128006 } 128007 if yyl1 != 0 { 128008 yyhl1 := yyl1 > 0 128009 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128010 r.ReadMapElemKey() 128011 if r.TryDecodeAsNil() { 128012 yymk1 = "" 128013 } else { 128014 yymk1 = (string)(r.DecodeString()) 128015 } 128016 128017 yyms1 = true 128018 if yymg1 { 128019 yymv1, yymok1 = yyv1[yymk1] 128020 if yymok1 { 128021 yyms1 = false 128022 } 128023 } else { 128024 yymv1 = nil 128025 } 128026 r.ReadMapElemValue() 128027 yymdn1 = false 128028 if r.TryDecodeAsNil() { 128029 yymdn1 = true 128030 } else { 128031 if yymv1 == nil { 128032 yymv1 = new(TaskLifecycleConfig) 128033 } 128034 yymv1.CodecDecodeSelf(d) 128035 } 128036 128037 if yymdn1 { 128038 if yybh1.DeleteOnNilMapValue { 128039 delete(yyv1, yymk1) 128040 } else { 128041 yyv1[yymk1] = nil 128042 } 128043 } else if yyms1 && yyv1 != nil { 128044 yyv1[yymk1] = yymv1 128045 } 128046 } 128047 } // else len==0: TODO: Should we clear map entries? 128048 r.ReadMapEnd() 128049 } 128050 128051 func (x codecSelfer100) encSlicePtrtoAllocatedDeviceResource(v []*AllocatedDeviceResource, e *codec1978.Encoder) { 128052 var h codecSelfer100 128053 z, r := codec1978.GenHelperEncoder(e) 128054 _, _, _ = h, z, r 128055 r.WriteArrayStart(len(v)) 128056 for _, yyv1 := range v { 128057 r.WriteArrayElem() 128058 if yyv1 == nil { 128059 r.EncodeNil() 128060 } else { 128061 yyv1.CodecEncodeSelf(e) 128062 } 128063 } 128064 r.WriteArrayEnd() 128065 } 128066 128067 func (x codecSelfer100) decSlicePtrtoAllocatedDeviceResource(v *[]*AllocatedDeviceResource, d *codec1978.Decoder) { 128068 var h codecSelfer100 128069 z, r := codec1978.GenHelperDecoder(d) 128070 _, _, _ = h, z, r 128071 128072 yyv1 := *v 128073 yyh1, yyl1 := z.DecSliceHelperStart() 128074 var yyc1 bool 128075 _ = yyc1 128076 if yyl1 == 0 { 128077 if yyv1 == nil { 128078 yyv1 = []*AllocatedDeviceResource{} 128079 yyc1 = true 128080 } else if len(yyv1) != 0 { 128081 yyv1 = yyv1[:0] 128082 yyc1 = true 128083 } 128084 } else { 128085 yyhl1 := yyl1 > 0 128086 var yyrl1 int 128087 _ = yyrl1 128088 if yyhl1 { 128089 if yyl1 > cap(yyv1) { 128090 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128091 if yyrl1 <= cap(yyv1) { 128092 yyv1 = yyv1[:yyrl1] 128093 } else { 128094 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 128095 } 128096 yyc1 = true 128097 } else if yyl1 != len(yyv1) { 128098 yyv1 = yyv1[:yyl1] 128099 yyc1 = true 128100 } 128101 } 128102 var yyj1 int 128103 // var yydn1 bool 128104 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128105 if yyj1 == 0 && yyv1 == nil { 128106 if yyhl1 { 128107 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128108 } else { 128109 yyrl1 = 8 128110 } 128111 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 128112 yyc1 = true 128113 } 128114 yyh1.ElemContainerState(yyj1) 128115 128116 var yydb1 bool 128117 if yyj1 >= len(yyv1) { 128118 yyv1 = append(yyv1, nil) 128119 yyc1 = true 128120 128121 } 128122 if yydb1 { 128123 z.DecSwallow() 128124 } else { 128125 if r.TryDecodeAsNil() { 128126 yyv1[yyj1] = nil 128127 } else { 128128 if yyv1[yyj1] == nil { 128129 yyv1[yyj1] = new(AllocatedDeviceResource) 128130 } 128131 yyv1[yyj1].CodecDecodeSelf(d) 128132 } 128133 128134 } 128135 128136 } 128137 if yyj1 < len(yyv1) { 128138 yyv1 = yyv1[:yyj1] 128139 yyc1 = true 128140 } else if yyj1 == 0 && yyv1 == nil { 128141 yyv1 = make([]*AllocatedDeviceResource, 0) 128142 yyc1 = true 128143 } 128144 } 128145 yyh1.End() 128146 if yyc1 { 128147 *v = yyv1 128148 } 128149 } 128150 128151 func (x codecSelfer100) encAllocatedDevices(v AllocatedDevices, e *codec1978.Encoder) { 128152 var h codecSelfer100 128153 z, r := codec1978.GenHelperEncoder(e) 128154 _, _, _ = h, z, r 128155 r.WriteArrayStart(len(v)) 128156 for _, yyv1 := range v { 128157 r.WriteArrayElem() 128158 if yyv1 == nil { 128159 r.EncodeNil() 128160 } else { 128161 yyv1.CodecEncodeSelf(e) 128162 } 128163 } 128164 r.WriteArrayEnd() 128165 } 128166 128167 func (x codecSelfer100) decAllocatedDevices(v *AllocatedDevices, d *codec1978.Decoder) { 128168 var h codecSelfer100 128169 z, r := codec1978.GenHelperDecoder(d) 128170 _, _, _ = h, z, r 128171 128172 yyv1 := *v 128173 yyh1, yyl1 := z.DecSliceHelperStart() 128174 var yyc1 bool 128175 _ = yyc1 128176 if yyl1 == 0 { 128177 if yyv1 == nil { 128178 yyv1 = []*AllocatedDeviceResource{} 128179 yyc1 = true 128180 } else if len(yyv1) != 0 { 128181 yyv1 = yyv1[:0] 128182 yyc1 = true 128183 } 128184 } else { 128185 yyhl1 := yyl1 > 0 128186 var yyrl1 int 128187 _ = yyrl1 128188 if yyhl1 { 128189 if yyl1 > cap(yyv1) { 128190 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128191 if yyrl1 <= cap(yyv1) { 128192 yyv1 = yyv1[:yyrl1] 128193 } else { 128194 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 128195 } 128196 yyc1 = true 128197 } else if yyl1 != len(yyv1) { 128198 yyv1 = yyv1[:yyl1] 128199 yyc1 = true 128200 } 128201 } 128202 var yyj1 int 128203 // var yydn1 bool 128204 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128205 if yyj1 == 0 && yyv1 == nil { 128206 if yyhl1 { 128207 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128208 } else { 128209 yyrl1 = 8 128210 } 128211 yyv1 = make([]*AllocatedDeviceResource, yyrl1) 128212 yyc1 = true 128213 } 128214 yyh1.ElemContainerState(yyj1) 128215 128216 var yydb1 bool 128217 if yyj1 >= len(yyv1) { 128218 yyv1 = append(yyv1, nil) 128219 yyc1 = true 128220 128221 } 128222 if yydb1 { 128223 z.DecSwallow() 128224 } else { 128225 if r.TryDecodeAsNil() { 128226 yyv1[yyj1] = nil 128227 } else { 128228 if yyv1[yyj1] == nil { 128229 yyv1[yyj1] = new(AllocatedDeviceResource) 128230 } 128231 yyv1[yyj1].CodecDecodeSelf(d) 128232 } 128233 128234 } 128235 128236 } 128237 if yyj1 < len(yyv1) { 128238 yyv1 = yyv1[:yyj1] 128239 yyc1 = true 128240 } else if yyj1 == 0 && yyv1 == nil { 128241 yyv1 = make([]*AllocatedDeviceResource, 0) 128242 yyc1 = true 128243 } 128244 } 128245 yyh1.End() 128246 if yyc1 { 128247 *v = yyv1 128248 } 128249 } 128250 128251 func (x codecSelfer100) encSlicePtrtoConstraint(v []*Constraint, e *codec1978.Encoder) { 128252 var h codecSelfer100 128253 z, r := codec1978.GenHelperEncoder(e) 128254 _, _, _ = h, z, r 128255 r.WriteArrayStart(len(v)) 128256 for _, yyv1 := range v { 128257 r.WriteArrayElem() 128258 if yyv1 == nil { 128259 r.EncodeNil() 128260 } else { 128261 yyv1.CodecEncodeSelf(e) 128262 } 128263 } 128264 r.WriteArrayEnd() 128265 } 128266 128267 func (x codecSelfer100) decSlicePtrtoConstraint(v *[]*Constraint, d *codec1978.Decoder) { 128268 var h codecSelfer100 128269 z, r := codec1978.GenHelperDecoder(d) 128270 _, _, _ = h, z, r 128271 128272 yyv1 := *v 128273 yyh1, yyl1 := z.DecSliceHelperStart() 128274 var yyc1 bool 128275 _ = yyc1 128276 if yyl1 == 0 { 128277 if yyv1 == nil { 128278 yyv1 = []*Constraint{} 128279 yyc1 = true 128280 } else if len(yyv1) != 0 { 128281 yyv1 = yyv1[:0] 128282 yyc1 = true 128283 } 128284 } else { 128285 yyhl1 := yyl1 > 0 128286 var yyrl1 int 128287 _ = yyrl1 128288 if yyhl1 { 128289 if yyl1 > cap(yyv1) { 128290 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128291 if yyrl1 <= cap(yyv1) { 128292 yyv1 = yyv1[:yyrl1] 128293 } else { 128294 yyv1 = make([]*Constraint, yyrl1) 128295 } 128296 yyc1 = true 128297 } else if yyl1 != len(yyv1) { 128298 yyv1 = yyv1[:yyl1] 128299 yyc1 = true 128300 } 128301 } 128302 var yyj1 int 128303 // var yydn1 bool 128304 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128305 if yyj1 == 0 && yyv1 == nil { 128306 if yyhl1 { 128307 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128308 } else { 128309 yyrl1 = 8 128310 } 128311 yyv1 = make([]*Constraint, yyrl1) 128312 yyc1 = true 128313 } 128314 yyh1.ElemContainerState(yyj1) 128315 128316 var yydb1 bool 128317 if yyj1 >= len(yyv1) { 128318 yyv1 = append(yyv1, nil) 128319 yyc1 = true 128320 128321 } 128322 if yydb1 { 128323 z.DecSwallow() 128324 } else { 128325 if r.TryDecodeAsNil() { 128326 yyv1[yyj1] = nil 128327 } else { 128328 if yyv1[yyj1] == nil { 128329 yyv1[yyj1] = new(Constraint) 128330 } 128331 yyv1[yyj1].CodecDecodeSelf(d) 128332 } 128333 128334 } 128335 128336 } 128337 if yyj1 < len(yyv1) { 128338 yyv1 = yyv1[:yyj1] 128339 yyc1 = true 128340 } else if yyj1 == 0 && yyv1 == nil { 128341 yyv1 = make([]*Constraint, 0) 128342 yyc1 = true 128343 } 128344 } 128345 yyh1.End() 128346 if yyc1 { 128347 *v = yyv1 128348 } 128349 } 128350 128351 func (x codecSelfer100) encSlicePtrtoAffinity(v []*Affinity, e *codec1978.Encoder) { 128352 var h codecSelfer100 128353 z, r := codec1978.GenHelperEncoder(e) 128354 _, _, _ = h, z, r 128355 r.WriteArrayStart(len(v)) 128356 for _, yyv1 := range v { 128357 r.WriteArrayElem() 128358 if yyv1 == nil { 128359 r.EncodeNil() 128360 } else { 128361 yyv1.CodecEncodeSelf(e) 128362 } 128363 } 128364 r.WriteArrayEnd() 128365 } 128366 128367 func (x codecSelfer100) decSlicePtrtoAffinity(v *[]*Affinity, d *codec1978.Decoder) { 128368 var h codecSelfer100 128369 z, r := codec1978.GenHelperDecoder(d) 128370 _, _, _ = h, z, r 128371 128372 yyv1 := *v 128373 yyh1, yyl1 := z.DecSliceHelperStart() 128374 var yyc1 bool 128375 _ = yyc1 128376 if yyl1 == 0 { 128377 if yyv1 == nil { 128378 yyv1 = []*Affinity{} 128379 yyc1 = true 128380 } else if len(yyv1) != 0 { 128381 yyv1 = yyv1[:0] 128382 yyc1 = true 128383 } 128384 } else { 128385 yyhl1 := yyl1 > 0 128386 var yyrl1 int 128387 _ = yyrl1 128388 if yyhl1 { 128389 if yyl1 > cap(yyv1) { 128390 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128391 if yyrl1 <= cap(yyv1) { 128392 yyv1 = yyv1[:yyrl1] 128393 } else { 128394 yyv1 = make([]*Affinity, yyrl1) 128395 } 128396 yyc1 = true 128397 } else if yyl1 != len(yyv1) { 128398 yyv1 = yyv1[:yyl1] 128399 yyc1 = true 128400 } 128401 } 128402 var yyj1 int 128403 // var yydn1 bool 128404 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128405 if yyj1 == 0 && yyv1 == nil { 128406 if yyhl1 { 128407 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128408 } else { 128409 yyrl1 = 8 128410 } 128411 yyv1 = make([]*Affinity, yyrl1) 128412 yyc1 = true 128413 } 128414 yyh1.ElemContainerState(yyj1) 128415 128416 var yydb1 bool 128417 if yyj1 >= len(yyv1) { 128418 yyv1 = append(yyv1, nil) 128419 yyc1 = true 128420 128421 } 128422 if yydb1 { 128423 z.DecSwallow() 128424 } else { 128425 if r.TryDecodeAsNil() { 128426 yyv1[yyj1] = nil 128427 } else { 128428 if yyv1[yyj1] == nil { 128429 yyv1[yyj1] = new(Affinity) 128430 } 128431 yyv1[yyj1].CodecDecodeSelf(d) 128432 } 128433 128434 } 128435 128436 } 128437 if yyj1 < len(yyv1) { 128438 yyv1 = yyv1[:yyj1] 128439 yyc1 = true 128440 } else if yyj1 == 0 && yyv1 == nil { 128441 yyv1 = make([]*Affinity, 0) 128442 yyc1 = true 128443 } 128444 } 128445 yyh1.End() 128446 if yyc1 { 128447 *v = yyv1 128448 } 128449 } 128450 128451 func (x codecSelfer100) encSlicePtrtoSpread(v []*Spread, e *codec1978.Encoder) { 128452 var h codecSelfer100 128453 z, r := codec1978.GenHelperEncoder(e) 128454 _, _, _ = h, z, r 128455 r.WriteArrayStart(len(v)) 128456 for _, yyv1 := range v { 128457 r.WriteArrayElem() 128458 if yyv1 == nil { 128459 r.EncodeNil() 128460 } else { 128461 yyv1.CodecEncodeSelf(e) 128462 } 128463 } 128464 r.WriteArrayEnd() 128465 } 128466 128467 func (x codecSelfer100) decSlicePtrtoSpread(v *[]*Spread, d *codec1978.Decoder) { 128468 var h codecSelfer100 128469 z, r := codec1978.GenHelperDecoder(d) 128470 _, _, _ = h, z, r 128471 128472 yyv1 := *v 128473 yyh1, yyl1 := z.DecSliceHelperStart() 128474 var yyc1 bool 128475 _ = yyc1 128476 if yyl1 == 0 { 128477 if yyv1 == nil { 128478 yyv1 = []*Spread{} 128479 yyc1 = true 128480 } else if len(yyv1) != 0 { 128481 yyv1 = yyv1[:0] 128482 yyc1 = true 128483 } 128484 } else { 128485 yyhl1 := yyl1 > 0 128486 var yyrl1 int 128487 _ = yyrl1 128488 if yyhl1 { 128489 if yyl1 > cap(yyv1) { 128490 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128491 if yyrl1 <= cap(yyv1) { 128492 yyv1 = yyv1[:yyrl1] 128493 } else { 128494 yyv1 = make([]*Spread, yyrl1) 128495 } 128496 yyc1 = true 128497 } else if yyl1 != len(yyv1) { 128498 yyv1 = yyv1[:yyl1] 128499 yyc1 = true 128500 } 128501 } 128502 var yyj1 int 128503 // var yydn1 bool 128504 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128505 if yyj1 == 0 && yyv1 == nil { 128506 if yyhl1 { 128507 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128508 } else { 128509 yyrl1 = 8 128510 } 128511 yyv1 = make([]*Spread, yyrl1) 128512 yyc1 = true 128513 } 128514 yyh1.ElemContainerState(yyj1) 128515 128516 var yydb1 bool 128517 if yyj1 >= len(yyv1) { 128518 yyv1 = append(yyv1, nil) 128519 yyc1 = true 128520 128521 } 128522 if yydb1 { 128523 z.DecSwallow() 128524 } else { 128525 if r.TryDecodeAsNil() { 128526 yyv1[yyj1] = nil 128527 } else { 128528 if yyv1[yyj1] == nil { 128529 yyv1[yyj1] = new(Spread) 128530 } 128531 yyv1[yyj1].CodecDecodeSelf(d) 128532 } 128533 128534 } 128535 128536 } 128537 if yyj1 < len(yyv1) { 128538 yyv1 = yyv1[:yyj1] 128539 yyc1 = true 128540 } else if yyj1 == 0 && yyv1 == nil { 128541 yyv1 = make([]*Spread, 0) 128542 yyc1 = true 128543 } 128544 } 128545 yyh1.End() 128546 if yyc1 { 128547 *v = yyv1 128548 } 128549 } 128550 128551 func (x codecSelfer100) encSlicePtrtoTaskGroup(v []*TaskGroup, e *codec1978.Encoder) { 128552 var h codecSelfer100 128553 z, r := codec1978.GenHelperEncoder(e) 128554 _, _, _ = h, z, r 128555 r.WriteArrayStart(len(v)) 128556 for _, yyv1 := range v { 128557 r.WriteArrayElem() 128558 if yyv1 == nil { 128559 r.EncodeNil() 128560 } else { 128561 yyv1.CodecEncodeSelf(e) 128562 } 128563 } 128564 r.WriteArrayEnd() 128565 } 128566 128567 func (x codecSelfer100) decSlicePtrtoTaskGroup(v *[]*TaskGroup, d *codec1978.Decoder) { 128568 var h codecSelfer100 128569 z, r := codec1978.GenHelperDecoder(d) 128570 _, _, _ = h, z, r 128571 128572 yyv1 := *v 128573 yyh1, yyl1 := z.DecSliceHelperStart() 128574 var yyc1 bool 128575 _ = yyc1 128576 if yyl1 == 0 { 128577 if yyv1 == nil { 128578 yyv1 = []*TaskGroup{} 128579 yyc1 = true 128580 } else if len(yyv1) != 0 { 128581 yyv1 = yyv1[:0] 128582 yyc1 = true 128583 } 128584 } else { 128585 yyhl1 := yyl1 > 0 128586 var yyrl1 int 128587 _ = yyrl1 128588 if yyhl1 { 128589 if yyl1 > cap(yyv1) { 128590 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128591 if yyrl1 <= cap(yyv1) { 128592 yyv1 = yyv1[:yyrl1] 128593 } else { 128594 yyv1 = make([]*TaskGroup, yyrl1) 128595 } 128596 yyc1 = true 128597 } else if yyl1 != len(yyv1) { 128598 yyv1 = yyv1[:yyl1] 128599 yyc1 = true 128600 } 128601 } 128602 var yyj1 int 128603 // var yydn1 bool 128604 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128605 if yyj1 == 0 && yyv1 == nil { 128606 if yyhl1 { 128607 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128608 } else { 128609 yyrl1 = 8 128610 } 128611 yyv1 = make([]*TaskGroup, yyrl1) 128612 yyc1 = true 128613 } 128614 yyh1.ElemContainerState(yyj1) 128615 128616 var yydb1 bool 128617 if yyj1 >= len(yyv1) { 128618 yyv1 = append(yyv1, nil) 128619 yyc1 = true 128620 128621 } 128622 if yydb1 { 128623 z.DecSwallow() 128624 } else { 128625 if r.TryDecodeAsNil() { 128626 yyv1[yyj1] = nil 128627 } else { 128628 if yyv1[yyj1] == nil { 128629 yyv1[yyj1] = new(TaskGroup) 128630 } 128631 yyv1[yyj1].CodecDecodeSelf(d) 128632 } 128633 128634 } 128635 128636 } 128637 if yyj1 < len(yyv1) { 128638 yyv1 = yyv1[:yyj1] 128639 yyc1 = true 128640 } else if yyj1 == 0 && yyv1 == nil { 128641 yyv1 = make([]*TaskGroup, 0) 128642 yyc1 = true 128643 } 128644 } 128645 yyh1.End() 128646 if yyc1 { 128647 *v = yyv1 128648 } 128649 } 128650 128651 func (x codecSelfer100) encMapstringTaskGroupSummary(v map[string]TaskGroupSummary, e *codec1978.Encoder) { 128652 var h codecSelfer100 128653 z, r := codec1978.GenHelperEncoder(e) 128654 _, _, _ = h, z, r 128655 r.WriteMapStart(len(v)) 128656 for yyk1, yyv1 := range v { 128657 r.WriteMapElemKey() 128658 if false { 128659 } else { 128660 if z.EncBasicHandle().StringToRaw { 128661 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 128662 } else { 128663 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 128664 } 128665 } 128666 r.WriteMapElemValue() 128667 yy3 := &yyv1 128668 yy3.CodecEncodeSelf(e) 128669 } 128670 r.WriteMapEnd() 128671 } 128672 128673 func (x codecSelfer100) decMapstringTaskGroupSummary(v *map[string]TaskGroupSummary, d *codec1978.Decoder) { 128674 var h codecSelfer100 128675 z, r := codec1978.GenHelperDecoder(d) 128676 _, _, _ = h, z, r 128677 128678 yyv1 := *v 128679 yyl1 := r.ReadMapStart() 128680 yybh1 := z.DecBasicHandle() 128681 if yyv1 == nil { 128682 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 64) 128683 yyv1 = make(map[string]TaskGroupSummary, yyrl1) 128684 *v = yyv1 128685 } 128686 var yymk1 string 128687 var yymv1 TaskGroupSummary 128688 var yymg1, yymdn1 bool 128689 if yybh1.MapValueReset { 128690 yymg1 = true 128691 } 128692 if yyl1 != 0 { 128693 yyhl1 := yyl1 > 0 128694 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128695 r.ReadMapElemKey() 128696 if r.TryDecodeAsNil() { 128697 yymk1 = "" 128698 } else { 128699 yymk1 = (string)(r.DecodeString()) 128700 } 128701 128702 if yymg1 { 128703 yymv1 = yyv1[yymk1] 128704 } else { 128705 yymv1 = TaskGroupSummary{} 128706 } 128707 r.ReadMapElemValue() 128708 yymdn1 = false 128709 if r.TryDecodeAsNil() { 128710 yymdn1 = true 128711 } else { 128712 yymv1.CodecDecodeSelf(d) 128713 } 128714 128715 if yymdn1 { 128716 if yybh1.DeleteOnNilMapValue { 128717 delete(yyv1, yymk1) 128718 } else { 128719 yyv1[yymk1] = TaskGroupSummary{} 128720 } 128721 } else if yyv1 != nil { 128722 yyv1[yymk1] = yymv1 128723 } 128724 } 128725 } // else len==0: TODO: Should we clear map entries? 128726 r.ReadMapEnd() 128727 } 128728 128729 func (x codecSelfer100) encMapstringSlicePtrtoScalingEvent(v map[string][]*ScalingEvent, e *codec1978.Encoder) { 128730 var h codecSelfer100 128731 z, r := codec1978.GenHelperEncoder(e) 128732 _, _, _ = h, z, r 128733 r.WriteMapStart(len(v)) 128734 for yyk1, yyv1 := range v { 128735 r.WriteMapElemKey() 128736 if false { 128737 } else { 128738 if z.EncBasicHandle().StringToRaw { 128739 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 128740 } else { 128741 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 128742 } 128743 } 128744 r.WriteMapElemValue() 128745 if yyv1 == nil { 128746 r.EncodeNil() 128747 } else { 128748 if false { 128749 } else { 128750 h.encSlicePtrtoScalingEvent(([]*ScalingEvent)(yyv1), e) 128751 } 128752 } 128753 } 128754 r.WriteMapEnd() 128755 } 128756 128757 func (x codecSelfer100) decMapstringSlicePtrtoScalingEvent(v *map[string][]*ScalingEvent, d *codec1978.Decoder) { 128758 var h codecSelfer100 128759 z, r := codec1978.GenHelperDecoder(d) 128760 _, _, _ = h, z, r 128761 128762 yyv1 := *v 128763 yyl1 := r.ReadMapStart() 128764 yybh1 := z.DecBasicHandle() 128765 if yyv1 == nil { 128766 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 128767 yyv1 = make(map[string][]*ScalingEvent, yyrl1) 128768 *v = yyv1 128769 } 128770 var yymk1 string 128771 var yymv1 []*ScalingEvent 128772 var yymg1, yymdn1 bool 128773 if yybh1.MapValueReset { 128774 yymg1 = true 128775 } 128776 if yyl1 != 0 { 128777 yyhl1 := yyl1 > 0 128778 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 128779 r.ReadMapElemKey() 128780 if r.TryDecodeAsNil() { 128781 yymk1 = "" 128782 } else { 128783 yymk1 = (string)(r.DecodeString()) 128784 } 128785 128786 if yymg1 { 128787 yymv1 = yyv1[yymk1] 128788 } else { 128789 yymv1 = nil 128790 } 128791 r.ReadMapElemValue() 128792 yymdn1 = false 128793 if r.TryDecodeAsNil() { 128794 yymdn1 = true 128795 } else { 128796 if false { 128797 } else { 128798 h.decSlicePtrtoScalingEvent((*[]*ScalingEvent)(&yymv1), d) 128799 } 128800 } 128801 128802 if yymdn1 { 128803 if yybh1.DeleteOnNilMapValue { 128804 delete(yyv1, yymk1) 128805 } else { 128806 yyv1[yymk1] = nil 128807 } 128808 } else if yyv1 != nil { 128809 yyv1[yymk1] = yymv1 128810 } 128811 } 128812 } // else len==0: TODO: Should we clear map entries? 128813 r.ReadMapEnd() 128814 } 128815 128816 func (x codecSelfer100) encSlicePtrtoTask(v []*Task, e *codec1978.Encoder) { 128817 var h codecSelfer100 128818 z, r := codec1978.GenHelperEncoder(e) 128819 _, _, _ = h, z, r 128820 r.WriteArrayStart(len(v)) 128821 for _, yyv1 := range v { 128822 r.WriteArrayElem() 128823 if yyv1 == nil { 128824 r.EncodeNil() 128825 } else { 128826 yyv1.CodecEncodeSelf(e) 128827 } 128828 } 128829 r.WriteArrayEnd() 128830 } 128831 128832 func (x codecSelfer100) decSlicePtrtoTask(v *[]*Task, d *codec1978.Decoder) { 128833 var h codecSelfer100 128834 z, r := codec1978.GenHelperDecoder(d) 128835 _, _, _ = h, z, r 128836 128837 yyv1 := *v 128838 yyh1, yyl1 := z.DecSliceHelperStart() 128839 var yyc1 bool 128840 _ = yyc1 128841 if yyl1 == 0 { 128842 if yyv1 == nil { 128843 yyv1 = []*Task{} 128844 yyc1 = true 128845 } else if len(yyv1) != 0 { 128846 yyv1 = yyv1[:0] 128847 yyc1 = true 128848 } 128849 } else { 128850 yyhl1 := yyl1 > 0 128851 var yyrl1 int 128852 _ = yyrl1 128853 if yyhl1 { 128854 if yyl1 > cap(yyv1) { 128855 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128856 if yyrl1 <= cap(yyv1) { 128857 yyv1 = yyv1[:yyrl1] 128858 } else { 128859 yyv1 = make([]*Task, yyrl1) 128860 } 128861 yyc1 = true 128862 } else if yyl1 != len(yyv1) { 128863 yyv1 = yyv1[:yyl1] 128864 yyc1 = true 128865 } 128866 } 128867 var yyj1 int 128868 // var yydn1 bool 128869 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128870 if yyj1 == 0 && yyv1 == nil { 128871 if yyhl1 { 128872 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128873 } else { 128874 yyrl1 = 8 128875 } 128876 yyv1 = make([]*Task, yyrl1) 128877 yyc1 = true 128878 } 128879 yyh1.ElemContainerState(yyj1) 128880 128881 var yydb1 bool 128882 if yyj1 >= len(yyv1) { 128883 yyv1 = append(yyv1, nil) 128884 yyc1 = true 128885 128886 } 128887 if yydb1 { 128888 z.DecSwallow() 128889 } else { 128890 if r.TryDecodeAsNil() { 128891 yyv1[yyj1] = nil 128892 } else { 128893 if yyv1[yyj1] == nil { 128894 yyv1[yyj1] = new(Task) 128895 } 128896 yyv1[yyj1].CodecDecodeSelf(d) 128897 } 128898 128899 } 128900 128901 } 128902 if yyj1 < len(yyv1) { 128903 yyv1 = yyv1[:yyj1] 128904 yyc1 = true 128905 } else if yyj1 == 0 && yyv1 == nil { 128906 yyv1 = make([]*Task, 0) 128907 yyc1 = true 128908 } 128909 } 128910 yyh1.End() 128911 if yyc1 { 128912 *v = yyv1 128913 } 128914 } 128915 128916 func (x codecSelfer100) encSlicePtrtoService(v []*Service, e *codec1978.Encoder) { 128917 var h codecSelfer100 128918 z, r := codec1978.GenHelperEncoder(e) 128919 _, _, _ = h, z, r 128920 r.WriteArrayStart(len(v)) 128921 for _, yyv1 := range v { 128922 r.WriteArrayElem() 128923 if yyv1 == nil { 128924 r.EncodeNil() 128925 } else { 128926 yyv1.CodecEncodeSelf(e) 128927 } 128928 } 128929 r.WriteArrayEnd() 128930 } 128931 128932 func (x codecSelfer100) decSlicePtrtoService(v *[]*Service, d *codec1978.Decoder) { 128933 var h codecSelfer100 128934 z, r := codec1978.GenHelperDecoder(d) 128935 _, _, _ = h, z, r 128936 128937 yyv1 := *v 128938 yyh1, yyl1 := z.DecSliceHelperStart() 128939 var yyc1 bool 128940 _ = yyc1 128941 if yyl1 == 0 { 128942 if yyv1 == nil { 128943 yyv1 = []*Service{} 128944 yyc1 = true 128945 } else if len(yyv1) != 0 { 128946 yyv1 = yyv1[:0] 128947 yyc1 = true 128948 } 128949 } else { 128950 yyhl1 := yyl1 > 0 128951 var yyrl1 int 128952 _ = yyrl1 128953 if yyhl1 { 128954 if yyl1 > cap(yyv1) { 128955 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128956 if yyrl1 <= cap(yyv1) { 128957 yyv1 = yyv1[:yyrl1] 128958 } else { 128959 yyv1 = make([]*Service, yyrl1) 128960 } 128961 yyc1 = true 128962 } else if yyl1 != len(yyv1) { 128963 yyv1 = yyv1[:yyl1] 128964 yyc1 = true 128965 } 128966 } 128967 var yyj1 int 128968 // var yydn1 bool 128969 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 128970 if yyj1 == 0 && yyv1 == nil { 128971 if yyhl1 { 128972 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 128973 } else { 128974 yyrl1 = 8 128975 } 128976 yyv1 = make([]*Service, yyrl1) 128977 yyc1 = true 128978 } 128979 yyh1.ElemContainerState(yyj1) 128980 128981 var yydb1 bool 128982 if yyj1 >= len(yyv1) { 128983 yyv1 = append(yyv1, nil) 128984 yyc1 = true 128985 128986 } 128987 if yydb1 { 128988 z.DecSwallow() 128989 } else { 128990 if r.TryDecodeAsNil() { 128991 yyv1[yyj1] = nil 128992 } else { 128993 if yyv1[yyj1] == nil { 128994 yyv1[yyj1] = new(Service) 128995 } 128996 yyv1[yyj1].CodecDecodeSelf(d) 128997 } 128998 128999 } 129000 129001 } 129002 if yyj1 < len(yyv1) { 129003 yyv1 = yyv1[:yyj1] 129004 yyc1 = true 129005 } else if yyj1 == 0 && yyv1 == nil { 129006 yyv1 = make([]*Service, 0) 129007 yyc1 = true 129008 } 129009 } 129010 yyh1.End() 129011 if yyc1 { 129012 *v = yyv1 129013 } 129014 } 129015 129016 func (x codecSelfer100) encMapstringPtrtoVolumeRequest(v map[string]*VolumeRequest, e *codec1978.Encoder) { 129017 var h codecSelfer100 129018 z, r := codec1978.GenHelperEncoder(e) 129019 _, _, _ = h, z, r 129020 r.WriteMapStart(len(v)) 129021 for yyk1, yyv1 := range v { 129022 r.WriteMapElemKey() 129023 if false { 129024 } else { 129025 if z.EncBasicHandle().StringToRaw { 129026 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 129027 } else { 129028 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 129029 } 129030 } 129031 r.WriteMapElemValue() 129032 if yyv1 == nil { 129033 r.EncodeNil() 129034 } else { 129035 yyv1.CodecEncodeSelf(e) 129036 } 129037 } 129038 r.WriteMapEnd() 129039 } 129040 129041 func (x codecSelfer100) decMapstringPtrtoVolumeRequest(v *map[string]*VolumeRequest, d *codec1978.Decoder) { 129042 var h codecSelfer100 129043 z, r := codec1978.GenHelperDecoder(d) 129044 _, _, _ = h, z, r 129045 129046 yyv1 := *v 129047 yyl1 := r.ReadMapStart() 129048 yybh1 := z.DecBasicHandle() 129049 if yyv1 == nil { 129050 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 129051 yyv1 = make(map[string]*VolumeRequest, yyrl1) 129052 *v = yyv1 129053 } 129054 var yymk1 string 129055 var yymv1 *VolumeRequest 129056 var yymg1, yymdn1, yyms1, yymok1 bool 129057 if yybh1.MapValueReset { 129058 yymg1 = true 129059 } 129060 if yyl1 != 0 { 129061 yyhl1 := yyl1 > 0 129062 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 129063 r.ReadMapElemKey() 129064 if r.TryDecodeAsNil() { 129065 yymk1 = "" 129066 } else { 129067 yymk1 = (string)(r.DecodeString()) 129068 } 129069 129070 yyms1 = true 129071 if yymg1 { 129072 yymv1, yymok1 = yyv1[yymk1] 129073 if yymok1 { 129074 yyms1 = false 129075 } 129076 } else { 129077 yymv1 = nil 129078 } 129079 r.ReadMapElemValue() 129080 yymdn1 = false 129081 if r.TryDecodeAsNil() { 129082 yymdn1 = true 129083 } else { 129084 if yymv1 == nil { 129085 yymv1 = new(VolumeRequest) 129086 } 129087 yymv1.CodecDecodeSelf(d) 129088 } 129089 129090 if yymdn1 { 129091 if yybh1.DeleteOnNilMapValue { 129092 delete(yyv1, yymk1) 129093 } else { 129094 yyv1[yymk1] = nil 129095 } 129096 } else if yyms1 && yyv1 != nil { 129097 yyv1[yymk1] = yymv1 129098 } 129099 } 129100 } // else len==0: TODO: Should we clear map entries? 129101 r.ReadMapEnd() 129102 } 129103 129104 func (x codecSelfer100) encSlicePtrtoTemplate(v []*Template, e *codec1978.Encoder) { 129105 var h codecSelfer100 129106 z, r := codec1978.GenHelperEncoder(e) 129107 _, _, _ = h, z, r 129108 r.WriteArrayStart(len(v)) 129109 for _, yyv1 := range v { 129110 r.WriteArrayElem() 129111 if yyv1 == nil { 129112 r.EncodeNil() 129113 } else { 129114 yyv1.CodecEncodeSelf(e) 129115 } 129116 } 129117 r.WriteArrayEnd() 129118 } 129119 129120 func (x codecSelfer100) decSlicePtrtoTemplate(v *[]*Template, d *codec1978.Decoder) { 129121 var h codecSelfer100 129122 z, r := codec1978.GenHelperDecoder(d) 129123 _, _, _ = h, z, r 129124 129125 yyv1 := *v 129126 yyh1, yyl1 := z.DecSliceHelperStart() 129127 var yyc1 bool 129128 _ = yyc1 129129 if yyl1 == 0 { 129130 if yyv1 == nil { 129131 yyv1 = []*Template{} 129132 yyc1 = true 129133 } else if len(yyv1) != 0 { 129134 yyv1 = yyv1[:0] 129135 yyc1 = true 129136 } 129137 } else { 129138 yyhl1 := yyl1 > 0 129139 var yyrl1 int 129140 _ = yyrl1 129141 if yyhl1 { 129142 if yyl1 > cap(yyv1) { 129143 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129144 if yyrl1 <= cap(yyv1) { 129145 yyv1 = yyv1[:yyrl1] 129146 } else { 129147 yyv1 = make([]*Template, yyrl1) 129148 } 129149 yyc1 = true 129150 } else if yyl1 != len(yyv1) { 129151 yyv1 = yyv1[:yyl1] 129152 yyc1 = true 129153 } 129154 } 129155 var yyj1 int 129156 // var yydn1 bool 129157 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129158 if yyj1 == 0 && yyv1 == nil { 129159 if yyhl1 { 129160 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129161 } else { 129162 yyrl1 = 8 129163 } 129164 yyv1 = make([]*Template, yyrl1) 129165 yyc1 = true 129166 } 129167 yyh1.ElemContainerState(yyj1) 129168 129169 var yydb1 bool 129170 if yyj1 >= len(yyv1) { 129171 yyv1 = append(yyv1, nil) 129172 yyc1 = true 129173 129174 } 129175 if yydb1 { 129176 z.DecSwallow() 129177 } else { 129178 if r.TryDecodeAsNil() { 129179 yyv1[yyj1] = nil 129180 } else { 129181 if yyv1[yyj1] == nil { 129182 yyv1[yyj1] = new(Template) 129183 } 129184 yyv1[yyj1].CodecDecodeSelf(d) 129185 } 129186 129187 } 129188 129189 } 129190 if yyj1 < len(yyv1) { 129191 yyv1 = yyv1[:yyj1] 129192 yyc1 = true 129193 } else if yyj1 == 0 && yyv1 == nil { 129194 yyv1 = make([]*Template, 0) 129195 yyc1 = true 129196 } 129197 } 129198 yyh1.End() 129199 if yyc1 { 129200 *v = yyv1 129201 } 129202 } 129203 129204 func (x codecSelfer100) encSlicePtrtoTaskArtifact(v []*TaskArtifact, e *codec1978.Encoder) { 129205 var h codecSelfer100 129206 z, r := codec1978.GenHelperEncoder(e) 129207 _, _, _ = h, z, r 129208 r.WriteArrayStart(len(v)) 129209 for _, yyv1 := range v { 129210 r.WriteArrayElem() 129211 if yyv1 == nil { 129212 r.EncodeNil() 129213 } else { 129214 yyv1.CodecEncodeSelf(e) 129215 } 129216 } 129217 r.WriteArrayEnd() 129218 } 129219 129220 func (x codecSelfer100) decSlicePtrtoTaskArtifact(v *[]*TaskArtifact, d *codec1978.Decoder) { 129221 var h codecSelfer100 129222 z, r := codec1978.GenHelperDecoder(d) 129223 _, _, _ = h, z, r 129224 129225 yyv1 := *v 129226 yyh1, yyl1 := z.DecSliceHelperStart() 129227 var yyc1 bool 129228 _ = yyc1 129229 if yyl1 == 0 { 129230 if yyv1 == nil { 129231 yyv1 = []*TaskArtifact{} 129232 yyc1 = true 129233 } else if len(yyv1) != 0 { 129234 yyv1 = yyv1[:0] 129235 yyc1 = true 129236 } 129237 } else { 129238 yyhl1 := yyl1 > 0 129239 var yyrl1 int 129240 _ = yyrl1 129241 if yyhl1 { 129242 if yyl1 > cap(yyv1) { 129243 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129244 if yyrl1 <= cap(yyv1) { 129245 yyv1 = yyv1[:yyrl1] 129246 } else { 129247 yyv1 = make([]*TaskArtifact, yyrl1) 129248 } 129249 yyc1 = true 129250 } else if yyl1 != len(yyv1) { 129251 yyv1 = yyv1[:yyl1] 129252 yyc1 = true 129253 } 129254 } 129255 var yyj1 int 129256 // var yydn1 bool 129257 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129258 if yyj1 == 0 && yyv1 == nil { 129259 if yyhl1 { 129260 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129261 } else { 129262 yyrl1 = 8 129263 } 129264 yyv1 = make([]*TaskArtifact, yyrl1) 129265 yyc1 = true 129266 } 129267 yyh1.ElemContainerState(yyj1) 129268 129269 var yydb1 bool 129270 if yyj1 >= len(yyv1) { 129271 yyv1 = append(yyv1, nil) 129272 yyc1 = true 129273 129274 } 129275 if yydb1 { 129276 z.DecSwallow() 129277 } else { 129278 if r.TryDecodeAsNil() { 129279 yyv1[yyj1] = nil 129280 } else { 129281 if yyv1[yyj1] == nil { 129282 yyv1[yyj1] = new(TaskArtifact) 129283 } 129284 yyv1[yyj1].CodecDecodeSelf(d) 129285 } 129286 129287 } 129288 129289 } 129290 if yyj1 < len(yyv1) { 129291 yyv1 = yyv1[:yyj1] 129292 yyc1 = true 129293 } else if yyj1 == 0 && yyv1 == nil { 129294 yyv1 = make([]*TaskArtifact, 0) 129295 yyc1 = true 129296 } 129297 } 129298 yyh1.End() 129299 if yyc1 { 129300 *v = yyv1 129301 } 129302 } 129303 129304 func (x codecSelfer100) encSlicePtrtoVolumeMount(v []*VolumeMount, e *codec1978.Encoder) { 129305 var h codecSelfer100 129306 z, r := codec1978.GenHelperEncoder(e) 129307 _, _, _ = h, z, r 129308 r.WriteArrayStart(len(v)) 129309 for _, yyv1 := range v { 129310 r.WriteArrayElem() 129311 if yyv1 == nil { 129312 r.EncodeNil() 129313 } else { 129314 yyv1.CodecEncodeSelf(e) 129315 } 129316 } 129317 r.WriteArrayEnd() 129318 } 129319 129320 func (x codecSelfer100) decSlicePtrtoVolumeMount(v *[]*VolumeMount, d *codec1978.Decoder) { 129321 var h codecSelfer100 129322 z, r := codec1978.GenHelperDecoder(d) 129323 _, _, _ = h, z, r 129324 129325 yyv1 := *v 129326 yyh1, yyl1 := z.DecSliceHelperStart() 129327 var yyc1 bool 129328 _ = yyc1 129329 if yyl1 == 0 { 129330 if yyv1 == nil { 129331 yyv1 = []*VolumeMount{} 129332 yyc1 = true 129333 } else if len(yyv1) != 0 { 129334 yyv1 = yyv1[:0] 129335 yyc1 = true 129336 } 129337 } else { 129338 yyhl1 := yyl1 > 0 129339 var yyrl1 int 129340 _ = yyrl1 129341 if yyhl1 { 129342 if yyl1 > cap(yyv1) { 129343 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129344 if yyrl1 <= cap(yyv1) { 129345 yyv1 = yyv1[:yyrl1] 129346 } else { 129347 yyv1 = make([]*VolumeMount, yyrl1) 129348 } 129349 yyc1 = true 129350 } else if yyl1 != len(yyv1) { 129351 yyv1 = yyv1[:yyl1] 129352 yyc1 = true 129353 } 129354 } 129355 var yyj1 int 129356 // var yydn1 bool 129357 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129358 if yyj1 == 0 && yyv1 == nil { 129359 if yyhl1 { 129360 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129361 } else { 129362 yyrl1 = 8 129363 } 129364 yyv1 = make([]*VolumeMount, yyrl1) 129365 yyc1 = true 129366 } 129367 yyh1.ElemContainerState(yyj1) 129368 129369 var yydb1 bool 129370 if yyj1 >= len(yyv1) { 129371 yyv1 = append(yyv1, nil) 129372 yyc1 = true 129373 129374 } 129375 if yydb1 { 129376 z.DecSwallow() 129377 } else { 129378 if r.TryDecodeAsNil() { 129379 yyv1[yyj1] = nil 129380 } else { 129381 if yyv1[yyj1] == nil { 129382 yyv1[yyj1] = new(VolumeMount) 129383 } 129384 yyv1[yyj1].CodecDecodeSelf(d) 129385 } 129386 129387 } 129388 129389 } 129390 if yyj1 < len(yyv1) { 129391 yyv1 = yyv1[:yyj1] 129392 yyc1 = true 129393 } else if yyj1 == 0 && yyv1 == nil { 129394 yyv1 = make([]*VolumeMount, 0) 129395 yyc1 = true 129396 } 129397 } 129398 yyh1.End() 129399 if yyc1 { 129400 *v = yyv1 129401 } 129402 } 129403 129404 func (x codecSelfer100) encSlicePtrtoTaskEvent(v []*TaskEvent, e *codec1978.Encoder) { 129405 var h codecSelfer100 129406 z, r := codec1978.GenHelperEncoder(e) 129407 _, _, _ = h, z, r 129408 r.WriteArrayStart(len(v)) 129409 for _, yyv1 := range v { 129410 r.WriteArrayElem() 129411 if yyv1 == nil { 129412 r.EncodeNil() 129413 } else { 129414 yyv1.CodecEncodeSelf(e) 129415 } 129416 } 129417 r.WriteArrayEnd() 129418 } 129419 129420 func (x codecSelfer100) decSlicePtrtoTaskEvent(v *[]*TaskEvent, d *codec1978.Decoder) { 129421 var h codecSelfer100 129422 z, r := codec1978.GenHelperDecoder(d) 129423 _, _, _ = h, z, r 129424 129425 yyv1 := *v 129426 yyh1, yyl1 := z.DecSliceHelperStart() 129427 var yyc1 bool 129428 _ = yyc1 129429 if yyl1 == 0 { 129430 if yyv1 == nil { 129431 yyv1 = []*TaskEvent{} 129432 yyc1 = true 129433 } else if len(yyv1) != 0 { 129434 yyv1 = yyv1[:0] 129435 yyc1 = true 129436 } 129437 } else { 129438 yyhl1 := yyl1 > 0 129439 var yyrl1 int 129440 _ = yyrl1 129441 if yyhl1 { 129442 if yyl1 > cap(yyv1) { 129443 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129444 if yyrl1 <= cap(yyv1) { 129445 yyv1 = yyv1[:yyrl1] 129446 } else { 129447 yyv1 = make([]*TaskEvent, yyrl1) 129448 } 129449 yyc1 = true 129450 } else if yyl1 != len(yyv1) { 129451 yyv1 = yyv1[:yyl1] 129452 yyc1 = true 129453 } 129454 } 129455 var yyj1 int 129456 // var yydn1 bool 129457 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129458 if yyj1 == 0 && yyv1 == nil { 129459 if yyhl1 { 129460 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129461 } else { 129462 yyrl1 = 8 129463 } 129464 yyv1 = make([]*TaskEvent, yyrl1) 129465 yyc1 = true 129466 } 129467 yyh1.ElemContainerState(yyj1) 129468 129469 var yydb1 bool 129470 if yyj1 >= len(yyv1) { 129471 yyv1 = append(yyv1, nil) 129472 yyc1 = true 129473 129474 } 129475 if yydb1 { 129476 z.DecSwallow() 129477 } else { 129478 if r.TryDecodeAsNil() { 129479 yyv1[yyj1] = nil 129480 } else { 129481 if yyv1[yyj1] == nil { 129482 yyv1[yyj1] = new(TaskEvent) 129483 } 129484 yyv1[yyj1].CodecDecodeSelf(d) 129485 } 129486 129487 } 129488 129489 } 129490 if yyj1 < len(yyv1) { 129491 yyv1 = yyv1[:yyj1] 129492 yyc1 = true 129493 } else if yyj1 == 0 && yyv1 == nil { 129494 yyv1 = make([]*TaskEvent, 0) 129495 yyc1 = true 129496 } 129497 } 129498 yyh1.End() 129499 if yyc1 { 129500 *v = yyv1 129501 } 129502 } 129503 129504 func (x codecSelfer100) encConstraints(v Constraints, e *codec1978.Encoder) { 129505 var h codecSelfer100 129506 z, r := codec1978.GenHelperEncoder(e) 129507 _, _, _ = h, z, r 129508 r.WriteArrayStart(len(v)) 129509 for _, yyv1 := range v { 129510 r.WriteArrayElem() 129511 if yyv1 == nil { 129512 r.EncodeNil() 129513 } else { 129514 yyv1.CodecEncodeSelf(e) 129515 } 129516 } 129517 r.WriteArrayEnd() 129518 } 129519 129520 func (x codecSelfer100) decConstraints(v *Constraints, d *codec1978.Decoder) { 129521 var h codecSelfer100 129522 z, r := codec1978.GenHelperDecoder(d) 129523 _, _, _ = h, z, r 129524 129525 yyv1 := *v 129526 yyh1, yyl1 := z.DecSliceHelperStart() 129527 var yyc1 bool 129528 _ = yyc1 129529 if yyl1 == 0 { 129530 if yyv1 == nil { 129531 yyv1 = []*Constraint{} 129532 yyc1 = true 129533 } else if len(yyv1) != 0 { 129534 yyv1 = yyv1[:0] 129535 yyc1 = true 129536 } 129537 } else { 129538 yyhl1 := yyl1 > 0 129539 var yyrl1 int 129540 _ = yyrl1 129541 if yyhl1 { 129542 if yyl1 > cap(yyv1) { 129543 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129544 if yyrl1 <= cap(yyv1) { 129545 yyv1 = yyv1[:yyrl1] 129546 } else { 129547 yyv1 = make([]*Constraint, yyrl1) 129548 } 129549 yyc1 = true 129550 } else if yyl1 != len(yyv1) { 129551 yyv1 = yyv1[:yyl1] 129552 yyc1 = true 129553 } 129554 } 129555 var yyj1 int 129556 // var yydn1 bool 129557 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129558 if yyj1 == 0 && yyv1 == nil { 129559 if yyhl1 { 129560 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129561 } else { 129562 yyrl1 = 8 129563 } 129564 yyv1 = make([]*Constraint, yyrl1) 129565 yyc1 = true 129566 } 129567 yyh1.ElemContainerState(yyj1) 129568 129569 var yydb1 bool 129570 if yyj1 >= len(yyv1) { 129571 yyv1 = append(yyv1, nil) 129572 yyc1 = true 129573 129574 } 129575 if yydb1 { 129576 z.DecSwallow() 129577 } else { 129578 if r.TryDecodeAsNil() { 129579 yyv1[yyj1] = nil 129580 } else { 129581 if yyv1[yyj1] == nil { 129582 yyv1[yyj1] = new(Constraint) 129583 } 129584 yyv1[yyj1].CodecDecodeSelf(d) 129585 } 129586 129587 } 129588 129589 } 129590 if yyj1 < len(yyv1) { 129591 yyv1 = yyv1[:yyj1] 129592 yyc1 = true 129593 } else if yyj1 == 0 && yyv1 == nil { 129594 yyv1 = make([]*Constraint, 0) 129595 yyc1 = true 129596 } 129597 } 129598 yyh1.End() 129599 if yyc1 { 129600 *v = yyv1 129601 } 129602 } 129603 129604 func (x codecSelfer100) encSlicePtrtoSpreadTarget(v []*SpreadTarget, e *codec1978.Encoder) { 129605 var h codecSelfer100 129606 z, r := codec1978.GenHelperEncoder(e) 129607 _, _, _ = h, z, r 129608 r.WriteArrayStart(len(v)) 129609 for _, yyv1 := range v { 129610 r.WriteArrayElem() 129611 if yyv1 == nil { 129612 r.EncodeNil() 129613 } else { 129614 yyv1.CodecEncodeSelf(e) 129615 } 129616 } 129617 r.WriteArrayEnd() 129618 } 129619 129620 func (x codecSelfer100) decSlicePtrtoSpreadTarget(v *[]*SpreadTarget, d *codec1978.Decoder) { 129621 var h codecSelfer100 129622 z, r := codec1978.GenHelperDecoder(d) 129623 _, _, _ = h, z, r 129624 129625 yyv1 := *v 129626 yyh1, yyl1 := z.DecSliceHelperStart() 129627 var yyc1 bool 129628 _ = yyc1 129629 if yyl1 == 0 { 129630 if yyv1 == nil { 129631 yyv1 = []*SpreadTarget{} 129632 yyc1 = true 129633 } else if len(yyv1) != 0 { 129634 yyv1 = yyv1[:0] 129635 yyc1 = true 129636 } 129637 } else { 129638 yyhl1 := yyl1 > 0 129639 var yyrl1 int 129640 _ = yyrl1 129641 if yyhl1 { 129642 if yyl1 > cap(yyv1) { 129643 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129644 if yyrl1 <= cap(yyv1) { 129645 yyv1 = yyv1[:yyrl1] 129646 } else { 129647 yyv1 = make([]*SpreadTarget, yyrl1) 129648 } 129649 yyc1 = true 129650 } else if yyl1 != len(yyv1) { 129651 yyv1 = yyv1[:yyl1] 129652 yyc1 = true 129653 } 129654 } 129655 var yyj1 int 129656 // var yydn1 bool 129657 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129658 if yyj1 == 0 && yyv1 == nil { 129659 if yyhl1 { 129660 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129661 } else { 129662 yyrl1 = 8 129663 } 129664 yyv1 = make([]*SpreadTarget, yyrl1) 129665 yyc1 = true 129666 } 129667 yyh1.ElemContainerState(yyj1) 129668 129669 var yydb1 bool 129670 if yyj1 >= len(yyv1) { 129671 yyv1 = append(yyv1, nil) 129672 yyc1 = true 129673 129674 } 129675 if yydb1 { 129676 z.DecSwallow() 129677 } else { 129678 if r.TryDecodeAsNil() { 129679 yyv1[yyj1] = nil 129680 } else { 129681 if yyv1[yyj1] == nil { 129682 yyv1[yyj1] = new(SpreadTarget) 129683 } 129684 yyv1[yyj1].CodecDecodeSelf(d) 129685 } 129686 129687 } 129688 129689 } 129690 if yyj1 < len(yyv1) { 129691 yyv1 = yyv1[:yyj1] 129692 yyc1 = true 129693 } else if yyj1 == 0 && yyv1 == nil { 129694 yyv1 = make([]*SpreadTarget, 0) 129695 yyc1 = true 129696 } 129697 } 129698 yyh1.End() 129699 if yyc1 { 129700 *v = yyv1 129701 } 129702 } 129703 129704 func (x codecSelfer100) encAffinities(v Affinities, e *codec1978.Encoder) { 129705 var h codecSelfer100 129706 z, r := codec1978.GenHelperEncoder(e) 129707 _, _, _ = h, z, r 129708 r.WriteArrayStart(len(v)) 129709 for _, yyv1 := range v { 129710 r.WriteArrayElem() 129711 if yyv1 == nil { 129712 r.EncodeNil() 129713 } else { 129714 yyv1.CodecEncodeSelf(e) 129715 } 129716 } 129717 r.WriteArrayEnd() 129718 } 129719 129720 func (x codecSelfer100) decAffinities(v *Affinities, d *codec1978.Decoder) { 129721 var h codecSelfer100 129722 z, r := codec1978.GenHelperDecoder(d) 129723 _, _, _ = h, z, r 129724 129725 yyv1 := *v 129726 yyh1, yyl1 := z.DecSliceHelperStart() 129727 var yyc1 bool 129728 _ = yyc1 129729 if yyl1 == 0 { 129730 if yyv1 == nil { 129731 yyv1 = []*Affinity{} 129732 yyc1 = true 129733 } else if len(yyv1) != 0 { 129734 yyv1 = yyv1[:0] 129735 yyc1 = true 129736 } 129737 } else { 129738 yyhl1 := yyl1 > 0 129739 var yyrl1 int 129740 _ = yyrl1 129741 if yyhl1 { 129742 if yyl1 > cap(yyv1) { 129743 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129744 if yyrl1 <= cap(yyv1) { 129745 yyv1 = yyv1[:yyrl1] 129746 } else { 129747 yyv1 = make([]*Affinity, yyrl1) 129748 } 129749 yyc1 = true 129750 } else if yyl1 != len(yyv1) { 129751 yyv1 = yyv1[:yyl1] 129752 yyc1 = true 129753 } 129754 } 129755 var yyj1 int 129756 // var yydn1 bool 129757 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129758 if yyj1 == 0 && yyv1 == nil { 129759 if yyhl1 { 129760 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129761 } else { 129762 yyrl1 = 8 129763 } 129764 yyv1 = make([]*Affinity, yyrl1) 129765 yyc1 = true 129766 } 129767 yyh1.ElemContainerState(yyj1) 129768 129769 var yydb1 bool 129770 if yyj1 >= len(yyv1) { 129771 yyv1 = append(yyv1, nil) 129772 yyc1 = true 129773 129774 } 129775 if yydb1 { 129776 z.DecSwallow() 129777 } else { 129778 if r.TryDecodeAsNil() { 129779 yyv1[yyj1] = nil 129780 } else { 129781 if yyv1[yyj1] == nil { 129782 yyv1[yyj1] = new(Affinity) 129783 } 129784 yyv1[yyj1].CodecDecodeSelf(d) 129785 } 129786 129787 } 129788 129789 } 129790 if yyj1 < len(yyv1) { 129791 yyv1 = yyv1[:yyj1] 129792 yyc1 = true 129793 } else if yyj1 == 0 && yyv1 == nil { 129794 yyv1 = make([]*Affinity, 0) 129795 yyc1 = true 129796 } 129797 } 129798 yyh1.End() 129799 if yyc1 { 129800 *v = yyv1 129801 } 129802 } 129803 129804 func (x codecSelfer100) encMapstringPtrtoDeploymentState(v map[string]*DeploymentState, e *codec1978.Encoder) { 129805 var h codecSelfer100 129806 z, r := codec1978.GenHelperEncoder(e) 129807 _, _, _ = h, z, r 129808 r.WriteMapStart(len(v)) 129809 for yyk1, yyv1 := range v { 129810 r.WriteMapElemKey() 129811 if false { 129812 } else { 129813 if z.EncBasicHandle().StringToRaw { 129814 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 129815 } else { 129816 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 129817 } 129818 } 129819 r.WriteMapElemValue() 129820 if yyv1 == nil { 129821 r.EncodeNil() 129822 } else { 129823 yyv1.CodecEncodeSelf(e) 129824 } 129825 } 129826 r.WriteMapEnd() 129827 } 129828 129829 func (x codecSelfer100) decMapstringPtrtoDeploymentState(v *map[string]*DeploymentState, d *codec1978.Decoder) { 129830 var h codecSelfer100 129831 z, r := codec1978.GenHelperDecoder(d) 129832 _, _, _ = h, z, r 129833 129834 yyv1 := *v 129835 yyl1 := r.ReadMapStart() 129836 yybh1 := z.DecBasicHandle() 129837 if yyv1 == nil { 129838 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 129839 yyv1 = make(map[string]*DeploymentState, yyrl1) 129840 *v = yyv1 129841 } 129842 var yymk1 string 129843 var yymv1 *DeploymentState 129844 var yymg1, yymdn1, yyms1, yymok1 bool 129845 if yybh1.MapValueReset { 129846 yymg1 = true 129847 } 129848 if yyl1 != 0 { 129849 yyhl1 := yyl1 > 0 129850 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 129851 r.ReadMapElemKey() 129852 if r.TryDecodeAsNil() { 129853 yymk1 = "" 129854 } else { 129855 yymk1 = (string)(r.DecodeString()) 129856 } 129857 129858 yyms1 = true 129859 if yymg1 { 129860 yymv1, yymok1 = yyv1[yymk1] 129861 if yymok1 { 129862 yyms1 = false 129863 } 129864 } else { 129865 yymv1 = nil 129866 } 129867 r.ReadMapElemValue() 129868 yymdn1 = false 129869 if r.TryDecodeAsNil() { 129870 yymdn1 = true 129871 } else { 129872 if yymv1 == nil { 129873 yymv1 = new(DeploymentState) 129874 } 129875 yymv1.CodecDecodeSelf(d) 129876 } 129877 129878 if yymdn1 { 129879 if yybh1.DeleteOnNilMapValue { 129880 delete(yyv1, yymk1) 129881 } else { 129882 yyv1[yymk1] = nil 129883 } 129884 } else if yyms1 && yyv1 != nil { 129885 yyv1[yymk1] = yymv1 129886 } 129887 } 129888 } // else len==0: TODO: Should we clear map entries? 129889 r.ReadMapEnd() 129890 } 129891 129892 func (x codecSelfer100) encSlicePtrtoRescheduleEvent(v []*RescheduleEvent, e *codec1978.Encoder) { 129893 var h codecSelfer100 129894 z, r := codec1978.GenHelperEncoder(e) 129895 _, _, _ = h, z, r 129896 r.WriteArrayStart(len(v)) 129897 for _, yyv1 := range v { 129898 r.WriteArrayElem() 129899 if yyv1 == nil { 129900 r.EncodeNil() 129901 } else { 129902 yyv1.CodecEncodeSelf(e) 129903 } 129904 } 129905 r.WriteArrayEnd() 129906 } 129907 129908 func (x codecSelfer100) decSlicePtrtoRescheduleEvent(v *[]*RescheduleEvent, d *codec1978.Decoder) { 129909 var h codecSelfer100 129910 z, r := codec1978.GenHelperDecoder(d) 129911 _, _, _ = h, z, r 129912 129913 yyv1 := *v 129914 yyh1, yyl1 := z.DecSliceHelperStart() 129915 var yyc1 bool 129916 _ = yyc1 129917 if yyl1 == 0 { 129918 if yyv1 == nil { 129919 yyv1 = []*RescheduleEvent{} 129920 yyc1 = true 129921 } else if len(yyv1) != 0 { 129922 yyv1 = yyv1[:0] 129923 yyc1 = true 129924 } 129925 } else { 129926 yyhl1 := yyl1 > 0 129927 var yyrl1 int 129928 _ = yyrl1 129929 if yyhl1 { 129930 if yyl1 > cap(yyv1) { 129931 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129932 if yyrl1 <= cap(yyv1) { 129933 yyv1 = yyv1[:yyrl1] 129934 } else { 129935 yyv1 = make([]*RescheduleEvent, yyrl1) 129936 } 129937 yyc1 = true 129938 } else if yyl1 != len(yyv1) { 129939 yyv1 = yyv1[:yyl1] 129940 yyc1 = true 129941 } 129942 } 129943 var yyj1 int 129944 // var yydn1 bool 129945 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 129946 if yyj1 == 0 && yyv1 == nil { 129947 if yyhl1 { 129948 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 129949 } else { 129950 yyrl1 = 8 129951 } 129952 yyv1 = make([]*RescheduleEvent, yyrl1) 129953 yyc1 = true 129954 } 129955 yyh1.ElemContainerState(yyj1) 129956 129957 var yydb1 bool 129958 if yyj1 >= len(yyv1) { 129959 yyv1 = append(yyv1, nil) 129960 yyc1 = true 129961 129962 } 129963 if yydb1 { 129964 z.DecSwallow() 129965 } else { 129966 if r.TryDecodeAsNil() { 129967 yyv1[yyj1] = nil 129968 } else { 129969 if yyv1[yyj1] == nil { 129970 yyv1[yyj1] = new(RescheduleEvent) 129971 } 129972 yyv1[yyj1].CodecDecodeSelf(d) 129973 } 129974 129975 } 129976 129977 } 129978 if yyj1 < len(yyv1) { 129979 yyv1 = yyv1[:yyj1] 129980 yyc1 = true 129981 } else if yyj1 == 0 && yyv1 == nil { 129982 yyv1 = make([]*RescheduleEvent, 0) 129983 yyc1 = true 129984 } 129985 } 129986 yyh1.End() 129987 if yyc1 { 129988 *v = yyv1 129989 } 129990 } 129991 129992 func (x codecSelfer100) encMapstringPtrtoResources(v map[string]*Resources, e *codec1978.Encoder) { 129993 var h codecSelfer100 129994 z, r := codec1978.GenHelperEncoder(e) 129995 _, _, _ = h, z, r 129996 r.WriteMapStart(len(v)) 129997 for yyk1, yyv1 := range v { 129998 r.WriteMapElemKey() 129999 if false { 130000 } else { 130001 if z.EncBasicHandle().StringToRaw { 130002 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130003 } else { 130004 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130005 } 130006 } 130007 r.WriteMapElemValue() 130008 if yyv1 == nil { 130009 r.EncodeNil() 130010 } else { 130011 yyv1.CodecEncodeSelf(e) 130012 } 130013 } 130014 r.WriteMapEnd() 130015 } 130016 130017 func (x codecSelfer100) decMapstringPtrtoResources(v *map[string]*Resources, d *codec1978.Decoder) { 130018 var h codecSelfer100 130019 z, r := codec1978.GenHelperDecoder(d) 130020 _, _, _ = h, z, r 130021 130022 yyv1 := *v 130023 yyl1 := r.ReadMapStart() 130024 yybh1 := z.DecBasicHandle() 130025 if yyv1 == nil { 130026 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 130027 yyv1 = make(map[string]*Resources, yyrl1) 130028 *v = yyv1 130029 } 130030 var yymk1 string 130031 var yymv1 *Resources 130032 var yymg1, yymdn1, yyms1, yymok1 bool 130033 if yybh1.MapValueReset { 130034 yymg1 = true 130035 } 130036 if yyl1 != 0 { 130037 yyhl1 := yyl1 > 0 130038 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130039 r.ReadMapElemKey() 130040 if r.TryDecodeAsNil() { 130041 yymk1 = "" 130042 } else { 130043 yymk1 = (string)(r.DecodeString()) 130044 } 130045 130046 yyms1 = true 130047 if yymg1 { 130048 yymv1, yymok1 = yyv1[yymk1] 130049 if yymok1 { 130050 yyms1 = false 130051 } 130052 } else { 130053 yymv1 = nil 130054 } 130055 r.ReadMapElemValue() 130056 yymdn1 = false 130057 if r.TryDecodeAsNil() { 130058 yymdn1 = true 130059 } else { 130060 if yymv1 == nil { 130061 yymv1 = new(Resources) 130062 } 130063 yymv1.CodecDecodeSelf(d) 130064 } 130065 130066 if yymdn1 { 130067 if yybh1.DeleteOnNilMapValue { 130068 delete(yyv1, yymk1) 130069 } else { 130070 yyv1[yymk1] = nil 130071 } 130072 } else if yyms1 && yyv1 != nil { 130073 yyv1[yymk1] = yymv1 130074 } 130075 } 130076 } // else len==0: TODO: Should we clear map entries? 130077 r.ReadMapEnd() 130078 } 130079 130080 func (x codecSelfer100) encMapstringPtrtoTaskState(v map[string]*TaskState, e *codec1978.Encoder) { 130081 var h codecSelfer100 130082 z, r := codec1978.GenHelperEncoder(e) 130083 _, _, _ = h, z, r 130084 r.WriteMapStart(len(v)) 130085 for yyk1, yyv1 := range v { 130086 r.WriteMapElemKey() 130087 if false { 130088 } else { 130089 if z.EncBasicHandle().StringToRaw { 130090 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130091 } else { 130092 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130093 } 130094 } 130095 r.WriteMapElemValue() 130096 if yyv1 == nil { 130097 r.EncodeNil() 130098 } else { 130099 yyv1.CodecEncodeSelf(e) 130100 } 130101 } 130102 r.WriteMapEnd() 130103 } 130104 130105 func (x codecSelfer100) decMapstringPtrtoTaskState(v *map[string]*TaskState, d *codec1978.Decoder) { 130106 var h codecSelfer100 130107 z, r := codec1978.GenHelperDecoder(d) 130108 _, _, _ = h, z, r 130109 130110 yyv1 := *v 130111 yyl1 := r.ReadMapStart() 130112 yybh1 := z.DecBasicHandle() 130113 if yyv1 == nil { 130114 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 130115 yyv1 = make(map[string]*TaskState, yyrl1) 130116 *v = yyv1 130117 } 130118 var yymk1 string 130119 var yymv1 *TaskState 130120 var yymg1, yymdn1, yyms1, yymok1 bool 130121 if yybh1.MapValueReset { 130122 yymg1 = true 130123 } 130124 if yyl1 != 0 { 130125 yyhl1 := yyl1 > 0 130126 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130127 r.ReadMapElemKey() 130128 if r.TryDecodeAsNil() { 130129 yymk1 = "" 130130 } else { 130131 yymk1 = (string)(r.DecodeString()) 130132 } 130133 130134 yyms1 = true 130135 if yymg1 { 130136 yymv1, yymok1 = yyv1[yymk1] 130137 if yymok1 { 130138 yyms1 = false 130139 } 130140 } else { 130141 yymv1 = nil 130142 } 130143 r.ReadMapElemValue() 130144 yymdn1 = false 130145 if r.TryDecodeAsNil() { 130146 yymdn1 = true 130147 } else { 130148 if yymv1 == nil { 130149 yymv1 = new(TaskState) 130150 } 130151 yymv1.CodecDecodeSelf(d) 130152 } 130153 130154 if yymdn1 { 130155 if yybh1.DeleteOnNilMapValue { 130156 delete(yyv1, yymk1) 130157 } else { 130158 yyv1[yymk1] = nil 130159 } 130160 } else if yyms1 && yyv1 != nil { 130161 yyv1[yymk1] = yymv1 130162 } 130163 } 130164 } // else len==0: TODO: Should we clear map entries? 130165 r.ReadMapEnd() 130166 } 130167 130168 func (x codecSelfer100) encSlicePtrtoAllocState(v []*AllocState, e *codec1978.Encoder) { 130169 var h codecSelfer100 130170 z, r := codec1978.GenHelperEncoder(e) 130171 _, _, _ = h, z, r 130172 r.WriteArrayStart(len(v)) 130173 for _, yyv1 := range v { 130174 r.WriteArrayElem() 130175 if yyv1 == nil { 130176 r.EncodeNil() 130177 } else { 130178 yyv1.CodecEncodeSelf(e) 130179 } 130180 } 130181 r.WriteArrayEnd() 130182 } 130183 130184 func (x codecSelfer100) decSlicePtrtoAllocState(v *[]*AllocState, d *codec1978.Decoder) { 130185 var h codecSelfer100 130186 z, r := codec1978.GenHelperDecoder(d) 130187 _, _, _ = h, z, r 130188 130189 yyv1 := *v 130190 yyh1, yyl1 := z.DecSliceHelperStart() 130191 var yyc1 bool 130192 _ = yyc1 130193 if yyl1 == 0 { 130194 if yyv1 == nil { 130195 yyv1 = []*AllocState{} 130196 yyc1 = true 130197 } else if len(yyv1) != 0 { 130198 yyv1 = yyv1[:0] 130199 yyc1 = true 130200 } 130201 } else { 130202 yyhl1 := yyl1 > 0 130203 var yyrl1 int 130204 _ = yyrl1 130205 if yyhl1 { 130206 if yyl1 > cap(yyv1) { 130207 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130208 if yyrl1 <= cap(yyv1) { 130209 yyv1 = yyv1[:yyrl1] 130210 } else { 130211 yyv1 = make([]*AllocState, yyrl1) 130212 } 130213 yyc1 = true 130214 } else if yyl1 != len(yyv1) { 130215 yyv1 = yyv1[:yyl1] 130216 yyc1 = true 130217 } 130218 } 130219 var yyj1 int 130220 // var yydn1 bool 130221 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 130222 if yyj1 == 0 && yyv1 == nil { 130223 if yyhl1 { 130224 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130225 } else { 130226 yyrl1 = 8 130227 } 130228 yyv1 = make([]*AllocState, yyrl1) 130229 yyc1 = true 130230 } 130231 yyh1.ElemContainerState(yyj1) 130232 130233 var yydb1 bool 130234 if yyj1 >= len(yyv1) { 130235 yyv1 = append(yyv1, nil) 130236 yyc1 = true 130237 130238 } 130239 if yydb1 { 130240 z.DecSwallow() 130241 } else { 130242 if r.TryDecodeAsNil() { 130243 yyv1[yyj1] = nil 130244 } else { 130245 if yyv1[yyj1] == nil { 130246 yyv1[yyj1] = new(AllocState) 130247 } 130248 yyv1[yyj1].CodecDecodeSelf(d) 130249 } 130250 130251 } 130252 130253 } 130254 if yyj1 < len(yyv1) { 130255 yyv1 = yyv1[:yyj1] 130256 yyc1 = true 130257 } else if yyj1 == 0 && yyv1 == nil { 130258 yyv1 = make([]*AllocState, 0) 130259 yyc1 = true 130260 } 130261 } 130262 yyh1.End() 130263 if yyc1 { 130264 *v = yyv1 130265 } 130266 } 130267 130268 func (x codecSelfer100) encSlicePtrtoNodeScoreMeta(v []*NodeScoreMeta, e *codec1978.Encoder) { 130269 var h codecSelfer100 130270 z, r := codec1978.GenHelperEncoder(e) 130271 _, _, _ = h, z, r 130272 r.WriteArrayStart(len(v)) 130273 for _, yyv1 := range v { 130274 r.WriteArrayElem() 130275 if yyv1 == nil { 130276 r.EncodeNil() 130277 } else { 130278 yyv1.CodecEncodeSelf(e) 130279 } 130280 } 130281 r.WriteArrayEnd() 130282 } 130283 130284 func (x codecSelfer100) decSlicePtrtoNodeScoreMeta(v *[]*NodeScoreMeta, d *codec1978.Decoder) { 130285 var h codecSelfer100 130286 z, r := codec1978.GenHelperDecoder(d) 130287 _, _, _ = h, z, r 130288 130289 yyv1 := *v 130290 yyh1, yyl1 := z.DecSliceHelperStart() 130291 var yyc1 bool 130292 _ = yyc1 130293 if yyl1 == 0 { 130294 if yyv1 == nil { 130295 yyv1 = []*NodeScoreMeta{} 130296 yyc1 = true 130297 } else if len(yyv1) != 0 { 130298 yyv1 = yyv1[:0] 130299 yyc1 = true 130300 } 130301 } else { 130302 yyhl1 := yyl1 > 0 130303 var yyrl1 int 130304 _ = yyrl1 130305 if yyhl1 { 130306 if yyl1 > cap(yyv1) { 130307 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130308 if yyrl1 <= cap(yyv1) { 130309 yyv1 = yyv1[:yyrl1] 130310 } else { 130311 yyv1 = make([]*NodeScoreMeta, yyrl1) 130312 } 130313 yyc1 = true 130314 } else if yyl1 != len(yyv1) { 130315 yyv1 = yyv1[:yyl1] 130316 yyc1 = true 130317 } 130318 } 130319 var yyj1 int 130320 // var yydn1 bool 130321 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 130322 if yyj1 == 0 && yyv1 == nil { 130323 if yyhl1 { 130324 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130325 } else { 130326 yyrl1 = 8 130327 } 130328 yyv1 = make([]*NodeScoreMeta, yyrl1) 130329 yyc1 = true 130330 } 130331 yyh1.ElemContainerState(yyj1) 130332 130333 var yydb1 bool 130334 if yyj1 >= len(yyv1) { 130335 yyv1 = append(yyv1, nil) 130336 yyc1 = true 130337 130338 } 130339 if yydb1 { 130340 z.DecSwallow() 130341 } else { 130342 if r.TryDecodeAsNil() { 130343 yyv1[yyj1] = nil 130344 } else { 130345 if yyv1[yyj1] == nil { 130346 yyv1[yyj1] = new(NodeScoreMeta) 130347 } 130348 yyv1[yyj1].CodecDecodeSelf(d) 130349 } 130350 130351 } 130352 130353 } 130354 if yyj1 < len(yyv1) { 130355 yyv1 = yyv1[:yyj1] 130356 yyc1 = true 130357 } else if yyj1 == 0 && yyv1 == nil { 130358 yyv1 = make([]*NodeScoreMeta, 0) 130359 yyc1 = true 130360 } 130361 } 130362 yyh1.End() 130363 if yyc1 { 130364 *v = yyv1 130365 } 130366 } 130367 130368 func (x codecSelfer100) encMapstringSlicePtrtoAllocation(v map[string][]*Allocation, e *codec1978.Encoder) { 130369 var h codecSelfer100 130370 z, r := codec1978.GenHelperEncoder(e) 130371 _, _, _ = h, z, r 130372 r.WriteMapStart(len(v)) 130373 for yyk1, yyv1 := range v { 130374 r.WriteMapElemKey() 130375 if false { 130376 } else { 130377 if z.EncBasicHandle().StringToRaw { 130378 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130379 } else { 130380 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130381 } 130382 } 130383 r.WriteMapElemValue() 130384 if yyv1 == nil { 130385 r.EncodeNil() 130386 } else { 130387 if false { 130388 } else { 130389 h.encSlicePtrtoAllocation(([]*Allocation)(yyv1), e) 130390 } 130391 } 130392 } 130393 r.WriteMapEnd() 130394 } 130395 130396 func (x codecSelfer100) decMapstringSlicePtrtoAllocation(v *map[string][]*Allocation, d *codec1978.Decoder) { 130397 var h codecSelfer100 130398 z, r := codec1978.GenHelperDecoder(d) 130399 _, _, _ = h, z, r 130400 130401 yyv1 := *v 130402 yyl1 := r.ReadMapStart() 130403 yybh1 := z.DecBasicHandle() 130404 if yyv1 == nil { 130405 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 40) 130406 yyv1 = make(map[string][]*Allocation, yyrl1) 130407 *v = yyv1 130408 } 130409 var yymk1 string 130410 var yymv1 []*Allocation 130411 var yymg1, yymdn1 bool 130412 if yybh1.MapValueReset { 130413 yymg1 = true 130414 } 130415 if yyl1 != 0 { 130416 yyhl1 := yyl1 > 0 130417 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130418 r.ReadMapElemKey() 130419 if r.TryDecodeAsNil() { 130420 yymk1 = "" 130421 } else { 130422 yymk1 = (string)(r.DecodeString()) 130423 } 130424 130425 if yymg1 { 130426 yymv1 = yyv1[yymk1] 130427 } else { 130428 yymv1 = nil 130429 } 130430 r.ReadMapElemValue() 130431 yymdn1 = false 130432 if r.TryDecodeAsNil() { 130433 yymdn1 = true 130434 } else { 130435 if false { 130436 } else { 130437 h.decSlicePtrtoAllocation((*[]*Allocation)(&yymv1), d) 130438 } 130439 } 130440 130441 if yymdn1 { 130442 if yybh1.DeleteOnNilMapValue { 130443 delete(yyv1, yymk1) 130444 } else { 130445 yyv1[yymk1] = nil 130446 } 130447 } else if yyv1 != nil { 130448 yyv1[yymk1] = yymv1 130449 } 130450 } 130451 } // else len==0: TODO: Should we clear map entries? 130452 r.ReadMapEnd() 130453 } 130454 130455 func (x codecSelfer100) encMapstringPtrtoDesiredUpdates(v map[string]*DesiredUpdates, e *codec1978.Encoder) { 130456 var h codecSelfer100 130457 z, r := codec1978.GenHelperEncoder(e) 130458 _, _, _ = h, z, r 130459 r.WriteMapStart(len(v)) 130460 for yyk1, yyv1 := range v { 130461 r.WriteMapElemKey() 130462 if false { 130463 } else { 130464 if z.EncBasicHandle().StringToRaw { 130465 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130466 } else { 130467 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130468 } 130469 } 130470 r.WriteMapElemValue() 130471 if yyv1 == nil { 130472 r.EncodeNil() 130473 } else { 130474 yyv1.CodecEncodeSelf(e) 130475 } 130476 } 130477 r.WriteMapEnd() 130478 } 130479 130480 func (x codecSelfer100) decMapstringPtrtoDesiredUpdates(v *map[string]*DesiredUpdates, d *codec1978.Decoder) { 130481 var h codecSelfer100 130482 z, r := codec1978.GenHelperDecoder(d) 130483 _, _, _ = h, z, r 130484 130485 yyv1 := *v 130486 yyl1 := r.ReadMapStart() 130487 yybh1 := z.DecBasicHandle() 130488 if yyv1 == nil { 130489 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 130490 yyv1 = make(map[string]*DesiredUpdates, yyrl1) 130491 *v = yyv1 130492 } 130493 var yymk1 string 130494 var yymv1 *DesiredUpdates 130495 var yymg1, yymdn1, yyms1, yymok1 bool 130496 if yybh1.MapValueReset { 130497 yymg1 = true 130498 } 130499 if yyl1 != 0 { 130500 yyhl1 := yyl1 > 0 130501 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130502 r.ReadMapElemKey() 130503 if r.TryDecodeAsNil() { 130504 yymk1 = "" 130505 } else { 130506 yymk1 = (string)(r.DecodeString()) 130507 } 130508 130509 yyms1 = true 130510 if yymg1 { 130511 yymv1, yymok1 = yyv1[yymk1] 130512 if yymok1 { 130513 yyms1 = false 130514 } 130515 } else { 130516 yymv1 = nil 130517 } 130518 r.ReadMapElemValue() 130519 yymdn1 = false 130520 if r.TryDecodeAsNil() { 130521 yymdn1 = true 130522 } else { 130523 if yymv1 == nil { 130524 yymv1 = new(DesiredUpdates) 130525 } 130526 yymv1.CodecDecodeSelf(d) 130527 } 130528 130529 if yymdn1 { 130530 if yybh1.DeleteOnNilMapValue { 130531 delete(yyv1, yymk1) 130532 } else { 130533 yyv1[yymk1] = nil 130534 } 130535 } else if yyms1 && yyv1 != nil { 130536 yyv1[yymk1] = yymv1 130537 } 130538 } 130539 } // else len==0: TODO: Should we clear map entries? 130540 r.ReadMapEnd() 130541 } 130542 130543 func (x codecSelfer100) encSlicePtrtoACLPolicyListStub(v []*ACLPolicyListStub, e *codec1978.Encoder) { 130544 var h codecSelfer100 130545 z, r := codec1978.GenHelperEncoder(e) 130546 _, _, _ = h, z, r 130547 r.WriteArrayStart(len(v)) 130548 for _, yyv1 := range v { 130549 r.WriteArrayElem() 130550 if yyv1 == nil { 130551 r.EncodeNil() 130552 } else { 130553 yyv1.CodecEncodeSelf(e) 130554 } 130555 } 130556 r.WriteArrayEnd() 130557 } 130558 130559 func (x codecSelfer100) decSlicePtrtoACLPolicyListStub(v *[]*ACLPolicyListStub, d *codec1978.Decoder) { 130560 var h codecSelfer100 130561 z, r := codec1978.GenHelperDecoder(d) 130562 _, _, _ = h, z, r 130563 130564 yyv1 := *v 130565 yyh1, yyl1 := z.DecSliceHelperStart() 130566 var yyc1 bool 130567 _ = yyc1 130568 if yyl1 == 0 { 130569 if yyv1 == nil { 130570 yyv1 = []*ACLPolicyListStub{} 130571 yyc1 = true 130572 } else if len(yyv1) != 0 { 130573 yyv1 = yyv1[:0] 130574 yyc1 = true 130575 } 130576 } else { 130577 yyhl1 := yyl1 > 0 130578 var yyrl1 int 130579 _ = yyrl1 130580 if yyhl1 { 130581 if yyl1 > cap(yyv1) { 130582 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130583 if yyrl1 <= cap(yyv1) { 130584 yyv1 = yyv1[:yyrl1] 130585 } else { 130586 yyv1 = make([]*ACLPolicyListStub, yyrl1) 130587 } 130588 yyc1 = true 130589 } else if yyl1 != len(yyv1) { 130590 yyv1 = yyv1[:yyl1] 130591 yyc1 = true 130592 } 130593 } 130594 var yyj1 int 130595 // var yydn1 bool 130596 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 130597 if yyj1 == 0 && yyv1 == nil { 130598 if yyhl1 { 130599 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130600 } else { 130601 yyrl1 = 8 130602 } 130603 yyv1 = make([]*ACLPolicyListStub, yyrl1) 130604 yyc1 = true 130605 } 130606 yyh1.ElemContainerState(yyj1) 130607 130608 var yydb1 bool 130609 if yyj1 >= len(yyv1) { 130610 yyv1 = append(yyv1, nil) 130611 yyc1 = true 130612 130613 } 130614 if yydb1 { 130615 z.DecSwallow() 130616 } else { 130617 if r.TryDecodeAsNil() { 130618 yyv1[yyj1] = nil 130619 } else { 130620 if yyv1[yyj1] == nil { 130621 yyv1[yyj1] = new(ACLPolicyListStub) 130622 } 130623 yyv1[yyj1].CodecDecodeSelf(d) 130624 } 130625 130626 } 130627 130628 } 130629 if yyj1 < len(yyv1) { 130630 yyv1 = yyv1[:yyj1] 130631 yyc1 = true 130632 } else if yyj1 == 0 && yyv1 == nil { 130633 yyv1 = make([]*ACLPolicyListStub, 0) 130634 yyc1 = true 130635 } 130636 } 130637 yyh1.End() 130638 if yyc1 { 130639 *v = yyv1 130640 } 130641 } 130642 130643 func (x codecSelfer100) encMapstringPtrtoACLPolicy(v map[string]*ACLPolicy, e *codec1978.Encoder) { 130644 var h codecSelfer100 130645 z, r := codec1978.GenHelperEncoder(e) 130646 _, _, _ = h, z, r 130647 r.WriteMapStart(len(v)) 130648 for yyk1, yyv1 := range v { 130649 r.WriteMapElemKey() 130650 if false { 130651 } else { 130652 if z.EncBasicHandle().StringToRaw { 130653 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130654 } else { 130655 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130656 } 130657 } 130658 r.WriteMapElemValue() 130659 if yyv1 == nil { 130660 r.EncodeNil() 130661 } else { 130662 yyv1.CodecEncodeSelf(e) 130663 } 130664 } 130665 r.WriteMapEnd() 130666 } 130667 130668 func (x codecSelfer100) decMapstringPtrtoACLPolicy(v *map[string]*ACLPolicy, d *codec1978.Decoder) { 130669 var h codecSelfer100 130670 z, r := codec1978.GenHelperDecoder(d) 130671 _, _, _ = h, z, r 130672 130673 yyv1 := *v 130674 yyl1 := r.ReadMapStart() 130675 yybh1 := z.DecBasicHandle() 130676 if yyv1 == nil { 130677 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 130678 yyv1 = make(map[string]*ACLPolicy, yyrl1) 130679 *v = yyv1 130680 } 130681 var yymk1 string 130682 var yymv1 *ACLPolicy 130683 var yymg1, yymdn1, yyms1, yymok1 bool 130684 if yybh1.MapValueReset { 130685 yymg1 = true 130686 } 130687 if yyl1 != 0 { 130688 yyhl1 := yyl1 > 0 130689 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130690 r.ReadMapElemKey() 130691 if r.TryDecodeAsNil() { 130692 yymk1 = "" 130693 } else { 130694 yymk1 = (string)(r.DecodeString()) 130695 } 130696 130697 yyms1 = true 130698 if yymg1 { 130699 yymv1, yymok1 = yyv1[yymk1] 130700 if yymok1 { 130701 yyms1 = false 130702 } 130703 } else { 130704 yymv1 = nil 130705 } 130706 r.ReadMapElemValue() 130707 yymdn1 = false 130708 if r.TryDecodeAsNil() { 130709 yymdn1 = true 130710 } else { 130711 if yymv1 == nil { 130712 yymv1 = new(ACLPolicy) 130713 } 130714 yymv1.CodecDecodeSelf(d) 130715 } 130716 130717 if yymdn1 { 130718 if yybh1.DeleteOnNilMapValue { 130719 delete(yyv1, yymk1) 130720 } else { 130721 yyv1[yymk1] = nil 130722 } 130723 } else if yyms1 && yyv1 != nil { 130724 yyv1[yymk1] = yymv1 130725 } 130726 } 130727 } // else len==0: TODO: Should we clear map entries? 130728 r.ReadMapEnd() 130729 } 130730 130731 func (x codecSelfer100) encSlicePtrtoACLPolicy(v []*ACLPolicy, e *codec1978.Encoder) { 130732 var h codecSelfer100 130733 z, r := codec1978.GenHelperEncoder(e) 130734 _, _, _ = h, z, r 130735 r.WriteArrayStart(len(v)) 130736 for _, yyv1 := range v { 130737 r.WriteArrayElem() 130738 if yyv1 == nil { 130739 r.EncodeNil() 130740 } else { 130741 yyv1.CodecEncodeSelf(e) 130742 } 130743 } 130744 r.WriteArrayEnd() 130745 } 130746 130747 func (x codecSelfer100) decSlicePtrtoACLPolicy(v *[]*ACLPolicy, d *codec1978.Decoder) { 130748 var h codecSelfer100 130749 z, r := codec1978.GenHelperDecoder(d) 130750 _, _, _ = h, z, r 130751 130752 yyv1 := *v 130753 yyh1, yyl1 := z.DecSliceHelperStart() 130754 var yyc1 bool 130755 _ = yyc1 130756 if yyl1 == 0 { 130757 if yyv1 == nil { 130758 yyv1 = []*ACLPolicy{} 130759 yyc1 = true 130760 } else if len(yyv1) != 0 { 130761 yyv1 = yyv1[:0] 130762 yyc1 = true 130763 } 130764 } else { 130765 yyhl1 := yyl1 > 0 130766 var yyrl1 int 130767 _ = yyrl1 130768 if yyhl1 { 130769 if yyl1 > cap(yyv1) { 130770 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130771 if yyrl1 <= cap(yyv1) { 130772 yyv1 = yyv1[:yyrl1] 130773 } else { 130774 yyv1 = make([]*ACLPolicy, yyrl1) 130775 } 130776 yyc1 = true 130777 } else if yyl1 != len(yyv1) { 130778 yyv1 = yyv1[:yyl1] 130779 yyc1 = true 130780 } 130781 } 130782 var yyj1 int 130783 // var yydn1 bool 130784 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 130785 if yyj1 == 0 && yyv1 == nil { 130786 if yyhl1 { 130787 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130788 } else { 130789 yyrl1 = 8 130790 } 130791 yyv1 = make([]*ACLPolicy, yyrl1) 130792 yyc1 = true 130793 } 130794 yyh1.ElemContainerState(yyj1) 130795 130796 var yydb1 bool 130797 if yyj1 >= len(yyv1) { 130798 yyv1 = append(yyv1, nil) 130799 yyc1 = true 130800 130801 } 130802 if yydb1 { 130803 z.DecSwallow() 130804 } else { 130805 if r.TryDecodeAsNil() { 130806 yyv1[yyj1] = nil 130807 } else { 130808 if yyv1[yyj1] == nil { 130809 yyv1[yyj1] = new(ACLPolicy) 130810 } 130811 yyv1[yyj1].CodecDecodeSelf(d) 130812 } 130813 130814 } 130815 130816 } 130817 if yyj1 < len(yyv1) { 130818 yyv1 = yyv1[:yyj1] 130819 yyc1 = true 130820 } else if yyj1 == 0 && yyv1 == nil { 130821 yyv1 = make([]*ACLPolicy, 0) 130822 yyc1 = true 130823 } 130824 } 130825 yyh1.End() 130826 if yyc1 { 130827 *v = yyv1 130828 } 130829 } 130830 130831 func (x codecSelfer100) encSlicePtrtoACLTokenListStub(v []*ACLTokenListStub, e *codec1978.Encoder) { 130832 var h codecSelfer100 130833 z, r := codec1978.GenHelperEncoder(e) 130834 _, _, _ = h, z, r 130835 r.WriteArrayStart(len(v)) 130836 for _, yyv1 := range v { 130837 r.WriteArrayElem() 130838 if yyv1 == nil { 130839 r.EncodeNil() 130840 } else { 130841 yyv1.CodecEncodeSelf(e) 130842 } 130843 } 130844 r.WriteArrayEnd() 130845 } 130846 130847 func (x codecSelfer100) decSlicePtrtoACLTokenListStub(v *[]*ACLTokenListStub, d *codec1978.Decoder) { 130848 var h codecSelfer100 130849 z, r := codec1978.GenHelperDecoder(d) 130850 _, _, _ = h, z, r 130851 130852 yyv1 := *v 130853 yyh1, yyl1 := z.DecSliceHelperStart() 130854 var yyc1 bool 130855 _ = yyc1 130856 if yyl1 == 0 { 130857 if yyv1 == nil { 130858 yyv1 = []*ACLTokenListStub{} 130859 yyc1 = true 130860 } else if len(yyv1) != 0 { 130861 yyv1 = yyv1[:0] 130862 yyc1 = true 130863 } 130864 } else { 130865 yyhl1 := yyl1 > 0 130866 var yyrl1 int 130867 _ = yyrl1 130868 if yyhl1 { 130869 if yyl1 > cap(yyv1) { 130870 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130871 if yyrl1 <= cap(yyv1) { 130872 yyv1 = yyv1[:yyrl1] 130873 } else { 130874 yyv1 = make([]*ACLTokenListStub, yyrl1) 130875 } 130876 yyc1 = true 130877 } else if yyl1 != len(yyv1) { 130878 yyv1 = yyv1[:yyl1] 130879 yyc1 = true 130880 } 130881 } 130882 var yyj1 int 130883 // var yydn1 bool 130884 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 130885 if yyj1 == 0 && yyv1 == nil { 130886 if yyhl1 { 130887 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 130888 } else { 130889 yyrl1 = 8 130890 } 130891 yyv1 = make([]*ACLTokenListStub, yyrl1) 130892 yyc1 = true 130893 } 130894 yyh1.ElemContainerState(yyj1) 130895 130896 var yydb1 bool 130897 if yyj1 >= len(yyv1) { 130898 yyv1 = append(yyv1, nil) 130899 yyc1 = true 130900 130901 } 130902 if yydb1 { 130903 z.DecSwallow() 130904 } else { 130905 if r.TryDecodeAsNil() { 130906 yyv1[yyj1] = nil 130907 } else { 130908 if yyv1[yyj1] == nil { 130909 yyv1[yyj1] = new(ACLTokenListStub) 130910 } 130911 yyv1[yyj1].CodecDecodeSelf(d) 130912 } 130913 130914 } 130915 130916 } 130917 if yyj1 < len(yyv1) { 130918 yyv1 = yyv1[:yyj1] 130919 yyc1 = true 130920 } else if yyj1 == 0 && yyv1 == nil { 130921 yyv1 = make([]*ACLTokenListStub, 0) 130922 yyc1 = true 130923 } 130924 } 130925 yyh1.End() 130926 if yyc1 { 130927 *v = yyv1 130928 } 130929 } 130930 130931 func (x codecSelfer100) encMapstringPtrtoACLToken(v map[string]*ACLToken, e *codec1978.Encoder) { 130932 var h codecSelfer100 130933 z, r := codec1978.GenHelperEncoder(e) 130934 _, _, _ = h, z, r 130935 r.WriteMapStart(len(v)) 130936 for yyk1, yyv1 := range v { 130937 r.WriteMapElemKey() 130938 if false { 130939 } else { 130940 if z.EncBasicHandle().StringToRaw { 130941 r.EncodeStringBytesRaw(z.BytesView(string(yyk1))) 130942 } else { 130943 r.EncodeStringEnc(codecSelferCcUTF8100, string(yyk1)) 130944 } 130945 } 130946 r.WriteMapElemValue() 130947 if yyv1 == nil { 130948 r.EncodeNil() 130949 } else { 130950 yyv1.CodecEncodeSelf(e) 130951 } 130952 } 130953 r.WriteMapEnd() 130954 } 130955 130956 func (x codecSelfer100) decMapstringPtrtoACLToken(v *map[string]*ACLToken, d *codec1978.Decoder) { 130957 var h codecSelfer100 130958 z, r := codec1978.GenHelperDecoder(d) 130959 _, _, _ = h, z, r 130960 130961 yyv1 := *v 130962 yyl1 := r.ReadMapStart() 130963 yybh1 := z.DecBasicHandle() 130964 if yyv1 == nil { 130965 yyrl1 := z.DecInferLen(yyl1, yybh1.MaxInitLen, 24) 130966 yyv1 = make(map[string]*ACLToken, yyrl1) 130967 *v = yyv1 130968 } 130969 var yymk1 string 130970 var yymv1 *ACLToken 130971 var yymg1, yymdn1, yyms1, yymok1 bool 130972 if yybh1.MapValueReset { 130973 yymg1 = true 130974 } 130975 if yyl1 != 0 { 130976 yyhl1 := yyl1 > 0 130977 for yyj1 := 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { 130978 r.ReadMapElemKey() 130979 if r.TryDecodeAsNil() { 130980 yymk1 = "" 130981 } else { 130982 yymk1 = (string)(r.DecodeString()) 130983 } 130984 130985 yyms1 = true 130986 if yymg1 { 130987 yymv1, yymok1 = yyv1[yymk1] 130988 if yymok1 { 130989 yyms1 = false 130990 } 130991 } else { 130992 yymv1 = nil 130993 } 130994 r.ReadMapElemValue() 130995 yymdn1 = false 130996 if r.TryDecodeAsNil() { 130997 yymdn1 = true 130998 } else { 130999 if yymv1 == nil { 131000 yymv1 = new(ACLToken) 131001 } 131002 yymv1.CodecDecodeSelf(d) 131003 } 131004 131005 if yymdn1 { 131006 if yybh1.DeleteOnNilMapValue { 131007 delete(yyv1, yymk1) 131008 } else { 131009 yyv1[yymk1] = nil 131010 } 131011 } else if yyms1 && yyv1 != nil { 131012 yyv1[yymk1] = yymv1 131013 } 131014 } 131015 } // else len==0: TODO: Should we clear map entries? 131016 r.ReadMapEnd() 131017 } 131018 131019 func (x codecSelfer100) encSlicePtrtoACLToken(v []*ACLToken, e *codec1978.Encoder) { 131020 var h codecSelfer100 131021 z, r := codec1978.GenHelperEncoder(e) 131022 _, _, _ = h, z, r 131023 r.WriteArrayStart(len(v)) 131024 for _, yyv1 := range v { 131025 r.WriteArrayElem() 131026 if yyv1 == nil { 131027 r.EncodeNil() 131028 } else { 131029 yyv1.CodecEncodeSelf(e) 131030 } 131031 } 131032 r.WriteArrayEnd() 131033 } 131034 131035 func (x codecSelfer100) decSlicePtrtoACLToken(v *[]*ACLToken, d *codec1978.Decoder) { 131036 var h codecSelfer100 131037 z, r := codec1978.GenHelperDecoder(d) 131038 _, _, _ = h, z, r 131039 131040 yyv1 := *v 131041 yyh1, yyl1 := z.DecSliceHelperStart() 131042 var yyc1 bool 131043 _ = yyc1 131044 if yyl1 == 0 { 131045 if yyv1 == nil { 131046 yyv1 = []*ACLToken{} 131047 yyc1 = true 131048 } else if len(yyv1) != 0 { 131049 yyv1 = yyv1[:0] 131050 yyc1 = true 131051 } 131052 } else { 131053 yyhl1 := yyl1 > 0 131054 var yyrl1 int 131055 _ = yyrl1 131056 if yyhl1 { 131057 if yyl1 > cap(yyv1) { 131058 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 131059 if yyrl1 <= cap(yyv1) { 131060 yyv1 = yyv1[:yyrl1] 131061 } else { 131062 yyv1 = make([]*ACLToken, yyrl1) 131063 } 131064 yyc1 = true 131065 } else if yyl1 != len(yyv1) { 131066 yyv1 = yyv1[:yyl1] 131067 yyc1 = true 131068 } 131069 } 131070 var yyj1 int 131071 // var yydn1 bool 131072 for yyj1 = 0; (yyhl1 && yyj1 < yyl1) || !(yyhl1 || r.CheckBreak()); yyj1++ { // bounds-check-elimination 131073 if yyj1 == 0 && yyv1 == nil { 131074 if yyhl1 { 131075 yyrl1 = z.DecInferLen(yyl1, z.DecBasicHandle().MaxInitLen, 8) 131076 } else { 131077 yyrl1 = 8 131078 } 131079 yyv1 = make([]*ACLToken, yyrl1) 131080 yyc1 = true 131081 } 131082 yyh1.ElemContainerState(yyj1) 131083 131084 var yydb1 bool 131085 if yyj1 >= len(yyv1) { 131086 yyv1 = append(yyv1, nil) 131087 yyc1 = true 131088 131089 } 131090 if yydb1 { 131091 z.DecSwallow() 131092 } else { 131093 if r.TryDecodeAsNil() { 131094 yyv1[yyj1] = nil 131095 } else { 131096 if yyv1[yyj1] == nil { 131097 yyv1[yyj1] = new(ACLToken) 131098 } 131099 yyv1[yyj1].CodecDecodeSelf(d) 131100 } 131101 131102 } 131103 131104 } 131105 if yyj1 < len(yyv1) { 131106 yyv1 = yyv1[:yyj1] 131107 yyc1 = true 131108 } else if yyj1 == 0 && yyv1 == nil { 131109 yyv1 = make([]*ACLToken, 0) 131110 yyc1 = true 131111 } 131112 } 131113 yyh1.End() 131114 if yyc1 { 131115 *v = yyv1 131116 } 131117 }